import{o as f,G as Tn,q as Br,y as Nn,p as K,h as B,_ as V,z as cs,F as J,T as S,C as Eo,k as tt,s as Fc,x as Mc,O as cr,g as zc,V as Ke,a as Or,b as it,c as Bt,d as Me,w as Dc}from"./preact.js";import{m as qe}from"./lodash.mergewith.js";import{c as Rc,s as Bc,g as La}from"./framesync.js";import{G as En,T as Oc,n as Wa,a as Lc,k as $t}from"./@emotion.js";import{t as Wc,a as Vc,p as Hc}from"./color2k.js";import{u as jc,m as st,A as Tt,a as Uc}from"./framer-motion.js";import{_ as Ao,a as Gc,b as qc,c as Kc}from"./@babel.js";import{c as na,a as ds,e as Xc}from"./use-sidecar.js";import{u as us}from"./use-callback-ref.js";import{_ as Yc,a as Gt,b as Zc}from"./tslib.js";import{s as fs}from"./react-style-singleton.js";import{h as Qc}from"./aria-hidden.js";import{t as ms,a as Jc}from"./@zag-js.js";import{c as ed}from"./@popperjs.js";import{i as td}from"./react-fast-compare.js";var vs=String.raw,ps=vs`
  :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;
    }
  }
`,rd=()=>f(En,{styles:ps}),nd=({scope:e=""})=>f(En,{styles:vs`
      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;
      }

      ${ps}
    `});function od(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ce(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:i}=e,s=Tn(i);s.displayName=t;function l(){var c;const d=Br(s);if(!d&&r){const u=new Error(a??od(n,o));throw u.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,u,l),u}return d}return[s.Provider,l,s]}var[ad,id]=ce({strict:!1,name:"PortalManagerContext"});function hs(e){const{children:t,zIndex:r}=e;return f(ad,{value:{zIndex:r},children:t})}hs.displayName="PortalManager";var ot=globalThis!=null&&globalThis.document?Nn:K,[bs,sd]=ce({strict:!1,name:"PortalContext"}),oa="chakra-portal",ld=".chakra-portal",cd=e=>f("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),dd=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=B(null),a=V(null),[,i]=B({});K(()=>i({}),[]);const s=sd(),l=id();ot(()=>{if(!n)return;const d=n.ownerDocument,u=t?s??d.body:d.body;if(!u)return;a.current=d.createElement("div"),a.current.className=oa,u.appendChild(a.current),i({});const m=a.current;return()=>{u.contains(m)&&u.removeChild(m)}},[n]);const c=l!=null&&l.zIndex?f(cd,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return a.current?cs(f(bs,{value:a.current,children:c}),a.current):f("span",{ref:d=>{d&&o(d)}})},ud=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,a=o??(typeof window<"u"?document.body:void 0),i=J(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=oa),l},[o]),[,s]=B({});return ot(()=>s({}),[]),ot(()=>{if(!(!i||!a))return a.appendChild(i),()=>{a.removeChild(i)}},[i,a]),a&&i?cs(f(bs,{value:n?i:null,children:t}),i):null};function dr(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?f(ud,{containerRef:r,...n}):f(dd,{...n})}dr.className=oa;dr.selector=ld;dr.displayName="Portal";function yt(){const e=Br(Oc);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var An=Tn({});An.displayName="ColorModeContext";function aa(){const e=Br(An);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Gr={light:"chakra-ui-light",dark:"chakra-ui-dark"};function fd(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Gr.dark:Gr.light),document.body.classList.remove(n?Gr.light:Gr.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),a=i=>{n(i.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const n=document.createElement("style");return n.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(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var md="chakra-ui-color-mode";function vd(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var pd=vd(md),Sn=()=>{};function Va(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function gs(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:i=pd}=e,s=o==="dark"?"dark":"light",[l,c]=B(()=>Va(i,s)),[d,u]=B(()=>Va(i)),{getSystemTheme:m,setClassName:v,setDataset:h,addListener:p}=J(()=>fd({preventTransition:a}),[a]),b=o==="system"&&!l?d:l,y=S(I=>{const N=I==="system"?m():I;c(N),v(N==="dark"),h(N),i.set(N)},[i,m,v,h]);ot(()=>{o==="system"&&u(m())},[]),K(()=>{const I=i.get();if(I){y(I);return}if(o==="system"){y("system");return}y(s)},[i,s,o,y]);const x=S(()=>{y(b==="dark"?"light":"dark")},[b,y]);K(()=>{if(n)return p(y)},[n,p,y]);const w=J(()=>({colorMode:t??b,toggleColorMode:t?Sn:x,setColorMode:t?Sn:y,forced:t!==void 0}),[b,x,y,t]);return f(An.Provider,{value:w,children:r})}gs.displayName="ColorModeProvider";function hd(e){const t=J(()=>({colorMode:"dark",toggleColorMode:Sn,setColorMode:Sn,forced:!0}),[]);return f(An.Provider,{value:t,...e})}hd.displayName="DarkMode";function ys(){const e=aa(),t=yt();return{...e,theme:t}}function bd(e,t,r){var n,o;if(t==null)return t;const a=i=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[i]};return(o=(n=a(t))!=null?n:a(r))!=null?o:r}function gd(e,t,r){var n,o;if(t==null)return t;const a=i=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[i])==null?void 0:l.value};return(o=(n=a(t))!=null?n:a(r))!=null?o:r}function yd(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return a=>{const i=o.filter(Boolean),s=n.map((l,c)=>{var d,u;if(e==="breakpoints")return bd(a,l,(d=i[c])!=null?d:l);const m=`${e}.${l}`;return gd(a,m,(u=i[c])!=null?u:l)});return Array.isArray(t)?s:s[0]}}var z=(...e)=>e.filter(Boolean).join(" ");function Sd(){return!1}function Te(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Lr=e=>{const{condition:t,message:r}=e;t&&Sd()&&console.warn(r)};function Je(e,...t){return xd(e)?e(...t):e}var xd=e=>typeof e=="function",U=e=>e?"":void 0,ht=e=>e?!0:void 0;function L(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function ia(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var kd=e=>/!(important)?$/.test(e),Ha=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,wd=(e,t)=>r=>{const n=String(t),o=kd(n),a=Ha(n),i=e?`${e}.${a}`:a;let s=Te(r.__cssMap)&&i in r.__cssMap?r.__cssMap[i].varRef:t;return s=Ha(s),o?`${s} !important`:s};function sa(e){const{scale:t,transform:r,compose:n}=e;return(a,i)=>{var s;const l=wd(t,a)(i);let c=(s=r==null?void 0:r(l,i))!=null?s:l;return n&&(c=n(c,i)),c}}var qr=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Ue(e,t){return r=>{const n={property:r,scale:e};return n.transform=sa({scale:e,transform:t}),n}}var _d=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function Cd(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:_d(t),transform:r?sa({scale:r,compose:n}):n}}var Ss=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function Pd(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Ss].join(" ")}function Id(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Ss].join(" ")}var $d={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Td={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Nd(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Ed={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Fo={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Ad=new Set(Object.values(Fo)),Mo=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Fd=e=>e.trim();function Md(e,t){if(e==null||Mo.has(e))return e;if(!(zo(e)||Mo.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=o==null?void 0:o[1],i=o==null?void 0:o[2];if(!a||!i)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[l,...c]=i.split(",").map(Fd).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=l in Fo?Fo[l]:l;c.unshift(d);const u=c.map(m=>{if(Ad.has(m))return m;const v=m.indexOf(" "),[h,p]=v!==-1?[m.substr(0,v),m.substr(v+1)]:[m],b=zo(p)?p:p&&p.split(" "),y=`colors.${h}`,x=y in t.__cssMap?t.__cssMap[y].varRef:h;return b?[x,...Array.isArray(b)?b:[b]].join(" "):x});return`${s}(${u.join(", ")})`}var zo=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),zd=(e,t)=>Md(e,t??{});function Dd(e){return/^var\(--.+\)$/.test(e)}var Rd=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},rt=e=>t=>`${e}(${t})`,oe={filter(e){return e!=="auto"?e:$d},backdropFilter(e){return e!=="auto"?e:Td},ring(e){return Nd(oe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Pd():e==="auto-gpu"?Id():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Rd(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(Dd(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:zd,blur:rt("blur"),opacity:rt("opacity"),brightness:rt("brightness"),contrast:rt("contrast"),dropShadow:rt("drop-shadow"),grayscale:rt("grayscale"),hueRotate:rt("hue-rotate"),invert:rt("invert"),saturate:rt("saturate"),sepia:rt("sepia"),bgImage(e){return e==null||zo(e)||Mo.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=Ed[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},g={borderWidths:Ue("borderWidths"),borderStyles:Ue("borderStyles"),colors:Ue("colors"),borders:Ue("borders"),gradients:Ue("gradients",oe.gradient),radii:Ue("radii",oe.px),space:Ue("space",qr(oe.vh,oe.px)),spaceT:Ue("space",qr(oe.vh,oe.px)),degreeT(e){return{property:e,transform:oe.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:sa({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Ue("sizes",qr(oe.vh,oe.px)),sizesT:Ue("sizes",qr(oe.vh,oe.fraction)),shadows:Ue("shadows"),logical:Cd,blur:Ue("blur",oe.blur)},on={background:g.colors("background"),backgroundColor:g.colors("backgroundColor"),backgroundImage:g.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:oe.bgClip},bgSize:g.prop("backgroundSize"),bgPosition:g.prop("backgroundPosition"),bg:g.colors("background"),bgColor:g.colors("backgroundColor"),bgPos:g.prop("backgroundPosition"),bgRepeat:g.prop("backgroundRepeat"),bgAttachment:g.prop("backgroundAttachment"),bgGradient:g.gradients("backgroundImage"),bgClip:{transform:oe.bgClip}};Object.assign(on,{bgImage:on.backgroundImage,bgImg:on.backgroundImage});var se={border:g.borders("border"),borderWidth:g.borderWidths("borderWidth"),borderStyle:g.borderStyles("borderStyle"),borderColor:g.colors("borderColor"),borderRadius:g.radii("borderRadius"),borderTop:g.borders("borderTop"),borderBlockStart:g.borders("borderBlockStart"),borderTopLeftRadius:g.radii("borderTopLeftRadius"),borderStartStartRadius:g.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:g.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:g.radii("borderTopRightRadius"),borderStartEndRadius:g.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:g.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:g.borders("borderRight"),borderInlineEnd:g.borders("borderInlineEnd"),borderBottom:g.borders("borderBottom"),borderBlockEnd:g.borders("borderBlockEnd"),borderBottomLeftRadius:g.radii("borderBottomLeftRadius"),borderBottomRightRadius:g.radii("borderBottomRightRadius"),borderLeft:g.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:g.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:g.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:g.borders(["borderLeft","borderRight"]),borderInline:g.borders("borderInline"),borderY:g.borders(["borderTop","borderBottom"]),borderBlock:g.borders("borderBlock"),borderTopWidth:g.borderWidths("borderTopWidth"),borderBlockStartWidth:g.borderWidths("borderBlockStartWidth"),borderTopColor:g.colors("borderTopColor"),borderBlockStartColor:g.colors("borderBlockStartColor"),borderTopStyle:g.borderStyles("borderTopStyle"),borderBlockStartStyle:g.borderStyles("borderBlockStartStyle"),borderBottomWidth:g.borderWidths("borderBottomWidth"),borderBlockEndWidth:g.borderWidths("borderBlockEndWidth"),borderBottomColor:g.colors("borderBottomColor"),borderBlockEndColor:g.colors("borderBlockEndColor"),borderBottomStyle:g.borderStyles("borderBottomStyle"),borderBlockEndStyle:g.borderStyles("borderBlockEndStyle"),borderLeftWidth:g.borderWidths("borderLeftWidth"),borderInlineStartWidth:g.borderWidths("borderInlineStartWidth"),borderLeftColor:g.colors("borderLeftColor"),borderInlineStartColor:g.colors("borderInlineStartColor"),borderLeftStyle:g.borderStyles("borderLeftStyle"),borderInlineStartStyle:g.borderStyles("borderInlineStartStyle"),borderRightWidth:g.borderWidths("borderRightWidth"),borderInlineEndWidth:g.borderWidths("borderInlineEndWidth"),borderRightColor:g.colors("borderRightColor"),borderInlineEndColor:g.colors("borderInlineEndColor"),borderRightStyle:g.borderStyles("borderRightStyle"),borderInlineEndStyle:g.borderStyles("borderInlineEndStyle"),borderTopRadius:g.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:g.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:g.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:g.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(se,{rounded:se.borderRadius,roundedTop:se.borderTopRadius,roundedTopLeft:se.borderTopLeftRadius,roundedTopRight:se.borderTopRightRadius,roundedTopStart:se.borderStartStartRadius,roundedTopEnd:se.borderStartEndRadius,roundedBottom:se.borderBottomRadius,roundedBottomLeft:se.borderBottomLeftRadius,roundedBottomRight:se.borderBottomRightRadius,roundedBottomStart:se.borderEndStartRadius,roundedBottomEnd:se.borderEndEndRadius,roundedLeft:se.borderLeftRadius,roundedRight:se.borderRightRadius,roundedStart:se.borderInlineStartRadius,roundedEnd:se.borderInlineEndRadius,borderStart:se.borderInlineStart,borderEnd:se.borderInlineEnd,borderTopStartRadius:se.borderStartStartRadius,borderTopEndRadius:se.borderStartEndRadius,borderBottomStartRadius:se.borderEndStartRadius,borderBottomEndRadius:se.borderEndEndRadius,borderStartRadius:se.borderInlineStartRadius,borderEndRadius:se.borderInlineEndRadius,borderStartWidth:se.borderInlineStartWidth,borderEndWidth:se.borderInlineEndWidth,borderStartColor:se.borderInlineStartColor,borderEndColor:se.borderInlineEndColor,borderStartStyle:se.borderInlineStartStyle,borderEndStyle:se.borderInlineEndStyle});var Bd={color:g.colors("color"),textColor:g.colors("color"),fill:g.colors("fill"),stroke:g.colors("stroke")},Do={boxShadow:g.shadows("boxShadow"),mixBlendMode:!0,blendMode:g.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:g.prop("backgroundBlendMode"),opacity:!0};Object.assign(Do,{shadow:Do.boxShadow});var Od={filter:{transform:oe.filter},blur:g.blur("--chakra-blur"),brightness:g.propT("--chakra-brightness",oe.brightness),contrast:g.propT("--chakra-contrast",oe.contrast),hueRotate:g.degreeT("--chakra-hue-rotate"),invert:g.propT("--chakra-invert",oe.invert),saturate:g.propT("--chakra-saturate",oe.saturate),dropShadow:g.propT("--chakra-drop-shadow",oe.dropShadow),backdropFilter:{transform:oe.backdropFilter},backdropBlur:g.blur("--chakra-backdrop-blur"),backdropBrightness:g.propT("--chakra-backdrop-brightness",oe.brightness),backdropContrast:g.propT("--chakra-backdrop-contrast",oe.contrast),backdropHueRotate:g.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:g.propT("--chakra-backdrop-invert",oe.invert),backdropSaturate:g.propT("--chakra-backdrop-saturate",oe.saturate)},xn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:oe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:g.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:g.space("gap"),rowGap:g.space("rowGap"),columnGap:g.space("columnGap")};Object.assign(xn,{flexDir:xn.flexDirection});var xs={gridGap:g.space("gridGap"),gridColumnGap:g.space("gridColumnGap"),gridRowGap:g.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Ld={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:oe.outline},outlineOffset:!0,outlineColor:g.colors("outlineColor")},Ge={width:g.sizesT("width"),inlineSize:g.sizesT("inlineSize"),height:g.sizes("height"),blockSize:g.sizes("blockSize"),boxSize:g.sizes(["width","height"]),minWidth:g.sizes("minWidth"),minInlineSize:g.sizes("minInlineSize"),minHeight:g.sizes("minHeight"),minBlockSize:g.sizes("minBlockSize"),maxWidth:g.sizes("maxWidth"),maxInlineSize:g.sizes("maxInlineSize"),maxHeight:g.sizes("maxHeight"),maxBlockSize:g.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:g.propT("float",oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ge,{w:Ge.width,h:Ge.height,minW:Ge.minWidth,maxW:Ge.maxWidth,minH:Ge.minHeight,maxH:Ge.maxHeight,overscroll:Ge.overscrollBehavior,overscrollX:Ge.overscrollBehaviorX,overscrollY:Ge.overscrollBehaviorY});var Wd={listStyleType:!0,listStylePosition:!0,listStylePos:g.prop("listStylePosition"),listStyleImage:!0,listStyleImg:g.prop("listStyleImage")};function Vd(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}var Hd=e=>{const t=new WeakMap;return(n,o,a,i)=>{if(typeof n>"u")return e(n,o,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,a,i);return s.set(o,l),l}},jd=Hd(Vd),Ud={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Gd={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Qn=(e,t,r)=>{const n={},o=jd(e,t,{});for(const a in o)a in r&&r[a]!=null||(n[a]=o[a]);return n},qd={srOnly:{transform(e){return e===!0?Ud:e==="focusable"?Gd:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Qn(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Qn(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Qn(t,e,r)}},Pr={position:!0,pos:g.prop("position"),zIndex:g.prop("zIndex","zIndices"),inset:g.spaceT("inset"),insetX:g.spaceT(["left","right"]),insetInline:g.spaceT("insetInline"),insetY:g.spaceT(["top","bottom"]),insetBlock:g.spaceT("insetBlock"),top:g.spaceT("top"),insetBlockStart:g.spaceT("insetBlockStart"),bottom:g.spaceT("bottom"),insetBlockEnd:g.spaceT("insetBlockEnd"),left:g.spaceT("left"),insetInlineStart:g.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:g.spaceT("right"),insetInlineEnd:g.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Pr,{insetStart:Pr.insetInlineStart,insetEnd:Pr.insetInlineEnd});var Kd={ring:{transform:oe.ring},ringColor:g.colors("--chakra-ring-color"),ringOffset:g.prop("--chakra-ring-offset-width"),ringOffsetColor:g.colors("--chakra-ring-offset-color"),ringInset:g.prop("--chakra-ring-inset")},pe={margin:g.spaceT("margin"),marginTop:g.spaceT("marginTop"),marginBlockStart:g.spaceT("marginBlockStart"),marginRight:g.spaceT("marginRight"),marginInlineEnd:g.spaceT("marginInlineEnd"),marginBottom:g.spaceT("marginBottom"),marginBlockEnd:g.spaceT("marginBlockEnd"),marginLeft:g.spaceT("marginLeft"),marginInlineStart:g.spaceT("marginInlineStart"),marginX:g.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:g.spaceT("marginInline"),marginY:g.spaceT(["marginTop","marginBottom"]),marginBlock:g.spaceT("marginBlock"),padding:g.space("padding"),paddingTop:g.space("paddingTop"),paddingBlockStart:g.space("paddingBlockStart"),paddingRight:g.space("paddingRight"),paddingBottom:g.space("paddingBottom"),paddingBlockEnd:g.space("paddingBlockEnd"),paddingLeft:g.space("paddingLeft"),paddingInlineStart:g.space("paddingInlineStart"),paddingInlineEnd:g.space("paddingInlineEnd"),paddingX:g.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:g.space("paddingInline"),paddingY:g.space(["paddingTop","paddingBottom"]),paddingBlock:g.space("paddingBlock")};Object.assign(pe,{m:pe.margin,mt:pe.marginTop,mr:pe.marginRight,me:pe.marginInlineEnd,marginEnd:pe.marginInlineEnd,mb:pe.marginBottom,ml:pe.marginLeft,ms:pe.marginInlineStart,marginStart:pe.marginInlineStart,mx:pe.marginX,my:pe.marginY,p:pe.padding,pt:pe.paddingTop,py:pe.paddingY,px:pe.paddingX,pb:pe.paddingBottom,pl:pe.paddingLeft,ps:pe.paddingInlineStart,paddingStart:pe.paddingInlineStart,pr:pe.paddingRight,pe:pe.paddingInlineEnd,paddingEnd:pe.paddingInlineEnd});var Xd={textDecorationColor:g.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:g.shadows("textShadow")},Yd={clipPath:!0,transform:g.propT("transform",oe.transform),transformOrigin:!0,translateX:g.spaceT("--chakra-translate-x"),translateY:g.spaceT("--chakra-translate-y"),skewX:g.degreeT("--chakra-skew-x"),skewY:g.degreeT("--chakra-skew-y"),scaleX:g.prop("--chakra-scale-x"),scaleY:g.prop("--chakra-scale-y"),scale:g.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:g.degreeT("--chakra-rotate")},Zd={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:g.prop("transitionDuration","transition.duration"),transitionProperty:g.prop("transitionProperty","transition.property"),transitionTimingFunction:g.prop("transitionTimingFunction","transition.easing")},Qd={fontFamily:g.prop("fontFamily","fonts"),fontSize:g.prop("fontSize","fontSizes",oe.px),fontWeight:g.prop("fontWeight","fontWeights"),lineHeight:g.prop("lineHeight","lineHeights"),letterSpacing:g.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Jd={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:g.spaceT("scrollMargin"),scrollMarginTop:g.spaceT("scrollMarginTop"),scrollMarginBottom:g.spaceT("scrollMarginBottom"),scrollMarginLeft:g.spaceT("scrollMarginLeft"),scrollMarginRight:g.spaceT("scrollMarginRight"),scrollMarginX:g.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:g.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:g.spaceT("scrollPadding"),scrollPaddingTop:g.spaceT("scrollPaddingTop"),scrollPaddingBottom:g.spaceT("scrollPaddingBottom"),scrollPaddingLeft:g.spaceT("scrollPaddingLeft"),scrollPaddingRight:g.spaceT("scrollPaddingRight"),scrollPaddingX:g.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:g.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function ks(e){return Te(e)&&e.reference?e.reference:String(e)}var Fn=(e,...t)=>t.map(ks).join(` ${e} `).replace(/calc/g,""),ja=(...e)=>`calc(${Fn("+",...e)})`,Ua=(...e)=>`calc(${Fn("-",...e)})`,Ro=(...e)=>`calc(${Fn("*",...e)})`,Ga=(...e)=>`calc(${Fn("/",...e)})`,qa=e=>{const t=ks(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ro(t,-1)},Et=Object.assign(e=>({add:(...t)=>Et(ja(e,...t)),subtract:(...t)=>Et(Ua(e,...t)),multiply:(...t)=>Et(Ro(e,...t)),divide:(...t)=>Et(Ga(e,...t)),negate:()=>Et(qa(e)),toString:()=>e.toString()}),{add:ja,subtract:Ua,multiply:Ro,divide:Ga,negate:qa});function eu(e,t="-"){return e.replace(/\s+/g,t)}function tu(e){const t=eu(e.toString());return nu(ru(t))}function ru(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function nu(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function ou(e,t=""){return[t,e].filter(Boolean).join("-")}function au(e,t){return`var(${e}${t?`, ${t}`:""})`}function iu(e,t=""){return tu(`--${ou(e,t)}`)}function W(e,t,r){const n=iu(e,r);return{variable:n,reference:au(n,t)}}function su(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,a]=n;r[o]=W(`${e}-${o}`,a);continue}r[n]=W(`${e}-${n}`)}return r}function lu(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function cu(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Bo(e){if(e==null)return e;const{unitless:t}=cu(e);return t||typeof e=="number"?`${e}px`:e}var ws=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,la=e=>Object.fromEntries(Object.entries(e).sort(ws));function Ka(e){const t=la(e);return Object.assign(Object.values(t),t)}function du(e){const t=Object.keys(la(e));return new Set(t)}function Xa(e){var t;if(!e)return e;e=(t=Bo(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function xr(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Bo(e)})`),t&&r.push("and",`(max-width: ${Bo(t)})`),r.join(" ")}function uu(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Ka(e),n=Object.entries(e).sort(ws).map(([i,s],l,c)=>{var d;let[,u]=(d=c[l+1])!=null?d:[];return u=parseFloat(u)>0?Xa(u):void 0,{_minW:Xa(s),breakpoint:i,minW:s,maxW:u,maxWQuery:xr(null,u),minWQuery:xr(s),minMaxQuery:xr(s,u)}}),o=du(e),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(l=>o.has(l))},asObject:la(e),asArray:Ka(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...r.map(i=>xr(i)).slice(1)],toArrayValue(i){if(!Te(i))throw new Error("toArrayValue: value must be an object");const s=a.map(l=>{var c;return(c=i[l])!=null?c:null});for(;lu(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,l,c)=>{const d=a[c];return d!=null&&l!=null&&(s[d]=l),s},{})}}}var Ee={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},xt=e=>_s(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ut=e=>_s(t=>e(t,"~ &"),"[data-peer]",".peer"),_s=(e,...t)=>t.map(e).join(", "),Mn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:xt(Ee.hover),_peerHover:ut(Ee.hover),_groupFocus:xt(Ee.focus),_peerFocus:ut(Ee.focus),_groupFocusVisible:xt(Ee.focusVisible),_peerFocusVisible:ut(Ee.focusVisible),_groupActive:xt(Ee.active),_peerActive:ut(Ee.active),_groupDisabled:xt(Ee.disabled),_peerDisabled:ut(Ee.disabled),_groupInvalid:xt(Ee.invalid),_peerInvalid:ut(Ee.invalid),_groupChecked:xt(Ee.checked),_peerChecked:ut(Ee.checked),_groupFocusWithin:xt(Ee.focusWithin),_peerFocusWithin:ut(Ee.focusWithin),_peerPlaceholderShown:ut(Ee.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Cs=Object.keys(Mn);function Ya(e,t){return W(String(e).replace(/\./g,"-"),void 0,t)}function fu(e,t){let r={};const n={};for(const[o,a]of Object.entries(e)){const{isSemantic:i,value:s}=a,{variable:l,reference:c}=Ya(o,t==null?void 0:t.cssVarPrefix);if(!i){if(o.startsWith("space")){const m=o.split("."),[v,...h]=m,p=`${v}.-${h.join(".")}`,b=Et.negate(s),y=Et.negate(c);n[p]={value:b,var:l,varRef:y}}r[l]=s,n[o]={value:s,var:l,varRef:c};continue}const d=m=>{const h=[String(o).split(".")[0],m].join(".");if(!e[h])return m;const{reference:b}=Ya(h,t==null?void 0:t.cssVarPrefix);return b},u=Te(s)?s:{default:s};r=qe(r,Object.entries(u).reduce((m,[v,h])=>{var p,b;if(!h)return m;const y=d(`${h}`);if(v==="default")return m[l]=y,m;const x=(b=(p=Mn)==null?void 0:p[v])!=null?b:v;return m[x]={[l]:y},m},{})),n[o]={value:c,var:l,varRef:c}}return{cssVars:r,cssMap:n}}function mu(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function vu(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function pu(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Za(e,t,r={}){const{stop:n,getKey:o}=r;function a(i,s=[]){var l;if(pu(i)||Array.isArray(i)){const c={};for(const[d,u]of Object.entries(i)){const m=(l=o==null?void 0:o(d))!=null?l:d,v=[...s,m];if(n!=null&&n(i,v))return t(i,s);c[m]=a(u,v)}return c}return t(i,s)}return a(e)}var hu=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function bu(e){return vu(e,hu)}function gu(e){return e.semanticTokens}function yu(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var Su=e=>Cs.includes(e)||e==="default";function xu({tokens:e,semanticTokens:t}){const r={};return Za(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),Za(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(Su)}),r}function ku(e){var t;const r=yu(e),n=bu(r),o=gu(r),a=xu({tokens:n,semanticTokens:o}),i=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=fu(a,{cssVarPrefix:i});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:uu(r.breakpoints)}),r}var ca=qe({},on,se,Bd,xn,Ge,Od,Kd,Ld,xs,qd,Pr,Do,pe,Jd,Qd,Xd,Yd,Wd,Zd),wu=Object.assign({},pe,Ge,xn,xs,Pr),Ps=Object.keys(wu),_u=[...Object.keys(ca),...Cs],Cu={...ca,...Mn},Pu=e=>e in Cu,Iu=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,a={};for(const i in e){let s=Je(e[i],t);if(s==null)continue;if(s=Te(s)&&r(s)?n(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let c=0;c<l;c+=1){const d=o==null?void 0:o[c];if(!d){a[i]=s[c];continue}a[d]=a[d]||{},s[c]!=null&&(a[d][i]=s[c])}}return a};function $u(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const a=e[o];a==="("?(n=!0,r+=a):a===")"?(n=!1,r+=a):a===","&&!n?(t.push(r),r=""):r+=a}return r=r.trim(),r&&t.push(r),t}function Tu(e){return/^var\(--.+\)$/.test(e)}var Nu=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Tu(t),Eu=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var c,d;return(d=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:d.varRef},a=l=>{var c;return(c=o(l))!=null?c:l},[i,s]=$u(t);return t=(n=(r=o(i))!=null?r:a(s))!=null?n:a(t),t};function Au(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(a,i=!1)=>{var s,l,c;const d=Je(a,n),u=Iu(d)(n);let m={};for(let v in u){const h=u[v];let p=Je(h,n);v in r&&(v=r[v]),Nu(v,p)&&(p=Eu(n,p));let b=t[v];if(b===!0&&(b={property:v}),Te(p)){m[v]=(s=m[v])!=null?s:{},m[v]=qe({},m[v],o(p,!0));continue}let y=(c=(l=b==null?void 0:b.transform)==null?void 0:l.call(b,p,n,d))!=null?c:p;y=b!=null&&b.processResult?o(y,!0):y;const x=Je(b==null?void 0:b.property,n);if(!i&&(b!=null&&b.static)){const w=Je(b.static,n);m=qe({},m,w)}if(x&&Array.isArray(x)){for(const w of x)m[w]=y;continue}if(x){x==="&"&&Te(y)?m=qe({},m,y):m[x]=y;continue}if(Te(y)){m=qe({},m,y);continue}m[v]=y}return m};return o}var Is=e=>t=>Au({theme:t,pseudos:Mn,configs:ca})(e);function ve(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Fu(e,t){if(Array.isArray(e))return e;if(Te(e))return t(e);if(e!=null)return[e]}function Mu(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function zu(e){const t=e.__breakpoints;return function(n,o,a,i){var s,l;if(!t)return;const c={},d=Fu(a,t.toArrayValue);if(!d)return c;const u=d.length,m=u===1,v=!!n.parts;for(let h=0;h<u;h++){const p=t.details[h],b=t.details[Mu(d,h)],y=xr(p.minW,b==null?void 0:b._minW),x=Je((s=n[o])==null?void 0:s[d[h]],i);if(x){if(v){(l=n.parts)==null||l.forEach(w=>{qe(c,{[w]:m?x[w]:{[y]:x[w]}})});continue}if(!v){m?qe(c,x):c[y]=x;continue}c[y]=x}}return c}}function Du(e){return t=>{var r;const{variant:n,size:o,theme:a}=t,i=zu(a);return qe({},Je((r=e.baseStyle)!=null?r:{},t),i(e,"sizes",o,t),i(e,"variants",n,t))}}function Ru(e,t,r){var n,o,a;return(a=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?a:r}function ue(e){return mu(e,["styleConfig","size","variant","colorScheme"])}var Bu=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Ou(e){return Te(e)?Bu.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Lu={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"},Wu={"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)"},Vu={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Hu={property:Lu,easing:Wu,duration:Vu},ju=Hu,Uu={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},Gu=Uu,qu={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Ku=qu,Xu={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Yu=Xu,Zu={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"}},Qu=Zu,Ju={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},ef=Ju,tf={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"},rf=tf,nf={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},of=nf,af={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"}},$s=af,Ts={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"},sf={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"},lf={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},cf={...Ts,...sf,container:lf},Ns=cf,df={breakpoints:Yu,zIndices:Gu,radii:ef,blur:of,colors:Qu,...$s,sizes:Ns,shadows:rf,space:Ts,borders:Ku,transition:ju},{defineMultiStyleConfig:uf,definePartsStyle:kr}=ve(["stepper","step","title","description","indicator","separator","icon","number"]),ft=W("stepper-indicator-size"),qt=W("stepper-icon-size"),Kt=W("stepper-title-font-size"),wr=W("stepper-description-font-size"),br=W("stepper-accent-color"),ff=kr(({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"},[br.variable]:`colors.${e}.500`,_dark:{[br.variable]:`colors.${e}.200`}},title:{fontSize:Kt.reference,fontWeight:"medium"},description:{fontSize:wr.reference,color:"chakra-subtle-text"},number:{fontSize:Kt.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:qt.reference,height:qt.reference},indicator:{flexShrink:0,borderRadius:"full",width:ft.reference,height:ft.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:br.reference},"&[data-status=complete]":{bg:br.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:br.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${ft.reference} - 8px)`,top:`calc(${ft.reference} + 4px)`,insetStart:`calc(${ft.reference} / 2 - 1px)`}}})),mf=uf({baseStyle:ff,sizes:{xs:kr({stepper:{[ft.variable]:"sizes.4",[qt.variable]:"sizes.3",[Kt.variable]:"fontSizes.xs",[wr.variable]:"fontSizes.xs"}}),sm:kr({stepper:{[ft.variable]:"sizes.6",[qt.variable]:"sizes.4",[Kt.variable]:"fontSizes.sm",[wr.variable]:"fontSizes.xs"}}),md:kr({stepper:{[ft.variable]:"sizes.8",[qt.variable]:"sizes.5",[Kt.variable]:"fontSizes.md",[wr.variable]:"fontSizes.sm"}}),lg:kr({stepper:{[ft.variable]:"sizes.10",[qt.variable]:"sizes.6",[Kt.variable]:"fontSizes.lg",[wr.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function de(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){n();for(const u of d)t[u]=l(u);return de(e,t)}function a(...d){for(const u of d)u in t||(t[u]=l(u));return de(e,t)}function i(){return Object.fromEntries(Object.entries(t).map(([u,m])=>[u,m.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([u,m])=>[u,m.className]))}function l(d){const v=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>d}}return{parts:o,toPart:l,extend:a,selectors:i,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var vf=de("accordion").parts("root","container","button","panel").extend("icon"),pf=de("alert").parts("title","description","container").extend("icon","spinner"),hf=de("avatar").parts("label","badge","container").extend("excessLabel","group"),bf=de("breadcrumb").parts("link","item","container").extend("separator");de("button").parts();var gf=de("checkbox").parts("control","icon","container").extend("label");de("progress").parts("track","filledTrack").extend("label");var yf=de("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Sf=de("editable").parts("preview","input","textarea"),xf=de("form").parts("container","requiredIndicator","helperText"),kf=de("formError").parts("text","icon"),wf=de("input").parts("addon","field","element","group"),_f=de("list").parts("container","item","icon"),Cf=de("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Pf=de("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),If=de("numberinput").parts("root","field","stepperGroup","stepper");de("pininput").parts("field");var $f=de("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Tf=de("progress").parts("label","filledTrack","track"),Nf=de("radio").parts("container","control","label"),Ef=de("select").parts("field","icon"),Af=de("slider").parts("container","track","thumb","filledTrack","mark"),Ff=de("stat").parts("container","label","helpText","number","icon"),Mf=de("switch").parts("container","track","thumb"),zf=de("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Df=de("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Rf=de("tag").parts("container","label","closeButton"),Bf=de("card").parts("container","header","body","footer");function Of(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}var Lf=e=>Object.keys(e).length===0,Be=(e,t,r)=>{const n=Of(e,`colors.${t}`,t);try{return Wc(n),n}catch{return r??"#000000"}},Wf=e=>{const[t,r,n]=Hc(e);return(t*299+r*587+n*114)/1e3},Vf=e=>t=>{const r=Be(t,e);return Wf(r)<128?"dark":"light"},Hf=e=>t=>Vf(e)(t)==="dark",sr=(e,t)=>r=>{const n=Be(r,e);return Vc(n,1-t)};function Qa(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${t} 25%,
    transparent 25%,
    transparent 50%,
    ${t} 50%,
    ${t} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${e} ${e}`}}var jf=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Uf(e){const t=jf();return!e||Lf(e)?t:e.string&&e.colors?qf(e.string,e.colors):e.string&&!e.colors?Gf(e.string):e.colors&&!e.string?Kf(e.colors):t}function Gf(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t=t&t;let r="#";for(let n=0;n<3;n+=1){const o=t>>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function qf(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;n<e.length;n+=1)r=e.charCodeAt(n)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function Kf(e){return e[Math.floor(Math.random()*e.length)]}function O(e,t){return r=>r.colorMode==="dark"?t:e}function da(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function Es(e){return Te(e)&&e.reference?e.reference:String(e)}var zn=(e,...t)=>t.map(Es).join(` ${e} `).replace(/calc/g,""),Ja=(...e)=>`calc(${zn("+",...e)})`,ei=(...e)=>`calc(${zn("-",...e)})`,Oo=(...e)=>`calc(${zn("*",...e)})`,ti=(...e)=>`calc(${zn("/",...e)})`,ri=e=>{const t=Es(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Oo(t,-1)},mt=Object.assign(e=>({add:(...t)=>mt(Ja(e,...t)),subtract:(...t)=>mt(ei(e,...t)),multiply:(...t)=>mt(Oo(e,...t)),divide:(...t)=>mt(ti(e,...t)),negate:()=>mt(ri(e)),toString:()=>e.toString()}),{add:Ja,subtract:ei,multiply:Oo,divide:ti,negate:ri});function Xf(e){return!Number.isInteger(parseFloat(e.toString()))}function Yf(e,t="-"){return e.replace(/\s+/g,t)}function As(e){const t=Yf(e.toString());return t.includes("\\.")?e:Xf(e)?t.replace(".","\\."):e}function Zf(e,t=""){return[t,As(e)].filter(Boolean).join("-")}function Qf(e,t){return`var(${As(e)}${t?`, ${t}`:""})`}function Jf(e,t=""){return`--${Zf(e,t)}`}function Pe(e,t){const r=Jf(e,t==null?void 0:t.prefix);return{variable:r,reference:Qf(r,em(t==null?void 0:t.fallback))}}function em(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:tm,definePartsStyle:an}=ve(Mf.keys),Ir=Pe("switch-track-width"),Mt=Pe("switch-track-height"),Jn=Pe("switch-track-diff"),rm=mt.subtract(Ir,Mt),Lo=Pe("switch-thumb-x"),gr=Pe("switch-bg"),nm=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ir.reference],height:[Mt.reference],transitionProperty:"common",transitionDuration:"fast",[gr.variable]:"colors.gray.300",_dark:{[gr.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[gr.variable]:`colors.${t}.500`,_dark:{[gr.variable]:`colors.${t}.200`}},bg:gr.reference}},om={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Mt.reference],height:[Mt.reference],_checked:{transform:`translateX(${Lo.reference})`}},am=an(e=>({container:{[Jn.variable]:rm,[Lo.variable]:Jn.reference,_rtl:{[Lo.variable]:mt(Jn).negate().toString()}},track:nm(e),thumb:om})),im={sm:an({container:{[Ir.variable]:"1.375rem",[Mt.variable]:"sizes.3"}}),md:an({container:{[Ir.variable]:"1.875rem",[Mt.variable]:"sizes.4"}}),lg:an({container:{[Ir.variable]:"2.875rem",[Mt.variable]:"sizes.6"}})},sm=tm({baseStyle:am,sizes:im,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lm,definePartsStyle:er}=ve(zf.keys),cm=er({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"}}),kn={"&[data-is-numeric=true]":{textAlign:"end"}},dm=er(e=>{const{colorScheme:t}=e;return{th:{color:O("gray.600","gray.400")(e),borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},td:{borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},caption:{color:O("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),um=er(e=>{const{colorScheme:t}=e;return{th:{color:O("gray.600","gray.400")(e),borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},td:{borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},caption:{color:O("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e)},td:{background:O(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),fm={simple:dm,striped:um,unstyled:{}},mm={sm:er({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:er({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:er({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},vm=lm({baseStyle:cm,variants:fm,sizes:mm,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),We=W("tabs-color"),Qe=W("tabs-bg"),Kr=W("tabs-border-color"),{defineMultiStyleConfig:pm,definePartsStyle:at}=ve(Df.keys),hm=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},bm=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},gm=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},ym={p:4},Sm=at(e=>({root:hm(e),tab:bm(e),tablist:gm(e),tabpanel:ym})),xm={sm:at({tab:{py:1,px:4,fontSize:"sm"}}),md:at({tab:{fontSize:"md",py:2,px:4}}),lg:at({tab:{fontSize:"lg",py:3,px:4}})},km=at(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",a=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[We.variable]:`colors.${t}.600`,_dark:{[We.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Qe.variable]:"colors.gray.200",_dark:{[Qe.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:We.reference,bg:Qe.reference}}}),wm=at(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Kr.variable]:"transparent",_selected:{[We.variable]:`colors.${t}.600`,[Kr.variable]:"colors.white",_dark:{[We.variable]:`colors.${t}.300`,[Kr.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Kr.reference},color:We.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),_m=at(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Qe.variable]:"colors.gray.50",_dark:{[Qe.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Qe.variable]:"colors.white",[We.variable]:`colors.${t}.600`,_dark:{[Qe.variable]:"colors.gray.800",[We.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:We.reference,bg:Qe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Cm=at(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Be(r,`${t}.700`),bg:Be(r,`${t}.100`)}}}}),Pm=at(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[We.variable]:"colors.gray.600",_dark:{[We.variable]:"inherit"},_selected:{[We.variable]:"colors.white",[Qe.variable]:`colors.${t}.600`,_dark:{[We.variable]:"colors.gray.800",[Qe.variable]:`colors.${t}.300`}},color:We.reference,bg:Qe.reference}}}),Im=at({}),$m={line:km,enclosed:wm,"enclosed-colored":_m,"soft-rounded":Cm,"solid-rounded":Pm,unstyled:Im},Tm=pm({baseStyle:Sm,sizes:xm,variants:$m,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ke=su("badge",["bg","color","shadow"]),Nm={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ke.bg.reference,color:ke.color.reference,boxShadow:ke.shadow.reference},Em=e=>{const{colorScheme:t,theme:r}=e,n=sr(`${t}.500`,.6)(r);return{[ke.bg.variable]:`colors.${t}.500`,[ke.color.variable]:"colors.white",_dark:{[ke.bg.variable]:n,[ke.color.variable]:"colors.whiteAlpha.800"}}},Am=e=>{const{colorScheme:t,theme:r}=e,n=sr(`${t}.200`,.16)(r);return{[ke.bg.variable]:`colors.${t}.100`,[ke.color.variable]:`colors.${t}.800`,_dark:{[ke.bg.variable]:n,[ke.color.variable]:`colors.${t}.200`}}},Fm=e=>{const{colorScheme:t,theme:r}=e,n=sr(`${t}.200`,.8)(r);return{[ke.color.variable]:`colors.${t}.500`,_dark:{[ke.color.variable]:n},[ke.shadow.variable]:`inset 0 0 0px 1px ${ke.color.reference}`}},Mm={solid:Em,subtle:Am,outline:Fm},$r={baseStyle:Nm,variants:Mm,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:zm,definePartsStyle:zt}=ve(Rf.keys),ni=W("tag-bg"),oi=W("tag-color"),eo=W("tag-shadow"),sn=W("tag-min-height"),ln=W("tag-min-width"),cn=W("tag-font-size"),dn=W("tag-padding-inline"),Dm={fontWeight:"medium",lineHeight:1.2,outline:0,[oi.variable]:ke.color.reference,[ni.variable]:ke.bg.reference,[eo.variable]:ke.shadow.reference,color:oi.reference,bg:ni.reference,boxShadow:eo.reference,borderRadius:"md",minH:sn.reference,minW:ln.reference,fontSize:cn.reference,px:dn.reference,_focusVisible:{[eo.variable]:"shadows.outline"}},Rm={lineHeight:1.2,overflow:"visible"},Bm={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}},Om=zt({container:Dm,label:Rm,closeButton:Bm}),Lm={sm:zt({container:{[sn.variable]:"sizes.5",[ln.variable]:"sizes.5",[cn.variable]:"fontSizes.xs",[dn.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:zt({container:{[sn.variable]:"sizes.6",[ln.variable]:"sizes.6",[cn.variable]:"fontSizes.sm",[dn.variable]:"space.2"}}),lg:zt({container:{[sn.variable]:"sizes.8",[ln.variable]:"sizes.8",[cn.variable]:"fontSizes.md",[dn.variable]:"space.3"}})},Wm={subtle:zt(e=>{var t;return{container:(t=$r.variants)==null?void 0:t.subtle(e)}}),solid:zt(e=>{var t;return{container:(t=$r.variants)==null?void 0:t.solid(e)}}),outline:zt(e=>{var t;return{container:(t=$r.variants)==null?void 0:t.outline(e)}})},Vm=zm({variants:Wm,baseStyle:Om,sizes:Lm,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:pt,defineMultiStyleConfig:Hm}=ve(wf.keys),Xt=W("input-height"),Yt=W("input-font-size"),Zt=W("input-padding"),Qt=W("input-border-radius"),jm=pt({addon:{height:Xt.reference,fontSize:Yt.reference,px:Zt.reference,borderRadius:Qt.reference},field:{width:"100%",height:Xt.reference,fontSize:Yt.reference,px:Zt.reference,borderRadius:Qt.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),kt={lg:{[Yt.variable]:"fontSizes.lg",[Zt.variable]:"space.4",[Qt.variable]:"radii.md",[Xt.variable]:"sizes.12"},md:{[Yt.variable]:"fontSizes.md",[Zt.variable]:"space.4",[Qt.variable]:"radii.md",[Xt.variable]:"sizes.10"},sm:{[Yt.variable]:"fontSizes.sm",[Zt.variable]:"space.3",[Qt.variable]:"radii.sm",[Xt.variable]:"sizes.8"},xs:{[Yt.variable]:"fontSizes.xs",[Zt.variable]:"space.2",[Qt.variable]:"radii.sm",[Xt.variable]:"sizes.6"}},Um={lg:pt({field:kt.lg,group:kt.lg}),md:pt({field:kt.md,group:kt.md}),sm:pt({field:kt.sm,group:kt.sm}),xs:pt({field:kt.xs,group:kt.xs})};function ua(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||O("blue.500","blue.300")(e),errorBorderColor:r||O("red.500","red.300")(e)}}var Gm=pt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ua(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:O("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Be(t,n),boxShadow:`0 0 0 1px ${Be(t,n)}`},_focusVisible:{zIndex:1,borderColor:Be(t,r),boxShadow:`0 0 0 1px ${Be(t,r)}`}},addon:{border:"1px solid",borderColor:O("inherit","whiteAlpha.50")(e),bg:O("gray.100","whiteAlpha.300")(e)}}}),qm=pt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ua(e);return{field:{border:"2px solid",borderColor:"transparent",bg:O("gray.100","whiteAlpha.50")(e),_hover:{bg:O("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Be(t,n)},_focusVisible:{bg:"transparent",borderColor:Be(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:O("gray.100","whiteAlpha.50")(e)}}}),Km=pt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ua(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Be(t,n),boxShadow:`0px 1px 0px 0px ${Be(t,n)}`},_focusVisible:{borderColor:Be(t,r),boxShadow:`0px 1px 0px 0px ${Be(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Xm=pt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Ym={outline:Gm,filled:qm,flushed:Km,unstyled:Xm},le=Hm({baseStyle:jm,sizes:Um,variants:Ym,defaultProps:{size:"md",variant:"outline"}}),ai,Zm={...(ai=le.baseStyle)==null?void 0:ai.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},ii,si,Qm={outline:e=>{var t,r;return(r=(t=le.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=le.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=le.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(si=(ii=le.variants)==null?void 0:ii.unstyled.field)!=null?si:{}},li,ci,di,ui,fi,mi,vi,pi,Jm={xs:(ci=(li=le.sizes)==null?void 0:li.xs.field)!=null?ci:{},sm:(ui=(di=le.sizes)==null?void 0:di.sm.field)!=null?ui:{},md:(mi=(fi=le.sizes)==null?void 0:fi.md.field)!=null?mi:{},lg:(pi=(vi=le.sizes)==null?void 0:vi.lg.field)!=null?pi:{}},ev={baseStyle:Zm,sizes:Jm,variants:Qm,defaultProps:{size:"md",variant:"outline"}},Xr=Pe("tooltip-bg"),to=Pe("tooltip-fg"),tv=Pe("popper-arrow-bg"),rv={bg:Xr.reference,color:to.reference,[Xr.variable]:"colors.gray.700",[to.variable]:"colors.whiteAlpha.900",_dark:{[Xr.variable]:"colors.gray.300",[to.variable]:"colors.gray.900"},[tv.variable]:Xr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},nv={baseStyle:rv},{defineMultiStyleConfig:ov,definePartsStyle:_r}=ve(Tf.keys),av=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,a=O(Qa(),Qa("1rem","rgba(0,0,0,0.1)"))(e),i=O(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
    to right,
    transparent 0%,
    ${Be(r,i)} 50%,
    transparent 100%
  )`;return{...!n&&o&&a,...n?{bgImage:s}:{bgColor:i}}},iv={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},sv=e=>({bg:O("gray.100","whiteAlpha.300")(e)}),lv=e=>({transitionProperty:"common",transitionDuration:"slow",...av(e)}),cv=_r(e=>({label:iv,filledTrack:lv(e),track:sv(e)})),dv={xs:_r({track:{h:"1"}}),sm:_r({track:{h:"2"}}),md:_r({track:{h:"3"}}),lg:_r({track:{h:"4"}})},uv=ov({sizes:dv,baseStyle:cv,defaultProps:{size:"md",colorScheme:"blue"}}),fv=e=>typeof e=="function";function Oe(e,...t){return fv(e)?e(...t):e}var{definePartsStyle:un,defineMultiStyleConfig:mv}=ve(gf.keys),Tr=W("checkbox-size"),vv=e=>{const{colorScheme:t}=e;return{w:Tr.reference,h:Tr.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:O(`${t}.500`,`${t}.200`)(e),borderColor:O(`${t}.500`,`${t}.200`)(e),color:O("white","gray.900")(e),_hover:{bg:O(`${t}.600`,`${t}.300`)(e),borderColor:O(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:O("gray.200","transparent")(e),bg:O("gray.200","whiteAlpha.300")(e),color:O("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:O(`${t}.500`,`${t}.200`)(e),borderColor:O(`${t}.500`,`${t}.200`)(e),color:O("white","gray.900")(e)},_disabled:{bg:O("gray.100","whiteAlpha.100")(e),borderColor:O("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:O("red.500","red.300")(e)}}},pv={_disabled:{cursor:"not-allowed"}},hv={userSelect:"none",_disabled:{opacity:.4}},bv={transitionProperty:"transform",transitionDuration:"normal"},gv=un(e=>({icon:bv,container:pv,control:Oe(vv,e),label:hv})),yv={sm:un({control:{[Tr.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:un({control:{[Tr.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:un({control:{[Tr.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},wn=mv({baseStyle:gv,sizes:yv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Sv,definePartsStyle:fn}=ve(Nf.keys),xv=e=>{var t;const r=(t=Oe(wn.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},kv=fn(e=>{var t,r,n,o;return{label:(r=(t=wn).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=wn).baseStyle)==null?void 0:o.call(n,e).container,control:xv(e)}}),wv={md:fn({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:fn({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:fn({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},_v=Sv({baseStyle:kv,sizes:wv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Cv,definePartsStyle:Pv}=ve(Ef.keys),Yr=W("select-bg"),hi,Iv={...(hi=le.baseStyle)==null?void 0:hi.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Yr.reference,[Yr.variable]:"colors.white",_dark:{[Yr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Yr.reference}},$v={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Tv=Pv({field:Iv,icon:$v}),Zr={paddingInlineEnd:"8"},bi,gi,yi,Si,xi,ki,wi,_i,Nv={lg:{...(bi=le.sizes)==null?void 0:bi.lg,field:{...(gi=le.sizes)==null?void 0:gi.lg.field,...Zr}},md:{...(yi=le.sizes)==null?void 0:yi.md,field:{...(Si=le.sizes)==null?void 0:Si.md.field,...Zr}},sm:{...(xi=le.sizes)==null?void 0:xi.sm,field:{...(ki=le.sizes)==null?void 0:ki.sm.field,...Zr}},xs:{...(wi=le.sizes)==null?void 0:wi.xs,field:{...(_i=le.sizes)==null?void 0:_i.xs.field,...Zr},icon:{insetEnd:"1"}}},Ev=Cv({baseStyle:Tv,sizes:Nv,variants:le.variants,defaultProps:le.defaultProps}),ro=W("skeleton-start-color"),no=W("skeleton-end-color"),Av={[ro.variable]:"colors.gray.100",[no.variable]:"colors.gray.400",_dark:{[ro.variable]:"colors.gray.800",[no.variable]:"colors.gray.600"},background:ro.reference,borderColor:no.reference,opacity:.7,borderRadius:"sm"},Fv={baseStyle:Av},oo=W("skip-link-bg"),Mv={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[oo.variable]:"colors.white",_dark:{[oo.variable]:"colors.gray.700"},bg:oo.reference}},zv={baseStyle:Mv},{defineMultiStyleConfig:Dv,definePartsStyle:Dn}=ve(Af.keys),Fr=W("slider-thumb-size"),Mr=W("slider-track-size"),Ct=W("slider-bg"),Rv=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...da({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Bv=e=>({...da({orientation:e.orientation,horizontal:{h:Mr.reference},vertical:{w:Mr.reference}}),overflow:"hidden",borderRadius:"sm",[Ct.variable]:"colors.gray.200",_dark:{[Ct.variable]:"colors.whiteAlpha.200"},_disabled:{[Ct.variable]:"colors.gray.300",_dark:{[Ct.variable]:"colors.whiteAlpha.300"}},bg:Ct.reference}),Ov=e=>{const{orientation:t}=e;return{...da({orientation:t,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:Fr.reference,h:Fr.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"}}},Lv=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ct.variable]:`colors.${t}.500`,_dark:{[Ct.variable]:`colors.${t}.200`},bg:Ct.reference}},Wv=Dn(e=>({container:Rv(e),track:Bv(e),thumb:Ov(e),filledTrack:Lv(e)})),Vv=Dn({container:{[Fr.variable]:"sizes.4",[Mr.variable]:"sizes.1"}}),Hv=Dn({container:{[Fr.variable]:"sizes.3.5",[Mr.variable]:"sizes.1"}}),jv=Dn({container:{[Fr.variable]:"sizes.2.5",[Mr.variable]:"sizes.0.5"}}),Uv={lg:Vv,md:Hv,sm:jv},Gv=Dv({baseStyle:Wv,sizes:Uv,defaultProps:{size:"md",colorScheme:"blue"}}),At=Pe("spinner-size"),qv={width:[At.reference],height:[At.reference]},Kv={xs:{[At.variable]:"sizes.3"},sm:{[At.variable]:"sizes.4"},md:{[At.variable]:"sizes.6"},lg:{[At.variable]:"sizes.8"},xl:{[At.variable]:"sizes.12"}},Xv={baseStyle:qv,sizes:Kv,defaultProps:{size:"md"}},{defineMultiStyleConfig:Yv,definePartsStyle:Fs}=ve(Ff.keys),Zv={fontWeight:"medium"},Qv={opacity:.8,marginBottom:"2"},Jv={verticalAlign:"baseline",fontWeight:"semibold"},e0={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},t0=Fs({container:{},label:Zv,helpText:Qv,number:Jv,icon:e0}),r0={md:Fs({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},n0=Yv({baseStyle:t0,sizes:r0,defaultProps:{size:"md"}}),ao=W("kbd-bg"),o0={[ao.variable]:"colors.gray.100",_dark:{[ao.variable]:"colors.whiteAlpha.100"},bg:ao.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},a0={baseStyle:o0},i0={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},s0={baseStyle:i0},{defineMultiStyleConfig:l0,definePartsStyle:c0}=ve(_f.keys),d0={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},u0=c0({icon:d0}),f0=l0({baseStyle:u0}),{defineMultiStyleConfig:m0,definePartsStyle:v0}=ve(Cf.keys),nt=W("menu-bg"),io=W("menu-shadow"),p0={[nt.variable]:"#fff",[io.variable]:"shadows.sm",_dark:{[nt.variable]:"colors.gray.700",[io.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:nt.reference,boxShadow:io.reference},h0={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[nt.variable]:"colors.gray.100",_dark:{[nt.variable]:"colors.whiteAlpha.100"}},_active:{[nt.variable]:"colors.gray.200",_dark:{[nt.variable]:"colors.whiteAlpha.200"}},_expanded:{[nt.variable]:"colors.gray.100",_dark:{[nt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:nt.reference},b0={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},g0={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},y0={opacity:.6},S0={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},x0={transitionProperty:"common",transitionDuration:"normal"},k0=v0({button:x0,list:p0,item:h0,groupTitle:b0,icon:g0,command:y0,divider:S0}),w0=m0({baseStyle:k0}),{defineMultiStyleConfig:_0,definePartsStyle:Wo}=ve(Pf.keys),so=W("modal-bg"),lo=W("modal-shadow"),C0={bg:"blackAlpha.600",zIndex:"modal"},P0=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},I0=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[so.variable]:"colors.white",[lo.variable]:"shadows.lg",_dark:{[so.variable]:"colors.gray.700",[lo.variable]:"shadows.dark-lg"},bg:so.reference,boxShadow:lo.reference}},$0={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},T0={position:"absolute",top:"2",insetEnd:"3"},N0=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},E0={px:"6",py:"4"},A0=Wo(e=>({overlay:C0,dialogContainer:Oe(P0,e),dialog:Oe(I0,e),header:$0,closeButton:T0,body:Oe(N0,e),footer:E0}));function Ye(e){return Wo(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var F0={xs:Ye("xs"),sm:Ye("sm"),md:Ye("md"),lg:Ye("lg"),xl:Ye("xl"),"2xl":Ye("2xl"),"3xl":Ye("3xl"),"4xl":Ye("4xl"),"5xl":Ye("5xl"),"6xl":Ye("6xl"),full:Ye("full")},M0=_0({baseStyle:A0,sizes:F0,defaultProps:{size:"md"}}),{defineMultiStyleConfig:z0,definePartsStyle:Ms}=ve(If.keys),fa=Pe("number-input-stepper-width"),zs=Pe("number-input-input-padding"),D0=mt(fa).add("0.5rem").toString(),co=Pe("number-input-bg"),uo=Pe("number-input-color"),fo=Pe("number-input-border-color"),R0={[fa.variable]:"sizes.6",[zs.variable]:D0},B0=e=>{var t,r;return(r=(t=Oe(le.baseStyle,e))==null?void 0:t.field)!=null?r:{}},O0={width:fa.reference},L0={borderStart:"1px solid",borderStartColor:fo.reference,color:uo.reference,bg:co.reference,[uo.variable]:"colors.chakra-body-text",[fo.variable]:"colors.chakra-border-color",_dark:{[uo.variable]:"colors.whiteAlpha.800",[fo.variable]:"colors.whiteAlpha.300"},_active:{[co.variable]:"colors.gray.200",_dark:{[co.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},W0=Ms(e=>{var t;return{root:R0,field:(t=Oe(B0,e))!=null?t:{},stepperGroup:O0,stepper:L0}});function Qr(e){var t,r,n;const o=(t=le.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=$s.fontSizes[i];return Ms({field:{...o.field,paddingInlineEnd:zs.reference,verticalAlign:"top"},stepper:{fontSize:mt(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var V0={xs:Qr("xs"),sm:Qr("sm"),md:Qr("md"),lg:Qr("lg")},H0=z0({baseStyle:W0,sizes:V0,variants:le.variants,defaultProps:le.defaultProps}),Ci,j0={...(Ci=le.baseStyle)==null?void 0:Ci.field,textAlign:"center"},U0={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},Pi,Ii,G0={outline:e=>{var t,r,n;return(n=(r=Oe((t=le.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=Oe((t=le.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=Oe((t=le.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(Ii=(Pi=le.variants)==null?void 0:Pi.unstyled.field)!=null?Ii:{}},q0={baseStyle:j0,sizes:U0,variants:G0,defaultProps:le.defaultProps},{defineMultiStyleConfig:K0,definePartsStyle:X0}=ve($f.keys),Jr=Pe("popper-bg"),Y0=Pe("popper-arrow-bg"),$i=Pe("popper-arrow-shadow-color"),Z0={zIndex:10},Q0={[Jr.variable]:"colors.white",bg:Jr.reference,[Y0.variable]:Jr.reference,[$i.variable]:"colors.gray.200",_dark:{[Jr.variable]:"colors.gray.700",[$i.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},J0={px:3,py:2,borderBottomWidth:"1px"},ep={px:3,py:2},tp={px:3,py:2,borderTopWidth:"1px"},rp={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},np=X0({popper:Z0,content:Q0,header:J0,body:ep,footer:tp,closeButton:rp}),op=K0({baseStyle:np}),{definePartsStyle:Vo,defineMultiStyleConfig:ap}=ve(yf.keys),mo=W("drawer-bg"),vo=W("drawer-box-shadow");function Wt(e){return Vo(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var ip={bg:"blackAlpha.600",zIndex:"overlay"},sp={display:"flex",zIndex:"modal",justifyContent:"center"},lp=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[mo.variable]:"colors.white",[vo.variable]:"shadows.lg",_dark:{[mo.variable]:"colors.gray.700",[vo.variable]:"shadows.dark-lg"},bg:mo.reference,boxShadow:vo.reference}},cp={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},dp={position:"absolute",top:"2",insetEnd:"3"},up={px:"6",py:"2",flex:"1",overflow:"auto"},fp={px:"6",py:"4"},mp=Vo(e=>({overlay:ip,dialogContainer:sp,dialog:Oe(lp,e),header:cp,closeButton:dp,body:up,footer:fp})),vp={xs:Wt("xs"),sm:Wt("md"),md:Wt("lg"),lg:Wt("2xl"),xl:Wt("4xl"),full:Wt("full")},pp=ap({baseStyle:mp,sizes:vp,defaultProps:{size:"xs"}}),{definePartsStyle:hp,defineMultiStyleConfig:bp}=ve(Sf.keys),gp={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},yp={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Sp={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},xp=hp({preview:gp,input:yp,textarea:Sp}),kp=bp({baseStyle:xp}),{definePartsStyle:wp,defineMultiStyleConfig:_p}=ve(xf.keys),tr=W("form-control-color"),Cp={marginStart:"1",[tr.variable]:"colors.red.500",_dark:{[tr.variable]:"colors.red.300"},color:tr.reference},Pp={mt:"2",[tr.variable]:"colors.gray.600",_dark:{[tr.variable]:"colors.whiteAlpha.600"},color:tr.reference,lineHeight:"normal",fontSize:"sm"},Ip=wp({container:{width:"100%",position:"relative"},requiredIndicator:Cp,helperText:Pp}),$p=_p({baseStyle:Ip}),{definePartsStyle:Tp,defineMultiStyleConfig:Np}=ve(kf.keys),rr=W("form-error-color"),Ep={[rr.variable]:"colors.red.500",_dark:{[rr.variable]:"colors.red.300"},color:rr.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Ap={marginEnd:"0.5em",[rr.variable]:"colors.red.500",_dark:{[rr.variable]:"colors.red.300"},color:rr.reference},Fp=Tp({text:Ep,icon:Ap}),Mp=Np({baseStyle:Fp}),zp={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Dp={baseStyle:zp},Rp={fontFamily:"heading",fontWeight:"bold"},Bp={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Op={baseStyle:Rp,sizes:Bp,defaultProps:{size:"xl"}},{defineMultiStyleConfig:Lp,definePartsStyle:Wp}=ve(bf.keys),po=W("breadcrumb-link-decor"),Vp={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:po.reference,[po.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[po.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Hp=Wp({link:Vp}),jp=Lp({baseStyle:Hp}),Up={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"}}},Ds=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:O("gray.800","whiteAlpha.900")(e),_hover:{bg:O("gray.100","whiteAlpha.200")(e)},_active:{bg:O("gray.200","whiteAlpha.300")(e)}};const n=sr(`${t}.200`,.12)(r),o=sr(`${t}.200`,.24)(r);return{color:O(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:O(`${t}.50`,n)(e)},_active:{bg:O(`${t}.100`,o)(e)}}},Gp=e=>{const{colorScheme:t}=e,r=O("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"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"},...Oe(Ds,e)}},qp={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Kp=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=O("gray.100","whiteAlpha.200")(e);return{bg:l,color:O("gray.800","whiteAlpha.900")(e),_hover:{bg:O("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:O("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:a=`${r}.600`,activeBg:i=`${r}.700`}=(t=qp[r])!=null?t:{},s=O(n,`${r}.200`)(e);return{bg:s,color:O(o,"gray.800")(e),_hover:{bg:O(a,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:O(i,`${r}.400`)(e)}}},Xp=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:O(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:O(`${t}.700`,`${t}.500`)(e)}}},Yp={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Zp={ghost:Ds,outline:Gp,solid:Kp,link:Xp,unstyled:Yp},Qp={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Jp={baseStyle:Up,variants:Zp,sizes:Qp,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Dt,defineMultiStyleConfig:eh}=ve(Bf.keys),_n=W("card-bg"),bt=W("card-padding"),Rs=W("card-shadow"),mn=W("card-radius"),Bs=W("card-border-width","0"),Os=W("card-border-color"),th=Dt({container:{[_n.variable]:"colors.chakra-body-bg",backgroundColor:_n.reference,boxShadow:Rs.reference,borderRadius:mn.reference,color:"chakra-body-text",borderWidth:Bs.reference,borderColor:Os.reference},body:{padding:bt.reference,flex:"1 1 0%"},header:{padding:bt.reference},footer:{padding:bt.reference}}),rh={sm:Dt({container:{[mn.variable]:"radii.base",[bt.variable]:"space.3"}}),md:Dt({container:{[mn.variable]:"radii.md",[bt.variable]:"space.5"}}),lg:Dt({container:{[mn.variable]:"radii.xl",[bt.variable]:"space.7"}})},nh={elevated:Dt({container:{[Rs.variable]:"shadows.base",_dark:{[_n.variable]:"colors.gray.700"}}}),outline:Dt({container:{[Bs.variable]:"1px",[Os.variable]:"colors.chakra-border-color"}}),filled:Dt({container:{[_n.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[bt.variable]:0},header:{[bt.variable]:0},footer:{[bt.variable]:0}}},oh=eh({baseStyle:th,variants:nh,sizes:rh,defaultProps:{variant:"elevated",size:"md"}}),Nr=Pe("close-button-size"),yr=Pe("close-button-bg"),ah={w:[Nr.reference],h:[Nr.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[yr.variable]:"colors.blackAlpha.100",_dark:{[yr.variable]:"colors.whiteAlpha.100"}},_active:{[yr.variable]:"colors.blackAlpha.200",_dark:{[yr.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:yr.reference},ih={lg:{[Nr.variable]:"sizes.10",fontSize:"md"},md:{[Nr.variable]:"sizes.8",fontSize:"xs"},sm:{[Nr.variable]:"sizes.6",fontSize:"2xs"}},sh={baseStyle:ah,sizes:ih,defaultProps:{size:"md"}},{variants:lh,defaultProps:ch}=$r,dh={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ke.bg.reference,color:ke.color.reference,boxShadow:ke.shadow.reference},uh={baseStyle:dh,variants:lh,defaultProps:ch},fh={w:"100%",mx:"auto",maxW:"prose",px:"4"},mh={baseStyle:fh},vh={opacity:.6,borderColor:"inherit"},ph={borderStyle:"solid"},hh={borderStyle:"dashed"},bh={solid:ph,dashed:hh},gh={baseStyle:vh,variants:bh,defaultProps:{variant:"solid"}},{definePartsStyle:yh,defineMultiStyleConfig:Sh}=ve(vf.keys),xh={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},kh={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},wh={pt:"2",px:"4",pb:"5"},_h={fontSize:"1.25em"},Ch=yh({container:xh,button:kh,panel:wh,icon:_h}),Ph=Sh({baseStyle:Ch}),{definePartsStyle:Wr,defineMultiStyleConfig:Ih}=ve(pf.keys),He=W("alert-fg"),gt=W("alert-bg"),$h=Wr({container:{bg:gt.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:He.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:He.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ma(e){const{theme:t,colorScheme:r}=e,n=sr(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var Th=Wr(e=>{const{colorScheme:t}=e,r=ma(e);return{container:{[He.variable]:`colors.${t}.500`,[gt.variable]:r.light,_dark:{[He.variable]:`colors.${t}.200`,[gt.variable]:r.dark}}}}),Nh=Wr(e=>{const{colorScheme:t}=e,r=ma(e);return{container:{[He.variable]:`colors.${t}.500`,[gt.variable]:r.light,_dark:{[He.variable]:`colors.${t}.200`,[gt.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:He.reference}}}),Eh=Wr(e=>{const{colorScheme:t}=e,r=ma(e);return{container:{[He.variable]:`colors.${t}.500`,[gt.variable]:r.light,_dark:{[He.variable]:`colors.${t}.200`,[gt.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:He.reference}}}),Ah=Wr(e=>{const{colorScheme:t}=e;return{container:{[He.variable]:"colors.white",[gt.variable]:`colors.${t}.500`,_dark:{[He.variable]:"colors.gray.900",[gt.variable]:`colors.${t}.200`},color:He.reference}}}),Fh={subtle:Th,"left-accent":Nh,"top-accent":Eh,solid:Ah},Mh=Ih({baseStyle:$h,variants:Fh,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Ls,defineMultiStyleConfig:zh}=ve(hf.keys),nr=W("avatar-border-color"),Er=W("avatar-bg"),zr=W("avatar-font-size"),lr=W("avatar-size"),Dh={borderRadius:"full",border:"0.2em solid",borderColor:nr.reference,[nr.variable]:"white",_dark:{[nr.variable]:"colors.gray.800"}},Rh={bg:Er.reference,fontSize:zr.reference,width:lr.reference,height:lr.reference,lineHeight:"1",[Er.variable]:"colors.gray.200",_dark:{[Er.variable]:"colors.whiteAlpha.400"}},Bh=e=>{const{name:t,theme:r}=e,n=t?Uf({string:t}):"colors.gray.400",o=Hf(n)(r);let a="white";return o||(a="gray.800"),{bg:Er.reference,fontSize:zr.reference,color:a,borderColor:nr.reference,verticalAlign:"top",width:lr.reference,height:lr.reference,"&:not([data-loaded])":{[Er.variable]:n},[nr.variable]:"colors.white",_dark:{[nr.variable]:"colors.gray.800"}}},Oh={fontSize:zr.reference,lineHeight:"1"},Lh=Ls(e=>({badge:Oe(Dh,e),excessLabel:Oe(Rh,e),container:Oe(Bh,e),label:Oh}));function wt(e){const t=e!=="100%"?Ns[e]:void 0;return Ls({container:{[lr.variable]:t??e,[zr.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[lr.variable]:t??e,[zr.variable]:`calc(${t??e} / 2.5)`}})}var Wh={"2xs":wt(4),xs:wt(6),sm:wt(8),md:wt(12),lg:wt(16),xl:wt(24),"2xl":wt(32),full:wt("100%")},Vh=zh({baseStyle:Lh,sizes:Wh,defaultProps:{size:"md"}}),Hh={Accordion:Ph,Alert:Mh,Avatar:Vh,Badge:$r,Breadcrumb:jp,Button:Jp,Checkbox:wn,CloseButton:sh,Code:uh,Container:mh,Divider:gh,Drawer:pp,Editable:kp,Form:$p,FormError:Mp,FormLabel:Dp,Heading:Op,Input:le,Kbd:a0,Link:s0,List:f0,Menu:w0,Modal:M0,NumberInput:H0,PinInput:q0,Popover:op,Progress:uv,Radio:_v,Select:Ev,Skeleton:Fv,SkipLink:zv,Slider:Gv,Spinner:Xv,Stat:n0,Switch:sm,Table:vm,Tabs:Tm,Tag:Vm,Textarea:ev,Tooltip:nv,Card:oh,Stepper:mf},jh={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"}}},Uh={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"}}},Gh="ltr",qh={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Ws={semanticTokens:jh,direction:Gh,...df,components:Hh,styles:Uh,config:qh};function Cr(e){return typeof e=="function"}function Kh(...e){return t=>e.reduce((r,n)=>n(r),t)}var Xh=e=>function(...r){let n=[...r],o=r[r.length-1];return Ou(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Kh(...n.map(a=>i=>Cr(a)?a(i):Yh(i,a)))(o)},Uw=Xh(Ws);function Yh(...e){return qe({},...e,Vs)}function Vs(e,t,r,n){if((Cr(e)||Cr(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const a=Cr(e)?e(...o):e,i=Cr(t)?t(...o):t;return qe({},a,i,Vs)}}function Zh(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Qh=Zh();function Jh(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function eb(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}var tb=e=>{const t=new WeakMap;return(n,o,a,i)=>{if(typeof n>"u")return e(n,o,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,a,i);return s.set(o,l),l}},Hs=tb(eb);function js(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var Us=e=>js(e,t=>t!=null);function rb(e){return typeof e=="function"}function Gs(e,...t){return rb(e)?e(...t):e}function nb(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function qs(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:a,colorMode:i}=ys(),s=e?Hs(a,`components.${e}`):void 0,l=n||s,c=qe({theme:a,colorMode:i},(r=l==null?void 0:l.defaultProps)!=null?r:{},Us(Jh(o,["children"]))),d=V({});if(l){const m=Du(l)(c);td(d.current,m)||(d.current=m)}return d.current}function je(e,t={}){return qs(e,t)}function Ne(e,t={}){return qs(e,t)}var ob=new Set([..._u,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),ab=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function ib(e){return ab.has(e)||!ob.has(e)}function sb(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function Ks(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var Ti,lb=(Ti=Wa.default)!=null?Ti:Wa,cb=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:a,...i}=t,s=js(i,(u,m)=>Pu(m)),l=Gs(e,t),c=sb({},o,l,Us(s),a),d=Is(c)(t.theme);return n?[d,n]:d};function ho(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=ib);const o=cb({baseStyle:r}),a=lb(e,n)(o);return Eo.forwardRef(function(l,c){const{colorMode:d,forced:u}=aa();return Eo.createElement(a,{ref:c,"data-theme":u?d:void 0,...l})})}function db(){const e=new Map;return new Proxy(ho,{apply(t,r,n){return ho(...n)},get(t,r){return e.has(r)||e.set(r,ho(r)),e.get(r)}})}var k=db();function P(e){return tt(e)}function ub(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Tn(void 0);o.displayName=n;function a(){var i;const s=Br(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,a),l}return s}return[o.Provider,a,o]}function fb(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=J(()=>ku(r),[r]);return f(Lc,{theme:o,children:[f(mb,{root:t}),n]})}function mb({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return f(En,{styles:r=>({[t]:r.__cssVars})})}ub({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function vb(){const{colorMode:e}=aa();return f(En,{styles:t=>{const r=Hs(t,"styles.global"),n=Gs(r,{theme:t,colorMode:e});return n?Is(n)(t):void 0}})}var va=Tn({getDocument(){return document},getWindow(){return window}});va.displayName="EnvironmentContext";function pb({defer:e}={}){const[,t]=Fc(r=>r+1,0);return ot(()=>{e&&t()},[e]),Br(va)}function Xs(e){const{children:t,environment:r,disabled:n}=e,o=V(null),a=J(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),i=!n||!r;return f(va.Provider,{value:a,children:[t,i&&f("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Xs.displayName="EnvironmentProvider";var hb=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:a=!0,theme:i={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:d}=e,u=f(Xs,{environment:s,disabled:c,children:t});return f(fb,{theme:i,cssVarsRoot:l,children:f(gs,{colorModeManager:r,options:i.config,children:[a?f(nd,{scope:o}):f(rd,{}),!d&&f(vb,{}),n?f(hs,{zIndex:n,children:u}):u]})})},bb=(e,t)=>e.find(r=>r.id===t);function Ni(e,t){const r=Ys(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Ys(e,t){for(const[r,n]of Object.entries(e))if(bb(n,t))return r}function gb(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function yb(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:a,left:i}}function Se(e,t=[]){const r=V(e);return K(()=>{r.current=e}),S((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function Sb(e,t){const r=Se(e);K(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Pt(e,t){const r=V(!1),n=V(!1);K(()=>{if(r.current&&n.current)return e();n.current=!0},t),K(()=>(r.current=!0,()=>{r.current=!1}),[])}var xb={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Zs=Mc(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:a=!1,position:i="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=xb,toastSpacing:d="0.5rem"}=e,[u,m]=B(s),v=jc();Pt(()=>{v||n==null||n()},[v]),Pt(()=>{m(s)},[s]);const h=()=>m(null),p=()=>m(s),b=()=>{v&&o()};K(()=>{v&&a&&o()},[v,a,o]),Sb(b,u);const y=J(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l}),[l,d]),x=J(()=>gb(i),[i]);return f(st.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:h,onHoverEnd:p,custom:{position:i},style:x,children:f(k.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:Je(r,{id:t,onClose:b})})})});Zs.displayName="ToastComponent";function kb(e,t){var r;const n=e??"bottom",a={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=a==null?void 0:a[t])!=null?r:n}var Ei={path:f("g",{stroke:"currentColor",strokeWidth:"1.5",children:[f("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),f("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),f("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},lt=P((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,d=z("chakra-icon",s),u=je("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...u},v={ref:t,focusable:a,className:d,__css:m},h=n??Ei.viewBox;if(r&&typeof r!="string")return f(k.svg,{as:r,...v,...c});const p=i??Ei.path;return f(k.svg,{verticalAlign:"middle",viewBox:h,...v,...c,children:p})});lt.displayName="Icon";function ze(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,a=cr.toArray(e.path),i=P((s,l)=>f(lt,{ref:l,viewBox:t,...o,...s,children:a.length?a:f("path",{fill:"currentColor",d:r})}));return i.displayName=n,i}function wb(e){return f(lt,{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function _b(e){return f(lt,{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Ai(e){return f(lt,{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Cb=$t({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),pa=P((e,t)=>{const r=je("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=ue(e),c=z("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${Cb} ${a} linear infinite`,...r};return f(k.div,{ref:t,__css:d,className:c,...l,children:n&&f(k.span,{srOnly:!0,children:n})})});pa.displayName="Spinner";var[Pb,ha]=ce({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Ib,ba]=ce({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Qs={info:{icon:_b,colorScheme:"blue"},warning:{icon:Ai,colorScheme:"orange"},success:{icon:wb,colorScheme:"green"},error:{icon:Ai,colorScheme:"red"},loading:{icon:pa,colorScheme:"blue"}};function $b(e){return Qs[e].colorScheme}function Tb(e){return Qs[e].icon}var Js=P(function(t,r){const n=ba(),{status:o}=ha(),a={display:"inline",...n.description};return f(k.div,{ref:r,"data-status":o,...t,className:z("chakra-alert__desc",t.className),__css:a})});Js.displayName="AlertDescription";function el(e){const{status:t}=ha(),r=Tb(t),n=ba(),o=t==="loading"?n.spinner:n.icon;return f(k.span,{display:"inherit","data-status":t,...e,className:z("chakra-alert__icon",e.className),__css:o,children:e.children||f(r,{h:"100%",w:"100%"})})}el.displayName="AlertIcon";var tl=P(function(t,r){const n=ba(),{status:o}=ha();return f(k.div,{ref:r,"data-status":o,...t,className:z("chakra-alert__title",t.className),__css:n.title})});tl.displayName="AlertTitle";var rl=P(function(t,r){var n;const{status:o="info",addRole:a=!0,...i}=ue(t),s=(n=t.colorScheme)!=null?n:$b(o),l=Ne("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return f(Pb,{value:{status:o},children:f(Ib,{value:l,children:f(k.div,{"data-status":o,role:a?"alert":void 0,ref:r,...i,className:z("chakra-alert",t.className),__css:c})})})});rl.displayName="Alert";function Nb(e){return f(lt,{focusable:"false","aria-hidden":!0,...e,children:f("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var ga=P(function(t,r){const n=je("CloseButton",t),{children:o,isDisabled:a,__css:i,...s}=ue(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return f(k.button,{type:"button","aria-label":"Close",ref:r,disabled:a,__css:{...l,...n,...i},...s,children:o||f(Nb,{width:"1em",height:"1em"})})});ga.displayName="CloseButton";var Eb={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},vt=Ab(Eb);function Ab(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(a=>a())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,a)=>{n(i=>({...i,[a]:i[a].filter(s=>s.id!=o)}))},notify:(o,a)=>{const i=Fb(o,a),{position:s,id:l}=i;return n(c=>{var d,u;const v=s.includes("top")?[i,...(d=c[s])!=null?d:[]]:[...(u=c[s])!=null?u:[],i];return{...c,[s]:v}}),l},update:(o,a)=>{o&&n(i=>{const s={...i},{position:l,index:c}=Ni(s,o);return l&&c!==-1&&(s[l][c]={...s[l][c],...a,message:nl(a)}),s})},closeAll:({positions:o}={})=>{n(a=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=a[c].map(d=>({...d,requestClose:!0})),l),{...a}))},close:o=>{n(a=>{const i=Ys(a,o);return i?{...a,[i]:a[i].map(s=>s.id==o?{...s,requestClose:!0}:s)}:a})},isActive:o=>!!Ni(vt.getState(),o).position}}var Fi=0;function Fb(e,t={}){var r,n;Fi+=1;const o=(r=t.id)!=null?r:Fi,a=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>vt.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Mb=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:a,onClose:i,description:s,colorScheme:l,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return f(rl,{addRole:!1,status:t,variant:r,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[f(el,{children:c}),f(k.div,{flex:"1",maxWidth:"100%",children:[o&&f(tl,{id:d==null?void 0:d.title,children:o}),s&&f(Js,{id:d==null?void 0:d.description,display:"block",children:s})]}),a&&f(ga,{size:"sm",onClick:i,position:"absolute",insetEnd:1,top:1})]})};function nl(e={}){const{render:t,toastComponent:r=Mb}=e;return o=>typeof t=="function"?t({...o,...e}):f(r,{...o,...e})}function zb(e,t){const r=o=>{var a;return{...t,...o,position:kb((a=o==null?void 0:o.position)!=null?a:t==null?void 0:t.position,e)}},n=o=>{const a=r(o),i=nl(a);return vt.notify(i,a)};return n.update=(o,a)=>{vt.update(o,r(a))},n.promise=(o,a)=>{const i=n({...a.loading,status:"loading",duration:null});o.then(s=>n.update(i,{status:"success",duration:5e3,...Je(a.success,s)})).catch(s=>n.update(i,{status:"error",duration:5e3,...Je(a.error,s)}))},n.closeAll=vt.closeAll,n.close=vt.close,n.isActive=vt.isActive,n}var[Db,Rb]=ce({name:"ToastOptionsContext",strict:!1}),Bb=e=>{const t=zc(vt.subscribe,vt.getState),{motionVariants:r,component:n=Zs,portalProps:o}=e,i=Object.keys(t).map(s=>{const l=t[s];return f("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:yb(s),children:f(Tt,{initial:!1,children:l.map(c=>f(n,{motionVariants:r,...c},c.id))})},s)});return f(dr,{...o,children:i})};function Gw(e){const{theme:t}=ys(),r=Rb();return J(()=>zb(t.direction,{...r,...e}),[e,t.direction,r])}var Ob=e=>function({children:r,theme:n=e,toastOptions:o,...a}){return f(hb,{theme:n,...a,children:[f(Db,{value:o==null?void 0:o.defaultOptions,children:r}),f(Bb,{...o})]})},qw=Ob(Ws),Lb=Object.defineProperty,Wb=(e,t,r)=>t in e?Lb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ye=(e,t,r)=>(Wb(e,typeof t!="symbol"?t+"":t,r),r);function Mi(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var Vb=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function zi(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Di(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var Ho=typeof window<"u"?Nn:K,Cn=e=>e,Hb=class{constructor(){ye(this,"descendants",new Map),ye(this,"register",e=>{if(e!=null)return Vb(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),ye(this,"unregister",e=>{this.descendants.delete(e);const t=Mi(Array.from(this.descendants.keys()));this.assignIndex(t)}),ye(this,"destroy",()=>{this.descendants.clear()}),ye(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),ye(this,"count",()=>this.descendants.size),ye(this,"enabledCount",()=>this.enabledValues().length),ye(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),ye(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),ye(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),ye(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),ye(this,"first",()=>this.item(0)),ye(this,"firstEnabled",()=>this.enabledItem(0)),ye(this,"last",()=>this.item(this.descendants.size-1)),ye(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),ye(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),ye(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),ye(this,"next",(e,t=!0)=>{const r=zi(e,this.count(),t);return this.item(r)}),ye(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=zi(n,this.enabledCount(),t);return this.enabledItem(o)}),ye(this,"prev",(e,t=!0)=>{const r=Di(e,this.count()-1,t);return this.item(r)}),ye(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Di(n,this.enabledCount()-1,t);return this.enabledItem(o)}),ye(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=Mi(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(n)})}};function jb(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function he(...e){return t=>{e.forEach(r=>{jb(r,t)})}}function Ub(...e){return J(()=>he(...e),e)}function Gb(){const e=V(new Hb);return Ho(()=>()=>e.current.destroy()),e.current}var[qb,ol]=ce({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Kb(e){const t=ol(),[r,n]=B(-1),o=V(null);Ho(()=>()=>{o.current&&t.unregister(o.current)},[]),Ho(()=>{if(!o.current)return;const i=Number(o.current.dataset.index);r!=i&&!Number.isNaN(i)&&n(i)});const a=Cn(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:he(a,o)}}function ya(){return[Cn(qb),()=>Cn(ol()),()=>Gb(),o=>Kb(o)]}var[Xb,Rn]=ce({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[Yb,Sa]=ce({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[Zb,Kw,Qb,Jb]=ya(),eg=P(function(t,r){const{getButtonProps:n}=Sa(),o=n(t,r),i={display:"flex",alignItems:"center",width:"100%",outline:0,...Rn().button};return f(k.button,{...o,className:z("chakra-accordion__button",t.className),__css:i})});eg.displayName="AccordionButton";function Bn(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=(m,v)=>m!==v}=e,a=Se(n),i=Se(o),[s,l]=B(r),c=t!==void 0,d=c?t:s,u=Se(m=>{const h=typeof m=="function"?m(d):m;i(d,h)&&(c||l(h),a(h))},[c,a,d,i]);return[d,u]}function tg(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:o,allowToggle:a,...i}=e;og(e),ag(e);const s=Qb(),[l,c]=B(-1);K(()=>()=>{c(-1)},[]);const[d,u]=Bn({value:n,defaultValue(){return o?r??[]:r??-1},onChange:t});return{index:d,setIndex:u,htmlProps:i,getAccordionItemProps:v=>{let h=!1;return v!==null&&(h=Array.isArray(d)?d.includes(v):d===v),{isOpen:h,onChange:b=>{if(v!==null)if(o&&Array.isArray(d)){const y=b?d.concat(v):d.filter(x=>x!==v);u(y)}else b?u(v):a&&u(-1)}}},focusedIndex:l,setFocusedIndex:c,descendants:s}}var[rg,xa]=ce({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function ng(e){const{isDisabled:t,isFocusable:r,id:n,...o}=e,{getAccordionItemProps:a,setFocusedIndex:i}=xa(),s=V(null),l=Ke(),c=n??l,d=`accordion-button-${c}`,u=`accordion-panel-${c}`;ig(e);const{register:m,index:v,descendants:h}=Jb({disabled:t&&!r}),{isOpen:p,onChange:b}=a(v===-1?null:v);sg({isOpen:p,isDisabled:t});const y=()=>{b==null||b(!0)},x=()=>{b==null||b(!1)},w=S(()=>{b==null||b(!p),i(v)},[v,i,p,b]),I=S(A=>{const _={ArrowDown:()=>{const E=h.nextEnabled(v);E==null||E.node.focus()},ArrowUp:()=>{const E=h.prevEnabled(v);E==null||E.node.focus()},Home:()=>{const E=h.firstEnabled();E==null||E.node.focus()},End:()=>{const E=h.lastEnabled();E==null||E.node.focus()}}[A.key];_&&(A.preventDefault(),_(A))},[h,v]),N=S(()=>{i(v)},[i,v]),T=S(function(M={},_=null){return{...M,type:"button",ref:he(m,s,_),id:d,disabled:!!t,"aria-expanded":!!p,"aria-controls":u,onClick:L(M.onClick,w),onFocus:L(M.onFocus,N),onKeyDown:L(M.onKeyDown,I)}},[d,t,p,w,N,I,u,m]),C=S(function(M={},_=null){return{...M,ref:_,role:"region",id:u,"aria-labelledby":d,hidden:!p}},[d,p,u]);return{isOpen:p,isDisabled:t,isFocusable:r,onOpen:y,onClose:x,getButtonProps:T,getPanelProps:C,htmlProps:o}}function og(e){const t=e.index||e.defaultIndex,r=t!=null&&!Array.isArray(t)&&e.allowMultiple;Lr({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function ag(e){Lr({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function ig(e){Lr({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
    `})}function sg(e){Lr({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function lg(e){const{isOpen:t,isDisabled:r}=Sa(),{reduceMotion:n}=xa(),o=z("chakra-accordion__icon",e.className),a=Rn(),i={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return f(lt,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:i,...e,children:f("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}lg.displayName="AccordionIcon";var cg=P(function(t,r){const{children:n,className:o}=t,{htmlProps:a,...i}=ng(t),l={...Rn().container,overflowAnchor:"none"},c=J(()=>i,[i]);return f(Yb,{value:c,children:f(k.div,{ref:r,...a,className:z("chakra-accordion__item",o),__css:l,children:typeof n=="function"?n({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):n})})});cg.displayName="AccordionItem";var Ft={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Sr={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function jo(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return Sr.slideRight;case"left":return Sr.slideLeft;case"bottom":return Sr.slideDown;case"top":return Sr.slideUp;default:return Sr.slideRight}}var Rt={enter:{duration:.2,ease:Ft.easeOut},exit:{duration:.1,ease:Ft.easeIn}},et={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},dg=e=>e!=null&&parseInt(e.toString(),10)>0,Ri={exit:{height:{duration:.2,ease:Ft.ease},opacity:{duration:.3,ease:Ft.ease}},enter:{height:{duration:.3,ease:Ft.ease},opacity:{duration:.4,ease:Ft.ease}}},ug={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{...e&&{opacity:dg(t)?1:0},height:t,transitionEnd:n==null?void 0:n.exit,transition:(a=r==null?void 0:r.exit)!=null?a:et.exit(Ri.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:n==null?void 0:n.enter,transition:(a=r==null?void 0:r.enter)!=null?a:et.enter(Ri.enter,o)}}},al=tt((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:c,transitionEnd:d,...u}=e,[m,v]=B(!1);K(()=>{const x=setTimeout(()=>{v(!0)});return()=>clearTimeout(x)},[]),Lr({condition:Number(a)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const h=parseFloat(a.toString())>0,p={startingHeight:a,endingHeight:i,animateOpacity:o,transition:m?c:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:n?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:h?"block":"none"}}},b=n?r:!0,y=r||n?"enter":"exit";return f(Tt,{initial:!1,custom:p,children:b&&f(st.div,{ref:t,...u,className:z("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:p,variants:ug,initial:n?"exit":!1,animate:y,exit:"exit"})})});al.displayName="Collapse";var fg={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:et.enter(Rt.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:et.exit(Rt.exit,r),transitionEnd:t==null?void 0:t.exit}}},il={initial:"exit",animate:"enter",exit:"exit",variants:fg},mg=tt(function(t,r){const{unmountOnExit:n,in:o,className:a,transition:i,transitionEnd:s,delay:l,...c}=t,d=o||n?"enter":"exit",u=n?o&&n:!0,m={transition:i,transitionEnd:s,delay:l};return f(Tt,{custom:m,children:u&&f(st.div,{ref:r,className:z("chakra-fade",a),custom:m,...il,animate:d,...c})})});mg.displayName="Fade";var vg={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(a=r==null?void 0:r.exit)!=null?a:et.exit(Rt.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:et.enter(Rt.enter,r),transitionEnd:e==null?void 0:e.enter}}},sl={initial:"exit",animate:"enter",exit:"exit",variants:vg},pg=tt(function(t,r){const{unmountOnExit:n,in:o,reverse:a=!0,initialScale:i=.95,className:s,transition:l,transitionEnd:c,delay:d,...u}=t,m=n?o&&n:!0,v=o||n?"enter":"exit",h={initialScale:i,reverse:a,transition:l,transitionEnd:c,delay:d};return f(Tt,{custom:h,children:m&&f(st.div,{ref:r,className:z("chakra-offset-slide",s),...sl,animate:v,custom:h,...u})})});pg.displayName="ScaleFade";var hg={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:(a=r==null?void 0:r.exit)!=null?a:et.exit(Rt.exit,o),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:et.enter(Rt.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:a})=>{var i;const s={x:t,y:e};return{opacity:0,transition:(i=r==null?void 0:r.exit)!=null?i:et.exit(Rt.exit,a),...o?{...s,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...s,...n==null?void 0:n.exit}}}}},Uo={initial:"initial",animate:"enter",exit:"exit",variants:hg},bg=tt(function(t,r){const{unmountOnExit:n,in:o,reverse:a=!0,className:i,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:d,delay:u,...m}=t,v=n?o&&n:!0,h=o||n?"enter":"exit",p={offsetX:s,offsetY:l,reverse:a,transition:c,transitionEnd:d,delay:u};return f(Tt,{custom:p,children:v&&f(st.div,{ref:r,className:z("chakra-offset-slide",i),custom:p,...Uo,animate:h,...m})})});bg.displayName="SlideFade";var Bi={exit:{duration:.15,ease:Ft.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},gg={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var o;const{exit:a}=jo({direction:e});return{...a,transition:(o=t==null?void 0:t.exit)!=null?o:et.exit(Bi.exit,n),transitionEnd:r==null?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var o;const{enter:a}=jo({direction:e});return{...a,transition:(o=r==null?void 0:r.enter)!=null?o:et.enter(Bi.enter,n),transitionEnd:t==null?void 0:t.enter}}},ll=tt(function(t,r){const{direction:n="right",style:o,unmountOnExit:a,in:i,className:s,transition:l,transitionEnd:c,delay:d,motionProps:u,...m}=t,v=jo({direction:n}),h=Object.assign({position:"fixed"},v.position,o),p=a?i&&a:!0,b=i||a?"enter":"exit",y={transitionEnd:c,transition:l,direction:n,delay:d};return f(Tt,{custom:y,children:p&&f(st.div,{...m,ref:r,initial:"exit",className:z("chakra-slide",s),animate:b,exit:"exit",custom:y,variants:gg,style:h,...u})})});ll.displayName="Slide";var yg=P(function(t,r){const{className:n,motionProps:o,...a}=t,{reduceMotion:i}=xa(),{getPanelProps:s,isOpen:l}=Sa(),c=s(a,r),d=z("chakra-accordion__panel",n),u=Rn();i||delete c.hidden;const m=f(k.div,{...c,__css:u.panel,className:d});return i?m:f(al,{in:l,...o,children:m})});yg.displayName="AccordionPanel";var Sg=P(function({children:t,reduceMotion:r,...n},o){const a=Ne("Accordion",n),i=ue(n),{htmlProps:s,descendants:l,...c}=tg(i),d=J(()=>({...c,reduceMotion:!!r}),[c,r]);return f(Zb,{value:l,children:f(rg,{value:d,children:f(Xb,{value:a,children:f(k.div,{ref:o,...s,className:z("chakra-accordion",n.className),__css:a.root,children:t})})})})});Sg.displayName="Accordion";var Go=P(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:a,...i}=t;return f("img",{width:n,height:o,ref:r,alt:a,...i})});Go.displayName="NativeImage";function xg(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:i,sizes:s,ignoreFallback:l}=e,[c,d]=B("pending");K(()=>{d(r?"loading":"pending")},[r]);const u=V(),m=S(()=>{if(!r)return;v();const h=new Image;h.src=r,i&&(h.crossOrigin=i),n&&(h.srcset=n),s&&(h.sizes=s),t&&(h.loading=t),h.onload=p=>{v(),d("loaded"),o==null||o(p)},h.onerror=p=>{v(),d("failed"),a==null||a(p)},u.current=h},[r,i,n,s,o,a,t]),v=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return ot(()=>{if(!l)return c==="loading"&&m(),()=>{v()}},[c,m,l]),l?"loaded":c}var kg=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function wg(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var _g=P(function(t,r){const{fallbackSrc:n,fallback:o,src:a,srcSet:i,align:s,fit:l,loading:c,ignoreFallback:d,crossOrigin:u,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...h}=t,p=n!==void 0||o!==void 0,b=c!=null||d||!p,y=xg({...t,crossOrigin:u,ignoreFallback:b}),x=kg(y,m),w={ref:r,objectFit:l,objectPosition:s,...b?h:wg(h,["onError","onLoad"])};return x?o||f(k.img,{as:Go,className:"chakra-image__placeholder",src:n,...w}):f(k.img,{as:Go,src:a,srcSet:i,crossOrigin:u,loading:c,referrerPolicy:v,className:"chakra-image",...w})});_g.displayName="Image";function ka(e){return cr.toArray(e).filter(t=>Or(t))}var[Cg,Pg]=ce({strict:!1,name:"ButtonGroupContext"}),Ig={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},$g={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Tg=P(function(t,r){const{size:n,colorScheme:o,variant:a,className:i,spacing:s="0.5rem",isAttached:l,isDisabled:c,orientation:d="horizontal",...u}=t,m=z("chakra-button__group",i),v=J(()=>({size:n,colorScheme:o,variant:a,isDisabled:c}),[n,o,a,c]);let h={display:"inline-flex",...l?Ig[d]:$g[d](s)};const p=d==="vertical";return f(Cg,{value:v,children:f(k.div,{ref:r,role:"group",__css:h,className:m,"data-attached":l?"":void 0,"data-orientation":d,flexDir:p?"column":void 0,...u})})});Tg.displayName="ButtonGroup";function Ng(e){const[t,r]=B(!e);return{ref:S(a=>{a&&r(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function qo(e){const{children:t,className:r,...n}=e,o=Or(t)?it(t,{"aria-hidden":!0,focusable:!1}):t,a=z("chakra-button__icon",r);return f(k.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:a,children:o})}qo.displayName="ButtonIcon";function Ko(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=f(pa,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=z("chakra-button__spinner",a),c=r==="start"?"marginEnd":"marginStart",d=J(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,c,n]);return f(k.div,{className:l,...s,__css:d,children:o})}Ko.displayName="ButtonSpinner";var cl=P((e,t)=>{const r=Pg(),n=je("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:c,loadingText:d,iconSpacing:u="0.5rem",type:m,spinner:v,spinnerPlacement:h="start",className:p,as:b,...y}=ue(e),x=J(()=>{const T={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:T}}},[n,r]),{ref:w,type:I}=Ng(b),N={rightIcon:c,leftIcon:l,iconSpacing:u,children:s};return f(k.button,{ref:Ub(t,w),as:b,type:m??I,"data-active":U(i),"data-loading":U(a),__css:x,className:z("chakra-button",p),...y,disabled:o||a,children:[a&&h==="start"&&f(Ko,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:u,children:v}),a?d||f(k.span,{opacity:0,children:f(Oi,{...N})}):f(Oi,{...N}),a&&h==="end"&&f(Ko,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:u,children:v})]})});cl.displayName="Button";function Oi(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return f(Bt,{children:[t&&f(qo,{marginEnd:o,children:t}),n,r&&f(qo,{marginStart:o,children:r})]})}var Eg=P((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":a,...i}=e,s=r||n,l=Or(s)?it(s,{"aria-hidden":!0,focusable:!1}):null;return f(cl,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...i,children:l})});Eg.displayName="IconButton";var[Ag,Fg]=ce({name:"CheckboxGroupContext",strict:!1});function Li(e){return e&&Te(e)&&Te(e.target)}function Mg(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:o,isNative:a}=e,i=Se(n),[s,l]=Bn({value:r,defaultValue:t||[],onChange:i}),c=S(u=>{if(!s)return;const m=Li(u)?u.target.checked:!s.includes(u),v=Li(u)?u.target.value:u,h=m?[...s,v]:s.filter(p=>String(p)!==String(v));l(h)},[l,s]),d=S((u={})=>({...u,[a?"checked":"isChecked"]:s.some(v=>String(u.value)===String(v)),onChange:c}),[c,a,s]);return{value:s,isDisabled:o,onChange:c,setValue:l,getCheckboxProps:d}}function zg(e){const{colorScheme:t,size:r,variant:n,children:o,isDisabled:a}=e,{value:i,onChange:s}=Mg(e),l=J(()=>({size:r,onChange:s,colorScheme:t,value:i,variant:n,isDisabled:a}),[r,s,t,i,n,a]);return f(Ag,{value:l,children:o})}zg.displayName="CheckboxGroup";function Dg(e){const[t,r]=B(e),[n,o]=B(!1);return e!==t&&(o(!0),r(e)),n}function Rg(e){return f(k.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:f("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Bg(e){return f(k.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:f("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Og(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?Bg:Rg;return r||t?f(k.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f(o,{...n})}):null}var[Lg,dl]=ce({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[Wg,Ot]=ce({strict:!1,name:"FormControlContext"});function Vg(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...i}=e,s=Ke(),l=t||`field-${s}`,c=`${l}-label`,d=`${l}-feedback`,u=`${l}-helptext`,[m,v]=B(!1),[h,p]=B(!1),[b,y]=B(!1),x=S((C={},A=null)=>({id:u,...C,ref:he(A,M=>{M&&p(!0)})}),[u]),w=S((C={},A=null)=>({...C,ref:A,"data-focus":U(b),"data-disabled":U(o),"data-invalid":U(n),"data-readonly":U(a),id:C.id!==void 0?C.id:c,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,b,n,a,c]),I=S((C={},A=null)=>({id:d,...C,ref:he(A,M=>{M&&v(!0)}),"aria-live":"polite"}),[d]),N=S((C={},A=null)=>({...C,...i,ref:A,role:"group"}),[i]),T=S((C={},A=null)=>({...C,ref:A,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:h,setHasHelpText:p,id:l,labelId:c,feedbackId:d,helpTextId:u,htmlProps:i,getHelpTextProps:x,getErrorMessageProps:I,getRootProps:N,getLabelProps:w,getRequiredIndicatorProps:T}}var Hg=P(function(t,r){const n=Ne("Form",t),o=ue(t),{getRootProps:a,htmlProps:i,...s}=Vg(o),l=z("chakra-form-control",t.className);return f(Wg,{value:s,children:f(Lg,{value:n,children:f(k.div,{...a({},r),className:l,__css:n.container})})})});Hg.displayName="FormControl";var jg=P(function(t,r){const n=Ot(),o=dl(),a=z("chakra-form__helper-text",t.className);return f(k.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:a})});jg.displayName="FormHelperText";var[Ug,Gg]=ce({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),qg=P((e,t)=>{const r=Ne("FormError",e),n=ue(e),o=Ot();return o!=null&&o.isInvalid?f(Ug,{value:r,children:f(k.div,{...o==null?void 0:o.getErrorMessageProps(n,t),className:z("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});qg.displayName="FormErrorMessage";var Kg=P((e,t)=>{const r=Gg(),n=Ot();if(!(n!=null&&n.isInvalid))return null;const o=z("chakra-form__error-icon",e.className);return f(lt,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:f("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});Kg.displayName="FormErrorIcon";var Xg=P(function(t,r){var n;const o=je("FormLabel",t),a=ue(t),{className:i,children:s,requiredIndicator:l=f(ul,{}),optionalIndicator:c=null,...d}=a,u=Ot(),m=(n=u==null?void 0:u.getLabelProps(d,r))!=null?n:{ref:r,...d};return f(k.label,{...m,className:z("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...o},children:[s,u!=null&&u.isRequired?l:c]})});Xg.displayName="FormLabel";var ul=P(function(t,r){const n=Ot(),o=dl();if(!(n!=null&&n.isRequired))return null;const a=z("chakra-form__required-indicator",t.className);return f(k.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:a})});ul.displayName="RequiredIndicator";function fl(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...a}=wa(e);return{...a,disabled:t,readOnly:n,required:o,"aria-invalid":ht(r),"aria-required":ht(o),"aria-readonly":ht(n)}}function wa(e){var t,r,n;const o=Ot(),{id:a,disabled:i,readOnly:s,required:l,isRequired:c,isInvalid:d,isReadOnly:u,isDisabled:m,onFocus:v,onBlur:h,...p}=e,b=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&b.push(o.feedbackId),o!=null&&o.hasHelpText&&b.push(o.helpTextId),{...p,"aria-describedby":b.join(" ")||void 0,id:a??(o==null?void 0:o.id),isDisabled:(t=i??m)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??u)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??c)!=null?n:o==null?void 0:o.isRequired,isInvalid:d??(o==null?void 0:o.isInvalid),onFocus:L(o==null?void 0:o.onFocus,v),onBlur:L(o==null?void 0:o.onBlur,h)}}var Yg={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Zg(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function ml(e={}){const t=wa(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:a,id:i,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:d,isChecked:u,isFocusable:m,onChange:v,isIndeterminate:h,name:p,value:b,tabIndex:y=void 0,"aria-label":x,"aria-labelledby":w,"aria-invalid":I,...N}=e,T=Zg(N,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=Se(v),A=Se(s),M=Se(l),[_,E]=B(!1),[ee,te]=B(!1),[ae,fe]=B(!1),[Q,$]=B(!1);K(()=>ms(E),[]);const D=V(null),[ie,X]=B(!0),[Ie,Ce]=B(!!d),ne=u!==void 0,G=ne?u:Ie,j=S(H=>{if(n||r){H.preventDefault();return}ne||Ce(G?H.target.checked:h?!0:H.target.checked),C==null||C(H)},[n,r,G,ne,h,C]);ot(()=>{D.current&&(D.current.indeterminate=!!h)},[h]),Pt(()=>{r&&te(!1)},[r,te]),ot(()=>{const H=D.current;if(!(H!=null&&H.form))return;const $e=()=>{Ce(!!d)};return H.form.addEventListener("reset",$e),()=>{var Fe;return(Fe=H.form)==null?void 0:Fe.removeEventListener("reset",$e)}},[]);const xe=r&&!m,be=S(H=>{H.key===" "&&$(!0)},[$]),we=S(H=>{H.key===" "&&$(!1)},[$]);ot(()=>{if(!D.current)return;D.current.checked!==G&&Ce(D.current.checked)},[D.current]);const De=S((H={},$e=null)=>{const Fe=Xe=>{ee&&Xe.preventDefault(),$(!0)};return{...H,ref:$e,"data-active":U(Q),"data-hover":U(ae),"data-checked":U(G),"data-focus":U(ee),"data-focus-visible":U(ee&&_),"data-indeterminate":U(h),"data-disabled":U(r),"data-invalid":U(a),"data-readonly":U(n),"aria-hidden":!0,onMouseDown:L(H.onMouseDown,Fe),onMouseUp:L(H.onMouseUp,()=>$(!1)),onMouseEnter:L(H.onMouseEnter,()=>fe(!0)),onMouseLeave:L(H.onMouseLeave,()=>fe(!1))}},[Q,G,r,ee,_,ae,h,a,n]),Re=S((H={},$e=null)=>({...H,ref:$e,"data-active":U(Q),"data-hover":U(ae),"data-checked":U(G),"data-focus":U(ee),"data-focus-visible":U(ee&&_),"data-indeterminate":U(h),"data-disabled":U(r),"data-invalid":U(a),"data-readonly":U(n)}),[Q,G,r,ee,_,ae,h,a,n]),Y=S((H={},$e=null)=>({...T,...H,ref:he($e,Fe=>{Fe&&X(Fe.tagName==="LABEL")}),onClick:L(H.onClick,()=>{var Fe;ie||((Fe=D.current)==null||Fe.click(),requestAnimationFrame(()=>{var Xe;(Xe=D.current)==null||Xe.focus({preventScroll:!0})}))}),"data-disabled":U(r),"data-checked":U(G),"data-invalid":U(a)}),[T,r,G,a,ie]),Z=S((H={},$e=null)=>({...H,ref:he(D,$e),type:"checkbox",name:p,value:b,id:i,tabIndex:y,onChange:L(H.onChange,j),onBlur:L(H.onBlur,A,()=>te(!1)),onFocus:L(H.onFocus,M,()=>te(!0)),onKeyDown:L(H.onKeyDown,be),onKeyUp:L(H.onKeyUp,we),required:o,checked:G,disabled:xe,readOnly:n,"aria-label":x,"aria-labelledby":w,"aria-invalid":I?!!I:a,"aria-describedby":c,"aria-disabled":r,style:Yg}),[p,b,i,j,A,M,be,we,o,G,xe,n,x,w,I,a,c,r,y]),_e=S((H={},$e=null)=>({...H,ref:$e,onMouseDown:L(H.onMouseDown,Qg),"data-disabled":U(r),"data-checked":U(G),"data-invalid":U(a)}),[G,r,a]);return{state:{isInvalid:a,isFocused:ee,isChecked:G,isActive:Q,isHovered:ae,isIndeterminate:h,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Y,getCheckboxProps:De,getIndicatorProps:Re,getInputProps:Z,getLabelProps:_e,htmlProps:T}}function Qg(e){e.preventDefault(),e.stopPropagation()}var Jg={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},ey={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},ty=$t({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),ry=$t({from:{opacity:0},to:{opacity:1}}),ny=$t({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),oy=P(function(t,r){const n=Fg(),o={...n,...t},a=Ne("Checkbox",o),i=ue(t),{spacing:s="0.5rem",className:l,children:c,iconColor:d,iconSize:u,icon:m=f(Og,{}),isChecked:v,isDisabled:h=n==null?void 0:n.isDisabled,onChange:p,inputProps:b,...y}=i;let x=v;n!=null&&n.value&&i.value&&(x=n.value.includes(i.value));let w=p;n!=null&&n.onChange&&i.value&&(w=ia(n.onChange,p));const{state:I,getInputProps:N,getCheckboxProps:T,getLabelProps:C,getRootProps:A}=ml({...y,isDisabled:h,isChecked:x,onChange:w}),M=Dg(I.isChecked),_=J(()=>({animation:M?I.isIndeterminate?`${ry} 20ms linear, ${ny} 200ms linear`:`${ty} 200ms linear`:void 0,fontSize:u,color:d,...a.icon}),[d,u,M,I.isIndeterminate,a.icon]),E=it(m,{__css:_,isIndeterminate:I.isIndeterminate,isChecked:I.isChecked});return f(k.label,{__css:{...ey,...a.container},className:z("chakra-checkbox",l),...A(),children:[f("input",{className:"chakra-checkbox__input",...N(b,r)}),f(k.span,{__css:{...Jg,...a.control},className:"chakra-checkbox__control",...T(),children:E}),c&&f(k.span,{className:"chakra-checkbox__label",...C(),__css:{marginStart:s,...a.label},children:c})]})});oy.displayName="Checkbox";function ay(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function _a(e,t){let r=ay(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function Xo(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function Wi(e,t,r){return(e-t)*100/(r-t)}function iy(e,t,r){return(r-t)*e+t}function Vi(e,t,r){const n=Math.round((e-t)/r)*r+t,o=Xo(r);return _a(n,o)}function vn(e,t,r){return e==null?e:(r<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),r))}function sy(e={}){const{onChange:t,precision:r,defaultValue:n,value:o,step:a=1,min:i=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,keepWithinRange:l=!0}=e,c=Se(t),[d,u]=B(()=>{var _;return n==null?"":(_=bo(n,a,r))!=null?_:""}),m=typeof o<"u",v=m?o:d,h=vl(_t(v),a),p=r??h,b=S(_=>{_!==v&&(m||u(_.toString()),c==null||c(_.toString(),_t(_)))},[c,m,v]),y=S(_=>{let E=_;return l&&(E=vn(E,i,s)),_a(E,p)},[p,l,s,i]),x=S((_=a)=>{let E;v===""?E=_t(_):E=_t(v)+_,E=y(E),b(E)},[y,a,b,v]),w=S((_=a)=>{let E;v===""?E=_t(-_):E=_t(v)-_,E=y(E),b(E)},[y,a,b,v]),I=S(()=>{var _;let E;n==null?E="":E=(_=bo(n,a,r))!=null?_:i,b(E)},[n,r,a,b,i]),N=S(_=>{var E;const ee=(E=bo(_,a,p))!=null?E:i;b(ee)},[p,a,b,i]),T=_t(v);return{isOutOfRange:T>s||T<i,isAtMax:T===s,isAtMin:T===i,precision:p,value:v,valueAsNumber:T,update:b,reset:I,increment:x,decrement:w,clamp:y,cast:N,setValue:u}}function _t(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function vl(e,t){return Math.max(Xo(t),Xo(e))}function bo(e,t,r){const n=_t(e);if(Number.isNaN(n))return;const o=vl(n,t);return _a(n,r??o)}function Ar(e,t,r,n){const o=Se(r);return K(()=>{const a=typeof e=="function"?e():e??document;if(!(!r||!a))return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,o,n)}}var Yo="data-focus-lock",pl="data-focus-lock-disabled",ly="data-no-focus-lock",cy="data-autofocus-inside",dy="data-no-autofocus",go={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},hl=na({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),bl=na(),uy=na(),fy=ds({async:!0}),my=[],Ca=tt(function(t,r){var n,o=B(),a=o[0],i=o[1],s=V(),l=V(!1),c=V(null),d=t.children,u=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,h=t.crossFrame,p=t.autoFocus;t.allowTextSelection;var b=t.group,y=t.className,x=t.whiteList,w=t.hasPositiveIndices,I=t.shards,N=I===void 0?my:I,T=t.as,C=T===void 0?"div":T,A=t.lockProps,M=A===void 0?{}:A,_=t.sideCar,E=t.returnFocus,ee=t.focusOptions,te=t.onActivation,ae=t.onDeactivation,fe=B({}),Q=fe[0],$=S(function(){c.current=c.current||document&&document.activeElement,s.current&&te&&te(s.current),l.current=!0},[te]),D=S(function(){l.current=!1,ae&&ae(s.current)},[ae]);K(function(){u||(c.current=null)},[]);var ie=S(function(be){var we=c.current;if(we&&we.focus){var De=typeof E=="function"?E(we):E;if(De){var Re=typeof De=="object"?De:void 0;c.current=null,be?Promise.resolve().then(function(){return we.focus(Re)}):we.focus(Re)}}},[E]),X=S(function(be){l.current&&hl.useMedium(be)},[]),Ie=bl.useMedium,Ce=S(function(be){s.current!==be&&(s.current=be,i(be))},[]),ne=Ao((n={},n[pl]=u&&"disabled",n[Yo]=b,n),M),G=m!==!0,j=G&&m!=="tail",xe=us([r,Ce]);return Me(Bt,null,G&&[Me("div",{key:"guard-first","data-focus-guard":!0,tabIndex:u?-1:0,style:go}),w?Me("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:u?-1:1,style:go}):null],!u&&Me(_,{id:Q,sideCar:fy,observed:a,disabled:u,persistentFocus:v,crossFrame:h,autoFocus:p,whiteList:x,shards:N,onActivation:$,onDeactivation:D,returnFocus:ie,focusOptions:ee}),Me(C,Ao({ref:xe},ne,{className:y,onBlur:Ie,onFocus:X}),d),j&&Me("div",{"data-focus-guard":!0,tabIndex:u?-1:0,style:go}))});Ca.propTypes={};Ca.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const gl=Ca;function vy(e,t){function r(n){return n.displayName||n.name||"Component"}return function(o){var a=[],i;function s(){i=e(a.map(function(c){return c.props})),t(i)}var l=function(c){qc(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return i};var u=d.prototype;return u.componentDidMount=function(){a.push(this),s()},u.componentDidUpdate=function(){s()},u.componentWillUnmount=function(){var v=a.indexOf(this);a.splice(v,1),s()},u.render=function(){return Eo.createElement(o,this.props)},d}(Dc);return Gc(l,"displayName","SideEffect("+r(o)+")"),l}}var ct=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},Pn=function(e){return Array.isArray(e)?e:[e]},yl=function(e){return Array.isArray(e)?e[0]:e},py=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},Sl=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},xl=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},hy=function(e,t){return!e||xl(e)||!py(e)&&t(Sl(e))},kl=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=hy(t,kl.bind(void 0,e));return e.set(t,n),n},by=function(e,t){return e&&!xl(e)?Sy(e)?t(Sl(e)):!1:!0},wl=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=by(t,wl.bind(void 0,e));return e.set(t,n),n},_l=function(e){return e.dataset},gy=function(e){return e.tagName==="BUTTON"},Cl=function(e){return e.tagName==="INPUT"},Pl=function(e){return Cl(e)&&e.type==="radio"},yy=function(e){return!((Cl(e)||gy(e))&&(e.type==="hidden"||e.disabled))},Sy=function(e){var t=e.getAttribute(dy);return![!0,"true",""].includes(t)},Pa=function(e){var t;return!!(e&&(!((t=_l(e))===null||t===void 0)&&t.focusGuard))},In=function(e){return!Pa(e)},xy=function(e){return!!e},ky=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||n},Il=function(e,t,r){return ct(e).map(function(n,o){return{node:n,index:o,tabIndex:r&&n.tabIndex===-1?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}}).filter(function(n){return!t||n.tabIndex>=0}).sort(ky)},wy=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Ia=wy.join(","),_y="".concat(Ia,", [data-focus-guard]"),$l=function(e,t){return ct((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?_y:Ia)?[n]:[],$l(n))},[])},Cy=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?On([e.contentDocument.body],t):[e]},On=function(e,t){return e.reduce(function(r,n){var o,a=$l(n,t),i=(o=[]).concat.apply(o,a.map(function(s){return Cy(s,t)}));return r.concat(i,n.parentNode?ct(n.parentNode.querySelectorAll(Ia)).filter(function(s){return s===n}):[])},[])},Py=function(e){var t=e.querySelectorAll("[".concat(cy,"]"));return ct(t).map(function(r){return On([r])}).reduce(function(r,n){return r.concat(n)},[])},$a=function(e,t){return ct(e).filter(function(r){return kl(t,r)}).filter(function(r){return yy(r)})},Hi=function(e,t){return t===void 0&&(t=new Map),ct(e).filter(function(r){return wl(t,r)})},Zo=function(e,t,r){return Il($a(On(e,r),t),!0,r)},ji=function(e,t){return Il($a(On(e),t),!1)},Iy=function(e,t){return $a(Py(e),t)},or=function(e,t){return e.shadowRoot?or(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:ct(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?or(o,t):!1}return or(r,t)})},$y=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var a=e[n].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(i,s){return!t.has(s)})},Tl=function(e){return e.parentNode?Tl(e.parentNode):e},Ta=function(e){var t=Pn(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(Yo);return r.push.apply(r,o?$y(ct(Tl(n).querySelectorAll("[".concat(Yo,'="').concat(o,'"]:not([').concat(pl,'="disabled"])')))):[n]),r},[])},Ty=function(e){try{return e()}catch{return}},Dr=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Dr(t.shadowRoot):t instanceof HTMLIFrameElement&&Ty(function(){return t.contentWindow.document})?Dr(t.contentWindow.document):t}},Ny=function(e,t){return e===t},Ey=function(e,t){return!!ct(e.querySelectorAll("iframe")).some(function(r){return Ny(r,t)})},Nl=function(e,t){return t===void 0&&(t=Dr(yl(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Ta(e).some(function(r){return or(r,t)||Ey(r,t)})},Ay=function(e){e===void 0&&(e=document);var t=Dr(e);return t?ct(e.querySelectorAll("[".concat(ly,"]"))).some(function(r){return or(r,t)}):!1},Fy=function(e,t){return t.filter(Pl).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Na=function(e,t){return Pl(e)&&e.name?Fy(e,t):e},My=function(e){var t=new Set;return e.forEach(function(r){return t.add(Na(r,e))}),e.filter(function(r){return t.has(r)})},Ui=function(e){return e[0]&&e.length>1?Na(e[0],e):e[0]},Gi=function(e,t){return e.length>1?e.indexOf(Na(e[t],e)):t},El="NEW_FOCUS",zy=function(e,t,r,n){var o=e.length,a=e[0],i=e[o-1],s=Pa(r);if(!(r&&e.indexOf(r)>=0)){var l=r!==void 0?t.indexOf(r):-1,c=n?t.indexOf(n):l,d=n?e.indexOf(n):-1,u=l-c,m=t.indexOf(a),v=t.indexOf(i),h=My(t),p=r!==void 0?h.indexOf(r):-1,b=p-(n?h.indexOf(n):l),y=Gi(e,0),x=Gi(e,o-1);if(l===-1||d===-1)return El;if(!u&&d>=0)return d;if(l<=m&&s&&Math.abs(u)>1)return x;if(l>=v&&s&&Math.abs(u)>1)return y;if(u&&Math.abs(b)>1)return d;if(l<=m)return x;if(l>v)return y;if(u)return Math.abs(u)>1?d:(o+d+u)%o}},Dy=function(e){return function(t){var r,n=(r=_l(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},Ry=function(e,t,r){var n=e.map(function(a){var i=a.node;return i}),o=Hi(n.filter(Dy(r)));return o&&o.length?Ui(o):Ui(Hi(t))},Qo=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Qo(e.parentNode.host||e.parentNode,t),t},yo=function(e,t){for(var r=Qo(e),n=Qo(t),o=0;o<r.length;o+=1){var a=r[o];if(n.indexOf(a)>=0)return a}return!1},Al=function(e,t,r){var n=Pn(e),o=Pn(t),a=n[0],i=!1;return o.filter(Boolean).forEach(function(s){i=yo(i||s,s)||i,r.filter(Boolean).forEach(function(l){var c=yo(a,l);c&&(!i||or(c,i)?i=c:i=yo(c,i))})}),i},By=function(e,t){return e.reduce(function(r,n){return r.concat(Iy(n,t))},[])},Oy=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(xy)},Ly=function(e,t){var r=Dr(Pn(e).length>0?document:yl(e).ownerDocument),n=Ta(e).filter(In),o=Al(r||e,e,n),a=new Map,i=ji(n,a),s=Zo(n,a).filter(function(v){var h=v.node;return In(h)});if(!(!s[0]&&(s=i,!s[0]))){var l=ji([o],a).map(function(v){var h=v.node;return h}),c=Oy(l,s),d=c.map(function(v){var h=v.node;return h}),u=zy(d,l,r,t);if(u===El){var m=Ry(i,d,By(n,a));if(m)return{node:m};console.warn("focus-lock: cannot find any node to move focus into");return}return u===void 0?u:c[u]}},Wy=function(e){var t=Ta(e).filter(In),r=Al(e,e,t),n=new Map,o=Zo([r],n,!0),a=Zo(t,n).filter(function(i){var s=i.node;return In(s)}).map(function(i){var s=i.node;return s});return o.map(function(i){var s=i.node,l=i.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:Pa(s)}})},Vy=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},So=0,xo=!1,Fl=function(e,t,r){r===void 0&&(r={});var n=Ly(e,t);if(!xo&&n){if(So>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),xo=!0,setTimeout(function(){xo=!1},1);return}So++,Vy(n.node,r.focusOptions),So--}};function Ea(e){setTimeout(e,1)}var Hy=function(){return document&&document.activeElement===document.body},jy=function(){return Hy()||Ay()},ar=null,Jt=null,ir=null,Rr=!1,Uy=function(){return!0},Gy=function(t){return(ar.whiteList||Uy)(t)},qy=function(t,r){ir={observerNode:t,portaledElement:r}},Ky=function(t){return ir&&ir.portaledElement===t};function qi(e,t,r,n){var o=null,a=e;do{var i=n[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=r)!==t);o&&(o.node.tabIndex=0)}var Xy=function(t){return t&&"current"in t?t.current:t},Yy=function(t){return t?!!Rr:Rr==="meanwhile"},Zy=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Qy=function(t,r){return r.some(function(n){return Zy(t,n,n)})},$n=function(){var t=!1;if(ar){var r=ar,n=r.observed,o=r.persistentFocus,a=r.autoFocus,i=r.shards,s=r.crossFrame,l=r.focusOptions,c=n||ir&&ir.portaledElement,d=document&&document.activeElement;if(c){var u=[c].concat(i.map(Xy).filter(Boolean));if((!d||Gy(d))&&(o||Yy(s)||!jy()||!Jt&&a)&&(c&&!(Nl(u)||d&&Qy(d,u)||Ky(d))&&(document&&!Jt&&d&&!a?(d.blur&&d.blur(),document.body.focus()):(t=Fl(u,Jt,{focusOptions:l}),ir={})),Rr=!1,Jt=document&&document.activeElement),document){var m=document&&document.activeElement,v=Wy(u),h=v.map(function(p){var b=p.node;return b}).indexOf(m);h>-1&&(v.filter(function(p){var b=p.guard,y=p.node;return b&&y.dataset.focusAutoGuard}).forEach(function(p){var b=p.node;return b.removeAttribute("tabIndex")}),qi(h,v.length,1,v),qi(h,-1,-1,v))}}}return t},Ml=function(t){$n()&&t&&(t.stopPropagation(),t.preventDefault())},Aa=function(){return Ea($n)},Jy=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||qy(n,r)},e1=function(){return null},zl=function(){Rr="just",Ea(function(){Rr="meanwhile"})},t1=function(){document.addEventListener("focusin",Ml),document.addEventListener("focusout",Aa),window.addEventListener("blur",zl)},r1=function(){document.removeEventListener("focusin",Ml),document.removeEventListener("focusout",Aa),window.removeEventListener("blur",zl)};function n1(e){return e.filter(function(t){var r=t.disabled;return!r})}function o1(e){var t=e.slice(-1)[0];t&&!ar&&t1();var r=ar,n=r&&t&&t.id===r.id;ar=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var a=o.id;return a===r.id}).length||r.returnFocus(!t)),t?(Jt=null,(!n||r.observed!==t.observed)&&t.onActivation(),$n(),Ea($n)):(r1(),Jt=null)}hl.assignSyncMedium(Jy);bl.assignMedium(Aa);uy.assignMedium(function(e){return e({moveFocusInside:Fl,focusInside:Nl})});const a1=vy(n1,o1)(e1);var Dl=tt(function(t,r){return Me(gl,Ao({sideCar:a1,ref:r},t))}),Rl=gl.propTypes||{};Rl.sideCar;Kc(Rl,["sideCar"]);Dl.propTypes={};const Ki=Dl;function Bl(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Fa(e){var t;if(!Bl(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function i1(e){var t,r;return(r=(t=Ol(e))==null?void 0:t.defaultView)!=null?r:window}function Ol(e){return Bl(e)?e.ownerDocument:document}function s1(e){return Ol(e).activeElement}function l1(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}function c1(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function Ll(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Fa(e)&&l1(e)?e:Ll(c1(e))}var Wl=e=>e.hasAttribute("tabindex"),d1=e=>Wl(e)&&e.tabIndex===-1;function u1(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function Vl(e){return e.parentElement&&Vl(e.parentElement)?!0:e.hidden}function f1(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function Hl(e){if(!Fa(e)||Vl(e)||u1(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():f1(e)?!0:Wl(e)}function m1(e){return e?Fa(e)&&Hl(e)&&!d1(e):!1}var v1=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],p1=v1.join(),h1=e=>e.offsetWidth>0&&e.offsetHeight>0;function b1(e){const t=Array.from(e.querySelectorAll(p1));return t.unshift(e),t.filter(r=>Hl(r)&&h1(r))}var Xi,g1=(Xi=Ki.default)!=null?Xi:Ki,jl=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:a,isDisabled:i,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=S(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&b1(n.current).length===0&&requestAnimationFrame(()=>{var h;(h=n.current)==null||h.focus()})},[t,n]),u=S(()=>{var v;(v=r==null?void 0:r.current)==null||v.focus()},[r]);return f(g1,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:i,onActivation:d,onDeactivation:u,returnFocus:o&&!r,children:a})};jl.displayName="FocusLock";var y1=Qh?Nn:K;function Yi(e,t=[]){const r=V(e);return y1(()=>{r.current=e}),S((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function S1(e,t){const r=Ke();return J(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function x1(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function Xw(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=Yi(r),i=Yi(t),[s,l]=B(e.defaultIsOpen||!1),[c,d]=x1(n,s),u=S1(o,"disclosure"),m=S(()=>{c||l(!1),i==null||i()},[c,i]),v=S(()=>{c||l(!0),a==null||a()},[c,a]),h=S(()=>{(d?m:v)()},[d,v,m]);return{isOpen:!!d,onOpen:v,onClose:m,onToggle:h,isControlled:c,getButtonProps:(p={})=>({...p,"aria-expanded":d,"aria-controls":u,onClick:nb(p.onClick,h)}),getDisclosureProps:(p={})=>({...p,hidden:!d,id:u})}}function Yw(e=!1){const[t,r]=B(e),n=J(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(o=>!o)}),[]);return[t,n]}var[k1,Ul]=ce({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),w1=P(function(t,r){const n=Ne("Input",t),{children:o,className:a,...i}=ue(t),s=z("chakra-input__group",a),l={},c=ka(o),d=n.field;c.forEach(m=>{var v,h;n&&(d&&m.type.id==="InputLeftElement"&&(l.paddingStart=(v=d.height)!=null?v:d.h),d&&m.type.id==="InputRightElement"&&(l.paddingEnd=(h=d.height)!=null?h:d.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const u=c.map(m=>{var v,h;const p=Ks({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((h=m.props)==null?void 0:h.variant)||t.variant});return m.type.id!=="Input"?it(m,p):it(m,Object.assign(p,l,m.props))});return f(k.div,{className:s,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...i,children:f(k1,{value:n,children:u})})});w1.displayName="InputGroup";var _1={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},C1=k("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),Ma=P(function(t,r){var n;const{placement:o="left",...a}=t,i=(n=_1[o])!=null?n:{},s=Ul();return f(C1,{ref:r,...a,__css:{...s.addon,...i}})});Ma.displayName="InputAddon";var Gl=P(function(t,r){return f(Ma,{ref:r,placement:"left",...t,className:z("chakra-input__left-addon",t.className)})});Gl.displayName="InputLeftAddon";Gl.id="InputLeftAddon";var ql=P(function(t,r){return f(Ma,{ref:r,placement:"right",...t,className:z("chakra-input__right-addon",t.className)})});ql.displayName="InputRightAddon";ql.id="InputRightAddon";var P1=k("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Ln=P(function(t,r){var n,o;const{placement:a="left",...i}=t,s=Ul(),l=s.field,d={[a==="left"?"insetStart":"insetEnd"]:"0",width:(n=l==null?void 0:l.height)!=null?n:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...s.element};return f(P1,{ref:r,__css:d,...i})});Ln.id="InputElement";Ln.displayName="InputElement";var Kl=P(function(t,r){const{className:n,...o}=t,a=z("chakra-input__left-element",n);return f(Ln,{ref:r,placement:"left",className:a,...o})});Kl.id="InputLeftElement";Kl.displayName="InputLeftElement";var Xl=P(function(t,r){const{className:n,...o}=t,a=z("chakra-input__right-element",n);return f(Ln,{ref:r,placement:"right",className:a,...o})});Xl.id="InputRightElement";Xl.displayName="InputRightElement";var Yl=P(function(t,r){const{htmlSize:n,...o}=t,a=Ne("Input",o),i=ue(o),s=fl(i),l=z("chakra-input",t.className);return f(k.input,{size:n,...s,__css:a.field,ref:r,className:l})});Yl.displayName="Input";Yl.id="Input";var I1=P(function(t,r){const n=je("Link",t),{className:o,isExternal:a,...i}=ue(t);return f(k.a,{target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:r,className:z("chakra-link",o),...i,__css:n})});I1.displayName="Link";var Zl=P(function(t,r){const{templateAreas:n,gap:o,rowGap:a,columnGap:i,column:s,row:l,autoFlow:c,autoRows:d,templateRows:u,autoColumns:m,templateColumns:v,...h}=t,p={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:a,gridColumnGap:i,gridAutoColumns:m,gridColumn:s,gridRow:l,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:u,gridTemplateColumns:v};return f(k.div,{ref:r,__css:p,...h})});Zl.displayName="Grid";var Ql=Object.freeze(["base","sm","md","lg","xl","2xl"]);function za(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Te(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function $1(e,t=Ql){const r={};return e.forEach((n,o)=>{const a=t[o];n!=null&&(r[a]=n)}),r}var T1=P(function(t,r){const{columns:n,spacingX:o,spacingY:a,spacing:i,minChildWidth:s,...l}=t,c=yt(),d=s?E1(s,c):A1(n);return f(Zl,{ref:r,gap:i,columnGap:o,rowGap:a,templateColumns:d,...l})});T1.displayName="SimpleGrid";function N1(e){return typeof e=="number"?`${e}px`:e}function E1(e,t){return za(e,r=>{const n=yd("sizes",r,N1(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function A1(e){return za(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var F1=k("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});F1.displayName="Spacer";var M1=P(function(t,r){const n=je("Text",t),{className:o,align:a,decoration:i,casing:s,...l}=ue(t),c=Ks({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return f(k.p,{ref:r,className:z("chakra-text",t.className),...c,...l,__css:n})});M1.displayName="Text";var z1=P(function(t,r){const{spacing:n="0.5rem",spacingX:o,spacingY:a,children:i,justify:s,direction:l,align:c,className:d,shouldWrapChildren:u,...m}=t,v=J(()=>u?cr.map(i,(h,p)=>f(Jl,{children:h},p)):i,[i,u]);return f(k.div,{ref:r,className:z("chakra-wrap",d),...m,children:f(k.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:c,flexDirection:l,listStyleType:"none",gap:n,columnGap:o,rowGap:a,padding:"0"},children:v})})});z1.displayName="Wrap";var Jl=P(function(t,r){const{className:n,...o}=t;return f(k.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:z("chakra-wrap__listitem",n),...o})});Jl.displayName="WrapItem";var ec=e=>f(k.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});ec.displayName="StackItem";function D1(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":za(r,o=>n[o])}}var Da=P((e,t)=>{const{isInline:r,direction:n,align:o,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:c,className:d,shouldWrapChildren:u,...m}=e,v=r?"row":n??"column",h=J(()=>D1({spacing:i,direction:v}),[i,v]),p=!!c,b=!u&&!p,y=J(()=>{const w=ka(l);return b?w:w.map((I,N)=>{const T=typeof I.key<"u"?I.key:N,C=N+1===w.length,M=u?f(ec,{children:I},T):I;if(!p)return M;const _=it(c,{__css:h});return f(Bt,{children:[M,C?null:_]},T)})},[c,h,p,b,u,l]),x=z("chakra-stack",d);return f(k.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:v,flexWrap:s,gap:p?void 0:i,className:x,...m,children:y})});Da.displayName="Stack";var R1=P((e,t)=>f(Da,{align:"center",...e,direction:"column",ref:t}));R1.displayName="VStack";var B1=P((e,t)=>f(Da,{align:"center",...e,direction:"row",ref:t}));B1.displayName="HStack";var O1=P(function(t,r){const n=je("Heading",t),{className:o,...a}=ue(t);return f(k.h2,{ref:r,className:z("chakra-heading",t.className),...a,__css:n})});O1.displayName="Heading";var tc=k("div");tc.displayName="Box";var rc=P(function(t,r){const{size:n,centerContent:o=!0,...a}=t;return f(tc,{ref:r,boxSize:n,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...a})});rc.displayName="Square";var L1=P(function(t,r){const{size:n,...o}=t;return f(rc,{size:n,ref:r,borderRadius:"9999px",...o})});L1.displayName="Circle";var W1=P(function(t,r){const n=je("Badge",t),{className:o,...a}=ue(t);return f(k.span,{ref:r,className:z("chakra-badge",t.className),...a,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});W1.displayName="Badge";var V1=k("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});V1.displayName="Center";var H1={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};P(function(t,r){const{axis:n="both",...o}=t;return f(k.div,{ref:r,__css:H1[n],...o,position:"absolute"})});var j1=P(function(t,r){const n=je("Code",t),{className:o,...a}=ue(t);return f(k.code,{ref:r,className:z("chakra-code",t.className),...a,__css:{display:"inline-block",...n}})});j1.displayName="Code";var U1=P(function(t,r){const{className:n,centerContent:o,...a}=ue(t),i=je("Container",t);return f(k.div,{ref:r,className:z("chakra-container",n),...a,__css:{...i,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});U1.displayName="Container";var G1=P(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:a,borderRightWidth:i,borderWidth:s,borderStyle:l,borderColor:c,...d}=je("Divider",t),{className:u,orientation:m="horizontal",__css:v,...h}=ue(t),p={vertical:{borderLeftWidth:n||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}};return f(k.hr,{ref:r,"aria-orientation":m,...h,__css:{...d,border:"0",borderColor:c,borderStyle:l,...p[m],...v},className:z("chakra-divider",u)})});G1.displayName="Divider";var q1=P(function(t,r){const{direction:n,align:o,justify:a,wrap:i,basis:s,grow:l,shrink:c,...d}=t,u={display:"flex",flexDirection:n,alignItems:o,justifyContent:a,flexWrap:i,flexBasis:s,flexGrow:l,flexShrink:c};return f(k.div,{ref:r,__css:u,...d})});q1.displayName="Flex";function nc(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=pb(),a=Array.isArray(e)?e:[e];let i=Array.isArray(n)?n:[n];i=i.filter(c=>c!=null);const[s,l]=B(()=>a.map((c,d)=>({media:c,matches:r?!!i[d]:o().matchMedia(c).matches})));return K(()=>{const c=o();l(a.map(m=>({media:m,matches:c.matchMedia(m).matches})));const d=a.map(m=>c.matchMedia(m)),u=m=>{l(v=>v.slice().map(h=>h.media===m.media?{...h,matches:m.matches}:h))};return d.forEach(m=>{typeof m.addListener=="function"?m.addListener(u):m.addEventListener("change",u)}),()=>{d.forEach(m=>{typeof m.removeListener=="function"?m.removeListener(u):m.removeEventListener("change",u)})}},[o]),s.map(c=>c.matches)}function K1(e){const{breakpoint:t,hide:r,children:n,ssr:o}=e,[a]=nc(t,{ssr:o});return(r?!a:a)?n:null}var Zi=(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.breakpoints)==null?void 0:r[t])!=null?n:t};function X1(e){const{breakpoint:t="",below:r,above:n}=e,o=yt(),a=Zi(o,r),i=Zi(o,n);let s=t;return a?s=`(max-width: ${a})`:i&&(s=`(min-width: ${i})`),s}function Y1(e){const{children:t,ssr:r}=e,n=X1(e);return f(K1,{breakpoint:n,ssr:r,children:t})}Y1.displayName="Show";function Z1(e,t,r=Ql){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let o=r.indexOf(t);for(;o>=0;){const a=r[o];if(e.hasOwnProperty(a)){n=o;break}o-=1}if(n!==-1){const a=r[n];return e[a]}}function Q1(e){var t,r;const n=Te(e)?e:{fallback:e??"base"},a=yt().__breakpoints.details.map(({minMaxQuery:c,breakpoint:d})=>({breakpoint:d,query:c.replace("@media screen and ","")})),i=a.map(c=>c.breakpoint===n.fallback),l=nc(a.map(c=>c.query),{fallback:i,ssr:n.ssr}).findIndex(c=>c==!0);return(r=(t=a[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function Zw(e,t){var r;const n=Te(t)?t:{fallback:t??"base"},o=Q1(n),a=yt();if(!o)return;const i=Array.from(((r=a.__breakpoints)==null?void 0:r.keys)||[]),s=Array.isArray(e)?Object.fromEntries(Object.entries($1(e,i)).map(([l,c])=>[l,c])):e;return Z1(s,o,i)}function J1(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function eS(e={}){const{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=B([]),a=V(),i=()=>{a.current&&(clearTimeout(a.current),a.current=null)},s=()=>{i(),a.current=setTimeout(()=>{o([]),a.current=null},t)};K(()=>i,[]);function l(c){return d=>{if(d.key==="Backspace"){const u=[...n];u.pop(),o(u);return}if(J1(d)){const u=n.concat(d.key);r(d)&&(d.preventDefault(),d.stopPropagation()),o(u),c(u.join("")),s()}}}return l}function tS(e,t,r,n){if(t==null)return n;if(!n)return e.find(i=>r(i).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(a=>r(a).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let a;return o.includes(n)?(a=o.indexOf(n)+1,a===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a])}return n}function rS(){const e=V(new Map),t=e.current,r=S((o,a,i,s)=>{e.current.set(i,{type:a,el:o,options:s}),o.addEventListener(a,i,s)},[]),n=S((o,a,i,s)=>{o.removeEventListener(a,i,s),e.current.delete(i)},[]);return K(()=>()=>{t.forEach((o,a)=>{n(o.el,o.type,a,o.options)})},[n,t]),{add:r,remove:n}}function ko(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function oc(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:d,tabIndex:u,onMouseOver:m,onMouseLeave:v,...h}=e,[p,b]=B(!0),[y,x]=B(!1),w=rS(),I=$=>{$&&$.tagName!=="BUTTON"&&b(!1)},N=p?u:u||0,T=r&&!n,C=S($=>{if(r){$.stopPropagation(),$.preventDefault();return}$.currentTarget.focus(),l==null||l($)},[r,l]),A=S($=>{y&&ko($)&&($.preventDefault(),$.stopPropagation(),x(!1),w.remove(document,"keyup",A,!1))},[y,w]),M=S($=>{if(c==null||c($),r||$.defaultPrevented||$.metaKey||!ko($.nativeEvent)||p)return;const D=o&&$.key==="Enter";a&&$.key===" "&&($.preventDefault(),x(!0)),D&&($.preventDefault(),$.currentTarget.click()),w.add(document,"keyup",A,!1)},[r,p,c,o,a,w,A]),_=S($=>{if(d==null||d($),r||$.defaultPrevented||$.metaKey||!ko($.nativeEvent)||p)return;a&&$.key===" "&&($.preventDefault(),x(!1),$.currentTarget.click())},[a,p,r,d]),E=S($=>{$.button===0&&(x(!1),w.remove(document,"mouseup",E,!1))},[w]),ee=S($=>{if($.button!==0)return;if(r){$.stopPropagation(),$.preventDefault();return}p||x(!0),$.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",E,!1),i==null||i($)},[r,p,i,w,E]),te=S($=>{$.button===0&&(p||x(!1),s==null||s($))},[s,p]),ae=S($=>{if(r){$.preventDefault();return}m==null||m($)},[r,m]),fe=S($=>{y&&($.preventDefault(),x(!1)),v==null||v($)},[y,v]),Q=he(t,I);return p?{...h,ref:Q,type:"button","aria-disabled":T?void 0:r,disabled:T,onClick:C,onMouseDown:i,onMouseUp:s,onKeyUp:d,onKeyDown:c,onMouseOver:m,onMouseLeave:v}:{...h,ref:Q,role:"button","data-active":U(y),"aria-disabled":r?"true":void 0,tabIndex:T?void 0:N,onClick:C,onMouseDown:ee,onMouseUp:te,onKeyUp:_,onKeyDown:M,onMouseOver:ae,onMouseLeave:fe}}function nS(e){const t=e.current;if(!t)return!1;const r=s1(t);return!r||t.contains(r)?!1:!!m1(r)}function oS(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,a=r&&!n;Pt(()=>{if(!a||nS(e))return;const i=(o==null?void 0:o.current)||e.current;let s;if(i)return s=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,o])}var Vt=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ae={arrowShadowColor:Vt("--popper-arrow-shadow-color"),arrowSize:Vt("--popper-arrow-size","8px"),arrowSizeHalf:Vt("--popper-arrow-size-half"),arrowBg:Vt("--popper-arrow-bg"),transformOrigin:Vt("--popper-transform-origin"),arrowOffset:Vt("--popper-arrow-offset")};function aS(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var iS={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},sS=e=>iS[e],Qi={scroll:!0,resize:!0};function lS(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Qi,...e}}:t={enabled:e,options:Qi},t}var cS={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},dS={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ji(e)},effect:({state:e})=>()=>{Ji(e)}},Ji=e=>{e.elements.popper.style.setProperty(Ae.transformOrigin.var,sS(e.placement))},uS={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{fS(e)}},fS=e=>{var t;if(!e.placement)return;const r=mS(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:Ae.arrowSize.varRef,height:Ae.arrowSize.varRef,zIndex:-1});const n={[Ae.arrowSizeHalf.var]:`calc(${Ae.arrowSize.varRef} / 2 - 1px)`,[Ae.arrowOffset.var]:`calc(${Ae.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},mS=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ae.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ae.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ae.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ae.arrowOffset.varRef}},vS={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{es(e)},effect:({state:e})=>()=>{es(e)}},es=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=aS(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Ae.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},pS={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},hS={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function bS(e,t="ltr"){var r,n;const o=((r=pS[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=hS[e])!=null?n:o}function ac(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:i=!0,offset:s,gutter:l=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:u=!0,matchWidth:m,direction:v="ltr"}=e,h=V(null),p=V(null),b=V(null),y=bS(n,v),x=V(()=>{}),w=S(()=>{var _;!t||!h.current||!p.current||((_=x.current)==null||_.call(x),b.current=ed(h.current,p.current,{placement:y,modifiers:[vS,uS,dS,{...cS,enabled:!!m},{name:"eventListeners",...lS(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!u,options:{boundary:d}},...r??[]],strategy:o}),b.current.forceUpdate(),x.current=b.current.destroy)},[y,t,r,m,i,a,s,l,c,u,d,o]);K(()=>()=>{var _;!h.current&&!p.current&&((_=b.current)==null||_.destroy(),b.current=null)},[]);const I=S(_=>{h.current=_,w()},[w]),N=S((_={},E=null)=>({..._,ref:he(I,E)}),[I]),T=S(_=>{p.current=_,w()},[w]),C=S((_={},E=null)=>({..._,ref:he(T,E),style:{..._.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,T,m]),A=S((_={},E=null)=>{const{size:ee,shadowColor:te,bg:ae,style:fe,...Q}=_;return{...Q,ref:E,"data-popper-arrow":"",style:gS(_)}},[]),M=S((_={},E=null)=>({..._,ref:E,"data-popper-arrow-inner":""}),[]);return{update(){var _;(_=b.current)==null||_.update()},forceUpdate(){var _;(_=b.current)==null||_.forceUpdate()},transformOrigin:Ae.transformOrigin.varRef,referenceRef:I,popperRef:T,getPopperProps:C,getArrowProps:A,getArrowInnerProps:M,getReferenceProps:N}}function gS(e){const{size:t,shadowColor:r,bg:n,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),n&&(a["--popper-arrow-bg"]=n),a}function ic(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=Se(r),i=Se(t),[s,l]=B(e.defaultIsOpen||!1),c=n!==void 0?n:s,d=n!==void 0,u=Ke(),m=o??`disclosure-${u}`,v=S(()=>{d||l(!1),i==null||i()},[d,i]),h=S(()=>{d||l(!0),a==null||a()},[d,a]),p=S(()=>{c?v():h()},[c,h,v]);function b(x={}){return{...x,"aria-expanded":c,"aria-controls":m,onClick(w){var I;(I=x.onClick)==null||I.call(x,w),p()}}}function y(x={}){return{...x,hidden:!c,id:m}}return{isOpen:c,onOpen:h,onClose:v,onToggle:p,isControlled:d,getButtonProps:b,getDisclosureProps:y}}function yS(e){const{ref:t,handler:r,enabled:n=!0}=e,o=Se(r),i=V({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;K(()=>{if(!n)return;const s=u=>{wo(u,t)&&(i.isPointerDown=!0)},l=u=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&r&&wo(u,t)&&(i.isPointerDown=!1,o(u))},c=u=>{i.ignoreEmulatedMouseEvents=!0,r&&i.isPointerDown&&wo(u,t)&&(i.isPointerDown=!1,o(u))},d=sc(t.current);return d.addEventListener("mousedown",s,!0),d.addEventListener("mouseup",l,!0),d.addEventListener("touchstart",s,!0),d.addEventListener("touchend",c,!0),()=>{d.removeEventListener("mousedown",s,!0),d.removeEventListener("mouseup",l,!0),d.removeEventListener("touchstart",s,!0),d.removeEventListener("touchend",c,!0)}},[r,t,o,i,n])}function wo(e,t){var r;const n=e.target;return n&&!sc(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function sc(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function SS(e){const{isOpen:t,ref:r}=e,[n,o]=B(t),[a,i]=B(!1);return K(()=>{a||(o(t),i(!0))},[t,a,n]),Ar(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var l;const c=i1(r.current),d=new c.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(d)}}}function lc(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}var[xS,kS,wS,_S]=ya(),[CS,Vr]=ce({strict:!1,name:"MenuContext"});function PS(e,...t){const r=Ke(),n=e||r;return J(()=>t.map(o=>`${o}-${n}`),[n,t])}function cc(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function ts(e){return cc(e).activeElement===e}function IS(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:i,isOpen:s,defaultIsOpen:l,onClose:c,onOpen:d,placement:u="bottom-start",lazyBehavior:m="unmount",direction:v,computePositionOnMount:h=!1,...p}=e,b=V(null),y=V(null),x=wS(),w=S(()=>{requestAnimationFrame(()=>{var ne;(ne=b.current)==null||ne.focus({preventScroll:!1})})},[]),I=S(()=>{const ne=setTimeout(()=>{var G;if(o)(G=o.current)==null||G.focus();else{const j=x.firstEnabled();j&&te(j.index)}});D.current.add(ne)},[x,o]),N=S(()=>{const ne=setTimeout(()=>{const G=x.lastEnabled();G&&te(G.index)});D.current.add(ne)},[x]),T=S(()=>{d==null||d(),a?I():w()},[a,I,w,d]),{isOpen:C,onOpen:A,onClose:M,onToggle:_}=ic({isOpen:s,defaultIsOpen:l,onClose:c,onOpen:T});yS({enabled:C&&n,ref:b,handler:ne=>{var G;(G=y.current)!=null&&G.contains(ne.target)||M()}});const E=ac({...p,enabled:C||h,placement:u,direction:v}),[ee,te]=B(-1);Pt(()=>{C||te(-1)},[C]),oS(b,{focusRef:y,visible:C,shouldFocus:!0});const ae=SS({isOpen:C,ref:b}),[fe,Q]=PS(t,"menu-button","menu-list"),$=S(()=>{A(),w()},[A,w]),D=V(new Set([]));MS(()=>{D.current.forEach(ne=>clearTimeout(ne)),D.current.clear()});const ie=S(()=>{A(),I()},[I,A]),X=S(()=>{A(),N()},[A,N]),Ie=S(()=>{var ne,G;const j=cc(b.current),xe=(ne=b.current)==null?void 0:ne.contains(j.activeElement);if(!(C&&!xe))return;const we=(G=x.item(ee))==null?void 0:G.node;we==null||we.focus()},[C,ee,x]),Ce=V(null);return{openAndFocusMenu:$,openAndFocusFirstItem:ie,openAndFocusLastItem:X,onTransitionEnd:Ie,unstable__animationState:ae,descendants:x,popper:E,buttonId:fe,menuId:Q,forceUpdate:E.forceUpdate,orientation:"vertical",isOpen:C,onToggle:_,onOpen:A,onClose:M,menuRef:b,buttonRef:y,focusedIndex:ee,closeOnSelect:r,closeOnBlur:n,autoSelect:a,setFocusedIndex:te,isLazy:i,lazyBehavior:m,initialFocusRef:o,rafId:Ce}}function $S(e={},t=null){const r=Vr(),{onToggle:n,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:i}=r,s=S(l=>{const c=l.key,u={Enter:a,ArrowDown:a,ArrowUp:i}[c];u&&(l.preventDefault(),l.stopPropagation(),u(l))},[a,i]);return{...e,ref:he(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":U(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:L(e.onClick,n),onKeyDown:L(e.onKeyDown,s)}}function Jo(e){var t;return AS(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function TS(e={},t=null){const r=Vr();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:n,setFocusedIndex:o,menuRef:a,isOpen:i,onClose:s,menuId:l,isLazy:c,lazyBehavior:d,unstable__animationState:u}=r,m=kS(),v=eS({preventDefault:y=>y.key!==" "&&Jo(y.target)}),h=S(y=>{if(!y.currentTarget.contains(y.target))return;const x=y.key,I={Tab:T=>T.preventDefault(),Escape:s,ArrowDown:()=>{const T=m.nextEnabled(n);T&&o(T.index)},ArrowUp:()=>{const T=m.prevEnabled(n);T&&o(T.index)}}[x];if(I){y.preventDefault(),I(y);return}const N=v(T=>{const C=tS(m.values(),T,A=>{var M,_;return(_=(M=A==null?void 0:A.node)==null?void 0:M.textContent)!=null?_:""},m.item(n));if(C){const A=m.indexOf(C.node);o(A)}});Jo(y.target)&&N(y)},[m,n,v,s,o]),p=V(!1);i&&(p.current=!0);const b=lc({wasSelected:p.current,enabled:c,mode:d,isSelected:u.present});return{...e,ref:he(a,t),children:b?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:L(e.onKeyDown,h)}}function NS(e={}){const{popper:t,isOpen:r}=Vr();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}function ES(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:a,onFocus:i,isDisabled:s,isFocusable:l,closeOnSelect:c,type:d,...u}=e,m=Vr(),{setFocusedIndex:v,focusedIndex:h,closeOnSelect:p,onClose:b,menuRef:y,isOpen:x,menuId:w,rafId:I}=m,N=V(null),T=`${w}-menuitem-${Ke()}`,{index:C,register:A}=_S({disabled:s&&!l}),M=S($=>{r==null||r($),!s&&v(C)},[v,C,s,r]),_=S($=>{n==null||n($),N.current&&!ts(N.current)&&M($)},[M,n]),E=S($=>{o==null||o($),!s&&v(-1)},[v,s,o]),ee=S($=>{a==null||a($),Jo($.currentTarget)&&(c??p)&&b()},[b,a,p,c]),te=S($=>{i==null||i($),v(C)},[v,i,C]),ae=C===h,fe=s&&!l;Pt(()=>{x&&(ae&&!fe&&N.current?(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{var $;($=N.current)==null||$.focus(),I.current=null})):y.current&&!ts(y.current)&&y.current.focus({preventScroll:!0}))},[ae,fe,y,x]);const Q=oc({onClick:ee,onFocus:te,onMouseEnter:M,onMouseMove:_,onMouseLeave:E,ref:he(A,N,t),isDisabled:s,isFocusable:l});return{...u,...Q,type:d??Q.type,id:T,role:"menuitem",tabIndex:ae?0:-1}}function AS(e){var t;if(!FS(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function FS(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function MS(e,t=[]){return K(()=>()=>e(),t)}var[zS,Hr]=ce({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),DS=e=>{const{children:t}=e,r=Ne("Menu",e),n=ue(e),{direction:o}=yt(),{descendants:a,...i}=IS({...n,direction:o}),s=J(()=>i,[i]),{isOpen:l,onClose:c,forceUpdate:d}=s;return f(xS,{value:a,children:f(CS,{value:s,children:f(zS,{value:r,children:Je(t,{isOpen:l,onClose:c,forceUpdate:d})})})})};DS.displayName="Menu";var dc=P((e,t)=>{const r=Hr();return f(k.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});dc.displayName="MenuCommand";var RS=P((e,t)=>{const{type:r,...n}=e,o=Hr(),a=n.as||r?r??void 0:"button",i=J(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return f(k.button,{ref:t,type:a,...n,__css:i})}),uc=e=>{const{className:t,children:r,...n}=e,o=Hr(),a=cr.only(r),i=Or(a)?it(a,{focusable:"false","aria-hidden":!0,className:z("chakra-menu__icon",a.props.className)}):null,s=z("chakra-menu__icon-wrapper",t);return f(k.span,{className:s,...n,__css:o.icon,children:i})};uc.displayName="MenuIcon";var BS=P((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:o,commandSpacing:a="0.75rem",children:i,...s}=e,l=ES(s,t),d=r||o?f("span",{style:{pointerEvents:"none",flex:1},children:i}):i;return f(RS,{...l,className:z("chakra-menu__menuitem",l.className),children:[r&&f(uc,{fontSize:"0.8em",marginEnd:n,children:r}),d,o&&f(dc,{marginStart:a,children:o})]})});BS.displayName="MenuItem";var OS={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},LS=k(st.div),WS=P(function(t,r){var n,o;const{rootProps:a,motionProps:i,...s}=t,{isOpen:l,onTransitionEnd:c,unstable__animationState:d}=Vr(),u=TS(s,r),m=NS(a),v=Hr();return f(k.div,{...m,__css:{zIndex:(o=t.zIndex)!=null?o:(n=v.list)==null?void 0:n.zIndex},children:f(LS,{variants:OS,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...v.list},...i,className:z("chakra-menu__menu-list",u.className),...u,onUpdate:c,onAnimationComplete:ia(d.onComplete,u.onAnimationComplete)})})});WS.displayName="MenuList";var VS=P((e,t)=>{const r=Hr();return f(k.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),HS=P((e,t)=>{const{children:r,as:n,...o}=e,a=$S(o,t);return f(n||VS,{...a,className:z("chakra-menu__menu-button",e.className),children:f(k.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});HS.displayName="MenuButton";var jS={slideInBottom:{...Uo,custom:{offsetY:16,reverse:!0}},slideInRight:{...Uo,custom:{offsetX:16,reverse:!0}},scale:{...sl,custom:{initialScale:.95,reverse:!0}},none:{}},US=k(st.section),GS=e=>jS[e||"none"],fc=tt((e,t)=>{const{preset:r,motionProps:n=GS(r),...o}=e;return f(US,{ref:t,...n,...o})});fc.displayName="ModalTransition";var qS=Object.defineProperty,KS=(e,t,r)=>t in e?qS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XS=(e,t,r)=>(KS(e,typeof t!="symbol"?t+"":t,r),r),YS=class{constructor(){XS(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},ea=new YS;function mc(e,t){const[r,n]=B(0);return K(()=>{const o=e.current;if(o){if(t){const a=ea.add(o);n(a)}return()=>{ea.remove(o),n(0)}}},[t,e]),r}function ZS(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,useInert:i=!0,onOverlayClick:s,onEsc:l}=e,c=V(null),d=V(null),[u,m,v]=JS(n,"chakra-modal","chakra-modal--header","chakra-modal--body");QS(c,t&&i);const h=mc(c,t),p=V(null),b=S(M=>{p.current=M.target},[]),y=S(M=>{M.key==="Escape"&&(M.stopPropagation(),a&&(r==null||r()),l==null||l())},[a,r,l]),[x,w]=B(!1),[I,N]=B(!1),T=S((M={},_=null)=>({role:"dialog",...M,ref:he(_,c),id:u,tabIndex:-1,"aria-modal":!0,"aria-labelledby":x?m:void 0,"aria-describedby":I?v:void 0,onClick:L(M.onClick,E=>E.stopPropagation())}),[v,I,u,m,x]),C=S(M=>{M.stopPropagation(),p.current===M.target&&ea.isTopModal(c.current)&&(o&&(r==null||r()),s==null||s())},[r,o,s]),A=S((M={},_=null)=>({...M,ref:he(_,d),onClick:L(M.onClick,C),onKeyDown:L(M.onKeyDown,y),onMouseDown:L(M.onMouseDown,b)}),[y,b,C]);return{isOpen:t,onClose:r,headerId:m,bodyId:v,setBodyMounted:N,setHeaderMounted:w,dialogRef:c,overlayRef:d,getDialogProps:T,getDialogContainerProps:A,index:h}}function QS(e,t){const r=e.current;K(()=>{if(!(!e.current||!t))return Qc(e.current)},[t,e,r])}function JS(e,...t){const r=Ke(),n=e||r;return J(()=>t.map(o=>`${o}-${n}`),[n,t])}var[ex,Lt]=ce({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[tx,It]=ce({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Ra=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:u,motionPreset:m,lockFocusAcrossFrames:v,onCloseComplete:h}=t,p=Ne("Modal",t),y={...ZS(t),autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:u,motionPreset:m,lockFocusAcrossFrames:v};return f(tx,{value:y,children:f(ex,{value:p,children:f(Tt,{onExitComplete:h,children:y.isOpen&&f(dr,{...r,children:n})})})})};Ra.displayName="Modal";var pn="right-scroll-bar-position",hn="width-before-scroll-bar",rx="with-scroll-bars-hidden",nx="--removed-body-scroll-bar-size",vc=ds(),_o=function(){},Wn=tt(function(e,t){var r=V(null),n=B({onScrollCapture:_o,onWheelCapture:_o,onTouchMoveCapture:_o}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,m=e.sideCar,v=e.noIsolation,h=e.inert,p=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=Yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=m,N=us([r,t]),T=Gt(Gt({},w),o);return Me(Bt,null,d&&Me(I,{sideCar:vc,removeScrollBar:c,shards:u,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!p,lockRef:r,gapMode:x}),i?it(cr.only(s),Gt(Gt({},T),{ref:N})):Me(y,Gt({},T,{className:l,ref:N}),s))});Wn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wn.classNames={fullWidth:hn,zeroRight:pn};var ox={left:0,top:0,right:0,gap:0},Co=function(e){return parseInt(e||"",10)||0},ax=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Co(r),Co(n),Co(o)]},ix=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ox;var t=ax(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},sx=fs(),lx=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(rx,` {
   overflow: hidden `).concat(n,`;
   padding-right: `).concat(s,"px ").concat(n,`;
  }
  body {
    overflow: hidden `).concat(n,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(s,"px ").concat(n,`;
    `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(pn,` {
    right: `).concat(s,"px ").concat(n,`;
  }
  
  .`).concat(hn,` {
    margin-right: `).concat(s,"px ").concat(n,`;
  }
  
  .`).concat(pn," .").concat(pn,` {
    right: 0 `).concat(n,`;
  }
  
  .`).concat(hn," .").concat(hn,` {
    margin-right: 0 `).concat(n,`;
  }
  
  body {
    `).concat(nx,": ").concat(s,`px;
  }
`)},cx=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=J(function(){return ix(o)},[o]);return Me(sx,{styles:lx(a,!t,o,r?"":"!important")})},ta=!1;if(typeof window<"u")try{var en=Object.defineProperty({},"passive",{get:function(){return ta=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{ta=!1}var Ht=ta?{passive:!1}:!1,dx=function(e){return e.tagName==="TEXTAREA"},pc=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!dx(e)&&r[t]==="visible")},ux=function(e){return pc(e,"overflowY")},fx=function(e){return pc(e,"overflowX")},rs=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=hc(e,n);if(o){var a=bc(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},mx=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},vx=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},hc=function(e,t){return e==="v"?ux(t):fx(t)},bc=function(e,t){return e==="v"?mx(t):vx(t)},px=function(e,t){return e==="h"&&t==="rtl"?-1:1},hx=function(e,t,r,n,o){var a=px(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,l=t.contains(s),c=!1,d=i>0,u=0,m=0;do{var v=bc(e,s),h=v[0],p=v[1],b=v[2],y=p-b-a*h;(h||y)&&hc(e,s)&&(u+=y,m+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(o&&u===0||!o&&i>u)||!d&&(o&&m===0||!o&&-i>m))&&(c=!0),c},tn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ns=function(e){return[e.deltaX,e.deltaY]},os=function(e){return e&&"current"in e?e.current:e},bx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gx=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},yx=0,jt=[];function Sx(e){var t=V([]),r=V([0,0]),n=V(),o=B(yx++)[0],a=B(fs)[0],i=V(e);K(function(){i.current=e},[e]),K(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Zc([e.lockRef.current],(e.shards||[]).map(os),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S(function(p,b){if("touches"in p&&p.touches.length===2)return!i.current.allowPinchZoom;var y=tn(p),x=r.current,w="deltaX"in p?p.deltaX:x[0]-y[0],I="deltaY"in p?p.deltaY:x[1]-y[1],N,T=p.target,C=Math.abs(w)>Math.abs(I)?"h":"v";if("touches"in p&&C==="h"&&T.type==="range")return!1;var A=rs(C,T);if(!A)return!0;if(A?N=C:(N=C==="v"?"h":"v",A=rs(C,T)),!A)return!1;if(!n.current&&"changedTouches"in p&&(w||I)&&(n.current=N),!N)return!0;var M=n.current||N;return hx(M,b,p,M==="h"?w:I,!0)},[]),l=S(function(p){var b=p;if(!(!jt.length||jt[jt.length-1]!==a)){var y="deltaY"in b?ns(b):tn(b),x=t.current.filter(function(N){return N.name===b.type&&N.target===b.target&&bx(N.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(os).filter(Boolean).filter(function(N){return N.contains(b.target)}),I=w.length>0?s(b,w[0]):!i.current.noIsolation;I&&b.cancelable&&b.preventDefault()}}},[]),c=S(function(p,b,y,x){var w={name:p,delta:b,target:y,should:x};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(I){return I!==w})},1)},[]),d=S(function(p){r.current=tn(p),n.current=void 0},[]),u=S(function(p){c(p.type,ns(p),p.target,s(p,e.lockRef.current))},[]),m=S(function(p){c(p.type,tn(p),p.target,s(p,e.lockRef.current))},[]);K(function(){return jt.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Ht),document.addEventListener("touchmove",l,Ht),document.addEventListener("touchstart",d,Ht),function(){jt=jt.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,Ht),document.removeEventListener("touchmove",l,Ht),document.removeEventListener("touchstart",d,Ht)}},[]);var v=e.removeScrollBar,h=e.inert;return Me(Bt,null,h?Me(a,{styles:gx(o)}):null,v?Me(cx,{gapMode:e.gapMode}):null)}const xx=Xc(vc,Sx);var gc=tt(function(e,t){return Me(Wn,Gt({},e,{ref:t,sideCar:xx}))});gc.classNames=Wn.classNames;const kx=gc;function yc(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:i,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:u}=It(),[m,v]=Uc();K(()=>{!m&&v&&setTimeout(v)},[m,v]);const h=mc(n,u);return f(jl,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:d,children:f(kx,{removeScrollBar:!c,allowPinchZoom:i,enabled:h===1&&a,forwardProps:!0,children:e.children})})}var Sc=P((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:a,...i}=e,{getDialogProps:s,getDialogContainerProps:l}=It(),c=s(i,t),d=l(o),u=z("chakra-modal__content",r),m=Lt(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:p}=It();return f(yc,{children:f(k.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:h,children:f(fc,{preset:p,motionProps:a,className:u,...c,__css:v,children:n})})})});Sc.displayName="ModalContent";function Qw(e){const{leastDestructiveRef:t,...r}=e;return f(Ra,{...r,initialFocusRef:t})}var Jw=P((e,t)=>f(Sc,{ref:t,role:"alertdialog",...e})),[wx,_x]=ce(),Cx={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function Px(e,t){var r,n;if(e)return(n=(r=Cx[e])==null?void 0:r[t])!=null?n:e}function e_(e){var t;const{isOpen:r,onClose:n,placement:o="right",children:a,...i}=e,s=yt(),l=(t=s.components)==null?void 0:t.Drawer,c=Px(o,s.direction);return f(wx,{value:{placement:c},children:f(Ra,{isOpen:r,onClose:n,styleConfig:l,...i,children:a})})}var Ix=k(ll),$x=P((e,t)=>{const{className:r,children:n,motionProps:o,containerProps:a,...i}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:c}=It(),d=s(i,t),u=l(a),m=z("chakra-modal__content",r),v=Lt(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{placement:b}=_x();return f(yc,{children:f(k.div,{...u,className:"chakra-modal__content-container",__css:p,children:f(Ix,{motionProps:o,direction:b,in:c,className:m,...d,__css:h,children:n})})})});$x.displayName="DrawerContent";var Tx=P((e,t)=>{const{className:r,...n}=e,o=z("chakra-modal__footer",r),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...Lt().footer};return f(k.footer,{ref:t,...n,__css:i,className:o})});Tx.displayName="ModalFooter";var Nx=P((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:a}=It();K(()=>(a(!0),()=>a(!1)),[a]);const i=z("chakra-modal__header",r),l={flex:0,...Lt().header};return f(k.header,{ref:t,className:i,id:o,...n,__css:l})});Nx.displayName="ModalHeader";var Ex=k(st.div),Ax=P((e,t)=>{const{className:r,transition:n,motionProps:o,...a}=e,i=z("chakra-modal__overlay",r),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Lt().overlay},{motionPreset:c}=It();return f(Ex,{...o||(c==="none"?{}:il),__css:l,ref:t,className:i,...a})});Ax.displayName="ModalOverlay";var Fx=P((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:a}=It();K(()=>(a(!0),()=>a(!1)),[a]);const i=z("chakra-modal__body",r),s=Lt();return f(k.div,{ref:t,className:i,id:o,...n,__css:s.body})});Fx.displayName="ModalBody";var Mx=P((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:a}=It(),i=z("chakra-modal__close-btn",n),s=Lt();return f(ga,{ref:t,__css:s.closeButton,className:i,onClick:L(r,l=>{l.stopPropagation(),a()}),...o})});Mx.displayName="ModalCloseButton";var zx=e=>f(lt,{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),Dx=e=>f(lt,{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function as(e,t,r,n){K(()=>{var o;if(!e.current||!n)return;const a=(o=e.current.ownerDocument.defaultView)!=null?o:window,i=Array.isArray(t)?t:[t],s=new a.MutationObserver(l=>{for(const c of l)c.type==="attributes"&&c.attributeName&&i.includes(c.attributeName)&&r(c)});return s.observe(e.current,{attributes:!0,attributeFilter:i}),()=>s.disconnect()})}function Rx(e,t){const r=Se(e);K(()=>{let n=null;const o=()=>r();return t!==null&&(n=window.setInterval(o,t)),()=>{n&&window.clearInterval(n)}},[t,r])}var Bx=50,is=300;function Ox(e,t){const[r,n]=B(!1),[o,a]=B(null),[i,s]=B(!0),l=V(null),c=()=>clearTimeout(l.current);Rx(()=>{o==="increment"&&e(),o==="decrement"&&t()},r?Bx:null);const d=S(()=>{i&&e(),l.current=setTimeout(()=>{s(!1),n(!0),a("increment")},is)},[e,i]),u=S(()=>{i&&t(),l.current=setTimeout(()=>{s(!1),n(!0),a("decrement")},is)},[t,i]),m=S(()=>{s(!0),n(!1),c()},[]);return K(()=>()=>c(),[]),{up:d,down:u,stop:m,isSpinning:r}}var Lx=/^[Ee0-9+\-.]$/;function Wx(e){return Lx.test(e)}function Vx(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function Hx(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:o=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:i=1,isReadOnly:s,isDisabled:l,isRequired:c,isInvalid:d,pattern:u="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:v,id:h,onChange:p,precision:b,name:y,"aria-describedby":x,"aria-label":w,"aria-labelledby":I,onFocus:N,onBlur:T,onInvalid:C,getAriaValueText:A,isValidCharacter:M,format:_,parse:E,...ee}=e,te=Se(N),ae=Se(T),fe=Se(C),Q=Se(M??Wx),$=Se(A),D=sy(e),{update:ie,increment:X,decrement:Ie}=D,[Ce,ne]=B(!1),G=!(s||l),j=V(null),xe=V(null),be=V(null),we=V(null),De=S(F=>F.split("").filter(Q).join(""),[Q]),Re=S(F=>{var re;return(re=E==null?void 0:E(F))!=null?re:F},[E]),Y=S(F=>{var re;return((re=_==null?void 0:_(F))!=null?re:F).toString()},[_]);Pt(()=>{(D.valueAsNumber>a||D.valueAsNumber<o)&&(fe==null||fe("rangeOverflow",Y(D.value),D.valueAsNumber))},[D.valueAsNumber,D.value,Y,fe]),ot(()=>{if(!j.current)return;if(j.current.value!=D.value){const re=Re(j.current.value);D.setValue(De(re))}},[Re,De]);const Z=S((F=i)=>{G&&X(F)},[X,G,i]),_e=S((F=i)=>{G&&Ie(F)},[Ie,G,i]),me=Ox(Z,_e);as(be,"disabled",me.stop,me.isSpinning),as(we,"disabled",me.stop,me.isSpinning);const H=S(F=>{if(F.nativeEvent.isComposing)return;const ge=Re(F.currentTarget.value);ie(De(ge)),xe.current={start:F.currentTarget.selectionStart,end:F.currentTarget.selectionEnd}},[ie,De,Re]),$e=S(F=>{var re,ge,Le;te==null||te(F),xe.current&&(F.target.selectionStart=(ge=xe.current.start)!=null?ge:(re=F.currentTarget.value)==null?void 0:re.length,F.currentTarget.selectionEnd=(Le=xe.current.end)!=null?Le:F.currentTarget.selectionStart)},[te]),Fe=S(F=>{if(F.nativeEvent.isComposing)return;Vx(F,Q)||F.preventDefault();const re=Xe(F)*i,ge=F.key,R={ArrowUp:()=>Z(re),ArrowDown:()=>_e(re),Home:()=>ie(o),End:()=>ie(a)}[ge];R&&(F.preventDefault(),R(F))},[Q,i,Z,_e,ie,o,a]),Xe=F=>{let re=1;return(F.metaKey||F.ctrlKey)&&(re=.1),F.shiftKey&&(re=10),re},ur=J(()=>{const F=$==null?void 0:$(D.value);if(F!=null)return F;const re=D.value.toString();return re||void 0},[D.value,$]),fr=S(()=>{let F=D.value;if(D.value==="")return;/^[eE]/.test(D.value.toString())?D.setValue(""):(D.valueAsNumber<o&&(F=o),D.valueAsNumber>a&&(F=a),D.cast(F))},[D,a,o]),mr=S(()=>{ne(!1),r&&fr()},[r,ne,fr]),Nt=S(()=>{t&&requestAnimationFrame(()=>{var F;(F=j.current)==null||F.focus()})},[t]),vr=S(F=>{F.preventDefault(),me.up(),Nt()},[Nt,me]),pr=S(F=>{F.preventDefault(),me.down(),Nt()},[Nt,me]);Ar(()=>j.current,"wheel",F=>{var re,ge;const R=((ge=(re=j.current)==null?void 0:re.ownerDocument)!=null?ge:document).activeElement===j.current;if(!v||!R)return;F.preventDefault();const q=Xe(F)*i,St=Math.sign(F.deltaY);St===-1?Z(q):St===1&&_e(q)},{passive:!1});const qn=S((F={},re=null)=>{const ge=l||n&&D.isAtMax;return{...F,ref:he(re,be),role:"button",tabIndex:-1,onPointerDown:L(F.onPointerDown,Le=>{Le.button!==0||ge||vr(Le)}),onPointerLeave:L(F.onPointerLeave,me.stop),onPointerUp:L(F.onPointerUp,me.stop),disabled:ge,"aria-disabled":ht(ge)}},[D.isAtMax,n,vr,me.stop,l]),Kn=S((F={},re=null)=>{const ge=l||n&&D.isAtMin;return{...F,ref:he(re,we),role:"button",tabIndex:-1,onPointerDown:L(F.onPointerDown,Le=>{Le.button!==0||ge||pr(Le)}),onPointerLeave:L(F.onPointerLeave,me.stop),onPointerUp:L(F.onPointerUp,me.stop),disabled:ge,"aria-disabled":ht(ge)}},[D.isAtMin,n,pr,me.stop,l]),Xn=S((F={},re=null)=>{var ge,Le,R,q;return{name:y,inputMode:m,type:"text",pattern:u,"aria-labelledby":I,"aria-label":w,"aria-describedby":x,id:h,disabled:l,...F,readOnly:(ge=F.readOnly)!=null?ge:s,"aria-readonly":(Le=F.readOnly)!=null?Le:s,"aria-required":(R=F.required)!=null?R:c,required:(q=F.required)!=null?q:c,ref:he(j,re),value:Y(D.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Number.isNaN(D.valueAsNumber)?void 0:D.valueAsNumber,"aria-invalid":ht(d??D.isOutOfRange),"aria-valuetext":ur,autoComplete:"off",autoCorrect:"off",onChange:L(F.onChange,H),onKeyDown:L(F.onKeyDown,Fe),onFocus:L(F.onFocus,$e,()=>ne(!0)),onBlur:L(F.onBlur,ae,mr)}},[y,m,u,I,w,Y,x,h,l,c,s,d,D.value,D.valueAsNumber,D.isOutOfRange,o,a,ur,H,Fe,$e,ae,mr]);return{value:Y(D.value),valueAsNumber:D.valueAsNumber,isFocused:Ce,isDisabled:l,isReadOnly:s,getIncrementButtonProps:qn,getDecrementButtonProps:Kn,getInputProps:Xn,htmlProps:ee}}var[jx,Vn]=ce({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[Ux,Ba]=ce({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Gx=P(function(t,r){const n=Ne("NumberInput",t),o=ue(t),a=wa(o),{htmlProps:i,...s}=Hx(a),l=J(()=>s,[s]);return f(Ux,{value:l,children:f(jx,{value:n,children:f(k.div,{...i,ref:r,className:z("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});Gx.displayName="NumberInput";var qx=P(function(t,r){const n=Vn();return f(k.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});qx.displayName="NumberInputStepper";var Kx=P(function(t,r){const{getInputProps:n}=Ba(),o=n(t,r),a=Vn();return f(k.input,{...o,className:z("chakra-numberinput__field",t.className),__css:{width:"100%",...a.field}})});Kx.displayName="NumberInputField";var xc=k("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Xx=P(function(t,r){var n;const o=Vn(),{getDecrementButtonProps:a}=Ba(),i=a(t,r);return f(xc,{...i,__css:o.stepper,children:(n=t.children)!=null?n:f(zx,{})})});Xx.displayName="NumberDecrementStepper";var Yx=P(function(t,r){var n;const{getIncrementButtonProps:o}=Ba(),a=o(t,r),i=Vn();return f(xc,{...a,__css:i.stepper,children:(n=t.children)!=null?n:f(Dx,{})})});Yx.displayName="NumberIncrementStepper";function Zx(e,t,r){return(e-t)*100/(r-t)}$t({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});$t({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var Qx=$t({"0%":{left:"-40%"},"100%":{left:"100%"}}),Jx=$t({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function ek(e){const{value:t=0,min:r,max:n,valueText:o,getValueText:a,isIndeterminate:i,role:s="progressbar"}=e,l=Zx(t,r,n);return{bind:{"data-indeterminate":i?"":void 0,"aria-valuemax":n,"aria-valuemin":r,"aria-valuenow":i?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof a=="function"?a(t,l):o})(),role:s},percent:l,value:t}}var[tk,rk]=ce({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),nk=P((e,t)=>{const{min:r,max:n,value:o,isIndeterminate:a,role:i,...s}=e,l=ek({value:o,min:r,max:n,isIndeterminate:a,role:i}),d={height:"100%",...rk().filledTrack};return f(k.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:d})}),ok=P((e,t)=>{var r;const{value:n,min:o=0,max:a=100,hasStripe:i,isAnimated:s,children:l,borderRadius:c,isIndeterminate:d,"aria-label":u,"aria-labelledby":m,"aria-valuetext":v,title:h,role:p,...b}=ue(e),y=Ne("Progress",e),x=c??((r=y.track)==null?void 0:r.borderRadius),w={animation:`${Jx} 1s linear infinite`},T={...!d&&i&&s&&w,...d&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${Qx} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...y.track};return f(k.div,{ref:t,borderRadius:x,__css:C,...b,children:f(tk,{value:y,children:[f(nk,{"aria-label":u,"aria-labelledby":m,"aria-valuetext":v,min:o,max:a,value:n,isIndeterminate:d,css:T,borderRadius:x,title:h,role:p}),l]})})});ok.displayName="Progress";function ak(e){return e&&Te(e)&&Te(e.target)}function ik(e={}){const{onChange:t,value:r,defaultValue:n,name:o,isDisabled:a,isFocusable:i,isNative:s,...l}=e,[c,d]=B(n||""),u=typeof r<"u",m=u?r:c,v=V(null),h=S(()=>{const N=v.current;if(!N)return;let T="input:not(:disabled):checked";const C=N.querySelector(T);if(C){C.focus();return}T="input:not(:disabled)";const A=N.querySelector(T);A==null||A.focus()},[]),b=`radio-${Ke()}`,y=o||b,x=S(N=>{const T=ak(N)?N.target.value:N;u||d(T),t==null||t(String(T))},[t,u]),w=S((N={},T=null)=>({...N,ref:he(T,v),role:"radiogroup"}),[]),I=S((N={},T=null)=>({...N,ref:T,name:y,[s?"checked":"isChecked"]:m!=null?N.value===m:void 0,onChange(A){x(A)},"data-radiogroup":!0}),[s,y,x,m]);return{getRootProps:w,getRadioProps:I,name:y,ref:v,focus:h,setValue:d,value:m,onChange:x,isDisabled:a,isFocusable:i,htmlProps:l}}var[sk,kc]=ce({name:"RadioGroupContext",strict:!1}),lk=P((e,t)=>{const{colorScheme:r,size:n,variant:o,children:a,className:i,isDisabled:s,isFocusable:l,...c}=e,{value:d,onChange:u,getRootProps:m,name:v,htmlProps:h}=ik(c),p=J(()=>({name:v,size:n,onChange:u,colorScheme:r,value:d,variant:o,isDisabled:s,isFocusable:l}),[v,n,u,r,d,o,s,l]);return f(sk,{value:p,children:f(k.div,{...m(h,t),className:z("chakra-radio-group",i),children:a})})});lk.displayName="RadioGroup";var ck={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function dk(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:o,isReadOnly:a,isRequired:i,onChange:s,isInvalid:l,name:c,value:d,id:u,"data-radiogroup":m,"aria-describedby":v,...h}=e,p=`radio-${Ke()}`,b=Ot(),x=!!kc()||!!m;let I=!!b&&!x?b.id:p;I=u??I;const N=o??(b==null?void 0:b.isDisabled),T=a??(b==null?void 0:b.isReadOnly),C=i??(b==null?void 0:b.isRequired),A=l??(b==null?void 0:b.isInvalid),[M,_]=B(!1),[E,ee]=B(!1),[te,ae]=B(!1),[fe,Q]=B(!1),[$,D]=B(!!t),ie=typeof r<"u",X=ie?r:$;K(()=>ms(_),[]);const Ie=S(Y=>{if(T||N){Y.preventDefault();return}ie||D(Y.target.checked),s==null||s(Y)},[ie,N,T,s]),Ce=S(Y=>{Y.key===" "&&Q(!0)},[Q]),ne=S(Y=>{Y.key===" "&&Q(!1)},[Q]),G=S((Y={},Z=null)=>({...Y,ref:Z,"data-active":U(fe),"data-hover":U(te),"data-disabled":U(N),"data-invalid":U(A),"data-checked":U(X),"data-focus":U(E),"data-focus-visible":U(E&&M),"data-readonly":U(T),"aria-hidden":!0,onMouseDown:L(Y.onMouseDown,()=>Q(!0)),onMouseUp:L(Y.onMouseUp,()=>Q(!1)),onMouseEnter:L(Y.onMouseEnter,()=>ae(!0)),onMouseLeave:L(Y.onMouseLeave,()=>ae(!1))}),[fe,te,N,A,X,E,T,M]),{onFocus:j,onBlur:xe}=b??{},be=S((Y={},Z=null)=>{const _e=N&&!n;return{...Y,id:I,ref:Z,type:"radio",name:c,value:d,onChange:L(Y.onChange,Ie),onBlur:L(xe,Y.onBlur,()=>ee(!1)),onFocus:L(j,Y.onFocus,()=>ee(!0)),onKeyDown:L(Y.onKeyDown,Ce),onKeyUp:L(Y.onKeyUp,ne),checked:X,disabled:_e,readOnly:T,required:C,"aria-invalid":ht(A),"aria-disabled":ht(_e),"aria-required":ht(C),"data-readonly":U(T),"aria-describedby":v,style:ck}},[N,n,I,c,d,Ie,xe,j,Ce,ne,X,T,C,A,v]);return{state:{isInvalid:A,isFocused:E,isChecked:X,isActive:fe,isHovered:te,isDisabled:N,isReadOnly:T,isRequired:C},getCheckboxProps:G,getRadioProps:G,getInputProps:be,getLabelProps:(Y={},Z=null)=>({...Y,ref:Z,onMouseDown:L(Y.onMouseDown,uk),"data-disabled":U(N),"data-checked":U(X),"data-invalid":U(A)}),getRootProps:(Y,Z=null)=>({...Y,ref:Z,"data-disabled":U(N),"data-checked":U(X),"data-invalid":U(A)}),htmlProps:h}}function uk(e){e.preventDefault(),e.stopPropagation()}function fk(e,t){const r={},n={};for(const[o,a]of Object.entries(e))t.includes(o)?r[o]=a:n[o]=a;return[r,n]}var mk=P((e,t)=>{var r;const n=kc(),{onChange:o,value:a}=e,i=Ne("Radio",{...n,...e}),s=ue(e),{spacing:l="0.5rem",children:c,isDisabled:d=n==null?void 0:n.isDisabled,isFocusable:u=n==null?void 0:n.isFocusable,inputProps:m,...v}=s;let h=e.isChecked;(n==null?void 0:n.value)!=null&&a!=null&&(h=n.value===a);let p=o;n!=null&&n.onChange&&a!=null&&(p=ia(n.onChange,o));const b=(r=e==null?void 0:e.name)!=null?r:n==null?void 0:n.name,{getInputProps:y,getCheckboxProps:x,getLabelProps:w,getRootProps:I,htmlProps:N}=dk({...v,isChecked:h,isFocusable:u,isDisabled:d,onChange:p,name:b}),[T,C]=fk(N,Ps),A=x(C),M=y(m,t),_=w(),E=Object.assign({},T,I()),ee={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...i.container},te={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...i.control},ae={userSelect:"none",marginStart:l,...i.label};return f(k.label,{className:"chakra-radio",...E,__css:ee,children:[f("input",{className:"chakra-radio__input",...M}),f(k.span,{className:"chakra-radio__control",...A,__css:te}),c&&f(k.span,{className:"chakra-radio__label",..._,__css:ae,children:c})]})});mk.displayName="Radio";var wc=P(function(t,r){const{children:n,placeholder:o,className:a,...i}=t;return f(k.select,{...i,ref:r,className:z("chakra-select",a),children:[o&&f("option",{value:"",children:o}),n]})});wc.displayName="SelectField";function vk(e,t){const r={},n={};for(const[o,a]of Object.entries(e))t.includes(o)?r[o]=a:n[o]=a;return[r,n]}var pk=P((e,t)=>{var r;const n=Ne("Select",e),{rootProps:o,placeholder:a,icon:i,color:s,height:l,h:c,minH:d,minHeight:u,iconColor:m,iconSize:v,...h}=ue(e),[p,b]=vk(h,Ps),y=fl(b),x={width:"100%",height:"fit-content",position:"relative",color:s},w={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return f(k.div,{className:"chakra-select__wrapper",__css:x,...p,...o,children:[f(wc,{ref:t,height:c??l,minH:d??u,placeholder:a,...y,__css:w,children:e.children}),f(_c,{"data-disabled":U(y.disabled),...(m||s)&&{color:m||s},__css:n.icon,...v&&{fontSize:v},children:i})]})});pk.displayName="Select";var hk=e=>f("svg",{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),bk=k("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),_c=e=>{const{children:t=f(hk,{}),...r}=e,n=it(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return f(bk,{...r,className:"chakra-select__icon-wrapper",children:Or(t)?n:null})};_c.displayName="SelectIcon";var Ut=e=>e?"":void 0,Po=e=>e?!0:void 0,jr=(...e)=>e.filter(Boolean).join(" ");function Io(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function rn(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}var bn={width:0,height:0},nn=e=>e||bn;function gk(e){const{orientation:t,thumbPercents:r,thumbRects:n,isReversed:o}=e,a=p=>{var b;const y=(b=n[p])!=null?b:bn;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...rn({orientation:t,vertical:{bottom:`calc(${r[p]}% - ${y.height/2}px)`},horizontal:{left:`calc(${r[p]}% - ${y.width/2}px)`}})}},i=t==="vertical"?n.reduce((p,b)=>nn(p).height>nn(b).height?p:b,bn):n.reduce((p,b)=>nn(p).width>nn(b).width?p:b,bn),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...rn({orientation:t,vertical:i?{paddingLeft:i.width/2,paddingRight:i.width/2}:{},horizontal:i?{paddingTop:i.height/2,paddingBottom:i.height/2}:{}})},l={position:"absolute",...rn({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},c=r.length===1,d=[0,o?100-r[0]:r[0]],u=c?d:r;let m=u[0];!c&&o&&(m=100-m);const v=Math.abs(u[u.length-1]-u[0]),h={...l,...rn({orientation:t,vertical:o?{height:`${v}%`,top:`${m}%`}:{height:`${v}%`,bottom:`${m}%`},horizontal:o?{width:`${v}%`,right:`${m}%`}:{width:`${v}%`,left:`${m}%`}})};return{trackStyle:l,innerTrackStyle:h,rootStyle:s,getThumbStyle:a}}function yk(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function Sk(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function xk(e){const t=wk(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function Cc(e){return!!e.touches}function kk(e){return Cc(e)&&e.touches.length>1}function wk(e){var t;return(t=e.view)!=null?t:window}function _k(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function Ck(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function Pc(e,t="page"){return Cc(e)?_k(e,t):Ck(e,t)}function Pk(e){return t=>{const r=xk(t);(!r||r&&t.button===0)&&e(t)}}function Ik(e,t=!1){function r(o){e(o,{point:Pc(o)})}return t?Pk(r):r}function gn(e,t,r,n){return Sk(e,t,Ik(r,t==="pointerdown"),n)}var $k=Object.defineProperty,Tk=(e,t,r)=>t in e?$k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t,r)=>(Tk(e,typeof t!="symbol"?t+"":t,r),r),Nk=class{constructor(e,t,r){Ze(this,"history",[]),Ze(this,"startEvent",null),Ze(this,"lastEvent",null),Ze(this,"lastEventInfo",null),Ze(this,"handlers",{}),Ze(this,"removeListeners",()=>{}),Ze(this,"threshold",3),Ze(this,"win"),Ze(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const s=$o(this.lastEventInfo,this.history),l=this.startEvent!==null,c=Mk(s.offset,{x:0,y:0})>=this.threshold;if(!l&&!c)return;const{timestamp:d}=La();this.history.push({...s.point,timestamp:d});const{onStart:u,onMove:m}=this.handlers;l||(u==null||u(this.lastEvent,s),this.startEvent=this.lastEvent),m==null||m(this.lastEvent,s)}),Ze(this,"onPointerMove",(s,l)=>{this.lastEvent=s,this.lastEventInfo=l,Bc.update(this.updatePoint,!0)}),Ze(this,"onPointerUp",(s,l)=>{const c=$o(l,this.history),{onEnd:d,onSessionEnd:u}=this.handlers;u==null||u(s,c),this.end(),!(!d||!this.startEvent)&&(d==null||d(s,c))});var n;if(this.win=(n=e.view)!=null?n:window,kk(e))return;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const o={point:Pc(e)},{timestamp:a}=La();this.history=[{...o.point,timestamp:a}];const{onSessionStart:i}=t;i==null||i(e,$o(o,this.history)),this.removeListeners=Fk(gn(this.win,"pointermove",this.onPointerMove),gn(this.win,"pointerup",this.onPointerUp),gn(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),Rc.update(this.updatePoint)}};function ss(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $o(e,t){return{point:e.point,delta:ss(e.point,t[t.length-1]),offset:ss(e.point,t[0]),velocity:Ak(t,.1)}}var Ek=e=>e*1e3;function Ak(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=e[e.length-1];for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Ek(t)));)r--;if(!n)return{x:0,y:0};const a=(o.timestamp-n.timestamp)/1e3;if(a===0)return{x:0,y:0};const i={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Fk(...e){return t=>e.reduce((r,n)=>n(r),t)}function To(e,t){return Math.abs(e-t)}function ls(e){return"x"in e&&"y"in e}function Mk(e,t){if(typeof e=="number"&&typeof t=="number")return To(e,t);if(ls(e)&&ls(t)){const r=To(e.x,t.x),n=To(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function Ic(e){const t=V(null);return t.current=e,t}function zk(e,t){const{onPan:r,onPanStart:n,onPanEnd:o,onPanSessionStart:a,onPanSessionEnd:i,threshold:s}=t,l=!!(r||n||o||a||i),c=V(null),d=Ic({onSessionStart:a,onSessionEnd:i,onStart:n,onMove:r,onEnd(u,m){c.current=null,o==null||o(u,m)}});K(()=>{var u;(u=c.current)==null||u.updateHandlers(d.current)}),K(()=>{const u=e.current;if(!u||!l)return;function m(v){c.current=new Nk(v,d.current,s)}return gn(u,"pointerdown",m)},[e,l,d,s]),K(()=>()=>{var u;(u=c.current)==null||u.end(),c.current=null},[])}var Dk=globalThis!=null&&globalThis.document?Nn:K;function Rk(e,t){var r,n;if(!e||!e.parentElement)return;const o=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,a=new o.MutationObserver(()=>{t()});return a.observe(e.parentElement,{childList:!0}),()=>{a.disconnect()}}function Bk({getNodes:e,observeMutation:t=!0}){const[r,n]=B([]),[o,a]=B(0);return Dk(()=>{const i=e(),s=i.map((l,c)=>Jc(l,d=>{n(u=>[...u.slice(0,c),d,...u.slice(c+1)])}));if(t){const l=i[0];s.push(Rk(l,()=>{a(c=>c+1)}))}return()=>{s.forEach(l=>{l==null||l()})}},[o]),r}function Ok(e){return typeof e=="object"&&e!==null&&"current"in e}function Lk(e){const[t]=Bk({observeMutation:!1,getNodes(){return[Ok(e)?e.current:e]}});return t}function Wk(e){var t;const{min:r=0,max:n=100,onChange:o,value:a,defaultValue:i,isReversed:s,direction:l="ltr",orientation:c="horizontal",id:d,isDisabled:u,isReadOnly:m,onChangeStart:v,onChangeEnd:h,step:p=1,getAriaValueText:b,"aria-valuetext":y,"aria-label":x,"aria-labelledby":w,name:I,focusThumbOnChange:N=!0,...T}=e,C=Se(v),A=Se(h),M=Se(b),_=yk({isReversed:s,direction:l,orientation:c}),[E,ee]=Bn({value:a,defaultValue:i??Hk(r,n),onChange:o}),[te,ae]=B(!1),[fe,Q]=B(!1),$=!(u||m),D=(n-r)/10,ie=p||(n-r)/100,X=vn(E,r,n),Ie=n-X+r,ne=Wi(_?Ie:X,r,n),G=c==="vertical",j=Ic({min:r,max:n,step:p,isDisabled:u,value:X,isInteractive:$,isReversed:_,isVertical:G,eventSource:null,focusThumbOnChange:N,orientation:c}),xe=V(null),be=V(null),we=V(null),De=Ke(),Re=d??De,[Y,Z]=[`slider-thumb-${Re}`,`slider-track-${Re}`],_e=S(R=>{var q,St;if(!xe.current)return;const Ve=j.current;Ve.eventSource="pointer";const dt=xe.current.getBoundingClientRect(),{clientX:Yn,clientY:Nc}=(St=(q=R.touches)==null?void 0:q[0])!=null?St:R,Ec=G?dt.bottom-Nc:Yn-dt.left,Ac=G?dt.height:dt.width;let Zn=Ec/Ac;_&&(Zn=1-Zn);let hr=iy(Zn,Ve.min,Ve.max);return Ve.step&&(hr=parseFloat(Vi(hr,Ve.min,Ve.step))),hr=vn(hr,Ve.min,Ve.max),hr},[G,_,j]),me=S(R=>{const q=j.current;q.isInteractive&&(R=parseFloat(Vi(R,q.min,ie)),R=vn(R,q.min,q.max),ee(R))},[ie,ee,j]),H=J(()=>({stepUp(R=ie){const q=_?X-R:X+R;me(q)},stepDown(R=ie){const q=_?X+R:X-R;me(q)},reset(){me(i||0)},stepTo(R){me(R)}}),[me,_,X,ie,i]),$e=S(R=>{const q=j.current,Ve={ArrowRight:()=>H.stepUp(),ArrowUp:()=>H.stepUp(),ArrowLeft:()=>H.stepDown(),ArrowDown:()=>H.stepDown(),PageUp:()=>H.stepUp(D),PageDown:()=>H.stepDown(D),Home:()=>me(q.min),End:()=>me(q.max)}[R.key];Ve&&(R.preventDefault(),R.stopPropagation(),Ve(R),q.eventSource="keyboard")},[H,me,D,j]),Fe=(t=M==null?void 0:M(X))!=null?t:y,Xe=Lk(be),{getThumbStyle:ur,rootStyle:fr,trackStyle:mr,innerTrackStyle:Nt}=J(()=>{const R=j.current,q=Xe??{width:0,height:0};return gk({isReversed:_,orientation:R.orientation,thumbRects:[q],thumbPercents:[ne]})},[_,Xe,ne,j]),vr=S(()=>{j.current.focusThumbOnChange&&setTimeout(()=>{var q;return(q=be.current)==null?void 0:q.focus()})},[j]);Pt(()=>{const R=j.current;vr(),R.eventSource==="keyboard"&&(A==null||A(R.value))},[X,A]);function pr(R){const q=_e(R);q!=null&&q!==j.current.value&&ee(q)}zk(we,{onPanSessionStart(R){const q=j.current;q.isInteractive&&(ae(!0),vr(),pr(R),C==null||C(q.value))},onPanSessionEnd(){const R=j.current;R.isInteractive&&(ae(!1),A==null||A(R.value))},onPan(R){j.current.isInteractive&&pr(R)}});const qn=S((R={},q=null)=>({...R,...T,ref:he(q,we),tabIndex:-1,"aria-disabled":Po(u),"data-focused":Ut(fe),style:{...R.style,...fr}}),[T,u,fe,fr]),Kn=S((R={},q=null)=>({...R,ref:he(q,xe),id:Z,"data-disabled":Ut(u),style:{...R.style,...mr}}),[u,Z,mr]),Xn=S((R={},q=null)=>({...R,ref:q,style:{...R.style,...Nt}}),[Nt]),F=S((R={},q=null)=>({...R,ref:he(q,be),role:"slider",tabIndex:$?0:void 0,id:Y,"data-active":Ut(te),"aria-valuetext":Fe,"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":X,"aria-orientation":c,"aria-disabled":Po(u),"aria-readonly":Po(m),"aria-label":x,"aria-labelledby":x?void 0:w,style:{...R.style,...ur(0)},onKeyDown:Io(R.onKeyDown,$e),onFocus:Io(R.onFocus,()=>Q(!0)),onBlur:Io(R.onBlur,()=>Q(!1))}),[$,Y,te,Fe,r,n,X,c,u,m,x,w,ur,$e]),re=S((R,q=null)=>{const St=!(R.value<r||R.value>n),Ve=X>=R.value,dt=Wi(R.value,r,n),Yn={position:"absolute",pointerEvents:"none",...Vk({orientation:c,vertical:{bottom:_?`${100-dt}%`:`${dt}%`},horizontal:{left:_?`${100-dt}%`:`${dt}%`}})};return{...R,ref:q,role:"presentation","aria-hidden":!0,"data-disabled":Ut(u),"data-invalid":Ut(!St),"data-highlighted":Ut(Ve),style:{...R.style,...Yn}}},[u,_,n,r,c,X]),ge=S((R={},q=null)=>({...R,ref:q,type:"hidden",value:X,name:I}),[I,X]);return{state:{value:X,isFocused:fe,isDragging:te},actions:H,getRootProps:qn,getTrackProps:Kn,getInnerTrackProps:Xn,getThumbProps:F,getMarkerProps:re,getInputProps:ge}}function Vk(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function Hk(e,t){return t<e?e:e+(t-e)/2}var[jk,Hn]=ce({name:"SliderContext",hookName:"useSliderContext",providerName:"<Slider />"}),[Uk,jn]=ce({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:"<Slider />"}),Gk=P((e,t)=>{var r;const n={...e,orientation:(r=e==null?void 0:e.orientation)!=null?r:"horizontal"},o=Ne("Slider",n),a=ue(n),{direction:i}=yt();a.direction=i;const{getInputProps:s,getRootProps:l,...c}=Wk(a),d=l(),u=s({},t);return f(jk,{value:c,children:f(Uk,{value:o,children:f(k.div,{...d,className:jr("chakra-slider",n.className),__css:o.container,children:[n.children,f("input",{...u})]})})})});Gk.displayName="Slider";var qk=P((e,t)=>{const{getThumbProps:r}=Hn(),n=jn(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__thumb",e.className),__css:n.thumb})});qk.displayName="SliderThumb";var Kk=P((e,t)=>{const{getTrackProps:r}=Hn(),n=jn(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__track",e.className),__css:n.track})});Kk.displayName="SliderTrack";var Xk=P((e,t)=>{const{getInnerTrackProps:r}=Hn(),n=jn(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__filled-track",e.className),__css:n.filledTrack})});Xk.displayName="SliderFilledTrack";var Yk=P((e,t)=>{const{getMarkerProps:r}=Hn(),n=jn(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__marker",e.className),__css:n.mark})});Yk.displayName="SliderMark";var[Zk,Oa]=ce({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Stat />" `}),Qk=P(function(t,r){const n=Ne("Stat",t),o={position:"relative",flex:"1 1 0%",...n.container},{className:a,children:i,...s}=ue(t);return f(Zk,{value:n,children:f(k.div,{ref:r,...s,className:z("chakra-stat",a),__css:o,children:f("dl",{children:i})})})});Qk.displayName="Stat";var Jk=P(function(t,r){const n=Oa();return f(k.dd,{ref:r,...t,className:z("chakra-stat__help-text",t.className),__css:n.helpText})});Jk.displayName="StatHelpText";var ew=P(function(t,r){const n=Oa();return f(k.dt,{ref:r,...t,className:z("chakra-stat__label",t.className),__css:n.label})});ew.displayName="StatLabel";var tw=P(function(t,r){const n=Oa();return f(k.dd,{ref:r,...t,className:z("chakra-stat__number",t.className),__css:{...n.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});tw.displayName="StatNumber";var rw=P(function(t,r){const n=Ne("Switch",t),{spacing:o="0.5rem",children:a,...i}=ue(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:c,getRootProps:d,getLabelProps:u}=ml(i),m=J(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),v=J(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),h=J(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return f(k.label,{...d(),className:z("chakra-switch",t.className),__css:m,children:[f("input",{className:"chakra-switch__input",...l({},r)}),f(k.span,{...c(),className:"chakra-switch__track",__css:v,children:f(k.span,{__css:n.thumb,className:"chakra-switch__thumb",...s()})}),a&&f(k.span,{className:"chakra-switch__label",...u(),__css:h,children:a})]})});rw.displayName="Switch";var[nw,Ur]=ce({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),ow=P((e,t)=>{const r=Ne("Table",e),{className:n,layout:o,...a}=ue(e);return f(nw,{value:r,children:f(k.table,{ref:t,__css:{tableLayout:o,...r.table},className:z("chakra-table",n),...a})})});ow.displayName="Table";var t_=P((e,t)=>{const r=Ur();return f(k.thead,{...e,ref:t,__css:r.thead})}),r_=P((e,t)=>{const r=Ur();return f(k.tr,{...e,ref:t,__css:r.tr})}),n_=P((e,t)=>{var r;const{overflow:n,overflowX:o,className:a,...i}=e;return f(k.div,{ref:t,className:z("chakra-table__container",a),...i,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(r=n??o)!=null?r:"auto",overflowY:"hidden",maxWidth:"100%"}})}),o_=P((e,t)=>{const r=Ur();return f(k.tbody,{...e,ref:t,__css:r.tbody})}),a_=P(({isNumeric:e,...t},r)=>{const n=Ur();return f(k.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),i_=P(({isNumeric:e,...t},r)=>{const n=Ur();return f(k.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),[aw,iw,sw,lw]=ya();function cw(e){var t;const{defaultIndex:r,onChange:n,index:o,isManual:a,isLazy:i,lazyBehavior:s="unmount",orientation:l="horizontal",direction:c="ltr",...d}=e,[u,m]=B(r??0),[v,h]=Bn({defaultValue:r??0,value:o,onChange:n});K(()=>{o!=null&&m(o)},[o]);const p=sw(),b=Ke();return{id:`tabs-${(t=e.id)!=null?t:b}`,selectedIndex:v,focusedIndex:u,setSelectedIndex:h,setFocusedIndex:m,isManual:a,isLazy:i,lazyBehavior:s,orientation:l,descendants:p,direction:c,htmlProps:d}}var[dw,Un]=ce({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function uw(e){const{focusedIndex:t,orientation:r,direction:n}=Un(),o=iw(),a=S(i=>{const s=()=>{var x;const w=o.nextEnabled(t);w&&((x=w.node)==null||x.focus())},l=()=>{var x;const w=o.prevEnabled(t);w&&((x=w.node)==null||x.focus())},c=()=>{var x;const w=o.firstEnabled();w&&((x=w.node)==null||x.focus())},d=()=>{var x;const w=o.lastEnabled();w&&((x=w.node)==null||x.focus())},u=r==="horizontal",m=r==="vertical",v=i.key,h=n==="ltr"?"ArrowLeft":"ArrowRight",p=n==="ltr"?"ArrowRight":"ArrowLeft",y={[h]:()=>u&&l(),[p]:()=>u&&s(),ArrowDown:()=>m&&s(),ArrowUp:()=>m&&l(),Home:c,End:d}[v];y&&(i.preventDefault(),y(i))},[o,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:L(e.onKeyDown,a)}}function fw(e){const{isDisabled:t=!1,isFocusable:r=!1,...n}=e,{setSelectedIndex:o,isManual:a,id:i,setFocusedIndex:s,selectedIndex:l}=Un(),{index:c,register:d}=lw({disabled:t&&!r}),u=c===l,m=()=>{o(c)},v=()=>{s(c),!a&&!(t&&r)&&o(c)},h=oc({...n,ref:he(d,e.ref),isDisabled:t,isFocusable:r,onClick:L(e.onClick,m)}),p="button";return{...h,id:$c(i,c),role:"tab",tabIndex:u?0:-1,type:p,"aria-selected":u,"aria-controls":Tc(i,c),onFocus:t?void 0:L(e.onFocus,v)}}var[mw,vw]=ce({});function pw(e){const t=Un(),{id:r,selectedIndex:n}=t,a=ka(e.children).map((i,s)=>Me(mw,{key:s,value:{isSelected:s===n,id:Tc(r,s),tabId:$c(r,s),selectedIndex:n}},i));return{...e,children:a}}function hw(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:o}=Un(),{isSelected:a,id:i,tabId:s}=vw(),l=V(!1);a&&(l.current=!0);const c=lc({wasSelected:l.current,isSelected:a,enabled:n,mode:o});return{tabIndex:0,...r,children:c?t:null,role:"tabpanel","aria-labelledby":s,hidden:!a,id:i}}function $c(e,t){return`${e}--tab-${t}`}function Tc(e,t){return`${e}--tabpanel-${t}`}var[bw,Gn]=ce({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),gw=P(function(t,r){const n=Ne("Tabs",t),{children:o,className:a,...i}=ue(t),{htmlProps:s,descendants:l,...c}=cw(i),d=J(()=>c,[c]),{isFitted:u,...m}=s;return f(aw,{value:l,children:f(dw,{value:d,children:f(bw,{value:n,children:f(k.div,{className:z("chakra-tabs",a),ref:r,...m,__css:n.root,children:o})})})})});gw.displayName="Tabs";var yw=P(function(t,r){const n=uw({...t,ref:r}),a={display:"flex",...Gn().tablist};return f(k.div,{...n,className:z("chakra-tabs__tablist",t.className),__css:a})});yw.displayName="TabList";var Sw=P(function(t,r){const n=hw({...t,ref:r}),o=Gn();return f(k.div,{outline:"0",...n,className:z("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});Sw.displayName="TabPanel";var xw=P(function(t,r){const n=pw(t),o=Gn();return f(k.div,{...n,width:"100%",ref:r,className:z("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});xw.displayName="TabPanels";var kw=P(function(t,r){const n=Gn(),o=fw({...t,ref:r}),a={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return f(k.button,{...o,className:z("chakra-tabs__tab",t.className),__css:a})});kw.displayName="Tab";var ww={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},ra=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},yn=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function _w(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:a,closeOnPointerDown:i=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:d,id:u,isOpen:m,defaultIsOpen:v,arrowSize:h=10,arrowShadowColor:p,arrowPadding:b,modifiers:y,isDisabled:x,gutter:w,offset:I,direction:N,...T}=e,{isOpen:C,onOpen:A,onClose:M}=ic({isOpen:m,defaultIsOpen:v,onOpen:l,onClose:c}),{referenceRef:_,getPopperProps:E,getArrowInnerProps:ee,getArrowProps:te}=ac({enabled:C,placement:d,arrowPadding:b,modifiers:y,gutter:w,offset:I,direction:N}),ae=Ke(),Q=`tooltip-${u??ae}`,$=V(null),D=V(),ie=S(()=>{D.current&&(clearTimeout(D.current),D.current=void 0)},[]),X=V(),Ie=S(()=>{X.current&&(clearTimeout(X.current),X.current=void 0)},[]),Ce=S(()=>{Ie(),M()},[M,Ie]),ne=Cw($,Ce),G=S(()=>{if(!x&&!D.current){C&&ne();const Z=yn($);D.current=Z.setTimeout(A,t)}},[ne,x,C,A,t]),j=S(()=>{ie();const Z=yn($);X.current=Z.setTimeout(Ce,r)},[r,Ce,ie]),xe=S(()=>{C&&n&&j()},[n,j,C]),be=S(()=>{C&&i&&j()},[i,j,C]),we=S(Z=>{C&&Z.key==="Escape"&&j()},[C,j]);Ar(()=>ra($),"keydown",s?we:void 0),Ar(()=>{const Z=$.current;if(!Z)return null;const _e=Ll(Z);return _e.localName==="body"?yn($):_e},"scroll",()=>{C&&a&&Ce()},{passive:!0,capture:!0}),K(()=>{x&&(ie(),C&&M())},[x,C,M,ie]),K(()=>()=>{ie(),Ie()},[ie,Ie]),Ar(()=>$.current,"pointerleave",j);const De=S((Z={},_e=null)=>({...Z,ref:he($,_e,_),onPointerEnter:L(Z.onPointerEnter,H=>{H.pointerType!=="touch"&&G()}),onClick:L(Z.onClick,xe),onPointerDown:L(Z.onPointerDown,be),onFocus:L(Z.onFocus,G),onBlur:L(Z.onBlur,j),"aria-describedby":C?Q:void 0}),[G,j,be,C,Q,xe,_]),Re=S((Z={},_e=null)=>E({...Z,style:{...Z.style,[Ae.arrowSize.var]:h?`${h}px`:void 0,[Ae.arrowShadowColor.var]:p}},_e),[E,h,p]),Y=S((Z={},_e=null)=>{const me={...Z.style,position:"relative",transformOrigin:Ae.transformOrigin.varRef};return{ref:_e,...T,...Z,id:Q,role:"tooltip",style:me}},[T,Q]);return{isOpen:C,show:G,hide:j,getTriggerProps:De,getTooltipProps:Y,getTooltipPositionerProps:Re,getArrowProps:te,getArrowInnerProps:ee}}var No="chakra-ui:close-tooltip";function Cw(e,t){return K(()=>{const r=ra(e);return r.addEventListener(No,t),()=>r.removeEventListener(No,t)},[t,e]),()=>{const r=ra(e),n=yn(e);r.dispatchEvent(new n.CustomEvent(No))}}function Pw(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Iw(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var $w=k(st.div),Tw=P((e,t)=>{var r,n;const o=je("Tooltip",e),a=ue(e),i=yt(),{children:s,label:l,shouldWrapChildren:c,"aria-label":d,hasArrow:u,bg:m,portalProps:v,background:h,backgroundColor:p,bgColor:b,motionProps:y,...x}=a,w=(n=(r=h??p)!=null?r:m)!=null?n:b;if(w){o.bg=w;const E=Ru(i,"colors",w);o[Ae.arrowBg.var]=E}const I=_w({...x,direction:i.direction}),N=typeof s=="string"||c;let T;if(N)T=f(k.span,{display:"inline-block",tabIndex:0,...I.getTriggerProps(),children:s});else{const E=cr.only(s);T=it(E,I.getTriggerProps(E.props,E.ref))}const C=!!d,A=I.getTooltipProps({},t),M=C?Pw(A,["role","id"]):A,_=Iw(A,["role","id"]);return l?f(Bt,{children:[T,f(Tt,{children:I.isOpen&&f(dr,{...v,children:f(k.div,{...I.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:f($w,{variants:ww,initial:"exit",animate:"enter",exit:"exit",...y,...M,__css:o,children:[l,C&&f(k.span,{srOnly:!0,..._,children:d}),u&&f(k.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:f(k.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):f(Bt,{children:s})});Tw.displayName="Tooltip";var s_=ze({displayName:"ViewOffIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),f("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"})]})}),l_=ze({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),c_=ze({displayName:"ViewIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),f("circle",{cx:"12",cy:"12",r:"2"})]})}),d_=ze({displayName:"RepeatIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),f("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})}),u_=ze({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),f_=ze({displayName:"EditIcon",path:f("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[f("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),f("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),m_=ze({displayName:"ExternalLinkIcon",path:f("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[f("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),f("path",{d:"M15 3h6v6"}),f("path",{d:"M10 14L21 3"})]})}),v_=ze({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),p_=ze({displayName:"LinkIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),f("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"})]})}),h_=ze({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),b_=ze({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),g_=ze({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),y_=ze({displayName:"DeleteIcon",path:f("g",{fill:"currentColor",children:f("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),S_=ze({viewBox:"0 0 14 14",path:f("g",{fill:"currentColor",children:f("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),x_=ze({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),k_=ze({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});export{x_ as $,el as A,cl as B,qw as C,G1 as D,eg as E,q1 as F,W1 as G,B1 as H,lt as I,lg as J,yg as K,ow as L,t_ as M,r_ as N,i_ as O,o_ as P,a_ as Q,w1 as R,pa as S,M1 as T,Kl as U,R1 as V,l_ as W,u_ as X,Yl as Y,Eg as Z,g_ as _,je as a,yt as a$,Tg as a0,Xg as a1,ql as a2,Hg as a3,Da as a4,Xl as a5,qg as a6,pk as a7,jg as a8,Kg as a9,Xk as aA,qk as aB,Js as aC,v_ as aD,S_ as aE,h_ as aF,I1 as aG,Jw as aH,Qw as aI,m_ as aJ,Gx as aK,Kx as aL,qx as aM,Yx as aN,Xx as aO,Y1 as aP,zg as aQ,oy as aR,d_ as aS,z1 as aT,Jl as aU,p_ as aV,tl as aW,HS as aX,WS as aY,BS as aZ,DS as a_,s_ as aa,c_ as ab,k_ as ac,y_ as ad,Yw as ae,Ax as af,Sc as ag,Nx as ah,Mx as ai,Fx as aj,Tx as ak,Ra as al,Xw as am,n_ as an,b_ as ao,j1 as ap,f_ as aq,al as ar,lk as as,mk as at,ok as au,hd as av,e_ as aw,$x as ax,Gk as ay,Kk as az,tc as b,Zw as b0,_g as c,V1 as d,Uw as e,L1 as f,F1 as g,ga as h,Tw as i,U1 as j,rw as k,Qk as l,ew as m,tw as n,Jk as o,T1 as p,yw as q,kw as r,xw as s,Sw as t,Gw as u,gw as v,rl as w,O1 as x,Sg as y,cg as z};
