InvokeAI/invokeai/frontend/web/dist/assets/ThemeLocaleProvider-e23d0dbb.js
2023-03-07 08:39:44 +13:00

316 lines
73 KiB
JavaScript

import{j as y,cM as Ie,r as _,cN as bt,q as Vr,cO as o,cP as b,cQ as v,cR as S,cS as Lr,cT as ut,cU as vt,cV as ft,cW as mt,n as ht,cX as gt,E as pt}from"./index-b928084d.js";import{d as yt,i as St,T as xt,j as $t,s as kt,g as _t}from"./scrollbar-f59ed469.js";var Or=`
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
`,wt=()=>y.jsx(Ie,{styles:Or}),Ct=()=>y.jsx(Ie,{styles:`
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%;
font-feature-settings: 'kern';
}
*,
*::before,
*::after {
border-width: 0;
border-style: solid;
box-sizing: border-box;
}
main {
display: block;
}
hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
b,
strong {
font-weight: bold;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
input[type="number"] {
-moz-appearance: textfield;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
body,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background: transparent;
padding: 0;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
button,
[role="button"] {
cursor: pointer;
}
button::-moz-focus-inner {
border: 0 !important;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
}
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;
}
select::-ms-expand {
display: none;
}
${Or}
`}),pe={light:"chakra-ui-light",dark:"chakra-ui-dark"};function zt(e={}){const{preventTransition:r=!0}=e,t={setDataset:a=>{const n=r?t.preventTransition():void 0;document.documentElement.dataset.theme=a,document.documentElement.style.colorScheme=a,n==null||n()},setClassName(a){document.body.classList.add(a?pe.dark:pe.light),document.body.classList.remove(a?pe.light:pe.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(a){var n;return((n=t.query().matches)!=null?n:a==="dark")?"dark":"light"},addListener(a){const n=t.query(),i=l=>{a(l.matches?"dark":"light")};return typeof n.addListener=="function"?n.addListener(i):n.addEventListener("change",i),()=>{typeof n.removeListener=="function"?n.removeListener(i):n.removeEventListener("change",i)}},preventTransition(){const a=document.createElement("style");return a.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(a),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(a)})})}}};return t}var At="chakra-ui-color-mode";function Pt(e){return{ssr:!1,type:"localStorage",get(r){if(!(globalThis!=null&&globalThis.document))return r;let t;try{t=localStorage.getItem(e)||r}catch{}return t||r},set(r){try{localStorage.setItem(e,r)}catch{}}}}var Tt=Pt(At),lr=()=>{};function sr(e,r){return e.type==="cookie"&&e.ssr?e.get(r):r}function qr(e){const{value:r,children:t,options:{useSystemColorMode:a,initialColorMode:n,disableTransitionOnChange:i}={},colorModeManager:l=Tt}=e,d=n==="dark"?"dark":"light",[c,$]=_.useState(()=>sr(l,d)),[h,g]=_.useState(()=>sr(l)),{getSystemTheme:k,setClassName:F,setDataset:me,addListener:nr}=_.useMemo(()=>zt({preventTransition:i}),[i]),he=n==="system"&&!c?h:c,I=_.useCallback(re=>{const ge=re==="system"?k():re;$(ge),F(ge==="dark"),me(ge),l.set(ge)},[l,k,F,me]);yt(()=>{n==="system"&&g(k())},[]),_.useEffect(()=>{const re=l.get();if(re){I(re);return}if(n==="system"){I("system");return}I(d)},[l,d,n,I]);const ir=_.useCallback(()=>{I(he==="dark"?"light":"dark")},[he,I]);_.useEffect(()=>{if(a)return nr(I)},[a,nr,I]);const ct=_.useMemo(()=>({colorMode:r??he,toggleColorMode:r?lr:ir,setColorMode:r?lr:I,forced:r!==void 0}),[he,ir,I,r]);return y.jsx(bt.Provider,{value:ct,children:t})}qr.displayName="ColorModeProvider";var Ft=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function It(e){return Vr(e)?Ft.every(r=>Object.prototype.hasOwnProperty.call(e,r)):!1}var Bt={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},Mt=Bt,Et={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Dt=Et,jt={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"}},Rt=jt,Wt={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Ht=Wt,Vt={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"},Lt=Vt,Ot={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"},qt={"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)"},Nt={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Gt={property:Ot,easing:qt,duration:Nt},Ut=Gt,Yt={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Xt=Yt,Kt={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Qt=Kt,Zt={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"}},Nr=Zt,Gr={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"},Jt={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"},eo={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ro={...Gr,...Jt,container:eo},Ur=ro,to={breakpoints:Dt,zIndices:Mt,radii:Ht,blur:Xt,colors:Rt,...Nr,sizes:Ur,shadows:Lt,space:Gr,borders:Qt,transition:Ut};function f(e,r={}){let t=!1;function a(){if(!t){t=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...h){a();for(const g of h)r[g]=c(g);return f(e,r)}function i(...h){for(const g of h)g in r||(r[g]=c(g));return f(e,r)}function l(){return Object.fromEntries(Object.entries(r).map(([g,k])=>[g,k.selector]))}function d(){return Object.fromEntries(Object.entries(r).map(([g,k])=>[g,k.className]))}function c(h){const F=`chakra-${(["container","root"].includes(h??"")?[e]:[e,h]).filter(Boolean).join("__")}`;return{className:F,selector:`.${F}`,toString:()=>h}}return{parts:n,toPart:c,extend:i,selectors:l,classnames:d,get keys(){return Object.keys(r)},__type:{}}}var oo=f("accordion").parts("root","container","button","panel").extend("icon"),ao=f("alert").parts("title","description","container").extend("icon","spinner"),no=f("avatar").parts("label","badge","container").extend("excessLabel","group"),io=f("breadcrumb").parts("link","item","container").extend("separator");f("button").parts();var lo=f("checkbox").parts("control","icon","container").extend("label");f("progress").parts("track","filledTrack").extend("label");var so=f("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),co=f("editable").parts("preview","input","textarea"),bo=f("form").parts("container","requiredIndicator","helperText"),uo=f("formError").parts("text","icon"),vo=f("input").parts("addon","field","element"),fo=f("list").parts("container","item","icon"),mo=f("menu").parts("button","list","item").extend("groupTitle","command","divider"),ho=f("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),go=f("numberinput").parts("root","field","stepperGroup","stepper");f("pininput").parts("field");var po=f("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),yo=f("progress").parts("label","filledTrack","track"),So=f("radio").parts("container","control","label"),xo=f("select").parts("field","icon"),$o=f("slider").parts("container","track","thumb","filledTrack","mark"),ko=f("stat").parts("container","label","helpText","number","icon"),_o=f("switch").parts("container","track","thumb"),wo=f("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Co=f("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),zo=f("tag").parts("container","label","closeButton"),Ao=f("card").parts("container","header","body","footer");function q(e,r,t){return Math.min(Math.max(e,t),r)}class Po extends Error{constructor(r){super(`Failed to parse color: "${r}"`)}}var ae=Po;function Je(e){if(typeof e!="string")throw new ae(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let r=e.trim();r=jo.test(e)?Io(e):e;const t=Bo.exec(r);if(t){const l=Array.from(t).slice(1);return[...l.slice(0,3).map(d=>parseInt(be(d,2),16)),parseInt(be(l[3]||"f",2),16)/255]}const a=Mo.exec(r);if(a){const l=Array.from(a).slice(1);return[...l.slice(0,3).map(d=>parseInt(d,16)),parseInt(l[3]||"ff",16)/255]}const n=Eo.exec(r);if(n){const l=Array.from(n).slice(1);return[...l.slice(0,3).map(d=>parseInt(d,10)),parseFloat(l[3]||"1")]}const i=Do.exec(r);if(i){const[l,d,c,$]=Array.from(i).slice(1).map(parseFloat);if(q(0,100,d)!==d)throw new ae(e);if(q(0,100,c)!==c)throw new ae(e);return[...Ro(l,d,c),Number.isNaN($)?1:$]}throw new ae(e)}function To(e){let r=5381,t=e.length;for(;t;)r=r*33^e.charCodeAt(--t);return(r>>>0)%2341}const dr=e=>parseInt(e.replace(/_/g,""),36),Fo="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 t=dr(r.substring(0,3)),a=dr(r.substring(3)).toString(16);let n="";for(let i=0;i<6-a.length;i++)n+="0";return e[t]=`${n}${a}`,e},{});function Io(e){const r=e.toLowerCase().trim(),t=Fo[To(r)];if(!t)throw new ae(e);return`#${t}`}const be=(e,r)=>Array.from(Array(r)).map(()=>e).join(""),Bo=new RegExp(`^#${be("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Mo=new RegExp(`^#${be("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Eo=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${be(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Do=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,jo=/^[a-z]+$/i,cr=e=>Math.round(e*255),Ro=(e,r,t)=>{let a=t/100;if(r===0)return[a,a,a].map(cr);const n=(e%360+360)%360/60,i=(1-Math.abs(2*a-1))*(r/100),l=i*(1-Math.abs(n%2-1));let d=0,c=0,$=0;n>=0&&n<1?(d=i,c=l):n>=1&&n<2?(d=l,c=i):n>=2&&n<3?(c=i,$=l):n>=3&&n<4?(c=l,$=i):n>=4&&n<5?(d=l,$=i):n>=5&&n<6&&(d=i,$=l);const h=a-i/2,g=d+h,k=c+h,F=$+h;return[g,k,F].map(cr)};function Wo(e,r,t,a){return`rgba(${q(0,255,e).toFixed()}, ${q(0,255,r).toFixed()}, ${q(0,255,t).toFixed()}, ${parseFloat(q(0,1,a).toFixed(3))})`}function Ho(e,r){const[t,a,n,i]=Je(e);return Wo(t,a,n,i-r)}function Vo(e){const[r,t,a,n]=Je(e);let i=l=>{const d=q(0,255,l).toString(16);return d.length===1?`0${d}`:d};return`#${i(r)}${i(t)}${i(a)}${n<1?i(Math.round(n*255)):""}`}function Lo(e,r,t,a,n){for(r=r.split?r.split("."):r,a=0;a<r.length;a++)e=e?e[r[a]]:n;return e===n?t:e}var Oo=e=>Object.keys(e).length===0,w=(e,r,t)=>{const a=Lo(e,`colors.${r}`,r);try{return Vo(a),a}catch{return t??"#000000"}},qo=e=>{const[r,t,a]=Je(e);return(r*299+t*587+a*114)/1e3},No=e=>r=>{const t=w(r,e);return qo(t)<128?"dark":"light"},Go=e=>r=>No(e)(r)==="dark",ee=(e,r)=>t=>{const a=w(t,e);return Ho(a,1-r)};function br(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 Uo=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Yo(e){const r=Uo();return!e||Oo(e)?r:e.string&&e.colors?Ko(e.string,e.colors):e.string&&!e.colors?Xo(e.string):e.colors&&!e.string?Qo(e.colors):r}function Xo(e){let r=0;if(e.length===0)return r.toString();for(let a=0;a<e.length;a+=1)r=e.charCodeAt(a)+((r<<5)-r),r=r&r;let t="#";for(let a=0;a<3;a+=1){const n=r>>a*8&255;t+=`00${n.toString(16)}`.substr(-2)}return t}function Ko(e,r){let t=0;if(e.length===0)return r[0];for(let a=0;a<e.length;a+=1)t=e.charCodeAt(a)+((t<<5)-t),t=t&t;return t=(t%r.length+r.length)%r.length,r[t]}function Qo(e){return e[Math.floor(Math.random()*e.length)]}function s(e,r){return t=>t.colorMode==="dark"?r:e}function er(e){const{orientation:r,vertical:t,horizontal:a}=e;return r?r==="vertical"?t:a:{}}function Yr(e){return Vr(e)&&e.reference?e.reference:String(e)}var Be=(e,...r)=>r.map(Yr).join(` ${e} `).replace(/calc/g,""),ur=(...e)=>`calc(${Be("+",...e)})`,vr=(...e)=>`calc(${Be("-",...e)})`,Xe=(...e)=>`calc(${Be("*",...e)})`,fr=(...e)=>`calc(${Be("/",...e)})`,mr=e=>{const r=Yr(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:Xe(r,-1)},D=Object.assign(e=>({add:(...r)=>D(ur(e,...r)),subtract:(...r)=>D(vr(e,...r)),multiply:(...r)=>D(Xe(e,...r)),divide:(...r)=>D(fr(e,...r)),negate:()=>D(mr(e)),toString:()=>e.toString()}),{add:ur,subtract:vr,multiply:Xe,divide:fr,negate:mr});function Zo(e){return!Number.isInteger(parseFloat(e.toString()))}function Jo(e,r="-"){return e.replace(/\s+/g,r)}function Xr(e){const r=Jo(e.toString());return r.includes("\\.")?e:Zo(e)?r.replace(".","\\."):e}function ea(e,r=""){return[r,Xr(e)].filter(Boolean).join("-")}function ra(e,r){return`var(${Xr(e)}${r?`, ${r}`:""})`}function ta(e,r=""){return`--${ea(e,r)}`}function x(e,r){const t=ta(e,r==null?void 0:r.prefix);return{variable:t,reference:ra(t,oa(r==null?void 0:r.fallback))}}function oa(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:aa,definePartsStyle:we}=b(_o.keys),le=x("switch-track-width"),N=x("switch-track-height"),De=x("switch-track-diff"),na=D.subtract(le,N),Ke=x("switch-thumb-x"),te=x("switch-bg"),ia=o(e=>{const{colorScheme:r}=e;return{borderRadius:"full",p:"0.5",width:[le.reference],height:[N.reference],transitionProperty:"common",transitionDuration:"fast",[te.variable]:"colors.gray.300",_dark:{[te.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[te.variable]:`colors.${r}.500`,_dark:{[te.variable]:`colors.${r}.200`}},bg:te.reference}}),la=o({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[N.reference],height:[N.reference],_checked:{transform:`translateX(${Ke.reference})`}}),sa=we(e=>({container:{[De.variable]:na,[Ke.variable]:De.reference,_rtl:{[Ke.variable]:D(De).negate().toString()}},track:ia(e),thumb:la})),da={sm:we({container:{[le.variable]:"1.375rem",[N.variable]:"sizes.3"}}),md:we({container:{[le.variable]:"1.875rem",[N.variable]:"sizes.4"}}),lg:we({container:{[le.variable]:"2.875rem",[N.variable]:"sizes.6"}})},ca=aa({baseStyle:sa,sizes:da,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ba,definePartsStyle:X}=b(wo.keys),ua=X({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"}}),Pe=o({"&[data-is-numeric=true]":{textAlign:"end"}}),va=X(e=>{const{colorScheme:r}=e;return{th:{color:s("gray.600","gray.400")(e),borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},td:{borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},caption:{color:s("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),fa=X(e=>{const{colorScheme:r}=e;return{th:{color:s("gray.600","gray.400")(e),borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},td:{borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},caption:{color:s("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e)},td:{background:s(`${r}.100`,`${r}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),ma={simple:va,striped:fa,unstyled:o({})},ha={sm:X({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:X({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:X({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ga=ba({baseStyle:ua,variants:ma,sizes:ha,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),z=v("tabs-color"),T=v("tabs-bg"),ye=v("tabs-border-color"),{defineMultiStyleConfig:pa,definePartsStyle:E}=b(Co.keys),ya=o(e=>{const{orientation:r}=e;return{display:r==="vertical"?"flex":"block"}}),Sa=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}}}),xa=o(e=>{const{align:r="start",orientation:t}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:t==="vertical"?"column":"row"}}),$a=o({p:4}),ka=E(e=>({root:ya(e),tab:Sa(e),tablist:xa(e),tabpanel:$a})),_a={sm:E({tab:{py:1,px:4,fontSize:"sm"}}),md:E({tab:{fontSize:"md",py:2,px:4}}),lg:E({tab:{fontSize:"lg",py:3,px:4}})},wa=E(e=>{const{colorScheme:r,orientation:t}=e,a=t==="vertical",n=t==="vertical"?"borderStart":"borderBottom",i=a?"marginStart":"marginBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[z.variable]:`colors.${r}.600`,_dark:{[z.variable]:`colors.${r}.300`},borderColor:"currentColor"},_active:{[T.variable]:"colors.gray.200",_dark:{[T.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:z.reference,bg:T.reference}}}),Ca=E(e=>{const{colorScheme:r}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ye.variable]:"transparent",_selected:{[z.variable]:`colors.${r}.600`,[ye.variable]:"colors.white",_dark:{[z.variable]:`colors.${r}.300`,[ye.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ye.reference},color:z.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),za=E(e=>{const{colorScheme:r}=e;return{tab:{border:"1px solid",borderColor:"inherit",[T.variable]:"colors.gray.50",_dark:{[T.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[T.variable]:"colors.white",[z.variable]:`colors.${r}.600`,_dark:{[T.variable]:"colors.gray.800",[z.variable]:`colors.${r}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:z.reference,bg:T.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Aa=E(e=>{const{colorScheme:r,theme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:w(t,`${r}.700`),bg:w(t,`${r}.100`)}}}}),Pa=E(e=>{const{colorScheme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[z.variable]:"colors.gray.600",_dark:{[z.variable]:"inherit"},_selected:{[z.variable]:"colors.white",[T.variable]:`colors.${r}.600`,_dark:{[z.variable]:"colors.gray.800",[T.variable]:`colors.${r}.300`}},color:z.reference,bg:T.reference}}}),Ta=E({}),Fa={line:wa,enclosed:Ca,"enclosed-colored":za,"soft-rounded":Aa,"solid-rounded":Pa,unstyled:Ta},Ia=pa({baseStyle:ka,sizes:_a,variants:Fa,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Ba=o({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"}),K=v("badge-bg"),M=v("badge-color"),Ma=o(e=>{const{colorScheme:r,theme:t}=e,a=ee(`${r}.500`,.6)(t);return{[K.variable]:`colors.${r}.500`,[M.variable]:"colors.white",_dark:{[K.variable]:a,[M.variable]:"colors.whiteAlpha.800"},bg:K.reference,color:M.reference}}),Ea=o(e=>{const{colorScheme:r,theme:t}=e,a=ee(`${r}.200`,.16)(t);return{[K.variable]:`colors.${r}.100`,[M.variable]:`colors.${r}.800`,_dark:{[K.variable]:a,[M.variable]:`colors.${r}.200`},bg:K.reference,color:M.reference}}),Da=o(e=>{const{colorScheme:r,theme:t}=e,a=ee(`${r}.200`,.8)(t);return{[M.variable]:`colors.${r}.500`,_dark:{[M.variable]:a},color:M.reference,boxShadow:`inset 0 0 0px 1px ${M.reference}`}}),ja={solid:Ma,subtle:Ea,outline:Da},se=S({baseStyle:Ba,variants:ja,defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:Ra,definePartsStyle:G}=b(zo.keys),Wa=o({fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}}),Ha=o({lineHeight:1.2,overflow:"visible"}),Va=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}}),La=G({container:Wa,label:Ha,closeButton:Va}),Oa={sm:G({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:G({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:G({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},qa={subtle:G(e=>{var r;return{container:(r=se.variants)==null?void 0:r.subtle(e)}}),solid:G(e=>{var r;return{container:(r=se.variants)==null?void 0:r.solid(e)}}),outline:G(e=>{var r;return{container:(r=se.variants)==null?void 0:r.outline(e)}})},Na=Ra({variants:qa,baseStyle:La,sizes:Oa,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:j,defineMultiStyleConfig:Ga}=b(vo.keys),Ua=j({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),H={lg:o({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:o({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:o({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:o({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})},Ya={lg:j({field:H.lg,addon:H.lg}),md:j({field:H.md,addon:H.md}),sm:j({field:H.sm,addon:H.sm}),xs:j({field:H.xs,addon:H.xs})};function rr(e){const{focusBorderColor:r,errorBorderColor:t}=e;return{focusBorderColor:r||s("blue.500","blue.300")(e),errorBorderColor:t||s("red.500","red.300")(e)}}var Xa=j(e=>{const{theme:r}=e,{focusBorderColor:t,errorBorderColor:a}=rr(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:s("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:w(r,a),boxShadow:`0 0 0 1px ${w(r,a)}`},_focusVisible:{zIndex:1,borderColor:w(r,t),boxShadow:`0 0 0 1px ${w(r,t)}`}},addon:{border:"1px solid",borderColor:s("inherit","whiteAlpha.50")(e),bg:s("gray.100","whiteAlpha.300")(e)}}}),Ka=j(e=>{const{theme:r}=e,{focusBorderColor:t,errorBorderColor:a}=rr(e);return{field:{border:"2px solid",borderColor:"transparent",bg:s("gray.100","whiteAlpha.50")(e),_hover:{bg:s("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:w(r,a)},_focusVisible:{bg:"transparent",borderColor:w(r,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:s("gray.100","whiteAlpha.50")(e)}}}),Qa=j(e=>{const{theme:r}=e,{focusBorderColor:t,errorBorderColor:a}=rr(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:w(r,a),boxShadow:`0px 1px 0px 0px ${w(r,a)}`},_focusVisible:{borderColor:w(r,t),boxShadow:`0px 1px 0px 0px ${w(r,t)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Za=j({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Ja={outline:Xa,filled:Ka,flushed:Qa,unstyled:Za},u=Ga({baseStyle:Ua,sizes:Ya,variants:Ja,defaultProps:{size:"md",variant:"outline"}}),hr,en=o({...(hr=u.baseStyle)==null?void 0:hr.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),gr,pr,rn={outline:o(e=>{var r,t;return(t=(r=u.variants)==null?void 0:r.outline(e).field)!=null?t:{}}),flushed:o(e=>{var r,t;return(t=(r=u.variants)==null?void 0:r.flushed(e).field)!=null?t:{}}),filled:o(e=>{var r,t;return(t=(r=u.variants)==null?void 0:r.filled(e).field)!=null?t:{}}),unstyled:(pr=(gr=u.variants)==null?void 0:gr.unstyled.field)!=null?pr:{}},yr,Sr,xr,$r,kr,_r,wr,Cr,tn={xs:(Sr=(yr=u.sizes)==null?void 0:yr.xs.field)!=null?Sr:{},sm:($r=(xr=u.sizes)==null?void 0:xr.sm.field)!=null?$r:{},md:(_r=(kr=u.sizes)==null?void 0:kr.md.field)!=null?_r:{},lg:(Cr=(wr=u.sizes)==null?void 0:wr.lg.field)!=null?Cr:{}},on=S({baseStyle:en,sizes:tn,variants:rn,defaultProps:{size:"md",variant:"outline"}}),Se=x("tooltip-bg"),je=x("tooltip-fg"),an=x("popper-arrow-bg"),nn=o({bg:Se.reference,color:je.reference,[Se.variable]:"colors.gray.700",[je.variable]:"colors.whiteAlpha.900",_dark:{[Se.variable]:"colors.gray.300",[je.variable]:"colors.gray.900"},[an.variable]:Se.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),ln=S({baseStyle:nn}),{defineMultiStyleConfig:sn,definePartsStyle:ne}=b(yo.keys),dn=o(e=>{const{colorScheme:r,theme:t,isIndeterminate:a,hasStripe:n}=e,i=s(br(),br("1rem","rgba(0,0,0,0.1)"))(e),l=s(`${r}.500`,`${r}.200`)(e),d=`linear-gradient(
to right,
transparent 0%,
${w(t,l)} 50%,
transparent 100%
)`;return{...!a&&n&&i,...a?{bgImage:d}:{bgColor:l}}}),cn=o({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),bn=o(e=>({bg:s("gray.100","whiteAlpha.300")(e)})),un=o(e=>({transitionProperty:"common",transitionDuration:"slow",...dn(e)})),vn=ne(e=>({label:cn,filledTrack:un(e),track:bn(e)})),fn={xs:ne({track:{h:"1"}}),sm:ne({track:{h:"2"}}),md:ne({track:{h:"3"}}),lg:ne({track:{h:"4"}})},mn=sn({sizes:fn,baseStyle:vn,defaultProps:{size:"md",colorScheme:"blue"}}),hn=e=>typeof e=="function";function C(e,...r){return hn(e)?e(...r):e}var{definePartsStyle:Ce,defineMultiStyleConfig:gn}=b(lo.keys),de=v("checkbox-size"),pn=o(e=>{const{colorScheme:r}=e;return{w:de.reference,h:de.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:s(`${r}.500`,`${r}.200`)(e),borderColor:s(`${r}.500`,`${r}.200`)(e),color:s("white","gray.900")(e),_hover:{bg:s(`${r}.600`,`${r}.300`)(e),borderColor:s(`${r}.600`,`${r}.300`)(e)},_disabled:{borderColor:s("gray.200","transparent")(e),bg:s("gray.200","whiteAlpha.300")(e),color:s("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:s(`${r}.500`,`${r}.200`)(e),borderColor:s(`${r}.500`,`${r}.200`)(e),color:s("white","gray.900")(e)},_disabled:{bg:s("gray.100","whiteAlpha.100")(e),borderColor:s("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:s("red.500","red.300")(e)}}}),yn=o({_disabled:{cursor:"not-allowed"}}),Sn=o({userSelect:"none",_disabled:{opacity:.4}}),xn=o({transitionProperty:"transform",transitionDuration:"normal"}),$n=Ce(e=>({icon:xn,container:yn,control:C(pn,e),label:Sn})),kn={sm:Ce({control:{[de.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ce({control:{[de.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ce({control:{[de.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Te=gn({baseStyle:$n,sizes:kn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:_n,definePartsStyle:ze}=b(So.keys),wn=o(e=>{var r;const t=(r=C(Te.baseStyle,e))==null?void 0:r.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),Cn=ze(e=>{var r,t,a,n;return{label:(t=(r=Te).baseStyle)==null?void 0:t.call(r,e).label,container:(n=(a=Te).baseStyle)==null?void 0:n.call(a,e).container,control:wn(e)}}),zn={md:ze({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ze({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ze({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},An=_n({baseStyle:Cn,sizes:zn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Pn,definePartsStyle:Tn}=b(xo.keys),xe=v("select-bg"),zr,Fn=o({...(zr=u.baseStyle)==null?void 0:zr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:xe.reference,[xe.variable]:"colors.white",_dark:{[xe.variable]:"colors.gray.700"},"> option, > optgroup":{bg:xe.reference}}),In=o({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}),Bn=Tn({field:Fn,icon:In}),$e=o({paddingInlineEnd:"8"}),Ar,Pr,Tr,Fr,Ir,Br,Mr,Er,Mn={lg:{...(Ar=u.sizes)==null?void 0:Ar.lg,field:{...(Pr=u.sizes)==null?void 0:Pr.lg.field,...$e}},md:{...(Tr=u.sizes)==null?void 0:Tr.md,field:{...(Fr=u.sizes)==null?void 0:Fr.md.field,...$e}},sm:{...(Ir=u.sizes)==null?void 0:Ir.sm,field:{...(Br=u.sizes)==null?void 0:Br.sm.field,...$e}},xs:{...(Mr=u.sizes)==null?void 0:Mr.xs,field:{...(Er=u.sizes)==null?void 0:Er.xs.field,...$e},icon:{insetEnd:"1"}}},En=Pn({baseStyle:Bn,sizes:Mn,variants:u.variants,defaultProps:u.defaultProps}),Re=v("skeleton-start-color"),We=v("skeleton-end-color"),Dn=o({[Re.variable]:"colors.gray.100",[We.variable]:"colors.gray.400",_dark:{[Re.variable]:"colors.gray.800",[We.variable]:"colors.gray.600"},background:Re.reference,borderColor:We.reference,opacity:.7,borderRadius:"sm"}),jn=S({baseStyle:Dn}),He=v("skip-link-bg"),Rn=o({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[He.variable]:"colors.white",_dark:{[He.variable]:"colors.gray.700"},bg:He.reference}}),Wn=S({baseStyle:Rn}),{defineMultiStyleConfig:Hn,definePartsStyle:Me}=b($o.keys),ue=v("slider-thumb-size"),ve=v("slider-track-size"),L=v("slider-bg"),Vn=o(e=>{const{orientation:r}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...er({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),Ln=o(e=>({...er({orientation:e.orientation,horizontal:{h:ve.reference},vertical:{w:ve.reference}}),overflow:"hidden",borderRadius:"sm",[L.variable]:"colors.gray.200",_dark:{[L.variable]:"colors.whiteAlpha.200"},_disabled:{[L.variable]:"colors.gray.300",_dark:{[L.variable]:"colors.whiteAlpha.300"}},bg:L.reference})),On=o(e=>{const{orientation:r}=e;return{...er({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:ue.reference,h:ue.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"}}}),qn=o(e=>{const{colorScheme:r}=e;return{width:"inherit",height:"inherit",[L.variable]:`colors.${r}.500`,_dark:{[L.variable]:`colors.${r}.200`},bg:L.reference}}),Nn=Me(e=>({container:Vn(e),track:Ln(e),thumb:On(e),filledTrack:qn(e)})),Gn=Me({container:{[ue.variable]:"sizes.4",[ve.variable]:"sizes.1"}}),Un=Me({container:{[ue.variable]:"sizes.3.5",[ve.variable]:"sizes.1"}}),Yn=Me({container:{[ue.variable]:"sizes.2.5",[ve.variable]:"sizes.0.5"}}),Xn={lg:Gn,md:Un,sm:Yn},Kn=Hn({baseStyle:Nn,sizes:Xn,defaultProps:{size:"md",colorScheme:"blue"}}),O=x("spinner-size"),Qn=o({width:[O.reference],height:[O.reference]}),Zn={xs:o({[O.variable]:"sizes.3"}),sm:o({[O.variable]:"sizes.4"}),md:o({[O.variable]:"sizes.6"}),lg:o({[O.variable]:"sizes.8"}),xl:o({[O.variable]:"sizes.12"})},Jn=S({baseStyle:Qn,sizes:Zn,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ei,definePartsStyle:Kr}=b(ko.keys),ri=o({fontWeight:"medium"}),ti=o({opacity:.8,marginBottom:"2"}),oi=o({verticalAlign:"baseline",fontWeight:"semibold"}),ai=o({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}),ni=Kr({container:{},label:ri,helpText:ti,number:oi,icon:ai}),ii={md:Kr({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},li=ei({baseStyle:ni,sizes:ii,defaultProps:{size:"md"}}),Ve=v("kbd-bg"),si=o({[Ve.variable]:"colors.gray.100",_dark:{[Ve.variable]:"colors.whiteAlpha.100"},bg:Ve.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),di=S({baseStyle:si}),ci=o({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),bi=S({baseStyle:ci}),{defineMultiStyleConfig:ui,definePartsStyle:vi}=b(fo.keys),fi=o({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}),mi=vi({icon:fi}),hi=ui({baseStyle:mi}),{defineMultiStyleConfig:gi,definePartsStyle:pi}=b(mo.keys),B=v("menu-bg"),Le=v("menu-shadow"),yi=o({[B.variable]:"#fff",[Le.variable]:"shadows.sm",_dark:{[B.variable]:"colors.gray.700",[Le.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:B.reference,boxShadow:Le.reference}),Si=o({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[B.variable]:"colors.gray.100",_dark:{[B.variable]:"colors.whiteAlpha.100"}},_active:{[B.variable]:"colors.gray.200",_dark:{[B.variable]:"colors.whiteAlpha.200"}},_expanded:{[B.variable]:"colors.gray.100",_dark:{[B.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:B.reference}),xi=o({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),$i=o({opacity:.6}),ki=o({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),_i=o({transitionProperty:"common",transitionDuration:"normal"}),wi=pi({button:_i,list:yi,item:Si,groupTitle:xi,command:$i,divider:ki}),Ci=gi({baseStyle:wi}),{defineMultiStyleConfig:zi,definePartsStyle:Qe}=b(ho.keys),Ai=o({bg:"blackAlpha.600",zIndex:"modal"}),Pi=o(e=>{const{isCentered:r,scrollBehavior:t}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:t==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}}),Ti=o(e=>{const{scrollBehavior:r}=e;return{borderRadius:"md",bg:s("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:s("lg","dark-lg")(e)}}),Fi=o({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),Ii=o({position:"absolute",top:"2",insetEnd:"3"}),Bi=o(e=>{const{scrollBehavior:r}=e;return{px:"6",py:"2",flex:"1",overflow:r==="inside"?"auto":void 0}}),Mi=o({px:"6",py:"4"}),Ei=Qe(e=>({overlay:Ai,dialogContainer:C(Pi,e),dialog:C(Ti,e),header:Fi,closeButton:Ii,body:C(Bi,e),footer:Mi}));function P(e){return Qe(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Di={xs:P("xs"),sm:P("sm"),md:P("md"),lg:P("lg"),xl:P("xl"),"2xl":P("2xl"),"3xl":P("3xl"),"4xl":P("4xl"),"5xl":P("5xl"),"6xl":P("6xl"),full:P("full")},ji=zi({baseStyle:Ei,sizes:Di,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Ri,definePartsStyle:Qr}=b(go.keys),tr=x("number-input-stepper-width"),Zr=x("number-input-input-padding"),Wi=D(tr).add("0.5rem").toString(),Oe=x("number-input-bg"),qe=x("number-input-color"),Ne=x("number-input-border-color"),Hi=o({[tr.variable]:"sizes.6",[Zr.variable]:Wi}),Vi=o(e=>{var r,t;return(t=(r=C(u.baseStyle,e))==null?void 0:r.field)!=null?t:{}}),Li=o({width:tr.reference}),Oi=o({borderStart:"1px solid",borderStartColor:Ne.reference,color:qe.reference,bg:Oe.reference,[qe.variable]:"colors.chakra-body-text",[Ne.variable]:"colors.chakra-border-color",_dark:{[qe.variable]:"colors.whiteAlpha.800",[Ne.variable]:"colors.whiteAlpha.300"},_active:{[Oe.variable]:"colors.gray.200",_dark:{[Oe.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}}),qi=Qr(e=>{var r;return{root:Hi,field:(r=C(Vi,e))!=null?r:{},stepperGroup:Li,stepper:Oi}});function ke(e){var r,t,a;const n=(r=u.sizes)==null?void 0:r[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},l=(a=(t=n.field)==null?void 0:t.fontSize)!=null?a:"md",d=Nr.fontSizes[l];return Qr({field:{...n.field,paddingInlineEnd:Zr.reference,verticalAlign:"top"},stepper:{fontSize:D(d).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Ni={xs:ke("xs"),sm:ke("sm"),md:ke("md"),lg:ke("lg")},Gi=Ri({baseStyle:qi,sizes:Ni,variants:u.variants,defaultProps:u.defaultProps}),Dr,Ui=o({...(Dr=u.baseStyle)==null?void 0:Dr.field,textAlign:"center"}),Yi={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"})},jr,Rr,Xi={outline:o(e=>{var r,t,a;return(a=(t=C((r=u.variants)==null?void 0:r.outline,e))==null?void 0:t.field)!=null?a:{}}),flushed:o(e=>{var r,t,a;return(a=(t=C((r=u.variants)==null?void 0:r.flushed,e))==null?void 0:t.field)!=null?a:{}}),filled:o(e=>{var r,t,a;return(a=(t=C((r=u.variants)==null?void 0:r.filled,e))==null?void 0:t.field)!=null?a:{}}),unstyled:(Rr=(jr=u.variants)==null?void 0:jr.unstyled.field)!=null?Rr:{}},Ki=S({baseStyle:Ui,sizes:Yi,variants:Xi,defaultProps:u.defaultProps}),{defineMultiStyleConfig:Qi,definePartsStyle:Zi}=b(po.keys),_e=x("popper-bg"),Ji=x("popper-arrow-bg"),Wr=x("popper-arrow-shadow-color"),el=o({zIndex:10}),rl=o({[_e.variable]:"colors.white",bg:_e.reference,[Ji.variable]:_e.reference,[Wr.variable]:"colors.gray.200",_dark:{[_e.variable]:"colors.gray.700",[Wr.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),tl=o({px:3,py:2,borderBottomWidth:"1px"}),ol=o({px:3,py:2}),al=o({px:3,py:2,borderTopWidth:"1px"}),nl=o({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}),il=Zi({popper:el,content:rl,header:tl,body:ol,footer:al,closeButton:nl}),ll=Qi({baseStyle:il}),{definePartsStyle:Ze,defineMultiStyleConfig:sl}=b(so.keys),Ge=v("drawer-bg"),Ue=v("drawer-box-shadow");function Y(e){return Ze(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var dl=o({bg:"blackAlpha.600",zIndex:"overlay"}),cl=o({display:"flex",zIndex:"modal",justifyContent:"center"}),bl=o(e=>{const{isFullHeight:r}=e;return{...r&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Ge.variable]:"colors.white",[Ue.variable]:"shadows.lg",_dark:{[Ge.variable]:"colors.gray.700",[Ue.variable]:"shadows.dark-lg"},bg:Ge.reference,boxShadow:Ue.reference}}),ul=o({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),vl=o({position:"absolute",top:"2",insetEnd:"3"}),fl=o({px:"6",py:"2",flex:"1",overflow:"auto"}),ml=o({px:"6",py:"4"}),hl=Ze(e=>({overlay:dl,dialogContainer:cl,dialog:C(bl,e),header:ul,closeButton:vl,body:fl,footer:ml})),gl={xs:Y("xs"),sm:Y("md"),md:Y("lg"),lg:Y("2xl"),xl:Y("4xl"),full:Y("full")},pl=sl({baseStyle:hl,sizes:gl,defaultProps:{size:"xs"}}),{definePartsStyle:yl,defineMultiStyleConfig:Sl}=b(co.keys),xl=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),$l=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),kl=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),_l=yl({preview:xl,input:$l,textarea:kl}),wl=Sl({baseStyle:_l}),{definePartsStyle:Cl,defineMultiStyleConfig:zl}=b(bo.keys),Q=v("form-control-color"),Al=o({marginStart:"1",[Q.variable]:"colors.red.500",_dark:{[Q.variable]:"colors.red.300"},color:Q.reference}),Pl=o({mt:"2",[Q.variable]:"colors.gray.600",_dark:{[Q.variable]:"colors.whiteAlpha.600"},color:Q.reference,lineHeight:"normal",fontSize:"sm"}),Tl=Cl({container:{width:"100%",position:"relative"},requiredIndicator:Al,helperText:Pl}),Fl=zl({baseStyle:Tl}),{definePartsStyle:Il,defineMultiStyleConfig:Bl}=b(uo.keys),Z=v("form-error-color"),Ml=o({[Z.variable]:"colors.red.500",_dark:{[Z.variable]:"colors.red.300"},color:Z.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),El=o({marginEnd:"0.5em",[Z.variable]:"colors.red.500",_dark:{[Z.variable]:"colors.red.300"},color:Z.reference}),Dl=Il({text:Ml,icon:El}),jl=Bl({baseStyle:Dl}),Rl=o({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),Wl=S({baseStyle:Rl}),Hl=o({fontFamily:"heading",fontWeight:"bold"}),Vl={"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})},Ll=S({baseStyle:Hl,sizes:Vl,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:Ol,definePartsStyle:ql}=b(io.keys),Nl=o({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),Gl=ql({link:Nl}),Ul=Ol({baseStyle:Gl}),Yl=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"}}}),Jr=o(e=>{const{colorScheme:r,theme:t}=e;if(r==="gray")return{color:s("inherit","whiteAlpha.900")(e),_hover:{bg:s("gray.100","whiteAlpha.200")(e)},_active:{bg:s("gray.200","whiteAlpha.300")(e)}};const a=ee(`${r}.200`,.12)(t),n=ee(`${r}.200`,.24)(t);return{color:s(`${r}.600`,`${r}.200`)(e),bg:"transparent",_hover:{bg:s(`${r}.50`,a)(e)},_active:{bg:s(`${r}.100`,n)(e)}}}),Xl=o(e=>{const{colorScheme:r}=e,t=s("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:r==="gray"?t:"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"},...C(Jr,e)}}),Kl={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Ql=o(e=>{var r;const{colorScheme:t}=e;if(t==="gray"){const c=s("gray.100","whiteAlpha.200")(e);return{bg:c,_hover:{bg:s("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:s("gray.300","whiteAlpha.400")(e)}}}const{bg:a=`${t}.500`,color:n="white",hoverBg:i=`${t}.600`,activeBg:l=`${t}.700`}=(r=Kl[t])!=null?r:{},d=s(a,`${t}.200`)(e);return{bg:d,color:s(n,"gray.800")(e),_hover:{bg:s(i,`${t}.300`)(e),_disabled:{bg:d}},_active:{bg:s(l,`${t}.400`)(e)}}}),Zl=o(e=>{const{colorScheme:r}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:s(`${r}.500`,`${r}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:s(`${r}.700`,`${r}.500`)(e)}}}),Jl=o({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),es={ghost:Jr,outline:Xl,solid:Ql,link:Zl,unstyled:Jl},rs={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"})},ts=S({baseStyle:Yl,variants:es,sizes:rs,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:U,defineMultiStyleConfig:os}=b(Ao.keys),Fe=v("card-bg"),R=v("card-padding"),et=v("card-shadow"),Ae=v("card-radius"),rt=v("card-border-width","0"),tt=v("card-border-color"),as=U({container:{[Fe.variable]:"colors.chakra-body-bg",backgroundColor:Fe.reference,boxShadow:et.reference,borderRadius:Ae.reference,color:"chakra-body-text",borderWidth:rt.reference,borderColor:tt.reference},body:{padding:R.reference,flex:"1 1 0%"},header:{padding:R.reference},footer:{padding:R.reference}}),ns={sm:U({container:{[Ae.variable]:"radii.base",[R.variable]:"space.3"}}),md:U({container:{[Ae.variable]:"radii.md",[R.variable]:"space.5"}}),lg:U({container:{[Ae.variable]:"radii.xl",[R.variable]:"space.7"}})},is={elevated:U({container:{[et.variable]:"shadows.base",_dark:{[Fe.variable]:"colors.gray.700"}}}),outline:U({container:{[rt.variable]:"1px",[tt.variable]:"colors.chakra-border-color"}}),filled:U({container:{[Fe.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[R.variable]:0},header:{[R.variable]:0},footer:{[R.variable]:0}}},ls=os({baseStyle:as,variants:is,sizes:ns,defaultProps:{variant:"elevated",size:"md"}}),ce=x("close-button-size"),oe=x("close-button-bg"),ss=o({w:[ce.reference],h:[ce.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[oe.variable]:"colors.blackAlpha.100",_dark:{[oe.variable]:"colors.whiteAlpha.100"}},_active:{[oe.variable]:"colors.blackAlpha.200",_dark:{[oe.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:oe.reference}),ds={lg:o({[ce.variable]:"sizes.10",fontSize:"md"}),md:o({[ce.variable]:"sizes.8",fontSize:"xs"}),sm:o({[ce.variable]:"sizes.6",fontSize:"2xs"})},cs=S({baseStyle:ss,sizes:ds,defaultProps:{size:"md"}}),{variants:bs,defaultProps:us}=se,vs=o({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"}),fs=S({baseStyle:vs,variants:bs,defaultProps:us}),ms=o({w:"100%",mx:"auto",maxW:"prose",px:"4"}),hs=S({baseStyle:ms}),gs=o({opacity:.6,borderColor:"inherit"}),ps=o({borderStyle:"solid"}),ys=o({borderStyle:"dashed"}),Ss={solid:ps,dashed:ys},xs=S({baseStyle:gs,variants:Ss,defaultProps:{variant:"solid"}}),{definePartsStyle:$s,defineMultiStyleConfig:ks}=b(oo.keys),_s=o({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),ws=o({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),Cs=o({pt:"2",px:"4",pb:"5"}),zs=o({fontSize:"1.25em"}),As=$s({container:_s,button:ws,panel:Cs,icon:zs}),Ps=ks({baseStyle:As}),{definePartsStyle:fe,defineMultiStyleConfig:Ts}=b(ao.keys),A=v("alert-fg"),W=v("alert-bg"),Fs=fe({container:{bg:W.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:A.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:A.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function or(e){const{theme:r,colorScheme:t}=e,a=ee(`${t}.200`,.16)(r);return{light:`colors.${t}.100`,dark:a}}var Is=fe(e=>{const{colorScheme:r}=e,t=or(e);return{container:{[A.variable]:`colors.${r}.500`,[W.variable]:t.light,_dark:{[A.variable]:`colors.${r}.200`,[W.variable]:t.dark}}}}),Bs=fe(e=>{const{colorScheme:r}=e,t=or(e);return{container:{[A.variable]:`colors.${r}.500`,[W.variable]:t.light,_dark:{[A.variable]:`colors.${r}.200`,[W.variable]:t.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:A.reference}}}),Ms=fe(e=>{const{colorScheme:r}=e,t=or(e);return{container:{[A.variable]:`colors.${r}.500`,[W.variable]:t.light,_dark:{[A.variable]:`colors.${r}.200`,[W.variable]:t.dark},pt:"2",borderTopWidth:"4px",borderTopColor:A.reference}}}),Es=fe(e=>{const{colorScheme:r}=e;return{container:{[A.variable]:"colors.white",[W.variable]:`colors.${r}.500`,_dark:{[A.variable]:"colors.gray.900",[W.variable]:`colors.${r}.200`},color:A.reference}}}),Ds={subtle:Is,"left-accent":Bs,"top-accent":Ms,solid:Es},js=Ts({baseStyle:Fs,variants:Ds,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:ot,defineMultiStyleConfig:Rs}=b(no.keys),J=v("avatar-border-color"),Ye=v("avatar-bg"),Ws=o({borderRadius:"full",border:"0.2em solid",[J.variable]:"white",_dark:{[J.variable]:"colors.gray.800"},borderColor:J.reference}),Hs=o({[Ye.variable]:"colors.gray.200",_dark:{[Ye.variable]:"colors.whiteAlpha.400"},bgColor:Ye.reference}),Hr=v("avatar-background"),Vs=o(e=>{const{name:r,theme:t}=e,a=r?Yo({string:r}):"colors.gray.400",n=Go(a)(t);let i="white";return n||(i="gray.800"),{bg:Hr.reference,"&:not([data-loaded])":{[Hr.variable]:a},color:i,[J.variable]:"colors.white",_dark:{[J.variable]:"colors.gray.800"},borderColor:J.reference,verticalAlign:"top"}}),Ls=ot(e=>({badge:C(Ws,e),excessLabel:C(Hs,e),container:C(Vs,e)}));function V(e){const r=e!=="100%"?Ur[e]:void 0;return ot({container:{width:e,height:e,fontSize:`calc(${r??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${r??e} / 2.5)`,lineHeight:e!=="100%"?r??e:void 0}})}var Os={"2xs":V(4),xs:V(6),sm:V(8),md:V(12),lg:V(16),xl:V(24),"2xl":V(32),full:V("100%")},qs=Rs({baseStyle:Ls,sizes:Os,defaultProps:{size:"md"}}),Ns={Accordion:Ps,Alert:js,Avatar:qs,Badge:se,Breadcrumb:Ul,Button:ts,Checkbox:Te,CloseButton:cs,Code:fs,Container:hs,Divider:xs,Drawer:pl,Editable:wl,Form:Fl,FormError:jl,FormLabel:Wl,Heading:Ll,Input:u,Kbd:di,Link:bi,List:hi,Menu:Ci,Modal:ji,NumberInput:Gi,PinInput:Ki,Popover:ll,Progress:mn,Radio:An,Select:En,Skeleton:jn,SkipLink:Wn,Slider:Kn,Spinner:Jn,Stat:li,Switch:ca,Table:ga,Tabs:Ia,Tag:Na,Textarea:on,Tooltip:ln,Card:ls},Gs={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-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Us={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",wordWrap:"break-word"}}},Ys="ltr",Xs={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},at={semanticTokens:Gs,direction:Ys,...to,components:Ns,styles:Us,config:Xs};function ie(e){return typeof e=="function"}function Ks(...e){return r=>e.reduce((t,a)=>a(t),r)}var Qs=e=>function(...t){let a=[...t],n=t[t.length-1];return It(n)&&a.length>1?a=a.slice(0,a.length-1):n=e,Ks(...a.map(i=>l=>ie(i)?i(l):Js(l,i)))(n)},Zs=Qs(at);function Js(...e){return Lr({},...e,nt)}function nt(e,r,t,a){if((ie(e)||ie(r))&&Object.prototype.hasOwnProperty.call(a,t))return(...n)=>{const i=ie(e)?e(...n):e,l=ie(r)?r(...n):r;return Lr({},i,l,nt)}}function ed(e={}){const{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:a}=e,n=_.createContext(void 0);n.displayName=a;function i(){var l;const d=_.useContext(n);if(!d&&r){const c=new Error(t);throw c.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,c,i),c}return d}return[n.Provider,i,n]}function rd(e){const{cssVarsRoot:r,theme:t,children:a}=e,n=_.useMemo(()=>ut(t),[t]);return y.jsxs(vt,{theme:n,children:[y.jsx(td,{root:r}),a]})}function td({root:e=":host, :root"}){const r=[e,"[data-theme]"].join(",");return y.jsx(Ie,{styles:t=>({[r]:t.__cssVars})})}ed({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function od(){const{colorMode:e}=ft();return y.jsx(Ie,{styles:r=>{const t=mt(r,"styles.global"),a=ht(t,{theme:r,colorMode:e});return a?gt(a)(r):void 0}})}var it=_.createContext({getDocument(){return document},getWindow(){return window}});it.displayName="EnvironmentContext";function lt(e){const{children:r,environment:t,disabled:a}=e,n=_.useRef(null),i=_.useMemo(()=>t||{getDocument:()=>{var d,c;return(c=(d=n.current)==null?void 0:d.ownerDocument)!=null?c:document},getWindow:()=>{var d,c;return(c=(d=n.current)==null?void 0:d.ownerDocument.defaultView)!=null?c:window}},[t]),l=!a||!t;return y.jsxs(it.Provider,{value:i,children:[r,l&&y.jsx("span",{id:"__chakra_env",hidden:!0,ref:n})]})}lt.displayName="EnvironmentProvider";var ad=e=>{const{children:r,colorModeManager:t,portalZIndex:a,resetCSS:n=!0,theme:i={},environment:l,cssVarsRoot:d,disableEnvironment:c}=e,$=y.jsx(lt,{environment:l,disabled:c,children:r});return y.jsx(rd,{theme:i,cssVarsRoot:d,children:y.jsxs(qr,{colorModeManager:t,options:i.config,children:[n?y.jsx(Ct,{}):y.jsx(wt,{}),y.jsx(od,{}),a?y.jsx(St,{zIndex:a,children:$}):$]})})},nd=e=>function({children:t,theme:a=e,toastOptions:n,...i}){return y.jsxs(ad,{theme:a,...i,children:[y.jsx(xt,{value:n==null?void 0:n.defaultOptions,children:t}),y.jsx($t,{...n})]})},id=nd(at);function p(e,r,t=!1){e=String(e),r=String(r);const a=Array.from({length:21},(d,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"],i={},l={};return a.forEach((d,c)=>{i[d]=`hsl(${e}, ${r}%, ${n[a.length-1-c]}%)`,l[d]=`hsl(${e}, ${r}%, ${n[c]}%)`}),t?l:i}const st={base:p(225,15),accent:p(250,50),working:p(47,67),warning:p(28,75),ok:p(113,70),error:p(0,76)};function m(e,r={}){let t=!1;function a(){if(!t){t=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...h){a();for(const g of h)r[g]=c(g);return m(e,r)}function i(...h){for(const g of h)g in r||(r[g]=c(g));return m(e,r)}function l(){return Object.fromEntries(Object.entries(r).map(([g,k])=>[g,k.selector]))}function d(){return Object.fromEntries(Object.entries(r).map(([g,k])=>[g,k.className]))}function c(h){const F=`chakra-${(["container","root"].includes(h??"")?[e]:[e,h]).filter(Boolean).join("__")}`;return{className:F,selector:`.${F}`,toString:()=>h}}return{parts:n,toPart:c,extend:i,selectors:l,classnames:d,get keys(){return Object.keys(r)},__type:{}}}var ld=m("accordion").parts("root","container","button","panel").extend("icon");m("alert").parts("title","description","container").extend("icon","spinner");m("avatar").parts("label","badge","container").extend("excessLabel","group");m("breadcrumb").parts("link","item","container").extend("separator");m("button").parts();var sd=m("checkbox").parts("control","icon","container").extend("label");m("progress").parts("track","filledTrack").extend("label");m("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");m("editable").parts("preview","input","textarea");m("form").parts("container","requiredIndicator","helperText");m("formError").parts("text","icon");var dd=m("input").parts("addon","field","element");m("list").parts("container","item","icon");var cd=m("menu").parts("button","list","item").extend("groupTitle","command","divider"),bd=m("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ud=m("numberinput").parts("root","field","stepperGroup","stepper");m("pininput").parts("field");var vd=m("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),fd=m("progress").parts("label","filledTrack","track");m("radio").parts("container","control","label");var md=m("select").parts("field","icon"),hd=m("slider").parts("container","track","thumb","filledTrack","mark");m("stat").parts("container","label","helpText","number","icon");var gd=m("switch").parts("container","track","thumb");m("table").parts("table","thead","tbody","tr","th","td","tfoot","caption");var pd=m("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");m("tag").parts("container","label","closeButton");m("card").parts("container","header","body","footer");const{definePartsStyle:yd,defineMultiStyleConfig:Sd}=b(ld.keys),xd=o({border:"none",pt:2}),$d=o(e=>{const{colorScheme:r}=e;return{fontWeight:"600",fontSize:"sm",border:"none",borderRadius:"base",bg:`${r}.800`,color:"base.100",_hover:{bg:`${r}.700`},_expanded:{bg:`${r}.750`,borderBottomRadius:"none",_hover:{bg:`${r}.700`}}}}),kd=o(e=>{const{colorScheme:r}=e;return{bg:`${r}.800`,borderRadius:"base",borderTopRadius:"none",p:4}}),_d=o({}),wd=yd(e=>({container:xd,button:$d(e),panel:kd(e),icon:_d})),Cd=Sd({variants:{invokeAI:wd},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),zd=o(e=>{const{colorScheme:r}=e,t={bg:`${r}.600`,color:`${r}.100`,svg:{fill:`${r}.100`}};return{bg:`${r}.700`,color:`${r}.100`,borderRadius:"base",svg:{fill:`${r}.100`},_disabled:t,_hover:{bg:`${r}.650`,color:`${r}.50`,svg:{fill:`${r}.50`},_disabled:t},_checked:{bg:"accent.700",color:"accent.100",svg:{fill:"accent.100"},_disabled:t,_hover:{bg:"accent.600",color:"accent.50",svg:{fill:"accent.50"},_disabled:t}}}}),Ad=S({variants:{invokeAI:zd},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),{definePartsStyle:Pd,defineMultiStyleConfig:Td}=b(sd.keys),Fd=o(e=>{const{colorScheme:r}=e;return{_checked:{bg:`${r}.200`,borderColor:`${r}.200`,color:"base.900",_hover:{bg:`${r}.300`,borderColor:`${r}.300`},_disabled:{borderColor:"transparent",bg:"whiteAlpha.300",color:"whiteAlpha.500"}},_indeterminate:{bg:`${r}.200`,borderColor:`${r}.200`,color:"base.900"},_disabled:{bg:"whiteAlpha.100",borderColor:"transparent"},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:"red.300"}}}),Id=Pd(e=>({control:Fd(e)})),Bd=Td({variants:{invokeAI:Id},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),Md=o(e=>({fontSize:"sm",marginEnd:0,mb:1,fontWeight:"400",transitionProperty:"common",transitionDuration:"normal",whiteSpace:"nowrap",_disabled:{opacity:.4},color:"base.300"})),Ed=S({variants:{invokeAI:Md},defaultProps:{variant:"invokeAI"}}),Ee=e=>({outline:"none",borderWidth:2,borderStyle:"solid",borderColor:"base.800",bg:"base.900",borderRadius:"base",color:"base.100",boxShadow:"none",_hover:{borderColor:"base.600"},_focus:{borderColor:"accent.700",boxShadow:"none",_hover:{borderColor:"accent.600"}},_invalid:{borderColor:"error.700",boxShadow:"none",_hover:{borderColor:"error.600"}},_disabled:{borderColor:"base.700",bg:"base.700",color:"base.400",_hover:{borderColor:"base.700"}},_placeholder:{color:"base.400"}}),{definePartsStyle:Dd,defineMultiStyleConfig:jd}=b(dd.keys),Rd=Dd(e=>({field:Ee()})),Wd=jd({variants:{invokeAI:Rd},defaultProps:{size:"sm",variant:"invokeAI"}}),{definePartsStyle:Hd,defineMultiStyleConfig:Vd}=b(cd.keys),Ld=Hd({button:{fontWeight:"600",bg:"base.500",color:"base.200",_hover:{bg:"base.600",color:"white"}},list:{zIndex:9999,bg:"base.800"},item:{fontSize:"sm",bg:"base.800",_hover:{bg:"base.750"},_focus:{bg:"base.700"}}}),Od=Vd({variants:{invokeAI:Ld},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:qd,definePartsStyle:Nd}=b(bd.keys),Gd=o({bg:"blackAlpha.600"}),Ud=o({}),Yd=o(e=>({bg:"base.850",maxH:"80vh"})),Xd=o(e=>({fontWeight:"600",fontSize:"lg",color:"base.200"})),Kd=o({}),Qd=o({overflowY:"scroll"}),Zd=o({}),Jd=Nd(e=>({overlay:Gd,dialogContainer:Ud,dialog:Yd(e),header:Xd(e),closeButton:Kd,body:Qd,footer:Zd})),ec=qd({variants:{invokeAI:Jd},defaultProps:{variant:"invokeAI",size:"lg"}}),{defineMultiStyleConfig:rc,definePartsStyle:tc}=b(ud.keys),oc=o(e=>({height:8})),ac=o(e=>({border:"none",fontWeight:"600",height:"auto",py:1,ps:2,pe:6,...Ee()})),nc=o(e=>({display:"flex"})),ic=o(e=>({border:"none",px:2,py:0,mx:-2,my:0,svg:{color:"base.300",width:2.5,height:2.5,_hover:{color:"base.50"}}})),lc=tc(e=>({root:oc(e),field:ac(e),stepperGroup:nc(e),stepper:ic(e)})),sc=rc({variants:{invokeAI:lc},defaultProps:{size:"sm",variant:"invokeAI"}});function dc(e){return!Number.isInteger(parseFloat(e.toString()))}function cc(e,r="-"){return e.replace(/\s+/g,r)}function dt(e){const r=cc(e.toString());return r.includes("\\.")?e:dc(e)?r.replace(".","\\."):e}function bc(e,r=""){return[r,dt(e)].filter(Boolean).join("-")}function uc(e,r){return`var(${dt(e)}${r?`, ${r}`:""})`}function vc(e,r=""){return`--${bc(e,r)}`}function ar(e,r){const t=vc(e,r==null?void 0:r.prefix);return{variable:t,reference:uc(t,fc(r==null?void 0:r.fallback))}}function fc(e){return typeof e=="string"?e:e==null?void 0:e.reference}const{defineMultiStyleConfig:mc,definePartsStyle:hc}=b(vd.keys),gc=ar("popper-bg"),pc=ar("popper-arrow-bg"),yc=ar("popper-arrow-shadow-color"),Sc=o(e=>({[pc.variable]:"colors.base.800",[gc.variable]:"colors.base.800",[yc.variable]:"colors.base.600",minW:"unset",width:"unset",p:4,borderWidth:"2px",borderStyle:"solid",borderColor:"base.600",bg:"base.800"})),xc=hc(e=>({content:Sc(e)})),$c=mc({variants:{invokeAI:xc},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:kc,definePartsStyle:_c}=b(fd.keys),wc=o(e=>({bg:"accent.600",transition:"width 0.2s ease-in-out",_indeterminate:{bgGradient:"linear(to-r, transparent 0%, accent.600 50%, transparent 100%);"}})),Cc=o(e=>({bg:"base.800"})),zc=_c(e=>({filledTrack:wc(e),track:Cc(e)})),Ac=kc({variants:{invokeAI:zc},defaultProps:{variant:"invokeAI"}}),{definePartsStyle:Pc,defineMultiStyleConfig:Tc}=b(md.keys),Fc=o(e=>({color:"base.300"})),Ic=o(e=>({fontWeight:"600",...Ee()})),Bc=Pc(e=>({field:Ic(e),icon:Fc(e)})),Mc=Tc({variants:{invokeAI:Bc},defaultProps:{size:"sm",variant:"invokeAI"}}),{definePartsStyle:Ec,defineMultiStyleConfig:Dc}=b(hd.keys),jc=o(e=>({bg:"base.400",h:1.5})),Rc=o(e=>{const{colorScheme:r}=e;return{bg:`${r}.600`,h:1.5}}),Wc=o(e=>({w:2,h:4})),Hc=o(e=>({fontSize:"xs",fontWeight:"500",color:"base.200",mt:2,insetInlineStart:"unset"})),Vc=Ec(e=>({track:jc(e),filledTrack:Rc(e),thumb:Wc(e),mark:Hc(e)})),Lc=Dc({variants:{invokeAI:Vc},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:Oc,definePartsStyle:qc}=b(gd.keys),Nc=o(e=>{const{colorScheme:r}=e;return{bg:"base.600",_focusVisible:{boxShadow:"none"},_checked:{bg:`${r}.600`}}}),Gc=o(e=>{const{colorScheme:r}=e;return{bg:`${r}.50`}}),Uc=qc(e=>({container:{},track:Nc(e),thumb:Gc(e)})),Yc=Oc({variants:{invokeAI:Uc},defaultProps:{size:"md",variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:Xc,definePartsStyle:Kc}=b(pd.keys),Qc=o(e=>({display:"flex",columnGap:4})),Zc=o(e=>({})),Jc=o(e=>({display:"flex",flexDirection:"column",gap:1,color:"base.700",button:{fontSize:"sm",padding:2,borderRadius:"base",_selected:{bg:"accent.700",color:"accent.100",_hover:{bg:"accent.600",color:"accent.50"}},_hover:{bg:"base.600",color:"base.50"}}})),e0=o(e=>({padding:0,height:"100%"})),r0=Kc(e=>({root:Qc(e),tab:Zc(e),tablist:Jc(e),tabpanel:e0(e)})),t0=Xc({variants:{invokeAI:r0},defaultProps:{variant:"invokeAI"}}),o0=o(e=>({color:"base.400"})),a0=S({variants:{subtext:o0}}),n0=o(e=>Ee()),i0=S({variants:{invokeAI:n0},defaultProps:{size:"md",variant:"invokeAI"}}),l0={config:{cssVarPrefix:"invokeai"},styles:{global:e=>({body:{bg:"base.900",color:"base.50",overflow:"hidden"},...kt})},direction:"ltr",fonts:{body:"'Inter', 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)"}},colors:{...st},components:{Button:Ad,Input:Wd,Textarea:i0,Tabs:t0,Progress:Ac,Accordion:Cd,FormLabel:Ed,Switch:Yc,NumberInput:sc,Select:Mc,Slider:Lc,Popover:$c,Modal:ec,Checkbox:Bd,Menu:Od,Text:a0}},s0={base:p(223,10),accent:p(155,80),working:p(47,68),warning:p(28,75),ok:p(122,49),error:p(0,50)},d0={base:p(223,10,!0),accent:p(40,80,!0),working:p(47,68,!0),warning:p(28,75,!0),ok:p(122,49,!0),error:p(0,50,!0)},c0={base:p(220,30),accent:p(210,80),working:p(47,68),warning:p(28,75),ok:p(122,49),error:p(0,100)},b0={dark:st,light:d0,green:s0,ocean:c0};function f0({children:e}){const{i18n:r}=pt(),t=_t(i=>i.ui.currentTheme),a=r.dir(),n=Zs({...l0,colors:b0[t],direction:a});return _.useEffect(()=>{document.body.dir=a},[a]),y.jsx(id,{theme:n,children:e})}export{f0 as default};