quantum-component-library 1.4.45-qa.2 → 1.4.45-qa.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/components.cjs +1 -1
  2. package/dist/components.js +13 -13
  3. package/dist/{dnd-core-vendor-DqnJnuNT.cjs → dnd-core-vendor-B8SfRHAC.cjs} +1 -1
  4. package/dist/{dnd-core-vendor-D0LYcGmm.js → dnd-core-vendor-B9bDJoIO.js} +2 -2
  5. package/dist/framer-motion-vendor-BgJ2HqtS.cjs +1 -0
  6. package/dist/framer-motion-vendor-Cn84b4iY.js +3285 -0
  7. package/dist/{graphql-DiUes2Np.js → graphql-DZp5ePcc.js} +6 -6
  8. package/dist/graphql-vendor-2jHffeBc.cjs +19 -0
  9. package/dist/graphql-vendor-DZM4vSNi.js +1285 -0
  10. package/dist/hooks.cjs +1 -1
  11. package/dist/hooks.js +11 -12
  12. package/dist/providers.cjs +1 -1
  13. package/dist/providers.js +5 -5
  14. package/dist/{react-dnd-vendor-DyqEbdFL.cjs → react-dnd-vendor-CMnbNCdx.cjs} +1 -1
  15. package/dist/{react-dnd-vendor-DYGSQgr6.js → react-dnd-vendor-CrTWIfyP.js} +2 -2
  16. package/dist/{react-select-vendor-B1OQPh8Y.js → react-select-vendor-Dt2A4G_u.js} +2 -2
  17. package/dist/{react-select-vendor-Dcon15oq.cjs → react-select-vendor-DwRVrD2f.cjs} +1 -1
  18. package/dist/services.cjs +1 -1
  19. package/dist/services.js +1 -1
  20. package/dist/ui-vendor-BAkBLewK.cjs +294 -0
  21. package/dist/{ui-vendor-C8K-cPdW.js → ui-vendor-DLN2xOTj.js} +34 -33
  22. package/dist/utils.cjs +1 -1
  23. package/dist/utils.js +14 -14
  24. package/dist/vendor-Br-qBXqd.cjs +90 -0
  25. package/dist/vendor-BvxNWBst.js +11937 -0
  26. package/package.json +1 -1
  27. package/dist/graphql-vendor-CPuTFvxJ.cjs +0 -14
  28. package/dist/graphql-vendor-Dj6F1QIU.js +0 -669
  29. package/dist/ui-vendor-D_H9hnvk.cjs +0 -294
  30. package/dist/vendor-DIPzo8rL.js +0 -15069
  31. package/dist/vendor-Dmlu4NZO.cjs +0 -90
