InvokeAI/invokeai/frontend/web/dist/assets/ThemeLocaleProvider-a3380d0c.js
2023-09-19 14:03:22 -04:00

311 lines
79 KiB
JavaScript

import{v as m,hj as Je,u as y,Y as Xa,hk as Ja,a7 as ua,ab as d,hl as b,hm as o,hn as Qa,ho as h,hp as fa,hq as Za,hr as eo,aE as ro,hs as ao,a4 as oo,ht as to}from"./index-f6c3f475.js";import{s as ha,n as t,t as io,o as ma,p as no,q as ga,v as ya,w as pa,x as lo,y as Sa,z as xa,A as xr,B as so,D as co,E as bo,F as $a,G as ka,H as _a,J as vo,K as wa,L as uo,M as fo,N as ho,O as mo,Q as za,R as go,S as yo,T as po,U as So,V as xo,W as $o,e as ko,X as _o}from"./menu-c9cc8c3d.js";var Ca=String.raw,Aa=Ca`
:root,
:host {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root,
:host {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root,
:host {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root,
:host {
--chakra-vh: 100dvh;
}
}
`,wo=()=>m.jsx(Je,{styles:Aa}),zo=({scope:e=""})=>m.jsx(Je,{styles:Ca`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
margin: 0;
font-feature-settings: "kern";
}
${e} :where(*, *::before, *::after) {
border-width: 0;
border-style: solid;
box-sizing: border-box;
word-wrap: break-word;
}
main {
display: block;
}
${e} hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
${e} :where(pre, code, kbd,samp) {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
${e} a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
${e} abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
${e} :where(b, strong) {
font-weight: bold;
}
${e} small {
font-size: 80%;
}
${e} :where(sub,sup) {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
${e} sub {
bottom: -0.25em;
}
${e} sup {
top: -0.5em;
}
${e} img {
border-style: none;
}
${e} :where(button, input, optgroup, select, textarea) {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
${e} :where(button, input) {
overflow: visible;
}
${e} :where(button, select) {
text-transform: none;
}
${e} :where(
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner
) {
border-style: none;
padding: 0;
}
${e} fieldset {
padding: 0.35em 0.75em 0.625em;
}
${e} legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
${e} progress {
vertical-align: baseline;
}
${e} textarea {
overflow: auto;
}
${e} :where([type="checkbox"], [type="radio"]) {
box-sizing: border-box;
padding: 0;
}
${e} input[type="number"]::-webkit-inner-spin-button,
${e} input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
${e} input[type="number"] {
-moz-appearance: textfield;
}
${e} input[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
${e} input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
${e} ::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
${e} details {
display: block;
}
${e} summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
${e} :where(
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre
) {
margin: 0;
}
${e} button {
background: transparent;
padding: 0;
}
${e} fieldset {
margin: 0;
padding: 0;
}
${e} :where(ol, ul) {
margin: 0;
padding: 0;
}
${e} textarea {
resize: vertical;
}
${e} :where(button, [role="button"]) {
cursor: pointer;
}
${e} button::-moz-focus-inner {
border: 0 !important;
}
${e} table {
border-collapse: collapse;
}
${e} :where(h1, h2, h3, h4, h5, h6) {
font-size: inherit;
font-weight: inherit;
}
${e} :where(button, input, optgroup, select, textarea) {
padding: 0;
line-height: inherit;
color: inherit;
}
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
display: block;
}
${e} :where(img, video) {
max-width: 100%;
height: auto;
}
[data-js-focus-visible]
:focus:not([data-focus-visible-added]):not(
[data-focus-visible-disabled]
) {
outline: none;
box-shadow: none;
}
${e} select::-ms-expand {
display: none;
}
${Aa}
`}),Ce={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Co(e={}){const{preventTransition:r=!0}=e,a={setDataset:i=>{const n=r?a.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,n==null||n()},setClassName(i){document.body.classList.add(i?Ce.dark:Ce.light),document.body.classList.remove(i?Ce.light:Ce.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){var n;return((n=a.query().matches)!=null?n:i==="dark")?"dark":"light"},addListener(i){const n=a.query(),l=s=>{i(s.matches?"dark":"light")};return typeof n.addListener=="function"?n.addListener(l):n.addEventListener("change",l),()=>{typeof n.removeListener=="function"?n.removeListener(l):n.removeEventListener("change",l)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return a}var Ao="chakra-ui-color-mode";function Pa(e){return{ssr:!1,type:"localStorage",get(r){if(!(globalThis!=null&&globalThis.document))return r;let a;try{a=localStorage.getItem(e)||r}catch{}return a||r},set(r){try{localStorage.setItem(e,r)}catch{}}}}var Po=Pa(Ao),Pr=()=>{};function Tr(e,r){return e.type==="cookie"&&e.ssr?e.get(r):r}function Ta(e){const{value:r,children:a,options:{useSystemColorMode:i,initialColorMode:n,disableTransitionOnChange:l}={},colorModeManager:s=Po}=e,c=n==="dark"?"dark":"light",[v,x]=y.useState(()=>Tr(s,c)),[T,N]=y.useState(()=>Tr(s)),{getSystemTheme:te,setClassName:_e,setDataset:zr,addListener:Cr}=y.useMemo(()=>Co({preventTransition:l}),[l]),we=n==="system"&&!v?T:v,C=y.useCallback(ie=>{const ze=ie==="system"?te():ie;x(ze),_e(ze==="dark"),zr(ze),s.set(ze)},[s,te,_e,zr]);Xa(()=>{n==="system"&&N(te())},[]),y.useEffect(()=>{const ie=s.get();if(ie){C(ie);return}if(n==="system"){C("system");return}C(c)},[s,c,n,C]);const Ar=y.useCallback(()=>{C(we==="dark"?"light":"dark")},[we,C]);y.useEffect(()=>{if(i)return Cr(C)},[i,Cr,C]);const Ka=y.useMemo(()=>({colorMode:r??we,toggleColorMode:r?Pr:Ar,setColorMode:r?Pr:C,forced:r!==void 0}),[we,Ar,C,r]);return m.jsx(Ja.Provider,{value:Ka,children:a})}Ta.displayName="ColorModeProvider";var To=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Fo(e){return ua(e)?To.every(r=>Object.prototype.hasOwnProperty.call(e,r)):!1}var Io={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Mo={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Bo={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Eo={property:Io,easing:Mo,duration:Bo},Do=Eo,Ro={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},jo=Ro,Ho={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Wo=Ho,Vo={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Lo=Vo,qo={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},No=qo,Oo={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Go=Oo,Uo={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Yo=Uo,Ko={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Xo=Ko,Jo={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Fa=Jo,Ia={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Qo={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},Zo={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},et={...Ia,...Qo,container:Zo},Ma=et,rt={breakpoints:Lo,zIndices:jo,radii:Go,blur:Xo,colors:No,...Fa,sizes:Ma,shadows:Yo,space:Ia,borders:Wo,transition:Do},{defineMultiStyleConfig:at,definePartsStyle:de}=b(["stepper","step","title","description","indicator","separator","icon","number"]),F=d("stepper-indicator-size"),G=d("stepper-icon-size"),U=d("stepper-title-font-size"),ce=d("stepper-description-font-size"),ne=d("stepper-accent-color"),ot=de(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ne.variable]:`colors.${e}.500`,_dark:{[ne.variable]:`colors.${e}.200`}},title:{fontSize:U.reference,fontWeight:"medium"},description:{fontSize:ce.reference,color:"chakra-subtle-text"},number:{fontSize:U.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:G.reference,height:G.reference},indicator:{flexShrink:0,borderRadius:"full",width:F.reference,height:F.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ne.reference},"&[data-status=complete]":{bg:ne.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ne.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${F.reference} - 8px)`,top:`calc(${F.reference} + 4px)`,insetStart:`calc(${F.reference} / 2 - 1px)`}}})),tt=at({baseStyle:ot,sizes:{xs:de({stepper:{[F.variable]:"sizes.4",[G.variable]:"sizes.3",[U.variable]:"fontSizes.xs",[ce.variable]:"fontSizes.xs"}}),sm:de({stepper:{[F.variable]:"sizes.6",[G.variable]:"sizes.4",[U.variable]:"fontSizes.sm",[ce.variable]:"fontSizes.xs"}}),md:de({stepper:{[F.variable]:"sizes.8",[G.variable]:"sizes.5",[U.variable]:"fontSizes.md",[ce.variable]:"fontSizes.sm"}}),lg:de({stepper:{[F.variable]:"sizes.10",[G.variable]:"sizes.6",[U.variable]:"fontSizes.lg",[ce.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function W(e,r,a){return Math.min(Math.max(e,a),r)}class it extends Error{constructor(r){super(`Failed to parse color: "${r}"`)}}var be=it;function $r(e){if(typeof e!="string")throw new be(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let r=e.trim();r=ut.test(e)?st(e):e;const a=dt.exec(r);if(a){const s=Array.from(a).slice(1);return[...s.slice(0,3).map(c=>parseInt(pe(c,2),16)),parseInt(pe(s[3]||"f",2),16)/255]}const i=ct.exec(r);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(c=>parseInt(c,16)),parseInt(s[3]||"ff",16)/255]}const n=bt.exec(r);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(c=>parseInt(c,10)),parseFloat(s[3]||"1")]}const l=vt.exec(r);if(l){const[s,c,v,x]=Array.from(l).slice(1).map(parseFloat);if(W(0,100,c)!==c)throw new be(e);if(W(0,100,v)!==v)throw new be(e);return[...ft(s,c,v),Number.isNaN(x)?1:x]}throw new be(e)}function nt(e){let r=5381,a=e.length;for(;a;)r=r*33^e.charCodeAt(--a);return(r>>>0)%2341}const Fr=e=>parseInt(e.replace(/_/g,""),36),lt="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,r)=>{const a=Fr(r.substring(0,3)),i=Fr(r.substring(3)).toString(16);let n="";for(let l=0;l<6-i.length;l++)n+="0";return e[a]=`${n}${i}`,e},{});function st(e){const r=e.toLowerCase().trim(),a=lt[nt(r)];if(!a)throw new be(e);return`#${a}`}const pe=(e,r)=>Array.from(Array(r)).map(()=>e).join(""),dt=new RegExp(`^#${pe("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ct=new RegExp(`^#${pe("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),bt=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${pe(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vt=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ut=/^[a-z]+$/i,Ir=e=>Math.round(e*255),ft=(e,r,a)=>{let i=a/100;if(r===0)return[i,i,i].map(Ir);const n=(e%360+360)%360/60,l=(1-Math.abs(2*i-1))*(r/100),s=l*(1-Math.abs(n%2-1));let c=0,v=0,x=0;n>=0&&n<1?(c=l,v=s):n>=1&&n<2?(c=s,v=l):n>=2&&n<3?(v=l,x=s):n>=3&&n<4?(v=s,x=l):n>=4&&n<5?(c=s,x=l):n>=5&&n<6&&(c=l,x=s);const T=i-l/2,N=c+T,te=v+T,_e=x+T;return[N,te,_e].map(Ir)};function ht(e,r,a,i){return`rgba(${W(0,255,e).toFixed()}, ${W(0,255,r).toFixed()}, ${W(0,255,a).toFixed()}, ${parseFloat(W(0,1,i).toFixed(3))})`}function mt(e,r){const[a,i,n,l]=$r(e);return ht(a,i,n,l-r)}function gt(e){const[r,a,i,n]=$r(e);let l=s=>{const c=W(0,255,s).toString(16);return c.length===1?`0${c}`:c};return`#${l(r)}${l(a)}${l(i)}${n<1?l(Math.round(n*255)):""}`}function yt(e,r,a,i,n){for(r=r.split?r.split("."):r,i=0;i<r.length;i++)e=e?e[r[i]]:n;return e===n?a:e}var pt=e=>Object.keys(e).length===0,p=(e,r,a)=>{const i=yt(e,`colors.${r}`,r);try{return gt(i),i}catch{return a??"#000000"}},St=e=>{const[r,a,i]=$r(e);return(r*299+a*587+i*114)/1e3},xt=e=>r=>{const a=p(r,e);return St(a)<128?"dark":"light"},$t=e=>r=>xt(e)(r)==="dark",ae=(e,r)=>a=>{const i=p(a,e);return mt(i,1-r)};function Mr(e="1rem",r="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
45deg,
${r} 25%,
transparent 25%,
transparent 50%,
${r} 50%,
${r} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}var kt=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function _t(e){const r=kt();return!e||pt(e)?r:e.string&&e.colors?zt(e.string,e.colors):e.string&&!e.colors?wt(e.string):e.colors&&!e.string?Ct(e.colors):r}function wt(e){let r=0;if(e.length===0)return r.toString();for(let i=0;i<e.length;i+=1)r=e.charCodeAt(i)+((r<<5)-r),r=r&r;let a="#";for(let i=0;i<3;i+=1){const n=r>>i*8&255;a+=`00${n.toString(16)}`.substr(-2)}return a}function zt(e,r){let a=0;if(e.length===0)return r[0];for(let i=0;i<e.length;i+=1)a=e.charCodeAt(i)+((a<<5)-a),a=a&a;return a=(a%r.length+r.length)%r.length,r[a]}function Ct(e){return e[Math.floor(Math.random()*e.length)]}function Ba(e){return ua(e)&&e.reference?e.reference:String(e)}var Qe=(e,...r)=>r.map(Ba).join(` ${e} `).replace(/calc/g,""),Br=(...e)=>`calc(${Qe("+",...e)})`,Er=(...e)=>`calc(${Qe("-",...e)})`,gr=(...e)=>`calc(${Qe("*",...e)})`,Dr=(...e)=>`calc(${Qe("/",...e)})`,Rr=e=>{const r=Ba(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:gr(r,-1)},I=Object.assign(e=>({add:(...r)=>I(Br(e,...r)),subtract:(...r)=>I(Er(e,...r)),multiply:(...r)=>I(gr(e,...r)),divide:(...r)=>I(Dr(e,...r)),negate:()=>I(Rr(e)),toString:()=>e.toString()}),{add:Br,subtract:Er,multiply:gr,divide:Dr,negate:Rr});function At(e){return!Number.isInteger(parseFloat(e.toString()))}function Pt(e,r="-"){return e.replace(/\s+/g,r)}function Ea(e){const r=Pt(e.toString());return r.includes("\\.")?e:At(e)?r.replace(".","\\."):e}function Tt(e,r=""){return[r,Ea(e)].filter(Boolean).join("-")}function Ft(e,r){return`var(${Ea(e)}${r?`, ${r}`:""})`}function It(e,r=""){return`--${Tt(e,r)}`}function f(e,r){const a=It(e,r==null?void 0:r.prefix);return{variable:a,reference:Ft(a,Mt(r==null?void 0:r.fallback))}}function Mt(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:Bt,definePartsStyle:We}=b(ha.keys),fe=f("switch-track-width"),V=f("switch-track-height"),rr=f("switch-track-diff"),Et=I.subtract(fe,V),yr=f("switch-thumb-x"),le=f("switch-bg"),Dt=o(e=>{const{colorScheme:r}=e;return{borderRadius:"full",p:"0.5",width:[fe.reference],height:[V.reference],transitionProperty:"common",transitionDuration:"fast",[le.variable]:"colors.gray.300",_dark:{[le.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[le.variable]:`colors.${r}.500`,_dark:{[le.variable]:`colors.${r}.200`}},bg:le.reference}}),Rt=o({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[V.reference],height:[V.reference],_checked:{transform:`translateX(${yr.reference})`}}),jt=We(e=>({container:{[rr.variable]:Et,[yr.variable]:rr.reference,_rtl:{[yr.variable]:I(rr).negate().toString()}},track:Dt(e),thumb:Rt})),Ht={sm:We({container:{[fe.variable]:"1.375rem",[V.variable]:"sizes.3"}}),md:We({container:{[fe.variable]:"1.875rem",[V.variable]:"sizes.4"}}),lg:We({container:{[fe.variable]:"2.875rem",[V.variable]:"sizes.6"}})},Wt=Bt({baseStyle:jt,sizes:Ht,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Vt,definePartsStyle:Q}=b(io.keys),Lt=Q({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Ye=o({"&[data-is-numeric=true]":{textAlign:"end"}}),qt=Q(e=>{const{colorScheme:r}=e;return{th:{color:t("gray.600","gray.400")(e),borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},td:{borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},caption:{color:t("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Nt=Q(e=>{const{colorScheme:r}=e;return{th:{color:t("gray.600","gray.400")(e),borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},td:{borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},caption:{color:t("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e)},td:{background:t(`${r}.100`,`${r}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Ot={simple:qt,striped:Nt,unstyled:o({})},Gt={sm:Q({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Q({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Q({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Ut=Vt({baseStyle:Lt,variants:Ot,sizes:Gt,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),$=d("tabs-color"),z=d("tabs-bg"),Ae=d("tabs-border-color"),{defineMultiStyleConfig:Yt,definePartsStyle:P}=b(ma.keys),Kt=o(e=>{const{orientation:r}=e;return{display:r==="vertical"?"flex":"block"}}),Xt=o(e=>{const{isFitted:r}=e;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),Jt=o(e=>{const{align:r="start",orientation:a}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:a==="vertical"?"column":"row"}}),Qt=o({p:4}),Zt=P(e=>({root:Kt(e),tab:Xt(e),tablist:Jt(e),tabpanel:Qt})),ei={sm:P({tab:{py:1,px:4,fontSize:"sm"}}),md:P({tab:{fontSize:"md",py:2,px:4}}),lg:P({tab:{fontSize:"lg",py:3,px:4}})},ri=P(e=>{const{colorScheme:r,orientation:a}=e,i=a==="vertical",n=i?"borderStart":"borderBottom",l=i?"marginStart":"marginBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",[l]:"-2px",_selected:{[$.variable]:`colors.${r}.600`,_dark:{[$.variable]:`colors.${r}.300`},borderColor:"currentColor"},_active:{[z.variable]:"colors.gray.200",_dark:{[z.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:$.reference,bg:z.reference}}}),ai=P(e=>{const{colorScheme:r}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Ae.variable]:"transparent",_selected:{[$.variable]:`colors.${r}.600`,[Ae.variable]:"colors.white",_dark:{[$.variable]:`colors.${r}.300`,[Ae.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Ae.reference},color:$.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),oi=P(e=>{const{colorScheme:r}=e;return{tab:{border:"1px solid",borderColor:"inherit",[z.variable]:"colors.gray.50",_dark:{[z.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[z.variable]:"colors.white",[$.variable]:`colors.${r}.600`,_dark:{[z.variable]:"colors.gray.800",[$.variable]:`colors.${r}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:$.reference,bg:z.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ti=P(e=>{const{colorScheme:r,theme:a}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:p(a,`${r}.700`),bg:p(a,`${r}.100`)}}}}),ii=P(e=>{const{colorScheme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[$.variable]:"colors.gray.600",_dark:{[$.variable]:"inherit"},_selected:{[$.variable]:"colors.white",[z.variable]:`colors.${r}.600`,_dark:{[$.variable]:"colors.gray.800",[z.variable]:`colors.${r}.300`}},color:$.reference,bg:z.reference}}}),ni=P({}),li={line:ri,enclosed:ai,"enclosed-colored":oi,"soft-rounded":ti,"solid-rounded":ii,unstyled:ni},si=Yt({baseStyle:Zt,sizes:ei,variants:li,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),g=Qa("badge",["bg","color","shadow"]),di=o({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:g.bg.reference,color:g.color.reference,boxShadow:g.shadow.reference}),ci=o(e=>{const{colorScheme:r,theme:a}=e,i=ae(`${r}.500`,.6)(a);return{[g.bg.variable]:`colors.${r}.500`,[g.color.variable]:"colors.white",_dark:{[g.bg.variable]:i,[g.color.variable]:"colors.whiteAlpha.800"}}}),bi=o(e=>{const{colorScheme:r,theme:a}=e,i=ae(`${r}.200`,.16)(a);return{[g.bg.variable]:`colors.${r}.100`,[g.color.variable]:`colors.${r}.800`,_dark:{[g.bg.variable]:i,[g.color.variable]:`colors.${r}.200`}}}),vi=o(e=>{const{colorScheme:r,theme:a}=e,i=ae(`${r}.200`,.8)(a);return{[g.color.variable]:`colors.${r}.500`,_dark:{[g.color.variable]:i},[g.shadow.variable]:`inset 0 0 0px 1px ${g.color.reference}`}}),ui={solid:ci,subtle:bi,outline:vi},he=h({baseStyle:di,variants:ui,defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:fi,definePartsStyle:L}=b(no.keys),jr=d("tag-bg"),Hr=d("tag-color"),ar=d("tag-shadow"),Ve=d("tag-min-height"),Le=d("tag-min-width"),qe=d("tag-font-size"),Ne=d("tag-padding-inline"),hi=o({fontWeight:"medium",lineHeight:1.2,outline:0,[Hr.variable]:g.color.reference,[jr.variable]:g.bg.reference,[ar.variable]:g.shadow.reference,color:Hr.reference,bg:jr.reference,boxShadow:ar.reference,borderRadius:"md",minH:Ve.reference,minW:Le.reference,fontSize:qe.reference,px:Ne.reference,_focusVisible:{[ar.variable]:"shadows.outline"}}),mi=o({lineHeight:1.2,overflow:"visible"}),gi=o({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}),yi=L({container:hi,label:mi,closeButton:gi}),pi={sm:L({container:{[Ve.variable]:"sizes.5",[Le.variable]:"sizes.5",[qe.variable]:"fontSizes.xs",[Ne.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:L({container:{[Ve.variable]:"sizes.6",[Le.variable]:"sizes.6",[qe.variable]:"fontSizes.sm",[Ne.variable]:"space.2"}}),lg:L({container:{[Ve.variable]:"sizes.8",[Le.variable]:"sizes.8",[qe.variable]:"fontSizes.md",[Ne.variable]:"space.3"}})},Si={subtle:L(e=>{var r;return{container:(r=he.variants)==null?void 0:r.subtle(e)}}),solid:L(e=>{var r;return{container:(r=he.variants)==null?void 0:r.solid(e)}}),outline:L(e=>{var r;return{container:(r=he.variants)==null?void 0:r.outline(e)}})},xi=fi({variants:Si,baseStyle:yi,sizes:pi,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:M,defineMultiStyleConfig:$i}=b(ga.keys),Y=d("input-height"),K=d("input-font-size"),X=d("input-padding"),J=d("input-border-radius"),ki=M({addon:{height:Y.reference,fontSize:K.reference,px:X.reference,borderRadius:J.reference},field:{width:"100%",height:Y.reference,fontSize:K.reference,px:X.reference,borderRadius:J.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),D={lg:o({[K.variable]:"fontSizes.lg",[X.variable]:"space.4",[J.variable]:"radii.md",[Y.variable]:"sizes.12"}),md:o({[K.variable]:"fontSizes.md",[X.variable]:"space.4",[J.variable]:"radii.md",[Y.variable]:"sizes.10"}),sm:o({[K.variable]:"fontSizes.sm",[X.variable]:"space.3",[J.variable]:"radii.sm",[Y.variable]:"sizes.8"}),xs:o({[K.variable]:"fontSizes.xs",[X.variable]:"space.2",[J.variable]:"radii.sm",[Y.variable]:"sizes.6"})},_i={lg:M({field:D.lg,group:D.lg}),md:M({field:D.md,group:D.md}),sm:M({field:D.sm,group:D.sm}),xs:M({field:D.xs,group:D.xs})};function kr(e){const{focusBorderColor:r,errorBorderColor:a}=e;return{focusBorderColor:r||t("blue.500","blue.300")(e),errorBorderColor:a||t("red.500","red.300")(e)}}var wi=M(e=>{const{theme:r}=e,{focusBorderColor:a,errorBorderColor:i}=kr(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:t("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:p(r,i),boxShadow:`0 0 0 1px ${p(r,i)}`},_focusVisible:{zIndex:1,borderColor:p(r,a),boxShadow:`0 0 0 1px ${p(r,a)}`}},addon:{border:"1px solid",borderColor:t("inherit","whiteAlpha.50")(e),bg:t("gray.100","whiteAlpha.300")(e)}}}),zi=M(e=>{const{theme:r}=e,{focusBorderColor:a,errorBorderColor:i}=kr(e);return{field:{border:"2px solid",borderColor:"transparent",bg:t("gray.100","whiteAlpha.50")(e),_hover:{bg:t("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:p(r,i)},_focusVisible:{bg:"transparent",borderColor:p(r,a)}},addon:{border:"2px solid",borderColor:"transparent",bg:t("gray.100","whiteAlpha.50")(e)}}}),Ci=M(e=>{const{theme:r}=e,{focusBorderColor:a,errorBorderColor:i}=kr(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:p(r,i),boxShadow:`0px 1px 0px 0px ${p(r,i)}`},_focusVisible:{borderColor:p(r,a),boxShadow:`0px 1px 0px 0px ${p(r,a)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Ai=M({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Pi={outline:wi,filled:zi,flushed:Ci,unstyled:Ai},u=$i({baseStyle:ki,sizes:_i,variants:Pi,defaultProps:{size:"md",variant:"outline"}}),Wr,Ti=o({...(Wr=u.baseStyle)==null?void 0:Wr.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),Vr,Lr,Fi={outline:o(e=>{var r,a;return(a=(r=u.variants)==null?void 0:r.outline(e).field)!=null?a:{}}),flushed:o(e=>{var r,a;return(a=(r=u.variants)==null?void 0:r.flushed(e).field)!=null?a:{}}),filled:o(e=>{var r,a;return(a=(r=u.variants)==null?void 0:r.filled(e).field)!=null?a:{}}),unstyled:(Lr=(Vr=u.variants)==null?void 0:Vr.unstyled.field)!=null?Lr:{}},qr,Nr,Or,Gr,Ur,Yr,Kr,Xr,Ii={xs:(Nr=(qr=u.sizes)==null?void 0:qr.xs.field)!=null?Nr:{},sm:(Gr=(Or=u.sizes)==null?void 0:Or.sm.field)!=null?Gr:{},md:(Yr=(Ur=u.sizes)==null?void 0:Ur.md.field)!=null?Yr:{},lg:(Xr=(Kr=u.sizes)==null?void 0:Kr.lg.field)!=null?Xr:{}},Mi=h({baseStyle:Ti,sizes:Ii,variants:Fi,defaultProps:{size:"md",variant:"outline"}}),Pe=f("tooltip-bg"),or=f("tooltip-fg"),Bi=f("popper-arrow-bg"),Ei=o({bg:Pe.reference,color:or.reference,[Pe.variable]:"colors.gray.700",[or.variable]:"colors.whiteAlpha.900",_dark:{[Pe.variable]:"colors.gray.300",[or.variable]:"colors.gray.900"},[Bi.variable]:Pe.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),Di=h({baseStyle:Ei}),{defineMultiStyleConfig:Ri,definePartsStyle:ve}=b(ya.keys),ji=o(e=>{const{colorScheme:r,theme:a,isIndeterminate:i,hasStripe:n}=e,l=t(Mr(),Mr("1rem","rgba(0,0,0,0.1)"))(e),s=t(`${r}.500`,`${r}.200`)(e),c=`linear-gradient(
to right,
transparent 0%,
${p(a,s)} 50%,
transparent 100%
)`;return{...!i&&n&&l,...i?{bgImage:c}:{bgColor:s}}}),Hi=o({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),Wi=o(e=>({bg:t("gray.100","whiteAlpha.300")(e)})),Vi=o(e=>({transitionProperty:"common",transitionDuration:"slow",...ji(e)})),Li=ve(e=>({label:Hi,filledTrack:Vi(e),track:Wi(e)})),qi={xs:ve({track:{h:"1"}}),sm:ve({track:{h:"2"}}),md:ve({track:{h:"3"}}),lg:ve({track:{h:"4"}})},Ni=Ri({sizes:qi,baseStyle:Li,defaultProps:{size:"md",colorScheme:"blue"}}),Oi=e=>typeof e=="function";function S(e,...r){return Oi(e)?e(...r):e}var{definePartsStyle:Oe,defineMultiStyleConfig:Gi}=b(pa.keys),me=d("checkbox-size"),Ui=o(e=>{const{colorScheme:r}=e;return{w:me.reference,h:me.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:t(`${r}.500`,`${r}.200`)(e),borderColor:t(`${r}.500`,`${r}.200`)(e),color:t("white","gray.900")(e),_hover:{bg:t(`${r}.600`,`${r}.300`)(e),borderColor:t(`${r}.600`,`${r}.300`)(e)},_disabled:{borderColor:t("gray.200","transparent")(e),bg:t("gray.200","whiteAlpha.300")(e),color:t("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:t(`${r}.500`,`${r}.200`)(e),borderColor:t(`${r}.500`,`${r}.200`)(e),color:t("white","gray.900")(e)},_disabled:{bg:t("gray.100","whiteAlpha.100")(e),borderColor:t("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:t("red.500","red.300")(e)}}}),Yi=o({_disabled:{cursor:"not-allowed"}}),Ki=o({userSelect:"none",_disabled:{opacity:.4}}),Xi=o({transitionProperty:"transform",transitionDuration:"normal"}),Ji=Oe(e=>({icon:Xi,container:Yi,control:S(Ui,e),label:Ki})),Qi={sm:Oe({control:{[me.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Oe({control:{[me.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Oe({control:{[me.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ke=Gi({baseStyle:Ji,sizes:Qi,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Zi,definePartsStyle:Ge}=b(lo.keys),en=o(e=>{var r;const a=(r=S(Ke.baseStyle,e))==null?void 0:r.control;return{...a,borderRadius:"full",_checked:{...a==null?void 0:a._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),rn=Ge(e=>{var r,a,i,n;return{label:(a=(r=Ke).baseStyle)==null?void 0:a.call(r,e).label,container:(n=(i=Ke).baseStyle)==null?void 0:n.call(i,e).container,control:en(e)}}),an={md:Ge({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ge({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ge({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},on=Zi({baseStyle:rn,sizes:an,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tn,definePartsStyle:nn}=b(Sa.keys),Te=d("select-bg"),Jr,ln=o({...(Jr=u.baseStyle)==null?void 0:Jr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Te.reference,[Te.variable]:"colors.white",_dark:{[Te.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Te.reference}}),sn=o({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}),dn=nn({field:ln,icon:sn}),Fe=o({paddingInlineEnd:"8"}),Qr,Zr,ea,ra,aa,oa,ta,ia,cn={lg:{...(Qr=u.sizes)==null?void 0:Qr.lg,field:{...(Zr=u.sizes)==null?void 0:Zr.lg.field,...Fe}},md:{...(ea=u.sizes)==null?void 0:ea.md,field:{...(ra=u.sizes)==null?void 0:ra.md.field,...Fe}},sm:{...(aa=u.sizes)==null?void 0:aa.sm,field:{...(oa=u.sizes)==null?void 0:oa.sm.field,...Fe}},xs:{...(ta=u.sizes)==null?void 0:ta.xs,field:{...(ia=u.sizes)==null?void 0:ia.xs.field,...Fe},icon:{insetEnd:"1"}}},bn=tn({baseStyle:dn,sizes:cn,variants:u.variants,defaultProps:u.defaultProps}),tr=d("skeleton-start-color"),ir=d("skeleton-end-color"),vn=o({[tr.variable]:"colors.gray.100",[ir.variable]:"colors.gray.400",_dark:{[tr.variable]:"colors.gray.800",[ir.variable]:"colors.gray.600"},background:tr.reference,borderColor:ir.reference,opacity:.7,borderRadius:"sm"}),un=h({baseStyle:vn}),nr=d("skip-link-bg"),fn=o({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nr.variable]:"colors.white",_dark:{[nr.variable]:"colors.gray.700"},bg:nr.reference}}),hn=h({baseStyle:fn}),{defineMultiStyleConfig:mn,definePartsStyle:Ze}=b(xa.keys),Se=d("slider-thumb-size"),xe=d("slider-track-size"),j=d("slider-bg"),gn=o(e=>{const{orientation:r}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...xr({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),yn=o(e=>({...xr({orientation:e.orientation,horizontal:{h:xe.reference},vertical:{w:xe.reference}}),overflow:"hidden",borderRadius:"sm",[j.variable]:"colors.gray.200",_dark:{[j.variable]:"colors.whiteAlpha.200"},_disabled:{[j.variable]:"colors.gray.300",_dark:{[j.variable]:"colors.whiteAlpha.300"}},bg:j.reference})),pn=o(e=>{const{orientation:r}=e;return{...xr({orientation:r,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Se.reference,h:Se.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),Sn=o(e=>{const{colorScheme:r}=e;return{width:"inherit",height:"inherit",[j.variable]:`colors.${r}.500`,_dark:{[j.variable]:`colors.${r}.200`},bg:j.reference}}),xn=Ze(e=>({container:gn(e),track:yn(e),thumb:pn(e),filledTrack:Sn(e)})),$n=Ze({container:{[Se.variable]:"sizes.4",[xe.variable]:"sizes.1"}}),kn=Ze({container:{[Se.variable]:"sizes.3.5",[xe.variable]:"sizes.1"}}),_n=Ze({container:{[Se.variable]:"sizes.2.5",[xe.variable]:"sizes.0.5"}}),wn={lg:$n,md:kn,sm:_n},zn=mn({baseStyle:xn,sizes:wn,defaultProps:{size:"md",colorScheme:"blue"}}),H=f("spinner-size"),Cn=o({width:[H.reference],height:[H.reference]}),An={xs:o({[H.variable]:"sizes.3"}),sm:o({[H.variable]:"sizes.4"}),md:o({[H.variable]:"sizes.6"}),lg:o({[H.variable]:"sizes.8"}),xl:o({[H.variable]:"sizes.12"})},Pn=h({baseStyle:Cn,sizes:An,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Tn,definePartsStyle:Da}=b(so.keys),Fn=o({fontWeight:"medium"}),In=o({opacity:.8,marginBottom:"2"}),Mn=o({verticalAlign:"baseline",fontWeight:"semibold"}),Bn=o({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}),En=Da({container:{},label:Fn,helpText:In,number:Mn,icon:Bn}),Dn={md:Da({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Rn=Tn({baseStyle:En,sizes:Dn,defaultProps:{size:"md"}}),lr=d("kbd-bg"),jn=o({[lr.variable]:"colors.gray.100",_dark:{[lr.variable]:"colors.whiteAlpha.100"},bg:lr.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Hn=h({baseStyle:jn}),Wn=o({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),Vn=h({baseStyle:Wn}),{defineMultiStyleConfig:Ln,definePartsStyle:qn}=b(co.keys),Nn=o({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}),On=qn({icon:Nn}),Gn=Ln({baseStyle:On}),{defineMultiStyleConfig:Un,definePartsStyle:Yn}=b(bo.keys),A=d("menu-bg"),sr=d("menu-shadow"),Kn=o({[A.variable]:"#fff",[sr.variable]:"shadows.sm",_dark:{[A.variable]:"colors.gray.700",[sr.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:A.reference,boxShadow:sr.reference}),Xn=o({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[A.variable]:"colors.gray.100",_dark:{[A.variable]:"colors.whiteAlpha.100"}},_active:{[A.variable]:"colors.gray.200",_dark:{[A.variable]:"colors.whiteAlpha.200"}},_expanded:{[A.variable]:"colors.gray.100",_dark:{[A.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:A.reference}),Jn=o({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),Qn=o({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),Zn=o({opacity:.6}),el=o({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),rl=o({transitionProperty:"common",transitionDuration:"normal"}),al=Yn({button:rl,list:Kn,item:Xn,groupTitle:Jn,icon:Qn,command:Zn,divider:el}),ol=Un({baseStyle:al}),{defineMultiStyleConfig:tl,definePartsStyle:pr}=b($a.keys),dr=d("modal-bg"),cr=d("modal-shadow"),il=o({bg:"blackAlpha.600",zIndex:"modal"}),nl=o(e=>{const{isCentered:r,scrollBehavior:a}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:a==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}}),ll=o(e=>{const{isCentered:r,scrollBehavior:a}=e;return{borderRadius:"md",color:"inherit",my:r?"auto":"16",mx:r?"auto":void 0,zIndex:"modal",maxH:a==="inside"?"calc(100% - 7.5rem)":void 0,[dr.variable]:"colors.white",[cr.variable]:"shadows.lg",_dark:{[dr.variable]:"colors.gray.700",[cr.variable]:"shadows.dark-lg"},bg:dr.reference,boxShadow:cr.reference}}),sl=o({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),dl=o({position:"absolute",top:"2",insetEnd:"3"}),cl=o(e=>{const{scrollBehavior:r}=e;return{px:"6",py:"2",flex:"1",overflow:r==="inside"?"auto":void 0}}),bl=o({px:"6",py:"4"}),vl=pr(e=>({overlay:il,dialogContainer:S(nl,e),dialog:S(ll,e),header:sl,closeButton:dl,body:S(cl,e),footer:bl}));function w(e){return pr(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var ul={xs:w("xs"),sm:w("sm"),md:w("md"),lg:w("lg"),xl:w("xl"),"2xl":w("2xl"),"3xl":w("3xl"),"4xl":w("4xl"),"5xl":w("5xl"),"6xl":w("6xl"),full:w("full")},fl=tl({baseStyle:vl,sizes:ul,defaultProps:{size:"md"}}),{defineMultiStyleConfig:hl,definePartsStyle:Ra}=b(ka.keys),_r=f("number-input-stepper-width"),ja=f("number-input-input-padding"),ml=I(_r).add("0.5rem").toString(),br=f("number-input-bg"),vr=f("number-input-color"),ur=f("number-input-border-color"),gl=o({[_r.variable]:"sizes.6",[ja.variable]:ml}),yl=o(e=>{var r,a;return(a=(r=S(u.baseStyle,e))==null?void 0:r.field)!=null?a:{}}),pl=o({width:_r.reference}),Sl=o({borderStart:"1px solid",borderStartColor:ur.reference,color:vr.reference,bg:br.reference,[vr.variable]:"colors.chakra-body-text",[ur.variable]:"colors.chakra-border-color",_dark:{[vr.variable]:"colors.whiteAlpha.800",[ur.variable]:"colors.whiteAlpha.300"},_active:{[br.variable]:"colors.gray.200",_dark:{[br.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}}),xl=Ra(e=>{var r;return{root:gl,field:(r=S(yl,e))!=null?r:{},stepperGroup:pl,stepper:Sl}});function Ie(e){var r,a,i;const n=(r=u.sizes)==null?void 0:r[e],l={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(i=(a=n.field)==null?void 0:a.fontSize)!=null?i:"md",c=Fa.fontSizes[s];return Ra({field:{...n.field,paddingInlineEnd:ja.reference,verticalAlign:"top"},stepper:{fontSize:I(c).multiply(.75).toString(),_first:{borderTopEndRadius:l[e]},_last:{borderBottomEndRadius:l[e],mt:"-1px",borderTopWidth:1}}})}var $l={xs:Ie("xs"),sm:Ie("sm"),md:Ie("md"),lg:Ie("lg")},kl=hl({baseStyle:xl,sizes:$l,variants:u.variants,defaultProps:u.defaultProps}),na,_l=o({...(na=u.baseStyle)==null?void 0:na.field,textAlign:"center"}),wl={lg:o({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:o({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:o({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:o({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},la,sa,zl={outline:o(e=>{var r,a,i;return(i=(a=S((r=u.variants)==null?void 0:r.outline,e))==null?void 0:a.field)!=null?i:{}}),flushed:o(e=>{var r,a,i;return(i=(a=S((r=u.variants)==null?void 0:r.flushed,e))==null?void 0:a.field)!=null?i:{}}),filled:o(e=>{var r,a,i;return(i=(a=S((r=u.variants)==null?void 0:r.filled,e))==null?void 0:a.field)!=null?i:{}}),unstyled:(sa=(la=u.variants)==null?void 0:la.unstyled.field)!=null?sa:{}},Cl=h({baseStyle:_l,sizes:wl,variants:zl,defaultProps:u.defaultProps}),{defineMultiStyleConfig:Al,definePartsStyle:Pl}=b(_a.keys),Me=f("popper-bg"),Tl=f("popper-arrow-bg"),da=f("popper-arrow-shadow-color"),Fl=o({zIndex:10}),Il=o({[Me.variable]:"colors.white",bg:Me.reference,[Tl.variable]:Me.reference,[da.variable]:"colors.gray.200",_dark:{[Me.variable]:"colors.gray.700",[da.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),Ml=o({px:3,py:2,borderBottomWidth:"1px"}),Bl=o({px:3,py:2}),El=o({px:3,py:2,borderTopWidth:"1px"}),Dl=o({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}),Rl=Pl({popper:Fl,content:Il,header:Ml,body:Bl,footer:El,closeButton:Dl}),jl=Al({baseStyle:Rl}),{definePartsStyle:Sr,defineMultiStyleConfig:Hl}=b(vo.keys),fr=d("drawer-bg"),hr=d("drawer-box-shadow");function O(e){return Sr(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Wl=o({bg:"blackAlpha.600",zIndex:"overlay"}),Vl=o({display:"flex",zIndex:"modal",justifyContent:"center"}),Ll=o(e=>{const{isFullHeight:r}=e;return{...r&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[fr.variable]:"colors.white",[hr.variable]:"shadows.lg",_dark:{[fr.variable]:"colors.gray.700",[hr.variable]:"shadows.dark-lg"},bg:fr.reference,boxShadow:hr.reference}}),ql=o({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),Nl=o({position:"absolute",top:"2",insetEnd:"3"}),Ol=o({px:"6",py:"2",flex:"1",overflow:"auto"}),Gl=o({px:"6",py:"4"}),Ul=Sr(e=>({overlay:Wl,dialogContainer:Vl,dialog:S(Ll,e),header:ql,closeButton:Nl,body:Ol,footer:Gl})),Yl={xs:O("xs"),sm:O("md"),md:O("lg"),lg:O("2xl"),xl:O("4xl"),full:O("full")},Kl=Hl({baseStyle:Ul,sizes:Yl,defaultProps:{size:"xs"}}),{definePartsStyle:Xl,defineMultiStyleConfig:Jl}=b(wa.keys),Ql=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),Zl=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),es=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),rs=Xl({preview:Ql,input:Zl,textarea:es}),as=Jl({baseStyle:rs}),{definePartsStyle:os,defineMultiStyleConfig:ts}=b(uo.keys),Z=d("form-control-color"),is=o({marginStart:"1",[Z.variable]:"colors.red.500",_dark:{[Z.variable]:"colors.red.300"},color:Z.reference}),ns=o({mt:"2",[Z.variable]:"colors.gray.600",_dark:{[Z.variable]:"colors.whiteAlpha.600"},color:Z.reference,lineHeight:"normal",fontSize:"sm"}),ls=os({container:{width:"100%",position:"relative"},requiredIndicator:is,helperText:ns}),ss=ts({baseStyle:ls}),{definePartsStyle:ds,defineMultiStyleConfig:cs}=b(fo.keys),ee=d("form-error-color"),bs=o({[ee.variable]:"colors.red.500",_dark:{[ee.variable]:"colors.red.300"},color:ee.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),vs=o({marginEnd:"0.5em",[ee.variable]:"colors.red.500",_dark:{[ee.variable]:"colors.red.300"},color:ee.reference}),us=ds({text:bs,icon:vs}),fs=cs({baseStyle:us}),hs=o({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),ms=h({baseStyle:hs}),gs=o({fontFamily:"heading",fontWeight:"bold"}),ys={"4xl":o({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":o({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":o({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:o({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:o({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:o({fontSize:"xl",lineHeight:1.2}),sm:o({fontSize:"md",lineHeight:1.2}),xs:o({fontSize:"sm",lineHeight:1.2})},ps=h({baseStyle:gs,sizes:ys,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:Ss,definePartsStyle:xs}=b(ho.keys),mr=d("breadcrumb-link-decor"),$s=o({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:mr.reference,[mr.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[mr.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}),ks=xs({link:$s}),_s=Ss({baseStyle:ks}),ws=o({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),Ha=o(e=>{const{colorScheme:r,theme:a}=e;if(r==="gray")return{color:t("gray.800","whiteAlpha.900")(e),_hover:{bg:t("gray.100","whiteAlpha.200")(e)},_active:{bg:t("gray.200","whiteAlpha.300")(e)}};const i=ae(`${r}.200`,.12)(a),n=ae(`${r}.200`,.24)(a);return{color:t(`${r}.600`,`${r}.200`)(e),bg:"transparent",_hover:{bg:t(`${r}.50`,i)(e)},_active:{bg:t(`${r}.100`,n)(e)}}}),zs=o(e=>{const{colorScheme:r}=e,a=t("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:r==="gray"?a:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...S(Ha,e)}}),Cs={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},As=o(e=>{var r;const{colorScheme:a}=e;if(a==="gray"){const v=t("gray.100","whiteAlpha.200")(e);return{bg:v,color:t("gray.800","whiteAlpha.900")(e),_hover:{bg:t("gray.200","whiteAlpha.300")(e),_disabled:{bg:v}},_active:{bg:t("gray.300","whiteAlpha.400")(e)}}}const{bg:i=`${a}.500`,color:n="white",hoverBg:l=`${a}.600`,activeBg:s=`${a}.700`}=(r=Cs[a])!=null?r:{},c=t(i,`${a}.200`)(e);return{bg:c,color:t(n,"gray.800")(e),_hover:{bg:t(l,`${a}.300`)(e),_disabled:{bg:c}},_active:{bg:t(s,`${a}.400`)(e)}}}),Ps=o(e=>{const{colorScheme:r}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t(`${r}.500`,`${r}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t(`${r}.700`,`${r}.500`)(e)}}}),Ts=o({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),Fs={ghost:Ha,outline:zs,solid:As,link:Ps,unstyled:Ts},Is={lg:o({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:o({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:o({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:o({h:"6",minW:"6",fontSize:"xs",px:"2"})},Ms=h({baseStyle:ws,variants:Fs,sizes:Is,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:q,defineMultiStyleConfig:Bs}=b(mo.keys),Xe=d("card-bg"),B=d("card-padding"),Wa=d("card-shadow"),Ue=d("card-radius"),Va=d("card-border-width","0"),La=d("card-border-color"),Es=q({container:{[Xe.variable]:"colors.chakra-body-bg",backgroundColor:Xe.reference,boxShadow:Wa.reference,borderRadius:Ue.reference,color:"chakra-body-text",borderWidth:Va.reference,borderColor:La.reference},body:{padding:B.reference,flex:"1 1 0%"},header:{padding:B.reference},footer:{padding:B.reference}}),Ds={sm:q({container:{[Ue.variable]:"radii.base",[B.variable]:"space.3"}}),md:q({container:{[Ue.variable]:"radii.md",[B.variable]:"space.5"}}),lg:q({container:{[Ue.variable]:"radii.xl",[B.variable]:"space.7"}})},Rs={elevated:q({container:{[Wa.variable]:"shadows.base",_dark:{[Xe.variable]:"colors.gray.700"}}}),outline:q({container:{[Va.variable]:"1px",[La.variable]:"colors.chakra-border-color"}}),filled:q({container:{[Xe.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[B.variable]:0},header:{[B.variable]:0},footer:{[B.variable]:0}}},js=Bs({baseStyle:Es,variants:Rs,sizes:Ds,defaultProps:{variant:"elevated",size:"md"}}),ge=f("close-button-size"),se=f("close-button-bg"),Hs=o({w:[ge.reference],h:[ge.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[se.variable]:"colors.blackAlpha.100",_dark:{[se.variable]:"colors.whiteAlpha.100"}},_active:{[se.variable]:"colors.blackAlpha.200",_dark:{[se.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:se.reference}),Ws={lg:o({[ge.variable]:"sizes.10",fontSize:"md"}),md:o({[ge.variable]:"sizes.8",fontSize:"xs"}),sm:o({[ge.variable]:"sizes.6",fontSize:"2xs"})},Vs=h({baseStyle:Hs,sizes:Ws,defaultProps:{size:"md"}}),{variants:Ls,defaultProps:qs}=he,Ns=o({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:g.bg.reference,color:g.color.reference,boxShadow:g.shadow.reference}),Os=h({baseStyle:Ns,variants:Ls,defaultProps:qs}),Gs=o({w:"100%",mx:"auto",maxW:"prose",px:"4"}),Us=h({baseStyle:Gs}),Ys=o({opacity:.6,borderColor:"inherit"}),Ks=o({borderStyle:"solid"}),Xs=o({borderStyle:"dashed"}),Js={solid:Ks,dashed:Xs},Qs=h({baseStyle:Ys,variants:Js,defaultProps:{variant:"solid"}}),{definePartsStyle:Zs,defineMultiStyleConfig:e0}=b(za.keys),r0=o({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),a0=o({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),o0=o({pt:"2",px:"4",pb:"5"}),t0=o({fontSize:"1.25em"}),i0=Zs({container:r0,button:a0,panel:o0,icon:t0}),n0=e0({baseStyle:i0}),{definePartsStyle:ke,defineMultiStyleConfig:l0}=b(go.keys),k=d("alert-fg"),E=d("alert-bg"),s0=ke({container:{bg:E.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:k.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:k.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function wr(e){const{theme:r,colorScheme:a}=e,i=ae(`${a}.200`,.16)(r);return{light:`colors.${a}.100`,dark:i}}var d0=ke(e=>{const{colorScheme:r}=e,a=wr(e);return{container:{[k.variable]:`colors.${r}.500`,[E.variable]:a.light,_dark:{[k.variable]:`colors.${r}.200`,[E.variable]:a.dark}}}}),c0=ke(e=>{const{colorScheme:r}=e,a=wr(e);return{container:{[k.variable]:`colors.${r}.500`,[E.variable]:a.light,_dark:{[k.variable]:`colors.${r}.200`,[E.variable]:a.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:k.reference}}}),b0=ke(e=>{const{colorScheme:r}=e,a=wr(e);return{container:{[k.variable]:`colors.${r}.500`,[E.variable]:a.light,_dark:{[k.variable]:`colors.${r}.200`,[E.variable]:a.dark},pt:"2",borderTopWidth:"4px",borderTopColor:k.reference}}}),v0=ke(e=>{const{colorScheme:r}=e;return{container:{[k.variable]:"colors.white",[E.variable]:`colors.${r}.500`,_dark:{[k.variable]:"colors.gray.900",[E.variable]:`colors.${r}.200`},color:k.reference}}}),u0={subtle:d0,"left-accent":c0,"top-accent":b0,solid:v0},f0=l0({baseStyle:s0,variants:u0,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:qa,defineMultiStyleConfig:h0}=b(yo.keys),re=d("avatar-border-color"),ye=d("avatar-bg"),$e=d("avatar-font-size"),oe=d("avatar-size"),m0=o({borderRadius:"full",border:"0.2em solid",borderColor:re.reference,[re.variable]:"white",_dark:{[re.variable]:"colors.gray.800"}}),g0=o({bg:ye.reference,fontSize:$e.reference,width:oe.reference,height:oe.reference,lineHeight:"1",[ye.variable]:"colors.gray.200",_dark:{[ye.variable]:"colors.whiteAlpha.400"}}),y0=o(e=>{const{name:r,theme:a}=e,i=r?_t({string:r}):"colors.gray.400",n=$t(i)(a);let l="white";return n||(l="gray.800"),{bg:ye.reference,fontSize:$e.reference,color:l,borderColor:re.reference,verticalAlign:"top",width:oe.reference,height:oe.reference,"&:not([data-loaded])":{[ye.variable]:i},[re.variable]:"colors.white",_dark:{[re.variable]:"colors.gray.800"}}}),p0=o({fontSize:$e.reference,lineHeight:"1"}),S0=qa(e=>({badge:S(m0,e),excessLabel:S(g0,e),container:S(y0,e),label:p0}));function R(e){const r=e!=="100%"?Ma[e]:void 0;return qa({container:{[oe.variable]:r??e,[$e.variable]:`calc(${r??e} / 2.5)`},excessLabel:{[oe.variable]:r??e,[$e.variable]:`calc(${r??e} / 2.5)`}})}var x0={"2xs":R(4),xs:R(6),sm:R(8),md:R(12),lg:R(16),xl:R(24),"2xl":R(32),full:R("100%")},$0=h0({baseStyle:S0,sizes:x0,defaultProps:{size:"md"}}),k0={Accordion:n0,Alert:f0,Avatar:$0,Badge:he,Breadcrumb:_s,Button:Ms,Checkbox:Ke,CloseButton:Vs,Code:Os,Container:Us,Divider:Qs,Drawer:Kl,Editable:as,Form:ss,FormError:fs,FormLabel:ms,Heading:ps,Input:u,Kbd:Hn,Link:Vn,List:Gn,Menu:ol,Modal:fl,NumberInput:kl,PinInput:Cl,Popover:jl,Progress:Ni,Radio:on,Select:bn,Skeleton:un,SkipLink:hn,Slider:zn,Spinner:Pn,Stat:Rn,Switch:Wt,Table:Ut,Tabs:si,Tag:xi,Textarea:Mi,Tooltip:Di,Card:js,Stepper:tt},_0={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},w0={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},z0="ltr",C0={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Na={semanticTokens:_0,direction:z0,...rt,components:k0,styles:w0,config:C0};function ue(e){return typeof e=="function"}function A0(...e){return r=>e.reduce((a,i)=>i(a),r)}var P0=e=>function(...a){let i=[...a],n=a[a.length-1];return Fo(n)&&i.length>1?i=i.slice(0,i.length-1):n=e,A0(...i.map(l=>s=>ue(l)?l(s):F0(s,l)))(n)},T0=P0(Na);function F0(...e){return fa({},...e,Oa)}function Oa(e,r,a,i){if((ue(e)||ue(r))&&Object.prototype.hasOwnProperty.call(i,a))return(...n)=>{const l=ue(e)?e(...n):e,s=ue(r)?r(...n):r;return fa({},l,s,Oa)}}function I0(e={}){const{strict:r=!0,errorMessage:a="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,n=y.createContext(void 0);n.displayName=i;function l(){var s;const c=y.useContext(n);if(!c&&r){const v=new Error(a);throw v.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,v,l),v}return c}return[n.Provider,l,n]}function M0(e){const{cssVarsRoot:r,theme:a,children:i}=e,n=y.useMemo(()=>Za(a),[a]);return m.jsxs(eo,{theme:n,children:[m.jsx(B0,{root:r}),i]})}function B0({root:e=":host, :root"}){const r=[e,"[data-theme]"].join(",");return m.jsx(Je,{styles:a=>({[r]:a.__cssVars})})}I0({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function E0(){const{colorMode:e}=ro();return m.jsx(Je,{styles:r=>{const a=ao(r,"styles.global"),i=oo(a,{theme:r,colorMode:e});return i?to(i)(r):void 0}})}var Ga=y.createContext({getDocument(){return document},getWindow(){return window}});Ga.displayName="EnvironmentContext";function Ua(e){const{children:r,environment:a,disabled:i}=e,n=y.useRef(null),l=y.useMemo(()=>a||{getDocument:()=>{var c,v;return(v=(c=n.current)==null?void 0:c.ownerDocument)!=null?v:document},getWindow:()=>{var c,v;return(v=(c=n.current)==null?void 0:c.ownerDocument.defaultView)!=null?v:window}},[a]),s=!i||!a;return m.jsxs(Ga.Provider,{value:l,children:[r,s&&m.jsx("span",{id:"__chakra_env",hidden:!0,ref:n})]})}Ua.displayName="EnvironmentProvider";var D0=e=>{const{children:r,colorModeManager:a,portalZIndex:i,resetScope:n,resetCSS:l=!0,theme:s={},environment:c,cssVarsRoot:v,disableEnvironment:x,disableGlobalStyle:T}=e,N=m.jsx(Ua,{environment:c,disabled:x,children:r});return m.jsx(M0,{theme:s,cssVarsRoot:v,children:m.jsxs(Ta,{colorModeManager:a,options:s.config,children:[l?m.jsx(zo,{scope:n}):m.jsx(wo,{}),!T&&m.jsx(E0,{}),i?m.jsx(po,{zIndex:i,children:N}):N]})})},R0=e=>function({children:a,theme:i=e,toastOptions:n,...l}){return m.jsxs(D0,{theme:i,...l,children:[m.jsx(So,{value:n==null?void 0:n.defaultOptions,children:a}),m.jsx(xo,{...n})]})},j0=R0(Na);function _(e,r,a=!1){e=String(e),r=String(r);const i=Array.from({length:21},(s,c)=>c*50),n=[0,5,10,15,20,25,30,35,40,45,50,55,59,64,68,73,77,82,86,95,100];return i.reduce((s,c,v)=>{const x=a?n[v]/100:1,T=a?50:n[i.length-1-v];return s[c]=`hsl(${e} ${r}% ${T}% / ${x})`,s},{})}const Be={H:220,S:16},Ee={H:250,S:42},De={H:47,S:42},Re={H:28,S:42},je={H:113,S:42},He={H:0,S:42},H0={base:_(Be.H,Be.S),baseAlpha:_(Be.H,Be.S,!0),accent:_(Ee.H,Ee.S),accentAlpha:_(Ee.H,Ee.S,!0),working:_(De.H,De.S),workingAlpha:_(De.H,De.S,!0),warning:_(Re.H,Re.S),warningAlpha:_(Re.H,Re.S,!0),ok:_(je.H,je.S),okAlpha:_(je.H,je.S,!0),error:_(He.H,He.S),errorAlpha:_(He.H,He.S,!0)},{definePartsStyle:W0,defineMultiStyleConfig:V0}=b(za.keys),L0=o({border:"none"}),q0=o(e=>{const{colorScheme:r}=e;return{fontWeight:"600",fontSize:"sm",border:"none",borderRadius:"base",bg:t(`${r}.200`,`${r}.700`)(e),color:t(`${r}.900`,`${r}.100`)(e),_hover:{bg:t(`${r}.250`,`${r}.650`)(e)},_expanded:{bg:t(`${r}.250`,`${r}.650`)(e),borderBottomRadius:"none",_hover:{bg:t(`${r}.300`,`${r}.600`)(e)}}}}),N0=o(e=>{const{colorScheme:r}=e;return{bg:t(`${r}.100`,`${r}.800`)(e),borderRadius:"base",borderTopRadius:"none"}}),O0=o({}),G0=W0(e=>({container:L0,button:q0(e),panel:N0(e),icon:O0})),U0=V0({variants:{invokeAI:G0},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),Y0=o(e=>{const{colorScheme:r}=e;if(r==="base"){const n={bg:t("base.150","base.700")(e),color:t("base.300","base.500")(e),svg:{fill:t("base.500","base.500")(e)},opacity:1},l={bg:"none",color:t("base.300","base.500")(e),svg:{fill:t("base.500","base.500")(e)},opacity:1};return{bg:t("base.250","base.600")(e),color:t("base.850","base.100")(e),borderRadius:"base",svg:{fill:t("base.850","base.100")(e)},_hover:{bg:t("base.300","base.500")(e),color:t("base.900","base.50")(e),svg:{fill:t("base.900","base.50")(e)},_disabled:n},_disabled:n,'&[data-progress="true"]':{...l,_hover:l}}}const a={bg:t(`${r}.250`,`${r}.700`)(e),color:t(`${r}.50`,`${r}.500`)(e),svg:{fill:t(`${r}.50`,`${r}.500`)(e),filter:"unset"},opacity:1,filter:t(void 0,"saturate(65%)")(e)},i={color:t(`${r}.50`,`${r}.500`)(e),svg:{fill:t(`${r}.50`,`${r}.500`)(e),filter:"unset"},opacity:.7,filter:t(void 0,"saturate(65%)")(e)};return{bg:t(`${r}.400`,`${r}.600`)(e),color:t("base.50","base.100")(e),borderRadius:"base",svg:{fill:t("base.50","base.100")(e)},_disabled:a,_hover:{bg:t(`${r}.500`,`${r}.500`)(e),color:t("white","base.50")(e),svg:{fill:t("white","base.50")(e)},_disabled:a},'&[data-progress="true"]':{...i,_hover:i}}}),K0=o(e=>{const{colorScheme:r}=e,a=t("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:r==="gray"?a:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"}}}),X0=h({variants:{invokeAI:Y0,invokeAIOutline:K0},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),{definePartsStyle:J0,defineMultiStyleConfig:Q0}=b(pa.keys),Z0=o(e=>{const{colorScheme:r}=e;return{bg:t("base.200","base.700")(e),borderColor:t("base.300","base.600")(e),color:t("base.900","base.100")(e),_checked:{bg:t(`${r}.300`,`${r}.500`)(e),borderColor:t(`${r}.300`,`${r}.500`)(e),color:t(`${r}.900`,`${r}.100`)(e),_hover:{bg:t(`${r}.400`,`${r}.500`)(e),borderColor:t(`${r}.400`,`${r}.500`)(e)},_disabled:{borderColor:"transparent",bg:"whiteAlpha.300",color:"whiteAlpha.500"}},_indeterminate:{bg:t(`${r}.300`,`${r}.600`)(e),borderColor:t(`${r}.300`,`${r}.600`)(e),color:t(`${r}.900`,`${r}.100`)(e)},_disabled:{bg:"whiteAlpha.100",borderColor:"transparent"},_focusVisible:{boxShadow:"none",outline:"none"},_invalid:{borderColor:t("error.600","error.300")(e)}}}),ed=J0(e=>({control:Z0(e)})),rd=Q0({variants:{invokeAI:ed},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),{definePartsStyle:ad,defineMultiStyleConfig:od}=b(wa.keys),td=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),id=o(e=>({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6},"::selection":{color:t("accent.900","accent.50")(e),bg:t("accent.200","accent.400")(e)}})),nd=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),ld=ad(e=>({preview:td,input:id(e),textarea:nd})),sd=od({variants:{invokeAI:ld},defaultProps:{size:"sm",variant:"invokeAI"}}),dd=o(e=>({fontSize:"sm",marginEnd:0,mb:1,fontWeight:"400",transitionProperty:"common",transitionDuration:"normal",whiteSpace:"nowrap",_disabled:{opacity:.4},color:t("base.700","base.300")(e),_invalid:{color:t("error.500","error.300")(e)}})),cd=h({variants:{invokeAI:dd},defaultProps:{variant:"invokeAI"}}),er=e=>({outline:"none",borderWidth:2,borderStyle:"solid",borderColor:t("base.200","base.800")(e),bg:t("base.50","base.900")(e),borderRadius:"base",color:t("base.900","base.100")(e),boxShadow:"none",_hover:{borderColor:t("base.300","base.600")(e)},_focus:{borderColor:t("accent.200","accent.600")(e),boxShadow:"none",_hover:{borderColor:t("accent.300","accent.500")(e)}},_invalid:{borderColor:t("error.300","error.600")(e),boxShadow:"none",_hover:{borderColor:t("error.400","error.500")(e)}},_disabled:{borderColor:t("base.300","base.700")(e),bg:t("base.300","base.700")(e),color:t("base.600","base.400")(e),_hover:{borderColor:t("base.300","base.700")(e)}},_placeholder:{color:t("base.700","base.400")(e)},"::selection":{bg:t("accent.200","accent.400")(e)}}),{definePartsStyle:bd,defineMultiStyleConfig:vd}=b(ga.keys),ud=bd(e=>({field:er(e)})),fd=vd({variants:{invokeAI:ud},defaultProps:{size:"sm",variant:"invokeAI"}}),{defineMultiStyleConfig:hd,definePartsStyle:md}=b($a.keys),gd=o(e=>({bg:t("blackAlpha.700","blackAlpha.700")(e)})),yd=o({}),pd=o(()=>({layerStyle:"first",maxH:"80vh"})),Sd=o(()=>({fontWeight:"600",fontSize:"lg",layerStyle:"first",borderTopRadius:"base",borderInlineEndRadius:"base"})),xd=o({}),$d=o({overflowY:"scroll"}),kd=o({}),_d=md(e=>({overlay:gd(e),dialogContainer:yd,dialog:pd(),header:Sd(),closeButton:xd,body:$d,footer:kd})),wd=hd({variants:{invokeAI:_d},defaultProps:{variant:"invokeAI",size:"lg"}}),{defineMultiStyleConfig:zd,definePartsStyle:Cd}=b(ka.keys),Ad=o(e=>({height:8})),Pd=o(e=>({border:"none",fontWeight:"600",height:"auto",py:1,ps:2,pe:6,...er(e)})),Td=o(e=>({display:"flex"})),Fd=o(e=>({border:"none",px:2,py:0,mx:-2,my:0,svg:{color:t("base.700","base.300")(e),width:2.5,height:2.5,_hover:{color:t("base.900","base.100")(e)}}})),Id=Cd(e=>({root:Ad(e),field:Pd(e),stepperGroup:Td(e),stepper:Fd(e)})),Md=zd({variants:{invokeAI:Id},defaultProps:{size:"sm",variant:"invokeAI"}}),{defineMultiStyleConfig:Bd,definePartsStyle:Ed}=b(_a.keys),Dd=f("popper-bg"),Rd=f("popper-arrow-bg"),jd=f("popper-arrow-shadow-color"),Hd=o(e=>({[Rd.variable]:t("colors.base.100","colors.base.800")(e),[Dd.variable]:t("colors.base.100","colors.base.800")(e),[jd.variable]:t("colors.base.400","colors.base.600")(e),minW:"unset",width:"unset",p:4,bg:t("base.100","base.800")(e),border:"none",shadow:"dark-lg"})),Wd=Ed(e=>({content:Hd(e)})),Vd=Bd({variants:{invokeAI:Wd},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:Ld,definePartsStyle:qd}=b(ya.keys),Nd=o(e=>({bg:"accentAlpha.700"})),Od=o(e=>{const{colorScheme:r}=e;return{bg:t(`${r}.200`,`${r}.700`)(e)}}),Gd=qd(e=>({filledTrack:Nd(e),track:Od(e)})),Ud=Ld({variants:{invokeAI:Gd},defaultProps:{variant:"invokeAI"}}),Yd={"::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},{definePartsStyle:Kd,defineMultiStyleConfig:Xd}=b(Sa.keys),Jd=o(e=>({color:t("base.200","base.300")(e)})),Qd=o(e=>({fontWeight:"600",...er(e)})),Zd=Kd(e=>({field:Qd(e),icon:Jd(e)})),ec=Xd({variants:{invokeAI:Zd},defaultProps:{size:"sm",variant:"invokeAI"}}),ca=d("skeleton-start-color"),ba=d("skeleton-end-color"),rc=o({borderRadius:"base",maxW:"full",maxH:"full",_light:{[ca.variable]:"colors.base.250",[ba.variable]:"colors.base.450"},_dark:{[ca.variable]:"colors.base.700",[ba.variable]:"colors.base.500"}}),ac=h({variants:{invokeAI:rc},defaultProps:{variant:"invokeAI"}}),{definePartsStyle:oc,defineMultiStyleConfig:tc}=b(xa.keys),ic=o(e=>({bg:t("base.400","base.600")(e),h:1.5})),nc=o(e=>{const{colorScheme:r}=e;return{bg:t(`${r}.400`,`${r}.600`)(e),h:1.5}}),lc=o(e=>({w:e.orientation==="horizontal"?2:4,h:e.orientation==="horizontal"?4:2,bg:t("base.50","base.100")(e)})),sc=o(e=>({fontSize:"2xs",fontWeight:"500",color:t("base.700","base.400")(e),mt:2,insetInlineStart:"unset"})),dc=oc(e=>({container:{_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},track:ic(e),filledTrack:nc(e),thumb:lc(e),mark:sc(e)})),cc=tc({variants:{invokeAI:dc},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:bc,definePartsStyle:vc}=b(ha.keys),uc=o(e=>{const{colorScheme:r}=e;return{bg:t("base.300","base.600")(e),_focusVisible:{boxShadow:"none"},_checked:{bg:t(`${r}.400`,`${r}.500`)(e)}}}),fc=o(e=>{const{colorScheme:r}=e;return{bg:t(`${r}.50`,`${r}.50`)(e)}}),hc=vc(e=>({container:{},track:uc(e),thumb:fc(e)})),mc=bc({variants:{invokeAI:hc},defaultProps:{size:"md",variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:gc,definePartsStyle:Ya}=b(ma.keys),yc=o(e=>({display:"flex",columnGap:4})),pc=o(e=>({})),Sc=o(e=>{const{colorScheme:r}=e;return{display:"flex",flexDirection:"column",gap:1,color:t("base.700","base.400")(e),button:{fontSize:"sm",padding:2,borderRadius:"base",textShadow:t("0 0 0.3rem var(--invokeai-colors-accent-100)","0 0 0.3rem var(--invokeai-colors-accent-900)")(e),svg:{fill:t("base.700","base.300")(e)},_selected:{bg:t("accent.400","accent.600")(e),color:t("base.50","base.100")(e),svg:{fill:t("base.50","base.100")(e),filter:t(`drop-shadow(0px 0px 0.3rem var(--invokeai-colors-${r}-600))`,`drop-shadow(0px 0px 0.3rem var(--invokeai-colors-${r}-800))`)(e)},_hover:{bg:t("accent.500","accent.500")(e),color:t("white","base.50")(e),svg:{fill:t("white","base.50")(e)}}},_hover:{bg:t("base.100","base.800")(e),color:t("base.900","base.50")(e),svg:{fill:t("base.800","base.100")(e)}}}}}),xc=o(e=>({padding:0,height:"100%"})),$c=Ya(e=>({root:yc(e),tab:pc(e),tablist:Sc(e),tabpanel:xc(e)})),kc=Ya(e=>({tab:{borderTopRadius:"base",px:4,py:1,fontSize:"sm",color:t("base.600","base.400")(e),fontWeight:500,_selected:{color:t("accent.600","accent.400")(e)}},tabpanel:{p:0,pt:4,w:"full",h:"full"},tabpanels:{w:"full",h:"full"}})),_c=gc({variants:{line:kc,appTabs:$c},defaultProps:{variant:"appTabs",colorScheme:"accent"}}),wc=o(e=>({color:t("base.500","base.400")(e)})),zc=h({variants:{subtext:wc}}),Cc=o(e=>({...er(e),"::-webkit-scrollbar":{display:"initial"},"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`}},_dark:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`}}},p:2})),Ac=h({variants:{invokeAI:Cc},defaultProps:{size:"md",variant:"invokeAI"}}),Pc=f("popper-arrow-bg"),Tc=o(e=>({borderRadius:"base",shadow:"dark-lg",bg:t("base.700","base.200")(e),[Pc.variable]:t("colors.base.700","colors.base.200")(e),pb:1.5})),Fc=h({baseStyle:Tc}),va={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},Ic={".react-flow__nodesselection-rect":{...va,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":va},Mc={config:{cssVarPrefix:"invokeai",initialColorMode:"dark",useSystemColorMode:!1},layerStyles:{body:{bg:"base.50",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.50"}},first:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.850",color:"base.100"}},second:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},third:{bg:"base.300",color:"base.900",".chakra-ui-dark &":{bg:"base.750",color:"base.100"}},nodeBody:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},nodeHeader:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}},nodeFooter:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...Yd},...Ic})},direction:"ltr",fonts:{body:"'Inter Variable', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"},selected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-400)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-500)"},hoverSelected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-400)"},hoverUnselected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 3px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 3px var(--invokeai-colors-accent-400)"},nodeSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-400)",dark:"0 0 0 3px var(--invokeai-colors-accent-500)"},nodeHovered:{light:"0 0 0 2px var(--invokeai-colors-accent-500)",dark:"0 0 0 2px var(--invokeai-colors-accent-400)"},nodeHoveredSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-500)",dark:"0 0 0 3px var(--invokeai-colors-accent-400)"},nodeInProgress:{light:"0 0 0 2px var(--invokeai-colors-accent-500), 0 0 10px 2px var(--invokeai-colors-accent-600)",dark:"0 0 0 2px var(--invokeai-colors-yellow-400), 0 0 20px 2px var(--invokeai-colors-orange-700)"}},colors:H0,components:{Button:X0,Input:fd,Editable:sd,Textarea:Ac,Tabs:_c,Progress:Ud,Accordion:U0,FormLabel:cd,Switch:mc,NumberInput:Md,Select:ec,Skeleton:ac,Slider:cc,Popover:Vd,Modal:wd,Checkbox:rd,Menu:$o,Text:zc,Tooltip:Fc}};const Bc=()=>y.useMemo(()=>({colorScheme:"dark",fontFamily:"'Inter Variable', sans-serif",components:{ScrollArea:{defaultProps:{scrollbarSize:10},styles:{scrollbar:{"&:hover":{backgroundColor:"var(--invokeai-colors-baseAlpha-300)"}},thumb:{backgroundColor:"var(--invokeai-colors-baseAlpha-300)"}}}}}),[]),Ec=Pa("@@invokeai-color-mode");function Dc({children:e}){const{i18n:r}=ko(),a=r.dir(),i=y.useMemo(()=>T0({...Mc,direction:a}),[a]);y.useEffect(()=>{document.body.dir=a},[a]);const n=Bc();return m.jsx(_o,{theme:n,children:m.jsx(j0,{theme:i,colorModeManager:Ec,children:e})})}const Hc=y.memo(Dc);export{Hc as default};