@@ -1,294 +0,0 @@
1
- "use strict";const Qe=require("./lodash-vendor-Dkc3o8vE.cjs"),l=require("react"),d=require("./vendor-Dmlu4NZO.cjs"),Zo=require("react-dom");function Da(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Oa=Da(l);function La(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function Or(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Wa(){return!!globalThis?.document}function Qo(e){return e.parentElement&&Qo(e.parentElement)?!0:e.hidden}function Va(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function Ha(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function qa(e){return Jo(e)?.defaultView??window}function Jo(e){return Or(e)?e.ownerDocument:document}function Ga(e){return e.view??window}function Ua(e){return Jo(e).activeElement}function Ka(e){const t=Ga(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function es(e){return!!e.touches}function Xa(e){return es(e)&&e.touches.length>1}function Ya(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function Za(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function ts(e,t="page"){return es(e)?Ya(e,t):Za(e,t)}function Qa(e){return t=>{const r=Ka(t);(!r||r&&t.button===0)&&e(t)}}function Ja(e,t=!1){function r(o){e(o,{point:ts(o)})}return t?Qa(r):r}function Cr(e,t,r,n){return La(e,t,Ja(r,t==="pointerdown"),n)}function ei(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}const V=e=>e?"":void 0,it=e=>e?!0:void 0;function ti(e){return Array.isArray(e)}function _e(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ti(e)}function ri(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function ni(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Pn(e){if(e==null)return e;const{unitless:t}=ni(e);return t||typeof e=="number"?`${e}px`:e}const rs=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Hn=e=>Object.fromEntries(Object.entries(e).sort(rs));function mo(e){const t=Hn(e);return Object.assign(Object.values(t),t)}function oi(e){const t=Object.keys(Hn(e));return new Set(t)}function bo(e){if(!e)return e;e=Pn(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function Qt(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Pn(e)})`),t&&r.push("and",`(max-width: ${Pn(t)})`),r.join(" ")}function si(e){if(!e)return null;e.base=e.base??"0px";const t=mo(e),r=Object.entries(e).sort(rs).map(([s,a],i,c)=>{let[,u]=c[i+1]??[];return u=parseFloat(u)>0?bo(u):void 0,{_minW:bo(a),breakpoint:s,minW:a,maxW:u,maxWQuery:Qt(null,u),minWQuery:Qt(a),minMaxQuery:Qt(a,u)}}),n=oi(e),o=Array.from(n.values());return{keys:n,normalized:t,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(i=>n.has(i))},asObject:Hn(e),asArray:mo(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...t.map(s=>Qt(s)).slice(1)],toArrayValue(s){if(!_e(s))throw new Error("toArrayValue: value must be an object");const a=o.map(i=>s[i]??null);for(;ri(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,i,c)=>{const u=o[c];return u!=null&&i!=null&&(a[u]=i),a},{})}}}function ai(...e){return function(...r){e.forEach(n=>n?.(...r))}}function q(...e){return function(r){e.some(n=>(n?.(r),r?.defaultPrevented))}}function ns(e){return l.Children.toArray(e).filter(t=>l.isValidElement(t))}function Lr(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ii(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ie(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,i=l.createContext(a);i.displayName=t;function c(){const u=l.useContext(i);if(!u&&r){const f=new Error(s??ii(n,o));throw f.name="ContextError",Error.captureStackTrace?.(f,c),f}return u}return[i.Provider,c,i]}const L=(...e)=>e.filter(Boolean).join(" "),os=e=>e.hasAttribute("tabindex"),li=e=>os(e)&&e.tabIndex===-1;function ss(e){if(!Or(e)||Qo(e)||Ha(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]():Va(e)?!0:os(e)}function ci(e){return e?Or(e)&&ss(e)&&!li(e):!1}const di=["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]"],ui=di.join(),fi=e=>e.offsetWidth>0&&e.offsetHeight>0;function pi(e){const t=Array.from(e.querySelectorAll(ui));return t.unshift(e),t.filter(r=>ss(r)&&fi(r))}function mi(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}const bi=e=>{const t=new WeakMap;return(n,o,s,a)=>{if(typeof n>"u")return e(n,o,s);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(o))return i.get(o);const c=e(n,o,s,a);return i.set(o,c),c}},as=bi(mi),hi=e=>e.default||e;function gi(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function qn(e,t){let r=gi(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function Tn(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 ho(e,t,r){return(e-t)*100/(r-t)}function xi(e,t,r){return(r-t)*e+t}function yi(e,t,r){const n=Math.round((e-t)/r)*r+t,o=Tn(r);return qn(n,o)}function In(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 Wr(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function is(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}const ls=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Si(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):_e(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function vi(e,t=ls){const r={};return e.forEach((n,o)=>{const s=t[o];n!=null&&(r[s]=n)}),r}const ki=e=>typeof e=="function";function Te(e,...t){return ki(e)?e(...t):e}function wi(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 Ci(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function cs(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Or(e)&&wi(e)?e:cs(Ci(e))}function Ei(e,t){const r={},n={};for(const[o,s]of Object.entries(e))t.includes(o)?r[o]=s:n[o]=s;return[r,n]}function Ri(e,...t){const r=Object.getOwnPropertyDescriptors(e),n=Object.keys(r),o=a=>{const i={};for(let c=0;c<a.length;c++){const u=a[c];r[u]&&(Object.defineProperty(i,u,r[u]),delete r[u])}return i},s=a=>o(Array.isArray(a)?a:n.filter(a));return t.map(s).concat(o(n))}function go(e,t,r={}){const{stop:n,getKey:o}=r;function s(a,i=[]){if(_e(a)||Array.isArray(a)){const c={};for(const[u,f]of Object.entries(a)){const m=o?.(u)??u,b=[...i,m];if(n?.(a,b))return t(a,i);c[m]=s(f,b)}return c}return t(a,i)}return s(e)}function de(e,t=[]){const r=l.useRef(e);return l.useEffect(()=>{r.current=e}),l.useCallback((...n)=>r.current?.(...n),t)}function or(e,t,r,n){const o=de(r);return l.useEffect(()=>{const s=typeof e=="function"?e():e??document;if(!(!r||!s))return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{(typeof e=="function"?e():e??document)?.removeEventListener(t,o,n)}}function $i(e){const{isOpen:t,ref:r}=e,[n,o]=l.useState(t),[s,a]=l.useState(!1);return l.useEffect(()=>{s||(o(t),a(!0))},[t,s,n]),or(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){const c=qa(r.current),u=new c.CustomEvent("animationend",{bubbles:!0});r.current?.dispatchEvent(u)}}}function _i(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=(b,h)=>b!==h}=e,s=de(n),a=de(o),[i,c]=l.useState(r),u=t!==void 0,f=u?t:i,m=de(b=>{const g=typeof b=="function"?b(f):b;a(f,g)&&(u||c(g),s(g))},[u,s,f,a]);return[f,m]}function Pi(e={}){const{onChange:t,precision:r,defaultValue:n,value:o,step:s=1,min:a=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,u=de(t),[f,m]=l.useState(()=>n==null?"":on(n,s,r)??""),b=typeof o<"u",h=b?o:f,g=ds(ft(h),s),y=r??g,x=l.useCallback(S=>{S!==h&&(b||m(S.toString()),u?.(S.toString(),ft(S)))},[u,b,h]),$=l.useCallback(S=>{let M=S;return c&&(M=In(M,a,i)),qn(M,y)},[y,c,i,a]),C=l.useCallback((S=s)=>{let M;h===""?M=ft(S):M=ft(h)+S,M=$(M),x(M)},[$,s,x,h]),w=l.useCallback((S=s)=>{let M;h===""?M=ft(-S):M=ft(h)-S,M=$(M),x(M)},[$,s,x,h]),A=l.useCallback(()=>{let S;n==null?S="":S=on(n,s,r)??a,x(S)},[n,r,s,x,a]),U=l.useCallback(S=>{const M=on(S,s,y)??a;x(M)},[y,s,x,a]),N=ft(h);return{isOutOfRange:N>i||N<a,isAtMax:N===i,isAtMin:N===a,precision:y,value:h,valueAsNumber:N,update:x,reset:A,increment:C,decrement:w,clamp:$,cast:U,setValue:m}}function ft(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function ds(e,t){return Math.max(Tn(t),Tn(e))}function on(e,t,r){const n=ft(e);if(Number.isNaN(n))return;const o=ds(n,t);return qn(n,r??o)}function Gn(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,s=de(r),a=de(t),[i,c]=l.useState(e.defaultIsOpen||!1),u=n!==void 0?n:i,f=n!==void 0,m=l.useId(),b=o??`disclosure-${m}`,h=l.useCallback(()=>{f||c(!1),a?.()},[f,a]),g=l.useCallback(()=>{f||c(!0),s?.()},[f,s]),y=l.useCallback(()=>{u?h():g()},[u,g,h]);function x(C={}){return{...C,"aria-expanded":u,"aria-controls":b,onClick(w){C.onClick?.(w),y()}}}function $(C={}){return{...C,hidden:!u,id:b}}return{isOpen:u,onOpen:g,onClose:h,onToggle:y,isControlled:f,getButtonProps:x,getDisclosureProps:$}}const mt=globalThis?.document?l.useLayoutEffect:l.useEffect,bt=(e,t)=>{const r=l.useRef(!1),n=l.useRef(!1);l.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),l.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Ti(e){const t=e.current;if(!t)return!1;const r=Ua(t);return!r||t.contains(r)?!1:!!ci(r)}function Ii(e,t){const{visible:r,focusRef:n}=t,o=!r;bt(()=>{if(!o||Ti(e))return;const s=n?.current||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[o,e,n])}function ji(e,t){const r=l.useId();return l.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function zi(e,...t){const r=ji(e);return l.useMemo(()=>t.map(n=>`${n}-${r}`),[r,t])}function Mi(e,t){const r=de(e);l.useEffect(()=>{let n=null;const o=()=>r();return t!==null&&(n=window.setInterval(o,t)),()=>{n&&window.clearInterval(n)}},[t,r])}function Ai(e){const t=l.useRef(null);return t.current=e,t}function Ni(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 ke(...e){return t=>{e.forEach(r=>{Ni(r,t)})}}function Bi(...e){return l.useMemo(()=>ke(...e),e)}function Fi(e){const{ref:t,handler:r,enabled:n=!0}=e,o=de(r),a=l.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;l.useEffect(()=>{if(!n)return;const i=m=>{sn(m,t)&&(a.isPointerDown=!0)},c=m=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&sn(m,t)&&(a.isPointerDown=!1,o(m))},u=m=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&sn(m,t)&&(a.isPointerDown=!1,o(m))},f=us(t.current);return f.addEventListener("mousedown",i,!0),f.addEventListener("mouseup",c,!0),f.addEventListener("touchstart",i,!0),f.addEventListener("touchend",u,!0),()=>{f.removeEventListener("mousedown",i,!0),f.removeEventListener("mouseup",c,!0),f.removeEventListener("touchstart",i,!0),f.removeEventListener("touchend",u,!0)}},[r,t,o,a,n])}function sn(e,t){const r=e.composedPath?.()[0]??e.target;return r&&!us(r).contains(r)?!1:!t.current?.contains(r)}function us(e){return e?.ownerDocument??document}function Di(e,t){const r=de(e);l.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}var Oi=Object.defineProperty,Li=(e,t,r)=>t in e?Oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,We=(e,t,r)=>(Li(e,typeof t!="symbol"?t+"":t,r),r);class Wi{constructor(t,r,n){if(We(this,"history",[]),We(this,"startEvent",null),We(this,"lastEvent",null),We(this,"lastEventInfo",null),We(this,"handlers",{}),We(this,"removeListeners",()=>{}),We(this,"threshold",3),We(this,"win"),We(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const i=an(this.lastEventInfo,this.history),c=this.startEvent!==null,u=Gi(i.offset,{x:0,y:0})>=this.threshold;if(!c&&!u)return;const{timestamp:f}=d.getFrameData();this.history.push({...i.point,timestamp:f});const{onStart:m,onMove:b}=this.handlers;c||(m?.(this.lastEvent,i),this.startEvent=this.lastEvent),b?.(this.lastEvent,i)}),We(this,"onPointerMove",(i,c)=>{this.lastEvent=i,this.lastEventInfo=c,d.sync.update(this.updatePoint,!0)}),We(this,"onPointerUp",(i,c)=>{const u=an(c,this.history),{onEnd:f,onSessionEnd:m}=this.handlers;m?.(i,u),this.end(),!(!f||!this.startEvent)&&f?.(i,u)}),this.win=t.view??window,Xa(t))return;this.handlers=r,n&&(this.threshold=n),t.stopPropagation(),t.preventDefault();const o={point:ts(t)},{timestamp:s}=d.getFrameData();this.history=[{...o.point,timestamp:s}];const{onSessionStart:a}=r;a?.(t,an(o,this.history)),this.removeListeners=qi(Cr(this.win,"pointermove",this.onPointerMove),Cr(this.win,"pointerup",this.onPointerUp),Cr(this.win,"pointercancel",this.onPointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners?.(),d.cancelSync.update(this.updatePoint)}}function xo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function an(e,t){return{point:e.point,delta:xo(e.point,t[t.length-1]),offset:xo(e.point,t[0]),velocity:Hi(t,.1)}}const Vi=e=>e*1e3;function Hi(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>Vi(t)));)r--;if(!n)return{x:0,y:0};const s=(o.timestamp-n.timestamp)/1e3;if(s===0)return{x:0,y:0};const a={x:(o.x-n.x)/s,y:(o.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function qi(...e){return t=>e.reduce((r,n)=>n(r),t)}function ln(e,t){return Math.abs(e-t)}function yo(e){return"x"in e&&"y"in e}function Gi(e,t){if(typeof e=="number"&&typeof t=="number")return ln(e,t);if(yo(e)&&yo(t)){const r=ln(e.x,t.x),n=ln(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function Ui(e,t){const{onPan:r,onPanStart:n,onPanEnd:o,onPanSessionStart:s,onPanSessionEnd:a,threshold:i}=t,c=!!(r||n||o||s||a),u=l.useRef(null),f=Ai({onSessionStart:s,onSessionEnd:a,onStart:n,onMove:r,onEnd(m,b){u.current=null,o?.(m,b)}});l.useEffect(()=>{u.current?.updateHandlers(f.current)}),l.useEffect(()=>{const m=e.current;if(!m||!c)return;function b(h){u.current=new Wi(h,f.current,i)}return Cr(m,"pointerdown",b)},[e,c,f,i]),l.useEffect(()=>()=>{u.current?.end(),u.current=null},[])}const be={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,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}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ke=e=>fs(t=>e(t,"&"),"[role=group]","[data-group]",".group"),rt=e=>fs(t=>e(t,"~ &"),"[data-peer]",".peer"),fs=(e,...t)=>t.map(e).join(", "),Vr={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-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, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=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], &[data-state=indeterminate]",_groupOpen:Ke(be.open),_groupClosed:Ke(be.closed),_groupHover:Ke(be.hover),_peerHover:rt(be.hover),_groupFocus:Ke(be.focus),_peerFocus:rt(be.focus),_groupFocusVisible:Ke(be.focusVisible),_peerFocusVisible:rt(be.focusVisible),_groupActive:Ke(be.active),_peerActive:rt(be.active),_groupDisabled:Ke(be.disabled),_peerDisabled:rt(be.disabled),_groupInvalid:Ke(be.invalid),_peerInvalid:rt(be.invalid),_groupChecked:Ke(be.checked),_peerChecked:rt(be.checked),_groupFocusWithin:Ke(be.focusWithin),_peerFocusWithin:rt(be.focusWithin),_peerPlaceholderShown:rt(be.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-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]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},ps=Object.keys(Vr),Ki=e=>/!(important)?$/.test(e),So=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Xi=(e,t)=>r=>{const n=String(t),o=Ki(n),s=So(n),a=e?`${e}.${s}`:s;let i=_e(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return i=So(i),o?`${i} !important`:i};function Un(e){const{scale:t,transform:r,compose:n}=e;return(s,a)=>{const i=Xi(t,s)(a);let c=r?.(i,a)??i;return n&&(c=n(c,a)),c}}const hr=(...e)=>t=>e.reduce((r,n)=>n(r),t);function De(e,t){return r=>{const n={property:r,scale:e};return n.transform=Un({scale:e,transform:t}),n}}const Yi=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function Zi(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:Yi(t),transform:r?Un({scale:r,compose:n}):n}}const ms=["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 Qi(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ms].join(" ")}function Ji(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ms].join(" ")}const el={"--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(" ")},tl={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 rl(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(", ")}}const nl={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},jn={"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"},ol=new Set(Object.values(jn)),zn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),sl=e=>e.trim();function al(e,t){if(e==null||zn.has(e))return e;if(!(Mn(e)||zn.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),s=o?.[1],a=o?.[2];if(!s||!a)return e;const i=s.includes("-gradient")?s:`${s}-gradient`,[c,...u]=a.split(",").map(sl).filter(Boolean);if(u?.length===0)return e;const f=c in jn?jn[c]:c;u.unshift(f);const m=u.map(b=>{if(ol.has(b))return b;const h=b.indexOf(" "),[g,y]=h!==-1?[b.substr(0,h),b.substr(h+1)]:[b],x=Mn(y)?y:y&&y.split(" "),$=`colors.${g}`,C=$ in t.__cssMap?t.__cssMap[$].varRef:g;return x?[C,...Array.isArray(x)?x:[x]].join(" "):C});return`${i}(${m.join(", ")})`}const Mn=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),il=(e,t)=>al(e,t??{});function ll(e){return/^var\(--.+\)$/.test(e)}const cl=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Xe=e=>t=>`${e}(${t})`,G={filter(e){return e!=="auto"?e:el},backdropFilter(e){return e!=="auto"?e:tl},ring(e){return rl(G.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Qi():e==="auto-gpu"?Ji():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=cl(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(ll(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:il,blur:Xe("blur"),opacity:Xe("opacity"),brightness:Xe("brightness"),contrast:Xe("contrast"),dropShadow:Xe("drop-shadow"),grayscale:Xe("grayscale"),hueRotate:e=>Xe("hue-rotate")(G.degree(e)),invert:Xe("invert"),saturate:Xe("saturate"),sepia:Xe("sepia"),bgImage(e){return e==null||Mn(e)||zn.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){const{space:t,divide:r}=nl[e]??{},n={flexDirection:e};return t&&(n[t]=1),r&&(n[r]=1),n}},p={borderWidths:De("borderWidths"),borderStyles:De("borderStyles"),colors:De("colors"),borders:De("borders"),gradients:De("gradients",G.gradient),radii:De("radii",G.px),space:De("space",hr(G.vh,G.px)),spaceT:De("space",hr(G.vh,G.px)),degreeT(e){return{property:e,transform:G.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Un({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:De("sizes",hr(G.vh,G.px)),sizesT:De("sizes",hr(G.vh,G.fraction)),shadows:De("shadows"),logical:Zi,blur:De("blur",G.blur)},Er={background:p.colors("background"),backgroundColor:p.colors("backgroundColor"),backgroundImage:p.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:G.bgClip},bgSize:p.prop("backgroundSize"),bgPosition:p.prop("backgroundPosition"),bg:p.colors("background"),bgColor:p.colors("backgroundColor"),bgPos:p.prop("backgroundPosition"),bgRepeat:p.prop("backgroundRepeat"),bgAttachment:p.prop("backgroundAttachment"),bgGradient:p.gradients("backgroundImage"),bgClip:{transform:G.bgClip}};Object.assign(Er,{bgImage:Er.backgroundImage,bgImg:Er.backgroundImage});const Y={border:p.borders("border"),borderWidth:p.borderWidths("borderWidth"),borderStyle:p.borderStyles("borderStyle"),borderColor:p.colors("borderColor"),borderRadius:p.radii("borderRadius"),borderTop:p.borders("borderTop"),borderBlockStart:p.borders("borderBlockStart"),borderTopLeftRadius:p.radii("borderTopLeftRadius"),borderStartStartRadius:p.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:p.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:p.radii("borderTopRightRadius"),borderStartEndRadius:p.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:p.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:p.borders("borderRight"),borderInlineEnd:p.borders("borderInlineEnd"),borderBottom:p.borders("borderBottom"),borderBlockEnd:p.borders("borderBlockEnd"),borderBottomLeftRadius:p.radii("borderBottomLeftRadius"),borderBottomRightRadius:p.radii("borderBottomRightRadius"),borderLeft:p.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:p.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:p.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:p.borders(["borderLeft","borderRight"]),borderInline:p.borders("borderInline"),borderY:p.borders(["borderTop","borderBottom"]),borderBlock:p.borders("borderBlock"),borderTopWidth:p.borderWidths("borderTopWidth"),borderBlockStartWidth:p.borderWidths("borderBlockStartWidth"),borderTopColor:p.colors("borderTopColor"),borderBlockStartColor:p.colors("borderBlockStartColor"),borderTopStyle:p.borderStyles("borderTopStyle"),borderBlockStartStyle:p.borderStyles("borderBlockStartStyle"),borderBottomWidth:p.borderWidths("borderBottomWidth"),borderBlockEndWidth:p.borderWidths("borderBlockEndWidth"),borderBottomColor:p.colors("borderBottomColor"),borderBlockEndColor:p.colors("borderBlockEndColor"),borderBottomStyle:p.borderStyles("borderBottomStyle"),borderBlockEndStyle:p.borderStyles("borderBlockEndStyle"),borderLeftWidth:p.borderWidths("borderLeftWidth"),borderInlineStartWidth:p.borderWidths("borderInlineStartWidth"),borderLeftColor:p.colors("borderLeftColor"),borderInlineStartColor:p.colors("borderInlineStartColor"),borderLeftStyle:p.borderStyles("borderLeftStyle"),borderInlineStartStyle:p.borderStyles("borderInlineStartStyle"),borderRightWidth:p.borderWidths("borderRightWidth"),borderInlineEndWidth:p.borderWidths("borderInlineEndWidth"),borderRightColor:p.colors("borderRightColor"),borderInlineEndColor:p.colors("borderInlineEndColor"),borderRightStyle:p.borderStyles("borderRightStyle"),borderInlineEndStyle:p.borderStyles("borderInlineEndStyle"),borderTopRadius:p.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:p.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:p.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:p.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Y,{rounded:Y.borderRadius,roundedTop:Y.borderTopRadius,roundedTopLeft:Y.borderTopLeftRadius,roundedTopRight:Y.borderTopRightRadius,roundedTopStart:Y.borderStartStartRadius,roundedTopEnd:Y.borderStartEndRadius,roundedBottom:Y.borderBottomRadius,roundedBottomLeft:Y.borderBottomLeftRadius,roundedBottomRight:Y.borderBottomRightRadius,roundedBottomStart:Y.borderEndStartRadius,roundedBottomEnd:Y.borderEndEndRadius,roundedLeft:Y.borderLeftRadius,roundedRight:Y.borderRightRadius,roundedStart:Y.borderInlineStartRadius,roundedEnd:Y.borderInlineEndRadius,borderStart:Y.borderInlineStart,borderEnd:Y.borderInlineEnd,borderTopStartRadius:Y.borderStartStartRadius,borderTopEndRadius:Y.borderStartEndRadius,borderBottomStartRadius:Y.borderEndStartRadius,borderBottomEndRadius:Y.borderEndEndRadius,borderStartRadius:Y.borderInlineStartRadius,borderEndRadius:Y.borderInlineEndRadius,borderStartWidth:Y.borderInlineStartWidth,borderEndWidth:Y.borderInlineEndWidth,borderStartColor:Y.borderInlineStartColor,borderEndColor:Y.borderInlineEndColor,borderStartStyle:Y.borderInlineStartStyle,borderEndStyle:Y.borderInlineEndStyle});const dl={color:p.colors("color"),textColor:p.colors("color"),fill:p.colors("fill"),stroke:p.colors("stroke"),accentColor:p.colors("accentColor"),textFillColor:p.colors("textFillColor")},Nr={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:G.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:p.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:p.space("gap"),rowGap:p.space("rowGap"),columnGap:p.space("columnGap")};Object.assign(Nr,{flexDir:Nr.flexDirection});const Oe={width:p.sizesT("width"),inlineSize:p.sizesT("inlineSize"),height:p.sizes("height"),blockSize:p.sizes("blockSize"),boxSize:p.sizes(["width","height"]),minWidth:p.sizes("minWidth"),minInlineSize:p.sizes("minInlineSize"),minHeight:p.sizes("minHeight"),minBlockSize:p.sizes("minBlockSize"),maxWidth:p.sizes("maxWidth"),maxInlineSize:p.sizes("maxInlineSize"),maxHeight:p.sizes("maxHeight"),maxBlockSize:p.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (min-width: ${t.__breakpoints?.get(e)?.minW??e})`]:{display:"none"}})},hideBelow:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (max-width: ${t.__breakpoints?.get(e)?._minW??e})`]:{display:"none"}})},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:p.propT("float",G.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Oe,{w:Oe.width,h:Oe.height,minW:Oe.minWidth,maxW:Oe.maxWidth,minH:Oe.minHeight,maxH:Oe.maxHeight,overscroll:Oe.overscrollBehavior,overscrollX:Oe.overscrollBehaviorX,overscrollY:Oe.overscrollBehaviorY});const ul={filter:{transform:G.filter},blur:p.blur("--chakra-blur"),brightness:p.propT("--chakra-brightness",G.brightness),contrast:p.propT("--chakra-contrast",G.contrast),hueRotate:p.propT("--chakra-hue-rotate",G.hueRotate),invert:p.propT("--chakra-invert",G.invert),saturate:p.propT("--chakra-saturate",G.saturate),dropShadow:p.propT("--chakra-drop-shadow",G.dropShadow),backdropFilter:{transform:G.backdropFilter},backdropBlur:p.blur("--chakra-backdrop-blur"),backdropBrightness:p.propT("--chakra-backdrop-brightness",G.brightness),backdropContrast:p.propT("--chakra-backdrop-contrast",G.contrast),backdropHueRotate:p.propT("--chakra-backdrop-hue-rotate",G.hueRotate),backdropInvert:p.propT("--chakra-backdrop-invert",G.invert),backdropSaturate:p.propT("--chakra-backdrop-saturate",G.saturate)},fl={ring:{transform:G.ring},ringColor:p.colors("--chakra-ring-color"),ringOffset:p.prop("--chakra-ring-offset-width"),ringOffsetColor:p.colors("--chakra-ring-offset-color"),ringInset:p.prop("--chakra-ring-inset")},pl={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:G.outline},outlineOffset:!0,outlineColor:p.colors("outlineColor")},bs={gridGap:p.space("gridGap"),gridColumnGap:p.space("gridColumnGap"),gridRowGap:p.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};function ml(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}const bl=e=>{const t=new WeakMap;return(n,o,s,a)=>{if(typeof n>"u")return e(n,o,s);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(o))return i.get(o);const c=e(n,o,s,a);return i.set(o,c),c}},hl=bl(ml),gl={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},xl={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},cn=(e,t,r)=>{const n={},o=hl(e,t,{});for(const s in o)s in r&&r[s]!=null||(n[s]=o[s]);return n},yl={srOnly:{transform(e){return e===!0?gl:e==="focusable"?xl:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>cn(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>cn(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>cn(t,e,r)}},sr={position:!0,pos:p.prop("position"),zIndex:p.prop("zIndex","zIndices"),inset:p.spaceT("inset"),insetX:p.spaceT(["left","right"]),insetInline:p.spaceT("insetInline"),insetY:p.spaceT(["top","bottom"]),insetBlock:p.spaceT("insetBlock"),top:p.spaceT("top"),insetBlockStart:p.spaceT("insetBlockStart"),bottom:p.spaceT("bottom"),insetBlockEnd:p.spaceT("insetBlockEnd"),left:p.spaceT("left"),insetInlineStart:p.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:p.spaceT("right"),insetInlineEnd:p.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(sr,{insetStart:sr.insetInlineStart,insetEnd:sr.insetInlineEnd});const An={boxShadow:p.shadows("boxShadow"),mixBlendMode:!0,blendMode:p.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:p.prop("backgroundBlendMode"),opacity:!0};Object.assign(An,{shadow:An.boxShadow});const oe={margin:p.spaceT("margin"),marginTop:p.spaceT("marginTop"),marginBlockStart:p.spaceT("marginBlockStart"),marginRight:p.spaceT("marginRight"),marginInlineEnd:p.spaceT("marginInlineEnd"),marginBottom:p.spaceT("marginBottom"),marginBlockEnd:p.spaceT("marginBlockEnd"),marginLeft:p.spaceT("marginLeft"),marginInlineStart:p.spaceT("marginInlineStart"),marginX:p.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:p.spaceT("marginInline"),marginY:p.spaceT(["marginTop","marginBottom"]),marginBlock:p.spaceT("marginBlock"),padding:p.space("padding"),paddingTop:p.space("paddingTop"),paddingBlockStart:p.space("paddingBlockStart"),paddingRight:p.space("paddingRight"),paddingBottom:p.space("paddingBottom"),paddingBlockEnd:p.space("paddingBlockEnd"),paddingLeft:p.space("paddingLeft"),paddingInlineStart:p.space("paddingInlineStart"),paddingInlineEnd:p.space("paddingInlineEnd"),paddingX:p.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:p.space("paddingInline"),paddingY:p.space(["paddingTop","paddingBottom"]),paddingBlock:p.space("paddingBlock")};Object.assign(oe,{m:oe.margin,mt:oe.marginTop,mr:oe.marginRight,me:oe.marginInlineEnd,marginEnd:oe.marginInlineEnd,mb:oe.marginBottom,ml:oe.marginLeft,ms:oe.marginInlineStart,marginStart:oe.marginInlineStart,mx:oe.marginX,my:oe.marginY,p:oe.padding,pt:oe.paddingTop,py:oe.paddingY,px:oe.paddingX,pb:oe.paddingBottom,pl:oe.paddingLeft,ps:oe.paddingInlineStart,paddingStart:oe.paddingInlineStart,pr:oe.paddingRight,pe:oe.paddingInlineEnd,paddingEnd:oe.paddingInlineEnd});const Sl={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:p.spaceT("scrollMargin"),scrollMarginTop:p.spaceT("scrollMarginTop"),scrollMarginBottom:p.spaceT("scrollMarginBottom"),scrollMarginLeft:p.spaceT("scrollMarginLeft"),scrollMarginRight:p.spaceT("scrollMarginRight"),scrollMarginX:p.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:p.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:p.spaceT("scrollPadding"),scrollPaddingTop:p.spaceT("scrollPaddingTop"),scrollPaddingBottom:p.spaceT("scrollPaddingBottom"),scrollPaddingLeft:p.spaceT("scrollPaddingLeft"),scrollPaddingRight:p.spaceT("scrollPaddingRight"),scrollPaddingX:p.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:p.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},vl={fontFamily:p.prop("fontFamily","fonts"),fontSize:p.prop("fontSize","fontSizes",G.px),fontWeight:p.prop("fontWeight","fontWeights"),lineHeight:p.prop("lineHeight","lineHeights"),letterSpacing:p.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"}},kl={textDecorationColor:p.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:p.shadows("textShadow")},wl={clipPath:!0,transform:p.propT("transform",G.transform),transformOrigin:!0,translateX:p.spaceT("--chakra-translate-x"),translateY:p.spaceT("--chakra-translate-y"),skewX:p.degreeT("--chakra-skew-x"),skewY:p.degreeT("--chakra-skew-y"),scaleX:p.prop("--chakra-scale-x"),scaleY:p.prop("--chakra-scale-y"),scale:p.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:p.degreeT("--chakra-rotate")},Cl={listStyleType:!0,listStylePosition:!0,listStylePos:p.prop("listStylePosition"),listStyleImage:!0,listStyleImg:p.prop("listStyleImage")},El={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:p.prop("transitionDuration","transition.duration"),transitionProperty:p.prop("transitionProperty","transition.property"),transitionTimingFunction:p.prop("transitionTimingFunction","transition.easing")},Kn=Qe.mergeWith({},Er,Y,dl,Nr,Oe,ul,fl,pl,bs,yl,sr,An,oe,Sl,vl,kl,wl,Cl,El),Rl=Object.assign({},oe,Oe,Nr,bs,sr),$l=Object.keys(Rl),_l=[...Object.keys(Kn),...ps],Pl={...Kn,...Vr},Tl=e=>e in Pl,Il=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,s={};for(const a in e){let i=Te(e[a],t);if(i==null)continue;if(i=_e(i)&&r(i)?n(i):i,!Array.isArray(i)){s[a]=i;continue}const c=i.slice(0,o.length).length;for(let u=0;u<c;u+=1){const f=o?.[u];if(!f){s[a]=i[u];continue}s[f]=s[f]||{},i[u]!=null&&(s[f][a]=i[u])}}return s};function jl(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const s=e[o];s==="("?(n=!0,r+=s):s===")"?(n=!1,r+=s):s===","&&!n?(t.push(r),r=""):r+=s}return r=r.trim(),r&&t.push(r),t}function zl(e){return/^var\(--.+\)$/.test(e)}const Ml=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!zl(t),Al=(e,t)=>{if(t==null)return t;const r=a=>e.__cssMap?.[a]?.varRef,n=a=>r(a)??a,[o,s]=jl(t);return t=r(o)??n(s)??n(t),t};function Nl(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(s,a=!1)=>{const i=Te(s,n),c=Il(i)(n);let u={};for(let f in c){const m=c[f];let b=Te(m,n);f in r&&(f=r[f]),Ml(f,b)&&(b=Al(n,b));let h=t[f];if(h===!0&&(h={property:f}),_e(b)){u[f]=u[f]??{},u[f]=Qe.mergeWith({},u[f],o(b,!0));continue}let g=h?.transform?.(b,n,i)??b;g=h?.processResult?o(g,!0):g;const y=Te(h?.property,n);if(!a&&h?.static){const x=Te(h.static,n);u=Qe.mergeWith({},u,x)}if(y&&Array.isArray(y)){for(const x of y)u[x]=g;continue}if(y){y==="&"&&_e(g)?u=Qe.mergeWith({},u,g):u[y]=g;continue}if(_e(g)){u=Qe.mergeWith({},u,g);continue}u[f]=g}return u};return o}const hs=e=>t=>Nl({theme:t,pseudos:Vr,configs:Kn})(e);function te(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Bl(e,t,r){return e.__cssMap?.[`${t}.${r}`]?.varRef??r}function Fl(e,t){if(Array.isArray(e))return e;if(_e(e))return t(e);if(e!=null)return[e]}function Dl(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function Ol(e){const t=e.__breakpoints;return function(n,o,s,a){if(!t)return;const i={},c=Fl(s,t.toArrayValue);if(!c)return i;const u=c.length,f=u===1,m=!!n.parts;for(let b=0;b<u;b++){const h=t.details[b],g=t.details[Dl(c,b)],y=Qt(h.minW,g?._minW),x=Te(n[o]?.[c[b]],a);if(x){if(m){n.parts?.forEach($=>{Qe.mergeWith(i,{[$]:f?x[$]:{[y]:x[$]}})});continue}if(!m){f?Qe.mergeWith(i,x):i[y]=x;continue}i[y]=x}}return i}}function Ll(e){return t=>{const{variant:r,size:n,theme:o}=t,s=Ol(o);return Qe.mergeWith({},Te(e.baseStyle??{},t),s(e,"sizes",n,t),s(e,"variants",r,t))}}function he(e){return Wr(e,["styleConfig","size","variant","colorScheme"])}function gs(e){return _e(e)&&e.reference?e.reference:String(e)}const Hr=(e,...t)=>t.map(gs).join(` ${e} `).replace(/calc/g,""),vo=(...e)=>`calc(${Hr("+",...e)})`,ko=(...e)=>`calc(${Hr("-",...e)})`,Nn=(...e)=>`calc(${Hr("*",...e)})`,wo=(...e)=>`calc(${Hr("/",...e)})`,Co=e=>{const t=gs(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Nn(t,-1)},nt=Object.assign(e=>({add:(...t)=>nt(vo(e,...t)),subtract:(...t)=>nt(ko(e,...t)),multiply:(...t)=>nt(Nn(e,...t)),divide:(...t)=>nt(wo(e,...t)),negate:()=>nt(Co(e)),toString:()=>e.toString()}),{add:vo,subtract:ko,multiply:Nn,divide:wo,negate:Co});function Wl(e,t="-"){return e.replace(/\s+/g,t)}function Vl(e){const t=Wl(e.toString());return ql(Hl(t))}function Hl(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function ql(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Gl(e,t=""){return[t,e].filter(Boolean).join("-")}function Ul(e,t){return`var(${e}${t?`, ${t}`:""})`}function Kl(e,t=""){return Vl(`--${Gl(e,t)}`)}function j(e,t,r){const n=Kl(e,r);return{variable:n,reference:Ul(n,t)}}function Xl(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,s]=n;r[o]=j(`${e}-${o}`,s);continue}r[n]=j(`${e}-${n}`)}return r}const Yl=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Zl(e){return is(e,Yl)}function Ql(e){return e.semanticTokens}function Jl(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}function ec(e){const t=Zl(e),r=Ql(e),n=s=>ps.includes(s)||s==="default",o={};return go(t,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!1,value:s})}),go(r,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!0,value:s})},{stop:s=>Object.keys(s).every(n)}),o}function Eo(e,t){return j(String(e).replace(/\./g,"-"),void 0,t)}function tc(e){const t=ec(e),r=e.config?.cssVarPrefix;let n={};const o={};function s(a,i){const u=[String(a).split(".")[0],i].join(".");if(!t[u])return i;const{reference:m}=Eo(u,r);return m}for(const[a,i]of Object.entries(t)){const{isSemantic:c,value:u}=i,{variable:f,reference:m}=Eo(a,r);if(!c){if(a.startsWith("space")){const h=a.split("."),[g,...y]=h,x=`${g}.-${y.join(".")}`,$=nt.negate(u),C=nt.negate(m);o[x]={value:$,var:f,varRef:C}}n[f]=u,o[a]={value:u,var:f,varRef:m};continue}const b=_e(u)?u:{default:u};n=Qe.mergeWith(n,Object.entries(b).reduce((h,[g,y])=>{if(!y)return h;const x=s(a,`${y}`);if(g==="default")return h[f]=x,h;const $=Vr?.[g]??g;return h[$]={[f]:x},h},{})),o[a]={value:m,var:f,varRef:m}}return{cssVars:n,cssMap:o}}function rc(e){const t=Jl(e),{cssMap:r,cssVars:n}=tc(t);return Object.assign(t,{__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"},...n},__cssMap:r,__breakpoints:si(t.breakpoints)}),t}function Q(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(...f){n();for(const m of f)t[m]=c(m);return Q(e,t)}function s(...f){for(const m of f)m in t||(t[m]=c(m));return Q(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([m,b])=>[m,b.selector]))}function i(){return Object.fromEntries(Object.entries(t).map(([m,b])=>[m,b.className]))}function c(f){const h=`chakra-${(["container","root"].includes(f??"")?[e]:[e,f]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>f}}return{parts:o,toPart:c,extend:s,selectors:a,classnames:i,get keys(){return Object.keys(t)},__type:{}}}const nc=Q("accordion").parts("root","container","button","panel","icon"),oc=Q("alert").parts("title","description","container","icon","spinner"),sc=Q("avatar").parts("label","badge","container","excessLabel","group"),ac=Q("breadcrumb").parts("link","item","container","separator");Q("button").parts();const ic=Q("checkbox").parts("control","icon","container","label");Q("progress").parts("track","filledTrack","label");const lc=Q("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),cc=Q("editable").parts("preview","input","textarea"),dc=Q("form").parts("container","requiredIndicator","helperText"),uc=Q("formError").parts("text","icon"),fc=Q("input").parts("addon","field","element","group"),pc=Q("list").parts("container","item","icon"),mc=Q("menu").parts("button","list","item","groupTitle","icon","command","divider"),bc=Q("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),hc=Q("numberinput").parts("root","field","stepperGroup","stepper");Q("pininput").parts("field");const gc=Q("popover").parts("content","header","body","footer","popper","arrow","closeButton"),xc=Q("progress").parts("label","filledTrack","track"),yc=Q("radio").parts("container","control","label"),Sc=Q("select").parts("field","icon"),vc=Q("slider").parts("container","track","thumb","filledTrack","mark"),kc=Q("stat").parts("container","label","helpText","number","icon"),wc=Q("switch").parts("container","track","thumb","label"),Cc=Q("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Ec=Q("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Rc=Q("tag").parts("container","label","closeButton"),$c=Q("card").parts("container","header","body","footer");Q("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:_c,defineMultiStyleConfig:Pc}=te(nc.keys),Tc={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Ic={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},jc={pt:"2",px:"4",pb:"5"},zc={fontSize:"1.25em"},Mc=_c({container:Tc,button:Ic,panel:jc,icon:zc}),Ac=Pc({baseStyle:Mc}),Nc=e=>Object.keys(e).length===0;function Bc(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}const Ce=(e,t,r)=>{const n=Bc(e,`colors.${t}`,t);try{return d.toHex(n),n}catch{return r??"#000000"}},Fc=e=>{const[t,r,n]=d.parseToRgba(e);return(t*299+r*587+n*114)/1e3},Dc=e=>t=>{const r=Ce(t,e);return Fc(r)<128?"dark":"light"},Oc=e=>t=>Dc(e)(t)==="dark",Dt=(e,t)=>r=>{const n=Ce(r,e);return d.transparentize(n,1-t)};function Ro(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
2
- 45deg,
3
- ${t} 25%,
4
- transparent 25%,
5
- transparent 50%,
6
- ${t} 50%,
7
- ${t} 75%,
8
- transparent 75%,
9
- transparent
10
- )`,backgroundSize:`${e} ${e}`}}const Lc=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Wc(e){const t=Lc();return!e||Nc(e)?t:e.string&&e.colors?Hc(e.string,e.colors):e.string&&!e.colors?Vc(e.string):e.colors&&!e.string?qc(e.colors):t}function Vc(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 Hc(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 qc(e){return e[Math.floor(Math.random()*e.length)]}function I(e,t){return r=>r.colorMode==="dark"?t:e}function Xn(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function xs(e){return _e(e)&&e.reference?e.reference:String(e)}const qr=(e,...t)=>t.map(xs).join(` ${e} `).replace(/calc/g,""),$o=(...e)=>`calc(${qr("+",...e)})`,_o=(...e)=>`calc(${qr("-",...e)})`,Bn=(...e)=>`calc(${qr("*",...e)})`,Po=(...e)=>`calc(${qr("/",...e)})`,To=e=>{const t=xs(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Bn(t,-1)},ot=Object.assign(e=>({add:(...t)=>ot($o(e,...t)),subtract:(...t)=>ot(_o(e,...t)),multiply:(...t)=>ot(Bn(e,...t)),divide:(...t)=>ot(Po(e,...t)),negate:()=>ot(To(e)),toString:()=>e.toString()}),{add:$o,subtract:_o,multiply:Bn,divide:Po,negate:To});function Gc(e){return!Number.isInteger(parseFloat(e.toString()))}function Uc(e,t="-"){return e.replace(/\s+/g,t)}function ys(e){const t=Uc(e.toString());return t.includes("\\.")?e:Gc(e)?t.replace(".","\\."):e}function Kc(e,t=""){return[t,ys(e)].filter(Boolean).join("-")}function Xc(e,t){return`var(${ys(e)}${t?`, ${t}`:""})`}function Yc(e,t=""){return`--${Kc(e,t)}`}function ge(e,t){const r=Yc(e,t?.prefix);return{variable:r,reference:Xc(r,Zc(t?.fallback))}}function Zc(e){return e?.reference}const{definePartsStyle:pr,defineMultiStyleConfig:Qc}=te(oc.keys),Ie=j("alert-fg"),ct=j("alert-bg"),Jc=pr({container:{bg:ct.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ie.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ie.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Yn(e){const{theme:t,colorScheme:r}=e,n=Dt(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}const ed=pr(e=>{const{colorScheme:t}=e,r=Yn(e);return{container:{[Ie.variable]:`colors.${t}.600`,[ct.variable]:r.light,_dark:{[Ie.variable]:`colors.${t}.200`,[ct.variable]:r.dark}}}}),td=pr(e=>{const{colorScheme:t}=e,r=Yn(e);return{container:{[Ie.variable]:`colors.${t}.600`,[ct.variable]:r.light,_dark:{[Ie.variable]:`colors.${t}.200`,[ct.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ie.reference}}}),rd=pr(e=>{const{colorScheme:t}=e,r=Yn(e);return{container:{[Ie.variable]:`colors.${t}.600`,[ct.variable]:r.light,_dark:{[Ie.variable]:`colors.${t}.200`,[ct.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ie.reference}}}),nd=pr(e=>{const{colorScheme:t}=e;return{container:{[Ie.variable]:"colors.white",[ct.variable]:`colors.${t}.600`,_dark:{[Ie.variable]:"colors.gray.900",[ct.variable]:`colors.${t}.200`},color:Ie.reference}}}),od={subtle:ed,"left-accent":td,"top-accent":rd,solid:nd},sd=Qc({baseStyle:Jc,variants:od,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Ss={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"},ad={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"},id={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},vs={...Ss,...ad,container:id},ld=e=>typeof e=="function";function Ee(e,...t){return ld(e)?e(...t):e}const{definePartsStyle:ks,defineMultiStyleConfig:cd}=te(sc.keys),At=j("avatar-border-color"),ar=j("avatar-bg"),ur=j("avatar-font-size"),Ot=j("avatar-size"),dd={borderRadius:"full",border:"0.2em solid",borderColor:At.reference,[At.variable]:"white",_dark:{[At.variable]:"colors.gray.800"}},ud={bg:ar.reference,fontSize:ur.reference,width:Ot.reference,height:Ot.reference,lineHeight:"1",[ar.variable]:"colors.gray.200",_dark:{[ar.variable]:"colors.whiteAlpha.400"}},fd=e=>{const{name:t,theme:r}=e,n=t?Wc({string:t}):"colors.gray.400",o=Oc(n)(r);let s="white";return o||(s="gray.800"),{bg:ar.reference,fontSize:ur.reference,color:s,borderColor:At.reference,verticalAlign:"top",width:Ot.reference,height:Ot.reference,"&:not([data-loaded])":{[ar.variable]:n},[At.variable]:"colors.white",_dark:{[At.variable]:"colors.gray.800"}}},pd={fontSize:ur.reference,lineHeight:"1"},md=ks(e=>({badge:Ee(dd,e),excessLabel:Ee(ud,e),container:Ee(fd,e),label:pd}));function dt(e){const t=e!=="100%"?vs[e]:void 0;return ks({container:{[Ot.variable]:t??e,[ur.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ot.variable]:t??e,[ur.variable]:`calc(${t??e} / 2.5)`}})}const bd={"2xs":dt(4),xs:dt(6),sm:dt(8),md:dt(12),lg:dt(16),xl:dt(24),"2xl":dt(32),full:dt("100%")},hd=cd({baseStyle:md,sizes:bd,defaultProps:{size:"md"}}),ue=Xl("badge",["bg","color","shadow"]),gd={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ue.bg.reference,color:ue.color.reference,boxShadow:ue.shadow.reference},xd=e=>{const{colorScheme:t,theme:r}=e,n=Dt(`${t}.500`,.6)(r);return{[ue.bg.variable]:`colors.${t}.500`,[ue.color.variable]:"colors.white",_dark:{[ue.bg.variable]:n,[ue.color.variable]:"colors.whiteAlpha.800"}}},yd=e=>{const{colorScheme:t,theme:r}=e,n=Dt(`${t}.200`,.16)(r);return{[ue.bg.variable]:`colors.${t}.100`,[ue.color.variable]:`colors.${t}.800`,_dark:{[ue.bg.variable]:n,[ue.color.variable]:`colors.${t}.200`}}},Sd=e=>{const{colorScheme:t,theme:r}=e,n=Dt(`${t}.200`,.8)(r);return{[ue.color.variable]:`colors.${t}.500`,_dark:{[ue.color.variable]:n},[ue.shadow.variable]:`inset 0 0 0px 1px ${ue.color.reference}`}},vd={solid:xd,subtle:yd,outline:Sd},ir={baseStyle:gd,variants:vd,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:kd,definePartsStyle:wd}=te(ac.keys),dn=j("breadcrumb-link-decor"),Cd={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:dn.reference,[dn.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[dn.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Ed=wd({link:Cd}),Rd=kd({baseStyle:Ed}),$d={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"}}},ws=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:I("gray.800","whiteAlpha.900")(e),_hover:{bg:I("gray.100","whiteAlpha.200")(e)},_active:{bg:I("gray.200","whiteAlpha.300")(e)}};const n=Dt(`${t}.200`,.12)(r),o=Dt(`${t}.200`,.24)(r);return{color:I(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:I(`${t}.50`,n)(e)},_active:{bg:I(`${t}.100`,o)(e)}}},_d=e=>{const{colorScheme:t}=e,r=I("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"},...Ee(ws,e)}},Pd={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Td=e=>{const{colorScheme:t}=e;if(t==="gray"){const i=I("gray.100","whiteAlpha.200")(e);return{bg:i,color:I("gray.800","whiteAlpha.900")(e),_hover:{bg:I("gray.200","whiteAlpha.300")(e),_disabled:{bg:i}},_active:{bg:I("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:n="white",hoverBg:o=`${t}.600`,activeBg:s=`${t}.700`}=Pd[t]??{},a=I(r,`${t}.200`)(e);return{bg:a,color:I(n,"gray.800")(e),_hover:{bg:I(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:I(s,`${t}.400`)(e)}}},Id=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:I(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:I(`${t}.700`,`${t}.500`)(e)}}},jd={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},zd={ghost:ws,outline:_d,solid:Td,link:Id,unstyled:jd},Md={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"}},Ad={baseStyle:$d,variants:zd,sizes:Md,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:yt,defineMultiStyleConfig:Nd}=te($c.keys),Br=j("card-bg"),lt=j("card-padding"),Cs=j("card-shadow"),Rr=j("card-radius"),Es=j("card-border-width","0"),Rs=j("card-border-color"),Bd=yt({container:{[Br.variable]:"colors.chakra-body-bg",backgroundColor:Br.reference,boxShadow:Cs.reference,borderRadius:Rr.reference,color:"chakra-body-text",borderWidth:Es.reference,borderColor:Rs.reference},body:{padding:lt.reference,flex:"1 1 0%"},header:{padding:lt.reference},footer:{padding:lt.reference}}),Fd={sm:yt({container:{[Rr.variable]:"radii.base",[lt.variable]:"space.3"}}),md:yt({container:{[Rr.variable]:"radii.md",[lt.variable]:"space.5"}}),lg:yt({container:{[Rr.variable]:"radii.xl",[lt.variable]:"space.7"}})},Dd={elevated:yt({container:{[Cs.variable]:"shadows.base",_dark:{[Br.variable]:"colors.gray.700"}}}),outline:yt({container:{[Es.variable]:"1px",[Rs.variable]:"colors.chakra-border-color"}}),filled:yt({container:{[Br.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[lt.variable]:0},header:{[lt.variable]:0},footer:{[lt.variable]:0}}},Od=Nd({baseStyle:Bd,variants:Dd,sizes:Fd,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:$r,defineMultiStyleConfig:Ld}=te(ic.keys),lr=j("checkbox-size"),Wd=e=>{const{colorScheme:t}=e;return{w:lr.reference,h:lr.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:I(`${t}.500`,`${t}.200`)(e),borderColor:I(`${t}.500`,`${t}.200`)(e),color:I("white","gray.900")(e),_hover:{bg:I(`${t}.600`,`${t}.300`)(e),borderColor:I(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:I("gray.200","transparent")(e),bg:I("gray.200","whiteAlpha.300")(e),color:I("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:I(`${t}.500`,`${t}.200`)(e),borderColor:I(`${t}.500`,`${t}.200`)(e),color:I("white","gray.900")(e)},_disabled:{bg:I("gray.100","whiteAlpha.100")(e),borderColor:I("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:I("red.500","red.300")(e)}}},Vd={_disabled:{cursor:"not-allowed"}},Hd={userSelect:"none",_disabled:{opacity:.4}},qd={transitionProperty:"transform",transitionDuration:"normal"},Gd=$r(e=>({icon:qd,container:Vd,control:Ee(Wd,e),label:Hd})),Ud={sm:$r({control:{[lr.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:$r({control:{[lr.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:$r({control:{[lr.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Fr=Ld({baseStyle:Gd,sizes:Ud,defaultProps:{size:"md",colorScheme:"blue"}}),cr=ge("close-button-size"),Xt=ge("close-button-bg"),Kd={w:[cr.reference],h:[cr.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Xt.variable]:"colors.blackAlpha.100",_dark:{[Xt.variable]:"colors.whiteAlpha.100"}},_active:{[Xt.variable]:"colors.blackAlpha.200",_dark:{[Xt.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Xt.reference},Xd={lg:{[cr.variable]:"sizes.10",fontSize:"md"},md:{[cr.variable]:"sizes.8",fontSize:"xs"},sm:{[cr.variable]:"sizes.6",fontSize:"2xs"}},Yd={baseStyle:Kd,sizes:Xd,defaultProps:{size:"md"}},{variants:Zd,defaultProps:Qd}=ir,Jd={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ue.bg.reference,color:ue.color.reference,boxShadow:ue.shadow.reference},eu={baseStyle:Jd,variants:Zd,defaultProps:Qd},tu={w:"100%",mx:"auto",maxW:"prose",px:"4"},ru={baseStyle:tu},nu={opacity:.6,borderColor:"inherit"},ou={borderStyle:"solid"},su={borderStyle:"dashed"},au={solid:ou,dashed:su},iu={baseStyle:nu,variants:au,defaultProps:{variant:"solid"}},{definePartsStyle:Fn,defineMultiStyleConfig:lu}=te(lc.keys),un=j("drawer-bg"),fn=j("drawer-box-shadow");function $t(e){return Fn(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const cu={bg:"blackAlpha.600",zIndex:"modal"},du={display:"flex",zIndex:"modal",justifyContent:"center"},uu=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[un.variable]:"colors.white",[fn.variable]:"shadows.lg",_dark:{[un.variable]:"colors.gray.700",[fn.variable]:"shadows.dark-lg"},bg:un.reference,boxShadow:fn.reference}},fu={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},pu={position:"absolute",top:"2",insetEnd:"3"},mu={px:"6",py:"2",flex:"1",overflow:"auto"},bu={px:"6",py:"4"},hu=Fn(e=>({overlay:cu,dialogContainer:du,dialog:Ee(uu,e),header:fu,closeButton:pu,body:mu,footer:bu})),gu={xs:$t("xs"),sm:$t("md"),md:$t("lg"),lg:$t("2xl"),xl:$t("4xl"),full:$t("full")},xu=lu({baseStyle:hu,sizes:gu,defaultProps:{size:"xs"}}),{definePartsStyle:yu,defineMultiStyleConfig:Su}=te(cc.keys),vu={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},ku={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},wu={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Cu=yu({preview:vu,input:ku,textarea:wu}),Eu=Su({baseStyle:Cu}),{definePartsStyle:Ru,defineMultiStyleConfig:$u}=te(dc.keys),Nt=j("form-control-color"),_u={marginStart:"1",[Nt.variable]:"colors.red.500",_dark:{[Nt.variable]:"colors.red.300"},color:Nt.reference},Pu={mt:"2",[Nt.variable]:"colors.gray.600",_dark:{[Nt.variable]:"colors.whiteAlpha.600"},color:Nt.reference,lineHeight:"normal",fontSize:"sm"},Tu=Ru({container:{width:"100%",position:"relative"},requiredIndicator:_u,helperText:Pu}),Iu=$u({baseStyle:Tu}),{definePartsStyle:ju,defineMultiStyleConfig:zu}=te(uc.keys),Bt=j("form-error-color"),Mu={[Bt.variable]:"colors.red.500",_dark:{[Bt.variable]:"colors.red.300"},color:Bt.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Au={marginEnd:"0.5em",[Bt.variable]:"colors.red.500",_dark:{[Bt.variable]:"colors.red.300"},color:Bt.reference},Nu=ju({text:Mu,icon:Au}),Bu=zu({baseStyle:Nu}),Fu={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Du={baseStyle:Fu},Ou={fontFamily:"heading",fontWeight:"bold"},Lu={"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}},Wu={baseStyle:Ou,sizes:Lu,defaultProps:{size:"xl"}},{definePartsStyle:at,defineMultiStyleConfig:Vu}=te(fc.keys),Pt=j("input-height"),Tt=j("input-font-size"),It=j("input-padding"),jt=j("input-border-radius"),Hu=at({addon:{height:Pt.reference,fontSize:Tt.reference,px:It.reference,borderRadius:jt.reference},field:{width:"100%",height:Pt.reference,fontSize:Tt.reference,px:It.reference,borderRadius:jt.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ut={lg:{[Tt.variable]:"fontSizes.lg",[It.variable]:"space.4",[jt.variable]:"radii.md",[Pt.variable]:"sizes.12"},md:{[Tt.variable]:"fontSizes.md",[It.variable]:"space.4",[jt.variable]:"radii.md",[Pt.variable]:"sizes.10"},sm:{[Tt.variable]:"fontSizes.sm",[It.variable]:"space.3",[jt.variable]:"radii.sm",[Pt.variable]:"sizes.8"},xs:{[Tt.variable]:"fontSizes.xs",[It.variable]:"space.2",[jt.variable]:"radii.sm",[Pt.variable]:"sizes.6"}},qu={lg:at({field:ut.lg,group:ut.lg}),md:at({field:ut.md,group:ut.md}),sm:at({field:ut.sm,group:ut.sm}),xs:at({field:ut.xs,group:ut.xs})};function Zn(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||I("blue.500","blue.300")(e),errorBorderColor:r||I("red.500","red.300")(e)}}const Gu=at(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Zn(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:I("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ce(t,n),boxShadow:`0 0 0 1px ${Ce(t,n)}`},_focusVisible:{zIndex:1,borderColor:Ce(t,r),boxShadow:`0 0 0 1px ${Ce(t,r)}`}},addon:{border:"1px solid",borderColor:I("inherit","whiteAlpha.50")(e),bg:I("gray.100","whiteAlpha.300")(e)}}}),Uu=at(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Zn(e);return{field:{border:"2px solid",borderColor:"transparent",bg:I("gray.100","whiteAlpha.50")(e),_hover:{bg:I("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ce(t,n)},_focusVisible:{bg:"transparent",borderColor:Ce(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:I("gray.100","whiteAlpha.50")(e)}}}),Ku=at(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Zn(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ce(t,n),boxShadow:`0px 1px 0px 0px ${Ce(t,n)}`},_focusVisible:{borderColor:Ce(t,r),boxShadow:`0px 1px 0px 0px ${Ce(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Xu=at({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Yu={outline:Gu,filled:Uu,flushed:Ku,unstyled:Xu},Z=Vu({baseStyle:Hu,sizes:qu,variants:Yu,defaultProps:{size:"md",variant:"outline"}}),pn=j("kbd-bg"),Zu={[pn.variable]:"colors.gray.100",_dark:{[pn.variable]:"colors.whiteAlpha.100"},bg:pn.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Qu={baseStyle:Zu},Ju={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},ef={baseStyle:Ju},{defineMultiStyleConfig:tf,definePartsStyle:rf}=te(pc.keys),nf={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},of=rf({icon:nf}),sf=tf({baseStyle:of}),{defineMultiStyleConfig:af,definePartsStyle:lf}=te(mc.keys),Ye=j("menu-bg"),mn=j("menu-shadow"),cf={[Ye.variable]:"#fff",[mn.variable]:"shadows.sm",_dark:{[Ye.variable]:"colors.gray.700",[mn.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Ye.reference,boxShadow:mn.reference},df={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ye.variable]:"colors.gray.100",_dark:{[Ye.variable]:"colors.whiteAlpha.100"}},_active:{[Ye.variable]:"colors.gray.200",_dark:{[Ye.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ye.variable]:"colors.gray.100",_dark:{[Ye.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ye.reference},uf={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},ff={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},pf={opacity:.6},mf={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},bf={transitionProperty:"common",transitionDuration:"normal"},hf=lf({button:bf,list:cf,item:df,groupTitle:uf,icon:ff,command:pf,divider:mf}),gf=af({baseStyle:hf}),{defineMultiStyleConfig:xf,definePartsStyle:Dn}=te(bc.keys),bn=j("modal-bg"),hn=j("modal-shadow"),yf={bg:"blackAlpha.600",zIndex:"modal"},Sf=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"}},vf=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,[bn.variable]:"colors.white",[hn.variable]:"shadows.lg",_dark:{[bn.variable]:"colors.gray.700",[hn.variable]:"shadows.dark-lg"},bg:bn.reference,boxShadow:hn.reference}},kf={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},wf={position:"absolute",top:"2",insetEnd:"3"},Cf=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Ef={px:"6",py:"4"},Rf=Dn(e=>({overlay:yf,dialogContainer:Ee(Sf,e),dialog:Ee(vf,e),header:kf,closeButton:wf,body:Ee(Cf,e),footer:Ef}));function Ve(e){return Dn(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const $f={xs:Ve("xs"),sm:Ve("sm"),md:Ve("md"),lg:Ve("lg"),xl:Ve("xl"),"2xl":Ve("2xl"),"3xl":Ve("3xl"),"4xl":Ve("4xl"),"5xl":Ve("5xl"),"6xl":Ve("6xl"),full:Ve("full")},_f=xf({baseStyle:Rf,sizes:$f,defaultProps:{size:"md"}}),$s={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"}},{defineMultiStyleConfig:Pf,definePartsStyle:_s}=te(hc.keys),Qn=ge("number-input-stepper-width"),Ps=ge("number-input-input-padding"),Tf=ot(Qn).add("0.5rem").toString(),gn=ge("number-input-bg"),xn=ge("number-input-color"),yn=ge("number-input-border-color"),If={[Qn.variable]:"sizes.6",[Ps.variable]:Tf},jf=e=>Ee(Z.baseStyle,e)?.field??{},zf={width:Qn.reference},Mf={borderStart:"1px solid",borderStartColor:yn.reference,color:xn.reference,bg:gn.reference,[xn.variable]:"colors.chakra-body-text",[yn.variable]:"colors.chakra-border-color",_dark:{[xn.variable]:"colors.whiteAlpha.800",[yn.variable]:"colors.whiteAlpha.300"},_active:{[gn.variable]:"colors.gray.200",_dark:{[gn.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Af=_s(e=>({root:If,field:Ee(jf,e)??{},stepperGroup:zf,stepper:Mf}));function gr(e){const t=Z.sizes?.[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},n=t.field?.fontSize??"md",o=$s.fontSizes[n];return _s({field:{...t.field,paddingInlineEnd:Ps.reference,verticalAlign:"top"},stepper:{fontSize:ot(o).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}const Nf={xs:gr("xs"),sm:gr("sm"),md:gr("md"),lg:gr("lg")},Bf=Pf({baseStyle:Af,sizes:Nf,variants:Z.variants,defaultProps:Z.defaultProps}),Ff={...Z.baseStyle?.field,textAlign:"center"},Df={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"}},Of={outline:e=>Ee(Z.variants?.outline,e)?.field??{},flushed:e=>Ee(Z.variants?.flushed,e)?.field??{},filled:e=>Ee(Z.variants?.filled,e)?.field??{},unstyled:Z.variants?.unstyled.field??{}},Lf={baseStyle:Ff,sizes:Df,variants:Of,defaultProps:Z.defaultProps},{defineMultiStyleConfig:Wf,definePartsStyle:Vf}=te(gc.keys),xr=ge("popper-bg"),Hf=ge("popper-arrow-bg"),Io=ge("popper-arrow-shadow-color"),qf={zIndex:"popover"},Gf={[xr.variable]:"colors.white",bg:xr.reference,[Hf.variable]:xr.reference,[Io.variable]:"colors.gray.200",_dark:{[xr.variable]:"colors.gray.700",[Io.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Uf={px:3,py:2,borderBottomWidth:"1px"},Kf={px:3,py:2},Xf={px:3,py:2,borderTopWidth:"1px"},Yf={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Zf=Vf({popper:qf,content:Gf,header:Uf,body:Kf,footer:Xf,closeButton:Yf}),Qf=Wf({baseStyle:Zf}),{defineMultiStyleConfig:Jf,definePartsStyle:Jt}=te(xc.keys),ep=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,s=I(Ro(),Ro("1rem","rgba(0,0,0,0.1)"))(e),a=I(`${t}.500`,`${t}.200`)(e),i=`linear-gradient(
11
- to right,
12
- transparent 0%,
13
- ${Ce(r,a)} 50%,
14
- transparent 100%
15
- )`;return{...!n&&o&&s,...n?{bgImage:i}:{bgColor:a}}},tp={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},rp=e=>({bg:I("gray.100","whiteAlpha.300")(e)}),np=e=>({transitionProperty:"common",transitionDuration:"slow",...ep(e)}),op=Jt(e=>({label:tp,filledTrack:np(e),track:rp(e)})),sp={xs:Jt({track:{h:"1"}}),sm:Jt({track:{h:"2"}}),md:Jt({track:{h:"3"}}),lg:Jt({track:{h:"4"}})},ap=Jf({sizes:sp,baseStyle:op,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ip,definePartsStyle:_r}=te(yc.keys),lp=e=>{const t=Ee(Fr.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},cp=_r(e=>({label:Fr.baseStyle?.(e).label,container:Fr.baseStyle?.(e).container,control:lp(e)})),dp={md:_r({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:_r({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:_r({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},up=ip({baseStyle:cp,sizes:dp,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:fp,definePartsStyle:pp}=te(Sc.keys),yr=j("select-bg"),mp={...Z.baseStyle?.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}},bp={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},hp=pp({field:mp,icon:bp}),Sr={paddingInlineEnd:"8"},gp={lg:{...Z.sizes?.lg,field:{...Z.sizes?.lg.field,...Sr}},md:{...Z.sizes?.md,field:{...Z.sizes?.md.field,...Sr}},sm:{...Z.sizes?.sm,field:{...Z.sizes?.sm.field,...Sr}},xs:{...Z.sizes?.xs,field:{...Z.sizes?.xs.field,...Sr},icon:{insetEnd:"1"}}},xp=fp({baseStyle:hp,sizes:gp,variants:Z.variants,defaultProps:Z.defaultProps}),Sn=j("skeleton-start-color"),vn=j("skeleton-end-color"),yp={[Sn.variable]:"colors.gray.100",[vn.variable]:"colors.gray.400",_dark:{[Sn.variable]:"colors.gray.800",[vn.variable]:"colors.gray.600"},background:Sn.reference,borderColor:vn.reference,opacity:.7,borderRadius:"sm"},Sp={baseStyle:yp},kn=j("skip-link-bg"),vp={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[kn.variable]:"colors.white",_dark:{[kn.variable]:"colors.gray.700"},bg:kn.reference}},kp={baseStyle:vp},{defineMultiStyleConfig:wp,definePartsStyle:Gr}=te(vc.keys),Ct=j("slider-thumb-size"),fr=j("slider-track-size"),pt=j("slider-bg"),Cp=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Xn({orientation:t,vertical:{h:"100%",px:nt(Ct.reference).divide(2).toString()},horizontal:{w:"100%",py:nt(Ct.reference).divide(2).toString()}})}},Ep=e=>({...Xn({orientation:e.orientation,horizontal:{h:fr.reference},vertical:{w:fr.reference}}),overflow:"hidden",borderRadius:"sm",[pt.variable]:"colors.gray.200",_dark:{[pt.variable]:"colors.whiteAlpha.200"},_disabled:{[pt.variable]:"colors.gray.300",_dark:{[pt.variable]:"colors.whiteAlpha.300"}},bg:pt.reference}),Rp=e=>{const{orientation:t}=e;return{...Xn({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Ct.reference,h:Ct.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"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},$p=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[pt.variable]:`colors.${t}.500`,_dark:{[pt.variable]:`colors.${t}.200`},bg:pt.reference}},_p=Gr(e=>({container:Cp(e),track:Ep(e),thumb:Rp(e),filledTrack:$p(e)})),Pp=Gr({container:{[Ct.variable]:"sizes.4",[fr.variable]:"sizes.1"}}),Tp=Gr({container:{[Ct.variable]:"sizes.3.5",[fr.variable]:"sizes.1"}}),Ip=Gr({container:{[Ct.variable]:"sizes.2.5",[fr.variable]:"sizes.0.5"}}),jp={lg:Pp,md:Tp,sm:Ip},zp=wp({baseStyle:_p,sizes:jp,defaultProps:{size:"md",colorScheme:"blue"}}),xt=ge("spinner-size"),Mp={width:[xt.reference],height:[xt.reference]},Ap={xs:{[xt.variable]:"sizes.3"},sm:{[xt.variable]:"sizes.4"},md:{[xt.variable]:"sizes.6"},lg:{[xt.variable]:"sizes.8"},xl:{[xt.variable]:"sizes.12"}},Np={baseStyle:Mp,sizes:Ap,defaultProps:{size:"md"}},{defineMultiStyleConfig:Bp,definePartsStyle:Ts}=te(kc.keys),Fp={fontWeight:"medium"},Dp={opacity:.8,marginBottom:"2"},Op={verticalAlign:"baseline",fontWeight:"semibold"},Lp={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Wp=Ts({container:{},label:Fp,helpText:Dp,number:Op,icon:Lp}),Vp={md:Ts({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Hp=Bp({baseStyle:Wp,sizes:Vp,defaultProps:{size:"md"}}),{defineMultiStyleConfig:qp,definePartsStyle:er}=te(["stepper","step","title","description","indicator","separator","icon","number"]),st=j("stepper-indicator-size"),zt=j("stepper-icon-size"),Mt=j("stepper-title-font-size"),tr=j("stepper-description-font-size"),Yt=j("stepper-accent-color"),Gp=er(({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"},[Yt.variable]:`colors.${e}.500`,_dark:{[Yt.variable]:`colors.${e}.200`}},title:{fontSize:Mt.reference,fontWeight:"medium"},description:{fontSize:tr.reference,color:"chakra-subtle-text"},number:{fontSize:Mt.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:zt.reference,height:zt.reference},indicator:{flexShrink:0,borderRadius:"full",width:st.reference,height:st.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Yt.reference},"&[data-status=complete]":{bg:Yt.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Yt.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${st.reference} - 8px)`,top:`calc(${st.reference} + 4px)`,insetStart:`calc(${st.reference} / 2 - 1px)`}}})),Up=qp({baseStyle:Gp,sizes:{xs:er({stepper:{[st.variable]:"sizes.4",[zt.variable]:"sizes.3",[Mt.variable]:"fontSizes.xs",[tr.variable]:"fontSizes.xs"}}),sm:er({stepper:{[st.variable]:"sizes.6",[zt.variable]:"sizes.4",[Mt.variable]:"fontSizes.sm",[tr.variable]:"fontSizes.xs"}}),md:er({stepper:{[st.variable]:"sizes.8",[zt.variable]:"sizes.5",[Mt.variable]:"fontSizes.md",[tr.variable]:"fontSizes.sm"}}),lg:er({stepper:{[st.variable]:"sizes.10",[zt.variable]:"sizes.6",[Mt.variable]:"fontSizes.lg",[tr.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Kp,definePartsStyle:Pr}=te(wc.keys),dr=ge("switch-track-width"),St=ge("switch-track-height"),wn=ge("switch-track-diff"),Xp=ot.subtract(dr,St),On=ge("switch-thumb-x"),Zt=ge("switch-bg"),Yp=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[dr.reference],height:[St.reference],transitionProperty:"common",transitionDuration:"fast",[Zt.variable]:"colors.gray.300",_dark:{[Zt.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Zt.variable]:`colors.${t}.500`,_dark:{[Zt.variable]:`colors.${t}.200`}},bg:Zt.reference}},Zp={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[St.reference],height:[St.reference],_checked:{transform:`translateX(${On.reference})`}},Qp=Pr(e=>({container:{[wn.variable]:Xp,[On.variable]:wn.reference,_rtl:{[On.variable]:ot(wn).negate().toString()}},track:Yp(e),thumb:Zp})),Jp={sm:Pr({container:{[dr.variable]:"1.375rem",[St.variable]:"sizes.3"}}),md:Pr({container:{[dr.variable]:"1.875rem",[St.variable]:"sizes.4"}}),lg:Pr({container:{[dr.variable]:"2.875rem",[St.variable]:"sizes.6"}})},em=Kp({baseStyle:Qp,sizes:Jp,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tm,definePartsStyle:Ft}=te(Cc.keys),rm=Ft({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"}}),Dr={"&[data-is-numeric=true]":{textAlign:"end"}},nm=Ft(e=>{const{colorScheme:t}=e;return{th:{color:I("gray.600","gray.400")(e),borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Dr},td:{borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Dr},caption:{color:I("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),om=Ft(e=>{const{colorScheme:t}=e;return{th:{color:I("gray.600","gray.400")(e),borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Dr},td:{borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Dr},caption:{color:I("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e)},td:{background:I(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),sm={simple:nm,striped:om,unstyled:{}},am={sm:Ft({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:Ft({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ft({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},im=tm({baseStyle:rm,variants:sm,sizes:am,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),$e=j("tabs-color"),He=j("tabs-bg"),vr=j("tabs-border-color"),{defineMultiStyleConfig:lm,definePartsStyle:Je}=te(Ec.keys),cm=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},dm=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}}},um=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},fm={p:4},pm=Je(e=>({root:cm(e),tab:dm(e),tablist:um(e),tabpanel:fm})),mm={sm:Je({tab:{py:1,px:4,fontSize:"sm"}}),md:Je({tab:{fontSize:"md",py:2,px:4}}),lg:Je({tab:{fontSize:"lg",py:3,px:4}})},bm=Je(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",s=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[s]:"-2px",_selected:{[$e.variable]:`colors.${t}.600`,_dark:{[$e.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[He.variable]:"colors.gray.200",_dark:{[He.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:$e.reference,bg:He.reference}}}),hm=Je(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[vr.variable]:"transparent",_selected:{[$e.variable]:`colors.${t}.600`,[vr.variable]:"colors.white",_dark:{[$e.variable]:`colors.${t}.300`,[vr.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:vr.reference},color:$e.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),gm=Je(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[He.variable]:"colors.gray.50",_dark:{[He.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[He.variable]:"colors.white",[$e.variable]:`colors.${t}.600`,_dark:{[He.variable]:"colors.gray.800",[$e.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:$e.reference,bg:He.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),xm=Je(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ce(r,`${t}.700`),bg:Ce(r,`${t}.100`)}}}}),ym=Je(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[$e.variable]:"colors.gray.600",_dark:{[$e.variable]:"inherit"},_selected:{[$e.variable]:"colors.white",[He.variable]:`colors.${t}.600`,_dark:{[$e.variable]:"colors.gray.800",[He.variable]:`colors.${t}.300`}},color:$e.reference,bg:He.reference}}}),Sm=Je({}),vm={line:bm,enclosed:hm,"enclosed-colored":gm,"soft-rounded":xm,"solid-rounded":ym,unstyled:Sm},km=lm({baseStyle:pm,sizes:mm,variants:vm,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:wm,definePartsStyle:vt}=te(Rc.keys),jo=j("tag-bg"),zo=j("tag-color"),Cn=j("tag-shadow"),Tr=j("tag-min-height"),Ir=j("tag-min-width"),jr=j("tag-font-size"),zr=j("tag-padding-inline"),Cm={fontWeight:"medium",lineHeight:1.2,outline:0,[zo.variable]:ue.color.reference,[jo.variable]:ue.bg.reference,[Cn.variable]:ue.shadow.reference,color:zo.reference,bg:jo.reference,boxShadow:Cn.reference,borderRadius:"md",minH:Tr.reference,minW:Ir.reference,fontSize:jr.reference,px:zr.reference,_focusVisible:{[Cn.variable]:"shadows.outline"}},Em={lineHeight:1.2,overflow:"visible"},Rm={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}},$m=vt({container:Cm,label:Em,closeButton:Rm}),_m={sm:vt({container:{[Tr.variable]:"sizes.5",[Ir.variable]:"sizes.5",[jr.variable]:"fontSizes.xs",[zr.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:vt({container:{[Tr.variable]:"sizes.6",[Ir.variable]:"sizes.6",[jr.variable]:"fontSizes.sm",[zr.variable]:"space.2"}}),lg:vt({container:{[Tr.variable]:"sizes.8",[Ir.variable]:"sizes.8",[jr.variable]:"fontSizes.md",[zr.variable]:"space.3"}})},Pm={subtle:vt(e=>({container:ir.variants?.subtle(e)})),solid:vt(e=>({container:ir.variants?.solid(e)})),outline:vt(e=>({container:ir.variants?.outline(e)}))},Tm=wm({variants:Pm,baseStyle:$m,sizes:_m,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),Im={...Z.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},jm={outline:e=>Z.variants?.outline(e).field??{},flushed:e=>Z.variants?.flushed(e).field??{},filled:e=>Z.variants?.filled(e).field??{},unstyled:Z.variants?.unstyled.field??{}},zm={xs:Z.sizes?.xs.field??{},sm:Z.sizes?.sm.field??{},md:Z.sizes?.md.field??{},lg:Z.sizes?.lg.field??{}},Mm={baseStyle:Im,sizes:zm,variants:jm,defaultProps:{size:"md",variant:"outline"}},kr=ge("tooltip-bg"),En=ge("tooltip-fg"),Am=ge("popper-arrow-bg"),Nm={bg:kr.reference,color:En.reference,[kr.variable]:"colors.gray.700",[En.variable]:"colors.whiteAlpha.900",_dark:{[kr.variable]:"colors.gray.300",[En.variable]:"colors.gray.900"},[Am.variable]:kr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Bm={baseStyle:Nm},Fm={Accordion:Ac,Alert:sd,Avatar:hd,Badge:ir,Breadcrumb:Rd,Button:Ad,Checkbox:Fr,CloseButton:Yd,Code:eu,Container:ru,Divider:iu,Drawer:xu,Editable:Eu,Form:Iu,FormError:Bu,FormLabel:Du,Heading:Wu,Input:Z,Kbd:Qu,Link:ef,List:sf,Menu:gf,Modal:_f,NumberInput:Bf,PinInput:Lf,Popover:Qf,Progress:ap,Radio:up,Select:xp,Skeleton:Sp,SkipLink:kp,Slider:zp,Spinner:Np,Stat:Hp,Switch:em,Table:im,Tabs:km,Tag:Tm,Textarea:Mm,Tooltip:Bm,Card:Od,Stepper:Up},Dm={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Om={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Lm={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"}},Wm={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Vm={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"},Hm={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"},qm={"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)"},Gm={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Um={property:Hm,easing:qm,duration:Gm},Km={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},Xm={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Ym={breakpoints:Om,zIndices:Km,radii:Wm,blur:Xm,colors:Lm,...$s,sizes:vs,shadows:Vm,space:Ss,borders:Dm,transition:Um},Zm={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"}}},Qm={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"}}},Jm="ltr",eb={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},tb={semanticTokens:Zm,direction:Jm,...Ym,components:Fm,styles:Qm,config:eb},Jn=l.createContext({});Jn.displayName="ColorModeContext";function Ur(){const e=l.useContext(Jn);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function rb(e,t){const{colorMode:r}=Ur();return r==="dark"?t:e}const wr={light:"chakra-ui-light",dark:"chakra-ui-dark"};function nb(e={}){const{preventTransition:t=!0,nonce:r}=e,n={setDataset:o=>{const s=t?n.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,s?.()},setClassName(o){document.body.classList.add(o?wr.dark:wr.light),document.body.classList.remove(o?wr.light:wr.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return n.query().matches??o==="dark"?"dark":"light"},addListener(o){const s=n.query(),a=i=>{o(i.matches?"dark":"light")};return typeof s.addListener=="function"?s.addListener(a):s.addEventListener("change",a),()=>{typeof s.removeListener=="function"?s.removeListener(a):s.removeEventListener("change",a)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r!==void 0&&(o.nonce=r),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return n}const ob="chakra-ui-color-mode";function sb(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const ab=sb(ob),Mo=()=>{},ib=Wa()?l.useLayoutEffect:l.useEffect;function Ao(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const Is=function(t){const{value:r,children:n,options:{useSystemColorMode:o,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:i=ab}=t,c=d.__unsafe_useEmotionCache(),u=s==="dark"?"dark":"light",[f,m]=l.useState(()=>Ao(i,u)),[b,h]=l.useState(()=>Ao(i)),{getSystemTheme:g,setClassName:y,setDataset:x,addListener:$}=l.useMemo(()=>nb({preventTransition:a,nonce:c?.nonce}),[a,c?.nonce]),C=s==="system"&&!f?b:f,w=l.useCallback(N=>{const R=N==="system"?g():N;m(R),y(R==="dark"),x(R),i.set(R)},[i,g,y,x]);ib(()=>{s==="system"&&h(g())},[]),l.useEffect(()=>{const N=i.get();if(N){w(N);return}if(s==="system"){w("system");return}w(u)},[i,u,s,w]);const A=l.useCallback(()=>{w(C==="dark"?"light":"dark")},[C,w]);l.useEffect(()=>{if(o)return $(w)},[o,$,w]);const U=l.useMemo(()=>({colorMode:r??C,toggleColorMode:r?Mo:A,setColorMode:r?Mo:w,forced:r!==void 0}),[C,A,w,r]);return d.jsxRuntimeExports.jsx(Jn.Provider,{value:U,children:n})};Is.displayName="ColorModeProvider";const js=String.raw,zs=js`
16
- :root,
17
- :host {
18
- --chakra-vh: 100vh;
19
- }
20
-
21
- @supports (height: -webkit-fill-available) {
22
- :root,
23
- :host {
24
- --chakra-vh: -webkit-fill-available;
25
- }
26
- }
27
-
28
- @supports (height: -moz-fill-available) {
29
- :root,
30
- :host {
31
- --chakra-vh: -moz-fill-available;
32
- }
33
- }
34
-
35
- @supports (height: 100dvh) {
36
- :root,
37
- :host {
38
- --chakra-vh: 100dvh;
39
- }
40
- }
41
- `,lb=()=>d.jsxRuntimeExports.jsx(d.Global,{styles:zs}),cb=({scope:e=""})=>d.jsxRuntimeExports.jsx(d.Global,{styles:js`
42
- html {
43
- line-height: 1.5;
44
- -webkit-text-size-adjust: 100%;
45
- font-family: system-ui, sans-serif;
46
- -webkit-font-smoothing: antialiased;
47
- text-rendering: optimizeLegibility;
48
- -moz-osx-font-smoothing: grayscale;
49
- touch-action: manipulation;
50
- }
51
-
52
- body {
53
- position: relative;
54
- min-height: 100%;
55
- margin: 0;
56
- font-feature-settings: "kern";
57
- }
58
-
59
- ${e} :where(*, *::before, *::after) {
60
- border-width: 0;
61
- border-style: solid;
62
- box-sizing: border-box;
63
- word-wrap: break-word;
64
- }
65
-
66
- main {
67
- display: block;
68
- }
69
-
70
- ${e} hr {
71
- border-top-width: 1px;
72
- box-sizing: content-box;
73
- height: 0;
74
- overflow: visible;
75
- }
76
-
77
- ${e} :where(pre, code, kbd,samp) {
78
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
79
- font-size: 1em;
80
- }
81
-
82
- ${e} a {
83
- background-color: transparent;
84
- color: inherit;
85
- text-decoration: inherit;
86
- }
87
-
88
- ${e} abbr[title] {
89
- border-bottom: none;
90
- text-decoration: underline;
91
- -webkit-text-decoration: underline dotted;
92
- text-decoration: underline dotted;
93
- }
94
-
95
- ${e} :where(b, strong) {
96
- font-weight: bold;
97
- }
98
-
99
- ${e} small {
100
- font-size: 80%;
101
- }
102
-
103
- ${e} :where(sub,sup) {
104
- font-size: 75%;
105
- line-height: 0;
106
- position: relative;
107
- vertical-align: baseline;
108
- }
109
-
110
- ${e} sub {
111
- bottom: -0.25em;
112
- }
113
-
114
- ${e} sup {
115
- top: -0.5em;
116
- }
117
-
118
- ${e} img {
119
- border-style: none;
120
- }
121
-
122
- ${e} :where(button, input, optgroup, select, textarea) {
123
- font-family: inherit;
124
- font-size: 100%;
125
- line-height: 1.15;
126
- margin: 0;
127
- }
128
-
129
- ${e} :where(button, input) {
130
- overflow: visible;
131
- }
132
-
133
- ${e} :where(button, select) {
134
- text-transform: none;
135
- }
136
-
137
- ${e} :where(
138
- button::-moz-focus-inner,
139
- [type="button"]::-moz-focus-inner,
140
- [type="reset"]::-moz-focus-inner,
141
- [type="submit"]::-moz-focus-inner
142
- ) {
143
- border-style: none;
144
- padding: 0;
145
- }
146
-
147
- ${e} fieldset {
148
- padding: 0.35em 0.75em 0.625em;
149
- }
150
-
151
- ${e} legend {
152
- box-sizing: border-box;
153
- color: inherit;
154
- display: table;
155
- max-width: 100%;
156
- padding: 0;
157
- white-space: normal;
158
- }
159
-
160
- ${e} progress {
161
- vertical-align: baseline;
162
- }
163
-
164
- ${e} textarea {
165
- overflow: auto;
166
- }
167
-
168
- ${e} :where([type="checkbox"], [type="radio"]) {
169
- box-sizing: border-box;
170
- padding: 0;
171
- }
172
-
173
- ${e} input[type="number"]::-webkit-inner-spin-button,
174
- ${e} input[type="number"]::-webkit-outer-spin-button {
175
- -webkit-appearance: none !important;
176
- }
177
-
178
- ${e} input[type="number"] {
179
- -moz-appearance: textfield;
180
- }
181
-
182
- ${e} input[type="search"] {
183
- -webkit-appearance: textfield;
184
- outline-offset: -2px;
185
- }
186
-
187
- ${e} input[type="search"]::-webkit-search-decoration {
188
- -webkit-appearance: none !important;
189
- }
190
-
191
- ${e} ::-webkit-file-upload-button {
192
- -webkit-appearance: button;
193
- font: inherit;
194
- }
195
-
196
- ${e} details {
197
- display: block;
198
- }
199
-
200
- ${e} summary {
201
- display: list-item;
202
- }
203
-
204
- template {
205
- display: none;
206
- }
207
-
208
- [hidden] {
209
- display: none !important;
210
- }
211
-
212
- ${e} :where(
213
- blockquote,
214
- dl,
215
- dd,
216
- h1,
217
- h2,
218
- h3,
219
- h4,
220
- h5,
221
- h6,
222
- hr,
223
- figure,
224
- p,
225
- pre
226
- ) {
227
- margin: 0;
228
- }
229
-
230
- ${e} button {
231
- background: transparent;
232
- padding: 0;
233
- }
234
-
235
- ${e} fieldset {
236
- margin: 0;
237
- padding: 0;
238
- }
239
-
240
- ${e} :where(ol, ul) {
241
- margin: 0;
242
- padding: 0;
243
- }
244
-
245
- ${e} textarea {
246
- resize: vertical;
247
- }
248
-
249
- ${e} :where(button, [role="button"]) {
250
- cursor: pointer;
251
- }
252
-
253
- ${e} button::-moz-focus-inner {
254
- border: 0 !important;
255
- }
256
-
257
- ${e} table {
258
- border-collapse: collapse;
259
- }
260
-
261
- ${e} :where(h1, h2, h3, h4, h5, h6) {
262
- font-size: inherit;
263
- font-weight: inherit;
264
- }
265
-
266
- ${e} :where(button, input, optgroup, select, textarea) {
267
- padding: 0;
268
- line-height: inherit;
269
- color: inherit;
270
- }
271
-
272
- ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
273
- display: block;
274
- }
275
-
276
- ${e} :where(img, video) {
277
- max-width: 100%;
278
- height: auto;
279
- }
280
-
281
- [data-js-focus-visible]
282
- :focus:not([data-focus-visible-added]):not(
283
- [data-focus-visible-disabled]
284
- ) {
285
- outline: none;
286
- box-shadow: none;
287
- }
288
-
289
- ${e} select::-ms-expand {
290
- display: none;
291
- }
292
-
293
- ${zs}
294
- `});function db(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=l.useMemo(()=>rc(r),[r]);return d.jsxRuntimeExports.jsxs(d.ThemeProvider,{theme:o,children:[d.jsxRuntimeExports.jsx(ub,{root:t}),n]})}function ub({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return d.jsxRuntimeExports.jsx(d.Global,{styles:r=>({[t]:r.__cssVars})})}ie({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function fb(){const{colorMode:e}=Ur();return d.jsxRuntimeExports.jsx(d.Global,{styles:t=>{const r=as(t,"styles.global"),n=Te(r,{theme:t,colorMode:e});return n?hs(n)(t):void 0}})}const[pb,mb]=ie({strict:!1,name:"PortalManagerContext"});function Ms(e){const{children:t,zIndex:r}=e;return d.jsxRuntimeExports.jsx(pb,{value:{zIndex:r},children:t})}Ms.displayName="PortalManager";const eo=l.createContext({getDocument(){return document},getWindow(){return window}});eo.displayName="EnvironmentContext";function bb({defer:e}={}){const[,t]=l.useReducer(r=>r+1,0);return mt(()=>{e&&t()},[e]),l.useContext(eo)}function As(e){const{children:t,environment:r,disabled:n}=e,o=l.useRef(null),s=l.useMemo(()=>r||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[r]),a=!n||!r;return d.jsxRuntimeExports.jsxs(eo.Provider,{value:s,children:[t,a&&d.jsxRuntimeExports.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}As.displayName="EnvironmentProvider";const hb=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:s=!0,theme:a={},environment:i,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:f}=e,m=d.jsxRuntimeExports.jsx(As,{environment:i,disabled:u,children:t});return d.jsxRuntimeExports.jsx(db,{theme:a,cssVarsRoot:c,children:d.jsxRuntimeExports.jsxs(Is,{colorModeManager:r,options:a.config,children:[s?d.jsxRuntimeExports.jsx(cb,{scope:o}):d.jsxRuntimeExports.jsx(lb,{}),!f&&d.jsxRuntimeExports.jsx(fb,{}),n?d.jsxRuntimeExports.jsx(Ms,{zIndex:n,children:m}):m]})})},gb=(e,t)=>e.find(r=>r.id===t);function No(e,t){const r=Ns(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Ns(e,t){for(const[r,n]of Object.entries(e))if(gb(n,t))return r}function xb(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,s=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=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:s,left:a}}const Sb=new Set([..._l,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),vb=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function kb(e){return(vb.has(e)||!Sb.has(e))&&e[0]!=="_"}const wb=hi(d.styled),Cb=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:s,...a}=t,[i]=Ri(a,Tl),c=Te(e,t),u=ei({},o,c,Lr(i),s),f=hs(u)(t.theme);return n?[f,n]:f};function Rn(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=kb);const o=Cb({baseStyle:r}),s=wb(e,n)(o);return l.forwardRef(function(c,u){const{children:f,...m}=c,{colorMode:b,forced:h}=Ur(),g=h?b:void 0;return l.createElement(s,{ref:u,"data-theme":g,...m},f)})}function Eb(){const e=new Map;return new Proxy(Rn,{apply(t,r,n){return Rn(...n)},get(t,r){return e.has(r)||e.set(r,Rn(r)),e.get(r)}})}const k=Eb(),Rb={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]}}},Bs=l.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:s=!1,position:a="bottom",duration:i=5e3,containerStyle:c,motionVariants:u=Rb,toastSpacing:f="0.5rem"}=e,[m,b]=l.useState(i),h=d.useIsPresent();bt(()=>{h||n?.()},[h]),bt(()=>{b(i)},[i]);const g=()=>b(null),y=()=>b(i),x=()=>{h&&o()};l.useEffect(()=>{h&&s&&o()},[h,s,o]),Di(x,m);const $=l.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:f,...c}),[c,f]),C=l.useMemo(()=>xb(a),[a]);return d.jsxRuntimeExports.jsx(d.motion.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:y,custom:{position:a},style:C,children:d.jsxRuntimeExports.jsx(k.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:$,children:Te(r,{id:t,onClose:x})})})});Bs.displayName="ToastComponent";function P(e){return l.forwardRef(e)}function Rt(){const e=l.useContext(d.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function Fs(){const e=Ur(),t=Rt();return{...e,theme:t}}function $b(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>r!==void 0&&t!=="children"&&!l.isValidElement(r)))}function Ds(e,t={}){const{styleConfig:r,...n}=t,{theme:o,colorMode:s}=Fs(),a=e?as(o,`components.${e}`):void 0,i=r||a,c=Qe.mergeWith({theme:o,colorMode:s},i?.defaultProps??{},$b(n),(f,m)=>f?void 0:m),u=l.useRef({});if(i){const m=Ll(i)(c);d.isEqual(u.current,m)||(u.current=m)}return u.current}function et(e,t={}){return Ds(e,t)}function je(e,t={}){return Ds(e,t)}const Bo={path:d.jsxRuntimeExports.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[d.jsxRuntimeExports.jsx("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"}),d.jsxRuntimeExports.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),d.jsxRuntimeExports.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},qe=P((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:s=!1,children:a,className:i,__css:c,...u}=e,f=L("chakra-icon",i),m=et("Icon",e),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c,...m},h={ref:t,focusable:s,className:f,__css:b},g=n??Bo.viewBox;if(r&&typeof r!="string")return d.jsxRuntimeExports.jsx(k.svg,{as:r,...h,...u});const y=a??Bo.path;return d.jsxRuntimeExports.jsx(k.svg,{verticalAlign:"middle",viewBox:g,...h,...u,children:y})});qe.displayName="Icon";function _b(e){return d.jsxRuntimeExports.jsx(qe,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("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 Pb(e){return d.jsxRuntimeExports.jsx(qe,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("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 Fo(e){return d.jsxRuntimeExports.jsx(qe,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("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"})})}const Tb=d.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Kr=P((e,t)=>{const r=et("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:s="0.45s",emptyColor:a="transparent",className:i,...c}=he(e),u=L("chakra-spinner",i),f={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${Tb} ${s} linear infinite`,...r};return d.jsxRuntimeExports.jsx(k.div,{ref:t,__css:f,className:u,...c,children:n&&d.jsxRuntimeExports.jsx(k.span,{srOnly:!0,children:n})})});Kr.displayName="Spinner";const[Ib,to]=ie({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[jb,ro]=ie({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Os={info:{icon:Pb,colorScheme:"blue"},warning:{icon:Fo,colorScheme:"orange"},success:{icon:_b,colorScheme:"green"},error:{icon:Fo,colorScheme:"red"},loading:{icon:Kr,colorScheme:"blue"}};function zb(e){return Os[e].colorScheme}function Mb(e){return Os[e].icon}const no=P(function(t,r){const{status:n="info",addRole:o=!0,...s}=he(t),a=t.colorScheme??zb(n),i=je("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...i.container};return d.jsxRuntimeExports.jsx(Ib,{value:{status:n},children:d.jsxRuntimeExports.jsx(jb,{value:i,children:d.jsxRuntimeExports.jsx(k.div,{"data-status":n,role:o?"alert":void 0,ref:r,...s,className:L("chakra-alert",t.className),__css:c})})})});no.displayName="Alert";function oo(e){const{status:t}=to(),r=Mb(t),n=ro(),o=t==="loading"?n.spinner:n.icon;return d.jsxRuntimeExports.jsx(k.span,{display:"inherit","data-status":t,...e,className:L("chakra-alert__icon",e.className),__css:o,children:e.children||d.jsxRuntimeExports.jsx(r,{h:"100%",w:"100%"})})}oo.displayName="AlertIcon";const Ls=P(function(t,r){const n=ro(),{status:o}=to();return d.jsxRuntimeExports.jsx(k.div,{ref:r,"data-status":o,...t,className:L("chakra-alert__title",t.className),__css:n.title})});Ls.displayName="AlertTitle";const Ws=P(function(t,r){const{status:n}=to(),o=ro(),s={display:"inline",...o.description};return d.jsxRuntimeExports.jsx(k.div,{ref:r,"data-status":n,...t,className:L("chakra-alert__desc",t.className),__css:s})});Ws.displayName="AlertDescription";function Ab(e){return d.jsxRuntimeExports.jsx(qe,{focusable:"false","aria-hidden":!0,...e,children:d.jsxRuntimeExports.jsx("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"})})}const so=P(function(t,r){const n=et("CloseButton",t),{children:o,isDisabled:s,__css:a,...i}=he(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return d.jsxRuntimeExports.jsx(k.button,{type:"button","aria-label":"Close",ref:r,disabled:s,__css:{...c,...n,...a},...i,children:o||d.jsxRuntimeExports.jsx(Ab,{width:"1em",height:"1em"})})});so.displayName="CloseButton";const Nb=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:s,onClose:a,description:i,colorScheme:c,icon:u}=e,f=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return d.jsxRuntimeExports.jsxs(no,{addRole:!1,status:t,variant:r,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[d.jsxRuntimeExports.jsx(oo,{children:u}),d.jsxRuntimeExports.jsxs(k.div,{flex:"1",maxWidth:"100%",children:[o&&d.jsxRuntimeExports.jsx(Ls,{id:f?.title,children:o}),i&&d.jsxRuntimeExports.jsx(Ws,{id:f?.description,display:"block",children:i})]}),s&&d.jsxRuntimeExports.jsx(so,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Vs(e={}){const{render:t,toastComponent:r=Nb}=e;return o=>typeof t=="function"?t({...o,...e}):d.jsxRuntimeExports.jsx(r,{...o,...e})}const Bb={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ze=Fb(Bb);function Fb(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(s=>s())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,s)=>{n(a=>({...a,[s]:a[s].filter(i=>i.id!=o)}))},notify:(o,s)=>{const a=Db(o,s),{position:i,id:c}=a;return n(u=>{const m=i.includes("top")?[a,...u[i]??[]]:[...u[i]??[],a];return{...u,[i]:m}}),c},update:(o,s)=>{o&&n(a=>{const i={...a},{position:c,index:u}=No(i,o);return c&&u!==-1&&(i[c][u]={...i[c][u],...s,message:Vs(s)}),i})},closeAll:({positions:o}={})=>{n(s=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,u)=>(c[u]=s[u].map(f=>({...f,requestClose:!0})),c),{...s}))},close:o=>{n(s=>{const a=Ns(s,o);return a?{...s,[a]:s[a].map(i=>i.id==o?{...i,requestClose:!0}:i)}:s})},isActive:o=>!!No(Ze.getState(),o).position}}let Do=0;function Db(e,t={}){Do+=1;const r=t.id??Do,n=t.position??"bottom";return{id:r,message:e,position:n,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Ze.removeToast(String(r),n),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[Hs,Ob]=ie({strict:!1,name:"PortalContext"}),ao="chakra-portal",Lb=".chakra-portal",Wb=e=>d.jsxRuntimeExports.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Vb=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=l.useState(null),s=l.useRef(null),[,a]=l.useState({});l.useEffect(()=>a({}),[]);const i=Ob(),c=mb();mt(()=>{if(!n)return;const f=n.ownerDocument,m=t?i??f.body:f.body;if(!m)return;s.current=f.createElement("div"),s.current.className=ao,m.appendChild(s.current),a({});const b=s.current;return()=>{m.contains(b)&&m.removeChild(b)}},[n]);const u=c?.zIndex?d.jsxRuntimeExports.jsx(Wb,{zIndex:c?.zIndex,children:r}):r;return s.current?Zo.createPortal(d.jsxRuntimeExports.jsx(Hs,{value:s.current,children:u}),s.current):d.jsxRuntimeExports.jsx("span",{ref:f=>{f&&o(f)}})},Hb=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,s=o??(typeof window<"u"?document.body:void 0),a=l.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=ao),c},[o]),[,i]=l.useState({});return mt(()=>i({}),[]),mt(()=>{if(!(!a||!s))return s.appendChild(a),()=>{s.removeChild(a)}},[a,s]),s&&a?Zo.createPortal(d.jsxRuntimeExports.jsx(Hs,{value:n?a:null,children:t}),a):null};function Lt(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?d.jsxRuntimeExports.jsx(Hb,{containerRef:r,...n}):d.jsxRuntimeExports.jsx(Vb,{...n})}Lt.className=ao;Lt.selector=Lb;Lt.displayName="Portal";const[qb,Gb]=ie({name:"ToastOptionsContext",strict:!1}),Ub=e=>{const t=l.useSyncExternalStore(Ze.subscribe,Ze.getState,Ze.getState),{motionVariants:r,component:n=Bs,portalProps:o,animatePresenceProps:s}=e,i=Object.keys(t).map(c=>{const u=t[c];return d.jsxRuntimeExports.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,id:`chakra-toast-manager-${c}`,style:yb(c),children:d.jsxRuntimeExports.jsx(d.AnimatePresence,{...s,initial:!1,children:u.map(f=>d.jsxRuntimeExports.jsx(n,{motionVariants:r,...f},f.id))})},c)});return d.jsxRuntimeExports.jsx(Lt,{...o,children:i})},Kb=e=>function({children:r,theme:n=e,toastOptions:o,...s}){return d.jsxRuntimeExports.jsxs(hb,{theme:n,...s,children:[d.jsxRuntimeExports.jsx(qb,{value:o?.defaultOptions,children:r}),d.jsxRuntimeExports.jsx(Ub,{...o})]})},Xb=Kb(tb);function Oo(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})}const Yb=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Lo(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Wo(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}const $n=typeof window<"u"?l.useLayoutEffect:l.useEffect,Vo=e=>e;var Zb=Object.defineProperty,Qb=(e,t,r)=>t in e?Zb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t,r)=>(Qb(e,typeof t!="symbol"?t+"":t,r),r);class Jb{constructor(){ae(this,"descendants",new Map),ae(this,"register",t=>{if(t!=null)return Yb(t)?this.registerNode(t):r=>{this.registerNode(r,t)}}),ae(this,"unregister",t=>{this.descendants.delete(t);const r=Oo(Array.from(this.descendants.keys()));this.assignIndex(r)}),ae(this,"destroy",()=>{this.descendants.clear()}),ae(this,"assignIndex",t=>{this.descendants.forEach(r=>{const n=t.indexOf(r.node);r.index=n,r.node.dataset.index=r.index.toString()})}),ae(this,"count",()=>this.descendants.size),ae(this,"enabledCount",()=>this.enabledValues().length),ae(this,"values",()=>Array.from(this.descendants.values()).sort((r,n)=>r.index-n.index)),ae(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),ae(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),ae(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),ae(this,"first",()=>this.item(0)),ae(this,"firstEnabled",()=>this.enabledItem(0)),ae(this,"last",()=>this.item(this.descendants.size-1)),ae(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),ae(this,"indexOf",t=>t?this.descendants.get(t)?.index??-1:-1),ae(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(r=>r.node.isSameNode(t))),ae(this,"next",(t,r=!0)=>{const n=Lo(t,this.count(),r);return this.item(n)}),ae(this,"nextEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),s=Lo(o,this.enabledCount(),r);return this.enabledItem(s)}),ae(this,"prev",(t,r=!0)=>{const n=Wo(t,this.count()-1,r);return this.item(n)}),ae(this,"prevEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),s=Wo(o,this.enabledCount()-1,r);return this.enabledItem(s)}),ae(this,"registerNode",(t,r)=>{if(!t||this.descendants.has(t))return;const n=Array.from(this.descendants.keys()).concat(t),o=Oo(n);r?.disabled&&(r.disabled=!!r.disabled);const s={node:t,index:-1,...r};this.descendants.set(t,s),this.assignIndex(o)})}}function eh(){const[e,t]=ie({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=l.useRef(new Jb);return $n(()=>()=>o.current.destroy()),o.current},o=>{const s=t(),[a,i]=l.useState(-1),c=l.useRef(null);$n(()=>()=>{c.current&&s.unregister(c.current)},[]),$n(()=>{if(!c.current)return;const f=Number(c.current.dataset.index);a!=f&&!Number.isNaN(f)&&i(f)});const u=Vo(o?s.register(o):s.register);return{descendants:s,index:a,enabledIndex:s.enabledIndexOf(c.current),register:ke(u,c)}}]}const Ho={easeIn:[.4,0,1,1],easeOut:[0,0,.2,1]},kt={enter:{duration:.2,ease:Ho.easeOut},exit:{duration:.1,ease:Ho.easeIn}},wt={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},qs=k("div");qs.displayName="Box";const[th,rh]=ie({strict:!1,name:"ButtonGroupContext"});function rr(e){const{children:t,className:r,...n}=e,o=l.isValidElement(t)?l.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=L("chakra-button__icon",r);return d.jsxRuntimeExports.jsx(k.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:s,children:o})}rr.displayName="ButtonIcon";function Ln(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=d.jsxRuntimeExports.jsx(Kr,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:a,...i}=e,c=L("chakra-button__spinner",s),u=r==="start"?"marginEnd":"marginStart",f=l.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return d.jsxRuntimeExports.jsx(k.div,{className:c,...i,__css:f,children:o})}Ln.displayName="ButtonSpinner";function nh(e){const[t,r]=l.useState(!e);return{ref:l.useCallback(s=>{s&&r(s.tagName==="BUTTON")},[]),type:t?"button":void 0}}const io=P((e,t)=>{const r=rh(),n=et("Button",{...r,...e}),{isDisabled:o=r?.isDisabled,isLoading:s,isActive:a,children:i,leftIcon:c,rightIcon:u,loadingText:f,iconSpacing:m="0.5rem",type:b,spinner:h,spinnerPlacement:g="start",className:y,as:x,shouldWrapChildren:$,...C}=he(e),w=l.useMemo(()=>{const R={...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:R}}},[n,r]),{ref:A,type:U}=nh(x),N={rightIcon:u,leftIcon:c,iconSpacing:m,children:i,shouldWrapChildren:$};return d.jsxRuntimeExports.jsxs(k.button,{disabled:o||s,ref:Bi(t,A),as:x,type:b??U,"data-active":V(a),"data-loading":V(s),__css:w,className:L("chakra-button",y),...C,children:[s&&g==="start"&&d.jsxRuntimeExports.jsx(Ln,{className:"chakra-button__spinner--start",label:f,placement:"start",spacing:m,children:h}),s?f||d.jsxRuntimeExports.jsx(k.span,{opacity:0,children:d.jsxRuntimeExports.jsx(qo,{...N})}):d.jsxRuntimeExports.jsx(qo,{...N}),s&&g==="end"&&d.jsxRuntimeExports.jsx(Ln,{className:"chakra-button__spinner--end",label:f,placement:"end",spacing:m,children:h})]})});io.displayName="Button";function qo(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o,shouldWrapChildren:s}=e;return s?d.jsxRuntimeExports.jsxs("span",{style:{display:"contents"},children:[t&&d.jsxRuntimeExports.jsx(rr,{marginEnd:o,children:t}),n,r&&d.jsxRuntimeExports.jsx(rr,{marginStart:o,children:r})]}):d.jsxRuntimeExports.jsxs(d.jsxRuntimeExports.Fragment,{children:[t&&d.jsxRuntimeExports.jsx(rr,{marginEnd:o,children:t}),n,r&&d.jsxRuntimeExports.jsx(rr,{marginStart:o,children:r})]})}const oh={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}}},sh={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Gs=P(function(t,r){const{size:n,colorScheme:o,variant:s,className:a,spacing:i="0.5rem",isAttached:c,isDisabled:u,orientation:f="horizontal",...m}=t,b=L("chakra-button__group",a),h=l.useMemo(()=>({size:n,colorScheme:o,variant:s,isDisabled:u}),[n,o,s,u]);let g={display:"inline-flex",...c?oh[f]:sh[f](i)};const y=f==="vertical";return d.jsxRuntimeExports.jsx(th,{value:h,children:d.jsxRuntimeExports.jsx(k.div,{ref:r,role:"group",__css:g,className:b,"data-attached":c?"":void 0,"data-orientation":f,flexDir:y?"column":void 0,...m})})});Gs.displayName="ButtonGroup";const Us=P((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":s,...a}=e,i=r||n,c=l.isValidElement(i)?l.cloneElement(i,{"aria-hidden":!0,focusable:!1}):null;return d.jsxRuntimeExports.jsx(io,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s,...a,children:c})});Us.displayName="IconButton";const[c0,ah]=ie({name:"CheckboxGroupContext",strict:!1});function ih(e){return d.jsxRuntimeExports.jsx(k.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:d.jsxRuntimeExports.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function lh(e){return d.jsxRuntimeExports.jsx(k.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:d.jsxRuntimeExports.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function ch(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?lh:ih;return r||t?d.jsxRuntimeExports.jsx(k.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:d.jsxRuntimeExports.jsx(o,{...n})}):null}const[dh,Ks]=ie({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[uh,Xr]=ie({strict:!1,name:"FormControlContext"});function fh(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:s,...a}=e,i=l.useId(),c=t||`field-${i}`,u=`${c}-label`,f=`${c}-feedback`,m=`${c}-helptext`,[b,h]=l.useState(!1),[g,y]=l.useState(!1),[x,$]=l.useState(!1),C=l.useCallback((R={},B=null)=>({id:m,...R,ref:ke(B,z=>{z&&y(!0)})}),[m]),w=l.useCallback((R={},B=null)=>({...R,ref:B,"data-focus":V(x),"data-disabled":V(o),"data-invalid":V(n),"data-readonly":V(s),id:R.id!==void 0?R.id:u,htmlFor:R.htmlFor!==void 0?R.htmlFor:c}),[c,o,x,n,s,u]),A=l.useCallback((R={},B=null)=>({id:f,...R,ref:ke(B,z=>{z&&h(!0)}),"aria-live":"polite"}),[f]),U=l.useCallback((R={},B=null)=>({...R,...a,ref:B,role:"group","data-focus":V(x),"data-disabled":V(o),"data-invalid":V(n),"data-readonly":V(s)}),[a,o,x,n,s]),N=l.useCallback((R={},B=null)=>({...R,ref:B,role:"presentation","aria-hidden":!0,children:R.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!s,isDisabled:!!o,isFocused:!!x,onFocus:()=>$(!0),onBlur:()=>$(!1),hasFeedbackText:b,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:y,id:c,labelId:u,feedbackId:f,helpTextId:m,htmlProps:a,getHelpTextProps:C,getErrorMessageProps:A,getRootProps:U,getLabelProps:w,getRequiredIndicatorProps:N}}const Xs=P(function(t,r){const n=je("Form",t),o=he(t),{getRootProps:s,htmlProps:a,...i}=fh(o),c=L("chakra-form-control",t.className);return d.jsxRuntimeExports.jsx(uh,{value:i,children:d.jsxRuntimeExports.jsx(dh,{value:n,children:d.jsxRuntimeExports.jsx(k.div,{...s({},r),className:c,__css:n.container})})})});Xs.displayName="FormControl";const ph=P(function(t,r){const n=Xr(),o=Ks(),s=L("chakra-form__helper-text",t.className);return d.jsxRuntimeExports.jsx(k.div,{...n?.getHelpTextProps(t,r),__css:o.helperText,className:s})});ph.displayName="FormHelperText";function Yr(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...s}=lo(e);return{...s,disabled:t,readOnly:n,required:o,"aria-invalid":it(r),"aria-required":it(o),"aria-readonly":it(n)}}function lo(e){const t=Xr(),{id:r,disabled:n,readOnly:o,required:s,isRequired:a,isInvalid:i,isReadOnly:c,isDisabled:u,onFocus:f,onBlur:m,...b}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&h.push(t.feedbackId),t?.hasHelpText&&h.push(t.helpTextId),{...b,"aria-describedby":h.join(" ")||void 0,id:r??t?.id,isDisabled:n??u??t?.isDisabled,isReadOnly:o??c??t?.isReadOnly,isRequired:s??a??t?.isRequired,isInvalid:i??t?.isInvalid,onFocus:q(t?.onFocus,f),onBlur:q(t?.onBlur,m)}}const mh={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function bh(e={}){const t=lo(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:s,id:a,onBlur:i,onFocus:c,"aria-describedby":u}=t,{defaultChecked:f,isChecked:m,isFocusable:b,onChange:h,isIndeterminate:g,name:y,value:x,tabIndex:$=void 0,"aria-label":C,"aria-labelledby":w,"aria-invalid":A,...U}=e,N=Wr(U,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),R=de(h),B=de(i),z=de(c),[S,M]=l.useState(!1),[Se,fe]=l.useState(!1),[pe,xe]=l.useState(!1),le=l.useRef(!1);l.useEffect(()=>d.trackFocusVisible(_=>{le.current=_}),[]);const F=l.useRef(null),[T,ee]=l.useState(!0),[Pe,K]=l.useState(!!f),Re=m!==void 0,D=Re?m:Pe,H=l.useCallback(_=>{if(n||r){_.preventDefault();return}Re||K(D?_.currentTarget.checked:g?!0:_.currentTarget.checked),R?.(_)},[n,r,D,Re,g,R]);mt(()=>{F.current&&(F.current.indeterminate=!!g)},[g]),bt(()=>{r&&M(!1)},[r,M]),mt(()=>{const _=F.current;if(!_?.form)return;const ce=()=>{K(!!f)};return _.form.addEventListener("reset",ce),()=>_.form?.removeEventListener("reset",ce)},[]);const re=r&&!b,ze=l.useCallback(_=>{_.key===" "&&xe(!0)},[xe]),Me=l.useCallback(_=>{_.key===" "&&xe(!1)},[xe]);mt(()=>{if(!F.current)return;F.current.checked!==D&&K(F.current.checked)},[F.current]);const Ge=l.useCallback((_={},ce=null)=>{const Fe=me=>{S&&me.preventDefault(),xe(!0)};return{..._,ref:ce,"data-active":V(pe),"data-hover":V(Se),"data-checked":V(D),"data-focus":V(S),"data-focus-visible":V(S&&le.current),"data-indeterminate":V(g),"data-disabled":V(r),"data-invalid":V(s),"data-readonly":V(n),"aria-hidden":!0,onMouseDown:q(_.onMouseDown,Fe),onMouseUp:q(_.onMouseUp,()=>xe(!1)),onMouseEnter:q(_.onMouseEnter,()=>fe(!0)),onMouseLeave:q(_.onMouseLeave,()=>fe(!1))}},[pe,D,r,S,Se,g,s,n]),Ae=l.useCallback((_={},ce=null)=>({..._,ref:ce,"data-active":V(pe),"data-hover":V(Se),"data-checked":V(D),"data-focus":V(S),"data-focus-visible":V(S&&le.current),"data-indeterminate":V(g),"data-disabled":V(r),"data-invalid":V(s),"data-readonly":V(n)}),[pe,D,r,S,Se,g,s,n]),Ne=l.useCallback((_={},ce=null)=>({...N,..._,ref:ke(ce,Fe=>{Fe&&ee(Fe.tagName==="LABEL")}),onClick:q(_.onClick,()=>{T||(F.current?.click(),requestAnimationFrame(()=>{F.current?.focus({preventScroll:!0})}))}),"data-disabled":V(r),"data-checked":V(D),"data-invalid":V(s)}),[N,r,D,s,T]),Be=l.useCallback((_={},ce=null)=>({..._,ref:ke(F,ce),type:"checkbox",name:y,value:x,id:a,tabIndex:$,onChange:q(_.onChange,H),onBlur:q(_.onBlur,B,()=>M(!1)),onFocus:q(_.onFocus,z,()=>M(!0)),onKeyDown:q(_.onKeyDown,ze),onKeyUp:q(_.onKeyUp,Me),required:o,checked:D,disabled:re,readOnly:n,"aria-label":C,"aria-labelledby":w,"aria-invalid":A?!!A:s,"aria-describedby":u,"aria-disabled":r,"aria-checked":g?"mixed":D,style:mh}),[y,x,a,$,H,B,z,ze,Me,o,D,re,n,C,w,A,s,u,r,g]),J=l.useCallback((_={},ce=null)=>({..._,ref:ce,onMouseDown:q(_.onMouseDown,hh),"data-disabled":V(r),"data-checked":V(D),"data-invalid":V(s)}),[D,r,s]);return{state:{isInvalid:s,isFocused:S,isChecked:D,isActive:pe,isHovered:Se,isIndeterminate:g,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Ne,getCheckboxProps:Ge,getIndicatorProps:Ae,getInputProps:Be,getLabelProps:J,htmlProps:N}}function hh(e){e.preventDefault(),e.stopPropagation()}function gh(e){const[t,r]=l.useState(e),[n,o]=l.useState(!1);return e!==t&&(o(!0),r(e)),n}const xh={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},yh={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Sh=d.keyframes({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),vh=d.keyframes({from:{opacity:0},to:{opacity:1}}),kh=d.keyframes({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Ys=P(function(t,r){const n=ah(),o={...n,...t},s=je("Checkbox",o),a=he(t),{spacing:i="0.5rem",className:c,children:u,iconColor:f,iconSize:m,icon:b=d.jsxRuntimeExports.jsx(ch,{}),isChecked:h,isDisabled:g=n?.isDisabled,onChange:y,inputProps:x,...$}=a;let C=h;n?.value&&a.value&&(C=n.value.includes(a.value));let w=y;n?.onChange&&a.value&&(w=ai(n.onChange,y));const{state:A,getInputProps:U,getCheckboxProps:N,getLabelProps:R,getRootProps:B}=bh({...$,isDisabled:g,isChecked:C,onChange:w}),z=gh(A.isChecked),S=l.useMemo(()=>({animation:z?A.isIndeterminate?`${vh} 20ms linear, ${kh} 200ms linear`:`${Sh} 200ms linear`:void 0,...s.icon,...Lr({fontSize:m,color:f})}),[f,m,z,A.isIndeterminate,s.icon]),M=l.cloneElement(b,{__css:S,isIndeterminate:A.isIndeterminate,isChecked:A.isChecked});return d.jsxRuntimeExports.jsxs(k.label,{__css:{...yh,...s.container},className:L("chakra-checkbox",c),...B(),children:[d.jsxRuntimeExports.jsx("input",{className:"chakra-checkbox__input",...U(x,r)}),d.jsxRuntimeExports.jsx(k.span,{__css:{...xh,...s.control},className:"chakra-checkbox__control",...N(),children:M}),u&&d.jsxRuntimeExports.jsx(k.span,{className:"chakra-checkbox__label",...R(),__css:{marginStart:i,...s.label},children:u})]})});Ys.displayName="Checkbox";const Zs=P(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:s,borderRightWidth:a,borderWidth:i,borderStyle:c,borderColor:u,...f}=et("Divider",t),{className:m,orientation:b="horizontal",__css:h,...g}=he(t),y={vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:o||s||i||"1px",width:"100%"}};return d.jsxRuntimeExports.jsx(k.hr,{ref:r,"aria-orientation":b,...g,__css:{...f,border:"0",borderColor:u,borderStyle:c,...y[b],...h},className:L("chakra-divider",m)})});Zs.displayName="Divider";const Qs=P(function(t,r){const{direction:n,align:o,justify:s,wrap:a,basis:i,grow:c,shrink:u,...f}=t,m={display:"flex",flexDirection:n,alignItems:o,justifyContent:s,flexWrap:a,flexBasis:i,flexGrow:c,flexShrink:u};return d.jsxRuntimeExports.jsx(k.div,{ref:r,__css:m,...f})});Qs.displayName="Flex";const wh=d.FocusLockCombination.default??d.FocusLockCombination,Js=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:s,isDisabled:a,autoFocus:i,persistentFocus:c,lockFocusAcrossFrames:u}=e,f=l.useCallback(()=>{t?.current?t.current.focus():n?.current&&pi(n.current).length===0&&requestAnimationFrame(()=>{n.current?.focus()})},[t,n]),m=l.useCallback(()=>{r?.current?.focus()},[r]),b=o&&!r;return d.jsxRuntimeExports.jsx(wh,{crossFrame:u,persistentFocus:c,autoFocus:i,disabled:a,onActivation:f,onDeactivation:m,returnFocus:b,children:s})};Js.displayName="FocusLock";const ea=P(function(t,r){const n=et("FormLabel",t),o=he(t),{className:s,children:a,requiredIndicator:i=d.jsxRuntimeExports.jsx(ta,{}),optionalIndicator:c=null,...u}=o,f=Xr(),m=f?.getLabelProps(u,r)??{ref:r,...u};return d.jsxRuntimeExports.jsxs(k.label,{...m,className:L("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...n},children:[a,f?.isRequired?i:c]})});ea.displayName="FormLabel";const ta=P(function(t,r){const n=Xr(),o=Ks();if(!n?.isRequired)return null;const s=L("chakra-form__required-indicator",t.className);return d.jsxRuntimeExports.jsx(k.span,{...n?.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:s})});ta.displayName="RequiredIndicator";const co=P(function(t,r){const{htmlSize:n,...o}=t,s=je("Input",o),a=he(o),i=Yr(a),c=L("chakra-input",t.className);return d.jsxRuntimeExports.jsx(k.input,{size:n,...i,__css:s.field,ref:r,className:c})});co.displayName="Input";co.id="Input";const[Ch,Eh]=ie({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),ra=P(function(t,r){const n=je("Input",t),{children:o,className:s,...a}=he(t),i=L("chakra-input__group",s),c={},u=ns(o),f=n.field;u.forEach(b=>{n&&(f&&b.type.id==="InputLeftElement"&&(c.paddingStart=f.height??f.h),f&&b.type.id==="InputRightElement"&&(c.paddingEnd=f.height??f.h),b.type.id==="InputRightAddon"&&(c.borderEndRadius=0),b.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const m=u.map(b=>{const h=Lr({size:b.props?.size||t.size,variant:b.props?.variant||t.variant});return b.type.id!=="Input"?l.cloneElement(b,h):l.cloneElement(b,Object.assign(h,c,b.props))});return d.jsxRuntimeExports.jsx(k.div,{className:i,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...a,children:d.jsxRuntimeExports.jsx(Ch,{value:n,children:m})})});ra.displayName="InputGroup";const Rh=k("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Zr=P(function(t,r){const{placement:n="left",...o}=t,s=Eh(),a=s.field,c={[n==="left"?"insetStart":"insetEnd"]:"0",width:a?.height??a?.h,height:a?.height??a?.h,fontSize:a?.fontSize,...s.element};return d.jsxRuntimeExports.jsx(Rh,{ref:r,__css:c,...o})});Zr.id="InputElement";Zr.displayName="InputElement";const uo=P(function(t,r){const{className:n,...o}=t,s=L("chakra-input__left-element",n);return d.jsxRuntimeExports.jsx(Zr,{ref:r,placement:"left",className:s,...o})});uo.id="InputLeftElement";uo.displayName="InputLeftElement";const na=P(function(t,r){const{className:n,...o}=t,s=L("chakra-input__right-element",n);return d.jsxRuntimeExports.jsx(Zr,{ref:r,placement:"right",className:s,...o})});na.id="InputRightElement";na.displayName="InputRightElement";function $h(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=bb(),s=Array.isArray(e)?e:[e];let a=Array.isArray(n)?n:[n];a=a.filter(u=>u!=null);const[i,c]=l.useState(()=>s.map((u,f)=>({media:u,matches:r?!!a[f]:o().matchMedia(u).matches})));return l.useEffect(()=>{const u=o();c(s.map(b=>({media:b,matches:u.matchMedia(b).matches})));const f=s.map(b=>u.matchMedia(b)),m=b=>{c(h=>h.slice().map(g=>g.media===b.media?{...g,matches:b.matches}:g))};return f.forEach(b=>{typeof b.addListener=="function"?b.addListener(m):b.addEventListener("change",m)}),()=>{f.forEach(b=>{typeof b.removeListener=="function"?b.removeListener(m):b.removeEventListener("change",m)})}},[o]),i.map(u=>u.matches)}function _h(e){const t=_e(e)?e:{fallback:e??"base"},n=Rt().__breakpoints.details.map(({minMaxQuery:i,breakpoint:c})=>({breakpoint:c,query:i.replace("@media screen and ","")})),o=n.map(i=>i.breakpoint===t.fallback),a=$h(n.map(i=>i.query),{fallback:o,ssr:t.ssr}).findIndex(i=>i==!0);return n[a]?.breakpoint??t.fallback}function Ph(e,t,r=ls){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let o=r.indexOf(t);for(;o>=0;){const s=r[o];if(e.hasOwnProperty(s)){n=o;break}o-=1}if(n!==-1){const s=r[n];return e[s]}}function Th(e,t){const r=_e(t)?t:{fallback:t??"base"},n=_h(r),o=Rt();if(!n)return;const s=Array.from(o.__breakpoints?.keys||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(vi(e,s)).map(([i,c])=>[i,c])):e;return Ph(a,n,s)}const _t=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),ve={arrowShadowColor:_t("--popper-arrow-shadow-color"),arrowSize:_t("--popper-arrow-size","8px"),arrowSizeHalf:_t("--popper-arrow-size-half"),arrowBg:_t("--popper-arrow-bg"),transformOrigin:_t("--popper-transform-origin"),arrowOffset:_t("--popper-arrow-offset")};function Ih(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)"}const jh={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"},zh=e=>jh[e],Go={scroll:!0,resize:!0};function Mh(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Go,...e}}:t={enabled:e,options:Go},t}const Ah={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`}},Nh={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Uo(e)},effect:({state:e})=>()=>{Uo(e)}},Uo=e=>{e.elements.popper.style.setProperty(ve.transformOrigin.var,zh(e.placement))},Bh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Fh(e)}},Fh=e=>{if(!e.placement)return;const t=Dh(e.placement);if(e.elements?.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:ve.arrowSize.varRef,height:ve.arrowSize.varRef,zIndex:-1});const r={[ve.arrowSizeHalf.var]:`calc(${ve.arrowSize.varRef} / 2 - 1px)`,[ve.arrowOffset.var]:`calc(${ve.arrowSizeHalf.varRef} * -1)`};for(const n in r)e.elements.arrow.style.setProperty(n,r[n])}},Dh=e=>{if(e.startsWith("top"))return{property:"bottom",value:ve.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:ve.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:ve.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:ve.arrowOffset.varRef}},Oh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Ko(e)},effect:({state:e})=>()=>{Ko(e)}},Ko=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=Ih(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:ve.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},Lh={"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"}},Wh={"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 Vh(e,t="ltr"){const r=Lh[e]?.[t]||e;return t==="ltr"?r:Wh[e]??r}function oa(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:s=8,eventListeners:a=!0,offset:i,gutter:c=8,flip:u=!0,boundary:f="clippingParents",preventOverflow:m=!0,matchWidth:b,direction:h="ltr"}=e,g=l.useRef(null),y=l.useRef(null),x=l.useRef(null),$=Vh(n,h),C=l.useRef(()=>{}),w=l.useCallback(()=>{!t||!g.current||!y.current||(C.current?.(),x.current=d.createPopper(g.current,y.current,{placement:$,modifiers:[Oh,Bh,Nh,{...Ah,enabled:!!b},{name:"eventListeners",...Mh(a)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:i??[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!m,options:{boundary:f}},...r??[]],strategy:o}),x.current.forceUpdate(),C.current=x.current.destroy)},[$,t,r,b,a,s,i,c,u,m,f,o]);l.useEffect(()=>()=>{!g.current&&!y.current&&(x.current?.destroy(),x.current=null)},[]);const A=l.useCallback(S=>{g.current=S,w()},[w]),U=l.useCallback((S={},M=null)=>({...S,ref:ke(A,M)}),[A]),N=l.useCallback(S=>{y.current=S,w()},[w]),R=l.useCallback((S={},M=null)=>({...S,ref:ke(N,M),style:{...S.style,position:o,minWidth:b?void 0:"max-content",inset:"0 auto auto 0"}}),[o,N,b]),B=l.useCallback((S={},M=null)=>{const{size:Se,shadowColor:fe,bg:pe,style:xe,...le}=S;return{...le,ref:M,"data-popper-arrow":"",style:Hh(S)}},[]),z=l.useCallback((S={},M=null)=>({...S,ref:M,"data-popper-arrow-inner":""}),[]);return{update(){x.current?.update()},forceUpdate(){x.current?.forceUpdate()},transformOrigin:ve.transformOrigin.varRef,referenceRef:A,popperRef:N,getPopperProps:R,getArrowProps:B,getArrowInnerProps:z,getReferenceProps:U}}function Hh(e){const{size:t,shadowColor:r,bg:n,style:o}=e,s={...o,position:"absolute"};return t&&(s["--popper-arrow-size"]=t),r&&(s["--popper-arrow-shadow-color"]=r),n&&(s["--popper-arrow-bg"]=n),s}const[qh,d0,Gh,u0]=eh(),[Uh,f0]=ie({strict:!1,name:"MenuContext"});function Kh(e){return e?.ownerDocument??document}function Xh(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:s=!0,isLazy:a,isOpen:i,defaultIsOpen:c,onClose:u,onOpen:f,placement:m="bottom-start",lazyBehavior:b="unmount",direction:h,computePositionOnMount:g=!1,...y}=e,x=l.useRef(null),$=l.useRef(null),C=l.useRef(!0),w=Gh(),A=l.useCallback(()=>{requestAnimationFrame(()=>{x.current?.focus({preventScroll:!1})})},[]),U=l.useCallback(()=>{const D=setTimeout(()=>{if(o)o.current?.focus();else if(!w.count())x.current?.focus({preventScroll:!1});else{const H=w.firstEnabled();H&&pe(H.index)}});ee.current.add(D)},[w,o]),N=l.useCallback(()=>{const D=setTimeout(()=>{if(!w.count())x.current?.focus({preventScroll:!1});else{const H=w.lastEnabled();H&&pe(H.index)}});ee.current.add(D)},[w]),R=l.useCallback(()=>{f?.(),s?U():A()},[s,U,A,f]),{isOpen:B,onOpen:z,onClose:S,onToggle:M}=Gn({isOpen:i,defaultIsOpen:c,onClose:u,onOpen:R});Fi({enabled:B&&n,ref:x,handler:D=>{const H=D.composedPath?.()?.[0]??D.target;$.current?.contains(H)||S()}});const Se=oa({...y,enabled:B||g,placement:m,direction:h}),[fe,pe]=l.useState(-1);Ii(x,{focusRef:$,visible:B});const xe=$i({isOpen:B,ref:x}),[le,F]=zi(t,"menu-button","menu-list"),T=l.useCallback(()=>{z(),A()},[z,A]),ee=l.useRef(new Set([]));l.useEffect(()=>{const D=ee.current;return()=>{D.forEach(H=>clearTimeout(H)),D.clear()}},[]),bt(()=>{B||(pe(-1),x.current?.scrollTo(0,0))},[B]),bt(()=>{B&&fe===-1&&A()},[fe,B]),l.useEffect(()=>{if(!B)return;w.item(fe)?.node?.focus({preventScroll:!C.current})},[w,fe,B]);const Pe=l.useCallback(()=>{z(),U()},[U,z]),K=l.useCallback(()=>{C.current=!0,z(),N()},[z,N]),Re=l.useCallback(()=>{const D=Kh(x.current),H=x.current?.contains(D.activeElement);if(!(B&&!H))return;w.item(fe)?.node?.focus({preventScroll:!C.current})},[B,fe,w]);return{openAndFocusMenu:T,openAndFocusFirstItem:Pe,openAndFocusLastItem:K,onTransitionEnd:Re,unstable__animationState:xe,descendants:w,popper:Se,buttonId:le,menuId:F,forceUpdate:Se.forceUpdate,orientation:"vertical",isOpen:B,onToggle:M,onOpen:z,onClose:S,menuRef:x,buttonRef:$,focusedIndex:fe,closeOnSelect:r,closeOnBlur:n,autoSelect:s,setFocusedIndex:pe,isLazy:a,lazyBehavior:b,initialFocusRef:o,scrollIntoViewRef:C}}const[Yh,Zh]=ie({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),sa=e=>{const{children:t}=e,r=je("Menu",e),n=he(e),{direction:o}=Rt(),{descendants:s,...a}=Xh({...n,direction:o}),i=l.useMemo(()=>a,[a]),{isOpen:c,onClose:u,forceUpdate:f}=i;return d.jsxRuntimeExports.jsx(qh,{value:s,children:d.jsxRuntimeExports.jsx(Uh,{value:i,children:d.jsxRuntimeExports.jsx(Yh,{value:r,children:Te(t,{isOpen:c,onClose:u,forceUpdate:f})})})})};sa.displayName="Menu";const aa=e=>{const{className:t,children:r,...n}=e,o=Zh(),s=l.Children.only(r),a=l.isValidElement(s)?l.cloneElement(s,{focusable:"false","aria-hidden":!0,className:L("chakra-menu__icon",s.props.className)}):null,i=L("chakra-menu__icon-wrapper",t);return d.jsxRuntimeExports.jsx(k.span,{className:i,...n,__css:o.icon,children:a})};aa.displayName="MenuIcon";var Qh=Object.defineProperty,Jh=(e,t,r)=>t in e?Qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eg=(e,t,r)=>(Jh(e,t+"",r),r);class tg{constructor(){eg(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const r=Array.from(this.modals)[this.modals.size-1];return t===r}}const Wn=new tg;function ia(e,t){const[r,n]=l.useState(0);return l.useEffect(()=>{const o=e.current;if(o){if(t){const s=Wn.add(o);n(s)}return()=>{Wn.remove(o),n(0)}}},[t,e]),r}function rg(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:s=!0,useInert:a=!0,onOverlayClick:i,onEsc:c}=e,u=l.useRef(null),f=l.useRef(null),[m,b,h]=og(n,"chakra-modal","chakra-modal--header","chakra-modal--body");ng(u,t&&a);const g=ia(u,t),y=l.useRef(null),x=l.useCallback(z=>{y.current=z.target},[]),$=l.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),s&&r?.(),c?.())},[s,r,c]),[C,w]=l.useState(!1),[A,U]=l.useState(!1),N=l.useCallback((z={},S=null)=>({role:"dialog",...z,ref:ke(S,u),id:m,tabIndex:-1,"aria-modal":!0,"aria-labelledby":C?b:void 0,"aria-describedby":A?h:void 0,onClick:q(z.onClick,M=>M.stopPropagation())}),[h,A,m,b,C]),R=l.useCallback(z=>{z.stopPropagation(),y.current===z.target&&Wn.isTopModal(u.current)&&(o&&r?.(),i?.())},[r,o,i]),B=l.useCallback((z={},S=null)=>({...z,ref:ke(S,f),onClick:q(z.onClick,R),onKeyDown:q(z.onKeyDown,$),onMouseDown:q(z.onMouseDown,x)}),[$,x,R]);return{isOpen:t,onClose:r,headerId:b,bodyId:h,setBodyMounted:U,setHeaderMounted:w,dialogRef:u,overlayRef:f,getDialogProps:N,getDialogContainerProps:B,index:g}}function ng(e,t){const r=e.current;l.useEffect(()=>{if(!(!e.current||!t))return d.hideOthers(e.current)},[t,e,r])}function og(e,...t){const r=l.useId(),n=e||r;return l.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}const[sg,Wt]=ie({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[ag,Et]=ie({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),la=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:r,children:n,autoFocus:o,trapFocus:s,initialFocusRef:a,finalFocusRef:i,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:f,preserveScrollBarGap:m,motionPreset:b,lockFocusAcrossFrames:h,animatePresenceProps:g,onCloseComplete:y}=t,x=je("Modal",t),C={...rg(t),autoFocus:o,trapFocus:s,initialFocusRef:a,finalFocusRef:i,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:f,preserveScrollBarGap:m,motionPreset:b,lockFocusAcrossFrames:h};return d.jsxRuntimeExports.jsx(ag,{value:C,children:d.jsxRuntimeExports.jsx(sg,{value:x,children:d.jsxRuntimeExports.jsx(d.AnimatePresence,{...g,onExitComplete:y,children:C.isOpen&&d.jsxRuntimeExports.jsx(Lt,{...r,children:n})})})})};la.displayName="Modal";function ig(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:a,finalFocusRef:i,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:f,isOpen:m}=Et(),[b,h]=d.usePresence();l.useEffect(()=>{!b&&h&&setTimeout(h)},[b,h]);const g=ia(n,m);return d.jsxRuntimeExports.jsx(Js,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:i,restoreFocus:c,contentRef:n,lockFocusAcrossFrames:f,children:d.jsxRuntimeExports.jsx(d.ReactRemoveScroll,{removeScrollBar:!u,allowPinchZoom:a,enabled:g===1&&s,forwardProps:!0,children:e.children})})}const lg={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,x:e,y:t,transition:r?.exit??wt.exit(kt.exit,o),transitionEnd:n?.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:e?.enter??wt.enter(kt.enter,r),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:s})=>{const a={x:t,y:e};return{opacity:0,transition:r?.exit??wt.exit(kt.exit,s),...o?{...a,transitionEnd:n?.exit}:{transitionEnd:{...a,...n?.exit}}}}},nr={initial:"initial",animate:"enter",exit:"exit",variants:lg},cg=l.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:s=!0,className:a,offsetX:i=0,offsetY:c=8,transition:u,transitionEnd:f,delay:m,animatePresenceProps:b,...h}=t,g=n?o&&n:!0,y=o||n?"enter":"exit",x={offsetX:i,offsetY:c,reverse:s,transition:u,transitionEnd:f,delay:m};return d.jsxRuntimeExports.jsx(d.AnimatePresence,{...b,custom:x,children:g&&d.jsxRuntimeExports.jsx(d.motion.div,{ref:r,className:L("chakra-offset-slide",a),custom:x,...nr,animate:y,...h})})});cg.displayName="SlideFade";const dg={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:n?.exit}:{transitionEnd:{scale:t,...n?.exit}},transition:r?.exit??wt.exit(kt.exit,o)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:t?.enter??wt.enter(kt.enter,r),transitionEnd:e?.enter})},ca={initial:"exit",animate:"enter",exit:"exit",variants:dg},ug=l.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:s=!0,initialScale:a=.95,className:i,transition:c,transitionEnd:u,delay:f,animatePresenceProps:m,...b}=t,h=n?o&&n:!0,g=o||n?"enter":"exit",y={initialScale:a,reverse:s,transition:c,transitionEnd:u,delay:f};return d.jsxRuntimeExports.jsx(d.AnimatePresence,{...m,custom:y,children:h&&d.jsxRuntimeExports.jsx(d.motion.div,{ref:r,className:L("chakra-offset-slide",i),...ca,animate:g,custom:y,...b})})});ug.displayName="ScaleFade";const fg={slideInBottom:{...nr,custom:{offsetY:16,reverse:!0}},slideInRight:{...nr,custom:{offsetX:16,reverse:!0}},slideInTop:{...nr,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...nr,custom:{offsetX:-16,reverse:!0}},scale:{...ca,custom:{initialScale:.95,reverse:!0}},none:{}},pg=k(d.motion.section),mg=e=>fg[e||"none"],da=l.forwardRef((e,t)=>{const{preset:r,motionProps:n=mg(r),...o}=e;return d.jsxRuntimeExports.jsx(pg,{ref:t,...n,...o})});da.displayName="ModalTransition";const ua=P((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:s,...a}=e,{getDialogProps:i,getDialogContainerProps:c}=Et(),u=i(a,t),f=c(o),m=L("chakra-modal__content",r),b=Wt(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...b.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...b.dialogContainer},{motionPreset:y}=Et();return d.jsxRuntimeExports.jsx(ig,{children:d.jsxRuntimeExports.jsx(k.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:d.jsxRuntimeExports.jsx(da,{preset:y,motionProps:s,className:m,...u,__css:h,children:n})})})});ua.displayName="ModalContent";const fa=P((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:s}=Et();l.useEffect(()=>(s(!0),()=>s(!1)),[s]);const a=L("chakra-modal__body",r),i=Wt();return d.jsxRuntimeExports.jsx(k.div,{ref:t,className:a,id:o,...n,__css:i.body})});fa.displayName="ModalBody";const pa=P((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:s}=Et(),a=L("chakra-modal__close-btn",n),i=Wt();return d.jsxRuntimeExports.jsx(so,{ref:t,__css:i.closeButton,className:a,onClick:q(r,c=>{c.stopPropagation(),s()}),...o})});pa.displayName="ModalCloseButton";const ma=P((e,t)=>{const{className:r,...n}=e,o=L("chakra-modal__footer",r),s=Wt(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...s.footer};return d.jsxRuntimeExports.jsx(k.footer,{ref:t,...n,__css:a,className:o})});ma.displayName="ModalFooter";const ba=P((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:s}=Et();l.useEffect(()=>(s(!0),()=>s(!1)),[s]);const a=L("chakra-modal__header",r),i=Wt(),c={flex:0,...i.header};return d.jsxRuntimeExports.jsx(k.header,{ref:t,className:a,id:o,...n,__css:c})});ba.displayName="ModalHeader";const bg={enter:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:1,transition:e?.enter??wt.enter(kt.enter,r),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:0,transition:e?.exit??wt.exit(kt.exit,r),transitionEnd:t?.exit})},ha={initial:"exit",animate:"enter",exit:"exit",variants:bg},hg=l.forwardRef(function(t,r){const{unmountOnExit:n,in:o,className:s,transition:a,transitionEnd:i,delay:c,animatePresenceProps:u,...f}=t,m=o||n?"enter":"exit",b=n?o&&n:!0,h={transition:a,transitionEnd:i,delay:c};return d.jsxRuntimeExports.jsx(d.AnimatePresence,{...u,custom:h,children:b&&d.jsxRuntimeExports.jsx(d.motion.div,{ref:r,className:L("chakra-fade",s),custom:h,...ha,animate:m,...f})})});hg.displayName="Fade";const gg=k(d.motion.div),ga=P((e,t)=>{const{className:r,transition:n,motionProps:o,...s}=e,a=L("chakra-modal__overlay",r),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Wt().overlay},{motionPreset:u}=Et(),m=o||(u==="none"?{}:ha);return d.jsxRuntimeExports.jsx(gg,{...m,__css:c,ref:t,className:a,...s})});ga.displayName="ModalOverlay";const xg=e=>d.jsxRuntimeExports.jsx(qe,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("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"})}),yg=e=>d.jsxRuntimeExports.jsx(qe,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("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 Xo(e,t,r,n){l.useEffect(()=>{if(!e.current||!n)return;const o=e.current.ownerDocument.defaultView??window,s=Array.isArray(t)?t:[t],a=new o.MutationObserver(i=>{for(const c of i)c.type==="attributes"&&c.attributeName&&s.includes(c.attributeName)&&r(c)});return a.observe(e.current,{attributes:!0,attributeFilter:s}),()=>a.disconnect()})}const Sg=50,Yo=300;function vg(e,t){const[r,n]=l.useState(!1),[o,s]=l.useState(null),[a,i]=l.useState(!0),c=l.useRef(null),u=()=>clearTimeout(c.current);Mi(()=>{o==="increment"&&e(),o==="decrement"&&t()},r?Sg:null);const f=l.useCallback(()=>{a&&e(),c.current=setTimeout(()=>{i(!1),n(!0),s("increment")},Yo)},[e,a]),m=l.useCallback(()=>{a&&t(),c.current=setTimeout(()=>{i(!1),n(!0),s("decrement")},Yo)},[t,a]),b=l.useCallback(()=>{i(!0),n(!1),u()},[]);return l.useEffect(()=>()=>u(),[]),{up:f,down:m,stop:b,isSpinning:r}}const kg=/^[Ee0-9+\-.]$/;function wg(e){return kg.test(e)}function Cg(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 Eg(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:o=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:i,isDisabled:c,isRequired:u,isInvalid:f,pattern:m="[0-9]*(.[0-9]+)?",inputMode:b="decimal",allowMouseWheel:h,id:g,onChange:y,precision:x,name:$,"aria-describedby":C,"aria-label":w,"aria-labelledby":A,onFocus:U,onBlur:N,onInvalid:R,getAriaValueText:B,isValidCharacter:z,format:S,parse:M,...Se}=e,fe=de(U),pe=de(N),xe=de(R),le=de(z??wg),F=de(B),T=Pi(e),{update:ee,increment:Pe,decrement:K}=T,[Re,D]=l.useState(!1),H=!(i||c),re=l.useRef(null),ze=l.useRef(null),Me=l.useRef(null),Ge=l.useRef(null),Ae=l.useCallback(v=>v.split("").filter(le).join(""),[le]),Ne=l.useCallback(v=>M?.(v)??v,[M]),Be=l.useCallback(v=>(S?.(v)??v).toString(),[S]);bt(()=>{(T.valueAsNumber>s||T.valueAsNumber<o)&&xe?.("rangeOverflow",Be(T.value),T.valueAsNumber)},[T.valueAsNumber,T.value,Be,xe]),mt(()=>{if(!re.current)return;if(re.current.value!=T.value){const se=Ne(re.current.value);T.setValue(Ae(se))}},[Ne,Ae]);const J=l.useCallback((v=a)=>{H&&Pe(v)},[Pe,H,a]),X=l.useCallback((v=a)=>{H&&K(v)},[K,H,a]),_=vg(J,X);Xo(Me,"disabled",_.stop,_.isSpinning),Xo(Ge,"disabled",_.stop,_.isSpinning);const ce=l.useCallback(v=>{if(v.nativeEvent.isComposing)return;const we=Ne(v.currentTarget.value);ee(Ae(we)),ze.current={start:v.currentTarget.selectionStart,end:v.currentTarget.selectionEnd}},[ee,Ae,Ne]),Fe=l.useCallback(v=>{fe?.(v),ze.current&&(v.currentTarget.selectionStart=ze.current.start??v.currentTarget.value?.length,v.currentTarget.selectionEnd=ze.current.end??v.currentTarget.selectionStart)},[fe]),me=l.useCallback(v=>{if(v.nativeEvent.isComposing)return;Cg(v,le)||v.preventDefault();const se=Vt(v)*a,we=v.key,gt={ArrowUp:()=>J(se),ArrowDown:()=>X(se),Home:()=>ee(o),End:()=>ee(s)}[we];gt&&(v.preventDefault(),gt(v))},[le,a,J,X,ee,o,s]),Vt=v=>{let se=1;return(v.metaKey||v.ctrlKey)&&(se=.1),v.shiftKey&&(se=10),se},Ht=l.useMemo(()=>{const v=F?.(T.value);if(v!=null)return v;const se=T.value.toString();return se||void 0},[T.value,F]),qt=l.useCallback(()=>{let v=T.value;if(T.value==="")return;/^[eE]/.test(T.value.toString())?T.setValue(""):(T.valueAsNumber<o&&(v=o),T.valueAsNumber>s&&(v=s),T.cast(v))},[T,s,o]),Gt=l.useCallback(()=>{D(!1),r&&qt()},[r,D,qt]),ht=l.useCallback(()=>{t&&requestAnimationFrame(()=>{re.current?.focus()})},[t]),Ut=l.useCallback(v=>{v.preventDefault(),_.up(),ht()},[ht,_]),br=l.useCallback(v=>{v.preventDefault(),_.down(),ht()},[ht,_]);or(()=>re.current,"wheel",v=>{const we=(re.current?.ownerDocument??document).activeElement===re.current;if(!h||!we)return;v.preventDefault();const Le=Vt(v)*a,gt=Math.sign(v.deltaY);gt===-1?J(Le):gt===1&&X(Le)},{passive:!1});const tn=l.useCallback((v={},se=null)=>{const we=c||n&&T.isAtMax;return{...v,ref:ke(se,Me),role:"button",tabIndex:-1,onPointerDown:q(v.onPointerDown,Le=>{Le.button!==0||we||Ut(Le)}),onPointerLeave:q(v.onPointerLeave,_.stop),onPointerUp:q(v.onPointerUp,_.stop),disabled:we,"aria-disabled":it(we)}},[T.isAtMax,n,Ut,_.stop,c]),rn=l.useCallback((v={},se=null)=>{const we=c||n&&T.isAtMin;return{...v,ref:ke(se,Ge),role:"button",tabIndex:-1,onPointerDown:q(v.onPointerDown,Le=>{Le.button!==0||we||br(Le)}),onPointerLeave:q(v.onPointerLeave,_.stop),onPointerUp:q(v.onPointerUp,_.stop),disabled:we,"aria-disabled":it(we)}},[T.isAtMin,n,br,_.stop,c]),nn=l.useCallback((v={},se=null)=>({name:$,inputMode:b,type:"text",pattern:m,"aria-labelledby":A,"aria-label":w,"aria-describedby":C,id:g,disabled:c,role:"spinbutton",...v,readOnly:v.readOnly??i,"aria-readonly":v.readOnly??i,"aria-required":v.required??u,required:v.required??u,ref:ke(re,se),value:Be(T.value),"aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":Number.isNaN(T.valueAsNumber)?void 0:T.valueAsNumber,"aria-invalid":it(f??T.isOutOfRange),"aria-valuetext":Ht,autoComplete:"off",autoCorrect:"off",onChange:q(v.onChange,ce),onKeyDown:q(v.onKeyDown,me),onFocus:q(v.onFocus,Fe,()=>D(!0)),onBlur:q(v.onBlur,pe,Gt)}),[$,b,m,A,w,Be,C,g,c,u,i,f,T.value,T.valueAsNumber,T.isOutOfRange,o,s,Ht,ce,me,Fe,pe,Gt]);return{value:Be(T.value),valueAsNumber:T.valueAsNumber,isFocused:Re,isDisabled:c,isReadOnly:i,getIncrementButtonProps:tn,getDecrementButtonProps:rn,getInputProps:nn,htmlProps:Se}}const[Rg,Qr]=ie({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[$g,fo]=ie({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),xa=P(function(t,r){const n=je("NumberInput",t),o=he(t),s=lo(o),{htmlProps:a,...i}=Eg(s),c=l.useMemo(()=>i,[i]);return d.jsxRuntimeExports.jsx($g,{value:c,children:d.jsxRuntimeExports.jsx(Rg,{value:n,children:d.jsxRuntimeExports.jsx(k.div,{...a,ref:r,className:L("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});xa.displayName="NumberInput";const _g=P(function(t,r){const n=Qr();return d.jsxRuntimeExports.jsx(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}})});_g.displayName="NumberInputStepper";const ya=P(function(t,r){const{getInputProps:n}=fo(),o=n(t,r),s=Qr();return d.jsxRuntimeExports.jsx(k.input,{...o,className:L("chakra-numberinput__field",t.className),__css:{width:"100%",...s.field}})});ya.displayName="NumberInputField";const Sa=k("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Pg=P(function(t,r){const n=Qr(),{getDecrementButtonProps:o}=fo(),s=o(t,r);return d.jsxRuntimeExports.jsx(Sa,{...s,__css:n.stepper,children:t.children??d.jsxRuntimeExports.jsx(xg,{})})});Pg.displayName="NumberDecrementStepper";const Tg=P(function(t,r){const{getIncrementButtonProps:n}=fo(),o=n(t,r),s=Qr();return d.jsxRuntimeExports.jsx(Sa,{...o,__css:s.stepper,children:t.children??d.jsxRuntimeExports.jsx(yg,{})})});Tg.displayName="NumberIncrementStepper";function Ig(e){const t=Oa.version;return typeof t!="string"||t.startsWith("18.")?e?.ref:e?.props?.ref}const va=P(function(t,r){const{children:n,placeholder:o,className:s,...a}=t;return d.jsxRuntimeExports.jsxs(k.select,{...a,ref:r,className:L("chakra-select",s),children:[o&&d.jsxRuntimeExports.jsx("option",{value:"",children:o}),n]})});va.displayName="SelectField";const ka=P((e,t)=>{const r=je("Select",e),{rootProps:n,placeholder:o,icon:s,color:a,height:i,h:c,minH:u,minHeight:f,iconColor:m,iconSize:b,...h}=he(e),[g,y]=Ei(h,$l),x=Yr(y),$={width:"100%",height:"fit-content",position:"relative",color:a},C={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...r.field?._focus}};return d.jsxRuntimeExports.jsxs(k.div,{className:"chakra-select__wrapper",__css:$,...g,...n,children:[d.jsxRuntimeExports.jsx(va,{ref:t,height:c??i,minH:u??f,placeholder:o,...x,__css:C,children:e.children}),d.jsxRuntimeExports.jsx(wa,{"data-disabled":V(x.disabled),...(m||a)&&{color:m||a},__css:r.icon,...b&&{fontSize:b},children:s})]})});ka.displayName="Select";const jg=e=>d.jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),zg=k("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),wa=e=>{const{children:t=d.jsxRuntimeExports.jsx(jg,{}),...r}=e,n=l.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return d.jsxRuntimeExports.jsx(zg,{...r,className:"chakra-select__icon-wrapper",children:l.isValidElement(t)?n:null})};wa.displayName="SelectIcon";function Mg(e){return{root:`slider-root-${e}`,getThumb:t=>`slider-thumb-${e}-${t}`,getInput:t=>`slider-input-${e}-${t}`,track:`slider-track-${e}`,innerTrack:`slider-filled-track-${e}`,getMarker:t=>`slider-marker-${e}-${t}`,output:`slider-output-${e}`}}function Mr(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function Ag(e){const{orientation:t,thumbPercents:r,isReversed:n}=e,o=h=>({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...Mr({orientation:t,vertical:{bottom:`${r[h]}%`,transform:"translate(-50%, 50%) scale(var(--slider-thumb-scale, 1))"},horizontal:{left:`${r[h]}%`,transform:"translate(-50%, -50%) scale(var(--slider-thumb-scale, 1))"}})}),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},a={position:"absolute",...Mr({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},i=r.length===1,c=[0,n?100-r[0]:r[0]],u=i?c:r;let f=u[0];!i&&n&&(f=100-f);const m=Math.abs(u[u.length-1]-u[0]),b={...a,...Mr({orientation:t,vertical:n?{height:`${m}%`,top:`${f}%`}:{height:`${m}%`,bottom:`${f}%`},horizontal:n?{width:`${m}%`,right:`${f}%`}:{width:`${m}%`,left:`${f}%`}})};return{trackStyle:a,innerTrackStyle:b,rootStyle:s,getThumbStyle:o}}function Ng(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function Bg(e){const{min:t=0,max:r=100,onChange:n,value:o,defaultValue:s,isReversed:a,direction:i="ltr",orientation:c="horizontal",id:u,isDisabled:f,isReadOnly:m,onChangeStart:b,onChangeEnd:h,step:g=1,getAriaValueText:y,"aria-valuetext":x,"aria-label":$,"aria-labelledby":C,name:w,focusThumbOnChange:A=!0,minStepsBetweenThumbs:U=0,...N}=e,R=de(b),B=de(h),z=de(y),S=Ng({isReversed:a,direction:i,orientation:c}),[M,Se]=_i({value:o,defaultValue:s??[25,75],onChange:n});if(!Array.isArray(M))throw new TypeError(`[range-slider] You passed an invalid value for \`value\` or \`defaultValue\`, expected \`Array\` but got \`${typeof M}\``);const[fe,pe]=l.useState(!1),[xe,le]=l.useState(!1),[F,T]=l.useState(-1),ee=!(f||m),Pe=l.useRef(M),K=M.map(E=>In(E,t,r)),Re=U*g,D=Fg(K,t,r,Re),H=l.useRef({eventSource:null,value:[],valueBounds:[]});H.current.value=K,H.current.valueBounds=D;const re=K.map(E=>r-E+t),Me=(S?re:K).map(E=>ho(E,t,r)),Ge=c==="vertical",Ae=l.useRef(null),Ne=l.useRef(null),Be=l.useId(),X=Mg(u??Be),_=l.useCallback(E=>{if(!Ae.current)return;H.current.eventSource="pointer";const W=Ae.current.getBoundingClientRect(),{clientX:O,clientY:ne}=E.touches?.[0]??E,ye=Ge?W.bottom-ne:O-W.left,tt=Ge?W.height:W.width;let Ue=ye/tt;return S&&(Ue=1-Ue),xi(Ue,t,r)},[Ge,S,r,t]),ce=(r-t)/10,Fe=g||(r-t)/100,me=l.useMemo(()=>({setValueAtIndex(E,W){if(!ee)return;const O=H.current.valueBounds[E];W=parseFloat(yi(W,O.min,Fe)),W=In(W,O.min,O.max);const ne=[...H.current.value];ne[E]=W,Se(ne)},setActiveIndex:T,stepUp(E,W=Fe){const O=H.current.value[E],ne=S?O-W:O+W;me.setValueAtIndex(E,ne)},stepDown(E,W=Fe){const O=H.current.value[E],ne=S?O+W:O-W;me.setValueAtIndex(E,ne)},reset(){Se(Pe.current)}}),[Fe,S,Se,ee]),Vt=l.useCallback(E=>{const W=E.key,ne={ArrowRight:()=>me.stepUp(F),ArrowUp:()=>me.stepUp(F),ArrowLeft:()=>me.stepDown(F),ArrowDown:()=>me.stepDown(F),PageUp:()=>me.stepUp(F,ce),PageDown:()=>me.stepDown(F,ce),Home:()=>{const{min:ye}=D[F];me.setValueAtIndex(F,ye)},End:()=>{const{max:ye}=D[F];me.setValueAtIndex(F,ye)}}[W];ne&&(E.preventDefault(),E.stopPropagation(),ne(E),H.current.eventSource="keyboard")},[me,F,ce,D]),{getThumbStyle:Ht,rootStyle:qt,trackStyle:Gt,innerTrackStyle:ht}=l.useMemo(()=>Ag({isReversed:S,orientation:c,thumbPercents:Me}),[S,c,Me]),Ut=l.useCallback(E=>{const W=E??F;if(W!==-1&&A){const O=X.getThumb(W),ne=Ne.current?.ownerDocument.getElementById(O);ne&&setTimeout(()=>ne.focus())}},[A,F,X]);bt(()=>{H.current.eventSource==="keyboard"&&B?.(H.current.value)},[K,B]);const br=E=>{const W=_(E)||0,O=H.current.value.map(Kt=>Math.abs(Kt-W)),ne=Math.min(...O);let ye=O.indexOf(ne);const tt=O.filter(Kt=>Kt===ne);tt.length>1&&W>H.current.value[ye]&&(ye=ye+tt.length-1),T(ye),me.setValueAtIndex(ye,W),Ut(ye)},tn=E=>{if(F==-1)return;const W=_(E)||0;T(F),me.setValueAtIndex(F,W),Ut(F)};Ui(Ne,{onPanSessionStart(E){ee&&(pe(!0),br(E),R?.(H.current.value))},onPanSessionEnd(){ee&&(pe(!1),B?.(H.current.value))},onPan(E){ee&&tn(E)}});const rn=l.useCallback((E={},W=null)=>({...E,...N,id:X.root,ref:ke(W,Ne),tabIndex:-1,"aria-disabled":it(f),"data-focused":V(xe),style:{...E.style,...qt}}),[N,f,xe,qt,X]),nn=l.useCallback((E={},W=null)=>({...E,ref:ke(W,Ae),id:X.track,"data-disabled":V(f),style:{...E.style,...Gt}}),[f,Gt,X]),v=l.useCallback((E={},W=null)=>({...E,ref:W,id:X.innerTrack,style:{...E.style,...ht}}),[ht,X]),se=l.useCallback((E,W=null)=>{const{index:O,...ne}=E,ye=K[O];if(ye==null)throw new TypeError(`[range-slider > thumb] Cannot find value at index \`${O}\`. The \`value\` or \`defaultValue\` length is : ${K.length}`);const tt=D[O];return{...ne,ref:W,role:"slider",tabIndex:ee?0:void 0,id:X.getThumb(O),"data-active":V(fe&&F===O),"aria-valuetext":z?.(ye)??x?.[O],"aria-valuemin":tt.min,"aria-valuemax":tt.max,"aria-valuenow":ye,"aria-orientation":c,"aria-disabled":it(f),"aria-readonly":it(m),"aria-label":$?.[O],"aria-labelledby":$?.[O]?void 0:C?.[O],style:{...E.style,...Ht(O)},onKeyDown:q(E.onKeyDown,Vt),onFocus:q(E.onFocus,()=>{le(!0),T(O)}),onBlur:q(E.onBlur,()=>{le(!1),T(-1)})}},[X,K,D,ee,fe,F,z,x,c,f,m,$,C,Ht,Vt,le]),we=l.useCallback((E={},W=null)=>({...E,ref:W,id:X.output,htmlFor:K.map((O,ne)=>X.getThumb(ne)).join(" "),"aria-live":"off"}),[X,K]),Le=l.useCallback((E,W=null)=>{const{value:O,...ne}=E,ye=!(O<t||O>r),tt=O>=K[0]&&O<=K[K.length-1];let Ue=ho(O,t,r);Ue=S?100-Ue:Ue;const Kt={position:"absolute",pointerEvents:"none",...Mr({orientation:c,vertical:{bottom:`${Ue}%`},horizontal:{left:`${Ue}%`}})};return{...ne,ref:W,id:X.getMarker(E.value),role:"presentation","aria-hidden":!0,"data-disabled":V(f),"data-invalid":V(!ye),"data-highlighted":V(tt),style:{...E.style,...Kt}}},[f,S,r,t,c,K,X]),gt=l.useCallback((E,W=null)=>{const{index:O,...ne}=E;return{...ne,ref:W,id:X.getInput(O),type:"hidden",value:K[O],name:Array.isArray(w)?w[O]:`${w}-${O}`}},[w,K,X]);return{state:{value:K,isFocused:xe,isDragging:fe,getThumbPercent:E=>Me[E],getThumbMinValue:E=>D[E].min,getThumbMaxValue:E=>D[E].max},actions:me,getRootProps:rn,getTrackProps:nn,getInnerTrackProps:v,getThumbProps:se,getMarkerProps:Le,getInputProps:gt,getOutputProps:we}}function Fg(e,t,r,n){return e.map((o,s)=>{const a=s===0?t:e[s-1]+n,i=s===e.length-1?r:e[s+1]-n;return{min:a,max:i}})}const[Dg,Jr]=ie({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <RangeSlider />"}),[Og,en]=ie({name:"RangeSliderStylesContext",errorMessage:`useRangeSliderStyles returned is 'undefined'. Seems you forgot to wrap the components in "<RangeSlider />" `}),Ca=P(function(t,r){const n={orientation:"horizontal",...t},o=je("Slider",n),s=he(n),{direction:a}=Rt();s.direction=a;const{getRootProps:i,...c}=Bg(s),u=l.useMemo(()=>({...c,name:n.name}),[c,n.name]);return d.jsxRuntimeExports.jsx(Dg,{value:u,children:d.jsxRuntimeExports.jsx(Og,{value:o,children:d.jsxRuntimeExports.jsx(k.div,{...i({},r),className:"chakra-slider",__css:o.container,children:n.children})})})});Ca.displayName="RangeSlider";const Ea=P(function(t,r){const{getThumbProps:n,getInputProps:o,name:s}=Jr(),a=en(),i=n(t,r);return d.jsxRuntimeExports.jsxs(k.div,{...i,className:L("chakra-slider__thumb",t.className),__css:a.thumb,children:[i.children,s&&d.jsxRuntimeExports.jsx("input",{...o({index:t.index})})]})});Ea.displayName="RangeSliderThumb";const Ra=P(function(t,r){const{getTrackProps:n}=Jr(),o=en(),s=n(t,r);return d.jsxRuntimeExports.jsx(k.div,{...s,className:L("chakra-slider__track",t.className),__css:o.track,"data-testid":"chakra-range-slider-track"})});Ra.displayName="RangeSliderTrack";const $a=P(function(t,r){const{getInnerTrackProps:n}=Jr(),o=en(),s=n(t,r);return d.jsxRuntimeExports.jsx(k.div,{...s,className:"chakra-slider__filled-track",__css:o.filledTrack})});$a.displayName="RangeSliderFilledTrack";const _a=P(function(t,r){const{getMarkerProps:n}=Jr(),o=en(),s=n(t,r);return d.jsxRuntimeExports.jsx(k.div,{...s,className:L("chakra-slider__marker",t.className),__css:o.mark})});_a.displayName="RangeSliderMark";const Pa=e=>d.jsxRuntimeExports.jsx(k.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Pa.displayName="StackItem";function Lg(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{"&":Si(r,o=>n[o])}}const po=P((e,t)=>{const{isInline:r,direction:n,align:o,justify:s,spacing:a="0.5rem",wrap:i,children:c,divider:u,className:f,shouldWrapChildren:m,...b}=e,h=r?"row":n??"column",g=l.useMemo(()=>Lg({spacing:a,direction:h}),[a,h]),y=!!u,x=!m&&!y,$=l.useMemo(()=>{const w=ns(c);return x?w:w.map((A,U)=>{const N=typeof A.key<"u"?A.key:U,R=U+1===w.length,z=m?d.jsxRuntimeExports.jsx(Pa,{children:A},N):A;if(!y)return z;const S=l.cloneElement(u,{__css:g}),M=R?null:S;return d.jsxRuntimeExports.jsxs(l.Fragment,{children:[z,M]},N)})},[u,g,y,x,m,c]),C=L("chakra-stack",f);return d.jsxRuntimeExports.jsx(k.div,{ref:t,display:"flex",alignItems:o,justifyContent:s,flexDirection:h,flexWrap:i,gap:y?void 0:a,className:C,...b,children:$})});po.displayName="Stack";const Ta=P((e,t)=>d.jsxRuntimeExports.jsx(po,{align:"center",...e,direction:"row",ref:t}));Ta.displayName="HStack";const Ia=P((e,t)=>d.jsxRuntimeExports.jsx(po,{align:"center",...e,direction:"column",ref:t}));Ia.displayName="VStack";const[Wg,mr]=ie({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),ja=P((e,t)=>{const r=je("Table",e),{className:n,layout:o,...s}=he(e);return d.jsxRuntimeExports.jsx(Wg,{value:r,children:d.jsxRuntimeExports.jsx(k.table,{ref:t,__css:{tableLayout:o,...r.table},className:L("chakra-table",n),...s})})});ja.displayName="Table";const Vg=P((e,t)=>{const{overflow:r,overflowX:n,className:o,...s}=e;return d.jsxRuntimeExports.jsx(k.div,{ref:t,className:L("chakra-table__container",o),...s,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:r??n??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Hg=P((e,t)=>{const r=mr();return d.jsxRuntimeExports.jsx(k.tbody,{...e,ref:t,__css:r.tbody})}),qg=P(({isNumeric:e,...t},r)=>{const n=mr();return d.jsxRuntimeExports.jsx(k.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),Gg=P(({isNumeric:e,...t},r)=>{const n=mr();return d.jsxRuntimeExports.jsx(k.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),Ug=P((e,t)=>{const r=mr();return d.jsxRuntimeExports.jsx(k.thead,{...e,ref:t,__css:r.thead})}),Kg=P((e,t)=>{const r=mr();return d.jsxRuntimeExports.jsx(k.tr,{...e,ref:t,__css:r.tr})}),[Xg,za]=ie({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),Ma=P((e,t)=>{const r=je("Tag",e),n=he(e),o={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return d.jsxRuntimeExports.jsx(Xg,{value:r,children:d.jsxRuntimeExports.jsx(k.span,{ref:t,...n,__css:o})})});Ma.displayName="Tag";const Yg=P((e,t)=>{const r=za();return d.jsxRuntimeExports.jsx(k.span,{ref:t,noOfLines:1,...e,__css:r.label})});Yg.displayName="TagLabel";const Zg=P((e,t)=>d.jsxRuntimeExports.jsx(qe,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));Zg.displayName="TagLeftIcon";const Qg=P((e,t)=>d.jsxRuntimeExports.jsx(qe,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));Qg.displayName="TagRightIcon";const Aa=e=>d.jsxRuntimeExports.jsx(qe,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});Aa.displayName="TagCloseIcon";const Jg=P((e,t)=>{const{isDisabled:r,children:n,...o}=e,a={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...za().closeButton};return d.jsxRuntimeExports.jsx(k.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:r,__css:a,children:n||d.jsxRuntimeExports.jsx(Aa,{})})});Jg.displayName="TagCloseButton";const e0=["h","minH","height","minHeight"],Na=P((e,t)=>{const r=et("Textarea",e),{className:n,rows:o,...s}=he(e),a=Yr(s),i=o?Wr(r,e0):r;return d.jsxRuntimeExports.jsx(k.textarea,{ref:t,rows:o,...a,className:L("chakra-textarea",n),__css:i})});Na.displayName="Textarea";function t0(e,t){const r=e??"bottom";return{"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"}}[r]?.[t]??r}function r0(e,t){const r=o=>({...t,...o,position:t0(o?.position??t?.position,e)}),n=o=>{const s=r(o),a=Vs(s);return Ze.notify(a,s)};return n.update=(o,s)=>{Ze.update(o,r(s))},n.promise=(o,s)=>{const a=n({...s.loading,status:"loading",duration:null});o.then(i=>n.update(a,{status:"success",duration:5e3,...Te(s.success,i)})).catch(i=>n.update(a,{status:"error",duration:5e3,...Te(s.error,i)}))},n.closeAll=Ze.closeAll,n.close=Ze.close,n.isActive=Ze.isActive,n}function n0(e){const{theme:t}=Fs(),r=Gb();return l.useMemo(()=>r0(t.direction,{...r,...e}),[e,t.direction,r])}const o0={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]}}}},Vn=e=>e.current?.ownerDocument||document,Ar=e=>e.current?.ownerDocument?.defaultView||window;function s0(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:s,closeOnPointerDown:a=o,closeOnEsc:i=!0,onOpen:c,onClose:u,placement:f,id:m,isOpen:b,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:y,arrowPadding:x,modifiers:$,isDisabled:C,gutter:w,offset:A,direction:U,...N}=e,{isOpen:R,onOpen:B,onClose:z}=Gn({isOpen:b,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:S,getPopperProps:M,getArrowInnerProps:Se,getArrowProps:fe}=oa({enabled:R,placement:f,arrowPadding:x,modifiers:$,gutter:w,offset:A,direction:U}),pe=l.useId(),le=`tooltip-${m??pe}`,F=l.useRef(null),T=l.useRef(void 0),ee=l.useCallback(()=>{T.current&&(clearTimeout(T.current),T.current=void 0)},[]),Pe=l.useRef(void 0),K=l.useCallback(()=>{Pe.current&&(clearTimeout(Pe.current),Pe.current=void 0)},[]),Re=l.useCallback(()=>{K(),z()},[z,K]),D=a0(F,Re),H=l.useCallback(()=>{if(!C&&!T.current){R&&D();const J=Ar(F);T.current=J.setTimeout(B,t)}},[D,C,R,B,t]),re=l.useCallback(()=>{ee();const J=Ar(F);Pe.current=J.setTimeout(Re,r)},[r,Re,ee]),ze=l.useCallback(()=>{R&&n&&re()},[n,re,R]),Me=l.useCallback(()=>{R&&a&&re()},[a,re,R]),Ge=l.useCallback(J=>{R&&J.key==="Escape"&&re()},[R,re]);or(()=>Vn(F),"keydown",i?Ge:void 0),or(()=>{if(!s)return null;const J=F.current;if(!J)return null;const X=cs(J);return X.localName==="body"?Ar(F):X},"scroll",()=>{R&&s&&Re()},{passive:!0,capture:!0}),l.useEffect(()=>{C&&(ee(),R&&z())},[C,R,z,ee]),l.useEffect(()=>()=>{ee(),K()},[ee,K]),or(()=>F.current,"pointerleave",re);const Ae=l.useCallback((J={},X=null)=>({...J,ref:ke(F,X,S),onPointerEnter:q(J.onPointerEnter,ce=>{ce.pointerType!=="touch"&&H()}),onClick:q(J.onClick,ze),onPointerDown:q(J.onPointerDown,Me),onFocus:q(J.onFocus,H),onBlur:q(J.onBlur,re),"aria-describedby":R?le:void 0}),[H,re,Me,R,le,ze,S]),Ne=l.useCallback((J={},X=null)=>M({...J,style:{...J.style,[ve.arrowSize.var]:g?`${g}px`:void 0,[ve.arrowShadowColor.var]:y}},X),[M,g,y]),Be=l.useCallback((J={},X=null)=>{const _={...J.style,position:"relative",transformOrigin:ve.transformOrigin.varRef};return{ref:X,...N,...J,id:le,role:"tooltip",style:_}},[N,le]);return{isOpen:R,show:H,hide:re,getTriggerProps:Ae,getTooltipProps:Be,getTooltipPositionerProps:Ne,getArrowProps:fe,getArrowInnerProps:Se}}const _n="chakra-ui:close-tooltip";function a0(e,t){return l.useEffect(()=>{const r=Vn(e);return r.addEventListener(_n,t),()=>r.removeEventListener(_n,t)},[t,e]),()=>{const r=Vn(e),n=Ar(e);r.dispatchEvent(new n.CustomEvent(_n))}}const i0=k(d.motion.div),Ba=P((e,t)=>{const r=et("Tooltip",e),n=he(e),o=Rt(),{children:s,label:a,shouldWrapChildren:i,"aria-label":c,hasArrow:u,bg:f,portalProps:m,background:b,backgroundColor:h,bgColor:g,motionProps:y,animatePresenceProps:x,...$}=n,C=b??h??f??g;if(C){r.bg=C;const S=Bl(o,"colors",C);r[ve.arrowBg.var]=S}const w=s0({...$,direction:o.direction}),A=!l.isValidElement(s)||i;let U;if(A)U=d.jsxRuntimeExports.jsx(k.span,{display:"inline-block",tabIndex:0,...w.getTriggerProps(),children:s});else{const S=l.Children.only(s);U=l.cloneElement(S,w.getTriggerProps(S.props,Ig(S)))}const N=!!c,R=w.getTooltipProps({},t),B=N?Wr(R,["role","id"]):R,z=is(R,["role","id"]);return a?d.jsxRuntimeExports.jsxs(d.jsxRuntimeExports.Fragment,{children:[U,d.jsxRuntimeExports.jsx(d.AnimatePresence,{...x,children:w.isOpen&&d.jsxRuntimeExports.jsx(Lt,{...m,children:d.jsxRuntimeExports.jsx(k.div,{...w.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"},children:d.jsxRuntimeExports.jsxs(i0,{variants:o0,initial:"exit",animate:"enter",exit:"exit",...y,...B,__css:r,children:[a,N&&d.jsxRuntimeExports.jsx(k.span,{srOnly:!0,...z,children:c}),u&&d.jsxRuntimeExports.jsx(k.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:d.jsxRuntimeExports.jsx(k.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}})})]})})})})]}):d.jsxRuntimeExports.jsx(d.jsxRuntimeExports.Fragment,{children:s})});Ba.displayName="Tooltip";const Fa=P(function(t,r){const n=et("Text",t),{className:o,align:s,decoration:a,casing:i,...c}=he(t),u=Lr({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return d.jsxRuntimeExports.jsx(k.p,{ref:r,className:L("chakra-text",t.className),...u,...c,__css:n})});Fa.displayName="Text";exports.Alert=no;exports.AlertIcon=oo;exports.Box=qs;exports.Button=io;exports.ButtonGroup=Gs;exports.ChakraProvider=Xb;exports.Checkbox=Ys;exports.Divider=Zs;exports.Flex=Qs;exports.FormControl=Xs;exports.FormLabel=ea;exports.HStack=Ta;exports.Icon=qe;exports.IconButton=Us;exports.Input=co;exports.InputGroup=ra;exports.InputLeftElement=uo;exports.Menu=sa;exports.MenuIcon=aa;exports.Modal=la;exports.ModalBody=fa;exports.ModalCloseButton=pa;exports.ModalContent=ua;exports.ModalFooter=ma;exports.ModalHeader=ba;exports.ModalOverlay=ga;exports.NumberInput=xa;exports.NumberInputField=ya;exports.RangeSlider=Ca;exports.RangeSliderFilledTrack=$a;exports.RangeSliderMark=_a;exports.RangeSliderThumb=Ea;exports.RangeSliderTrack=Ra;exports.Select=ka;exports.Spinner=Kr;exports.Table=ja;exports.TableContainer=Vg;exports.Tag=Ma;exports.Tbody=Hg;exports.Td=qg;exports.Text=Fa;exports.Textarea=Na;exports.Th=Gg;exports.Thead=Ug;exports.Tooltip=Ba;exports.Tr=Kg;exports.VStack=Ia;exports.chakra=k;exports.useBreakpointValue=Th;exports.useColorModeValue=rb;exports.useDisclosure=Gn;exports.useFormControl=Yr;exports.useMultiStyleConfig=je;exports.useStyleConfig=et;exports.useTheme=Rt;exports.useToast=n0;