@commercetools/nimbus 0.0.4-rc3 → 0.0.4-rc5

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.
package/dist/index.cjs CHANGED
@@ -1,4 +1,27 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@chakra-ui/react"),W=require("@commercetools/nimbus-tokens"),x=require("react/jsx-runtime"),a=require("react"),ps=require("@emotion/is-prop-valid"),Ie=require("react-dom"),Co=require("next-themes"),ee=require("@commercetools/nimbus-icons"),vs=require("react-hotkeys-hook"),bs=require("react-use"),wo=S.defineRecipe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:hs}=S.createRecipeContext({recipe:wo}),gs=hs("figure");function ms(r,e){return r.split("")[0].toUpperCase()+e.split("")[0].toUpperCase()}const Eo=a.forwardRef((r,e)=>{const{firstName:t,lastName:n,src:o,alt:i,...l}=r,s=`${t} ${n}`,u={"aria-label":`${s} avatar`,ref:e,...l};return x.jsx(gs,{...u,children:o?x.jsx(S.Image,{src:o,alt:i||s}):ms(t,n)})});Eo.displayName="Avatar";const ve=a.forwardRef((r,e)=>x.jsx(S.Box,{ref:e,...r}));ve.displayName="Box";const z=typeof document<"u"?a.useLayoutEffect:()=>{};function Z(r){const e=a.useRef(null);return z(()=>{e.current=r},[r]),a.useCallback((...t)=>{const n=e.current;return n==null?void 0:n(...t)},[])}function ys(r){let[e,t]=a.useState(r),n=a.useRef(null),o=Z(()=>{if(!n.current)return;let l=n.current.next();if(l.done){n.current=null;return}e===l.value?o():t(l.value)});z(()=>{n.current&&o()});let i=Z(l=>{n.current=l(e),o()});return[e,i]}const Kt={prefix:String(Math.round(Math.random()*1e10)),current:0},To=a.createContext(Kt),$s=a.createContext(!1);let xs=!!(typeof window<"u"&&window.document&&window.document.createElement),rr=new WeakMap;function Ps(r=!1){let e=a.useContext(To),t=a.useRef(null);if(t.current===null&&!r){var n,o;let i=(o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let l=rr.get(i);l==null?rr.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==l.state&&(e.current=l.id,rr.delete(i))}t.current=++e.current}return t.current}function Ss(r){let e=a.useContext(To);e===Kt&&!xs&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=Ps(!!r),n=e===Kt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return r||`${n}-${t}`}function Cs(r){let e=a.useId(),[t]=a.useState(Se()),n=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Kt.prefix}`;return r||`${n}-${e}`}const ws=typeof a.useId=="function"?Cs:Ss;function Es(){return!1}function Ts(){return!0}function Ds(r){return()=>{}}function Se(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Ds,Es,Ts):a.useContext($s)}let ks=!!(typeof window<"u"&&window.document&&window.document.createElement),ye=new Map;function Y(r){let[e,t]=a.useState(r),n=a.useRef(null),o=ws(e),i=a.useCallback(l=>{n.current=l},[]);return ks&&(ye.has(o)&&!ye.get(o).includes(i)?ye.set(o,[...ye.get(o),i]):ye.set(o,[i])),z(()=>{let l=o;return()=>{ye.delete(l)}},[o]),a.useEffect(()=>{let l=n.current;l&&(n.current=null,t(l))}),o}function Rs(r,e){if(r===e)return r;let t=ye.get(r);if(t)return t.forEach(o=>o(e)),e;let n=ye.get(e);return n?(n.forEach(o=>o(r)),r):e}function at(r=[]){let e=Y(),[t,n]=ys(e),o=a.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return z(o,[e,o,...r]),t}function xe(...r){return(...e)=>{for(let t of r)typeof t=="function"&&t(...e)}}const j=r=>{var e;return(e=r==null?void 0:r.ownerDocument)!==null&&e!==void 0?e:document},le=r=>r&&"window"in r&&r.window===r?r:j(r).defaultView||window;function Do(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(e=0;e<o;e++)r[e]&&(t=Do(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function Ks(){for(var r,e,t=0,n="",o=arguments.length;t<o;t++)(r=arguments[t])&&(e=Do(r))&&(n&&(n+=" "),n+=e);return n}function I(...r){let e={...r[0]};for(let t=1;t<r.length;t++){let n=r[t];for(let o in n){let i=e[o],l=n[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=xe(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?e[o]=Ks(i,l):o==="id"&&i&&l?e.id=Rs(i,l):e[o]=l!==void 0?l:i}}return e}function ko(...r){return r.length===1&&r[0]?r[0]:e=>{for(let t of r)typeof t=="function"?t(e):t!=null&&(t.current=e)}}const Fs=new Set(["id"]),Ms=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ls=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),As=/^(data-.*)$/;function G(r,e={}){let{labelable:t,isLink:n,propNames:o}=e,i={};for(const l in r)Object.prototype.hasOwnProperty.call(r,l)&&(Fs.has(l)||t&&Ms.has(l)||n&&Ls.has(l)||o!=null&&o.has(l)||As.test(l))&&(i[l]=r[l]);return i}function be(r){if(Is())r.focus({preventScroll:!0});else{let e=Bs(r);r.focus(),Ns(e)}}let Pt=null;function Is(){if(Pt==null){Pt=!1;try{document.createElement("div").focus({get preventScroll(){return Pt=!0,!0}})}catch{}}return Pt}function Bs(r){let e=r.parentNode,t=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&t.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),t}function Ns(r){for(let{element:e,scrollTop:t,scrollLeft:n}of r)e.scrollTop=t,e.scrollLeft=n}function zt(r){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(t=>r.test(t.brand)))||r.test(window.navigator.userAgent)}function zr(r){var e;return typeof window<"u"&&window.navigator!=null?r.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function he(r){let e=null;return()=>(e==null&&(e=r()),e)}const Pe=he(function(){return zr(/^Mac/i)}),Os=he(function(){return zr(/^iPhone/i)}),Ro=he(function(){return zr(/^iPad/i)||Pe()&&navigator.maxTouchPoints>1}),Ht=he(function(){return Os()||Ro()}),zs=he(function(){return Pe()||Ht()}),Hr=he(function(){return zt(/AppleWebKit/i)&&!Ko()}),Ko=he(function(){return zt(/Chrome/i)}),Vr=he(function(){return zt(/Android/i)}),Hs=he(function(){return zt(/Firefox/i)}),Vs=a.createContext({isNative:!0,open:_s,useHref:r=>r});function Vt(){return a.useContext(Vs)}function js(r,e){let t=r.getAttribute("target");return(!t||t==="_self")&&r.origin===location.origin&&!r.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Fe(r,e,t=!0){var n,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:u}=e;Hs()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&r.target==="_blank"&&(Pe()?i=!0:l=!0);let c=Hr()&&Pe()&&!Ro()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:u,bubbles:!0,cancelable:!0});Fe.isOpening=t,be(r),r.dispatchEvent(c),Fe.isOpening=!1}Fe.isOpening=!1;function Ws(r,e){if(r instanceof HTMLAnchorElement)e(r);else if(r.hasAttribute("data-href")){let t=document.createElement("a");t.href=r.getAttribute("data-href"),r.hasAttribute("data-target")&&(t.target=r.getAttribute("data-target")),r.hasAttribute("data-rel")&&(t.rel=r.getAttribute("data-rel")),r.hasAttribute("data-download")&&(t.download=r.getAttribute("data-download")),r.hasAttribute("data-ping")&&(t.ping=r.getAttribute("data-ping")),r.hasAttribute("data-referrer-policy")&&(t.referrerPolicy=r.getAttribute("data-referrer-policy")),r.appendChild(t),e(t),r.removeChild(t)}}function _s(r,e){Ws(r,t=>Fe(t,e))}function Fo(r){let e=Vt();var t;const n=e.useHref((t=r==null?void 0:r.href)!==null&&t!==void 0?t:"");return{href:r!=null&&r.href?n:void 0,target:r==null?void 0:r.target,rel:r==null?void 0:r.rel,download:r==null?void 0:r.download,ping:r==null?void 0:r.ping,referrerPolicy:r==null?void 0:r.referrerPolicy}}let je=new Map,yr=new Set;function Rn(){if(typeof window>"u")return;function r(n){return"propertyName"in n}let e=n=>{if(!r(n)||!n.target)return;let o=je.get(n.target);o||(o=new Set,je.set(n.target,o),n.target.addEventListener("transitioncancel",t,{once:!0})),o.add(n.propertyName)},t=n=>{if(!r(n)||!n.target)return;let o=je.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",t),je.delete(n.target)),je.size===0)){for(let i of yr)i();yr.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Rn():document.addEventListener("DOMContentLoaded",Rn));function Mo(r){requestAnimationFrame(()=>{je.size===0?r():yr.add(r)})}function Lo(){let r=a.useRef(new Map),e=a.useCallback((o,i,l,s)=>{let u=s!=null&&s.once?(...c)=>{r.current.delete(l),l(...c)}:l;r.current.set(l,{type:i,eventTarget:o,fn:u,options:s}),o.addEventListener(i,u,s)},[]),t=a.useCallback((o,i,l,s)=>{var u;let c=((u=r.current.get(l))===null||u===void 0?void 0:u.fn)||l;o.removeEventListener(i,c,s),r.current.delete(l)},[]),n=a.useCallback(()=>{r.current.forEach((o,i)=>{t(o.eventTarget,o.type,i,o.options)})},[t]);return a.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:t,removeAllGlobalListeners:n}}function Ao(r,e){let{id:t,"aria-label":n,"aria-labelledby":o}=r;return t=Y(t),o&&n?o=[...new Set([t,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:t,"aria-label":n,"aria-labelledby":o}}function ne(r){const e=a.useRef(null);return a.useMemo(()=>({get current(){return e.current},set current(t){e.current=t,typeof r=="function"?r(t):r&&(r.current=t)}}),[r])}function Kn(r,e){const t=a.useRef(!0),n=a.useRef(null);z(()=>(t.current=!0,()=>{t.current=!1}),[]),z(()=>{t.current?t.current=!1:(!n.current||e.some((o,i)=>!Object.is(o,n[i])))&&r(),n.current=e},e)}function Us(){return typeof window.ResizeObserver<"u"}function $r(r){const{ref:e,box:t,onResize:n}=r;a.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(Us()){const i=new window.ResizeObserver(l=>{l.length&&n()});return i.observe(o,{box:t}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,t])}function jr(r,e){z(()=>{if(r&&r.ref&&e)return r.ref.current=e.current,()=>{r.ref&&(r.ref.current=null)}})}function st(r,e){if(!r)return!1;let t=window.getComputedStyle(r),n=/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY);return n&&e&&(n=r.scrollHeight!==r.clientHeight||r.scrollWidth!==r.clientWidth),n}function Io(r,e){let t=r;for(st(t,e)&&(t=t.parentElement);t&&!st(t,e);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function Gs(r,e){const t=[];for(;r&&r!==document.documentElement;)st(r,e)&&t.push(r),r=r.parentElement;return t}let qs=0;const nr=new Map;function Zs(r){let[e,t]=a.useState();return z(()=>{if(!r)return;let n=nr.get(r);if(n)t(n.element.id);else{let o=`react-aria-description-${qs++}`;t(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=r,document.body.appendChild(i),n={refCount:0,element:i},nr.set(r,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),nr.delete(r))}},[r]),{"aria-describedby":r?e:void 0}}function nt(r,e,t,n){let o=Z(t),i=t==null;a.useEffect(()=>{if(i||!r.current)return;let l=r.current;return l.addEventListener(e,o,n),()=>{l.removeEventListener(e,o,n)}},[r,e,n,i,o])}function Bo(r,e){let t=Fn(r,e,"left"),n=Fn(r,e,"top"),o=e.offsetWidth,i=e.offsetHeight,l=r.scrollLeft,s=r.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:b,scrollPaddingLeft:p}=getComputedStyle(r),h=l+parseInt(c,10),m=s+parseInt(u,10),y=h+r.clientWidth,$=m+r.clientHeight,C=parseInt(d,10)||0,w=parseInt(b,10)||0,F=parseInt(f,10)||0,k=parseInt(p,10)||0;t<=l+k?l=t-parseInt(c,10)-k:t+o>y-F&&(l+=t+o-y+F),n<=m+C?s=n-parseInt(u,10)-C:n+i>$-w&&(s+=n+i-$+w),r.scrollLeft=l,r.scrollTop=s}function Fn(r,e,t){const n=t==="left"?"offsetLeft":"offsetTop";let o=0;for(;e.offsetParent&&(o+=e[n],e.offsetParent!==r);){if(e.offsetParent.contains(r)){o-=r[n];break}e=e.offsetParent}return o}function Mn(r,e){if(r&&document.contains(r)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let u=Gs(r);for(let c of u)Bo(c,r)}else{var t;let{left:u,top:c}=r.getBoundingClientRect();r==null||(t=r.scrollIntoView)===null||t===void 0||t.call(r,{block:"nearest"});let{left:d,top:f}=r.getBoundingClientRect();if(Math.abs(u-d)>1||Math.abs(c-f)>1){var n,o,i;e==null||(o=e.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=r.scrollIntoView)===null||i===void 0||i.call(r,{block:"nearest"})}}}}function xr(r){return r.mozInputSource===0&&r.isTrusted?!0:Vr()&&r.pointerType?r.type==="click"&&r.buttons===1:r.detail===0&&!r.pointerType}function Ys(r){return!Vr()&&r.width===0&&r.height===0||r.width===1&&r.height===1&&r.pressure===0&&r.detail===0&&r.pointerType==="mouse"}function Wr(r,e,t){let n=a.useRef(e),o=Z(()=>{t&&t(n.current)});a.useEffect(()=>{var i;let l=r==null||(i=r.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[r,o])}const Xs="react-aria-clear-focus",Js="react-aria-focus",No="react-aria-update-activedescendant";function We(r){return Pe()?r.metaKey:r.ctrlKey}function Oo(r,e=!0){let[t,n]=a.useState(!0),o=t&&e;return z(()=>{if(o&&r.current&&"getAnimations"in r.current)for(let i of r.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[r,o]),Ho(r,o,a.useCallback(()=>n(!1),[])),o}function zo(r,e){let[t,n]=a.useState(e?"open":"closed");switch(t){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=t==="exiting";return Ho(r,o,a.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Ho(r,e,t){z(()=>{if(e&&r.current){if(!("getAnimations"in r.current)){t();return}let n=r.current.getAnimations();if(n.length===0){t();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||Ie.flushSync(()=>{t()})}).catch(()=>{}),()=>{o=!0}}},[r,e,t])}function Ce(r,e,t){let[n,o]=a.useState(r||e),i=a.useRef(r!==void 0),l=r!==void 0;a.useEffect(()=>{let c=i.current;c!==l&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?r:n,u=a.useCallback((c,...d)=>{let f=(b,...p)=>{t&&(Object.is(s,b)||t(b,...p)),l||(s=b)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let m=c(l?s:p,...h);return f(m,...d),l?p:m})):(l||o(c),f(c,...d))},[l,s,t]);return[s,u]}function Ft(r,e=-1/0,t=1/0){return Math.min(Math.max(r,e),t)}let _e="default",Pr="",Rt=new WeakMap;function Ln(r){if(Ht()){if(_e==="default"){const e=j(r);Pr=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}_e="disabled"}else(r instanceof HTMLElement||r instanceof SVGElement)&&(Rt.set(r,r.style.userSelect),r.style.userSelect="none")}function St(r){if(Ht()){if(_e!=="disabled")return;_e="restoring",setTimeout(()=>{Mo(()=>{if(_e==="restoring"){const e=j(r);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Pr||""),Pr="",_e="default"}})},300)}else if((r instanceof HTMLElement||r instanceof SVGElement)&&r&&Rt.has(r)){let e=Rt.get(r);r.style.userSelect==="none"&&(r.style.userSelect=e),r.getAttribute("style")===""&&r.removeAttribute("style"),Rt.delete(r)}}const ut=a.createContext({register:()=>{}});ut.displayName="PressResponderContext";function Qs(r,e){return e.get?e.get.call(r):e.value}function Vo(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function eu(r,e){var t=Vo(r,e,"get");return Qs(r,t)}function tu(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ru(r,e,t){tu(r,e),e.set(r,t)}function nu(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function An(r,e,t){var n=Vo(r,e,"set");return nu(r,n,t),t}function ou(r){let e=a.useContext(ut);if(e){let{register:t,...n}=e;r=I(n,r),t()}return jr(e,r.ref),r}var Ct=new WeakMap;class wt{continuePropagation(){An(this,Ct,!1)}get shouldStopPropagation(){return eu(this,Ct)}constructor(e,t,n,o){ru(this,Ct,{writable:!0,value:void 0}),An(this,Ct,!0);var i;let l=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let u,c=0,d,f=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,f=n.clientY),s&&(d!=null&&f!=null?(u=d-s.left,c=f-s.top):(u=s.width/2,c=s.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=u,this.y=c}}const In=Symbol("linkClicked");function Me(r){let{onPress:e,onPressChange:t,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...b}=ou(r),[p,h]=a.useState(!1),m=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=Lo(),C=Z((v,R)=>{let K=m.current;if(l||K.didFirePressStart)return!1;let E=!0;if(K.isTriggeringEvent=!0,n){let L=new wt("pressstart",R,v);n(L),E=L.shouldStopPropagation}return t&&t(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,h(!0),E}),w=Z((v,R,K=!0)=>{let E=m.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let L=!0;if(o){let g=new wt("pressend",R,v);o(g),L=g.shouldStopPropagation}if(t&&t(!1),h(!1),e&&K&&!l){let g=new wt("press",R,v);e(g),L&&(L=g.shouldStopPropagation)}return E.isTriggeringEvent=!1,L}),F=Z((v,R)=>{let K=m.current;if(l)return!1;if(i){K.isTriggeringEvent=!0;let E=new wt("pressup",R,v);return i(E),K.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),k=Z(v=>{let R=m.current;R.isPressed&&R.target&&(R.isOverTarget&&R.pointerType!=null&&w(de(R.target,v),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,$(),d||St(R.target))}),D=Z(v=>{c&&k(v)}),B=a.useMemo(()=>{let v=m.current,R={onKeyDown(E){if(or(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var L;Nn(E.target,E.key)&&E.preventDefault();let g=!0;if(!v.isPressed&&!E.repeat){v.target=E.currentTarget,v.isPressed=!0,g=C(E,"keyboard");let P=E.currentTarget,M=N=>{or(N,P)&&!N.repeat&&P.contains(N.target)&&v.target&&F(de(v.target,N),"keyboard")};y(j(E.currentTarget),"keyup",xe(M,K),!0)}g&&E.stopPropagation(),E.metaKey&&Pe()&&((L=v.metaKeyEvents)===null||L===void 0||L.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!v.isTriggeringEvent&&!Fe.isOpening){let L=!0;if(l&&E.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||xr(E.nativeEvent))){!l&&!u&&be(E.currentTarget);let g=C(E,"virtual"),P=F(E,"virtual"),M=w(E,"virtual");L=g&&P&&M}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,L&&E.stopPropagation()}}},K=E=>{var L;if(v.isPressed&&v.target&&or(E,v.target)){var g;Nn(E.target,E.key)&&E.preventDefault();let M=E.target;w(de(v.target,E),"keyboard",v.target.contains(M)),$(),E.key!=="Enter"&&_r(v.target)&&v.target.contains(M)&&!E[In]&&(E[In]=!0,Fe(v.target,E,!1)),v.isPressed=!1,(g=v.metaKeyEvents)===null||g===void 0||g.delete(E.key)}else if(E.key==="Meta"&&(!((L=v.metaKeyEvents)===null||L===void 0)&&L.size)){var P;let M=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let N of M.values())(P=v.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){R.onPointerDown=P=>{if(P.button!==0||!P.currentTarget.contains(P.target))return;if(Ys(P.nativeEvent)){v.pointerType="virtual";return}lr(P.currentTarget)&&P.preventDefault(),v.pointerType=P.pointerType;let M=!0;if(!v.isPressed){v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=P.pointerId,v.target=P.currentTarget,!l&&!u&&be(P.currentTarget),d||Ln(v.target),M=C(P,v.pointerType);let N=P.target;"releasePointerCapture"in N&&N.releasePointerCapture(P.pointerId),y(j(P.currentTarget),"pointerup",E,!1),y(j(P.currentTarget),"pointercancel",g,!1)}M&&P.stopPropagation()},R.onMouseDown=P=>{P.currentTarget.contains(P.target)&&P.button===0&&(lr(P.currentTarget)&&P.preventDefault(),P.stopPropagation())},R.onPointerUp=P=>{!P.currentTarget.contains(P.target)||v.pointerType==="virtual"||P.button===0&&F(P,v.pointerType||P.pointerType)},R.onPointerEnter=P=>{P.pointerId===v.activePointerId&&v.target&&!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(de(v.target,P),v.pointerType))},R.onPointerLeave=P=>{P.pointerId===v.activePointerId&&v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(de(v.target,P),v.pointerType,!1),D(P))};let E=P=>{P.pointerId===v.activePointerId&&v.isPressed&&P.button===0&&v.target&&(v.target.contains(P.target)&&v.pointerType!=null?w(de(v.target,P),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(de(v.target,P),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),d||St(v.target),"ontouchend"in v.target&&P.pointerType!=="mouse"&&y(v.target,"touchend",L,{once:!0}))},L=P=>{jo(P.currentTarget)&&P.preventDefault()},g=P=>{k(P)};R.onDragStart=P=>{P.currentTarget.contains(P.target)&&k(P)}}else{R.onMouseDown=g=>{if(g.button!==0||!g.currentTarget.contains(g.target))return;if(lr(g.currentTarget)&&g.preventDefault(),v.ignoreEmulatedMouseEvents){g.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=g.currentTarget,v.pointerType=xr(g.nativeEvent)?"virtual":"mouse",!l&&!u&&be(g.currentTarget),C(g,v.pointerType)&&g.stopPropagation(),y(j(g.currentTarget),"mouseup",E,!1)},R.onMouseEnter=g=>{if(!g.currentTarget.contains(g.target))return;let P=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,P=C(g,v.pointerType)),P&&g.stopPropagation()},R.onMouseLeave=g=>{if(!g.currentTarget.contains(g.target))return;let P=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,P=w(g,v.pointerType,!1),D(g)),P&&g.stopPropagation()},R.onMouseUp=g=>{g.currentTarget.contains(g.target)&&!v.ignoreEmulatedMouseEvents&&g.button===0&&F(g,v.pointerType||"mouse")};let E=g=>{if(g.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&ir(g,v.target)&&v.pointerType!=null?w(de(v.target,g),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(de(v.target,g),v.pointerType,!1),v.isOverTarget=!1}};R.onTouchStart=g=>{if(!g.currentTarget.contains(g.target))return;let P=iu(g.nativeEvent);if(!P)return;v.activePointerId=P.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=g.currentTarget,v.pointerType="touch",!l&&!u&&be(g.currentTarget),d||Ln(v.target),C(me(v.target,g),v.pointerType)&&g.stopPropagation(),y(le(g.currentTarget),"scroll",L,!0)},R.onTouchMove=g=>{if(!g.currentTarget.contains(g.target))return;if(!v.isPressed){g.stopPropagation();return}let P=Bn(g.nativeEvent,v.activePointerId),M=!0;P&&ir(P,g.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,M=C(me(v.target,g),v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,M=w(me(v.target,g),v.pointerType,!1),D(me(v.target,g))),M&&g.stopPropagation()},R.onTouchEnd=g=>{if(!g.currentTarget.contains(g.target))return;if(!v.isPressed){g.stopPropagation();return}let P=Bn(g.nativeEvent,v.activePointerId),M=!0;P&&ir(P,g.currentTarget)&&v.pointerType!=null?(F(me(v.target,g),v.pointerType),M=w(me(v.target,g),v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(M=w(me(v.target,g),v.pointerType,!1)),M&&g.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!d&&St(v.target),$()},R.onTouchCancel=g=>{g.currentTarget.contains(g.target)&&(g.stopPropagation(),v.isPressed&&k(me(v.target,g)))};let L=g=>{v.isPressed&&g.target.contains(v.target)&&k({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=g=>{g.currentTarget.contains(g.target)&&k(g)}}return R},[y,l,u,$,d,k,D,w,C,F]);return a.useEffect(()=>()=>{var v;d||St((v=m.current.target)!==null&&v!==void 0?v:void 0)},[d]),{isPressed:s||p,pressProps:I(b,B)}}function _r(r){return r.tagName==="A"&&r.hasAttribute("href")}function or(r,e){const{key:t,code:n}=r,o=e,i=o.getAttribute("role");return(t==="Enter"||t===" "||t==="Spacebar"||n==="Space")&&!(o instanceof le(o).HTMLInputElement&&!Wo(o,t)||o instanceof le(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&_r(o))&&t!=="Enter")}function iu(r){const{targetTouches:e}=r;return e.length>0?e[0]:null}function Bn(r,e){const t=r.changedTouches;for(let n=0;n<t.length;n++){const o=t[n];if(o.identifier===e)return o}return null}function me(r,e){let t=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:r,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:t,clientY:n}}function de(r,e){let t=e.clientX,n=e.clientY;return{currentTarget:r,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:t,clientY:n}}function lu(r){let e=0,t=0;return r.width!==void 0?e=r.width/2:r.radiusX!==void 0&&(e=r.radiusX),r.height!==void 0?t=r.height/2:r.radiusY!==void 0&&(t=r.radiusY),{top:r.clientY-t,right:r.clientX+e,bottom:r.clientY+t,left:r.clientX-e}}function au(r,e){return!(r.left>e.right||e.left>r.right||r.top>e.bottom||e.top>r.bottom)}function ir(r,e){let t=e.getBoundingClientRect(),n=lu(r);return au(t,n)}function lr(r){return!(r instanceof HTMLElement)||!r.hasAttribute("draggable")}function jo(r){return r instanceof HTMLInputElement?!1:r instanceof HTMLButtonElement?r.type!=="submit"&&r.type!=="reset":!_r(r)}function Nn(r,e){return r instanceof HTMLInputElement?!Wo(r,e):jo(r)}const su=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Wo(r,e){return r.type==="checkbox"||r.type==="radio"?e===" ":su.has(r.type)}const uu=a.forwardRef(({children:r,...e},t)=>{let n=a.useRef(!1),o=a.useContext(ut);t=ne(t||(o==null?void 0:o.ref));let i=I(o||{},{...e,ref:t,register(){n.current=!0,o&&o.register()}});return jr(o,t),a.useEffect(()=>{n.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),a.createElement(ut.Provider,{value:i},r)});function cu({children:r}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(ut.Provider,{value:e},r)}class du{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function _o(r){let e=a.useRef({isFocused:!1,observer:null});z(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let t=Z(n=>{r==null||r(n)});return a.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=n.target,i=l=>{e.current.isFocused=!1,o.disabled&&t(new du("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}function Uo(r){let{isDisabled:e,onFocus:t,onBlur:n,onFocusChange:o}=r;const i=a.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),o&&o(!1),!0},[n,o]),l=_o(i),s=a.useCallback(u=>{const c=j(u.target);u.target===u.currentTarget&&c.activeElement===u.target&&(t&&t(u),o&&o(!0),l(u))},[o,t,l]);return{focusProps:{onFocus:!e&&(t||o||n)?s:void 0,onBlur:!e&&(n||o)?i:void 0}}}let Be=null,Sr=new Set,lt=new Map,Le=!1,Cr=!1;const fu={Tab:!0,Escape:!0};function jt(r,e){for(let t of Sr)t(r,e)}function pu(r){return!(r.metaKey||!Pe()&&r.altKey||r.ctrlKey||r.key==="Control"||r.key==="Shift"||r.key==="Meta")}function Mt(r){Le=!0,pu(r)&&(Be="keyboard",jt("keyboard",r))}function ie(r){Be="pointer",(r.type==="mousedown"||r.type==="pointerdown")&&(Le=!0,jt("pointer",r))}function Go(r){xr(r)&&(Le=!0,Be="virtual")}function qo(r){r.target===window||r.target===document||(!Le&&!Cr&&(Be="virtual",jt("virtual",r)),Le=!1,Cr=!1)}function Zo(){Le=!1,Cr=!0}function wr(r){if(typeof window>"u"||lt.get(le(r)))return;const e=le(r),t=j(r);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Le=!0,n.apply(this,arguments)},t.addEventListener("keydown",Mt,!0),t.addEventListener("keyup",Mt,!0),t.addEventListener("click",Go,!0),e.addEventListener("focus",qo,!0),e.addEventListener("blur",Zo,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",ie,!0),t.addEventListener("pointermove",ie,!0),t.addEventListener("pointerup",ie,!0)):(t.addEventListener("mousedown",ie,!0),t.addEventListener("mousemove",ie,!0),t.addEventListener("mouseup",ie,!0)),e.addEventListener("beforeunload",()=>{Yo(r)},{once:!0}),lt.set(e,{focus:n})}const Yo=(r,e)=>{const t=le(r),n=j(r);e&&n.removeEventListener("DOMContentLoaded",e),lt.has(t)&&(t.HTMLElement.prototype.focus=lt.get(t).focus,n.removeEventListener("keydown",Mt,!0),n.removeEventListener("keyup",Mt,!0),n.removeEventListener("click",Go,!0),t.removeEventListener("focus",qo,!0),t.removeEventListener("blur",Zo,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",ie,!0),n.removeEventListener("pointermove",ie,!0),n.removeEventListener("pointerup",ie,!0)):(n.removeEventListener("mousedown",ie,!0),n.removeEventListener("mousemove",ie,!0),n.removeEventListener("mouseup",ie,!0)),lt.delete(t))};function vu(r){const e=j(r);let t;return e.readyState!=="loading"?wr(r):(t=()=>{wr(r)},e.addEventListener("DOMContentLoaded",t)),()=>Yo(r,t)}typeof document<"u"&&vu();function ct(){return Be!=="pointer"}function dt(){return Be}function Xo(r){Be=r,jt(r,null)}const bu=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hu(r,e,t){var n;const o=typeof window<"u"?le(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?le(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?le(t==null?void 0:t.target).HTMLElement:HTMLElement,s=typeof window<"u"?le(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return r=r||(t==null?void 0:t.target)instanceof o&&!bu.has(t==null||(n=t.target)===null||n===void 0?void 0:n.type)||(t==null?void 0:t.target)instanceof i||(t==null?void 0:t.target)instanceof l&&(t==null?void 0:t.target.isContentEditable),!(r&&e==="keyboard"&&t instanceof s&&!fu[t.key])}function gu(r,e,t){wr(),a.useEffect(()=>{let n=(o,i)=>{hu(!!(t!=null&&t.isTextInput),o,i)&&r(ct())};return Sr.add(n),()=>{Sr.delete(n)}},e)}function Wt(r){let{isDisabled:e,onBlurWithin:t,onFocusWithin:n,onFocusWithinChange:o}=r,i=a.useRef({isFocusWithin:!1}),l=a.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,t&&t(c),o&&o(!1))},[t,o,i]),s=_o(l),u=a.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[n,o,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Lt=!1,ar=0;function Er(){Lt=!0,setTimeout(()=>{Lt=!1},50)}function On(r){r.pointerType==="touch"&&Er()}function mu(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",On):document.addEventListener("touchend",Er),ar++,()=>{ar--,!(ar>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",On):document.removeEventListener("touchend",Er))}}function Ne(r){let{onHoverStart:e,onHoverChange:t,onHoverEnd:n,isDisabled:o}=r,[i,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(mu,[]);let{hoverProps:u,triggerHoverEnd:c}=a.useMemo(()=>{let d=(p,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let m=p.currentTarget;s.target=m,e&&e({type:"hoverstart",target:m,pointerType:h}),t&&t(!0),l(!0)},f=(p,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let m=p.currentTarget;n&&n({type:"hoverend",target:m,pointerType:h}),t&&t(!1),l(!1)},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=p=>{Lt&&p.pointerType==="mouse"||d(p,p.pointerType)},b.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(b.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!Lt&&d(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:b,triggerHoverEnd:f}},[e,t,n,o,s]);return a.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:u,isHovered:i}}function yu(r){let{ref:e,onInteractOutside:t,isDisabled:n,onInteractOutsideStart:o}=r,i=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Z(u=>{t&&Et(u,e)&&(o&&o(u),i.current.isPointerDown=!0)}),s=Z(u=>{t&&t(u)});a.useEffect(()=>{let u=i.current;if(n)return;const c=e.current,d=j(c);if(typeof PointerEvent<"u"){let f=b=>{u.isPointerDown&&Et(b,e)&&s(b),u.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=p=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Et(p,e)&&s(p),u.isPointerDown=!1},b=p=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Et(p,e)&&s(p),u.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",b,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",b,!0)}}},[e,n,l,s])}function Et(r,e){if(r.button>0)return!1;if(r.target){const t=r.target.ownerDocument;if(!t||!t.documentElement.contains(r.target)||r.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(r.target)}function zn(r){if(!r)return;let e=!0;return t=>{let n={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};r(n),e&&t.stopPropagation()}}function $u(r){return{keyboardProps:r.isDisabled?{}:{onKeyDown:zn(r.onKeyDown),onKeyUp:zn(r.onKeyUp)}}}const xu=500;function Jo(r){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:n,onLongPress:o,threshold:i=xu,accessibilityDescription:l}=r;const s=a.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=Lo(),{pressProps:d}=Me({isDisabled:e,onPressStart(b){if(b.continuePropagation(),(b.pointerType==="mouse"||b.pointerType==="touch")&&(t&&t({...b,type:"longpressstart"}),s.current=setTimeout(()=>{b.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...b,type:"longpress"}),s.current=void 0},i),b.pointerType==="touch")){let p=h=>{h.preventDefault()};u(b.target,"contextmenu",p,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(b.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(b){s.current&&clearTimeout(s.current),n&&(b.pointerType==="mouse"||b.pointerType==="touch")&&n({...b,type:"longpressend"})}}),f=Zs(o&&!e?l:void 0);return{longPressProps:I(d,f)}}function Ae(r){const e=j(r);if(dt()==="virtual"){let t=e.activeElement;Mo(()=>{e.activeElement===t&&r.isConnected&&be(r)})}else be(r)}function Pu(r){const e=le(r);if(!(r instanceof e.HTMLElement)&&!(r instanceof e.SVGElement))return!1;let{display:t,visibility:n}=r.style,o=t!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=r.ownerDocument.defaultView;let{display:l,visibility:s}=i(r);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Su(r,e){return!r.hasAttribute("hidden")&&!r.hasAttribute("data-react-aria-prevent-focus")&&(r.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?r.hasAttribute("open"):!0)}function Qo(r,e){return r.nodeName!=="#comment"&&Pu(r)&&Su(r,e)&&(!r.parentElement||Qo(r.parentElement,r))}const Hn=a.createContext(null),Tr="react-aria-focus-scope-restore";let V=null;function ei(r){let{children:e,contain:t,restoreFocus:n,autoFocus:o}=r,i=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:u}=a.useContext(Hn)||{},c=a.useMemo(()=>new kr({scopeRef:s}),[s]);z(()=>{let b=u||U.root;if(U.getTreeNode(b.scopeRef)&&V&&!At(V,b.scopeRef)){let p=U.getTreeNode(V);p&&(b=p)}b.addChild(c),U.addNode(c)},[c,u]),z(()=>{let b=U.getTreeNode(s);b&&(b.contain=!!t)},[t]),z(()=>{var b;let p=(b=i.current)===null||b===void 0?void 0:b.nextSibling,h=[],m=y=>y.stopPropagation();for(;p&&p!==l.current;)h.push(p),p.addEventListener(Tr,m),p=p.nextSibling;return s.current=h,()=>{for(let y of h)y.removeEventListener(Tr,m)}},[e]),Ru(s,n,t),Tu(s,t),Ku(s,n,t),ku(s,o),a.useEffect(()=>{const b=j(s.current?s.current[0]:void 0).activeElement;let p=null;if(ae(b,s.current)){for(let h of U.traverse())h.scopeRef&&ae(b,h.scopeRef.current)&&(p=h);p===U.getTreeNode(s)&&(V=p.scopeRef)}},[s]),z(()=>()=>{var b,p,h;let m=(h=(p=U.getTreeNode(s))===null||p===void 0||(b=p.parent)===null||b===void 0?void 0:b.scopeRef)!==null&&h!==void 0?h:null;(s===V||At(s,V))&&(!m||U.getTreeNode(m))&&(V=m),U.removeTreeNode(s)},[s]);let d=a.useMemo(()=>Cu(s),[]),f=a.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return a.createElement(Hn.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Cu(r){return{focusNext(e={}){let t=r.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||j(t[0]).activeElement,u=t[0].previousElementSibling,c=Ke(t),d=te(c,{tabbable:o,accept:l},t);d.currentNode=ae(s,t)?s:u;let f=d.nextNode();return!f&&i&&(d.currentNode=u,f=d.nextNode()),f&&X(f,!0),f},focusPrevious(e={}){let t=r.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||j(t[0]).activeElement,u=t[t.length-1].nextElementSibling,c=Ke(t),d=te(c,{tabbable:o,accept:l},t);d.currentNode=ae(s,t)?s:u;let f=d.previousNode();return!f&&i&&(d.currentNode=u,f=d.previousNode()),f&&X(f,!0),f},focusFirst(e={}){let t=r.current,{tabbable:n,accept:o}=e,i=Ke(t),l=te(i,{tabbable:n,accept:o},t);l.currentNode=t[0].previousElementSibling;let s=l.nextNode();return s&&X(s,!0),s},focusLast(e={}){let t=r.current,{tabbable:n,accept:o}=e,i=Ke(t),l=te(i,{tabbable:n,accept:o},t);l.currentNode=t[t.length-1].nextElementSibling;let s=l.previousNode();return s&&X(s,!0),s}}}const Ur=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],wu=Ur.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ur.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Eu=Ur.join(':not([hidden]):not([tabindex="-1"]),');function Ke(r){return r[0].parentElement}function ot(r){let e=U.getTreeNode(V);for(;e&&e.scopeRef!==r;){if(e.contain)return!1;e=e.parent}return!0}function Tu(r,e){let t=a.useRef(void 0),n=a.useRef(void 0);z(()=>{let o=r.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=j(o?o[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!ot(r)||c.isComposing)return;let d=i.activeElement,f=r.current;if(!f||!ae(d,f))return;let b=Ke(f),p=te(b,{tabbable:!0},f);if(!d)return;p.currentNode=d;let h=c.shiftKey?p.previousNode():p.nextNode();h||(p.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,h=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),h&&X(h,!0)},s=c=>{(!V||At(V,r))&&ae(c.target,r.current)?(V=r,t.current=c.target):ot(r)&&!$e(c.target,r)?t.current?t.current.focus():V&&V.current&&Dr(V.current):ot(r)&&(t.current=c.target)},u=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let d=dt();if(!((d==="virtual"||d===null)&&Vr()&&Ko())&&i.activeElement&&ot(r)&&!$e(i.activeElement,r))if(V=r,i.body.contains(c.target)){var b;t.current=c.target,(b=t.current)===null||b===void 0||b.focus()}else V.current&&Dr(V.current)})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",u,!1))}},[r,e]),z(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function ti(r){return $e(r)}function ae(r,e){return!r||!e?!1:e.some(t=>t.contains(r))}function $e(r,e=null){if(r instanceof Element&&r.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:t}of U.traverse(U.getTreeNode(e)))if(t&&ae(r,t.current))return!0;return!1}function Du(r){return $e(r,V)}function At(r,e){var t;let n=(t=U.getTreeNode(e))===null||t===void 0?void 0:t.parent;for(;n;){if(n.scopeRef===r)return!0;n=n.parent}return!1}function X(r,e=!1){if(r!=null&&!e)try{Ae(r)}catch{}else if(r!=null)try{r.focus()}catch{}}function ri(r,e=!0){let t=r[0].previousElementSibling,n=Ke(r),o=te(n,{tabbable:e},r);o.currentNode=t;let i=o.nextNode();return e&&!i&&(n=Ke(r),o=te(n,{tabbable:!1},r),o.currentNode=t,i=o.nextNode()),i}function Dr(r,e=!0){X(ri(r,e))}function ku(r,e){const t=a.useRef(e);a.useEffect(()=>{if(t.current){V=r;const n=j(r.current?r.current[0]:void 0);!ae(n.activeElement,V.current)&&r.current&&Dr(r.current)}t.current=!1},[r])}function Ru(r,e,t){z(()=>{if(e||t)return;let n=r.current;const o=j(n?n[0]:void 0);let i=l=>{let s=l.target;ae(s,r.current)?V=r:ti(s)||(V=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",i,!1))}},[r,e,t])}function Vn(r){let e=U.getTreeNode(V);for(;e&&e.scopeRef!==r;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===r}function Ku(r,e,t){const n=a.useRef(typeof document<"u"?j(r.current?r.current[0]:void 0).activeElement:null);z(()=>{let o=r.current;const i=j(o?o[0]:void 0);if(!e||t)return;let l=()=>{(!V||At(V,r))&&ae(i.activeElement,r.current)&&(V=r)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[r,t]),z(()=>{const o=j(r.current?r.current[0]:void 0);if(!e)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!ot(r)||l.isComposing)return;let s=o.activeElement;if(!$e(s,r)||!Vn(r))return;let u=U.getTreeNode(r);if(!u)return;let c=u.nodeToRestore,d=te(o.body,{tabbable:!0});d.currentNode=s;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!f||!$e(f,r))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while($e(f,r));l.preventDefault(),l.stopPropagation(),f?X(f,!0):ti(c)?X(c,!0):s.blur()}};return t||o.addEventListener("keydown",i,!0),()=>{t||o.removeEventListener("keydown",i,!0)}},[r,e,t]),z(()=>{const o=j(r.current?r.current[0]:void 0);if(!e)return;let i=U.getTreeNode(r);if(i){var l;return i.nodeToRestore=(l=n.current)!==null&&l!==void 0?l:void 0,()=>{let s=U.getTreeNode(r);if(!s)return;let u=s.nodeToRestore;if(e&&u&&(o.activeElement&&$e(o.activeElement,r)||o.activeElement===o.body&&Vn(r))){let c=U.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(r);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){jn(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(r);d;){if(d.scopeRef&&d.scopeRef.current&&U.getTreeNode(d.scopeRef)){let f=ri(d.scopeRef.current,!0);jn(f);return}d=d.parent}}})}}}},[r,e])}function jn(r){r.dispatchEvent(new CustomEvent(Tr,{bubbles:!0,cancelable:!0}))&&X(r)}function te(r,e,t){let n=e!=null&&e.tabbable?Eu:wu,o=j(r).createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(e==null||(l=e.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(n)&&Qo(i)&&(!t||ae(i,t))&&(!(e!=null&&e.accept)||e.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(o.currentNode=e.from),o}function Fu(r,e={}){return{focusNext(t={}){let n=r.current;if(!n)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:s=e.accept}=t,u=o||j(n).activeElement,c=te(n,{tabbable:i,accept:s});n.contains(u)&&(c.currentNode=u);let d=c.nextNode();return!d&&l&&(c.currentNode=n,d=c.nextNode()),d&&X(d,!0),d},focusPrevious(t=e){let n=r.current;if(!n)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:s=e.accept}=t,u=o||j(n).activeElement,c=te(n,{tabbable:i,accept:s});if(n.contains(u))c.currentNode=u;else{let f=sr(c);return f&&X(f,!0),f??null}let d=c.previousNode();if(!d&&l){c.currentNode=n;let f=sr(c);if(!f)return null;d=f}return d&&X(d,!0),d??null},focusFirst(t=e){let n=r.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=t,s=te(n,{tabbable:o,accept:i}).nextNode();return s&&X(s,!0),s},focusLast(t=e){let n=r.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=t,l=te(n,{tabbable:o,accept:i}),s=sr(l);return s&&X(s,!0),s??null}}}function sr(r){let e,t;do t=r.lastChild(),t&&(e=t);while(t);return e}class Gr{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let o=this.fastMap.get(t??null);if(!o)return;let i=new kr({scopeRef:e});o.addChild(i),i.parent=o,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let i of this.traverse())i!==t&&t.nodeToRestore&&i.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ae(i.nodeToRestore,t.scopeRef.current)&&(i.nodeToRestore=t.nodeToRestore);let o=t.children;n&&(n.removeChild(t),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new Gr;var n;for(let o of this.traverse())t.addTreeNode(o.scopeRef,(n=(e=o.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new kr({scopeRef:null}),this.fastMap.set(null,this.root)}}class kr{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let U=new Gr;function we(r={}){let{autoFocus:e=!1,isTextInput:t,within:n}=r,o=a.useRef({isFocused:!1,isFocusVisible:e||ct()}),[i,l]=a.useState(!1),[s,u]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=a.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=a.useCallback(p=>{o.current.isFocused=p,l(p),c()},[c]);gu(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:t});let{focusProps:f}=Uo({isDisabled:n,onFocusChange:d}),{focusWithinProps:b}=Wt({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:n?b:f}}let ni=a.createContext(null);function Mu(r){let e=a.useContext(ni)||{};jr(e,r);let{ref:t,...n}=e;return n}const Lu=a.forwardRef(function(e,t){let{children:n,...o}=e,i=ne(t),l={...o,ref:i};return a.createElement(ni.Provider,{value:l},n)});function qe(r,e){let{focusProps:t}=Uo(r),{keyboardProps:n}=$u(r),o=I(t,n),i=Mu(e),l=r.isDisabled?{}:i,s=a.useRef(r.autoFocus);return a.useEffect(()=>{s.current&&e.current&&Ae(e.current),s.current=!1},[e]),{focusableProps:I({...o,tabIndex:r.excludeFromTabOrder&&!r.isDisabled?-1:void 0},l)}}function Au(r,e){let{elementType:t="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,...u}=r,c={};t!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=qe(r,e),{pressProps:f,isPressed:b}=Me({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:s,ref:e}),p=G(u,{labelable:!0}),h=I(d,f),m=Vt(),y=Fo(r);return{isPressed:b,linkProps:I(p,y,{...h,...c,"aria-disabled":s||void 0,"aria-current":r["aria-current"],onClick:$=>{var C;(C=f.onClick)===null||C===void 0||C.call(f,$),l&&(l($),console.warn("onClick is deprecated, please use onPress")),!m.isNative&&$.currentTarget instanceof HTMLAnchorElement&&$.currentTarget.href&&!$.isDefaultPrevented()&&js($.currentTarget,$)&&r.href&&($.preventDefault(),m.open($.currentTarget,$,r.href,r.routerOptions))}})}}const Iu=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Bu=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Nu(r){if(Intl.Locale){let t=new Intl.Locale(r).maximize(),n=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(n)return n.direction==="rtl";if(t.script)return Iu.has(t.script)}let e=r.split("-")[0];return Bu.has(e)}const Ou=Symbol.for("react-aria.i18n.locale");function oi(){let r=typeof window<"u"&&window[Ou]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([r])}catch{r="en-US"}return{locale:r,direction:Nu(r)?"rtl":"ltr"}}let Rr=oi(),it=new Set;function Wn(){Rr=oi();for(let r of it)r(Rr)}function zu(){let r=Se(),[e,t]=a.useState(Rr);return a.useEffect(()=>(it.size===0&&window.addEventListener("languagechange",Wn),it.add(t),()=>{it.delete(t),it.size===0&&window.removeEventListener("languagechange",Wn)}),[]),r?{locale:"en-US",direction:"ltr"}:e}const Hu=a.createContext(null);function Oe(){let r=zu();return a.useContext(Hu)||r}const Vu=Symbol.for("react-aria.i18n.locale"),ju=Symbol.for("react-aria.i18n.strings");let Ve;class _t{getStringForLocale(e,t){let o=this.getStringsForLocale(t)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${t} locale`);return o}getStringsForLocale(e){let t=this.strings[e];return t||(t=Wu(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let t=window[Vu];if(Ve===void 0){let o=window[ju];if(!o)return null;Ve={};for(let i in o)Ve[i]=new _t({[t]:o[i]},t)}let n=Ve==null?void 0:Ve[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=t}}function Wu(r,e,t="en-US"){if(e[r])return e[r];let n=_u(r);if(e[n])return e[n];for(let o in e)if(o.startsWith(n+"-"))return e[o];return e[t]}function _u(r){return Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]}const _n=new Map,Un=new Map;class Uu{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(t,this):n}plural(e,t,n="cardinal"){let o=t["="+e];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,l=_n.get(i);l||(l=new Intl.PluralRules(this.locale,{type:n}),_n.set(i,l));let s=l.select(e);return o=t[s]||t.other,typeof o=="function"?o():o}number(e){let t=Un.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Un.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n=="function"?n():n}constructor(e,t){this.locale=e,this.strings=t}}const Gn=new WeakMap;function Gu(r){let e=Gn.get(r);return e||(e=new _t(r),Gn.set(r,e)),e}function qu(r,e){return e&&_t.getGlobalDictionaryForPackage(e)||Gu(r)}function qr(r,e){let{locale:t}=Oe(),n=qu(r,e);return a.useMemo(()=>new Uu(t,n),[t,n])}let ur=new Map,Kr=!1;try{Kr=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let It=!1;try{It=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ii={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Zu{format(e){let t="";if(!Kr&&this.options.signDisplay!=null?t=Xu(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!It){var n;let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return t;let s=(n=ii[o])===null||n===void 0?void 0:n[i];t+=s[l]||s.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(t);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Kr&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!It&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=Yu(e,t),this.options=t}}function Yu(r,e={}){let{numberingSystem:t}=e;if(t&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${t}`),e.style==="unit"&&!It){var n;let{unit:l,unitDisplay:s="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=ii[l])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${s}`);e={...e,style:"decimal"}}let o=r+(e?Object.entries(e).sort((l,s)=>l[0]<s[0]?-1:1).join():"");if(ur.has(o))return ur.get(o);let i=new Intl.NumberFormat(r,e);return ur.set(o,i),i}function Xu(r,e,t){if(e==="auto")return r.format(t);if(e==="never")return r.format(Math.abs(t));{let n=!1;if(e==="always"?n=t>0||Object.is(t,0):e==="exceptZero"&&(Object.is(t,-0)||Object.is(t,0)?t=Math.abs(t):n=t>0),n){let o=r.format(-t),i=r.format(t),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return r.format(t)}}function Ju(r={}){let{locale:e}=Oe();return a.useMemo(()=>new Zu(e,r),[e,r])}let cr=new Map;function Zr(r){let{locale:e}=Oe(),t=e+(r?Object.entries(r).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(cr.has(t))return cr.get(t);let n=new Intl.Collator(e,r);return cr.set(t,n),n}function Ut(r,e){let{elementType:t="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:b,target:p,rel:h,type:m="button"}=r,y;t==="button"?y={type:m,disabled:n}:y={role:"button",tabIndex:n?void 0:0,href:t==="a"&&!n?b:void 0,target:t==="a"?p:void 0,type:t==="input"?m:void 0,disabled:t==="input"?n:void 0,"aria-disabled":!n||t==="input"?void 0:n,rel:t==="a"?h:void 0};let{pressProps:$,isPressed:C}=Me({onPressStart:i,onPressEnd:l,onPressChange:u,onPress:o,onPressUp:s,isDisabled:n,preventFocusOnPress:c,ref:e}),{focusableProps:w}=qe(r,e);d&&(w.tabIndex=n?-1:w.tabIndex);let F=I(w,$,G(r,{labelable:!0}));return{isPressed:C,buttonProps:I(y,F,{"aria-haspopup":r["aria-haspopup"],"aria-expanded":r["aria-expanded"],"aria-controls":r["aria-controls"],"aria-pressed":r["aria-pressed"],onClick:k=>{f&&(f(k),console.warn("onClick is deprecated, please use onPress"))}})}}function li(r,e,t){const{isSelected:n}=e,{isPressed:o,buttonProps:i}=Ut({...r,onPress:xe(e.toggle,r.onPress)},t);return{isPressed:o,isSelected:n,isDisabled:r.isDisabled||!1,buttonProps:I(i,{"aria-pressed":n})}}function Qu(r,e){const{"aria-label":t,"aria-labelledby":n,orientation:o="horizontal"}=r;let[i,l]=a.useState(!1);z(()=>{var h;l(!!(e.current&&(!((h=e.current.parentElement)===null||h===void 0)&&h.closest('[role="toolbar"]'))))});const{direction:s}=Oe(),u=s==="rtl"&&o==="horizontal";let c=Fu(e);const d=h=>{if(h.currentTarget.contains(h.target)){if(o==="horizontal"&&h.key==="ArrowRight"||o==="vertical"&&h.key==="ArrowDown")u?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&h.key==="ArrowLeft"||o==="vertical"&&h.key==="ArrowUp")u?c.focusNext():c.focusPrevious();else if(h.key==="Tab"){h.stopPropagation(),f.current=document.activeElement,h.shiftKey?c.focusFirst():c.focusLast();return}else return;h.stopPropagation(),h.preventDefault()}},f=a.useRef(null),b=h=>{!h.currentTarget.contains(h.relatedTarget)&&!f.current&&(f.current=h.target)},p=h=>{var m;if(f.current&&!h.currentTarget.contains(h.relatedTarget)&&(!((m=e.current)===null||m===void 0)&&m.contains(h.target))){var y;(y=f.current)===null||y===void 0||y.focus(),f.current=null}};return{toolbarProps:{...G(r,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":t,"aria-labelledby":t==null?n:void 0,onKeyDownCapture:i?void 0:d,onFocusCapture:i?void 0:p,onBlurCapture:i?void 0:b}}}function ec(r,e,t){let{isDisabled:n}=r,{toolbarProps:o}=Qu(r,t);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":n}}}function tc(r,e,t){let n={isSelected:e.selectedKeys.has(r.id),setSelected(u){e.setSelected(r.id,u)},toggle(){e.toggleKey(r.id)}},{isPressed:o,isSelected:i,isDisabled:l,buttonProps:s}=li({...r,id:void 0,isDisabled:r.isDisabled||e.isDisabled},n,t);return e.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=n.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:l,buttonProps:s}}const ai=7e3;let ue=null;function qn(r,e="assertive",t=ai){ue?ue.announce(r,e,t):(ue=new rc,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ue.announce(r,e,t):setTimeout(()=>{ue!=null&&ue.isAttached()&&(ue==null||ue.announce(r,e,t))},100))}class rc{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=ai){var o,i;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(l):(i=this.politeLog)===null||i===void 0||i.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},n)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const si={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ui={...si,customError:!0,valid:!1},Qe={isInvalid:!1,validationDetails:si,validationErrors:[]},nc=a.createContext({}),Fr="__formValidationState"+Date.now();function Yr(r){if(r[Fr]){let{realtimeValidation:e,displayValidation:t,updateValidation:n,resetValidation:o,commitValidation:i}=r[Fr];return{realtimeValidation:e,displayValidation:t,updateValidation:n,resetValidation:o,commitValidation:i}}return oc(r)}function oc(r){let{isInvalid:e,validationState:t,name:n,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=r;t&&(e||(e=t==="invalid"));let u=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:ui}:null,c=a.useMemo(()=>{if(!l||o==null)return null;let K=ic(l,o);return Zn(K)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=a.useContext(nc),f=a.useMemo(()=>n?Array.isArray(n)?n.flatMap(K=>Mr(d[K])):Mr(d[n]):[],[d,n]),[b,p]=a.useState(d),[h,m]=a.useState(!1);d!==b&&(p(d),m(!1));let y=a.useMemo(()=>Zn(h?[]:f),[h,f]),$=a.useRef(Qe),[C,w]=a.useState(Qe),F=a.useRef(Qe),k=()=>{if(!D)return;B(!1);let K=c||i||$.current;dr(K,F.current)||(F.current=K,w(K))},[D,B]=a.useState(!1);return a.useEffect(k),{realtimeValidation:u||y||c||i||Qe,displayValidation:s==="native"?u||y||C:u||y||c||i||C,updateValidation(K){s==="aria"&&!dr(C,K)?w(K):$.current=K},resetValidation(){let K=Qe;dr(K,F.current)||(F.current=K,w(K)),s==="native"&&B(!1),m(!0)},commitValidation(){s==="native"&&B(!0),m(!0)}}}function Mr(r){return r?Array.isArray(r)?r:[r]:[]}function ic(r,e){if(typeof r=="function"){let t=r(e);if(t&&typeof t!="boolean")return Mr(t)}return[]}function Zn(r){return r.length?{isInvalid:!0,validationErrors:r,validationDetails:ui}:null}function dr(r,e){return r===e?!0:!!r&&!!e&&r.isInvalid===e.isInvalid&&r.validationErrors.length===e.validationErrors.length&&r.validationErrors.every((t,n)=>t===e.validationErrors[n])&&Object.entries(r.validationDetails).every(([t,n])=>e.validationDetails[t]===n)}function Xr(r,e,t){let{validationBehavior:n,focus:o}=r;z(()=>{if(n==="native"&&(t!=null&&t.current)&&!t.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(u),t.current.hasAttribute("title")||(t.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(ac(t.current))}});let i=Z(()=>{e.resetValidation()}),l=Z(u=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=t==null||(c=t.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&t&&d&&sc(d)===t.current){var f;o?o():(f=t.current)===null||f===void 0||f.focus(),Xo("keyboard")}u.preventDefault()}),s=Z(()=>{e.commitValidation()});a.useEffect(()=>{let u=t==null?void 0:t.current;if(!u)return;let c=u.form;return u.addEventListener("invalid",l),u.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[t,l,s,i,n])}function lc(r){let e=r.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function ac(r){return{isInvalid:!r.validity.valid,validationDetails:lc(r),validationErrors:r.validationMessage?[r.validationMessage]:[]}}function sc(r){for(let e=0;e<r.elements.length;e++){let t=r.elements[e];if(!t.validity.valid)return t}return null}function uc(r,e,t){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:l,children:s,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=r,b=D=>{D.stopPropagation(),e.setSelected(D.target.checked)},p=s!=null,h=u!=null||c!=null;!p&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:y}=Me({isDisabled:n}),{pressProps:$,isPressed:C}=Me({isDisabled:n||o,onPress(){e.toggle()}}),{focusableProps:w}=qe(r,t),F=I(m,w),k=G(r,{labelable:!0});return Wr(t,e.isSelected,e.setSelected),{labelProps:I($,{onClick:D=>D.preventDefault()}),inputProps:I(k,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":r["aria-errormessage"],"aria-controls":r["aria-controls"],"aria-readonly":o||void 0,onChange:b,disabled:n,...i==null?{}:{value:i},name:l,type:"checkbox",...F}),isSelected:e.isSelected,isPressed:y||C,isDisabled:n,isReadOnly:o,isInvalid:f||d==="invalid"}}function cc(r,e,t){let n=Yr({...r,value:e.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:l}=n.displayValidation,{labelProps:s,inputProps:u,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:b}=uc({...r,isInvalid:o},e,t);Xr(r,n,t);let{isIndeterminate:p,isRequired:h,validationBehavior:m="aria"}=r;a.useEffect(()=>{t.current&&(t.current.indeterminate=!!p)});let{pressProps:y}=Me({isDisabled:f||b,onPress(){let{[Fr]:$}=r,{commitValidation:C}=$||n;C()}});return{labelProps:I(s,y),inputProps:{...u,checked:c,"aria-required":h&&m==="aria"||void 0,required:h&&m==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:b,isInvalid:o,validationErrors:i,validationDetails:l}}function Jr(r){let{id:e,label:t,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=r;e=Y(e);let l=Y(),s={};t?(n=n?`${l} ${n}`:l,s={id:l,htmlFor:i==="label"?e:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=Ao({id:e,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:u}}function Qr(r){let{description:e,errorMessage:t,isInvalid:n,validationState:o}=r,{labelProps:i,fieldProps:l}=Jr(r),s=at([!!e,!!t,n,o]),u=at([!!e,!!t,n,o]);return l=I(l,{"aria-describedby":[s,u,r["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:u}}}function ci(r={}){let{isReadOnly:e}=r,[t,n]=Ce(r.isSelected,r.defaultSelected||!1,r.onChange);function o(l){e||n(l)}function i(){e||n(!t)}return{isSelected:t,setSelected:o,toggle:i}}function dc(r){let{selectionMode:e="single",disallowEmptySelection:t,isDisabled:n=!1}=r,[o,i]=Ce(a.useMemo(()=>r.selectedKeys?new Set(r.selectedKeys):void 0,[r.selectedKeys]),a.useMemo(()=>r.defaultSelectedKeys?new Set(r.defaultSelectedKeys):new Set,[r.defaultSelectedKeys]),r.onSelectionChange);return{selectionMode:e,isDisabled:n,selectedKeys:o,setSelectedKeys:i,toggleKey(l){let s;e==="multiple"?(s=new Set(o),s.has(l)&&(!t||s.size>1)?s.delete(l):s.add(l)):s=new Set(o.has(l)&&!t?[]:[l]),i(s)},setSelected(l,s){s!==o.has(l)&&this.toggleKey(l)}}}const Yn={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function di(r={}){let{style:e,isFocusable:t}=r,[n,o]=a.useState(!1),{focusWithinProps:i}=Wt({isDisabled:!t,onFocusWithinChange:s=>o(s)}),l=a.useMemo(()=>n?e:e?{...Yn,...e}:Yn,[n]);return{visuallyHiddenProps:{...i,style:l}}}function fi(r){let{children:e,elementType:t="div",isFocusable:n,style:o,...i}=r,{visuallyHiddenProps:l}=di(r);return a.createElement(t,I(i,l),e)}function fc(r,e){let{inputElementType:t="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=r,[u,c]=Ce(r.value,r.defaultValue||"",r.onChange),{focusableProps:d}=qe(r,e),f=Yr({...r,value:u}),{isInvalid:b,validationErrors:p,validationDetails:h}=f.displayValidation,{labelProps:m,fieldProps:y,descriptionProps:$,errorMessageProps:C}=Qr({...r,isInvalid:b,errorMessage:r.errorMessage||p}),w=G(r,{labelable:!0});const F={type:l,pattern:r.pattern};return Wr(e,u,c),Xr(r,f,e),a.useEffect(()=>{if(e.current instanceof le(e.current).HTMLTextAreaElement){let k=e.current;Object.defineProperty(k,"defaultValue",{get:()=>k.value,set:()=>{},configurable:!0})}},[e]),{labelProps:m,inputProps:I(w,t==="input"?F:void 0,{disabled:n,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":b||void 0,"aria-errormessage":r["aria-errormessage"],"aria-activedescendant":r["aria-activedescendant"],"aria-autocomplete":r["aria-autocomplete"],"aria-haspopup":r["aria-haspopup"],"aria-controls":r["aria-controls"],value:u,onChange:k=>c(k.target.value),autoComplete:r.autoComplete,autoCapitalize:r.autoCapitalize,maxLength:r.maxLength,minLength:r.minLength,name:r.name,placeholder:r.placeholder,inputMode:r.inputMode,autoCorrect:r.autoCorrect,spellCheck:r.spellCheck,onCopy:r.onCopy,onCut:r.onCut,onPaste:r.onPaste,onCompositionEnd:r.onCompositionEnd,onCompositionStart:r.onCompositionStart,onCompositionUpdate:r.onCompositionUpdate,onSelect:r.onSelect,onBeforeInput:r.onBeforeInput,onInput:r.onInput,...d,...y}),descriptionProps:$,errorMessageProps:C,isInvalid:b,validationErrors:p,validationDetails:h}}const ce={top:"top",bottom:"top",left:"left",right:"left"},Bt={top:"bottom",bottom:"top",left:"right",right:"left"},pc={top:"left",left:"top"},Lr={top:"height",left:"width"},pi={width:"totalWidth",height:"totalHeight"},Tt={};let q=typeof document<"u"?window.visualViewport:null;function Xn(r){let e=0,t=0,n=0,o=0,i=0,l=0,s={};var u;let c=((u=q==null?void 0:q.scale)!==null&&u!==void 0?u:1)>1;if(r.tagName==="BODY"){let h=document.documentElement;n=h.clientWidth,o=h.clientHeight;var d;e=(d=q==null?void 0:q.width)!==null&&d!==void 0?d:n;var f;t=(f=q==null?void 0:q.height)!==null&&f!==void 0?f:o,s.top=h.scrollTop||r.scrollTop,s.left=h.scrollLeft||r.scrollLeft,q&&(i=q.offsetTop,l=q.offsetLeft)}else({width:e,height:t,top:i,left:l}=Ge(r)),s.top=r.scrollTop,s.left=r.scrollLeft,n=e,o=t;if(Hr()&&(r.tagName==="BODY"||r.tagName==="HTML")&&c){s.top=0,s.left=0;var b;i=(b=q==null?void 0:q.pageTop)!==null&&b!==void 0?b:0;var p;l=(p=q==null?void 0:q.pageLeft)!==null&&p!==void 0?p:0}return{width:e,height:t,totalWidth:n,totalHeight:o,scroll:s,top:i,left:l}}function vc(r){return{top:r.scrollTop,left:r.scrollLeft,width:r.scrollWidth,height:r.scrollHeight}}function Jn(r,e,t,n,o,i,l){var s;let u=(s=o.scroll[r])!==null&&s!==void 0?s:0,c=n[Lr[r]],d=n.scroll[ce[r]]+i,f=c+n.scroll[ce[r]]-i,b=e-u+l[r]-n[ce[r]],p=e-u+t+l[r]-n[ce[r]];return b<d?d-b:p>f?Math.max(f-p,d-b):0}function bc(r){let e=window.getComputedStyle(r);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Qn(r){if(Tt[r])return Tt[r];let[e,t]=r.split(" "),n=ce[e]||"right",o=pc[n];ce[t]||(t="center");let i=Lr[n],l=Lr[o];return Tt[r]={placement:e,crossPlacement:t,axis:n,crossAxis:o,size:i,crossSize:l},Tt[r]}function fr(r,e,t,n,o,i,l,s,u,c){let{placement:d,crossPlacement:f,axis:b,crossAxis:p,size:h,crossSize:m}=n,y={};var $;y[p]=($=r[p])!==null&&$!==void 0?$:0;var C,w,F,k;f==="center"?y[p]+=(((C=r[m])!==null&&C!==void 0?C:0)-((w=t[m])!==null&&w!==void 0?w:0))/2:f!==p&&(y[p]+=((F=r[m])!==null&&F!==void 0?F:0)-((k=t[m])!==null&&k!==void 0?k:0)),y[p]+=i;const D=r[p]-t[m]+u+c,B=r[p]+r[m]-u-c;if(y[p]=Ft(y[p],D,B),d===b){const v=s?l[h]:e[pi[h]];y[Bt[b]]=Math.floor(v-r[b]+o)}else y[b]=Math.floor(r[b]+r[h]+o);return y}function hc(r,e,t,n,o,i,l,s){const u=n?t.height:e[pi.height];var c;let d=r.top!=null?t.top+r.top:t.top+(u-((c=r.bottom)!==null&&c!==void 0?c:0)-l);var f,b,p,h,m,y;let $=s!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((b=o.top)!==null&&b!==void 0?b:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,d+l-(e.top+((h=e.scroll.top)!==null&&h!==void 0?h:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((y=o.bottom)!==null&&y!==void 0?y:0)+i));return Math.min(e.height-i*2,$)}function eo(r,e,t,n,o,i){let{placement:l,axis:s,size:u}=i;var c,d;if(l===s)return Math.max(0,t[s]-r[s]-((c=r.scroll[s])!==null&&c!==void 0?c:0)+e[s]-((d=n[s])!==null&&d!==void 0?d:0)-n[Bt[s]]-o);var f;return Math.max(0,r[u]+r[s]+r.scroll[s]-e[s]-t[s]-t[u]-((f=n[s])!==null&&f!==void 0?f:0)-n[Bt[s]]-o)}function gc(r,e,t,n,o,i,l,s,u,c,d,f,b,p,h,m){let y=Qn(r),{size:$,crossAxis:C,crossSize:w,placement:F,crossPlacement:k}=y,D=fr(e,s,t,y,d,f,c,b,h,m),B=d,v=eo(s,c,e,o,i+d,y);if(l&&n[$]>v){let Ee=Qn(`${Bt[F]} ${k}`),Je=fr(e,s,t,Ee,d,f,c,b,h,m);eo(s,c,e,o,i+d,Ee)>v&&(y=Ee,D=Je,B=d)}let R="bottom";y.axis==="top"?y.placement==="top"?R="top":y.placement==="bottom"&&(R="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?R="bottom":y.crossPlacement==="bottom"&&(R="top"));let K=Jn(C,D[C],t[w],s,u,i,c);D[C]+=K;let E=hc(D,s,c,b,o,i,t.height,R);p&&p<E&&(E=p),t.height=Math.min(t.height,E),D=fr(e,s,t,y,B,f,c,b,h,m),K=Jn(C,D[C],t[w],s,u,i,c),D[C]+=K;let L={},g=e[C]+.5*e[w]-D[C]-o[ce[C]];const P=h/2+m;var M,N,O,T;const H=ce[C]==="left"?((M=o.left)!==null&&M!==void 0?M:0)+((N=o.right)!==null&&N!==void 0?N:0):((O=o.top)!==null&&O!==void 0?O:0)+((T=o.bottom)!==null&&T!==void 0?T:0),Q=t[w]-H-h/2-m,Ze=e[C]+h/2-(D[C]+o[ce[C]]),Ye=e[C]+e[w]-h/2-(D[C]+o[ce[C]]),Xe=Ft(g,Ze,Ye);return L[C]=Ft(Xe,P,Q),{position:D,maxHeight:E,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:y.placement}}function mc(r){let{placement:e,targetNode:t,overlayNode:n,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:s,offset:u,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:b=0}=r,p=n instanceof HTMLElement?yc(n):document.documentElement,h=p===document.documentElement;const m=window.getComputedStyle(p).position;let y=!!m&&m!=="static",$=h?Ge(t):to(t,p);if(!h){let{marginTop:L,marginLeft:g}=window.getComputedStyle(t);$.top+=parseInt(L,10)||0,$.left+=parseInt(g,10)||0}let C=Ge(n),w=bc(n);var F,k;C.width+=((F=w.left)!==null&&F!==void 0?F:0)+((k=w.right)!==null&&k!==void 0?k:0);var D,B;C.height+=((D=w.top)!==null&&D!==void 0?D:0)+((B=w.bottom)!==null&&B!==void 0?B:0);let v=vc(o),R=Xn(s),K=Xn(p),E=s.tagName==="BODY"?Ge(p):to(p,s);return p.tagName==="HTML"&&s.tagName==="BODY"&&(K.scroll.top=0,K.scroll.left=0),gc(e,$,C,v,w,i,l,R,K,E,u,c,y,d,f,b)}function Ge(r){let{top:e,left:t,width:n,height:o}=r.getBoundingClientRect(),{scrollTop:i,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:e+i-s,left:t+l-u,width:n,height:o}}function to(r,e){let t=window.getComputedStyle(r),n;if(t.position==="fixed"){let{top:o,left:i,width:l,height:s}=r.getBoundingClientRect();n={top:o,left:i,width:l,height:s}}else{n=Ge(r);let o=Ge(e),i=window.getComputedStyle(e);o.top+=(parseInt(i.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(t.marginTop,10)||0,n.left-=parseInt(t.marginLeft,10)||0,n}function yc(r){let e=r.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!ro(e)&&(e=document.documentElement),e==null)for(e=r.parentElement;e&&!ro(e);)e=e.parentElement;return e||document.documentElement}function ro(r){let e=window.getComputedStyle(r);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const vi=new WeakMap;function $c(r){let{triggerRef:e,isOpen:t,onClose:n}=r;a.useEffect(()=>{if(!t||n===null)return;let o=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=n||vi.get(e.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[t,n,e])}let _=typeof document<"u"?window.visualViewport:null;function bi(r){let{direction:e}=Oe(),{arrowSize:t=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:b=!0,isOpen:p=!0,onClose:h,maxHeight:m,arrowBoundaryOffset:y=0}=r,[$,C]=a.useState(null),w=[b,l,o.current,n.current,i.current,s,u,c,d,f,p,e,m,y,t],F=a.useRef(_==null?void 0:_.scale);a.useEffect(()=>{p&&(F.current=_==null?void 0:_.scale)},[p]);let k=a.useCallback(()=>{if(b===!1||!p||!o.current||!n.current||!c||(_==null?void 0:_.scale)!==F.current)return;let K=null;if(i.current&&i.current.contains(document.activeElement)){var E;let T=(E=document.activeElement)===null||E===void 0?void 0:E.getBoundingClientRect(),H=i.current.getBoundingClientRect();var L;if(K={type:"top",offset:((L=T==null?void 0:T.top)!==null&&L!==void 0?L:0)-H.top},K.offset>H.height/2){K.type="bottom";var g;K.offset=((g=T==null?void 0:T.bottom)!==null&&g!==void 0?g:0)-H.bottom}}let P=o.current;if(!m&&o.current){var M;P.style.top="0px",P.style.bottom="";var N;P.style.maxHeight=((N=(M=window.visualViewport)===null||M===void 0?void 0:M.height)!==null&&N!==void 0?N:window.innerHeight)+"px"}let O=mc({placement:Pc(l,e),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:m,arrowSize:t,arrowBoundaryOffset:y});if(O.position){if(P.style.top="",P.style.bottom="",P.style.left="",P.style.right="",Object.keys(O.position).forEach(T=>P.style[T]=O.position[T]+"px"),P.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":"",K&&document.activeElement&&i.current){let T=document.activeElement.getBoundingClientRect(),H=i.current.getBoundingClientRect(),Q=T[K.type]-H[K.type];i.current.scrollTop+=Q-K.offset}C(O)}},w);z(k,w),xc(k),$r({ref:o,onResize:k}),$r({ref:n,onResize:k});let D=a.useRef(!1);z(()=>{let K,E=()=>{D.current=!0,clearTimeout(K),K=setTimeout(()=>{D.current=!1},500),k()},L=()=>{D.current&&E()};return _==null||_.addEventListener("resize",E),_==null||_.addEventListener("scroll",L),()=>{_==null||_.removeEventListener("resize",E),_==null||_.removeEventListener("scroll",L)}},[k]);let B=a.useCallback(()=>{D.current||h==null||h()},[h,D]);$c({triggerRef:n,isOpen:p,onClose:h&&B});var v,R;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(v=$==null?void 0:$.maxHeight)!==null&&v!==void 0?v:"100vh"}},placement:(R=$==null?void 0:$.placement)!==null&&R!==void 0?R:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:k}}function xc(r){z(()=>(window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}),[r])}function Pc(r,e){return e==="rtl"?r.replace("start","right").replace("end","left"):r.replace("start","left").replace("end","right")}const fe=[];function Sc(r,e){let{onClose:t,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=r;a.useEffect(()=>(o&&fe.push(e),()=>{let h=fe.indexOf(e);h>=0&&fe.splice(h,1)}),[o,e]);let u=()=>{fe[fe.length-1]===e&&t&&t()},c=h=>{(!s||s(h.target))&&fe[fe.length-1]===e&&(h.stopPropagation(),h.preventDefault())},d=h=>{(!s||s(h.target))&&(fe[fe.length-1]===e&&(h.stopPropagation(),h.preventDefault()),u())},f=h=>{h.key==="Escape"&&!l&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),u())};yu({ref:e,onInteractOutside:i&&o?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:b}=Wt({isDisabled:!n,onBlurWithin:h=>{!h.relatedTarget||Du(h.relatedTarget)||(!s||s(h.relatedTarget))&&(t==null||t())}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:f,...b},underlayProps:{onPointerDown:p}}}function hi(r,e,t){let{type:n}=r,{isOpen:o}=e;a.useEffect(()=>{t&&t.current&&vi.set(t.current,e.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let l=Y();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const pr=typeof document<"u"&&window.visualViewport,Cc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Dt=0,vr;function wc(r={}){let{isDisabled:e}=r;z(()=>{if(!e)return Dt++,Dt===1&&(Ht()?vr=Tc():vr=Ec()),()=>{Dt--,Dt===0&&vr()}},[e])}function Ec(){return xe(Ue(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ue(document.documentElement,"overflow","hidden"))}function Tc(){let r,e,t=c=>{r=Io(c.target,!0),!(r===document.documentElement&&r===document.body)&&r instanceof HTMLElement&&window.getComputedStyle(r).overscrollBehavior==="auto"&&(e=Ue(r,"overscrollBehavior","contain"))},n=c=>{if(!r||r===document.documentElement||r===document.body){c.preventDefault();return}r.scrollHeight===r.clientHeight&&r.scrollWidth===r.clientWidth&&c.preventDefault()},o=()=>{e&&e()},i=c=>{let d=c.target;Dc(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",pr&&(pr.height<window.innerHeight?requestAnimationFrame(()=>{no(d)}):pr.addEventListener("resize",()=>no(d),{once:!0}))}))},l=null,s=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=xe(et(window,"scroll",c),Ue(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ue(document.documentElement,"overflow","hidden"),Ue(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},u=xe(et(document,"touchstart",t,{passive:!1,capture:!0}),et(document,"touchmove",n,{passive:!1,capture:!0}),et(document,"touchend",o,{passive:!1,capture:!0}),et(document,"focus",i,!0));return()=>{e==null||e(),l==null||l(),u()}}function Ue(r,e,t){let n=r.style[e];return r.style[e]=t,()=>{r.style[e]=n}}function et(r,e,t,n){return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}}function no(r){let e=document.scrollingElement||document.documentElement,t=r;for(;t&&t!==e;){let n=Io(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let o=n.getBoundingClientRect().top,i=t.getBoundingClientRect().top;i>o+t.clientHeight&&(n.scrollTop+=i-o)}t=n.parentElement}}function Dc(r){return r instanceof HTMLInputElement&&!Cc.has(r.type)||r instanceof HTMLTextAreaElement||r instanceof HTMLElement&&r.isContentEditable}const Ar=a.createContext(null);function kc(r){let{children:e}=r,t=a.useContext(Ar),[n,o]=a.useState(0),i=a.useMemo(()=>({parent:t,modalCount:n,addModal(){o(l=>l+1),t&&t.addModal()},removeModal(){o(l=>l-1),t&&t.removeModal()}}),[t,n]);return a.createElement(Ar.Provider,{value:i},e)}function Rc(){let r=a.useContext(Ar);return{modalProviderProps:{"aria-hidden":r&&r.modalCount>0?!0:void 0}}}function Kc(r){let{modalProviderProps:e}=Rc();return a.createElement("div",{"data-overlay-container":!0,...r,...e})}function Fc(r){return a.createElement(kc,null,a.createElement(Kc,r))}function Mc(r){let e=Se(),{portalContainer:t=e?null:document.body,...n}=r;if(a.useEffect(()=>{if(t!=null&&t.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[t]),!t)return null;let o=a.createElement(Fc,n);return Ie.createPortal(o,t)}var gi={};gi={dismiss:"تجاهل"};var mi={};mi={dismiss:"Отхвърляне"};var yi={};yi={dismiss:"Odstranit"};var $i={};$i={dismiss:"Luk"};var xi={};xi={dismiss:"Schließen"};var Pi={};Pi={dismiss:"Απόρριψη"};var Si={};Si={dismiss:"Dismiss"};var Ci={};Ci={dismiss:"Descartar"};var wi={};wi={dismiss:"Lõpeta"};var Ei={};Ei={dismiss:"Hylkää"};var Ti={};Ti={dismiss:"Rejeter"};var Di={};Di={dismiss:"התעלם"};var ki={};ki={dismiss:"Odbaci"};var Ri={};Ri={dismiss:"Elutasítás"};var Ki={};Ki={dismiss:"Ignora"};var Fi={};Fi={dismiss:"閉じる"};var Mi={};Mi={dismiss:"무시"};var Li={};Li={dismiss:"Atmesti"};var Ai={};Ai={dismiss:"Nerādīt"};var Ii={};Ii={dismiss:"Lukk"};var Bi={};Bi={dismiss:"Negeren"};var Ni={};Ni={dismiss:"Zignoruj"};var Oi={};Oi={dismiss:"Descartar"};var zi={};zi={dismiss:"Dispensar"};var Hi={};Hi={dismiss:"Revocare"};var Vi={};Vi={dismiss:"Пропустить"};var ji={};ji={dismiss:"Zrušiť"};var Wi={};Wi={dismiss:"Opusti"};var _i={};_i={dismiss:"Odbaci"};var Ui={};Ui={dismiss:"Avvisa"};var Gi={};Gi={dismiss:"Kapat"};var qi={};qi={dismiss:"Скасувати"};var Zi={};Zi={dismiss:"取消"};var Yi={};Yi={dismiss:"關閉"};var Xi={};Xi={"ar-AE":gi,"bg-BG":mi,"cs-CZ":yi,"da-DK":$i,"de-DE":xi,"el-GR":Pi,"en-US":Si,"es-ES":Ci,"et-EE":wi,"fi-FI":Ei,"fr-FR":Ti,"he-IL":Di,"hr-HR":ki,"hu-HU":Ri,"it-IT":Ki,"ja-JP":Fi,"ko-KR":Mi,"lt-LT":Li,"lv-LV":Ai,"nb-NO":Ii,"nl-NL":Bi,"pl-PL":Ni,"pt-BR":Oi,"pt-PT":zi,"ro-RO":Hi,"ru-RU":Vi,"sk-SK":ji,"sl-SI":Wi,"sr-SP":_i,"sv-SE":Ui,"tr-TR":Gi,"uk-UA":qi,"zh-CN":Zi,"zh-TW":Yi};function Lc(r){return r&&r.__esModule?r.default:r}function oo(r){let{onDismiss:e,...t}=r,n=qr(Lc(Xi),"@react-aria/overlays"),o=Ao(t,n.format("dismiss")),i=()=>{e&&e()};return a.createElement(fi,null,a.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let tt=new WeakMap,oe=[];function Ac(r,e=document.body){let t=new Set(r),n=new Set,o=u=>{for(let b of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))t.add(b);let c=b=>{if(t.has(b)||b.parentElement&&n.has(b.parentElement)&&b.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of t)if(b.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(u);if(f===NodeFilter.FILTER_ACCEPT&&i(u),f!==NodeFilter.FILTER_REJECT){let b=d.nextNode();for(;b!=null;)i(b),b=d.nextNode()}},i=u=>{var c;let d=(c=tt.get(u))!==null&&c!==void 0?c:0;u.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&u.setAttribute("aria-hidden","true"),n.add(u),tt.set(u,d+1))};oe.length&&oe[oe.length-1].disconnect(),o(e);let l=new MutationObserver(u=>{for(let c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...t,...n].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(t.delete(d),n.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?t.add(d):d instanceof Element&&o(d)}});l.observe(e,{childList:!0,subtree:!0});let s={observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return oe.push(s),()=>{l.disconnect();for(let u of n){let c=tt.get(u);c!=null&&(c===1?(u.removeAttribute("aria-hidden"),tt.delete(u)):tt.set(u,c-1))}s===oe[oe.length-1]?(oe.pop(),oe.length&&oe[oe.length-1].observe()):oe.splice(oe.indexOf(s),1)}}function Ic(r,e){let{triggerRef:t,popoverRef:n,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=r,{overlayProps:u,underlayProps:c}=Sc({isOpen:e.isOpen&&!s["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},n),{overlayProps:d,arrowProps:f,placement:b}=bi({...s,targetRef:t,overlayRef:n,isOpen:e.isOpen,onClose:o?e.close:null});return wc({isDisabled:o||!e.isOpen}),z(()=>{if(e.isOpen&&!o&&n.current)return Ac([n.current])},[o,e.isOpen,n]),{popoverProps:I(u,d),arrowProps:f,underlayProps:c,placement:b}}const Bc=a.createContext({});function Nc(){var r;return(r=a.useContext(Bc))!==null&&r!==void 0?r:{}}const Ji=a.createContext(null);function Oc(r){let e=Se(),{portalContainer:t=e?null:document.body,isExiting:n}=r,[o,i]=a.useState(!1),l=a.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=Nc();if(!r.portalContainer&&s&&(t=s()),!t)return null;let u=r.children;return r.disableFocusManagement||(u=a.createElement(ei,{restoreFocus:!0,contain:o&&!n},u)),u=a.createElement(Ji.Provider,{value:l},a.createElement(cu,null,u)),Ie.createPortal(u,t)}function zc(){let r=a.useContext(Ji),e=r==null?void 0:r.setContain;z(()=>{e==null||e(!0)},[e])}const en=new WeakMap;function Hc(r){return typeof r=="string"?r.replace(/\s*/g,""):""+r}function Vc(r,e){let t=en.get(r);if(!t)throw new Error("Unknown list");return`${t.id}-option-${Hc(e)}`}function Ir(r){return zs()?r.altKey:r.ctrlKey}const jc=1e3;function Qi(r){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:n}=r,o=a.useRef({search:"",timeout:void 0}).current,i=l=>{let s=Wc(l.key);if(!(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s,e.getKeyForSearch!=null){let u=e.getKeyForSearch(o.search,t.focusedKey);u==null&&(u=e.getKeyForSearch(o.search)),u!=null&&(t.setFocusedKey(u),n&&n(u))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},jc)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:void 0}}}function Wc(r){return r.length===1||!/^[A-Z]/i.test(r)?r:""}function _c(r){let{selectionManager:e,keyboardDelegate:t,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:b,scrollRef:p=n,linkBehavior:h="action"}=r,{direction:m}=Oe(),y=Vt(),$=g=>{var P;if(g.altKey&&g.key==="Tab"&&g.preventDefault(),!(!((P=n.current)===null||P===void 0)&&P.contains(g.target)))return;const M=(A,Te)=>{if(A!=null){if(e.isLink(A)&&h==="selection"&&u&&!Ir(g)){var ge;Ie.flushSync(()=>{e.setFocusedKey(A,Te)});let Dn=(ge=p.current)===null||ge===void 0?void 0:ge.querySelector(`[data-key="${CSS.escape(A.toString())}"]`),kn=e.getItemProps(A);Dn&&y.open(Dn,g,kn.href,kn.routerOptions);return}if(e.setFocusedKey(A,Te),e.isLink(A)&&h==="override")return;g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(A):u&&!Ir(g)&&e.replaceSelection(A)}};switch(g.key){case"ArrowDown":if(t.getKeyBelow){var N,O,T;let A=e.focusedKey!=null?(N=t.getKeyBelow)===null||N===void 0?void 0:N.call(t,e.focusedKey):(O=t.getFirstKey)===null||O===void 0?void 0:O.call(t);A==null&&i&&(A=(T=t.getFirstKey)===null||T===void 0?void 0:T.call(t,e.focusedKey)),A!=null&&(g.preventDefault(),M(A))}break;case"ArrowUp":if(t.getKeyAbove){var H,Q,Ze;let A=e.focusedKey!=null?(H=t.getKeyAbove)===null||H===void 0?void 0:H.call(t,e.focusedKey):(Q=t.getLastKey)===null||Q===void 0?void 0:Q.call(t);A==null&&i&&(A=(Ze=t.getLastKey)===null||Ze===void 0?void 0:Ze.call(t,e.focusedKey)),A!=null&&(g.preventDefault(),M(A))}break;case"ArrowLeft":if(t.getKeyLeftOf){var Ye,Xe,Ee;let A=e.focusedKey!=null?(Ye=t.getKeyLeftOf)===null||Ye===void 0?void 0:Ye.call(t,e.focusedKey):null;A==null&&i&&(A=m==="rtl"?(Xe=t.getFirstKey)===null||Xe===void 0?void 0:Xe.call(t,e.focusedKey):(Ee=t.getLastKey)===null||Ee===void 0?void 0:Ee.call(t,e.focusedKey)),A!=null&&(g.preventDefault(),M(A,m==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var Je,xt,tr;let A=e.focusedKey!=null?(Je=t.getKeyRightOf)===null||Je===void 0?void 0:Je.call(t,e.focusedKey):null;A==null&&i&&(A=m==="rtl"?(xt=t.getLastKey)===null||xt===void 0?void 0:xt.call(t,e.focusedKey):(tr=t.getFirstKey)===null||tr===void 0?void 0:tr.call(t,e.focusedKey)),A!=null&&(g.preventDefault(),M(A,m==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let A=t.getFirstKey(e.focusedKey,We(g));e.setFocusedKey(A),A!=null&&(We(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(A):u&&e.replaceSelection(A))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let A=t.getLastKey(e.focusedKey,We(g));e.setFocusedKey(A),A!=null&&(We(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(A):u&&e.replaceSelection(A))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let A=t.getKeyPageBelow(e.focusedKey);A!=null&&(g.preventDefault(),M(A))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let A=t.getKeyPageAbove(e.focusedKey);A!=null&&(g.preventDefault(),M(A))}break;case"a":We(g)&&e.selectionMode==="multiple"&&s!==!0&&(g.preventDefault(),e.selectAll());break;case"Escape":!l&&e.selectedKeys.size!==0&&(g.stopPropagation(),g.preventDefault(),e.clearSelection());break;case"Tab":if(!f){if(g.shiftKey)n.current.focus();else{let A=te(n.current,{tabbable:!0}),Te,ge;do ge=A.lastChild(),ge&&(Te=ge);while(ge);Te&&!Te.contains(document.activeElement)&&be(Te)}break}}},C=a.useRef({top:0,left:0});nt(p,"scroll",b?void 0:()=>{var g,P,M,N;C.current={top:(M=(g=p.current)===null||g===void 0?void 0:g.scrollTop)!==null&&M!==void 0?M:0,left:(N=(P=p.current)===null||P===void 0?void 0:P.scrollLeft)!==null&&N!==void 0?N:0}});let w=g=>{if(e.isFocused){g.currentTarget.contains(g.target)||e.setFocused(!1);return}if(g.currentTarget.contains(g.target)){if(e.setFocused(!0),e.focusedKey==null){var P,M;let T=Q=>{Q!=null&&(e.setFocusedKey(Q),u&&e.replaceSelection(Q))},H=g.relatedTarget;var N,O;H&&g.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?T((N=e.lastSelectedKey)!==null&&N!==void 0?N:(P=t.getLastKey)===null||P===void 0?void 0:P.call(t)):T((O=e.firstSelectedKey)!==null&&O!==void 0?O:(M=t.getFirstKey)===null||M===void 0?void 0:M.call(t))}else!b&&p.current&&(p.current.scrollTop=C.current.top,p.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&p.current){let T=p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);T&&(T.contains(document.activeElement)||be(T),dt()==="keyboard"&&Mn(T,{containingElement:n.current}))}}},F=g=>{g.currentTarget.contains(g.relatedTarget)||e.setFocused(!1)},k=a.useRef(!1);nt(n,Js,d?g=>{let{detail:P}=g;g.stopPropagation(),e.setFocused(!0),(P==null?void 0:P.focusStrategy)==="first"&&(k.current=!0)}:void 0);let D=Z(()=>{var g,P;let M=(P=(g=t.getFirstKey)===null||g===void 0?void 0:g.call(t))!==null&&P!==void 0?P:null;if(M==null){var N;(N=n.current)===null||N===void 0||N.dispatchEvent(new CustomEvent(No,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(k.current=!1)}else e.setFocusedKey(M),k.current=!1});Kn(()=>{k.current&&D()},[e.collection,D]);let B=Z(()=>{e.collection.size>0&&(k.current=!1)});Kn(()=>{B()},[e.focusedKey,B]),nt(n,Xs,d?g=>{g.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const v=a.useRef(o);a.useEffect(()=>{if(v.current){var g,P;let O=null;var M;o==="first"&&(O=(M=(g=t.getFirstKey)===null||g===void 0?void 0:g.call(t))!==null&&M!==void 0?M:null);var N;o==="last"&&(O=(N=(P=t.getLastKey)===null||P===void 0?void 0:P.call(t))!==null&&N!==void 0?N:null);let T=e.selectedKeys;if(T.size){for(let H of T)if(e.canSelectItem(H)){O=H;break}}e.setFocused(!0),e.setFocusedKey(O),O==null&&!d&&n.current&&Ae(n.current)}},[]);let R=a.useRef(e.focusedKey);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==R.current||v.current)&&p.current&&n.current){let g=dt(),P=n.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!P)return;(g==="keyboard"||v.current)&&(Bo(p.current,P),g!=="virtual"&&Mn(P,{containingElement:n.current}))}!d&&e.isFocused&&e.focusedKey==null&&R.current!=null&&n.current&&Ae(n.current),R.current=e.focusedKey,v.current=!1}),nt(n,"react-aria-focus-scope-restore",g=>{g.preventDefault(),e.setFocused(!0)});let K={onKeyDown:$,onFocus:w,onBlur:F,onMouseDown(g){p.current===g.target&&g.preventDefault()}},{typeSelectProps:E}=Qi({keyboardDelegate:t,selectionManager:e});c||(K=I(E,K));let L;return d?L=-1:L=e.focusedKey==null?0:-1,{collectionProps:{...K,tabIndex:L}}}function Uc(r){let{id:e,selectionManager:t,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:s,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=r,b=Vt();e=Y(e);let p=T=>{if(T.pointerType==="keyboard"&&Ir(T))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&o.current){let H=t.getItemProps(n);b.open(o.current,T,H.href,H.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):T&&T.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||T&&(We(T)||T.pointerType==="touch"||T.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};a.useEffect(()=>{if(n===t.focusedKey&&t.isFocused)if(!l)s?s():document.activeElement!==o.current&&o.current&&Ae(o.current);else{var H;let Q=new CustomEvent(No,{cancelable:!0,bubbles:!0});(H=o.current)===null||H===void 0||H.dispatchEvent(Q)}},[o,n,t.focusedKey,t.childFocusStrategy,t.isFocused,l]),u=u||t.isDisabled(n);let h={};!l&&!u?h={tabIndex:n===t.focusedKey?0:-1,onFocus(T){T.target===o.current&&t.setFocusedKey(n)}}:u&&(h.onMouseDown=T=>{T.preventDefault()});let m=t.isLink(n)&&f==="override",y=t.isLink(n)&&f!=="selection"&&f!=="none",$=!u&&t.canSelectItem(n)&&!m,C=(c||y)&&!u,w=C&&(t.selectionBehavior==="replace"?!$:!$||t.isEmpty),F=C&&$&&t.selectionBehavior==="replace",k=w||F,D=a.useRef(null),B=k&&$,v=a.useRef(!1),R=a.useRef(!1),K=T=>{if(c&&c(),y&&o.current){let H=t.getItemProps(n);b.open(o.current,T,H.href,H.routerOptions)}},E={};i?(E.onPressStart=T=>{D.current=T.pointerType,v.current=B,T.pointerType==="keyboard"&&(!k||lo())&&p(T)},d?(E.onPressUp=w?void 0:T=>{T.pointerType==="mouse"&&$&&p(T)},E.onPress=w?K:T=>{T.pointerType!=="keyboard"&&T.pointerType!=="mouse"&&$&&p(T)}):E.onPress=T=>{if(w||F&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!io())return;K(T)}else T.pointerType!=="keyboard"&&$&&p(T)}):(E.onPressStart=T=>{D.current=T.pointerType,v.current=B,R.current=w,$&&(T.pointerType==="mouse"&&!w||T.pointerType==="keyboard"&&(!C||lo()))&&p(T)},E.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&k&&io()||T.pointerType==="mouse"&&R.current)&&(k?K(T):$&&p(T))}),h["data-key"]=n,E.preventFocusOnPress=l;let{pressProps:L,isPressed:g}=Me(E),P=F?T=>{D.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),K(T))}:void 0,{longPressProps:M}=Jo({isDisabled:!B,onLongPress(T){T.pointerType==="touch"&&(p(T),t.setSelectionBehavior("toggle"))}}),N=T=>{D.current==="touch"&&v.current&&T.preventDefault()},O=t.isLink(n)?T=>{Fe.isOpening||T.preventDefault()}:void 0;return{itemProps:I(h,$||w?L:{},B?M:{},{onDoubleClick:P,onDragStartCapture:N,onClick:O,id:e}),isPressed:g,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:$,hasAction:k}}function io(){let r=window.event;return(r==null?void 0:r.key)==="Enter"}function lo(){let r=window.event;return(r==null?void 0:r.key)===" "||(r==null?void 0:r.code)==="Space"}class ao{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e!=null?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let o=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left+t.scrollLeft,y:i.top-o.top+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;var t,n;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(n=e==null?void 0:e.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let e=this.ref.current;var t,n,o,i;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(n=e==null?void 0:e.scrollTop)!==null&&n!==void 0?n:0,width:(o=e==null?void 0:e.offsetWidth)!==null&&o!==void 0?o:0,height:(i=e==null?void 0:e.offsetHeight)!==null&&i!==void 0?i:0}}constructor(e){this.ref=e}}class tn{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let o=this.collection.getItem(n);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}findKey(e,t,n){let o=e,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=t(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(l,i)&&o!=null);return o}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[t](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[t](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!st(t))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!st(t))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,o=t||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let l=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(l,e)===0)return o;o=this.getNextKey(o)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new ao(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ao(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Gc(r){let{selectionManager:e,collection:t,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:l}=r,s=Zr({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,c=a.useMemo(()=>i||new tn({collection:t,disabledKeys:n,disabledBehavior:u,ref:o,collator:s,layoutDelegate:l}),[i,l,t,n,o,s,u]),{collectionProps:d}=_c({...r,ref:o,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function qc(r,e,t){let n=G(r,{labelable:!0}),o=r.selectionBehavior||"toggle",i=r.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Gc({...r,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Wt({onFocusWithin:r.onFocus,onBlurWithin:r.onBlur,onFocusWithinChange:r.onFocusChange}),u=Y(r.id);en.set(e,{id:u,shouldUseVirtualFocus:r.shouldUseVirtualFocus,shouldSelectOnPressUp:r.shouldSelectOnPressUp,shouldFocusOnHover:r.shouldFocusOnHover,isVirtualized:r.isVirtualized,onAction:r.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=Jr({...r,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:I(n,s,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...I(d,l)})}}class Zc{build(e,t){return this.context=t,so(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(a.isValidElement(t)&&t.type===a.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:t}),o++}else{let o=[];a.Children.forEach(t,l=>{l&&o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let u of s)i++,yield u}}}getKey(e,t,n,o){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${o}${t.key}`;let i=t.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,o){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,C=>{y.push(C)});var i;let $=(i=e.index)!==null&&i!==void 0?i:0;for(const C of y)yield*this.getFullNode({element:C,index:$++},t,n,o);return}let l=e.element;if(!l&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=o?o.key:null,yield y;return}l=t.renderer(e.value)}if(a.isValidElement(l)){let y=l.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let F=l.type;throw new Error(`Unknown element <${F}> in collection.`)}let $=y.getCollectionNode(l.props,this.context);var s;let C=(s=e.index)!==null&&s!==void 0?s:0,w=$.next();for(;!w.done&&w.value;){let F=w.value;e.index=C;var u;let k=(u=F.key)!==null&&u!==void 0?u:null;k==null&&(k=F.element?null:this.getKey(l,e,t,n));let B=[...this.getFullNode({...F,key:k,index:C,wrapper:Yc(e.wrapper,F.wrapper)},this.getChildState(t,F),n?`${n}${l.key}`:l.key,o)];for(let v of B){var c,d;v.value=(d=(c=F.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,v.value&&this.cache.set(v.value,v);var f;if(e.type&&v.type!==e.type)throw new Error(`Unsupported type <${br(v.type)}> in <${br((f=o==null?void 0:o.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${br(e.type)}> is supported.`);C++,yield v}w=$.next(B)}return}if(e.key==null||e.type==null)return;let b=this;var p,h;let m={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:(p=e.value)!==null&&p!==void 0?p:null,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:(h=e.textValue)!==null&&h!==void 0?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:so(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let $ of e.childNodes()){$.key!=null&&($.key=`${m.key}${$.key}`);let C=b.getFullNode({...$,index:y},b.getChildState(t,$),m.key,m);for(let w of C)y++,yield w}})};yield m}constructor(){this.cache=new WeakMap}}function so(r){let e=[],t=null;return{*[Symbol.iterator](){for(let n of e)yield n;t||(t=r());for(let n of t)e.push(n),yield n}}}function Yc(r,e){if(r&&e)return t=>r(e(t));if(r)return r;if(e)return e}function br(r){return r[0].toUpperCase()+r.slice(1)}function Xc(r,e,t){let n=a.useMemo(()=>new Zc,[]),{children:o,items:i,collection:l}=r;return a.useMemo(()=>{if(l)return l;let u=n.build({children:o,items:i},t);return e(u)},[n,o,i,l,t,e])}function el(r,e){return typeof e.getChildren=="function"?e.getChildren(r.key):r.childNodes}function Jc(r){return Qc(r)}function Qc(r,e){for(let t of r)return t}function hr(r,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let n=[...uo(r,e),e],o=[...uo(r,t),t],i=n.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(e=n[i],t=o[i],e.index-t.index):n.findIndex(l=>l===t)>=0?1:(o.findIndex(l=>l===e)>=0,-1)}function uo(r,e){let t=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=r.getItem(n.parentKey),n&&t.unshift(n);return t}const co=new WeakMap;function ed(r){let e=co.get(r);if(e!=null)return e;let t=0,n=o=>{for(let i of o)i.type==="section"?n(el(i,r)):t++};return n(r),co.set(r,t),t}function td(r,e,t){var n,o;let{key:i}=r,l=en.get(e);var s;let u=(s=r.isDisabled)!==null&&s!==void 0?s:e.selectionManager.isDisabled(i);var c;let d=(c=r.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(i);var f;let b=(f=r.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var p;let h=(p=r.shouldFocusOnHover)!==null&&p!==void 0?p:l==null?void 0:l.shouldFocusOnHover;var m;let y=(m=r.shouldUseVirtualFocus)!==null&&m!==void 0?m:l==null?void 0:l.shouldUseVirtualFocus;var $;let C=($=r.isVirtualized)!==null&&$!==void 0?$:l==null?void 0:l.isVirtualized,w=at(),F=at(),k={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Pe()&&Hr()||(k["aria-label"]=r["aria-label"],k["aria-labelledby"]=w,k["aria-describedby"]=F);let D=e.collection.getItem(i);if(C){let O=Number(D==null?void 0:D.index);k["aria-posinset"]=Number.isNaN(O)?void 0:O+1,k["aria-setsize"]=ed(e.collection)}let B=l!=null&&l.onAction?()=>{var O;return l==null||(O=l.onAction)===null||O===void 0?void 0:O.call(l,i)}:void 0,v=Vc(e,i),{itemProps:R,isPressed:K,isFocused:E,hasAction:L,allowsSelection:g}=Uc({selectionManager:e.selectionManager,key:i,ref:t,shouldSelectOnPressUp:b,allowsDifferentPressOrigin:b&&h,isVirtualized:C,shouldUseVirtualFocus:y,isDisabled:u,onAction:B||!(D==null||(n=D.props)===null||n===void 0)&&n.onAction?xe(D==null||(o=D.props)===null||o===void 0?void 0:o.onAction,B):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:v}),{hoverProps:P}=Ne({isDisabled:u||!h,onHoverStart(){ct()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(i))}}),M=G(D==null?void 0:D.props);delete M.id;let N=Fo(D==null?void 0:D.props);return{optionProps:{...k,...I(M,R,P,N),id:v},labelProps:{id:w},descriptionProps:{id:F},isFocused:E,isFocusVisible:E&&ct(),isSelected:d,isDisabled:u,isPressed:K,allowsSelection:g,hasAction:L}}function rd(r){let{heading:e,"aria-label":t}=r,n=Y();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?n:void 0}}}var tl={};tl={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var rl={};rl={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var nl={};nl={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ol={};ol={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var il={};il={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var ll={};ll={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var al={};al={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var sl={};sl={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ul={};ul={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var cl={};cl={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var dl={};dl={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var fl={};fl={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var pl={};pl={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var vl={};vl={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var bl={};bl={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var hl={};hl={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var gl={};gl={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ml={};ml={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var yl={};yl={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var $l={};$l={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var xl={};xl={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Pl={};Pl={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Sl={};Sl={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Cl={};Cl={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var wl={};wl={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var El={};El={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Tl={};Tl={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Dl={};Dl={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var kl={};kl={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Rl={};Rl={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Kl={};Kl={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Fl={};Fl={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Ml={};Ml={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ll={};Ll={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Al={};Al={"ar-AE":tl,"bg-BG":rl,"cs-CZ":nl,"da-DK":ol,"de-DE":il,"el-GR":ll,"en-US":al,"es-ES":sl,"et-EE":ul,"fi-FI":cl,"fr-FR":dl,"he-IL":fl,"hr-HR":pl,"hu-HU":vl,"it-IT":bl,"ja-JP":hl,"ko-KR":gl,"lt-LT":ml,"lv-LV":yl,"nb-NO":$l,"nl-NL":xl,"pl-PL":Pl,"pt-BR":Sl,"pt-PT":Cl,"ro-RO":wl,"ru-RU":El,"sk-SK":Tl,"sl-SI":Dl,"sr-SP":kl,"sv-SE":Rl,"tr-TR":Kl,"uk-UA":Fl,"zh-CN":Ml,"zh-TW":Ll};function nd(r){return r&&r.__esModule?r.default:r}function od(r,e,t){let{type:n="menu",isDisabled:o,trigger:i="press"}=r,l=Y(),{triggerProps:s,overlayProps:u}=hi({type:n},e,t),c=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&t&&t.current)switch(p.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=qr(nd(Al),"@react-aria/menu"),{longPressProps:f}=Jo({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),b={onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&e.open(p.pointerType==="virtual"?"first":null)},onPress(p){p.pointerType==="touch"&&!o&&e.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?b:f,id:l,onKeyDown:c},menuProps:{...u,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}function id(r,e){let{role:t="dialog"}=r,n=at();n=r["aria-label"]?void 0:n;let o=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){Ae(e.current);let i=setTimeout(()=>{document.activeElement===e.current&&(o.current=!0,e.current&&(e.current.blur(),Ae(e.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),zc(),{dialogProps:{...G(r,{labelable:!0}),role:t,tabIndex:-1,"aria-labelledby":r["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}function ld(r,e,t){let{isDisabled:n}=r,o=Y(),i=Y(),s=!Se()&&"onbeforematch"in document.body,u=a.useRef(null),c=a.useCallback(()=>{u.current=requestAnimationFrame(()=>{t.current&&t.current.setAttribute("hidden","until-found")}),Ie.flushSync(()=>{e.toggle()})},[t,e]);return nt(t,"beforematch",s?c:null),z(()=>{u.current&&cancelAnimationFrame(u.current),s&&t.current&&!n&&(e.isExpanded?t.current.removeAttribute("hidden"):t.current.setAttribute("hidden","until-found"))},[n,t,e.isExpanded,s]),a.useEffect(()=>()=>{u.current&&cancelAnimationFrame(u.current)},[]),{buttonProps:{id:o,"aria-expanded":e.isExpanded,"aria-controls":i,onPress:d=>{!n&&d.pointerType!=="keyboard"&&e.toggle()},isDisabled:n,onPressStart(d){d.pointerType==="keyboard"&&!n&&e.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":o,"aria-hidden":!e.isExpanded,hidden:s?!0:!e.isExpanded}}}function ad(r){let{value:e=0,minValue:t=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=r,s=G(r,{labelable:!0}),{labelProps:u,fieldProps:c}=Jr({...r,labelElementType:"span"});e=Ft(e,t,n);let d=(e-t)/(n-t),f=Ju(l);if(!i&&!o){let b=l.style==="percent"?d:e;o=f.format(b)}return{progressBarProps:I(s,{...c,"aria-valuenow":i?void 0:e,"aria-valuemin":t,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:u}}const Il=new WeakMap;function sd(r,e,t){let{keyboardDelegate:n,isDisabled:o,isRequired:i,name:l,validationBehavior:s="aria"}=r,u=Zr({usage:"search",sensitivity:"base"}),c=a.useMemo(()=>n||new tn(e.collection,e.disabledKeys,t,u),[n,e.collection,e.disabledKeys,u]),{menuTriggerProps:d,menuProps:f}=od({isDisabled:o,type:"listbox"},e,t),b=v=>{switch(v.key){case"ArrowLeft":{var R,K;v.preventDefault();let g=e.selectedKey!=null?(R=c.getKeyAbove)===null||R===void 0?void 0:R.call(c,e.selectedKey):(K=c.getFirstKey)===null||K===void 0?void 0:K.call(c);g&&e.setSelectedKey(g);break}case"ArrowRight":{var E,L;v.preventDefault();let g=e.selectedKey!=null?(E=c.getKeyBelow)===null||E===void 0?void 0:E.call(c,e.selectedKey):(L=c.getFirstKey)===null||L===void 0?void 0:L.call(c);g&&e.setSelectedKey(g);break}}},{typeSelectProps:p}=Qi({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(v){e.setSelectedKey(v)}}),{isInvalid:h,validationErrors:m,validationDetails:y}=e.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:w,errorMessageProps:F}=Qr({...r,labelElementType:"span",isInvalid:h,errorMessage:r.errorMessage||m});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let k=G(r,{labelable:!0}),D=I(p,d,C),B=Y();return Il.set(e,{isDisabled:o,isRequired:i,name:l,validationBehavior:s}),{labelProps:{...$,onClick:()=>{if(!r.isDisabled){var v;(v=t.current)===null||v===void 0||v.focus(),Xo("keyboard")}}},triggerProps:I(k,{...D,isDisabled:o,onKeyDown:xe(D.onKeyDown,b,r.onKeyDown),onKeyUp:r.onKeyUp,"aria-labelledby":[B,D["aria-labelledby"],D["aria-label"]&&!D["aria-labelledby"]?D.id:null].filter(Boolean).join(" "),onFocus(v){e.isFocused||(r.onFocus&&r.onFocus(v),r.onFocusChange&&r.onFocusChange(!0),e.setFocused(!0))},onBlur(v){e.isOpen||(r.onBlur&&r.onBlur(v),r.onFocusChange&&r.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:B},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:v=>{v.currentTarget.contains(v.relatedTarget)||(r.onBlur&&r.onBlur(v),r.onFocusChange&&r.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],D["aria-label"]&&!C["aria-labelledby"]?D.id:null].filter(Boolean).join(" ")},descriptionProps:w,errorMessageProps:F,isInvalid:h,validationErrors:m,validationDetails:y}}function ud(r,e,t){let n=Il.get(e)||{},{autoComplete:o,name:i=n.name,isDisabled:l=n.isDisabled}=r,{validationBehavior:s,isRequired:u}=n,{visuallyHiddenProps:c}=di();Wr(r.selectRef,e.selectedKey,e.setSelectedKey),Xr({validationBehavior:s,focus:()=>{var f;return(f=t.current)===null||f===void 0?void 0:f.focus()}},e,r.selectRef);var d;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:l,required:s==="native"&&u,name:i,value:(d=e.selectedKey)!==null&&d!==void 0?d:"",onChange:f=>e.setSelectedKey(f.target.value)}}}function cd(r){let{state:e,triggerRef:t,label:n,name:o,isDisabled:i}=r,l=a.useRef(null),{containerProps:s,selectProps:u}=ud({...r,selectRef:l},e,t);var c;return e.collection.size<=300?a.createElement("div",{...s,"data-testid":"hidden-select-container"},a.createElement("label",null,n,a.createElement("select",{...u,ref:l},a.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return a.createElement("option",{key:f.key,value:f.key},f.textValue)})))):o?a.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:o,disabled:i,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function dd(r,e){let t=G(r,{labelable:!0}),{hoverProps:n}=Ne({onHoverStart:()=>e==null?void 0:e.open(!0),onHoverEnd:()=>e==null?void 0:e.close()});return{tooltipProps:I(t,n,{role:"tooltip"})}}function fd(r,e,t){let{isDisabled:n,trigger:o}=r,i=Y(),l=a.useRef(!1),s=a.useRef(!1),u=()=>{(l.current||s.current)&&e.open(s.current)},c=$=>{!l.current&&!s.current&&e.close($)};a.useEffect(()=>{let $=C=>{t&&t.current&&C.key==="Escape"&&(C.stopPropagation(),e.close(!0))};if(e.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[t,e]);let d=()=>{o!=="focus"&&(dt()==="pointer"?l.current=!0:l.current=!1,u())},f=()=>{o!=="focus"&&(s.current=!1,l.current=!1,c())},b=()=>{s.current=!1,l.current=!1,c(!0)},p=()=>{ct()&&(s.current=!0,u())},h=()=>{s.current=!1,l.current=!1,c(!0)},{hoverProps:m}=Ne({isDisabled:n,onHoverStart:d,onHoverEnd:f}),{focusableProps:y}=qe({isDisabled:n,onFocus:p,onBlur:h},t);return{triggerProps:{"aria-describedby":e.isOpen?i:void 0,...I(y,m,{onPointerDown:b,onKeyDown:b})},tooltipProps:{id:i}}}const Re=S.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}}),{withContext:pd}=S.createRecipeContext({recipe:Re}),vd=pd("button",{defaultProps:{type:"button"},shouldForwardProp(r,e){const t=!(e!=null&&e.includes(r))&&!S.defaultSystem.isValidProperty(r);return ps(r)&&t&&!r.includes("onPress")}}),Gt=a.forwardRef((r,e)=>{const{as:t,asChild:n,children:o,...i}=r,l=a.useRef(null),s=ne(S.mergeRefs(l,e)),u=t||(n?"a":"button")||"button",{buttonProps:c}=Ut({...i,elementType:u},s);return x.jsx(vd,{...I(i,c,{as:t,asChild:n,ref:s}),children:o})});Gt.displayName="Button";const bd=a.forwardRef(function(e,t){const{children:n,portalled:o=!0,portalRef:i,backdrop:l=!0,...s}=e;return x.jsxs(S.Portal,{disabled:!o,container:i,children:[l&&x.jsx(S.Dialog.Backdrop,{}),x.jsx(S.Dialog.Positioner,{children:x.jsx(S.Dialog.Content,{ref:t,...s,asChild:!1,children:n})})]})}),hd=a.forwardRef(function(e,t){return x.jsx(S.Dialog.CloseTrigger,{position:"absolute",top:"2",insetEnd:"2",...e,asChild:!0,children:x.jsx(Gt,{size:"xs",ref:t,children:e.children})})}),gd=S.Dialog.Root,md=S.Dialog.Footer,yd=S.Dialog.Header,$d=S.Dialog.Body,xd=S.Dialog.Backdrop,Pd=S.Dialog.Title,Sd=S.Dialog.Description,Cd=S.Dialog.Trigger,wd=S.Dialog.ActionTrigger,vt=a.forwardRef(({children:r,...e},t)=>x.jsx(Gt,{px:0,py:0,ref:t,...e,children:r}));vt.displayName="IconButton";const Bl=S.defineRecipe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:Ed}=S.createRecipeContext({recipe:Bl}),Td=Ed("a"),Nl=a.forwardRef((r,e)=>{const{as:t,asChild:n,children:o,...i}=r,l=a.useRef(null),s=ne(S.mergeRefs(l,e)),u=t||(n?"span":"a")||"a",{linkProps:c}=Au({...i,elementType:u},s);return x.jsx(Td,{...I(i,c,{as:t,asChild:n,ref:s}),children:o})});Nl.displayName="Link";const Dd=r=>x.jsx(S.List.Root,{...r}),kd=r=>x.jsx(S.List.Item,{...r}),Ol=a.forwardRef((r,e)=>x.jsx(S.SimpleGrid,{ref:e,...r}));Ol.displayName="SimpleGrid";const Rd=Object.assign(Ol,{Item:S.GridItem}),Kd=r=>x.jsx(S.Table.Root,{...r}),Fd=r=>x.jsx(S.Table.ColumnGroup,{...r}),Md=r=>x.jsx(S.Table.Column,{...r}),Ld=r=>x.jsx(S.Table.Header,{...r}),Ad=r=>x.jsx(S.Table.Footer,{...r}),Id=r=>x.jsx(S.Table.Row,{...r}),Bd=r=>x.jsx(S.Table.Cell,{...r}),Nd=r=>x.jsx(S.Table.Body,{...r}),Od=r=>x.jsx(S.Table.ColumnHeader,{...r}),zl=a.forwardRef((r,e)=>x.jsx(S.Text,{ref:e,...r}));zl.displayName="Text";a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);const zd=a.createContext({}),Nt=Symbol("default");function ze({values:r,children:e}){for(let[t,n]of r)e=a.createElement(t.Provider,{value:n},e);return e}function J(r){let{className:e,style:t,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:s}=r;return a.useMemo(()=>{let u,c,d;return typeof e=="function"?u=e({...s,defaultClassName:o}):u=e,typeof t=="function"?c=t({...s,defaultStyle:l||{}}):c=t,typeof n=="function"?d=n({...s,defaultChildren:i}):n==null?d=i:d=n,{className:u??o,style:c||l?{...l,...c}:void 0,children:d??i,"data-rac":""}},[e,t,n,o,i,l,s])}function qt(r,e){let t=a.useContext(r);if(e===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let n=new Intl.ListFormat().format(Object.keys(t.slots).map(i=>`"${i}"`));if(!e&&!t.slots[Nt])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=e||Nt;if(!t.slots[o])throw new Error(`Invalid slot "${e}". Valid slot names are ${n}.`);return t.slots[o]}return t}function re(r,e,t){let n=qt(t,r.slot)||{},{ref:o,...i}=n,l=ne(a.useMemo(()=>ko(e,o),[e,o])),s=I(i,r);return"style"in i&&i.style&&"style"in r&&r.style&&(typeof i.style=="function"||typeof r.style=="function"?s.style=u=>{let c=typeof i.style=="function"?i.style(u):i.style,d={...u.defaultStyle,...c},f=typeof r.style=="function"?r.style({...u,defaultStyle:d}):r.style;return{...d,...f}}:s.style={...i.style,...r.style}),[s,l]}function rn(){let[r,e]=a.useState(!0),t=a.useRef(!1),n=a.useCallback(o=>{t.current=!0,e(!!o)},[]);return z(()=>{t.current||e(!1)},[]),[n,r]}function Hl(r){const e=/^(data-.*)$/;let t={};for(const n in r)e.test(n)||(t[n]=r[n]);return t}class nn{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new nn(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=t}}class on{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),o=(n==null?void 0:n.firstChildKey)!=null?t.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?t.get(o.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new on,n=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),l=null;for(let s of this.getChildren(o.key))if(e(s.textValue)||s.type==="header"){let u=s.clone();l==null&&(i.firstChildKey=u.key),t.firstKey==null&&(t.firstKey=i.key),l&&l.parentKey===u.parentKey?(l.nextKey=u.key,u.prevKey=l.key):u.prevKey=null,u.nextKey=null,t.addNode(u),l=u}l&&(l.type!=="header"?(i.lastChildKey=l.key,n==null?i.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=i.key,i.prevKey=n.key),i.nextKey=null,n=i,t.addNode(i)):(t.firstKey===i.key&&(t.firstKey=null),t.removeNode(l.key)))}else if(o.type==="separator"){let i=o.clone();i.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=i.key,i.prevKey=n.key,n=i,t.addNode(i))}else if(e(o.textValue)){let i=o.clone();t.firstKey==null&&(t.firstKey=i.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===i.parentKey?(n.nextKey=i.key,i.prevKey=n.key):i.prevKey=null,i.nextKey=null,t.addNode(i),n=i}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let o;n.prevKey!=null&&(o=t.getItem(n.prevKey),o.nextKey=null),t.removeNode(n.key),n=o}return t.lastKey=(n==null?void 0:n.key)||null,t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Vl{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let n=t;for(;n;)n.index++,n=n.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class ft extends Vl{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof ft?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,t,n,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof ft?this.parentNode.node.key:null;var l;i.prevKey=(l=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var s;i.nextKey=(s=(t=this.nextSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var u;i.firstChildKey=(u=(n=this.firstChild)===null||n===void 0?void 0:n.node.key)!==null&&u!==void 0?u:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(e,t,n,o){let i=this.ownerDocument.getMutableNode(this),{value:l,textValue:s,id:u,...c}=e;if(c.ref=t,i.props=c,i.rendered=n,i.render=o,i.value=l,i.textValue=s||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",u!=null&&u!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=u}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new nn(e,`react-aria-${++t.nodeId}`),this.ownerDocument.startTransaction()}}class Hd extends Vl{get isConnected(){return this.isMounted}createElement(e){return new ft(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key)){t.addNode(e.node);for(let n of e)this.addNode(n)}this.markDirty(e)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof ft&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t;let i=this.getMutableCollection();for(let l of this.mutatedNodes)l.isConnected&&i.addNode(l.node);var n,o;i.commit((n=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(o=(t=this.lastChild)===null||t===void 0?void 0:t.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function jl(r){let{children:e,items:t,idScope:n,addIdAndValue:o,dependencies:i=[]}=r,l=a.useMemo(()=>new WeakMap,i);return a.useMemo(()=>{if(t&&typeof e=="function"){let c=[];for(let d of t){let f=l.get(d);if(!f){f=e(d);var s,u;let b=(u=(s=f.props.id)!==null&&s!==void 0?s:d.key)!==null&&u!==void 0?u:d.id;if(b==null)throw new Error("Could not determine key for item");n&&(b=n+":"+b),f=a.cloneElement(f,o?{key:b,id:b,value:d}:{key:b}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,t,l,n,o])}if(typeof HTMLTemplateElement<"u"){const r=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:r.call(this)}})}const Ot=a.createContext(!1),Vd=typeof DocumentFragment<"u"?new DocumentFragment:null;function jd(r){let e=a.useContext(Ot),t=Se();if(e)return a.createElement(a.Fragment,null,r.children);let n=a.createElement(Ot.Provider,{value:!0},r.children);return t?a.createElement("template",{"data-react-aria-hidden":!0},n):Ie.createPortal(n,Vd)}function Wl(r){let e=(t,n)=>a.useContext(Ot)?null:r(t,n);return e.displayName=r.displayName||r.name,a.forwardRef(e)}function Wd(){return a.useContext(Ot)}var kt={exports:{}},gr={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("@commercetools/nimbus-tokens"),d=require("react"),k=require("react/jsx-runtime"),ct=require("react-dom"),Be=require("@commercetools/nimbus-icons");function F0(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 U=F0(d),et=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function M0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function wn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=d.createContext(a);s.displayName=t;function l(){var u;const c=d.useContext(s);if(!c&&r){const g=new Error(i??M0(n,o));throw g.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,g,l),g}return c}return[s.Provider,l,s]}function _0(...e){return function(...r){e.forEach(n=>n==null?void 0:n(...r))}}const V0=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),B0=/^on[A-Z]/;function kn(...e){let t={};for(let r of e){for(let n in t){if(B0.test(n)&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=_0(t[n],r[n]);continue}if(n==="className"||n==="class"){t[n]=V0(t[n],r[n]);continue}if(n==="style"){t[n]=Object.assign({},t[n]??{},r[n]??{});continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}const W0=Object.freeze({}),K0=Object.freeze({});function Vf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var H0=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Bf=Vf(function(e){return H0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function j0(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function U0(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var G0=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U0(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=j0(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ke="-ms-",Fo="-moz-",J="-webkit-",Wf="comm",vs="rule",bs="decl",q0="@import",Kf="@keyframes",Y0="@layer",X0=Math.abs,ai=String.fromCharCode,Z0=Object.assign;function J0(e,t){return Ee(e,0)^45?(((t<<2^Ee(e,0))<<2^Ee(e,1))<<2^Ee(e,2))<<2^Ee(e,3):0}function Hf(e){return e.trim()}function Q0(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function ka(e,t){return e.indexOf(t)}function Ee(e,t){return e.charCodeAt(t)|0}function Tn(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function ys(e){return e.length}function eo(e,t){return t.push(e),e}function ey(e,t){return e.map(t).join("")}var si=1,Gr=1,jf=0,Fe=0,be=0,Zr="";function li(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:si,column:Gr,length:a,return:""}}function on(e,t){return Z0(li("",null,null,"",null,null,0),e,{length:-e.length},t)}function ty(){return be}function ry(){return be=Fe>0?Ee(Zr,--Fe):0,Gr--,be===10&&(Gr=1,si--),be}function Ke(){return be=Fe<jf?Ee(Zr,Fe++):0,Gr++,be===10&&(Gr=1,si++),be}function gt(){return Ee(Zr,Fe)}function Co(){return Fe}function Vn(e,t){return Tn(Zr,e,t)}function Rn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uf(e){return si=Gr=1,jf=dt(Zr=e),Fe=0,[]}function Gf(e){return Zr="",e}function Eo(e){return Hf(Vn(Fe-1,Ta(e===91?e+2:e===40?e+1:e)))}function ny(e){for(;(be=gt())&&be<33;)Ke();return Rn(e)>2||Rn(be)>3?"":" "}function oy(e,t){for(;--t&&Ke()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Vn(e,Co()+(t<6&&gt()==32&&Ke()==32))}function Ta(e){for(;Ke();)switch(be){case e:return Fe;case 34:case 39:e!==34&&e!==39&&Ta(be);break;case 40:e===41&&Ta(e);break;case 92:Ke();break}return Fe}function iy(e,t){for(;Ke()&&e+be!==57;)if(e+be===84&&gt()===47)break;return"/*"+Vn(t,Fe-1)+"*"+ai(e===47?e:Ke())}function ay(e){for(;!Rn(gt());)Ke();return Vn(e,Fe)}function sy(e){return Gf(Po("",null,null,null,[""],e=Uf(e),0,[0],e))}function Po(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,g=a,f=0,p=0,h=0,m=1,b=1,y=1,x=0,S="",$=o,w=i,C=n,D=S;b;)switch(h=x,x=Ke()){case 40:if(h!=108&&Ee(D,g-1)==58){ka(D+=Q(Eo(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:D+=Eo(x);break;case 9:case 10:case 13:case 32:D+=ny(h);break;case 92:D+=oy(Co()-1,7);continue;case 47:switch(gt()){case 42:case 47:eo(ly(iy(Ke(),Co()),t,r),l);break;default:D+="/"}break;case 123*m:s[c++]=dt(D)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+u:y==-1&&(D=Q(D,/\f/g,"")),p>0&&dt(D)-g&&eo(p>32?rc(D+";",n,r,g-1):rc(Q(D," ","")+";",n,r,g-2),l);break;case 59:D+=";";default:if(eo(C=tc(D,t,r,c,u,o,s,S,$=[],w=[],g),i),x===123)if(u===0)Po(D,t,C,C,$,i,g,s,w);else switch(f===99&&Ee(D,3)===110?100:f){case 100:case 108:case 109:case 115:Po(e,C,C,n&&eo(tc(e,C,C,0,0,o,s,S,o,$=[],g),w),o,w,g,s,n?$:w);break;default:Po(D,C,C,C,[""],w,0,s,w)}}c=u=p=0,m=y=1,S=D="",g=a;break;case 58:g=1+dt(D),p=h;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&ry()==125)continue}switch(D+=ai(x),x*m){case 38:y=u>0?1:(D+="\f",-1);break;case 44:s[c++]=(dt(D)-1)*y,y=1;break;case 64:gt()===45&&(D+=Eo(Ke())),f=gt(),u=g=dt(S=D+=ay(Co())),x++;break;case 45:h===45&&dt(D)==2&&(m=0)}}return i}function tc(e,t,r,n,o,i,a,s,l,c,u){for(var g=o-1,f=o===0?i:[""],p=ys(f),h=0,m=0,b=0;h<n;++h)for(var y=0,x=Tn(e,g+1,g=X0(m=a[h])),S=e;y<p;++y)(S=Hf(m>0?f[y]+" "+x:Q(x,/&\f/g,f[y])))&&(l[b++]=S);return li(e,t,r,o===0?vs:s,l,c,u)}function ly(e,t,r){return li(e,t,r,Wf,ai(ty()),Tn(e,2,-2),0)}function rc(e,t,r,n){return li(e,t,r,bs,Tn(e,0,n),Tn(e,n+1,-1),n)}function Kr(e,t){for(var r="",n=ys(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function cy(e,t,r,n){switch(e.type){case Y0:if(e.children.length)break;case q0:case bs:return e.return=e.return||e.value;case Wf:return"";case Kf:return e.return=e.value+"{"+Kr(e.children,n)+"}";case vs:e.value=e.props.join(",")}return dt(r=Kr(e.children,n))?e.return=e.value+"{"+r+"}":""}function uy(e){var t=ys(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function dy(e){return function(t){t.root||(t=t.return)&&e(t)}}var fy=function(t,r,n){for(var o=0,i=0;o=i,i=gt(),o===38&&i===12&&(r[n]=1),!Rn(i);)Ke();return Vn(t,Fe)},py=function(t,r){var n=-1,o=44;do switch(Rn(o)){case 0:o===38&&gt()===12&&(r[n]=1),t[n]+=fy(Fe-1,r,n);break;case 2:t[n]+=Eo(o);break;case 4:if(o===44){t[++n]=gt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ai(o)}while(o=Ke());return t},gy=function(t,r){return Gf(py(Uf(t),r))},nc=new WeakMap,hy=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!nc.get(n))&&!o){nc.set(t,!0);for(var i=[],a=gy(r,i),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},my=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function qf(e,t){switch(J0(e,t)){case 5103:return J+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+Fo+e+ke+e+e;case 6828:case 4268:return J+e+ke+e+e;case 6165:return J+e+ke+"flex-"+e+e;case 5187:return J+e+Q(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+ke+"flex-$1$2")+e;case 5443:return J+e+ke+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return J+e+ke+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+ke+Q(e,"shrink","negative")+e;case 5292:return J+e+ke+Q(e,"basis","preferred-size")+e;case 6060:return J+"box-"+Q(e,"-grow","")+J+e+ke+Q(e,"grow","positive")+e;case 4554:return J+Q(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,J+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(e)-1-t>6)switch(Ee(e,t+1)){case 109:if(Ee(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+Fo+(Ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ka(e,"stretch")?qf(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ee(e,t+1)!==115)break;case 6444:switch(Ee(e,dt(e)-3-(~ka(e,"!important")&&10))){case 107:return Q(e,":",":"+J)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(Ee(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+ke+"$2box$3")+e}break;case 5936:switch(Ee(e,t+11)){case 114:return J+e+ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+ke+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+ke+e+e}return e}var vy=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bs:t.return=qf(t.value,t.length);break;case Kf:return Kr([on(t,{value:Q(t.value,"@","@"+J)})],o);case vs:if(t.length)return ey(t.props,function(i){switch(Q0(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kr([on(t,{props:[Q(i,/:(read-\w+)/,":"+Fo+"$1")]})],o);case"::placeholder":return Kr([on(t,{props:[Q(i,/:(plac\w+)/,":"+J+"input-$1")]}),on(t,{props:[Q(i,/:(plac\w+)/,":"+Fo+"$1")]}),on(t,{props:[Q(i,/:(plac\w+)/,ke+"input-$1")]})],o)}return""})}},by=[vy],yy=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||by,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(m)});var l,c=[hy,my];{var u,g=[cy,dy(function(m){u.insert(m)})],f=uy(c.concat(o,g)),p=function(b){return Kr(sy(b),f)};l=function(b,y,x,S){u=x,p(b?b+"{"+y.styles+"}":y.styles),S&&(h.inserted[y.name]=!0)}}var h={key:r,sheet:new G0({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h};function Yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var to={exports:{}},te={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var oc;function xy(){if(oc)return te;oc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case t:switch(w=w.type,w){case l:case c:case n:case i:case o:case g:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case h:case p:case a:return w;default:return C}}case r:return C}}}function $(w){return S(w)===c}return te.AsyncMode=l,te.ConcurrentMode=c,te.ContextConsumer=s,te.ContextProvider=a,te.Element=t,te.ForwardRef=u,te.Fragment=n,te.Lazy=h,te.Memo=p,te.Portal=r,te.Profiler=i,te.StrictMode=o,te.Suspense=g,te.isAsyncMode=function(w){return $(w)||S(w)===l},te.isConcurrentMode=$,te.isContextConsumer=function(w){return S(w)===s},te.isContextProvider=function(w){return S(w)===a},te.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},te.isForwardRef=function(w){return S(w)===u},te.isFragment=function(w){return S(w)===n},te.isLazy=function(w){return S(w)===h},te.isMemo=function(w){return S(w)===p},te.isPortal=function(w){return S(w)===r},te.isProfiler=function(w){return S(w)===i},te.isStrictMode=function(w){return S(w)===o},te.isSuspense=function(w){return S(w)===g},te.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===c||w===i||w===o||w===g||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===b||w.$$typeof===y||w.$$typeof===x||w.$$typeof===m)},te.typeOf=S,te}var re={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var ic;function Sy(){return ic||(ic=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(V){return typeof V=="string"||typeof V=="function"||V===n||V===c||V===i||V===o||V===g||V===f||typeof V=="object"&&V!==null&&(V.$$typeof===h||V.$$typeof===p||V.$$typeof===a||V.$$typeof===s||V.$$typeof===u||V.$$typeof===b||V.$$typeof===y||V.$$typeof===x||V.$$typeof===m)}function $(V){if(typeof V=="object"&&V!==null){var ge=V.$$typeof;switch(ge){case t:var Ae=V.type;switch(Ae){case l:case c:case n:case i:case o:case g:return Ae;default:var tr=Ae&&Ae.$$typeof;switch(tr){case s:case u:case h:case p:case a:return tr;default:return ge}}case r:return ge}}}var w=l,C=c,D=s,v=a,P=t,T=u,I=n,L=h,E=p,O=r,A=i,z=o,F=g,R=!1;function _(V){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(V)||$(V)===l}function B(V){return $(V)===c}function Z(V){return $(V)===s}function ne(V){return $(V)===a}function _e(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function Ie(V){return $(V)===u}function De(V){return $(V)===n}function Ft(V){return $(V)===h}function er(V){return $(V)===p}function N(V){return $(V)===r}function M(V){return $(V)===i}function H(V){return $(V)===o}function ee(V){return $(V)===g}re.AsyncMode=w,re.ConcurrentMode=C,re.ContextConsumer=D,re.ContextProvider=v,re.Element=P,re.ForwardRef=T,re.Fragment=I,re.Lazy=L,re.Memo=E,re.Portal=O,re.Profiler=A,re.StrictMode=z,re.Suspense=F,re.isAsyncMode=_,re.isConcurrentMode=B,re.isContextConsumer=Z,re.isContextProvider=ne,re.isElement=_e,re.isForwardRef=Ie,re.isFragment=De,re.isLazy=Ft,re.isMemo=er,re.isPortal=N,re.isProfiler=M,re.isStrictMode=H,re.isSuspense=ee,re.isValidElementType=S,re.typeOf=$}()),re}var ac;function wy(){return ac||(ac=1,process.env.NODE_ENV==="production"?to.exports=xy():to.exports=Sy()),to.exports}var Mi,sc;function Cy(){if(sc)return Mi;sc=1;var e=wy(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function p(h,m,b){if(typeof m!="string"){if(f){var y=g(m);y&&y!==f&&p(h,y,b)}var x=l(m);c&&(x=x.concat(c(m)));for(var S=a(h),$=a(m),w=0;w<x.length;++w){var C=x[w];if(!r[C]&&!(b&&b[C])&&!($&&$[C])&&!(S&&S[C])){var D=u(m,C);try{s(h,C,D)}catch{}}}}return h}return Mi=p,Mi}Cy();var Ey=!0;function Xf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var xs=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Ey===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Ss=function(t,r,n){xs(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Py(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $y={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ky=/[A-Z]|^ms/g,Ty=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zf=function(t){return t.charCodeAt(1)===45},lc=function(t){return t!=null&&typeof t!="boolean"},_i=Vf(function(e){return Zf(e)?e:e.replace(ky,"-$&").toLowerCase()}),cc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ty,function(n,o,i){return ft={name:o,styles:i,next:ft},o})}return $y[t]!==1&&!Zf(t)&&typeof r=="number"&&r!==0?r+"px":r};function On(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ft={name:o.name,styles:o.styles,next:ft},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ft={name:a.name,styles:a.styles,next:ft},a=a.next;var s=i.styles+";";return s}return Ry(e,t,r)}case"function":{if(e!==void 0){var l=ft,c=r(e);return ft=l,On(e,t,c)}break}}var u=r;if(t==null)return u;var g=t[u];return g!==void 0?g:u}function Ry(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=On(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":lc(s)&&(n+=_i(i)+":"+cc(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)lc(a[l])&&(n+=_i(i)+":"+cc(i,a[l])+";");else{var c=On(e,t,a);switch(i){case"animation":case"animationName":{n+=_i(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var uc=/label:\s*([^\s;{]+)\s*(;|$)/g,ft;function ws(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ft=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=On(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=On(r,t,e[s]),n){var l=i;o+=l[s]}uc.lastIndex=0;for(var c="",u;(u=uc.exec(o))!==null;)c+="-"+u[1];var g=Py(o)+c;return{name:g,styles:o,next:ft}}var Oy=function(t){return t()},Jf=U.useInsertionEffect?U.useInsertionEffect:!1,Qf=Jf||Oy,dc=Jf||U.useLayoutEffect,ep=U.createContext(typeof HTMLElement<"u"?yy({key:"css"}):null);ep.Provider;var Cs=function(t){return d.forwardRef(function(r,n){var o=d.useContext(ep);return t(r,o,n)})},Es=U.createContext({}),Ps={}.hasOwnProperty,Ra="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Iy=function(t,r){var n={};for(var o in r)Ps.call(r,o)&&(n[o]=r[o]);return n[Ra]=t,n},Dy=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return xs(r,n,o),Qf(function(){return Ss(r,n,o)}),null},Ay=Cs(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ra],i=[n],a="";typeof e.className=="string"?a=Xf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ws(i,void 0,U.useContext(Es));a+=t.key+"-"+s.name;var l={};for(var c in e)Ps.call(e,c)&&c!=="css"&&c!==Ra&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),U.createElement(U.Fragment,null,U.createElement(Dy,{cache:t,serialized:s,isStringTag:typeof o=="string"}),U.createElement(o,l))}),Ny=Ay,fc=function(t,r){var n=arguments;if(r==null||!Ps.call(r,"css"))return U.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Ny,i[1]=Iy(t,r);for(var a=2;a<o;a++)i[a]=n[a];return U.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(fc||(fc={}));var pc=Cs(function(e,t){var r=e.styles,n=ws([r],void 0,U.useContext(Es)),o=U.useRef();return dc(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),dc(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&Ss(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Ly(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 Nt(...e){return t=>{e.forEach(r=>{Ly(r,t)})}}function Jr(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function zy(e){return e.default||e}const Ne=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Fy=e=>/^var\(--.+\)$/.test(e),mt=e=>typeof e=="string",$s=e=>typeof e=="function";function My(e){var r;const t=U.version;return!mt(t)||t.startsWith("18.")?e==null?void 0:e.ref:(r=e==null?void 0:e.props)==null?void 0:r.ref}const[_y,Bn]=wn({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Vy(e){const{value:t,children:r}=e;return k.jsxs(_y,{value:t,children:[!t._config.disableLayers&&k.jsx(pc,{styles:t.layers.atRule}),k.jsx(pc,{styles:t._global}),r]})}const By=(e,t)=>{const r={},n={},o=Object.keys(e);for(const i of o)t(i)?n[i]=e[i]:r[i]=e[i];return[n,r]},Hr=(e,t)=>{const r=$s(t)?t:n=>t.includes(n);return By(e,r)},Wy=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ky(e){return typeof e=="string"&&Wy.has(e)}function Hy(e,t,r){const{css:n,isValidProperty:o}=Bn(),{children:i,...a}=e,s=d.useMemo(()=>{const[f,p]=Hr(a,x=>r(x,t.variantKeys)),[h,m]=Hr(p,t.variantKeys),[b,y]=Hr(m,o);return{forwardedProps:f,variantProps:h,styleProps:b,elementProps:y}},[t.variantKeys,r,a,o]),{css:l,...c}=s.styleProps,u=d.useMemo(()=>{const f={...s.variantProps};return t.variantKeys.includes("colorPalette")||(f.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(f.orientation=a.orientation),t(f)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:d.useMemo(()=>n(u,...jy(l),c),[n,u,l,c]),props:{...s.forwardedProps,...s.elementProps,children:i}}}const jy=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),Uy=zy(Bf),Gy=Uy,qy=e=>e!=="theme",Yy=(e,t,r)=>{let n;if(t){const o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n};let Xy=typeof document<"u";const gc=({cache:e,serialized:t,isStringTag:r})=>{xs(e,t,r);const n=Qf(()=>Ss(e,t,r));if(!Xy&&n!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=et(o,i.name),i=i.next;return k.jsx("style",{"data-emotion":et(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},Zy=(e,t={},r={})=>{if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
16
+ You may have forgotten to import it.`);const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let i,a;r!==void 0&&(i=r.label,a=r.target);let s=[];const l=Cs((c,u,g)=>{var O;const{cva:f,isValidProperty:p}=Bn(),h=t.__cva__?t:f(t),m=Qy(e.__emotion_cva,h),b=A=>(z,F)=>A.includes(z)?!0:!(F!=null&&F.includes(z))&&!p(z);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=b(r.forwardProps));const y=(A,z)=>{const F=typeof e=="string"&&e.charCodeAt(0)>96?Gy:qy,R=!(z!=null&&z.includes(A))&&!p(A);return F(A)&&R},x=Yy(e,r,n)||y,S=U.useMemo(()=>Object.assign({},r.defaultProps,Jr(c)),[c]),{props:$,styles:w}=Hy(S,m,x);let C="",D=[w],v=$;if($.theme==null){v={};for(let A in $)v[A]=$[A];v.theme=U.useContext(Es)}typeof $.className=="string"?C=Xf(u.registered,D,$.className):$.className!=null&&(C=et(C,$.className));const P=ws(s.concat(D),u.registered,v);C=et(C,`${u.key}-${P.name}`),a!==void 0&&(C=et(C,a));const T=!x("as");let I=T&&$.as||o,L={};for(let A in $)if(!(T&&A==="as")){if(Ky(A)){const z=A.replace("html","").toLowerCase();L[z]=$[A];continue}x(A)&&(L[A]=$[A])}L.className=C.trim(),L.ref=g;const E=r.forwardAsChild||((O=r.forwardProps)==null?void 0:O.includes("asChild"));if($.asChild&&!E){const A=U.Children.only($.children);I=A.type,L.children=null,Reflect.deleteProperty(L,"asChild"),L=kn(L,A.props),L.ref=Nt(g,My(A))}return L.as&&E?(L.as=void 0,k.jsxs(U.Fragment,{children:[k.jsx(gc,{cache:u,serialized:P,isStringTag:typeof I=="string"}),k.jsx(I,{asChild:!0,...L,children:k.jsx($.as,{children:L.children})})]})):k.jsxs(U.Fragment,{children:[k.jsx(gc,{cache:u,serialized:P,isStringTag:typeof I=="string"}),k.jsx(I,{...L})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=r.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":`.${a}`}}),l},Vi=Zy.bind(),Bi=new Map,Jy=new Proxy(Vi,{apply(e,t,r){return Vi(...r)},get(e,t){return Bi.has(t)||Bi.set(t,Vi(t)),Bi.get(t)}}),Re=Jy,Qy=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t);function tp(e){const{key:t,recipe:r}=e,n=Bn();return d.useMemo(()=>{const o=r||(t!=null?n.getRecipe(t):{});return n.cva(structuredClone(o))},[t,r,n])}const ex=e=>e.charAt(0).toUpperCase()+e.slice(1);function rt(e){const{key:t,recipe:r}=e,n=ex(t||r.className||"Component"),[o,i]=wn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function a(c){const{unstyled:u,...g}=c,f=tp({key:t,recipe:g.recipe||r}),[p,h]=d.useMemo(()=>f.splitVariantProps(g),[f,g]);return{styles:u?W0:f(p),className:f.className,props:h}}const s=(c,u)=>{const g=Re(c,{},u),f=d.forwardRef((p,h)=>{const m=i(),b=d.useMemo(()=>kn(m,p),[p,m]),{styles:y,className:x,props:S}=a(b);return k.jsx(g,{...S,ref:h,css:[y,b.css],className:et(x,b.className)})});return f.displayName=c.displayName||c.name,f};function l(){return o}return{withContext:s,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:a}}const rp=d.forwardRef(function(t,r){const{templateAreas:n,column:o,row:i,autoFlow:a,autoRows:s,templateRows:l,autoColumns:c,templateColumns:u,inline:g,...f}=t;return k.jsx(Re.div,{...f,ref:r,css:[{display:g?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:c,gridColumn:o,gridRow:i,gridAutoFlow:a,gridAutoRows:s,gridTemplateRows:l,gridTemplateColumns:u},t.css]})});var hc=e=>Math.max(0,Math.min(1,e)),tx=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),np=()=>{},ci=e=>typeof e=="object"&&e!==null,rx=2147483647,nx=1,ox=9,ix=11,Te=e=>ci(e)&&e.nodeType===nx&&typeof e.nodeName=="string",ks=e=>ci(e)&&e.nodeType===ox,ax=e=>ci(e)&&e===e.window,op=e=>Te(e)?e.localName||"":"#document";function sx(e){return["html","body","#document"].includes(op(e))}var lx=e=>ci(e)&&e.nodeType!==void 0,qr=e=>lx(e)&&e.nodeType===ix&&"host"in e,cx=e=>Te(e)&&e.localName==="input",ux=e=>Te(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,dx=/(textarea|select)/;function ip(e){if(e==null||!Te(e))return!1;try{return cx(e)&&e.selectionStart!=null||dx.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Yr(e,t){var n;if(!e||!t||!Te(e)||!Te(t))return!1;const r=(n=t.getRootNode)==null?void 0:n.call(t);if(e===t||e.contains(t))return!0;if(r&&qr(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function nt(e){return ks(e)?e:ax(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function fx(e){return nt(e).documentElement}function Oe(e){var t;return qr(e)?Oe(e.host):ks(e)?e.defaultView??window:Te(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function ap(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function px(e){if(op(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qr(e)&&e.host||fx(e);return qr(t)?t.host:t}var Wi=new WeakMap;function Ts(e){return Wi.has(e)||Wi.set(e,Oe(e).getComputedStyle(e)),Wi.get(e)}var ui=()=>typeof document<"u";function gx(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function hx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var Rs=e=>ui()&&e.test(gx()),sp=e=>ui()&&e.test(hx()),mx=e=>ui()&&e.test(navigator.vendor),mc=()=>ui()&&!!navigator.maxTouchPoints,vx=()=>Rs(/^iPhone/i),bx=()=>Rs(/^iPad/i)||fi()&&navigator.maxTouchPoints>1,di=()=>vx()||bx(),yx=()=>fi()||di(),fi=()=>Rs(/^Mac/i),lp=()=>yx()&&mx(/apple/i),xx=()=>sp(/Firefox/i),Sx=()=>sp(/Android/i);function wx(e){var t,r,n;return((t=e.composedPath)==null?void 0:t.call(e))??((n=(r=e.nativeEvent)==null?void 0:r.composedPath)==null?void 0:n.call(r))}function Je(e){const t=wx(e);return(t==null?void 0:t[0])??e.target}function Cx(e){return kx(e).isComposing||e.keyCode===229}function Ex(e){return e.mozInputSource===0&&e.isTrusted?!0:Sx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Px=e=>e.button===2||fi()&&e.ctrlKey&&e.button===0,$x=e=>"touches"in e&&e.touches.length>0;function kx(e){return e.nativeEvent??e}function Tx(e,t="client"){const r=$x(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var fe=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,r,n),()=>{o==null||o.removeEventListener(t,r,n)}};function Rx(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=Oe(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function Ox(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function pi(e,t,r="value"){var o;if(!e)return;const n=Ox(e);n&&((o=Rx(e,{type:n,property:r}).set)==null||o.call(e,t)),e.setAttribute(r,t)}function Ix(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=Oe(e);e instanceof o.HTMLInputElement&&(pi(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function Dx(e){return Ax(e)?e.form:e.closest("form")}function Ax(e){return e.matches("textarea, input, select, button")}function Nx(e,t){if(!e)return;const r=Dx(e),n=o=>{o.defaultPrevented||t()};return r==null||r.addEventListener("reset",n,{passive:!0}),()=>r==null?void 0:r.removeEventListener("reset",n)}function Lx(e,t){const r=e==null?void 0:e.closest("fieldset");if(!r)return;t(r.disabled);const n=Oe(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Os(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[Nx(e,n),Lx(e,r)];return()=>o.forEach(i=>i==null?void 0:i())}var cp=e=>Te(e)&&e.tagName==="IFRAME",zx=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),Fx=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Is="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",up=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(Is));(t==!0||t=="if-empty"&&r.length===0)&&Te(e)&&Ht(e)&&r.unshift(e);const o=r.filter(Ht);return o.forEach((i,a)=>{if(cp(i)&&i.contentDocument){const s=i.contentDocument.body;o.splice(a,1,...up(s))}}),o};function Ht(e){return!e||e.closest("[inert]")?!1:e.matches(Is)&&ux(e)}function Ds(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(Is)).filter(ur);return n.forEach((o,i)=>{if(cp(o)&&o.contentDocument){const a=o.contentDocument.body,s=Ds(a);n.splice(i,1,...s)}}),n.length,n}function ur(e){return e!=null&&e.tabIndex>0?!0:Ht(e)&&!Fx(e)}function an(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||ip(e))&&!zx(e)?0:e.tabIndex}function As(e){const{root:t,getInitialEl:r,filter:n,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof r=="function"?r():r),i||(i=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!i){const a=Ds(t);i=n?a.filter(n)[0]:a[0]}return i||t||void 0}function dp(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function ie(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t==null||t()}}function Mx(e,t,r){const n=ie(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function _x(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(a=>{for(const s of a)s.type==="attributes"&&s.attributeName&&r.includes(s.attributeName)&&n(s)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}function Ns(e,t){const{defer:r}=t,n=r?ie:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(_x(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Vx(e){const t=()=>e.click();xx()?Mx(e,"keyup",t):queueMicrotask(t)}function Mo(e){const t=px(e);return sx(t)?nt(t).body:Te(t)&&Ls(t)?t:Mo(t)}function fp(e,t=[]){const r=Mo(e),n=r===e.ownerDocument.body,o=Oe(r);return n?t.concat(o,o.visualViewport||[],Ls(r)?r:[]):t.concat(r,fp(r,[]))}var Bx=/auto|scroll|overlay|hidden|clip/;function Ls(e){const t=Oe(e),{overflow:r,overflowX:n,overflowY:o,display:i}=t.getComputedStyle(e);return Bx.test(r+o+n)&&!["inline","contents"].includes(i)}function Wx(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function pp(e,t){const{rootEl:r,...n}=t||{};!e||!r||!Ls(r)||!Wx(r)||e.scrollIntoView(n)}function gp(e,t){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect(),a={x:e.x-r,y:e.y-n},s={x:hc(a.x/o),y:hc(a.y/i)};function l(c={}){const{dir:u="ltr",orientation:g="horizontal",inverted:f}=c,p=typeof f=="object"?f.x:f,h=typeof f=="object"?f.y:f;return g==="horizontal"?u==="rtl"||p?1-s.x:s.x:h?1-s.y:s.y}return{offset:a,percent:s,getPercentValue:l}}function Kx(e,t){const r=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function a(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{r.requestPointerLock()}catch{}const s=[fe(e,"pointerlockchange",i,!1),fe(e,"pointerlockerror",a,!1)];return()=>{s.forEach(l=>l()),e.exitPointerLock()}}var Mr="default",Oa="",$o=new WeakMap;function Hx(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return di()?(Mr==="default"&&(Oa=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Mr="disabled"):t&&($o.set(t,t.style.userSelect),t.style.userSelect="none"),()=>jx({target:t,doc:n})}function jx(e={}){const{target:t,doc:r}=e,o=(r??document).documentElement;if(di()){if(Mr!=="disabled")return;Mr="restoring",setTimeout(()=>{dp(()=>{Mr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Oa||""),Oa="",Mr="default")})},300)}else if(t&&$o.has(t)){const i=$o.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),$o.delete(t)}}function hp(e={}){const{defer:t,target:r,...n}=e,o=t?ie:a=>a(),i=[];return i.push(o(()=>{const a=typeof r=="function"?r():r;i.push(Hx({...n,target:a}))})),()=>{i.forEach(a=>a==null?void 0:a())}}function Ux(e,t){const{onPointerMove:r,onPointerUp:n}=t,i=[fe(e,"pointermove",a=>{const s=Tx(a),l=Math.sqrt(s.x**2+s.y**2),c=a.pointerType==="touch"?10:5;if(!(l<c)){if(a.pointerType==="mouse"&&a.button===0){n();return}r({point:s,event:a})}},!1),fe(e,"pointerup",n,!1),fe(e,"pointercancel",n,!1),fe(e,"contextmenu",n,!1),hp({doc:e})];return()=>{i.forEach(a=>a())}}function _o(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}var zs=e=>e.id;function Gx(e,t,r=zs){return e.find(n=>r(n)===t)}function Fs(e,t,r=zs){const n=Gx(e,t,r);return n?e.indexOf(n):-1}function qx(e,t,r=!0){let n=Fs(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function Yx(e,t,r=!0){let n=Fs(e,t);return n===-1?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}var Xx=e=>e.split("").map(t=>{const r=t.charCodeAt(0);return r>0&&r<128?t:r>=128&&r<=255?`/x${r.toString(16)}`.replace("/","\\"):""}).join("").trim(),Zx=e=>{var t;return Xx(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},Jx=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Qx(e,t,r,n=zs){const o=r?Fs(e,r,n):-1;let i=r?tx(e,o):e;return t.length===1&&(i=i.filter(s=>n(s)!==r)),i.find(s=>Jx(Zx(s),t))}function Vo(e,t){if(!e)return np;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function e1(e,t,r){if(!e)return np;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")}}function t1(e,t){const{state:r,activeId:n,key:o,timeout:i=350,itemToId:a}=t,s=r.keysSoFar+o,c=s.length>1&&Array.from(s).every(h=>h===s[0])?s[0]:s;let u=e.slice();const g=Qx(u,c,n,a);function f(){clearTimeout(r.timer),r.timer=-1}function p(h){r.keysSoFar=h,f(),h!==""&&(r.timer=+setTimeout(()=>{p(""),f()},i))}return p(s),g}var Ms=Object.assign(t1,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:r1});function r1(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var n1=1e3/60;function o1(e,t){const r=e();if(Te(r)&&r.isConnected)return t(r),()=>{};{const n=setInterval(()=>{const o=e();Te(o)&&o.isConnected&&(t(o),clearInterval(n))},n1);return()=>clearInterval(n)}}function i1(e,t){const r=[];return e==null||e.forEach(n=>{const o=o1(n,t);r.push(o)}),()=>{r.forEach(n=>n())}}function a1(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Wn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=d.createContext(a);s.displayName=t;function l(){var u;const c=d.useContext(s);if(!c&&r){const g=new Error(i??a1(n,o));throw g.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,g,l),g}return c}return[s.Provider,l,s]}const[SD,s1]=Wn({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function _s(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function l1(e){return e?Array.isArray(e)?e:[e]:[]}var mp=e=>e[0],vp=e=>e[e.length-1],c1=(e,t)=>e.indexOf(t)!==-1,bp=(e,...t)=>e.concat(t),yp=(e,...t)=>e.filter(r=>!t.includes(r)),vc=(e,t)=>c1(e,t)?yp(e,t):bp(e,t);function xp(e,t,r={}){const{step:n=1,loop:o=!0}=r,i=t+n,a=e.length,s=a-1;return t===-1?n>0?0:s:i<0?o?s:0:i>=a?o?0:t>a?a:t:i}function u1(e,t,r={}){return e[xp(e,t,r)]}function d1(e,t,r={}){const{step:n=1,loop:o=!0}=r;return xp(e,t,{step:-n,loop:o})}function f1(e,t,r={}){return e[d1(e,t,r)]}var bc=e=>(e==null?void 0:e.constructor.name)==="Array",p1=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Kn(e[r],t[r]))return!1;return!0},Kn=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(bc(e)&&bc(t))return p1(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const i=r[o];if(!Kn(e[i],t[i]))return!1}return!0},g1=e=>Array.isArray(e),h1=e=>e!=null&&typeof e=="object",Ki=e=>h1(e)&&!g1(e),ko=e=>typeof e=="string",_r=e=>typeof e=="function",m1=e=>e==null,Hi=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),v1=Function.prototype.toString;v1.call(Object);var b1=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,y1=e=>e(),x1=()=>{},Bo=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},Sp=(e,t)=>{var r;try{return e()}catch(n){return n instanceof Error&&((r=Error.captureStackTrace)==null||r.call(Error,n,Sp)),t==null?void 0:t()}},{floor:Ia,abs:yc,round:gi,min:S1,max:w1,pow:C1,sign:E1}=Math,mn=e=>Number.isNaN(e),Rt=e=>mn(e)?0:e,wp=(e,t)=>(e%t+t)%t,P1=(e,t)=>(e%t+t)%t,$1=(e,t)=>Rt(e)>=t,k1=(e,t)=>Rt(e)<=t,T1=(e,t,r)=>Rt(e)>=t&&Rt(e)<=r,R1=(e,t,r)=>gi((Rt(e)-t)/r)*r+t,ze=(e,t,r)=>S1(w1(Rt(e),t),r),O1=(e,t,r)=>(Rt(e)-t)/(r-t),I1=(e,t,r,n)=>ze(R1(e*(r-t)+t,t,n),t,r),ro=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let a=C1(10,i);r=gi(r*a)/a}return r},ji=(e,t)=>typeof t=="number"?Ia(e*t+.5)/t:gi(e),xc=(e,t,r,n)=>{t=Number(t),r=Number(r);let o=(e-(mn(t)?0:t))%n,i=ro(yc(o)*2>=n?e+E1(o)*(n-yc(o)):e-o,n);return mn(t)?!mn(r)&&i>r&&(i=t+Ia(ro((r-t)/n,n))*n):i<t?i=t:!mn(r)&&i>r&&(i=t+Ia(ro((r-t)/n,n))*n),ro(i,n)},le=(e,t=0,r=10)=>{const n=Math.pow(r,t);return gi(e*n)/n},Sc=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},Cp=(e,t,r)=>{let n=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const o=10**Math.max(Sc(e),Sc(r));e=Math.round(e*o),r=Math.round(r*o),n=t==="+"?e+r:e-r,n/=o}return n},D1=(e,t)=>Cp(Rt(e),"+",t),A1=(e,t)=>Cp(Rt(e),"-",t);function Vs(e){if(!N1(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=Vs(o))}return r}var N1=e=>e&&typeof e=="object"&&e.constructor===Object;function Wo(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function L1(e,t){if(e==null)throw new Error(t())}var z1=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),F1=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,wc=e=>{const t={};let r;for(;r=F1.exec(e);)t[r[1]]=r[2];return t},M1=(e,t)=>{if(ko(e)){if(ko(t))return`${e};${t}`;e=wc(e)}else ko(t)&&(t=wc(t));return Object.assign({},e??{},t??{})};function bt(...e){let t={};for(let r of e){for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=Bo(r[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=z1(t[n],r[n]);continue}if(n==="style"){t[n]=M1(t[n],r[n]);continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}function Cc(e,t,r){let n=[],o;return i=>{const a=e(i);return(a.length!==n.length||a.some((l,c)=>!Kn(n[c],l)))&&(n=a,o=t(...a)),o}}function xr(){return{and:(...e)=>function(r){return e.every(n=>r.guard(n))},or:(...e)=>function(r){return e.some(n=>r.guard(n))},not:e=>function(r){return!r.guard(e)}}}function _1(){return{guards:xr(),createMachine:e=>e,choose:e=>function({choose:r}){var n;return(n=r(e))==null?void 0:n.actions}}}var Nr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Nr||{}),Ui="__init__";function V1(e){const t=()=>{var s;return((s=e.getRootNode)==null?void 0:s.call(e))??document},r=()=>nt(t()),n=()=>r().defaultView??window,o=()=>ap(t());return{...e,getRootNode:t,getDoc:r,getWin:n,getActiveElement:o,isActiveElement:s=>s===o(),getById:s=>t().getElementById(s)}}function B1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Gi=e=>{const t=d.memo(d.forwardRef((r,n)=>{const{asChild:o,children:i,...a}=r;if(!o)return d.createElement(e,{...a,ref:n},i);const s=d.Children.only(i);if(!d.isValidElement(s))return null;const l=B1(s);return d.cloneElement(s,{...bt(a,s.props),ref:n?_s(n,l):l})}));return t.displayName=e.displayName||e.name,t},W1=()=>{const e=new Map;return new Proxy(Gi,{apply(t,r,n){return Gi(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Gi(n)),e.get(n)}})},Sr=W1(),Ep=()=>(e,t)=>t.reduce((r,n)=>{const[o,i]=r,a=n;return i[a]!==void 0&&(o[a]=i[a]),delete i[a],[o,i]},[{},{...e}]),Pp=e=>Ep()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function K1(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var G=()=>e=>Array.from(new Set(e));function H1(e,t){const{state:r,send:n,context:o}=e,i=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(a){a&&n({type:"NODE.SET",node:a})},unmount(){n({type:"UNMOUNT"})}}}var j1={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:r}){e([()=>r("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",Ts(t.node))},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&(i==null?void 0:i.ownerDocument.visibilityState)==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});ie(()=>{var s,l;const a=no(t.get("styles"));e.set("unmountAnimationName",a),a==="none"||a===e.get("prevAnimationName")||((s=t.get("styles"))==null?void 0:s.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{ie(()=>{e.set("prevAnimationName",no(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=s=>{var c,u;(((u=(c=s.composedPath)==null?void 0:c.call(s))==null?void 0:u[0])??s.target)===n&&e.set("prevAnimationName",no(t.get("styles")))},i=s=>{const l=no(t.get("styles"));Je(s)===n&&l===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i);const a=Vo(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i),dp(()=>a())}}}}};function no(e){return(e==null?void 0:e.animationName)||"none"}G()(["onExitComplete","present","immediate"]);var $p=typeof globalThis.document<"u"?d.useLayoutEffect:d.useEffect;function Ko(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=d.useState(t),[o,i]=d.useState(n),a=e().value!==void 0,s=d.useRef(o);s.current=a?e().value:o;const l=d.useRef(s.current);$p(()=>{l.current=s.current},[o,e().value]);const c=g=>{var h,m;const f=l.current,p=_r(g)?g(f):g;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:f}),a||i(p),r(p,f)||(m=(h=e()).onChange)==null||m.call(h,p,f)};function u(){return a?e().value:o}return{initial:n,ref:s,get:u,set(g){(e().sync?ct.flushSync:y1)(()=>c(g))},invoke(g,f){var p,h;(h=(p=e()).onChange)==null||h.call(p,g,f)},hash(g){var f,p;return((p=(f=e()).hash)==null?void 0:p.call(f,g))??String(g)}}}Ko.cleanup=e=>{d.useEffect(()=>e,[])};Ko.ref=e=>{const t=d.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function U1(e){const t=d.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var G1=(e,t)=>{const r=d.useRef(!1),n=d.useRef(!1);d.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),d.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function kp(e,t={}){var I,L,E,O;const r=d.useMemo(()=>{const{id:A,ids:z,getRootNode:F}=t;return V1({id:A,ids:z,getRootNode:F})},[t]),n=(...A)=>{e.debug&&console.log(...A)},o=((I=e.props)==null?void 0:I.call(e,{props:Vs(t),scope:r}))??t,i=q1(o),a=(L=e.context)==null?void 0:L.call(e,{prop:i,bindable:Ko,scope:r,flush:Ec,getContext(){return l},getComputed(){return w},getRefs(){return m}}),s=Tp(a),l={get(A){var z;return(z=s.current)==null?void 0:z[A].ref.current},set(A,z){var F;(F=s.current)==null||F[A].set(z)},initial(A){var z;return(z=s.current)==null?void 0:z[A].initial},hash(A){var F,R;const z=(F=s.current)==null?void 0:F[A].get();return(R=s.current)==null?void 0:R[A].hash(z)}},c=d.useRef(new Map),u=d.useRef(null),g=d.useRef(null),f=d.useRef({type:""}),p=()=>({...f.current,current(){return f.current},previous(){return g.current}}),h=()=>({...C,matches(...A){return A.includes(C.ref.current)},hasTag(A){var z,F;return!!((F=(z=e.states[C.ref.current])==null?void 0:z.tags)!=null&&F.includes(A))}}),m=U1(((E=e.refs)==null?void 0:E.call(e,{prop:i,context:l}))??{}),b=()=>({state:h(),context:l,event:p(),prop:i,send:T,action:y,guard:x,track:G1,refs:m,computed:w,flush:Ec,scope:r,choose:$}),y=A=>{const z=_r(A)?A(b()):A;if(!z)return;const F=z.map(R=>{var B,Z;const _=(Z=(B=e.implementations)==null?void 0:B.actions)==null?void 0:Z[R];return _||Wo(`[zag-js] No implementation found for action "${JSON.stringify(R)}"`),_});for(const R of F)R==null||R(b())},x=A=>{var z,F;return _r(A)?A(b()):(F=(z=e.implementations)==null?void 0:z.guards)==null?void 0:F[A](b())},S=A=>{const z=_r(A)?A(b()):A;if(!z)return;const F=z.map(_=>{var Z,ne;const B=(ne=(Z=e.implementations)==null?void 0:Z.effects)==null?void 0:ne[_];return B||Wo(`[zag-js] No implementation found for effect "${JSON.stringify(_)}"`),B}),R=[];for(const _ of F){const B=_==null?void 0:_(b());B&&R.push(B)}return()=>R.forEach(_=>_==null?void 0:_())},$=A=>l1(A).find(z=>{let F=!z.guard;return ko(z.guard)?F=!!x(z.guard):_r(z.guard)&&(F=z.guard(b())),F}),w=A=>{L1(e.computed,()=>"[zag-js] No computed object found on machine");const z=e.computed[A];return z({context:l,event:p(),prop:i,refs:m,scope:r,computed:w})},C=Ko(()=>({defaultValue:e.initialState({prop:i}),onChange(A,z){var R,_,B,Z;if(z){const ne=c.current.get(z);ne==null||ne(),c.current.delete(z)}z&&y((R=e.states[z])==null?void 0:R.exit),y((_=u.current)==null?void 0:_.actions);const F=S((B=e.states[A])==null?void 0:B.effects);if(F&&c.current.set(A,F),z===Ui){y(e.entry);const ne=S(e.effects);ne&&c.current.set(Ui,ne)}y((Z=e.states[A])==null?void 0:Z.entry)}})),D=d.useRef(void 0),v=d.useRef(Nr.NotStarted);$p(()=>{queueMicrotask(()=>{const F=v.current===Nr.Started;v.current=Nr.Started,n(F?"rehydrating...":"initializing...");const R=D.current??C.initial;C.invoke(R,F?C.get():Ui)});const A=c.current,z=C.ref.current;return()=>{n("unmounting..."),D.current=z,v.current=Nr.Stopped,A.forEach(F=>F==null?void 0:F()),c.current=new Map,u.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const P=()=>"ref"in C?C.ref.current:C.get(),T=A=>{queueMicrotask(()=>{var Z,ne;if(v.current!==Nr.Started)return;g.current=f.current,f.current=A,n("send",A);let z=P();const F=((Z=e.states[z].on)==null?void 0:Z[A.type])??((ne=e.on)==null?void 0:ne[A.type]),R=$(F);if(!R)return;u.current=R;const _=R.target??z;n("transition",R);const B=_!==z;B?ct.flushSync(()=>C.set(_)):R.reenter&&!B?C.invoke(z,z):y(R.actions??[])})};return(O=e.watch)==null||O.call(e,b()),{state:h(),send:T,context:l,prop:i,scope:r,refs:m,computed:w,event:p(),getStatus:()=>v.current}}function Tp(e){const t=d.useRef(e);return t.current=e,t}function q1(e){const t=Tp(e);return function(n){return t.current[n]}}function Ec(e){queueMicrotask(()=>{ct.flushSync(()=>e())})}var Y1=K1(e=>e);function X1(e,t={}){const{sync:r=!1}=t,n=Z1(e);return d.useCallback((...o)=>{var i;return r?queueMicrotask(()=>{var a;return(a=n.current)==null?void 0:a.call(n,...o)}):(i=n.current)==null?void 0:i.call(n,...o)},[r,n])}function Z1(e){const t=d.useRef(e);return t.current=e,t}const Bs=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...i}=e,a=d.useRef(!1),s={...i,present:n,onExitComplete:X1(e.onExitComplete)},l=kp(j1,s),c=H1(l);c.present&&(a.current=!0);const u=!c.present&&!a.current&&t||r&&!c.present&&a.current,g=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:g,present:c.present,unmounted:u}},[Rp,Ws]=Wn({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var j=(e,t=[])=>({parts:(...r)=>{if(J1(t))return j(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>j(e,[...t,...r]),rename:r=>j(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Rr(e)}"][data-part="${Rr(n)}"]`,`& [data-scope="${Rr(e)}"][data-part="${Rr(n)}"]`].join(", "),attrs:{"data-scope":Rr(e),"data-part":Rr(n)}}}),{})}),Rr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),J1=e=>e.length===0,Op=j("collapsible").parts("root","trigger","content","indicator");Op.build();G()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);const[wD,Ip]=Wn({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var Q1=Object.defineProperty,eS=(e,t,r)=>t in e?Q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ks=(e,t,r)=>eS(e,t+"",r),tS=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},Hs=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const r=t??this.getChannelValue(e),{minValue:n,maxValue:o}=this.getChannelRange(e);return O1(r,n,o)}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=I1(t,r,n,o);return xc(i,r,n,o)}withChannelValue(e,t){const{minValue:r,maxValue:n}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=ze(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(a=>a!==r),o=r||this.getChannels().find(a=>a!==n),i=this.getChannels().find(a=>a!==n&&a!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=xc(ze(this.getChannelValue(e)+t,r,n),r,n,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return tS(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Dp=class To extends Hs{constructor(t,r,n,o){super(),this.red=t,this.green=r,this.blue=n,this.alpha=o}static parse(t){let r=[];if(/^#[\da-f]+$/i.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(/[^#]/gi,"$&$&"):t).slice(1).split("");for(;o.length>0;)r.push(parseInt(o.splice(0,2).join(""),16));r[3]=r[3]!==void 0?r[3]/255:void 0}const n=t.match(/^rgba?\((.*)\)$/);return n!=null&&n[1]&&(r=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>ze(o,0,i<3?255:1))),r.length<3?void 0:new To(r[0],r[1],r[2],r[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=i-o,s=i===0?0:a/i;let l=0;if(a!==0){switch(i){case t:l=(r-n)/a+(r<n?6:0);break;case r:l=(n-t)/a+2;break;case n:l=(t-r)/a+4;break}l/=6}return new Gs(le(l*360,2),le(s*100,2),le(i*100,2),le(this.alpha,2))}toHSL(){const t=this.red/255,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=(i+o)/2,s=i-o;let l=-1,c=-1;if(s===0)l=c=0;else{switch(c=s/(a<.5?i+o:2-i-o),i){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return new Us(le(l*360,2),le(c*100,2),le(a*100,2),le(this.alpha,2))}clone(){return new To(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return To.colorChannels}};Ks(Dp,"colorChannels",["red","green","blue"]);var js=Dp,rS=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Ap=class Ro extends Hs{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.lightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(rS)){const[n,o,i,a]=(r[1]??r[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new Ro(wp(n,360),ze(o,0,100),ze(i,0,100),ze(a??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${le(this.saturation,2)}%, ${le(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${le(this.saturation,2)}%, ${le(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,r=this.lightness/100,n=r+t*Math.min(r,1-r);return t=n===0?0:2*(1-r/n),new Gs(le(this.hue,2),le(t*100,2),le(n*100,2),le(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.lightness/100,o=r*Math.min(n,1-n),i=(a,s=(a+t/30)%12)=>n-o*Math.max(Math.min(s-3,9-s,1),-1);return new js(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),le(this.alpha,2))}clone(){return new Ro(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Ro.colorChannels}};Ks(Ap,"colorChannels",["hue","saturation","lightness"]);var Us=Ap,nS=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Np=class Oo extends Hs{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.brightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(nS)){const[n,o,i,a]=(r[1]??r[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new Oo(wp(n,360),ze(o,0,100),ze(i,0,100),ze(a??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${le(this.saturation,2)}%, ${le(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${le(this.saturation,2)}%, ${le(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,r=this.brightness/100,n=r*(1-t/2);return t=n===0||n===1?0:(r-n)/Math.min(n,1-n),new Us(le(this.hue,2),le(t*100,2),le(n*100,2),le(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.brightness/100,o=(i,a=(i+t/60)%6)=>n-r*n*Math.max(Math.min(a,4-a,1),0);return new js(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),le(this.alpha,2))}clone(){return new Oo(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Oo.colorChannels}};Ks(Np,"colorChannels",["hue","saturation","brightness"]);var Gs=Np,oS="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",iS=e=>{const t=new Map,r=e.split(",");for(let n=0;n<r.length;n++){const[o,i]=r[n].split(":");t.set(o,`#${i}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${i}`)}return t},Pc=iS(oS),Ho=e=>{var r;if(Pc.has(e))return Ho(Pc.get(e));const t=js.parse(e)||Gs.parse(e)||Us.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw(r=Error.captureStackTrace)==null||r.call(Error,n,Ho),n}return t};const aS=["top","right","bottom","left"],jt=Math.min,Ve=Math.max,jo=Math.round,oo=Math.floor,ht=e=>({x:e,y:e}),sS={left:"right",right:"left",bottom:"top",top:"bottom"},lS={start:"end",end:"start"};function Da(e,t,r){return Ve(e,jt(t,r))}function Ot(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function Qr(e){return e.split("-")[1]}function qs(e){return e==="x"?"y":"x"}function Ys(e){return e==="y"?"height":"width"}function Ut(e){return["top","bottom"].includes(It(e))?"y":"x"}function Xs(e){return qs(Ut(e))}function cS(e,t,r){r===void 0&&(r=!1);const n=Qr(e),o=Xs(e),i=Ys(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Uo(a)),[a,Uo(a)]}function uS(e){const t=Uo(e);return[Aa(e),t,Aa(t)]}function Aa(e){return e.replace(/start|end/g,t=>lS[t])}function dS(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function fS(e,t,r,n){const o=Qr(e);let i=dS(It(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Aa)))),i}function Uo(e){return e.replace(/left|right|bottom|top/g,t=>sS[t])}function pS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lp(e){return typeof e!="number"?pS(e):{top:e,right:e,bottom:e,left:e}}function Go(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function $c(e,t,r){let{reference:n,floating:o}=e;const i=Ut(t),a=Xs(t),s=Ys(a),l=It(t),c=i==="y",u=n.x+n.width/2-o.width/2,g=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:g};break;case"left":p={x:n.x-o.width,y:g};break;default:p={x:n.x,y:n.y}}switch(Qr(t)){case"start":p[a]-=f*(r&&c?-1:1);break;case"end":p[a]+=f*(r&&c?-1:1);break}return p}const gS=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:g}=$c(c,n,l),f=n,p={},h=0;for(let m=0;m<s.length;m++){const{name:b,fn:y}=s[m],{x,y:S,data:$,reset:w}=await y({x:u,y:g,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,g=S??g,p={...p,[b]:{...p[b],...$}},w&&h<=50&&(h++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:g}=$c(c,f,l)),m=-1)}return{x:u,y:g,placement:f,strategy:o,middlewareData:p}};async function In(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:f=!1,padding:p=0}=Ot(t,e),h=Lp(p),b=s[f?g==="floating"?"reference":"floating":g],y=Go(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=g==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),$=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},w=Go(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:l}):x);return{top:(y.top-w.top+h.top)/$.y,bottom:(w.bottom-y.bottom+h.bottom)/$.y,left:(y.left-w.left+h.left)/$.x,right:(w.right-y.right+h.right)/$.x}}const hS=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ot(e,t)||{};if(c==null)return{};const g=Lp(u),f={x:r,y:n},p=Xs(o),h=Ys(p),m=await a.getDimensions(c),b=p==="y",y=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",$=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=C?C[S]:0;(!D||!await(a.isElement==null?void 0:a.isElement(C)))&&(D=s.floating[S]||i.floating[h]);const v=$/2-w/2,P=D/2-m[h]/2-1,T=jt(g[y],P),I=jt(g[x],P),L=T,E=D-m[h]-I,O=D/2-m[h]/2+v,A=Da(L,O,E),z=!l.arrow&&Qr(o)!=null&&O!==A&&i.reference[h]/2-(O<L?T:I)-m[h]/2<0,F=z?O<L?O-L:O-E:0;return{[p]:f[p]+F,data:{[p]:A,centerOffset:O-A-F,...z&&{alignmentOffset:F}},reset:z}}}),mS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...b}=Ot(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=It(o),x=Ut(s),S=It(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(S||!m?[Uo(s)]:uS(s)),C=h!=="none";!f&&C&&w.push(...fS(s,m,h,$));const D=[s,...w],v=await In(t,b),P=[];let T=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&P.push(v[y]),g){const O=cS(o,a,$);P.push(v[O[0]],v[O[1]])}if(T=[...T,{placement:o,overflows:P}],!P.every(O=>O<=0)){var I,L;const O=(((I=i.flip)==null?void 0:I.index)||0)+1,A=D[O];if(A)return{data:{index:O,overflows:T},reset:{placement:A}};let z=(L=T.filter(F=>F.overflows[0]<=0).sort((F,R)=>F.overflows[1]-R.overflows[1])[0])==null?void 0:L.placement;if(!z)switch(p){case"bestFit":{var E;const F=(E=T.filter(R=>{if(C){const _=Ut(R.placement);return _===x||_==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(_=>_>0).reduce((_,B)=>_+B,0)]).sort((R,_)=>R[1]-_[1])[0])==null?void 0:E[0];F&&(z=F);break}case"initialPlacement":z=s;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function kc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tc(e){return aS.some(t=>e[t]>=0)}const vS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ot(e,t);switch(n){case"referenceHidden":{const i=await In(t,{...o,elementContext:"reference"}),a=kc(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Tc(a)}}}case"escaped":{const i=await In(t,{...o,altBoundary:!0}),a=kc(i,r.floating);return{data:{escapedOffsets:a,escaped:Tc(a)}}}default:return{}}}}};async function bS(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=It(r),s=Qr(r),l=Ut(r)==="y",c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,g=Ot(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const yS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await bS(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},xS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Ot(e,t),c={x:r,y:n},u=await In(t,l),g=Ut(It(o)),f=qs(g);let p=c[f],h=c[g];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=p+u[b],S=p-u[y];p=Da(x,p,S)}if(a){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=h+u[b],S=h-u[y];h=Da(x,h,S)}const m=s.fn({...t,[f]:p,[g]:h});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:i,[g]:a}}}}}},SS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ot(e,t),u={x:r,y:n},g=Ut(o),f=qs(g);let p=u[f],h=u[g];const m=Ot(s,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const S=f==="y"?"height":"width",$=i.reference[f]-i.floating[S]+b.mainAxis,w=i.reference[f]+i.reference[S]-b.mainAxis;p<$?p=$:p>w&&(p=w)}if(c){var y,x;const S=f==="y"?"width":"height",$=["top","left"].includes(It(o)),w=i.reference[g]-i.floating[S]+($&&((y=a.offset)==null?void 0:y[g])||0)+($?0:b.crossAxis),C=i.reference[g]+i.reference[S]+($?0:((x=a.offset)==null?void 0:x[g])||0)-($?b.crossAxis:0);h<w?h=w:h>C&&(h=C)}return{[f]:p,[g]:h}}}},wS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Ot(e,t),u=await In(t,c),g=It(o),f=Qr(o),p=Ut(o)==="y",{width:h,height:m}=i.floating;let b,y;g==="top"||g==="bottom"?(b=g,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=g,b=f==="end"?"top":"bottom");const x=m-u.top-u.bottom,S=h-u.left-u.right,$=jt(m-u[b],x),w=jt(h-u[y],S),C=!t.middlewareData.shift;let D=$,v=w;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(v=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(D=x),C&&!f){const T=Ve(u.left,0),I=Ve(u.right,0),L=Ve(u.top,0),E=Ve(u.bottom,0);p?v=h-2*(T!==0||I!==0?T+I:Ve(u.left,u.right)):D=m-2*(L!==0||E!==0?L+E:Ve(u.top,u.bottom))}await l({...t,availableWidth:v,availableHeight:D});const P=await a.getDimensions(s.floating);return h!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function hi(){return typeof window<"u"}function en(e){return zp(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yt(e){var t;return(t=(zp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zp(e){return hi()?e instanceof Node||e instanceof He(e).Node:!1}function st(e){return hi()?e instanceof Element||e instanceof He(e).Element:!1}function vt(e){return hi()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function Rc(e){return!hi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function Hn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function CS(e){return["table","td","th"].includes(en(e))}function mi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Zs(e){const t=Js(),r=st(e)?lt(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ES(e){let t=Gt(e);for(;vt(t)&&!Xr(t);){if(Zs(t))return t;if(mi(t))return null;t=Gt(t)}return null}function Js(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xr(e){return["html","body","#document"].includes(en(e))}function lt(e){return He(e).getComputedStyle(e)}function vi(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if(en(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rc(e)&&e.host||yt(e);return Rc(t)?t.host:t}function Fp(e){const t=Gt(e);return Xr(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&Hn(t)?t:Fp(t)}function Dn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Fp(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=He(o);if(i){const s=Na(a);return t.concat(a,a.visualViewport||[],Hn(o)?o:[],s&&r?Dn(s):[])}return t.concat(o,Dn(o,[],r))}function Na(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mp(e){const t=lt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=vt(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=jo(r)!==i||jo(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Qs(e){return st(e)?e:e.contextElement}function jr(e){const t=Qs(e);if(!vt(t))return ht(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Mp(t);let a=(i?jo(r.width):r.width)/n,s=(i?jo(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const PS=ht(0);function _p(e){const t=He(e);return!Js()||!t.visualViewport?PS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $S(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==He(e)?!1:t}function gr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Qs(e);let a=ht(1);t&&(n?st(n)&&(a=jr(n)):a=jr(e));const s=$S(i,r,n)?_p(i):ht(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,g=o.height/a.y;if(i){const f=He(i),p=n&&st(n)?He(n):n;let h=f,m=Na(h);for(;m&&n&&p!==h;){const b=jr(m),y=m.getBoundingClientRect(),x=lt(m),S=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,$=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,g*=b.y,l+=S,c+=$,h=He(m),m=Na(h)}}return Go({width:u,height:g,x:l,y:c})}function el(e,t){const r=vi(e).scrollLeft;return t?t.left+r:gr(yt(e)).left+r}function Vp(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:el(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function kS(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=yt(n),s=t?mi(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ht(1);const u=ht(0),g=vt(n);if((g||!g&&!i)&&((en(n)!=="body"||Hn(a))&&(l=vi(n)),vt(n))){const p=gr(n);c=jr(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const f=a&&!g&&!i?Vp(a,l,!0):ht(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function TS(e){return Array.from(e.getClientRects())}function RS(e){const t=yt(e),r=vi(e),n=e.ownerDocument.body,o=Ve(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ve(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+el(e);const s=-r.scrollTop;return lt(n).direction==="rtl"&&(a+=Ve(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}function OS(e,t){const r=He(e),n=yt(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const c=Js();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function IS(e,t){const r=gr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=vt(e)?jr(e):ht(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function Oc(e,t,r){let n;if(t==="viewport")n=OS(e,r);else if(t==="document")n=RS(yt(e));else if(st(t))n=IS(t,r);else{const o=_p(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Go(n)}function Bp(e,t){const r=Gt(e);return r===t||!st(r)||Xr(r)?!1:lt(r).position==="fixed"||Bp(r,t)}function DS(e,t){const r=t.get(e);if(r)return r;let n=Dn(e,[],!1).filter(s=>st(s)&&en(s)!=="body"),o=null;const i=lt(e).position==="fixed";let a=i?Gt(e):e;for(;st(a)&&!Xr(a);){const s=lt(a),l=Zs(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Hn(a)&&!l&&Bp(e,a))?n=n.filter(u=>u!==a):o=s,a=Gt(a)}return t.set(e,n),n}function AS(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?mi(t)?[]:DS(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const g=Oc(t,u,o);return c.top=Ve(g.top,c.top),c.right=jt(g.right,c.right),c.bottom=jt(g.bottom,c.bottom),c.left=Ve(g.left,c.left),c},Oc(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function NS(e){const{width:t,height:r}=Mp(e);return{width:t,height:r}}function LS(e,t,r){const n=vt(t),o=yt(t),i=r==="fixed",a=gr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ht(0);if(n||!n&&!i)if((en(t)!=="body"||Hn(o))&&(s=vi(t)),n){const f=gr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=el(o));const c=o&&!n&&!i?Vp(o,s):ht(0),u=a.left+s.scrollLeft-l.x-c.x,g=a.top+s.scrollTop-l.y-c.y;return{x:u,y:g,width:a.width,height:a.height}}function qi(e){return lt(e).position==="static"}function Ic(e,t){if(!vt(e)||lt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return yt(e)===r&&(r=r.ownerDocument.body),r}function Wp(e,t){const r=He(e);if(mi(e))return r;if(!vt(e)){let o=Gt(e);for(;o&&!Xr(o);){if(st(o)&&!qi(o))return o;o=Gt(o)}return r}let n=Ic(e,t);for(;n&&CS(n)&&qi(n);)n=Ic(n,t);return n&&Xr(n)&&qi(n)&&!Zs(n)?r:n||ES(e)||r}const zS=async function(e){const t=this.getOffsetParent||Wp,r=this.getDimensions,n=await r(e.floating);return{reference:LS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function FS(e){return lt(e).direction==="rtl"}const MS={convertOffsetParentRelativeRectToViewportRelativeRect:kS,getDocumentElement:yt,getClippingRect:AS,getOffsetParent:Wp,getElementRects:zS,getClientRects:TS,getDimensions:NS,getScale:jr,isElement:st,isRTL:FS};function Kp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _S(e,t){let r=null,n;const o=yt(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:g,width:f,height:p}=c;if(s||t(),!f||!p)return;const h=oo(g),m=oo(o.clientWidth-(u+f)),b=oo(o.clientHeight-(g+p)),y=oo(u),S={rootMargin:-h+"px "+-m+"px "+-b+"px "+-y+"px",threshold:Ve(0,jt(1,l))||1};let $=!0;function w(C){const D=C[0].intersectionRatio;if(D!==l){if(!$)return a();D?a(!1,D):n=setTimeout(()=>{a(!1,1e-7)},1e3)}D===1&&!Kp(c,e.getBoundingClientRect())&&a(),$=!1}try{r=new IntersectionObserver(w,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,S)}r.observe(e)}return a(!0),i}function VS(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Qs(e),u=o||i?[...c?Dn(c):[],...Dn(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const g=c&&s?_S(c,r):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let h,m=l?gr(e):null;l&&b();function b(){const y=gr(e);m&&!Kp(m,y)&&r(),m=y,h=requestAnimationFrame(b)}return r(),()=>{var y;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),g==null||g(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const BS=yS,WS=xS,KS=mS,HS=wS,jS=vS,US=hS,GS=SS,qS=(e,t,r)=>{const n=new Map,o={platform:MS,...r},i={...o.platform,_c:n};return gS(e,t,{...o,platform:i})};function Dc(e=0,t=0,r=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}function YS(e){if(!e)return Dc();const{x:t,y:r,width:n,height:o}=e;return Dc(t,r,n,o)}function XS(e,t){return{contextElement:Te(e)?e:void 0,getBoundingClientRect:()=>{const r=e,n=t==null?void 0:t(r);return n||!r?YS(n):r.getBoundingClientRect()}}}var Ac=e=>({variable:e,reference:`var(${e})`}),Hp={transformOrigin:Ac("--transform-origin"),arrowOffset:Ac("--arrow-offset")},ZS=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),JS={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:r}){const{arrow:n}=r,o=ZS(n)[e],{floating:i}=t;return i.style.setProperty(Hp.transformOrigin.variable,o),{data:{transformOrigin:o}}}},QS={name:"rects",fn({rects:e}){return{data:e}}},ew=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Hp.arrowOffset.reference})`}),{}}}};function tw(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function rw(e){return e.split("-")[0]}var nw={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Nc(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function jp(e){return b1(e.boundary)}function ow(e,t){if(e)return US({element:e,padding:t.arrowPadding})}function iw(e,t){if(!m1(t.offset??t.gutter))return BS(({placement:r})=>{var c,u;const n=((e==null?void 0:e.clientHeight)||0)/2,o=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:a}=tw(r),s=a?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??s;return Vs({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function aw(e){if(e.flip)return KS({boundary:jp(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function sw(e){if(!(!e.slide&&!e.overlap))return WS({boundary:jp(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:GS()})}function lw(e){return HS({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const i=t.floating,a=Math.round(r.reference.width);o=Math.floor(o),n=Math.floor(n),i.style.setProperty("--reference-width",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${n}px`)}})}function cw(e){var t;if(e.hideWhenDetached)return jS({strategy:"referenceHidden",boundary:((t=e.boundary)==null?void 0:t.call(e))??"clippingAncestors"})}function uw(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function dw(e,t,r={}){const n=XS(e,r.getAnchorRect);if(!t||!n)return;const o=Object.assign({},nw,r),i=t.querySelector("[data-part=arrow]"),a=[iw(i,o),aw(o),sw(o),ow(i,o),ew(i),JS,lw(o),cw(o),QS],{placement:s,strategy:l,onComplete:c,onPositioned:u}=o,g=async()=>{var $;if(!n||!t)return;const m=await qS(n,t,{placement:s,middleware:a,strategy:l});c==null||c(m),u==null||u({placed:!0});const b=Oe(t),y=Nc(b,m.x),x=Nc(b,m.y);t.style.setProperty("--x",`${y}px`),t.style.setProperty("--y",`${x}px`),o.hideWhenDetached&&((($=m.middlewareData.hide)==null?void 0:$.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const S=t.firstElementChild;if(S){const w=Ts(S);t.style.setProperty("--z-index",w.zIndex)}},f=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:g}),u==null||u({placed:!0})):await g()},p=uw(o.listeners),h=o.listeners?VS(n,t,f,p):x1;return f(),()=>{h==null||h(),u==null||u({placed:!1})}}function Dt(e,t,r={}){const{defer:n,...o}=r,i=n?ie:s=>s(),a=[];return a.push(i(()=>{const s=typeof e=="function"?e():e,l=typeof t=="function"?t():t;a.push(dw(s,l,o))})),()=>{a.forEach(s=>s==null?void 0:s())}}function fw(e){const t={each(r){var n;for(let o=0;o<((n=e.frames)==null?void 0:n.length);o+=1){const i=e.frames[o];i&&r(i)}},addEventListener(r,n,o){return t.each(i=>{try{i.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(i=>{try{i.document.removeEventListener(r,n,o)}catch{}})}};return t}function pw(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t==null||t.addEventListener(r,n,o)}catch{}return()=>{try{t==null||t.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t==null||t.removeEventListener(r,n,o)}catch{}}}}var Lc="pointerdown.outside",zc="focus.outside";function gw(e){for(const t of e)if(Te(t)&&Ht(t))return!0;return!1}var Up=e=>"clientY"in e;function hw(e,t){if(!Up(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function mw(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Fc(e,t){if(!t||!Up(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},s={x:e.clientX,y:e.clientY};return mw(a,s)?n||i:!1}function vw(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:a}=t;if(!e)return;const s=nt(e),l=Oe(e),c=fw(l),u=pw(l);function g(x,S){if(!Te(S)||!S.isConnected||Yr(e,S)||hw(e,x))return!1;const $=s.querySelector(`[aria-controls="${e.id}"]`);if($){const C=Mo($);if(Fc(x,C))return!1}const w=Mo(e);return Fc(x,w)?!1:!(r!=null&&r(S))}const f=new Set,p=qr(e==null?void 0:e.getRootNode());function h(x){function S($){var v;const w=a&&!mc()?ie:P=>P(),C=$??x,D=((v=C==null?void 0:C.composedPath)==null?void 0:v.call(C))??[C==null?void 0:C.target];w(()=>{const P=p?D[0]:Je(x);if(!(!e||!g(x,P))){if(o||i){const T=Bo(o,i);e.addEventListener(Lc,T,{once:!0})}Mc(e,Lc,{bubbles:!1,cancelable:!0,detail:{originalEvent:C,contextmenu:Px(C),focusable:gw(D),target:P}})}})}x.pointerType==="touch"?(f.forEach($=>$()),f.add(fe(s,"click",S,{once:!0})),f.add(u.addEventListener("click",S,{once:!0})),f.add(c.addEventListener("click",S,{once:!0}))):S()}const m=new Set,b=setTimeout(()=>{m.add(fe(s,"pointerdown",h,!0)),m.add(u.addEventListener("pointerdown",h,!0)),m.add(c.addEventListener("pointerdown",h,!0))},0);function y(x){(a?ie:$=>$())(()=>{const $=Je(x);if(!(!e||!g(x,$))){if(n||i){const w=Bo(n,i);e.addEventListener(zc,w,{once:!0})}Mc(e,zc,{bubbles:!1,cancelable:!0,detail:{originalEvent:x,contextmenu:!1,focusable:Ht($),target:$}})}})}return mc()||(m.add(fe(s,"focusin",y,!0)),m.add(u.addEventListener("focusin",y,!0)),m.add(c.addEventListener("focusin",y,!0))),()=>{clearTimeout(b),f.forEach(x=>x()),m.forEach(x=>x())}}function bw(e,t){const{defer:r}=t,n=r?ie:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(vw(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Mc(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function yw(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t==null||t(n))};return fe(nt(e),"keydown",r,{capture:!0})}var ot={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var n;const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf((n=this.topMostPointerBlockingLayer())==null?void 0:n.node):-1;return t<r},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>Yr(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Yr(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>n.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){var t;(t=this.layers[this.indexOf(e)])==null||t.dismiss()},clear(){this.remove(this.layers[0].node)}},_c;function Vc(){ot.layers.forEach(({node:e})=>{e.style.pointerEvents=ot.isBelowPointerBlockingLayer(e)?"none":"auto"})}function xw(e){e.style.pointerEvents=""}function Sw(e,t){const r=nt(e),n=[];if(ot.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(_c=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t){const o=i1(t,i=>{n.push(Vo(i,{pointerEvents:"auto"}))});n.push(o)}return()=>{ot.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=_c,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function ww(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){Wo("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,pointerBlocking:o,exclude:i,debug:a}=t,s={dismiss:n,node:e,pointerBlocking:o};ot.add(s),Vc();function l(p){var m,b;const h=Je(p.detail.originalEvent);ot.isBelowPointerBlockingLayer(e)||ot.isInBranch(h)||((m=t.onPointerDownOutside)==null||m.call(t,p),(b=t.onInteractOutside)==null||b.call(t,p),!p.defaultPrevented&&(a&&console.log("onPointerDownOutside:",p.detail.originalEvent),n==null||n()))}function c(p){var m,b;const h=Je(p.detail.originalEvent);ot.isInBranch(h)||((m=t.onFocusOutside)==null||m.call(t,p),(b=t.onInteractOutside)==null||b.call(t,p),!p.defaultPrevented&&(a&&console.log("onFocusOutside:",p.detail.originalEvent),n==null||n()))}function u(p){var h;ot.isTopMost(e)&&((h=t.onEscapeKeyDown)==null||h.call(t,p),!p.defaultPrevented&&n&&(p.preventDefault(),n()))}function g(p){var y;if(!e)return!1;const h=typeof i=="function"?i():i,m=Array.isArray(h)?h:[h],b=(y=t.persistentElements)==null?void 0:y.map(x=>x()).filter(Te);return b&&m.push(...b),m.some(x=>Yr(x,p))||ot.isInNestedLayer(e,p)}const f=[o?Sw(e,t.persistentElements):void 0,yw(e,u),bw(e,{exclude:g,onFocusOutside:c,onPointerDownOutside:l,defer:t.defer})];return()=>{ot.remove(e),Vc(),xw(e),f.forEach(p=>p==null?void 0:p())}}function jn(e,t){const{defer:r}=t,n=r?ie:i=>i(),o=[];return o.push(n(()=>{const i=_r(e)?e():e;o.push(ww(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}var Gp=j("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Gp.build();var Cw=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},Ew=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},Pw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},$w=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},kw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},Tw=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},Rw=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},Ow=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},Iw=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.channelSliderTrack)==null?void 0:n.call(r,t))??`color-picker:${e.id}:slider-track:${t}`},Dw=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.channelSliderThumb)==null?void 0:n.call(r,t))??`color-picker:${e.id}:slider-thumb:${t}`},Io=e=>e.getById($w(e)),Aw=e=>e.getById(Ow(e)),Nw=(e,t)=>e.getById(Dw(e,t)),Lw=e=>e.getById(Tw(e)),Bc=e=>e.getById(Cw(e)),zw=e=>e.getById(Rw(e)),Fw=(e,t)=>{const r=zw(e);if(!r)return;const{percent:n}=gp(t,r);return n},Mw=e=>e.getById(Ew(e)),Yi=e=>e.getById(Pw(e)),_w=e=>e.getById(kw(e)),Vw=(e,t)=>e.getById(Iw(e,t)),Bw=(e,t,r)=>{const n=Vw(e,r);if(!n)return;const{percent:o}=gp(t,n);return o},Ww=e=>[..._o(Io(e),"input[data-channel]"),..._o(Mw(e),"input[data-channel]")];function Kw(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const r=e.getFormat()==="hsla";switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Wc=e=>Ho(e),{and:Hw}=xr();Hw("isOpenControlled","closeOnSelect");function Kc(e,t,r){const n=Ww(e);ie(()=>{n.forEach(o=>{const i=o.dataset.channel;pi(o,Kw(r||t,i))})})}function jw(e,t){const r=Lw(e);r&&ie(()=>pi(r,t))}G()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);G()(["xChannel","yChannel"]);G()(["channel","orientation"]);G()(["value","disabled"]);G()(["value","respectAlpha"]);G()(["size"]);function Uw(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gw(e,t,r){Uw(e,t),t.set(e,r)}const[qp,qw]=Wn({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Yp=e=>Ep()(e,["lazyMount","unmountOnExit"]);var Xp=j("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Xp.build();var Zp=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},Jp=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.itemTrigger)==null?void 0:n.call(r,t))??`accordion:${e.id}:trigger:${t}`},Yw=e=>e.getById(Zp(e)),bi=e=>{const r=`[aria-controls][data-ownedby='${CSS.escape(Zp(e))}']:not([disabled])`;return _o(Yw(e),r)},Xw=e=>mp(bi(e)),Zw=e=>vp(bi(e)),Jw=(e,t)=>qx(bi(e),Jp(e,t)),Qw=(e,t)=>Yx(bi(e),Jp(e,t)),{and:eC,not:tC}=xr();eC("isExpanded","canToggle"),tC("isExpanded");G()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);G()(["value","disabled"]);var Qp=j("avatar").parts("root","image","fallback");Qp.build();G()(["dir","id","ids","onStatusChange","getRootNode"]);function rC(e){return!(e.metaKey||!fi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var nC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oC(e,t,r){const n=r?Je(r):null,o=Oe(n);return e=e||n instanceof o.HTMLInputElement&&!nC.has(n==null?void 0:n.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof o.KeyboardEvent&&!Reflect.has(iC,r.key))}var wr=null,La=new Set,Cn=new Map,hr=!1,za=!1,iC={Tab:!0,Escape:!0};function yi(e,t){for(let r of La)r(e,t)}function qo(e){hr=!0,rC(e)&&(wr="keyboard",yi("keyboard",e))}function Xe(e){wr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,yi("pointer",e))}function eg(e){Ex(e)&&(hr=!0,wr="virtual")}function tg(e){const t=Je(e);t===Oe(t)||t===nt(t)||(!hr&&!za&&(wr="virtual",yi("virtual",e)),hr=!1,za=!1)}function rg(){hr=!1,za=!0}function aC(e){if(typeof window>"u"||Cn.get(Oe(e)))return;const t=Oe(e),r=nt(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){wr="virtual",yi("virtual",null),hr=!0,n.apply(this,arguments)},r.addEventListener("keydown",qo,!0),r.addEventListener("keyup",qo,!0),r.addEventListener("click",eg,!0),t.addEventListener("focus",tg,!0),t.addEventListener("blur",rg,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",Xe,!0),r.addEventListener("pointermove",Xe,!0),r.addEventListener("pointerup",Xe,!0)):(r.addEventListener("mousedown",Xe,!0),r.addEventListener("mousemove",Xe,!0),r.addEventListener("mouseup",Xe,!0)),t.addEventListener("beforeunload",()=>{sC(e)},{once:!0}),Cn.set(t,{focus:n})}var sC=(e,t)=>{const r=Oe(e),n=nt(e);Cn.has(r)&&(r.HTMLElement.prototype.focus=Cn.get(r).focus,n.removeEventListener("keydown",qo,!0),n.removeEventListener("keyup",qo,!0),n.removeEventListener("click",eg,!0),r.removeEventListener("focus",tg,!0),r.removeEventListener("blur",rg,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",Xe,!0),n.removeEventListener("pointermove",Xe,!0),n.removeEventListener("pointerup",Xe,!0)):(n.removeEventListener("mousedown",Xe,!0),n.removeEventListener("mousemove",Xe,!0),n.removeEventListener("mouseup",Xe,!0)),Cn.delete(r))};function Hc(){return wr==="keyboard"}function lC(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;aC(o),n==null||n({isFocusVisible:r||Hc(),modality:wr});const i=(a,s)=>{oC(!!t,a,s)&&(n==null||n({isFocusVisible:Hc(),modality:a}))};return La.add(i),()=>{La.delete(i)}}var ng=j("checkbox").parts("root","label","control","indicator");ng.build();G()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const cC=ng.extendWith("group"),uC=Gp.extendWith("view");var dC=Object.defineProperty,fC=(e,t,r)=>t in e?dC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t,r)=>fC(e,typeof t!="symbol"?t+"":t,r),Do={itemToValue(e){return typeof e=="string"?e:Ki(e)&&Hi(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Ki(e)&&Hi(e,"label")?e.label:Do.itemToValue(e)},isItemDisabled(e){return Ki(e)&&Hi(e,"disabled")?!!e.disabled:!1}},og=class ig{constructor(t){this.options=t,q(this,"items"),q(this,"copy",r=>new ig({...this.options,items:r??[...this.items]})),q(this,"isEqual",r=>Kn(this.items,r.items)),q(this,"setItems",r=>this.copy(r)),q(this,"getValues",(r=this.items)=>Array.from(r).map(n=>this.getItemValue(n)).filter(Boolean)),q(this,"find",r=>{if(r==null)return null;const n=this.items.findIndex(o=>this.getItemValue(o)===r);return n!=null?this.items[n]:null}),q(this,"findMany",r=>Array.from(r).map(n=>this.find(n)).filter(n=>n!=null)),q(this,"at",r=>this.items[r]??null),q(this,"sortFn",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return(o??0)-(i??0)}),q(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),q(this,"getItemValue",r=>{var n,o;return r==null?null:((o=(n=this.options).itemToValue)==null?void 0:o.call(n,r))??Do.itemToValue(r)}),q(this,"getItemDisabled",r=>{var n,o;return r==null?!1:((o=(n=this.options).isItemDisabled)==null?void 0:o.call(n,r))??Do.isItemDisabled(r)}),q(this,"stringifyItem",r=>{var n,o;return r==null?null:((o=(n=this.options).itemToString)==null?void 0:o.call(n,r))??Do.itemToString(r)}),q(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),q(this,"stringifyItems",(r,n=", ")=>Array.from(r).map(o=>this.stringifyItem(o)).filter(Boolean).join(n)),q(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),q(this,"has",r=>this.indexOf(r)!==-1),q(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),q(this,"getNextValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.min(i+n,this.size-1):i+n;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),q(this,"getPreviousValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.max(i-n,0):i-n;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),q(this,"indexOf",r=>r==null?-1:this.items.findIndex(n=>this.getItemValue(n)===r)),q(this,"getByText",(r,n)=>{let o=n!=null?gC(this.items,this.indexOf(n)):this.items;return r.length===1&&(o=o.filter(a=>this.getItemValue(a)!==n)),o.find(a=>pC(this.stringifyItem(a),r))}),q(this,"search",(r,n)=>{const{state:o,currentValue:i,timeout:a=350}=n,s=o.keysSoFar+r,c=s.length>1&&Array.from(s).every(h=>h===s[0])?s[0]:s,u=this.getByText(c,i),g=this.getItemValue(u);function f(){clearTimeout(o.timer),o.timer=-1}function p(h){o.keysSoFar=h,f(),h!==""&&(o.timer=+setTimeout(()=>{p(""),f()},a))}return p(s),g}),q(this,"update",(r,n)=>{let o=this.items.findIndex(i=>this.getItemValue(i)===r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),q(this,"insert",(r,...n)=>this.copy(sn(this.items,r,...n))),q(this,"insertBefore",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(sn(this.items,o,...n))}),q(this,"insertAfter",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(sn(this.items,o+1,...n))}),q(this,"prepend",(...r)=>this.copy(sn(this.items,0,...r))),q(this,"append",(...r)=>this.copy(sn(this.items,this.items.length,...r))),q(this,"remove",(...r)=>{const n=r.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!n.includes(i)}))}),q(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(jc(this.items,[o],n))}),q(this,"reorder",(r,n)=>this.copy(jc(this.items,[r],n))),q(this,"compareValue",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return o<i?-1:o>i?1:0}),q(this,"range",(r,n)=>{let o=[],i=r;for(;i!=null;){if(this.find(i)&&o.push(i),i===n)return o;i=this.getNextValue(i)}return[]}),q(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),q(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),i=this.stringifyItem(n),a=this.getItemDisabled(n),s=[o,i,a].filter(Boolean).join(":");r+=s+","}return r}),q(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},pC=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase())),gC=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]);function sn(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function jc(e,t,r){t=[...t].sort((o,i)=>o-i);const n=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return r=Math.max(0,r-t.filter(o=>o<r).length),[...e.slice(0,r),...n,...e.slice(r)]}var Or=new WeakMap,io=new WeakMap,ao={},Xi=0,ag=e=>e&&(e.host||ag(e.parentNode)),hC=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=ag(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),mC=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),vC=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o}=t,i=hC(r,Array.isArray(e)?e:[e]);ao[n]||(ao[n]=new WeakMap);const a=ao[n],s=[],l=new Set,c=new Set(i),u=f=>{!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);const g=f=>{!f||c.has(f)||Array.prototype.forEach.call(f.children,p=>{if(l.has(p))g(p);else try{if(mC(p))return;const m=p.getAttribute(o)==="true",b=(Or.get(p)||0)+1,y=(a.get(p)||0)+1;Or.set(p,b),a.set(p,y),s.push(p),b===1&&m&&io.set(p,!0),y===1&&p.setAttribute(n,""),m||p.setAttribute(o,"true")}catch(h){console.error("[zag-js > ariaHidden] cannot operate on ",p,h)}})};return g(r),l.clear(),Xi++,()=>{s.forEach(f=>{const p=Or.get(f)-1,h=a.get(f)-1;Or.set(f,p),a.set(f,h),p||(io.has(f)||f.removeAttribute(o),io.delete(f)),h||f.removeAttribute(n)}),Xi--,Xi||(Or=new WeakMap,Or=new WeakMap,io=new WeakMap,ao={})}},bC=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,yC=(e,t=bC(e),r="data-aria-hidden")=>{if(t)return vC(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},xC=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function SC(e,t={}){const{defer:r=!0}=t,n=r?xC:i=>i(),o=[];return o.push(n(()=>{const a=(typeof e=="function"?e():e).filter(Boolean);a.length!==0&&o.push(yC(a))})),()=>{o.forEach(i=>i==null?void 0:i())}}const[sg,Xt]=Wn({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),lg=d.forwardRef((e,t)=>{const r=Xt(),n=qw(),o=Bs({...n,present:r.open}),i=bt(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:k.jsx(Sr.div,{...i,ref:_s(o.ref,t)})});lg.displayName="DialogBackdrop";const cg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getCloseTriggerProps(),e);return k.jsx(Sr.button,{...n,ref:t})});cg.displayName="DialogCloseTrigger";const ug=d.forwardRef((e,t)=>{const r=Xt(),n=Ws(),o=bt(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:k.jsx(Sr.div,{...o,ref:_s(n.ref,t)})});ug.displayName="DialogContent";const dg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getDescriptionProps(),e);return k.jsx(Sr.div,{...n,ref:t})});dg.displayName="DialogDescription";const fg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getPositionerProps(),e);return Ws().unmounted?null:k.jsx(Sr.div,{...n,ref:t})});fg.displayName="DialogPositioner";var wC=Object.defineProperty,CC=(e,t,r)=>t in e?wC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>CC(e,typeof t!="symbol"?t+"":t,r),Uc={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},EC=[],PC=class{constructor(e,t){de(this,"trapStack"),de(this,"config"),de(this,"doc"),de(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),de(this,"listenerCleanups",[]),de(this,"handleFocus",n=>{const o=Je(n),i=this.findContainerIndex(o,n)>=0;if(i||ks(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let a,s=!0;if(this.state.mostRecentlyFocusedNode)if(an(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(g=>g===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<c.length&&(a=c[u+1],s=!1):u-1>=0&&(a=c[u-1],s=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>an(c)>0))||(s=!1);else s=!1;s&&(a=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),a?this.tryFocus(a):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),de(this,"handlePointerDown",n=>{const o=Je(n);if(!(this.findContainerIndex(o,n)>=0)){if(cn(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}cn(this.config.allowOutsideClick,n)||n.preventDefault()}}),de(this,"handleClick",n=>{const o=Je(n);this.findContainerIndex(o,n)>=0||cn(this.config.clickOutsideDeactivates,n)||cn(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),de(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),i=this.findNextNavNode({event:n,isBackward:o});if(!i)return;ln(n)&&n.preventDefault(),this.tryFocus(i)}}),de(this,"handleEscapeKey",n=>{$C(n)&&cn(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),de(this,"_mutationObserver"),de(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(a=>Array.from(a.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),de(this,"updateObservedNodes",()=>{var n;(n=this._mutationObserver)==null||n.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var i;(i=this._mutationObserver)==null||i.observe(o,{subtree:!0,childList:!0})})}),de(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!Ht(n))if(this.findContainerIndex(this.doc.activeElement)>=0)n=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];n=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),de(this,"tryFocus",n=>{if(n!==!1&&n!==ap(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,kC(n)&&n.select()}}),de(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Uc.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),a=this.getOption(o,"onPostDeactivate"),s=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i==null||i();const c=()=>{Gc(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}a==null||a()})};if(l&&s){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return s(u).then(c,c),this}return c(),this}),de(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),i=this.getOption(n,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),i==null||i(),this}),de(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),i=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i==null||i(),this}),de(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),de(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),de(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),de(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let a=this.config[n];if(typeof a=="function"&&(a=a(...i)),a===!0&&(a=void 0),!a){if(a===void 0||a===!1)return a;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let s=a;if(typeof a=="string"){try{s=this.doc.querySelector(a)}catch(l){throw new Error(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!s&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return s}),de(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,a=n.target||Je(o);this.updateTabbableNodes();let s=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(a,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?s=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:s=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>a===g);if(u<0&&((c==null?void 0:c.container)===a||Ht(a)&&!ur(a)&&!(c!=null&&c.nextTabbableNode(a,!1)))&&(u=l),u>=0){const g=u===0?this.state.tabbableGroups.length-1:u-1,f=this.state.tabbableGroups[g];s=an(a)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else ln(o)||(s=c==null?void 0:c.nextTabbableNode(a,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>a===g);if(u<0&&((c==null?void 0:c.container)===a||Ht(a)&&!ur(a)&&!(c!=null&&c.nextTabbableNode(a)))&&(u=l),u>=0){const g=u===this.state.tabbableGroups.length-1?0:u+1,f=this.state.tabbableGroups[g];s=an(a)>=0?f.firstTabbableNode:f.firstDomTabbableNode}else ln(o)||(s=c==null?void 0:c.nextTabbableNode(a))}}else s=this.getNodeForOption("fallbackFocus");return s}),this.trapStack=t.trapStack||EC;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(n){return ln(n)&&!n.shiftKey},isKeyBackward(n){return ln(n)&&n.shiftKey},...t};this.doc=r.document||nt(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||(r==null?void 0:r.includes(n))||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Ds(e),r=up(e),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=r.find(c=>ur(c)),a=r.slice().reverse().find(c=>ur(c)),s=!!t.find(c=>an(c)>0);function l(c,u=!0){const g=t.indexOf(c);return g<0?u?r.slice(r.indexOf(c)+1).find(f=>ur(f)):r.slice(0,r.indexOf(c)).reverse().find(f=>ur(f)):t[g+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:s,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:a,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Uc.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Gc(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(fe(this.doc,"focusin",this.handleFocus,!0),fe(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r==null||r()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},ln=e=>e.key==="Tab",cn=(e,...t)=>typeof e=="function"?e(...t):e,$C=e=>!e.isComposing&&e.key==="Escape",Gc=e=>setTimeout(e,0),kC=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function TC(e,t={}){let r;const n=ie(()=>{const o=typeof e=="function"?e():e;if(o){r=new PC(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:nt(o)});try{r.activate()}catch{}}});return function(){r==null||r.deactivate(),n()}}var Zi="data-scroll-lock";function RC(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function OC(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(Zi))return;o.setAttribute(Zi,"");const a=r.innerWidth-n.clientWidth,s=()=>e1(n,"--scrollbar-width",`${a}px`),l=RC(n),c=()=>Vo(o,{overflow:"hidden",[l]:`${a}px`}),u=()=>{const{scrollX:f,scrollY:p,visualViewport:h}=r,m=(h==null?void 0:h.offsetLeft)??0,b=(h==null?void 0:h.offsetTop)??0,y=Vo(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(b))}px`,left:`${-(f-Math.floor(m))}px`,right:"0",[l]:`${a}px`});return()=>{y==null||y(),r.scrollTo({left:f,top:p,behavior:"instant"})}},g=[s(),di()?u():c()];return()=>{g.forEach(f=>f==null?void 0:f()),o.removeAttribute(Zi)}}var tl=j("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),rr=tl.build(),pg=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},gg=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},Fa=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},hg=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},Ma=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},_a=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},mg=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},so=e=>e.getById(Fa(e)),IC=e=>e.getById(pg(e)),DC=e=>e.getById(gg(e)),AC=e=>e.getById(hg(e)),NC=e=>e.getById(Ma(e)),LC=e=>e.getById(_a(e)),zC=e=>e.getById(mg(e));function FC(e,t){const{state:r,send:n,context:o,prop:i,scope:a}=e,s=i("aria-label"),l=r.matches("open");return{open:l,setOpen(c){r.matches("open")!==c&&n({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...rr.trigger.attrs,dir:i("dir"),id:hg(a),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":Fa(a),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...rr.backdrop.attrs,dir:i("dir"),hidden:!l,id:gg(a),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...rr.positioner.attrs,dir:i("dir"),id:pg(a),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...rr.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:Fa(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":s||void 0,"aria-labelledby":s||!c.title?void 0:Ma(a),"aria-describedby":c.description?_a(a):void 0})},getTitleProps(){return t.element({...rr.title.attrs,dir:i("dir"),id:Ma(a)})},getDescriptionProps(){return t.element({...rr.description.attrs,dir:i("dir"),id:_a(a)})},getCloseTriggerProps(){return t.button({...rr.closeTrigger.attrs,dir:i("dir"),id:mg(a),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var MC={props({props:e,scope:t}){const r=e.role==="alertdialog";return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r?()=>zC(t):void 0,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return jn(()=>so(e),{defer:!0,pointerBlocking:r("modal"),exclude:[AC(e)],onInteractOutside(o){var i;(i=r("onInteractOutside"))==null||i(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onEscapeKeyDown(o){var i;(i=r("onEscapeKeyDown"))==null||i(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return OC(e.getDoc())},trapFocus({scope:e,prop:t}){return!t("trapFocus")||!t("modal")?void 0:TC(()=>so(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>{var o;return((o=t("finalFocusEl"))==null?void 0:o())??n}})},hideContentBelow({scope:e,prop:t}){return t("modal")?SC(()=>[so(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){ie(()=>{e.set("rendered",{title:!!NC(t),description:!!LC(t)})})},syncZIndex({scope:e}){ie(()=>{const t=so(e);if(!t)return;const r=Ts(t);[IC(e),DC(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",r.zIndex)})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};G()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const _C=e=>{const t=d.useId(),{getRootNode:r}=Ip(),{dir:n}=s1(),o={id:t,getRootNode:r,dir:n,...e},i=kp(MC,o);return FC(i,Y1)},VC=e=>{const[t,{children:r,...n}]=Pp(e),[o]=Yp(t),i=_C(n),a=Bs(bt({present:i.open},t));return k.jsx(sg,{value:i,children:k.jsx(qp,{value:o,children:k.jsx(Rp,{value:a,children:r})})})},BC=e=>{const[t,{value:r,children:n}]=Pp(e),[o]=Yp(t),i=Bs(bt({present:r.open},t));return k.jsx(sg,{value:r,children:k.jsx(qp,{value:o,children:k.jsx(Rp,{value:i,children:n})})})},vg=d.forwardRef((e,t)=>{const r=Xt(),n=bt(r.getTitleProps(),e);return k.jsx(Sr.h2,{...n,ref:t})});vg.displayName="DialogTitle";const bg=d.forwardRef((e,t)=>{const r=Xt(),n=Ws(),o=bt({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return k.jsx(Sr.button,{...o,ref:t})});bg.displayName="DialogTrigger";var yg=j("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");yg.build();G()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const xg=j("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");xg.build();const Sg=j("fieldset").parts("root","errorText","helperText","legend");Sg.build();var wg=j("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");wg.build();G()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","validate"]);G()(["file"]);var Cg=(e,t)=>{const r=[],n=(o,i,a)=>{i-o>0&&r.push({start:o,end:i,match:a})};if(e.length===0)n(0,t,!1);else{let o=0;for(const i of e)n(o,i.start,!1),n(i.start,i.end,!0),o=i.end;n(o,t,!1)}return r};function WC(e){const{text:t,query:r,ignoreCase:n}=e,o=n?t.toLowerCase():t,i=n&&typeof r=="string"?r.toLowerCase():r,a=typeof o=="string"?o.indexOf(i):-1;if(a===-1)return[{text:t,match:!1}];const s=a+i.length;return Cg([{start:a,end:s}],t.length).map(c=>({text:t.slice(c.start,c.end),match:!!c.match}))}var KC=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,t=>`\\${t}`),HC=(e,t)=>{const r=e.filter(Boolean).map(n=>KC(n));return new RegExp(`(${r.join("|")})`,t)},jC=(e,t=!0)=>`${e?"i":""}${t?"g":""}`;function UC(e){const{text:t,query:r,ignoreCase:n,matchAll:o}=e;if(r.length===0)return[{text:t,match:!1}];const i=jC(n,o),a=HC(Array.isArray(r)?r:[r],i),s=[...t.matchAll(a)].map(l=>({start:l.index||0,end:(l.index||0)+l[0].length}));return Cg(s,e.text.length).map(l=>({text:e.text.slice(l.start,l.end),match:!!l.match}))}var GC=e=>{if(e.matchAll==null&&(e.matchAll=Array.isArray(e.query)),!e.matchAll&&Array.isArray(e.query))throw new Error("matchAll must be true when using multiple queries");return e.matchAll?UC(e):WC(e)};const qC=e=>d.useMemo(()=>GC(e),[e]);var Eg=j("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Eg.build();var YC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},XC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},ZC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},Ji=e=>e.getById(YC(e)),JC=e=>e.getById(XC(e)),qc=e=>e.getById(ZC(e)),{not:lo,and:Yc}=xr();Yc("isOpenControlled",lo("isPointer")),lo("isPointer"),Yc("isOpenControlled",lo("isPointer")),lo("isPointer");G()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var vn=(e,t)=>({x:e,y:t});function QC(e){const{x:t,y:r,width:n,height:o}=e,i=t+n/2,a=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:i,midY:a,center:vn(i,a)}}function eE(e){const t=vn(e.minX,e.minY),r=vn(e.maxX,e.minY),n=vn(e.maxX,e.maxY),o=vn(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function tE(e,t){const r=QC(e),{top:n,right:o,left:i,bottom:a}=eE(r),[s]=t.split("-");return{top:[i,n,o,a],right:[n,o,a,i],bottom:[n,i,a,o],left:[o,n,i,a]}[s]}function rE(e,t){const{x:r,y:n}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i].x,l=e[i].y,c=e[a].x,u=e[a].y;l>n!=u>n&&r<(c-s)*(n-l)/(u-l)+s&&(o=!o)}return o}var Pg=j("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Pg.build();var $g=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},nE=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},kg=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},oE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},Va=(e,t)=>`${e.id}/${t}`,nr=e=>(e==null?void 0:e.dataset.value)??null,_t=e=>e.getById(kg(e)),Xc=e=>e.getById(oE(e)),co=e=>e.getById($g(e)),iE=(e,t)=>t?e.getById(Va(e,t)):null,Zc=e=>e.getById(nE(e)),Un=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(kg(e))}]:not([data-disabled])`;return _o(_t(e),r)},aE=e=>mp(Un(e)),sE=e=>vp(Un(e)),rl=(e,t)=>t?e.id===t||e.dataset.value===t:!1,lE=(e,t)=>{const r=Un(e),n=r.findIndex(o=>rl(o,t.value));return u1(r,n,{loop:t.loop??t.loopFocus})},cE=(e,t)=>{const r=Un(e),n=r.findIndex(o=>rl(o,t.value));return f1(r,n,{loop:t.loop??t.loopFocus})},uE=(e,t)=>{const r=Un(e),n=r.find(o=>rl(o,t.value));return Ms(r,{state:t.typeaheadState,key:t.key,activeId:(n==null?void 0:n.id)??null})},dE=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},fE="menu:select";function pE(e,t){if(!e)return;const r=Oe(e),n=new r.CustomEvent(fE,{detail:{value:t}});e.dispatchEvent(n)}var{not:Ge,and:Ir,or:gE}=xr();Ge("isSubmenu"),gE("isOpenAutoFocusEvent","isArrowDownEvent"),Ir(Ge("isTriggerItem"),"isOpenControlled"),Ge("isTriggerItem"),Ir("isSubmenu","isOpenControlled"),Ge("isPointerSuspended"),Ir(Ge("isPointerSuspended"),Ge("isTriggerItem")),Ir(Ge("isTriggerItemHighlighted"),Ge("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Ir(Ge("isTriggerItemHighlighted"),Ge("isHighlightedItemEditable"),"closeOnSelect"),Ir(Ge("isTriggerItemHighlighted"),Ge("isHighlightedItemEditable"));function Jc(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function hE(e,t){return e?rE(e,t):!1}function mE(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return Va(r,t);for(const o in e){const i=e[o],a=$g(i.scope);if(a===t)return a}return Va(r,t)}G()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);G()(["closeOnSelect","disabled","value","valueText"]);G()(["htmlFor"]);G()(["id"]);G()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let Qi=new Map,Ba=!1;try{Ba=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Yo=!1;try{Yo=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Tg={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Rg{format(t){let r="";if(!Ba&&this.options.signDisplay!=null?r=bE(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Yo){var n;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return r;let s=(n=Tg[o])===null||n===void 0?void 0:n[i];r+=s[a]||s.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ba&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Yo&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=vE(t,r),this.options=r}}function vE(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Yo){var n;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Tg[a])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Qi.has(o))return Qi.get(o);let i=new Intl.NumberFormat(e,t);return Qi.set(o,i),i}function bE(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}const yE=new RegExp("^.*\\(.*\\).*$"),xE=["latn","arab","hanidec","deva","beng"];class Og{parse(t){return ea(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return ea(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return ea(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Qc=new Map;function ea(e,t,r){let n=eu(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of xE)if(o!==n.options.numberingSystem){let i=eu(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function eu(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=Qc.get(r);return n||(n=new SE(e,t),Qc.set(r,n)),n}class SE{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=uo(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=r.indexOf("-");r=r.replace("-","");let s=r.indexOf(".");s===-1&&(s=r.length),r=r.replace(".",""),s-2===0?r=`0.${r}`:s-2===-1?r=`0.0${r}`:s-2===-2?r="0.00":r=`${r.slice(0,s-2)}.${r.slice(s-2)}`,a>-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){var o,i;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new Og(this.locale,a).parse(new Rg(this.locale,a).format(n))}return this.options.currencySign==="accounting"&&yE.test(t)&&(n=-1*n),n}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=uo(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=uo(t,"."," ")),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=uo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=CE(t,this.formatter,this.options,r);var n,o;this.options.style==="percent"&&(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const tu=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),wE=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function CE(e,t,r,n){var o,i,a,s;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),g=wE.map(T=>l.formatToParts(T));var f;let p=(f=(o=c.find(T=>T.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&f!==void 0?f:"-",h=(i=u.find(T=>T.type==="plusSign"))===null||i===void 0?void 0:i.value;!h&&((n==null?void 0:n.signDisplay)==="exceptZero"||(n==null?void 0:n.signDisplay)==="always")&&(h="+");let b=(a=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal"))===null||a===void 0?void 0:a.value,y=(s=c.find(T=>T.type==="group"))===null||s===void 0?void 0:s.value,x=c.filter(T=>!tu.has(T.type)).map(T=>ru(T.value)),S=g.flatMap(T=>T.filter(I=>!tu.has(I.type)).map(I=>ru(I.value))),$=[...new Set([...x,...S])].sort((T,I)=>I.length-T.length),w=$.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${$.join("|")}|[\\p{White_Space}]`,"gu"),C=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),D=new Map(C.map((T,I)=>[T,I])),v=new RegExp(`[${C.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:b,group:y,literals:w,numeral:v,index:T=>String(D.get(T))}}function uo(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function ru(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Ig=j("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Ig.build();var EE=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},PE=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},$E=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},Dg=e=>`number-input:${e.id}:cursor`,fo=e=>e.getById(EE(e)),kE=e=>e.getById(PE(e)),TE=e=>e.getById($E(e)),Ag=e=>e.getDoc().getElementById(Dg(e)),RE=(e,t)=>{let r=null;return t==="increment"&&(r=kE(e)),t==="decrement"&&(r=TE(e)),r},OE=(e,t)=>{if(!lp())return AE(e,t),()=>{var r;(r=Ag(e))==null||r.remove()}},IE=e=>{const t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}},DE=(e,t)=>{const{point:r,isRtl:n,event:o}=t,i=e.getWin(),a=ji(o.movementX,i.devicePixelRatio),s=ji(o.movementY,i.devicePixelRatio);let l=a>0?"increment":a<0?"decrement":null;n&&l==="increment"&&(l="decrement"),n&&l==="decrement"&&(l="increment");const c={x:r.x+a,y:r.y+s},u=i.innerWidth,g=ji(7.5,i.devicePixelRatio);return c.x=P1(c.x+g,u)-g,{hint:l,point:c}},AE=(e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=Dg(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:rx,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=`
17
+ <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
18
+ <g transform="translate(2 3)">
19
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
20
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
21
+ </g>
22
+ </svg>`,r.body.appendChild(n)};function NE(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:r,value:n}=e,o=n.substring(0,t),i=n.substring(r);return{start:t,end:r,value:n,beforeTxt:o,afterTxt:i}}catch{}}function LE(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:r}=e,{beforeTxt:n="",afterTxt:o="",start:i}=t;let a=r.length;if(r.endsWith(o))a=r.length-o.length;else if(r.startsWith(n))a=n.length;else if(i!=null){const s=n[i-1],l=r.indexOf(s,i-1);l!==-1&&(a=l+1)}e.setSelectionRange(a,a)}catch{}}}var zE=(e,t={})=>new Intl.NumberFormat(e,t),FE=(e,t={})=>new Og(e,t),ta=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?n("parser").parse(String(e)):parseFloat(e)},or=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},ME=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:_E,guards:VE,createMachine:BE}=_1(),{not:nu,and:ou}=VE;BE({props({props:e}){const t=ME(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){var a;const o=r(),i=ta(n,{computed:o,prop:e});(a=e("onValueChange"))==null||a({value:n,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(n){return n?`x:${n.x}, y:${n.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>ta(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>or(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>k1(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>$1(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!T1(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var r,n;return(n=(r=e("translations")).valueText)==null?void 0:n.call(r,t.get("value"))},formatter:Cc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>zE(e,t)),parser:Cc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>FE(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:ou("clampValueOnBlur",nu("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:nu("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:_E([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:ou("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const r=fo(t);return Os(r,{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const r=e.get("scrubberCursorPoint");return OE(t,r)},preventTextSelection({scope:e}){return IE(e)},trackButtonDisabled({context:e,scope:t,send:r}){const n=e.get("hint"),o=RE(t,n);return Ns(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const n=fo(e);if(!n||!e.isActiveElement(n)||!r("allowMouseWheel"))return;function o(i){i.preventDefault();const a=Math.sign(i.deltaY)*-1;a===1?t({type:"VALUE.INCREMENT"}):a===-1&&t({type:"VALUE.DECREMENT"})}return fe(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!lp())return Kx(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();function i(s){const l=r.get("scrubberCursorPoint"),c=n("isRtl"),u=DE(e,{point:l,isRtl:c,event:s});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function a(){t({type:"SCRUBBER.POINTER_UP"})}return Bo(fe(o,"mousemove",i,!1),fe(o,"mouseup",a,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=fo(e);e.isActiveElement(r)||ie(()=>r==null?void 0:r.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=D1(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=ze(o,r("min"),r("max"))),e.set("value",or(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=A1(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=ze(o,r("min"),r("max"))),e.set("value",or(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=ze(r("valueAsNumber"),t("min"),t("max"));e.set("value",or(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=ta(t.value,{computed:n,prop:r});r("allowOverflow")||(o=ze(o,r("min"),r("max"))),e.set("value",or(o,{computed:n,prop:r}))},setValue({context:e,event:t}){var n;const r=((n=t.target)==null?void 0:n.value)??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=or(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=or(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var r;(r=t("onFocusChange"))==null||r({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var r;(r=t("onFocusChange"))==null||r({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){var o;if(r.type==="INPUT.CHANGE")return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(o=t("onValueInvalid"))==null||o({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){const o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),i=fo(n),a=NE(i);ie(()=>{pi(i,o),LE(i,a)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const r=Ag(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});G()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Ng=j("pinInput").parts("root","label","input","control");Ng.build();G()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Lg=j("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Lg.build();G()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);const WE=e=>{var l;const{children:t,disabled:r}=e,[n,o]=d.useState((l=e.container)==null?void 0:l.current),i=d.useSyncExternalStore(HE,()=>!1,()=>!0),{getRootNode:a}=Ip();if(d.useEffect(()=>{o(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),i||r)return k.jsx(k.Fragment,{children:t});const s=n??KE(a);return k.jsx(k.Fragment,{children:d.Children.map(t,c=>ct.createPortal(c,s))})},KE=e=>{const t=e==null?void 0:e(),r=t.getRootNode();return qr(r)?r:nt(t).body},HE=()=>()=>{};var nl=j("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");nl.build();G()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var zg=j("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");zg.build();G()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var ol=j("radio-group").parts("root","label","item","itemText","itemControl","indicator");ol.build();G()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);G()(["value","disabled","invalid"]);var Fg=j("rating-group").parts("root","label","item","control");Fg.build();G()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);G()(["index"]);const Mg=ol.rename("segment-group");Mg.build();var _g=j("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");_g.build();var Vg=e=>new og(e);Vg.empty=()=>new og({items:[]});var jE=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},UE=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},GE=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},qE=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.item)==null?void 0:n.call(r,t))??`select:${e.id}:option:${t}`},YE=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},XE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},ra=e=>e.getById(YE(e)),un=e=>e.getById(jE(e)),po=e=>e.getById(UE(e)),ZE=e=>e.getById(GE(e)),iu=e=>e.getById(XE(e)),JE=(e,t)=>e.getById(qE(e,t)),{and:dn,not:ir,or:QE}=xr();QE("isTriggerArrowDownEvent","isTriggerEnterEvent"),dn(ir("multiple"),"hasSelectedItems"),ir("multiple"),dn(ir("multiple"),"hasSelectedItems"),ir("multiple"),ir("multiple"),ir("multiple"),ir("multiple"),dn("closeOnSelect","isOpenControlled"),dn("hasHighlightedItem","loop","isLastItemHighlighted"),dn("hasHighlightedItem","loop","isFirstItemHighlighted");G()(["closeOnSelect","collection","dir","disabled","deselectable","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","defaultOpen","open","composite","positioning","required","readOnly","scrollToIndexFn","value","defaultValue","defaultHighlightedValue"]);G()(["item","persistFocus"]);G()(["id"]);G()(["htmlFor"]);var Bg=j("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Bg.build();G()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);G()(["index","name"]);var Wg=j("switch").parts("root","label","control","thumb");Wg.build();G()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const eP=Symbol(),au=Object.getPrototypeOf,Wa=new WeakMap,tP=e=>e&&(Wa.has(e)?Wa.get(e):au(e)===Object.prototype||au(e)===Array.prototype),rP=e=>tP(e)&&e[eP]||null,su=(e,t=!0)=>{Wa.set(e,t)};function nP(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Kg(e,t){const r=nP();return r?(r[e]||(r[e]=t()),r[e]):t()}var Ao=Kg("__zag__refSet",()=>new WeakSet),oP=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,iP=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,aP=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",sP=e=>oP(e)||iP(e)||aP(e),Ka=e=>e!==null&&typeof e=="object",lu=e=>Ka(e)&&!Ao.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!sP(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Xo=()=>process.env.NODE_ENV!=="production",dr=Kg("__zag__proxyStateMap",()=>new WeakMap),lP=(e=Object.is,t=(s,l)=>new Proxy(s,l),r=new WeakMap,n=(s,l)=>{const c=r.get(s);if((c==null?void 0:c[0])===l)return c[1];const u=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s));return su(u,!0),r.set(s,[l,u]),Reflect.ownKeys(s).forEach(g=>{const f=Reflect.get(s,g);Ao.has(f)?(su(f,!1),u[g]=f):dr.has(f)?u[g]=dP(f):u[g]=f}),Object.freeze(u)},o=new WeakMap,i=[1,1],a=s=>{if(!Ka(s))throw new Error("object required");const l=o.get(s);if(l)return l;let c=i[0];const u=new Set,g=(D,v=++i[0])=>{c!==v&&(c=v,u.forEach(P=>P(D,v)))};let f=i[1];const p=(D=++i[1])=>(f!==D&&!u.size&&(f=D,m.forEach(([v])=>{const P=v[1](D);P>c&&(c=P)})),c),h=D=>(v,P)=>{const T=[...v];T[1]=[D,...T[1]],g(T,P)},m=new Map,b=(D,v)=>{if(Xo()&&m.has(D))throw new Error("prop listener already exists");if(u.size){const P=v[3](h(D));m.set(D,[v,P])}else m.set(D,[v])},y=D=>{var P;const v=m.get(D);v&&(m.delete(D),(P=v[1])==null||P.call(v))},x=D=>(u.add(D),u.size===1&&m.forEach(([P,T],I)=>{if(Xo()&&T)throw new Error("remove already exists");const L=P[3](h(I));m.set(I,[P,L])}),()=>{u.delete(D),u.size===0&&m.forEach(([P,T],I)=>{T&&(T(),m.set(I,[P]))})}),S=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s)),w=t(S,{deleteProperty(D,v){const P=Reflect.get(D,v);y(v);const T=Reflect.deleteProperty(D,v);return T&&g(["delete",[v],P]),T},set(D,v,P,T){var O;const I=Reflect.has(D,v),L=Reflect.get(D,v,T);if(I&&(e(L,P)||o.has(P)&&e(L,o.get(P))))return!0;y(v),Ka(P)&&(P=rP(P)||P);let E=P;if(!((O=Object.getOwnPropertyDescriptor(D,v))!=null&&O.set)){!dr.has(P)&&lu(P)&&(E=Hg(P));const A=!Ao.has(E)&&dr.get(E);A&&b(v,A)}return Reflect.set(D,v,E,T),g(["set",[v],P,L]),!0}});o.set(s,w);const C=[S,p,n,x];return dr.set(w,C),Reflect.ownKeys(s).forEach(D=>{const v=Object.getOwnPropertyDescriptor(s,D);v.get||v.set?Object.defineProperty(S,D,v):w[D]=s[D]}),w})=>[a,dr,Ao,e,t,lu,r,n,o,i],[cP]=lP();function Hg(e={}){return cP(e)}function uP(e,t,r){const n=dr.get(e);Xo()&&!n&&console.warn("Please use proxy object");let o;const i=[],a=n[3];let s=!1;const c=a(u=>{i.push(u),o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0))}))});return s=!0,()=>{s=!1,c()}}function dP(e){const t=dr.get(e);Xo()&&!t&&console.warn("Please use proxy object");const[r,n,o]=t;return o(r,n())}var jg=j("tooltip").parts("trigger","arrow","arrowTip","positioner","content");jg.build();var fP=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},pP=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},na=e=>e.getById(fP(e)),cu=e=>e.getById(pP(e)),ar=Hg({id:null}),{and:gP,not:uu}=xr();gP("noVisibleTooltip",uu("hasPointerMoveOpened")),uu("hasPointerMoveOpened");G()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const hP=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||r==="currentBg")return{invalid:!0,value:r};const o=t(`colors.${r}`),i=(l=t.raw(`opacity.${n}`))==null?void 0:l.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:r};const a=i?Number(i)*100+"%":`${n}%`,s=o??r;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}},se=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:n.value,[e]:`var(${o}, ${n.color})`}};function Ha(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Ha(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Ha(e[r]);return t}function ja(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!Ne(e[r])&&Ne(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Ne(t[r]))ja(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Ne(e[r][n])&&Ne(t[r][n])?ja(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function tn(e,...t){for(const r of t)ja(e,r);return e}const mP=e=>e,oe=e=>e,W=e=>e,vP=e=>e,Ug=e=>e,Gg=e=>e,qg=e=>e,Yg=e=>e,Xg=e=>e;function Zg(){const e=t=>t;return new Proxy(e,{get(){return e}})}const Y=Zg(),rn=Zg(),il=e=>e,Jg=(...e)=>tn({},...e.map(Ha)),bP=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function yP(e){return`${e}`.replace(bP,t=>`\\${t}`)}const xP=/[A-Z]/g;function SP(e){return e.replace(xP,t=>`-${t.toLowerCase()}`)}function Qg(e,t={}){const{fallback:r="",prefix:n=""}=t,o=SP(["-",n,yP(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const wP=e=>/^var\(--.+\)$/.test(e),xe=(e,t)=>t!=null?`${e}(${t})`:t,sr=e=>{if(wP(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},du=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":n,[e]:{outline:"none"}}}[t]??{}}}),CP=se("borderColor"),wt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),EP=mP({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Vr=Qg("bg-currentcolor"),fu=e=>e===Vr.ref||e==="currentBg",ae=e=>({...e("colors"),currentBg:Vr}),eh=il({conditions:EP,utilities:{background:{values:ae,shorthand:["bg"],transform(e,t){if(fu(t.raw))return{background:Vr.ref};const r=se("background")(e,t);return{...r,[Vr.var]:r==null?void 0:r.background}}},backgroundColor:{values:ae,shorthand:["bgColor"],transform(e,t){if(fu(t.raw))return{backgroundColor:Vr.ref};const r=se("backgroundColor")(e,t);return{...r,[Vr.var]:r==null?void 0:r.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:ae,transform:se("--gradient-from")},gradientTo:{values:ae,transform:se("--gradient-to")},gradientVia:{values:ae,transform(e,t){return{...se("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderInlineEnd:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:ae,transform:se("borderColor")},borderTopColor:{values:ae,transform:se("borderTopColor")},borderBlockStartColor:{values:ae,transform:se("borderBlockStartColor")},borderBottomColor:{values:ae,transform:se("borderBottomColor")},borderBlockEndColor:{values:ae,transform:se("borderBlockEndColor")},borderLeftColor:{values:ae,transform:se("borderLeftColor")},borderInlineStartColor:{values:ae,shorthand:["borderStartColor"],transform:se("borderInlineStartColor")},borderRightColor:{values:ae,transform:se("borderRightColor")},borderInlineEndColor:{values:ae,shorthand:["borderEndColor"],transform:se("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:ae,transform:se("color")},fill:{values:ae,transform:se("fill")},stroke:{values:ae,transform:se("stroke")},accentColor:{values:ae,transform:se("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:ae,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":CP(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ae,transform:se("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":xe("blur",e)})},brightness:{transform:e=>({"--brightness":xe("brightness",e)})},contrast:{transform:e=>({"--contrast":xe("contrast",e)})},grayscale:{transform:e=>({"--grayscale":xe("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":xe("hue-rotate",sr(e))})},invert:{transform:e=>({"--invert":xe("invert",e)})},saturate:{transform:e=>({"--saturate":xe("saturate",e)})},sepia:{transform:e=>({"--sepia":xe("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":xe("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":xe("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":xe("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":xe("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":xe("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":xe("hue-rotate",sr(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":xe("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":xe("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":xe("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":xe("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:ae,transform:se("outlineColor")},focusRing:du("&:is(:focus, [data-focus])"),focusVisibleRing:du("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ae,transform:se("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){return{[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:ae,transform:se("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:ae,transform:se("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ae,transform:se("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:ae,transform:se("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":sr(e)})},skewY:{transform:e=>({"--skew-y":sr(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:sr(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":sr(e)}}},rotateY:{transform(e){return{"--rotate-y":sr(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return wt("all");case"position":return wt("left, right, top, bottom, inset-inline, inset-block");case"colors":return wt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return wt("opacity");case"shadow":return wt("box-shadow");case"transform":return wt("transform");case"size":return wt("width, height");case"backgrounds":return wt("background, background-color, background-image, background-position");case"common":return wt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},srOnly:{values:{type:"boolean"},transform(e){return PP[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ae,transform:se("caretColor")},cursor:{values:"cursor"}}}),PP={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var $P="",kP=$P.split(","),TP="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect",RP=TP.split(",").concat(kP),OP=new Map(RP.map(e=>[e,!0]));function IP(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var DP=/&|@/,AP=IP(e=>OP.has(e)||e.startsWith("--")||DP.test(e));const NP=e=>e!=null;function At(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){if(Ne(a)||Array.isArray(a)){const l={};for(const[c,u]of Object.entries(a)){const g=(o==null?void 0:o(c,u))??c,f=[...s,g];if(n!=null&&n(a,f))return t(a,s);const p=i(u,f);NP(p)&&(l[g]=p)}return l}return t(a,s)}return i(e)}function $t(e,t){return Array.isArray(e)?e.map(r=>t(r)):Ne(e)?At(e,r=>t(r)):e!=null?t(e):e}function LP(e,t){const r={};return At(e,(n,o)=>{n&&(r[o.join(".")]=n.value)},{stop:t}),r}var oa,pu;function zP(){if(pu)return oa;pu=1,oa=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(f,p,h,m){typeof m>"u"&&(m=o()),s(f,"",0,[],void 0,0,m);var b;try{n.length===0?b=JSON.stringify(f,p,h):b=JSON.stringify(f,g(p),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var y=r.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return b}function a(f,p,h,m){var b=Object.getOwnPropertyDescriptor(m,h);b.get!==void 0?b.configurable?(Object.defineProperty(m,h,{value:f}),r.push([m,h,p,b])):n.push([p,h,f]):(m[h]=f,r.push([m,h,p]))}function s(f,p,h,m,b,y,x){y+=1;var S;if(typeof f=="object"&&f!==null){for(S=0;S<m.length;S++)if(m[S]===f){a(t,f,p,b);return}if(typeof x.depthLimit<"u"&&y>x.depthLimit){a(e,f,p,b);return}if(typeof x.edgesLimit<"u"&&h+1>x.edgesLimit){a(e,f,p,b);return}if(m.push(f),Array.isArray(f))for(S=0;S<f.length;S++)s(f[S],S,S,m,f,y,x);else{var $=Object.keys(f);for(S=0;S<$.length;S++){var w=$[S];s(f[w],w,S,m,f,y,x)}}m.pop()}}function l(f,p){return f<p?-1:f>p?1:0}function c(f,p,h,m){typeof m>"u"&&(m=o());var b=u(f,"",0,[],void 0,0,m)||f,y;try{n.length===0?y=JSON.stringify(b,p,h):y=JSON.stringify(b,g(p),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function u(f,p,h,m,b,y,x){y+=1;var S;if(typeof f=="object"&&f!==null){for(S=0;S<m.length;S++)if(m[S]===f){a(t,f,p,b);return}try{if(typeof f.toJSON=="function")return}catch{return}if(typeof x.depthLimit<"u"&&y>x.depthLimit){a(e,f,p,b);return}if(typeof x.edgesLimit<"u"&&h+1>x.edgesLimit){a(e,f,p,b);return}if(m.push(f),Array.isArray(f))for(S=0;S<f.length;S++)u(f[S],S,S,m,f,y,x);else{var $={},w=Object.keys(f).sort(l);for(S=0;S<w.length;S++){var C=w[S];u(f[C],C,S,m,f,y,x),$[C]=f[C]}if(typeof b<"u")r.push([b,p,f]),b[p]=$;else return $}m.pop()}}function g(f){return f=typeof f<"u"?f:function(p,h){return h},function(p,h){if(n.length>0)for(var m=0;m<n.length;m++){var b=n[m];if(b[1]===p&&b[0]===h){h=b[2],n.splice(m,1);break}}return f.call(this,p,h)}}return oa}var FP=zP();const MP=Yf(FP),at=e=>{const t=Object.create(null);function r(...n){const o=n.map(i=>MP(i)).join("|");return t[o]===void 0&&(t[o]=e(...n)),t[o]}return r},th=16,Zo="px",al="em",En="rem";function rh(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Zo}|${al}|${En}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n==null?void 0:n[1]}function nh(e=""){if(typeof e=="number")return`${e}px`;const t=rh(e);if(!t||t===Zo)return e;if(t===al||t===En)return`${parseFloat(e)*th}${Zo}`}function oh(e=""){const t=rh(e);if(!t||t===En)return e;if(t===al)return`${parseFloat(e)}${En}`;if(t===Zo)return`${parseFloat(e)/th}${En}`}const _P=e=>e.charAt(0).toUpperCase()+e.slice(1);function VP(e){const t=BP(e),r=Object.fromEntries(t);function n(f){return r[f]}function o(f){return Dr(n(f))}function i(){const f=Object.keys(r),p=WP(f),h=f.flatMap(m=>{const b=n(m),y=[`${m}Down`,Dr({max:No(b.min)})],x=[m,Dr({min:b.min})],S=[`${m}Only`,o(m)];return[x,S,y]}).filter(([,m])=>m!=="").concat(p.map(([m,b])=>{const y=n(m),x=n(b);return[`${m}To${_P(b)}`,Dr({min:y.min,max:No(x.min)})]}));return Object.fromEntries(h)}function a(){const f=i();return Object.fromEntries(Object.entries(f))}const s=a(),l=f=>s[f];function c(){return["base",...Object.keys(r)]}function u(f){return Dr({min:n(f).min})}function g(f){return Dr({max:No(n(f).min)})}return{values:Object.values(r),only:o,keys:c,conditions:s,getCondition:l,up:u,down:g}}function No(e){const t=parseFloat(nh(e)??"")-.04;return oh(`${t}px`)}function BP(e){return Object.entries(e).sort(([,r],[,n])=>parseInt(r,10)<parseInt(n,10)?-1:1).map(([r,n],o,i)=>{var s;let a=null;return o<=i.length-1&&(a=(s=i[o+1])==null?void 0:s[1]),a!=null&&(a=No(a)),[r,{name:r,min:oh(n),max:a}]})}function WP(e){const t=[];return e.forEach((r,n)=>{let o=n;o++;let i=e[o];for(;i;)t.push([r,i]),o++,i=e[o]}),t}function Dr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const KP=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t(r,n))),HP=e=>{const{breakpoints:t,conditions:r={}}=e,n=KP(r,(u,g)=>[`_${u}`,g]),o=Object.assign({},n,t.conditions);function i(){return Object.keys(o)}function a(u){return i().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function s(u){return u.filter(g=>g!=="base").sort((g,f)=>{const p=a(g),h=a(f);return p&&!h?1:!p&&h?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:s,has:a,resolve:c,breakpoints:t.keys(),expandAtRule:l}},ih=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
23
+ )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
24
+ )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),jP=ih("width"),UP=ih("height"),ah=e=>({isMin:yu(e.minMax,e.maxMin,e.min),isMax:yu(e.maxMin,e.minMax,e.max)}),{isMin:Ua,isMax:gu}=ah(jP),{isMin:Ga,isMax:hu}=ah(UP),mu=/print/i,vu=/^print$/i,GP=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,qP=/(\d)/,bn=Number.MAX_VALUE,YP={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function bu(e){const t=GP.exec(e)||(Ua(e)||Ga(e)?qP.exec(e):null);if(!t)return bn;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(YP[n]||1)}function yu(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function XP(e,t){const r=mu.test(e),n=vu.test(e),o=mu.test(t),i=vu.test(t);return r&&o?!n&&i?1:n&&!i?-1:e.localeCompare(t):r?1:o?-1:null}const ZP=at((e,t)=>{const r=XP(e,t);if(r!==null)return r;const n=Ua(e)||Ga(e),o=gu(e)||hu(e),i=Ua(t)||Ga(t),a=gu(t)||hu(t);if(n&&a)return-1;if(o&&i)return 1;const s=bu(e),l=bu(t);return s===bn&&l===bn?e.localeCompare(t):s===bn?1:l===bn?-1:s!==l?s>l?o?-1:1:o?1:-1:e.localeCompare(t)});function xu(e){return e.sort(([t],[r])=>ZP(t,r))}function sh(e){const t=[],r=[],n={};for(const[a,s]of Object.entries(e))a.startsWith("@media")?t.push([a,s]):a.startsWith("@container")?r.push([a,s]):Ne(s)?n[a]=sh(s):n[a]=s;const o=xu(t),i=xu(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const lh=/\s*!(important)?/i,JP=e=>mt(e)?lh.test(e):!1,QP=e=>mt(e)?e.replace(lh,"").trim():e;function ch(e){const{transform:t,conditions:r,normalize:n}=e,o=r$(e);return at(function(...a){const s=o(...a),l=n(s),c=Object.create(null);return At(l,(u,g)=>{const f=JP(u);if(u==null)return;const[p,...h]=r.sort(g).map(r.resolve);f&&(u=QP(u));let m=t(p,u)??Object.create(null);m=At(m,b=>mt(b)&&f?`${b} !important`:b,{getKey:b=>r.expandAtRule(b)}),e$(c,h.flat(),m)}),sh(c)})}function e$(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=Object.create(null)),n=n[o]);tn(n,r)}function t$(...e){return e.filter(t=>Ne(t)&&Object.keys(Jr(t)).length>0)}function r$(e){function t(r){const n=t$(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return at(function(...n){return tn({},...t(n))})}function uh(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}const n$=(...e)=>{const t=e.filter(Boolean);return Array.from(new Set(t))},dh=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function o$(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function i(s={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:g}=dh(s),f=ch({conditions:r,normalize:n,transform(x,S){var $;return($=c[x])==null?void 0:$[S]}}),p=(x={})=>{const S=n({...u,...Jr(x)});let $={...l};tn($,f(S));const w=a(g,S);return o.wrap("recipes",t($,w))},h=Object.keys(c),m=x=>{const S=uh(x,["recipe"]),[$,w]=Hr(S,h);return h.includes("colorPalette")||($.colorPalette=x.colorPalette||u.colorPalette),h.includes("orientation")&&(w.orientation=x.orientation),[$,w]},b=Object.fromEntries(Object.entries(c).map(([x,S])=>[x,Object.keys(S)]));return Object.assign(x=>t(p(x)),{className:s.className,__cva__:!0,variantMap:b,variantKeys:h,raw:p,config:s,splitVariantProps:m,merge(x){return i(i$(e)(this,x))}})}function a(s,l){let c={};return s.forEach(u=>{Object.entries(u).every(([f,p])=>f==="css"?!0:(Array.isArray(p)?p:[p]).some(m=>l[f]===m))&&(c=t(c,u.css))}),c}return i}function i$(e){const{css:t}=e;return function(n,o){const i=dh(o.config),a=n$(n.variantKeys,Object.keys(o.variants)),s=t(n.base,i.base),l=Object.fromEntries(a.map(f=>[f,t(n.config.variants[f],i.variants[f])])),c=tn(n.config.defaultVariants,i.defaultVariants),u=[...n.compoundVariants,...i.compoundVariants];return{className:et(n.className,o.className),base:s,variants:l,defaultVariants:c,compoundVariants:u}}}const a$={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Su={reset:0,base:1,tokens:2,recipes:3};function s$(e){const t=e.layers??a$,n=Object.values(t).sort((o,i)=>Su[o]-Su[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function l$(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(i){return At(i,r,{stop:a=>Array.isArray(a),getKey:n?o:void 0})}}function c$(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=Ne(t)?t:{};let o="";r&&n==="parent"?o=`${r} `:r&&n==="element"&&(o=`&${r}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},a={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(n==="element"){const s=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(a,s)}else o?a[o]=i:Object.assign(a,i);return a}function u$(e){const{conditions:t,isValidProperty:r}=e;return function(o){return At(o,i=>i,{getKey:(i,a)=>Ne(a)&&!t.has(i)&&!r(i)?d$(i).map(s=>"&"+s).join(", "):i})}}function d$(e){const t=[];let r=0,n="",o=!1;for(let i=0;i<e.length;i++){const a=e[i];if(a==="\\"&&!o){o=!0,n+=a;continue}if(o){o=!1,n+=a;continue}a==="("?r++:a===")"&&r--,a===","&&r===0?(t.push(n.trim()),n=""):n+=a}return n&&t.push(n.trim()),t}const f$=(e={})=>{const t=o=>{var i;return{base:((i=e.base)==null?void 0:i[o])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?p$(e.compoundVariants,o):[]}},n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[a,s]of Object.entries(i))n.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][a]=s[l]??{}});return Object.fromEntries(n)},p$=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function g$(e){const{cva:t}=e;return function(n={}){const o=Object.entries(f$(n)).map(([g,f])=>[g,t(f)]);function i(g){const f=o.map(([p,h])=>[p,h(g)]);return Object.fromEntries(f)}const a=n.variants??{},s=Object.keys(a);function l(g){var m;const f=uh(g,["recipe"]),[p,h]=Hr(f,s);return s.includes("colorPalette")||(p.colorPalette=g.colorPalette||((m=n.defaultVariants)==null?void 0:m.colorPalette)),s.includes("orientation")&&(h.orientation=g.orientation),[p,h]}const c=Object.fromEntries(Object.entries(a).map(([g,f])=>[g,Object.keys(f)]));let u={};return n.className&&(u=Object.fromEntries(n.slots.map(g=>[g,`${n.className}__${g}`]))),Object.assign(i,{variantMap:c,variantKeys:s,splitVariantProps:l,classNameMap:u})}}const h$=()=>e=>Array.from(new Set(e)),m$=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,v$=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},fh=e=>(e+"").replace(m$,v$),ph=(e,t)=>{let r="",n=0,o="char",i="",a="";const s=[];for(;n<e.length;){const l=e[n];if(l==="{"){const u=e.indexOf("}",n);if(u===-1)break;const g=e.slice(n+1,u),f=t(g);r+=f??g,n=u+1;continue}if(o==="token"&&l===","){e[n]===""&&n++,o="fallback",s.push(o);const u=t(i);u!=null&&u.endsWith(")")&&(r+=u.slice(0,-1)),i="",a="";continue}if(o==="fallback"&&a+l===", var("){const f=b$(e.slice(n+1))+n+1,p=e.slice(n+1,f);if(f===-1)break;r+=", var("+p+")",n=f+1,o=s.pop()??o,a="";continue}if(o==="token"||o==="fallback"){if(n++,l===")"){o=s.pop()??o??"char",a+=l;const u=i&&(t(i)??fh(i));if(a){if(a=a.slice(1).trim(),!a.startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){const f=ph(a,t);f&&(a=f.slice(0,-1))}else if(a){const f=t(a);f&&(a=f)}}const g=r.at(-1);a?g!=null&&g.trim()?r+=u.slice(0,-1)+(", "+a+")"):r+=a:r+=u||")",i="",a="",o="char";continue}o==="token"&&(i+=l),o==="fallback"&&(a+=l);continue}const c=e.indexOf("token(",n);if(c!==-1){const u=c+6;r+=e.slice(n,c),n=u,o="token",s.push(o);continue}r+=l,n++}return r},b$=e=>{let t=0;const r=["("];for(;t<e.length;){const n=e[t];if(n==="(")r.push(n);else if(n===")"&&(r.pop(),r.length===0))return t;t++}return t};function gh(e){const t={};return e.forEach((r,n)=>{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const hh=/({([^}]*)})/g,y$=/[{}]/g,x$=/\w+\.\w+/,mh=e=>{if(!mt(e))return[];const t=e.match(hh);return t?t.map(r=>r.replace(y$,"")).map(r=>r.trim()):[]},S$=e=>hh.test(e);function vh(e){var r,n,o;if(!((r=e.extensions)!=null&&r.references))return((o=(n=e.extensions)==null?void 0:n.cssVar)==null?void 0:o.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((i,a)=>{const s=t[a];if(s.extensions.conditions)return i;const l=vh(s);return i.replace(`{${a}}`,l)},e.value),delete e.extensions.references,e.value}function bh(e){return Ne(e)&&e.reference?e.reference:String(e)}const xi=(e,...t)=>t.map(bh).join(` ${e} `).replace(/calc/g,""),wu=(...e)=>`calc(${xi("+",...e)})`,Cu=(...e)=>`calc(${xi("-",...e)})`,qa=(...e)=>`calc(${xi("*",...e)})`,Eu=(...e)=>`calc(${xi("/",...e)})`,Pu=e=>{const t=bh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:qa(t,-1)},Lr=Object.assign(e=>({add:(...t)=>Lr(wu(e,...t)),subtract:(...t)=>Lr(Cu(e,...t)),multiply:(...t)=>Lr(qa(e,...t)),divide:(...t)=>Lr(Eu(e,...t)),negate:()=>Lr(Pu(e)),toString:()=>e.toString()}),{add:wu,subtract:Cu,multiply:qa,divide:Eu,negate:Pu}),w$={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:i}=e;r.filter(({extensions:s})=>s.category==="spacing").forEach(s=>{const l=s.path.slice(),c=n(l,t);if(mt(s.value)&&s.value==="0rem")return;const u=structuredClone(s);Object.assign(u.extensions,{negative:!0,prop:`-${s.extensions.prop}`,originalPath:l}),u.value=Lr.negate(c.ref);const g=u.path[u.path.length-1];g!=null&&(u.path[u.path.length-1]=`-${g}`),u.path&&(u.name=o(u.path)),i(u)})}},C$=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),E$={enforce:"post",transform(e){e.allTokens.filter(r=>C$.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:nh(r.value)})})}},P$={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,o=t.filter(({extensions:s})=>s.category==="colors"),i=new Map,a=new Map;o.forEach(s=>{const{colorPalette:l}=s.extensions;l&&(l.keys.forEach(c=>{i.set(n(c),c)}),l.roots.forEach(c=>{var f;const u=n(c),g=a.get(u)||[];if(g.push(s),a.set(u,g),s.extensions.default&&c.length===1){const p=(f=l.keys[0])==null?void 0:f.filter(Boolean);if(!p.length)return;const h=c.concat(p);i.set(n(h),[])}}))}),i.forEach(s=>{const l=["colors","colorPalette",...s].filter(Boolean),c=n(l),u=n(l.slice(1));r({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},$$={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},k$=[w$,P$,E$,$$],T$={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:i}=e.extensions,a=o?i:e.path;return{cssVar:n(a.filter(Boolean),r)}}},R$={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=mh(e.value);return o.length&&o.forEach(i=>{const a=n(i.split("."),r);e.value=e.value.replace(`{${a.ref}}`,a)}),e.value}},O$={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),r.length===0){const s=[...e.path];s.shift(),r=s}if(r.length===0)return{};const n=r.reduce((s,l,c,u)=>{const g=u.slice(0,c+1);return s.push(g),s},[]),o=r[0],i=t.formatTokenName(r),a=e.path.slice(e.path.indexOf(o)+1).reduce((s,l,c,u)=>(s.push(u.slice(c)),s),[]);return a.length===0&&a.push([""]),{colorPalette:{value:i,roots:n,keys:a}}}},I$=[T$,R$,O$],$u=e=>Ne(e)&&Object.prototype.hasOwnProperty.call(e,"value");function D$(e){return e?{breakpoints:$t(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,r])=>[`breakpoint-${t}`,{value:r}]))}:{breakpoints:{},sizes:{}}}function A$(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,i=N=>N.join("."),a=(N,M)=>Qg(N.join("-"),{prefix:M}),s=[],l=new Map,c=new Map,u=new Map,g=new Map,f=new Map,p=new Map,h=new Map,m=new Map,b=[];function y(N,M){s.push(N),l.set(N.name,N),M&&m.forEach(H=>{H.enforce===M&&B(H,N)})}const x=D$(o),S=Jr({...r,breakpoints:x.breakpoints,sizes:{...r.sizes,...x.sizes}});function $(){At(S,(N,M)=>{const H=M.includes("DEFAULT");M=ku(M);const ee=M[0],V=i(M),ge=mt(N)?{value:N}:N,Ae={value:ge.value,originalValue:ge.value,name:V,path:M,extensions:{condition:"base",originalPath:M,category:ee,prop:i(M.slice(1))}};H&&(Ae.extensions.default=!0),y(Ae)},{stop:$u}),At(n,(N,M)=>{const H=M.includes("DEFAULT");M=yh(ku(M));const ee=M[0],V=i(M),ge=mt(N.value)?{value:{base:N.value}}:N,Ae={value:ge.value.base||"",originalValue:ge.value.base||"",name:V,path:M,extensions:{originalPath:M,category:ee,conditions:ge.value,condition:"base",prop:i(M.slice(1))}};H&&(Ae.extensions.default=!0),y(Ae)},{stop:$u})}function w(N){return l.get(N)}function C(N){const{condition:M}=N.extensions;M&&(c.has(M)||c.set(M,new Set),c.get(M).add(N))}function D(N){const{category:M,prop:H}=N.extensions;M&&(h.has(M)||h.set(M,new Map),h.get(M).set(H,N))}function v(N){const{condition:M,negative:H,virtual:ee,cssVar:V}=N.extensions;H||ee||!M||!V||(u.has(M)||u.set(M,new Map),u.get(M).set(V.var,N.value))}function P(N){const{category:M,prop:H,cssVar:ee,negative:V}=N.extensions;if(!M)return;p.has(M)||p.set(M,new Map);const ge=V?N.extensions.conditions?N.originalValue:N.value:ee.ref;p.get(M).set(H,ge),f.set([M,H].join("."),ge)}function T(N){const{colorPalette:M,virtual:H,default:ee}=N.extensions;!M||H||M.roots.forEach(V=>{var Zl;const ge=i(V);g.has(ge)||g.set(ge,new Map);const Ae=L$([...N.path],[...V]),tr=i(Ae),Tr=w(tr);if(!Tr||!Tr.extensions.cssVar)return;const{var:N0}=Tr.extensions.cssVar;if(g.get(ge).set(N0,N.extensions.cssVar.ref),ee&&V.length===1){const L0=i(["colors","colorPalette"]),Jl=w(L0);if(!Jl)return;const z0=i(N.path),Ql=w(z0);if(!Ql)return;const ec=(Zl=M.keys[0])==null?void 0:Zl.filter(Boolean);if(!ec.length)return;const Fi=i(V.concat(ec));g.has(Fi)||g.set(Fi,new Map),g.get(Fi).set(Jl.extensions.cssVar.var,Ql.extensions.cssVar.ref)}})}let I={};function L(){s.forEach(N=>{C(N),D(N),v(N),P(N),T(N)}),I=gh(p)}const E=(N,M)=>{var Tr;if(!N||typeof N!="string")return{invalid:!0,value:N};const[H,ee]=N.split("/");if(!H||!ee)return{invalid:!0,value:H};const V=M(H),ge=(Tr=w(`opacity.${ee}`))==null?void 0:Tr.value;if(!ge&&isNaN(Number(ee)))return{invalid:!0,value:H};const Ae=ge?Number(ge)*100+"%":`${ee}%`,tr=V??H;return{invalid:!1,color:tr,value:`color-mix(in srgb, ${tr} ${Ae}, transparent)`}},O=at((N,M)=>f.get(N)??M),A=at(N=>I[N]||null),z=at(N=>ph(N,M=>{if(!M)return;if(M.includes("/")){const ee=E(M,V=>O(V));if(ee.invalid)throw new Error("Invalid color mix at "+M+": "+ee.value);return ee.value}const H=O(M);return H||(x$.test(M)?fh(M):M)})),F={prefix:t,allTokens:s,tokenMap:l,registerToken:y,getByName:w,formatTokenName:i,formatCssVar:a,flatMap:f,cssVarMap:u,categoryMap:h,colorPaletteMap:g,getVar:O,getCategoryValues:A,expandReferenceInValue:z};function R(...N){N.forEach(M=>{m.set(M.name,M)})}function _(...N){b.push(...N)}function B(N,M){if(M.extensions.references||$s(N.match)&&!N.match(M))return;const ee=(V=>N.transform(V,F))(M);switch(!0){case N.type==="extensions":Object.assign(M.extensions,ee);break;case N.type==="value":M.value=ee;break;default:M[N.type]=ee;break}}function Z(N){b.forEach(M=>{M.enforce===N&&M.transform(F)})}function ne(N){m.forEach(M=>{M.enforce===N&&s.forEach(H=>{B(M,H)})})}function _e(){s.forEach(N=>{const M=N$(N);!M||M.length===0||M.forEach(H=>{y(H)})})}function Ie(N){return mh(N).map(H=>w(H)).filter(Boolean)}function De(){s.forEach(N=>{if(!S$(N.value))return;const M=Ie(N.value);N.extensions.references=M.reduce((H,ee)=>(H[ee.name]=ee,H),{})})}function Ft(){s.forEach(N=>{vh(N)})}function er(){Z("pre"),ne("pre"),_e(),De(),Ft(),Z("post"),ne("post"),L()}return $(),R(...I$),_(...k$),er(),F}function ku(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function yh(e){return e.filter(t=>t!=="base")}function N$(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return At(t,(n,o)=>{const i=yh(o);if(!i.length)return;const a=structuredClone(e);a.value=n,a.extensions.condition=i.join(":"),r.push(a)}),r}function L$(e,t){const r=e.findIndex((n,o)=>t.every((i,a)=>e[o+a]===i));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}h$()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function z$(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,r]))}function F$(e){const t=z$(e.config),r=e.tokens,n=new Map,o=new Map;function i(v,P){t[v]=P,a(v,P)}const a=(v,P)=>{const T=m(P);T&&(o.set(v,T),g(v,P))},s=()=>{for(const[v,P]of Object.entries(t))P&&a(v,P)},l=()=>{for(const[v,P]of Object.entries(t)){const{shorthand:T}=P??{};if(!T)continue;(Array.isArray(T)?T:[T]).forEach(L=>n.set(L,v))}},c=()=>{const v=gh(r.colorPaletteMap);i("colorPalette",{values:Object.keys(v),transform:at(P=>v[P])})},u=new Map,g=(v,P)=>{if(!P)return;const T=m(P,L=>`type:Tokens["${L}"]`);if(typeof T=="object"&&T.type){u.set(v,new Set([`type:${T.type}`]));return}if(T){const L=new Set(Object.keys(T));u.set(v,L)}const I=u.get(v)??new Set;P.property&&u.set(v,I.add(`CssProperties["${P.property}"]`))},f=()=>{for(const[v,P]of Object.entries(t))P&&g(v,P)},p=(v,P)=>{const T=u.get(v)??new Set;u.set(v,new Set([...T,...P]))},h=()=>{const v=new Map;for(const[P,T]of u.entries()){if(T.size===0){v.set(P,["string"]);continue}const I=Array.from(T).map(L=>L.startsWith("CssProperties")?L:L.startsWith("type:")?L.replace("type:",""):JSON.stringify(L));v.set(P,I)}return v},m=(v,P)=>{const{values:T}=v,I=L=>{const E=P==null?void 0:P(L);return E?{[E]:E}:void 0};return mt(T)?(I==null?void 0:I(T))??r.getCategoryValues(T)??{}:Array.isArray(T)?T.reduce((L,E)=>(L[E]=E,L),{}):$s(T)?T(P?I:r.getCategoryValues):T},b=at((v,P)=>({[v]:v.startsWith("--")?r.getVar(P,P):P})),y=Object.assign(r.getVar,{raw:v=>r.getByName(v)}),x=at((v,P)=>{var O;const T=w(v);mt(P)&&!P.includes("_EMO_")&&(P=r.expandReferenceInValue(P));const I=t[T];if(!I)return b(T,P);const L=(O=o.get(T))==null?void 0:O[P];if(!I.transform)return b(v,L??P);const E=A=>hP(A,y);return I.transform(L??P,{raw:P,token:y,utils:{colorMix:E}})});function S(){l(),c(),s(),f()}S();const $=n.size>0,w=at(v=>n.get(v)??v);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:$,transform:x,shorthands:n,resolveShorthand:w,register:i,getTypes:h,addPropertyType:p}}function xh(...e){const t=Jg(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:a="chakra",preflight:s}=t,l=s$(t),c=A$({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:a}),u=VP(r.breakpoints??{}),g=HP({conditions:t.conditions??{},breakpoints:u}),f=F$({config:n,tokens:c});function p(){const{textStyles:R,layerStyles:_,animationStyles:B}=r,Z=Jr({textStyle:R,layerStyle:_,animationStyle:B});for(const[ne,_e]of Object.entries(Z)){const Ie=LP(_e??{},De=>Ne(De)&&"value"in De);f.register(ne,{values:Object.keys(Ie),transform(De){return S(Ie[De])}})}}p(),f.addPropertyType("animationName",Object.keys(r.keyframes??{}));const h=new Set(["css",...f.keys(),...g.keys()]),m=at(R=>h.has(R)||AP(R)),b=R=>Array.isArray(R)?R.reduce((_,B,Z)=>{const ne=g.breakpoints[Z];return B!=null&&(_[ne]=B),_},{}):R,y=l$({utility:f,normalize:b}),x=u$({conditions:g,isValidProperty:m}),S=ch({transform:f.transform,conditions:g,normalize:y}),$=o$({css:S,conditions:g,normalize:y,layers:l}),w=g$({cva:$});function C(){const R={};for(const[_,B]of c.cssVarMap.entries()){const Z=Object.fromEntries(B);if(Object.keys(Z).length===0)continue;const ne=_==="base"?i:g.resolve(_),_e=S(x({[ne]:Z}));tn(R,_e)}return l.wrap("tokens",R)}function D(){const R=Object.fromEntries(Object.entries(r.keyframes??{}).map(([B,Z])=>[`@keyframes ${B}`,Z])),_=Object.assign({},R,S(x(o)));return l.wrap("base",_)}function v(R){return Hr(R,m)}function P(){const R=c$({preflight:s});return l.wrap("reset",R)}const T=M$(c),I=(R,_)=>{var B;return((B=T.get(R))==null?void 0:B.value)||_};I.var=(R,_)=>{var B;return((B=T.get(R))==null?void 0:B.variable)||_};function L(R,_){var B;return((B=r.recipes)==null?void 0:B[R])??_}function E(R,_){var B;return((B=r.slotRecipes)==null?void 0:B[R])??_}function O(R){return Object.hasOwnProperty.call(r.recipes??{},R)}function A(R){return Object.hasOwnProperty.call(r.slotRecipes??{},R)}function z(R){return O(R)||A(R)}const F=[P(),D(),C()];return{$$chakra:!0,_config:t,_global:F,breakpoints:u,tokens:c,conditions:g,utility:f,token:I,properties:h,layers:l,isValidProperty:m,splitCssProps:v,normalizeValue:b,getTokenCss:C,getGlobalCss:D,getPreflightCss:P,css:S,cva:$,sva:w,getRecipe:L,getSlotRecipe:E,hasRecipe:z,isRecipe:O,isSlotRecipe:A}}function M$(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:i}=r.extensions,a=i||o?n.ref:r.value;t.set(r.name,{value:a,variable:n.ref})}),t}const _$={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},ia="var(--chakra-empty,/*!*/ /*!*/)",V$=Ug({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":ia,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,ia])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,ia])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.muted/80"}}),B$=Xg({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),W$=Yg({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),sl=oe({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),K$=oe({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),we=oe({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:H$,defaultVariants:j$}=sl,U$=oe({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:H$,defaultVariants:j$}),Sh=oe({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),G$=oe({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),q$=oe({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),Y$=oe({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),me=oe({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),X$=oe({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:me.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),Z$=oe({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),J$=oe({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),Q$=oe({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Ce=oe({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}}},defaultVariants:{variant:"solid",size:"md"}}),ek=oe({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),tk=oe({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),rk=oe({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),nk=oe({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),ok=oe({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),ik={badge:sl,button:K$,code:U$,container:G$,heading:q$,input:me,inputAddon:X$,kbd:Z$,link:J$,mark:Q$,separator:ek,skeleton:tk,skipNavLink:rk,spinner:nk,textarea:ok,icon:Y$,checkmark:we,radiomark:Ce,colorSwatch:Sh},ak=rn.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}}}}),sk=rn.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),lk=rn.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),ck=Xp.extendWith("itemBody"),uk=j("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),dk=j("alert").parts("title","description","root","indicator","content"),fk=j("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),pk=j("blockquote").parts("root","icon","content","caption"),gk=j("card").parts("root","header","body","footer","title","description"),hk=j("checkbox-card",["root","control","label","description","addon","indicator","content"]),mk=j("data-list").parts("root","item","itemLabel","itemValue"),vk=tl.extendWith("header","body","footer","backdrop"),bk=tl.extendWith("header","body","footer","backdrop"),yk=yg.extendWith("textarea"),xk=j("empty-state",["root","content","indicator","title","description"]),Sk=xg.extendWith("requiredIndicator"),wk=Sg.extendWith("content"),Ck=wg.extendWith("itemContent","dropzoneContent","fileText"),Ek=j("list").parts("root","item","indicator"),Pk=Pg.extendWith("itemCommand"),$k=j("select").parts("root","field","indicator"),kk=Lg.extendWith("header","body","footer"),wh=ol.extendWith("itemAddon","itemIndicator"),Tk=wh.extendWith("itemContent","itemDescription"),Rk=Fg.extendWith("itemIndicator"),Ok=_g.extendWith("indicatorGroup"),Ik=Bg.extendWith("markerIndicator"),Dk=j("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Ak=j("status").parts("root","indicator"),Nk=j("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Lk=Wg.extendWith("indicator"),zk=j("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),Fk=j("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),Mk=j("tabs").parts("root","trigger","list","content","contentGroup","indicator"),_k=j("tag").parts("root","label","closeTrigger","startElement","endElement"),Vk=j("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Bk=uC.extendWith("channelText"),Wk=W({className:"chakra-accordion",slots:ck.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),Kk=W({className:"chakra-action-bar",slots:uk.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),Hk=W({slots:dk.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),jk=W({slots:Qp.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),Uk=W({className:"chakra-blockquote",slots:pk.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),Gk=W({className:"chakra-breadcrumb",slots:fk.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),qk=W({className:"chakra-card",slots:gk.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}});var $d,kd,Td,Rd,Od,Id,Dd,Ad,Nd,Ld,zd,Fd,Md,_d;const Yk=W({slots:cC.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:we.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(kd=($d=we.variants)==null?void 0:$d.size)==null?void 0:kd.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Rd=(Td=we.variants)==null?void 0:Td.size)==null?void 0:Rd.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(Id=(Od=we.variants)==null?void 0:Od.size)==null?void 0:Id.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Ad=(Dd=we.variants)==null?void 0:Dd.size)==null?void 0:Ad.lg}},variant:{outline:{control:(Ld=(Nd=we.variants)==null?void 0:Nd.variant)==null?void 0:Ld.outline},solid:{control:(Fd=(zd=we.variants)==null?void 0:zd.variant)==null?void 0:Fd.solid},subtle:{control:(_d=(Md=we.variants)==null?void 0:Md.variant)==null?void 0:_d.subtle}}},defaultVariants:{variant:"solid",size:"md"}});var Vd,Bd,Wd,Kd,Hd,jd,Ud;const Xk=W({slots:hk.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:we.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(Vd=we.variants)==null?void 0:Vd.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Bd=we.variants)==null?void 0:Bd.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Wd=we.variants)==null?void 0:Wd.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(Kd=we.variants)==null?void 0:Kd.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Hd=we.variants)==null?void 0:Hd.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(jd=we.variants)==null?void 0:jd.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(Ud=we.variants)==null?void 0:Ud.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),Zk=W({slots:Op.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}});var Gd,qd,Yd,Xd,Zd,Jd,Qd,ef,tf,rf,nf,of,af,sf,lf,cf,uf,df;const Jk=W({className:"colorPicker",slots:Bk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...Sh.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...me.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(qd=(Gd=me.variants)==null?void 0:Gd.size)==null?void 0:qd["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(Xd=(Yd=me.variants)==null?void 0:Yd.size)==null?void 0:Xd.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(Jd=(Zd=me.variants)==null?void 0:Zd.size)==null?void 0:Jd.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(ef=(Qd=me.variants)==null?void 0:Qd.size)==null?void 0:ef.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(rf=(tf=me.variants)==null?void 0:tf.size)==null?void 0:rf.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(of=(nf=me.variants)==null?void 0:nf.size)==null?void 0:of.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(sf=(af=me.variants)==null?void 0:af.size)==null?void 0:sf["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(cf=(lf=me.variants)==null?void 0:lf.variant)==null?void 0:cf.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(df=(uf=me.variants)==null?void 0:uf.variant)==null?void 0:df.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Qk=W({slots:mk.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),e4=W({slots:vk.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"calc(var(--z-index) - 1) ",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),t4=W({slots:bk.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"calc(var(--z-index) - 1) ",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},top:{positioner:{alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),Tu=Gg({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),r4=W({slots:yk.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Tu,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"normal",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Tu,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),n4=W({slots:xk.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),o4=W({className:"chakra-field",slots:Sk.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),i4=W({className:"fieldset",slots:wk.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),a4=W({className:"chakra-file-upload",slots:Ck.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),s4=W({className:"chakra-hover-card",slots:Eg.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),l4=W({className:"chakra-list",slots:Ek.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),c4=W({className:"chakra-menu",slots:Pk.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),Lo=W({className:"chakra-select",slots:Ok.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",right:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}});var ff,pf;const u4=W({className:"chakra-native-select",slots:$k.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(ff=Lo.variants)==null?void 0:ff.variant.outline.trigger},subtle:{field:(pf=Lo.variants)==null?void 0:pf.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{field:{textStyle:"xs",ps:"2",pe:"6",height:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{field:{textStyle:"sm",ps:"2.5",pe:"8",height:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{field:{textStyle:"sm",ps:"3",pe:"8",height:"10"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{field:{textStyle:"md",ps:"4",pe:"8",height:"11"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{field:{textStyle:"md",ps:"4.5",pe:"10",height:"12"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Lo.defaultVariants});function Ya(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}const Ru=Gg({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),d4=W({className:"chakra-number-input",slots:Ig.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...me.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Ru,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Ru,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:me.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:me.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:me.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:me.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ya(me.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Ou,defaultVariants:f4}=me,p4=W({className:"chakra-pin-input",slots:Ng.keys(),base:{input:{...me.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ya(Ou.size,(e,t)=>[e,{input:t}]),variant:Ya(Ou.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:f4}),g4=W({className:"chakra-popover",slots:kk.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),h4=W({slots:nl.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),m4=W({className:"chakra-progress-circle",slots:nl.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),v4=W({slots:zg.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}});var gf,hf,mf,vf,bf,yf,xf;const b4=W({className:"chakra-radio-card",slots:Tk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Ce.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(gf=Ce.variants)==null?void 0:gf.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(hf=Ce.variants)==null?void 0:hf.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(mf=Ce.variants)==null?void 0:mf.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(vf=Ce.variants)==null?void 0:vf.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(bf=Ce.variants)==null?void 0:bf.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(yf=Ce.variants)==null?void 0:yf.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(xf=Ce.variants)==null?void 0:xf.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}});var Sf,wf,Cf,Ef,Pf,$f,kf,Tf,Rf,Of,If,Df,Af,Nf;const y4=W({className:"chakra-radio-group",slots:wh.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Ce.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(wf=(Sf=Ce.variants)==null?void 0:Sf.variant)==null?void 0:wf.outline},subtle:{itemControl:(Ef=(Cf=Ce.variants)==null?void 0:Cf.variant)==null?void 0:Ef.subtle},solid:{itemControl:($f=(Pf=Ce.variants)==null?void 0:Pf.variant)==null?void 0:$f.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(Tf=(kf=Ce.variants)==null?void 0:kf.size)==null?void 0:Tf.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(Of=(Rf=Ce.variants)==null?void 0:Rf.size)==null?void 0:Of.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(Df=(If=Ce.variants)==null?void 0:If.size)==null?void 0:Df.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(Nf=(Af=Ce.variants)==null?void 0:Af.size)==null?void 0:Nf.lg}}},defaultVariants:{size:"md",variant:"solid"}}),x4=W({className:"chakra-rating-group",slots:Rk.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative",_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"inset(0 50% 0 0)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),S4=W({className:"chakra-segment-group",slots:Mg.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted"},item:{display:"flex",alignItems:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",insetInlineStart:0,insetBlock:"1.5",bg:"border",width:"1px",transition:"opacity 0.2s"},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{root:{height:"6"},item:{textStyle:"xs",px:"3",gap:"1"}},sm:{root:{height:"8"},item:{textStyle:"sm",px:"4",gap:"2"}},md:{root:{height:"10"},item:{textStyle:"sm",px:"4",gap:"2"}},lg:{root:{height:"10"},item:{textStyle:"md",px:"5",gap:"3"}}}},defaultVariants:{size:"md"}}),w4=W({className:"chakra-slider",slots:Ik.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),C4=W({className:"chakra-stat",slots:Dk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),E4=W({className:"chakra-status",slots:Ak.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),P4=W({className:"chakra-steps",slots:Nk.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),$4=W({slots:Lk.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),k4=W({className:"chakra-table",slots:zk.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),T4=W({slots:Mk.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}});var Lf;const qe=(Lf=sl.variants)==null?void 0:Lf.variant,R4=W({slots:_k.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:qe==null?void 0:qe.subtle},solid:{root:qe==null?void 0:qe.solid},outline:{root:qe==null?void 0:qe.outline},surface:{root:qe==null?void 0:qe.surface}}},defaultVariants:{size:"md",variant:"surface"}}),O4=W({slots:Vk.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),I4=W({slots:Fk.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),D4=W({slots:jg.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),A4={accordion:Wk,actionBar:Kk,alert:Hk,avatar:jk,blockquote:Uk,breadcrumb:Gk,card:qk,checkbox:Yk,checkboxCard:Xk,collapsible:Zk,dataList:Qk,dialog:e4,drawer:t4,editable:r4,emptyState:n4,field:o4,fieldset:i4,fileUpload:a4,hoverCard:s4,list:l4,menu:c4,nativeSelect:u4,numberInput:d4,pinInput:p4,popover:g4,progress:h4,progressCircle:m4,radioCard:b4,radioGroup:y4,ratingGroup:x4,segmentGroup:S4,select:Lo,slider:w4,stat:C4,steps:P4,switch:$4,table:k4,tabs:T4,tag:R4,toast:I4,tooltip:D4,status:E4,timeline:O4,colorPicker:Jk,qrCode:v4},N4=qg({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),L4=Y.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),z4=Y.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),F4=Y.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),M4=Y.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),_4=Y.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),V4=Y.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),B4=Y.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),W4=Y.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),K4=Y.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),H4=Y.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),Iu='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',j4=Y.fonts({heading:{value:`Inter, ${Iu}`},body:{value:`Inter, ${Iu}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),U4=vP({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),G4=Y.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),q4=Y.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),Y4=Y.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Ch=Y.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),X4=Y.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),Z4=Y.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),J4=Y.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),Q4=Y.sizes({...X4,...Ch,...J4,...Z4}),e5=Y.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),t5=il({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:V$,theme:{breakpoints:_$,keyframes:U4,tokens:{aspectRatios:z4,animations:L4,blurs:F4,borders:M4,colors:_4,durations:B4,easings:W4,fonts:j4,fontSizes:K4,fontWeights:H4,letterSpacings:G4,lineHeights:q4,radii:Y4,spacing:Ch,sizes:Q4,zIndex:e5,cursor:V4},semanticTokens:{colors:ak,shadows:lk,radii:sk},recipes:ik,slotRecipes:A4,textStyles:N4,layerStyles:B$,animationStyles:W$}}),r5=Jg(eh,t5),Eh=xh(r5);function Si(e){const{key:t,recipe:r}=e,n=Bn();return d.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const n5=e=>e.charAt(0).toUpperCase()+e.slice(1),xt=e=>{const{key:t,recipe:r}=e,n=n5(t||r.className||"Component"),[o,i]=wn({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[a,s]=wn({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=wn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function u(h){const{unstyled:m,...b}=h,y=Si({key:t,recipe:b.recipe||r}),[x,S]=d.useMemo(()=>y.splitVariantProps(b),[b,y]);return{styles:d.useMemo(()=>m?K0:y(x),[m,x,y]),classNames:y.classNameMap,props:S}}function g(h,m={}){const{defaultProps:b}=m,y=x=>{const S=c(),$=d.useMemo(()=>kn(b,S,x),[S,x]),{styles:w,classNames:C,props:D}=u($);return k.jsx(o,{value:w,children:k.jsx(a,{value:C,children:k.jsx(h,{...D})})})};return y.displayName=h.displayName||h.name,y}return{StylesProvider:o,ClassNamesProvider:a,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(h,m,b)=>{const{defaultProps:y,...x}=b??{},S=Re(h,{},x),$=d.forwardRef((w,C)=>{var O;const D=c(),v=d.useMemo(()=>kn(y??{},D,w),[D,w]),{styles:P,props:T,classNames:I}=u(v),L=I[m],E=k.jsx(o,{value:P,children:k.jsx(a,{value:I,children:k.jsx(S,{ref:C,...T,css:[P[m],v.css],className:et(v.className,L)})})});return((O=b==null?void 0:b.wrapElement)==null?void 0:O.call(b,E,v))??E});return $.displayName=h.displayName||h.name,$},withContext:(h,m,b)=>{const y=Re(h,{},b),x=d.forwardRef((S,$)=>{const w=i(),C=s(),D=C==null?void 0:C[m];return k.jsx(y,{...S,css:[m?w[m]:void 0,S.css],ref:$,className:et(S.className,D)})});return x.displayName=h.displayName||h.name,x},withRootProvider:g,useStyles:i,useClassNames:s}},o5="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",i5=`(?:${o5.split(",").join("|")})`,a5=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${i5}$`),s5=e=>typeof e=="string"&&a5.test(e),go=e=>s5(e)||Fy(e)?e:`token(spacing.${e}, ${e})`,l5=d.forwardRef(function(t,r){const{inline:n,inlineStart:o,inlineEnd:i,block:a,blockStart:s,blockEnd:l,...c}=t;return k.jsx(Re.div,{ref:r,...c,css:{"--bleed-inline-start":$t(n??o,go),"--bleed-inline-end":$t(n??i,go),"--bleed-block-start":$t(a??s,go),"--bleed-block-end":$t(a??l,go),marginInlineStart:"calc(var(--bleed-inline-start, 0) * -1)",marginInlineEnd:"calc(var(--bleed-inline-end, 0) * -1)",marginBlockStart:"calc(var(--bleed-block-start, 0) * -1)",marginBlockEnd:"calc(var(--bleed-block-end, 0) * -1)"}})}),Ph=Re("div");Ph.displayName="Box";const{withContext:c5}=rt({key:"code"}),u5=c5("code");function d5(e){const{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":$t(r,o=>n[o])}}function f5(e){return d.Children.toArray(e).filter(t=>d.isValidElement(t))}const p5=d.forwardRef(function(t,r){const{direction:n="column",align:o,justify:i,gap:a="0.5rem",wrap:s,children:l,separator:c,className:u,...g}=t,f=d.useMemo(()=>d5({gap:a,direction:n}),[a,n]),p=d.useMemo(()=>c?f5(l).map((h,m,b)=>{const y=typeof h.key<"u"?h.key:m,x=d.cloneElement(c,{css:[f,c.props.css]});return k.jsxs(d.Fragment,{children:[h,m===b.length-1?null:x]},y)}):l,[l,c,f]);return k.jsx(Re.div,{ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:s,gap:c?void 0:a,className:et("chakra-stack",u),...g,children:p})}),{withRootProvider:$h,withContext:St}=xt({key:"dialog"});$h(BC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const g5=$h(VC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),h5=St(bg,"trigger",{forwardAsChild:!0}),m5=St(fg,"positioner",{forwardAsChild:!0}),v5=St(ug,"content",{forwardAsChild:!0}),b5=St(dg,"description",{forwardAsChild:!0}),y5=St(vg,"title",{forwardAsChild:!0}),x5=St(cg,"closeTrigger",{forwardAsChild:!0}),S5=d.forwardRef(function(t,r){const n=Xt();return k.jsx(Re.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),kh=St(lg,"backdrop",{forwardAsChild:!0}),w5=St("div","body"),C5=St("div","footer"),E5=St("div","header");function P5(e){const{each:t,fallback:r,children:n}=e;return(t==null?void 0:t.length)===0?r||null:t==null?void 0:t.map(n)}const Pn=d.forwardRef(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:c,inline:u,...g}=t;return k.jsx(Re.div,{ref:r,...g,css:{display:u?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c,...t.css}})});function Du(e){return $t(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}const Th=d.forwardRef(function(t,r){const{area:n,colSpan:o,colStart:i,colEnd:a,rowEnd:s,rowSpan:l,rowStart:c,...u}=t,g=Jr({gridArea:n,gridColumn:Du(o),gridRow:Du(l),gridColumnStart:i,gridColumnEnd:a,gridRowStart:c,gridRowEnd:s});return k.jsx(Re.div,{ref:r,css:g,...u})}),$5=d.forwardRef(function(t,r){const{columns:n,minChildWidth:o,...i}=t,a=Bn(),s=o?T5(o,a):R5(n);return k.jsx(rp,{ref:r,templateColumns:s,...i})});function k5(e){return typeof e=="number"?`${e}px`:e}function T5(e,t){return $t(e,r=>{const n=t.tokens.getVar(`sizes.${r}`,k5(r));return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function R5(e){return $t(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const{withContext:O5}=rt({key:"mark"}),I5=O5("mark");function D5(e){const{children:t,query:r,ignoreCase:n,matchAll:o,styles:i}=e;if(typeof t!="string")throw new Error("The children prop of Highlight must be a string");const a=qC({query:r,text:t,matchAll:o,ignoreCase:n});return k.jsx(P5,{each:a,children:(s,l)=>s.match?k.jsx(I5,{css:i,children:s.text},l):k.jsx(d.Fragment,{children:s.text},l)})}const A5=d.forwardRef(function(t,r){const{align:n,fit:o="cover",...i}=t;return k.jsx(Re.img,{ref:r,objectFit:o,objectPosition:n,className:et("chakra-image",t.className),...i})}),{withContext:N5}=rt({key:"kbd"}),L5=N5("kbd"),{withProvider:z5,withContext:Rh,PropsProvider:F5}=xt({key:"list"}),Oh=z5("ul","root",{defaultProps:{role:"list"}}),M5=F5,Ih=Rh("li","item"),_5=Rh("span","indicator"),V5=Object.freeze(Object.defineProperty({__proto__:null,Indicator:_5,Item:Ih,Root:Oh,RootPropsProvider:M5},Symbol.toStringTag,{value:"Module"})),{StylesProvider:B5,ClassNamesProvider:W5,useRecipeResult:K5,withContext:Lt,PropsProvider:H5}=xt({key:"table"}),Dh=d.forwardRef(function({native:t,...r},n){const{styles:o,props:i,classNames:a}=K5(r),s=d.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return k.jsx(W5,{value:a,children:k.jsx(B5,{value:o,children:k.jsx(Re.table,{ref:n,...i,css:[s,r.css],className:et(a==null?void 0:a.root,r.className)})})})}),j5=H5,Ah=Lt("tr","row"),U5=Re("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}}),Nh=Lt("thead","header"),Lh=Lt("tfoot","footer"),zh=Lt("th","columnHeader"),Fh=Lt("td","cell"),G5=Lt("caption","caption",{defaultProps:{captionSide:"bottom"}}),Mh=Lt("tbody","body"),_h=Lt("colgroup"),Vh=Lt("col"),q5=Object.freeze(Object.defineProperty({__proto__:null,Body:Mh,Caption:G5,Cell:Fh,Column:Vh,ColumnGroup:_h,ColumnHeader:zh,Footer:Lh,Header:Nh,Root:Dh,RootPropsProvider:j5,Row:Ah,ScrollArea:U5},Symbol.toStringTag,{value:"Module"})),{withContext:Y5}=rt({key:"heading"}),X5=Y5("h2"),{withContext:Z5}=rt({key:"text"}),J5=Z5("p"),Q5=Re("em",{base:{fontStyle:"italic"}}),Bh=oe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:e3}=rt({recipe:Bh}),t3=e3("figure");function r3(e,t){return e.split("")[0].toUpperCase()+t.split("")[0].toUpperCase()}const Wh=d.forwardRef((e,t)=>{const{firstName:r,lastName:n,src:o,alt:i,...a}=e,s=`${r} ${n}`,l={"aria-label":`${s} avatar`,ref:t,...a};return k.jsx(t3,{...l,children:o?k.jsx(A5,{src:o,alt:i||s}):r3(r,n)})});Wh.displayName="Avatar";const kt=d.forwardRef((e,t)=>k.jsx(Ph,{ref:t,...e}));kt.displayName="Box";const X=typeof document<"u"?d.useLayoutEffect:()=>{};function Pe(e){const t=d.useRef(null);return X(()=>{t.current=e},[e]),d.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function n3(e){let[t,r]=d.useState(e),n=d.useRef(null),o=Pe(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}t===a.value?o():r(a.value)});X(()=>{n.current&&o()});let i=Pe(a=>{n.current=a(t),o()});return[t,i]}const Jo={prefix:String(Math.round(Math.random()*1e10)),current:0},Kh=d.createContext(Jo),o3=d.createContext(!1);let i3=!!(typeof window<"u"&&window.document&&window.document.createElement),aa=new WeakMap;function a3(e=!1){let t=d.useContext(Kh),r=d.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=aa.get(i);a==null?aa.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,aa.delete(i))}r.current=++t.current}return r.current}function s3(e){let t=d.useContext(Kh);t===Jo&&!i3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=a3(!!e),n=t===Jo&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function l3(e){let t=d.useId(),[r]=d.useState(Zt()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Jo.prefix}`;return e||`${n}-${t}`}const c3=typeof d.useId=="function"?l3:s3;function u3(){return!1}function d3(){return!0}function f3(e){return()=>{}}function Zt(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(f3,u3,d3):d.useContext(o3)}let p3=!!(typeof window<"u"&&window.document&&window.document.createElement),Vt=new Map;function $e(e){let[t,r]=d.useState(e),n=d.useRef(null),o=c3(t),i=d.useCallback(a=>{n.current=a},[]);return p3&&(Vt.has(o)&&!Vt.get(o).includes(i)?Vt.set(o,[...Vt.get(o),i]):Vt.set(o,[i])),X(()=>{let a=o;return()=>{Vt.delete(a)}},[o]),d.useEffect(()=>{let a=n.current;a&&(n.current=null,r(a))}),o}function g3(e,t){if(e===t)return e;let r=Vt.get(e);if(r)return r.forEach(o=>o(t)),t;let n=Vt.get(t);return n?(n.forEach(o=>o(e)),e):t}function An(e=[]){let t=$e(),[r,n]=n3(t),o=d.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return X(o,[t,o,...e]),r}function qt(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const ue=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Qe=e=>e&&"window"in e&&e.window===e?e:ue(e).defaultView||window;function Hh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Hh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function h3(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Hh(e))&&(n&&(n+=" "),n+=t);return n}function K(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=qt(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=h3(i,a):o==="id"&&i&&a?t.id=g3(i,a):t[o]=a!==void 0?a:i}}return t}function jh(...e){return e.length===1&&e[0]?e[0]:t=>{for(let r of e)typeof r=="function"?r(t):r!=null&&(r.current=t)}}const m3=new Set(["id"]),v3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),b3=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),y3=/^(data-.*)$/;function ye(e,t={}){let{labelable:r,isLink:n,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(m3.has(a)||r&&v3.has(a)||n&&b3.has(a)||o!=null&&o.has(a)||y3.test(a))&&(i[a]=e[a]);return i}function Tt(e){if(x3())e.focus({preventScroll:!0});else{let t=S3(e);e.focus(),w3(t)}}let ho=null;function x3(){if(ho==null){ho=!1;try{document.createElement("div").focus({get preventScroll(){return ho=!0,!0}})}catch{}}return ho}function S3(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function w3(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function wi(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ll(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function zt(e){let t=null;return()=>(t==null&&(t=e()),t)}const Yt=zt(function(){return ll(/^Mac/i)}),C3=zt(function(){return ll(/^iPhone/i)}),Uh=zt(function(){return ll(/^iPad/i)||Yt()&&navigator.maxTouchPoints>1}),Ci=zt(function(){return C3()||Uh()}),E3=zt(function(){return Yt()||Ci()}),cl=zt(function(){return wi(/AppleWebKit/i)&&!Gh()}),Gh=zt(function(){return wi(/Chrome/i)}),ul=zt(function(){return wi(/Android/i)}),P3=zt(function(){return wi(/Firefox/i)}),$3=d.createContext({isNative:!0,open:R3,useHref:e=>e});function Ei(){return d.useContext($3)}function k3(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function mr(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;P3()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Yt()?i=!0:a=!0);let c=cl()&&Yt()&&!Uh()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});mr.isOpening=r,Tt(e),e.dispatchEvent(c),mr.isOpening=!1}mr.isOpening=!1;function T3(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function R3(e,t){T3(e,r=>mr(r,t))}function qh(e){let t=Ei();var r;const n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let zr=new Map,Xa=new Set;function Au(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=zr.get(n.target);o||(o=new Set,zr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=zr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),zr.delete(n.target)),zr.size===0)){for(let i of Xa)i();Xa.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Au():document.addEventListener("DOMContentLoaded",Au));function Yh(e){requestAnimationFrame(()=>{zr.size===0?e():Xa.add(e)})}function Xh(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),r=d.useCallback((o,i,a,s)=>{var l;let c=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,c,s),e.current.delete(a)},[]),n=d.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return d.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Zh(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=$e(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Ue(e){const t=d.useRef(null);return d.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function Nu(e,t){const r=d.useRef(!0),n=d.useRef(null);X(()=>(r.current=!0,()=>{r.current=!1}),[]),X(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function O3(){return typeof window.ResizeObserver<"u"}function Za(e){const{ref:t,box:r,onResize:n}=e;d.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(O3()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function dl(e,t){X(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Nn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Jh(e,t){let r=e;for(Nn(r,t)&&(r=r.parentElement);r&&!Nn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function I3(e,t){const r=[];for(;e&&e!==document.documentElement;)Nn(e,t)&&r.push(e),e=e.parentElement;return r}let D3=0;const sa=new Map;function A3(e){let[t,r]=d.useState();return X(()=>{if(!e)return;let n=sa.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${D3++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},sa.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),sa.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function yn(e,t,r,n){let o=Pe(r),i=r==null;d.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i,o])}function Qh(e,t){let r=Lu(e,t,"left"),n=Lu(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:g,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),h=a+parseInt(c,10),m=s+parseInt(l,10),b=h+e.clientWidth,y=m+e.clientHeight,x=parseInt(u,10)||0,S=parseInt(f,10)||0,$=parseInt(g,10)||0,w=parseInt(p,10)||0;r<=a+w?a=r-parseInt(c,10)-w:r+o>b-$&&(a+=r+o-b+$),n<=m+x?s=n-parseInt(l,10)-x:n+i>y-S&&(s+=n+i-y+S),e.scrollLeft=a,e.scrollTop=s}function Lu(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function zu(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=I3(e);for(let c of l)Qh(c,e)}else{var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:g}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-g)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Ja(e){return e.mozInputSource===0&&e.isTrusted?!0:ul()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function N3(e){return!ul()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fl(e,t,r){let n=d.useRef(t),o=Pe(()=>{r&&r(n.current)});d.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}const L3="react-aria-clear-focus",z3="react-aria-focus",em="react-aria-update-activedescendant";function Fr(e){return Yt()?e.metaKey:e.ctrlKey}function tm(e,t=!0){let[r,n]=d.useState(!0),o=r&&t;return X(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),nm(e,o,d.useCallback(()=>n(!1),[])),o}function rm(e,t){let[r,n]=d.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return nm(e,o,d.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function nm(e,t,r){X(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||ct.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}function Jt(e,t,r){let[n,o]=d.useState(e||t),i=d.useRef(e!==void 0),a=e!==void 0;d.useEffect(()=>{let c=i.current;c!==a&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:n,l=d.useCallback((c,...u)=>{let g=(f,...p)=>{r&&(Object.is(s,f)||r(f,...p)),a||(s=f)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let m=c(a?s:p,...h);return g(m,...u),a?p:m})):(a||o(c),g(c,...u))},[a,s,r]);return[s,l]}function Qo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}let Br="default",Qa="",zo=new WeakMap;function Fu(e){if(Ci()){if(Br==="default"){const t=ue(e);Qa=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Br="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(zo.set(e,e.style.userSelect),e.style.userSelect="none")}function mo(e){if(Ci()){if(Br!=="disabled")return;Br="restoring",setTimeout(()=>{Yh(()=>{if(Br==="restoring"){const t=ue(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Qa||""),Qa="",Br="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&zo.has(e)){let t=zo.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),zo.delete(e)}}const Ln=d.createContext({register:()=>{}});Ln.displayName="PressResponderContext";function F3(e,t){return t.get?t.get.call(e):t.value}function om(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function M3(e,t){var r=om(e,t,"get");return F3(e,r)}function _3(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Mu(e,t,r){var n=om(e,t,"set");return _3(e,n,r),r}function V3(e){let t=d.useContext(Ln);if(t){let{register:r,...n}=t;e=K(n,e),r()}return dl(t,e.ref),e}var vo=new WeakMap;class bo{continuePropagation(){Mu(this,vo,!1)}get shouldStopPropagation(){return M3(this,vo)}constructor(t,r,n,o){Gw(this,vo,{writable:!0,value:void 0}),Mu(this,vo,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let l,c=0,u,g=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,g=n.clientY),s&&(u!=null&&g!=null?(l=u-s.left,c=g-s.top):(l=s.width/2,c=s.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const _u=Symbol("linkClicked");function vr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:g,...f}=V3(e),[p,h]=d.useState(!1),m=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=Xh(),x=Pe((v,P)=>{let T=m.current;if(a||T.didFirePressStart)return!1;let I=!0;if(T.isTriggeringEvent=!0,n){let L=new bo("pressstart",P,v);n(L),I=L.shouldStopPropagation}return r&&r(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,h(!0),I}),S=Pe((v,P,T=!0)=>{let I=m.current;if(!I.didFirePressStart)return!1;I.ignoreClickAfterPress=!0,I.didFirePressStart=!1,I.isTriggeringEvent=!0;let L=!0;if(o){let E=new bo("pressend",P,v);o(E),L=E.shouldStopPropagation}if(r&&r(!1),h(!1),t&&T&&!a){let E=new bo("press",P,v);t(E),L&&(L=E.shouldStopPropagation)}return I.isTriggeringEvent=!1,L}),$=Pe((v,P)=>{let T=m.current;if(a)return!1;if(i){T.isTriggeringEvent=!0;let I=new bo("pressup",P,v);return i(I),T.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),w=Pe(v=>{let P=m.current;P.isPressed&&P.target&&(P.isOverTarget&&P.pointerType!=null&&S(Ct(P.target,v),P.pointerType,!1),P.isPressed=!1,P.isOverTarget=!1,P.activePointerId=null,P.pointerType=null,y(),u||mo(P.target))}),C=Pe(v=>{c&&w(v)}),D=d.useMemo(()=>{let v=m.current,P={onKeyDown(I){if(la(I.nativeEvent,I.currentTarget)&&I.currentTarget.contains(I.target)){var L;Bu(I.target,I.key)&&I.preventDefault();let E=!0;if(!v.isPressed&&!I.repeat){v.target=I.currentTarget,v.isPressed=!0,E=x(I,"keyboard");let O=I.currentTarget,A=z=>{la(z,O)&&!z.repeat&&O.contains(z.target)&&v.target&&$(Ct(v.target,z),"keyboard")};b(ue(I.currentTarget),"keyup",qt(A,T),!0)}E&&I.stopPropagation(),I.metaKey&&Yt()&&((L=v.metaKeyEvents)===null||L===void 0||L.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(I){if(!(I&&!I.currentTarget.contains(I.target))&&I&&I.button===0&&!v.isTriggeringEvent&&!mr.isOpening){let L=!0;if(a&&I.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Ja(I.nativeEvent))){!a&&!l&&Tt(I.currentTarget);let E=x(I,"virtual"),O=$(I,"virtual"),A=S(I,"virtual");L=E&&O&&A}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,L&&I.stopPropagation()}}},T=I=>{var L;if(v.isPressed&&v.target&&la(I,v.target)){var E;Bu(I.target,I.key)&&I.preventDefault();let A=I.target;S(Ct(v.target,I),"keyboard",v.target.contains(A)),y(),I.key!=="Enter"&&pl(v.target)&&v.target.contains(A)&&!I[_u]&&(I[_u]=!0,mr(v.target,I,!1)),v.isPressed=!1,(E=v.metaKeyEvents)===null||E===void 0||E.delete(I.key)}else if(I.key==="Meta"&&(!((L=v.metaKeyEvents)===null||L===void 0)&&L.size)){var O;let A=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let z of A.values())(O=v.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",z))}};if(typeof PointerEvent<"u"){P.onPointerDown=O=>{if(O.button!==0||!O.currentTarget.contains(O.target))return;if(N3(O.nativeEvent)){v.pointerType="virtual";return}ua(O.currentTarget)&&O.preventDefault(),v.pointerType=O.pointerType;let A=!0;if(!v.isPressed){v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=O.pointerId,v.target=O.currentTarget,!a&&!l&&Tt(O.currentTarget),u||Fu(v.target),A=x(O,v.pointerType);let z=O.target;"releasePointerCapture"in z&&z.releasePointerCapture(O.pointerId),b(ue(O.currentTarget),"pointerup",I,!1),b(ue(O.currentTarget),"pointercancel",E,!1)}A&&O.stopPropagation()},P.onMouseDown=O=>{O.currentTarget.contains(O.target)&&O.button===0&&(ua(O.currentTarget)&&O.preventDefault(),O.stopPropagation())},P.onPointerUp=O=>{!O.currentTarget.contains(O.target)||v.pointerType==="virtual"||O.button===0&&$(O,v.pointerType||O.pointerType)},P.onPointerEnter=O=>{O.pointerId===v.activePointerId&&v.target&&!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,x(Ct(v.target,O),v.pointerType))},P.onPointerLeave=O=>{O.pointerId===v.activePointerId&&v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,S(Ct(v.target,O),v.pointerType,!1),C(O))};let I=O=>{O.pointerId===v.activePointerId&&v.isPressed&&O.button===0&&v.target&&(v.target.contains(O.target)&&v.pointerType!=null?S(Ct(v.target,O),v.pointerType):v.isOverTarget&&v.pointerType!=null&&S(Ct(v.target,O),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),u||mo(v.target),"ontouchend"in v.target&&O.pointerType!=="mouse"&&b(v.target,"touchend",L,{once:!0}))},L=O=>{im(O.currentTarget)&&O.preventDefault()},E=O=>{w(O)};P.onDragStart=O=>{O.currentTarget.contains(O.target)&&w(O)}}else{P.onMouseDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(ua(E.currentTarget)&&E.preventDefault(),v.ignoreEmulatedMouseEvents){E.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=E.currentTarget,v.pointerType=Ja(E.nativeEvent)?"virtual":"mouse",!a&&!l&&Tt(E.currentTarget),x(E,v.pointerType)&&E.stopPropagation(),b(ue(E.currentTarget),"mouseup",I,!1)},P.onMouseEnter=E=>{if(!E.currentTarget.contains(E.target))return;let O=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,O=x(E,v.pointerType)),O&&E.stopPropagation()},P.onMouseLeave=E=>{if(!E.currentTarget.contains(E.target))return;let O=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,O=S(E,v.pointerType,!1),C(E)),O&&E.stopPropagation()},P.onMouseUp=E=>{E.currentTarget.contains(E.target)&&!v.ignoreEmulatedMouseEvents&&E.button===0&&$(E,v.pointerType||"mouse")};let I=E=>{if(E.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&ca(E,v.target)&&v.pointerType!=null?S(Ct(v.target,E),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&S(Ct(v.target,E),v.pointerType,!1),v.isOverTarget=!1}};P.onTouchStart=E=>{if(!E.currentTarget.contains(E.target))return;let O=B3(E.nativeEvent);if(!O)return;v.activePointerId=O.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=E.currentTarget,v.pointerType="touch",!a&&!l&&Tt(E.currentTarget),u||Fu(v.target),x(Mt(v.target,E),v.pointerType)&&E.stopPropagation(),b(Qe(E.currentTarget),"scroll",L,!0)},P.onTouchMove=E=>{if(!E.currentTarget.contains(E.target))return;if(!v.isPressed){E.stopPropagation();return}let O=Vu(E.nativeEvent,v.activePointerId),A=!0;O&&ca(O,E.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,A=x(Mt(v.target,E),v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,A=S(Mt(v.target,E),v.pointerType,!1),C(Mt(v.target,E))),A&&E.stopPropagation()},P.onTouchEnd=E=>{if(!E.currentTarget.contains(E.target))return;if(!v.isPressed){E.stopPropagation();return}let O=Vu(E.nativeEvent,v.activePointerId),A=!0;O&&ca(O,E.currentTarget)&&v.pointerType!=null?($(Mt(v.target,E),v.pointerType),A=S(Mt(v.target,E),v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(A=S(Mt(v.target,E),v.pointerType,!1)),A&&E.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!u&&mo(v.target),y()},P.onTouchCancel=E=>{E.currentTarget.contains(E.target)&&(E.stopPropagation(),v.isPressed&&w(Mt(v.target,E)))};let L=E=>{v.isPressed&&E.target.contains(v.target)&&w({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};P.onDragStart=E=>{E.currentTarget.contains(E.target)&&w(E)}}return P},[b,a,l,y,u,w,C,S,x,$]);return d.useEffect(()=>()=>{var v;u||mo((v=m.current.target)!==null&&v!==void 0?v:void 0)},[u]),{isPressed:s||p,pressProps:K(f,D)}}function pl(e){return e.tagName==="A"&&e.hasAttribute("href")}function la(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Qe(o).HTMLInputElement&&!am(o,r)||o instanceof Qe(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&pl(o))&&r!=="Enter")}function B3(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Vu(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Mt(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Ct(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function W3(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function K3(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ca(e,t){let r=t.getBoundingClientRect(),n=W3(e);return K3(r,n)}function ua(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function im(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!pl(e)}function Bu(e,t){return e instanceof HTMLInputElement?!am(e,t):im(e)}const H3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function am(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":H3.has(e.type)}const j3=d.forwardRef(({children:e,...t},r)=>{let n=d.useRef(!1),o=d.useContext(Ln);r=Ue(r||(o==null?void 0:o.ref));let i=K(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return dl(o,r),d.useEffect(()=>{n.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),d.createElement(Ln.Provider,{value:i},e)});function U3({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(Ln.Provider,{value:t},e)}class G3{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function sm(e){let t=d.useRef({isFocused:!1,observer:null});X(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Pe(n=>{e==null||e(n)});return d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{t.current.isFocused=!1,o.disabled&&r(new G3("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function lm(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=d.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),a=sm(i),s=d.useCallback(l=>{const c=ue(l.target);l.target===l.currentTarget&&c.activeElement===l.target&&(r&&r(l),o&&o(!0),a(l))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?i:void 0}}}let Cr=null,es=new Set,$n=new Map,br=!1,ts=!1;const q3={Tab:!0,Escape:!0};function Pi(e,t){for(let r of es)r(e,t)}function Y3(e){return!(e.metaKey||!Yt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ei(e){br=!0,Y3(e)&&(Cr="keyboard",Pi("keyboard",e))}function Ze(e){Cr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(br=!0,Pi("pointer",e))}function cm(e){Ja(e)&&(br=!0,Cr="virtual")}function um(e){e.target===window||e.target===document||(!br&&!ts&&(Cr="virtual",Pi("virtual",e)),br=!1,ts=!1)}function dm(){br=!1,ts=!0}function rs(e){if(typeof window>"u"||$n.get(Qe(e)))return;const t=Qe(e),r=ue(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){br=!0,n.apply(this,arguments)},r.addEventListener("keydown",ei,!0),r.addEventListener("keyup",ei,!0),r.addEventListener("click",cm,!0),t.addEventListener("focus",um,!0),t.addEventListener("blur",dm,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Ze,!0),r.addEventListener("pointermove",Ze,!0),r.addEventListener("pointerup",Ze,!0)):(r.addEventListener("mousedown",Ze,!0),r.addEventListener("mousemove",Ze,!0),r.addEventListener("mouseup",Ze,!0)),t.addEventListener("beforeunload",()=>{fm(e)},{once:!0}),$n.set(t,{focus:n})}const fm=(e,t)=>{const r=Qe(e),n=ue(e);t&&n.removeEventListener("DOMContentLoaded",t),$n.has(r)&&(r.HTMLElement.prototype.focus=$n.get(r).focus,n.removeEventListener("keydown",ei,!0),n.removeEventListener("keyup",ei,!0),n.removeEventListener("click",cm,!0),r.removeEventListener("focus",um,!0),r.removeEventListener("blur",dm,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Ze,!0),n.removeEventListener("pointermove",Ze,!0),n.removeEventListener("pointerup",Ze,!0)):(n.removeEventListener("mousedown",Ze,!0),n.removeEventListener("mousemove",Ze,!0),n.removeEventListener("mouseup",Ze,!0)),$n.delete(r))};function X3(e){const t=ue(e);let r;return t.readyState!=="loading"?rs(e):(r=()=>{rs(e)},t.addEventListener("DOMContentLoaded",r)),()=>fm(e,r)}typeof document<"u"&&X3();function zn(){return Cr!=="pointer"}function Fn(){return Cr}function pm(e){Cr=e,Pi(e,null)}const Z3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function J3(e,t,r){var n;const o=typeof window<"u"?Qe(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Qe(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Qe(r==null?void 0:r.target).HTMLElement:HTMLElement,s=typeof window<"u"?Qe(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||(r==null?void 0:r.target)instanceof o&&!Z3.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof i||(r==null?void 0:r.target)instanceof a&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof s&&!q3[r.key])}function Q3(e,t,r){rs(),d.useEffect(()=>{let n=(o,i)=>{J3(!!(r!=null&&r.isTextInput),o,i)&&e(zn())};return es.add(n),()=>{es.delete(n)}},t)}function $i(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),a=d.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(c),o&&o(!1))},[r,o,i]),s=sm(a),l=d.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[n,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let ti=!1,da=0;function ns(){ti=!0,setTimeout(()=>{ti=!1},50)}function Wu(e){e.pointerType==="touch"&&ns()}function e2(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Wu):document.addEventListener("touchend",ns),da++,()=>{da--,!(da>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Wu):document.removeEventListener("touchend",ns))}}function Er(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(e2,[]);let{hoverProps:l,triggerHoverEnd:c}=d.useMemo(()=>{let u=(p,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let m=p.currentTarget;s.target=m,t&&t({type:"hoverstart",target:m,pointerType:h}),r&&r(!0),a(!0)},g=(p,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let m=p.currentTarget;n&&n({type:"hoverend",target:m,pointerType:h}),r&&r(!1),a(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{ti&&p.pointerType==="mouse"||u(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&g(p,p.pointerType)}):(f.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!ti&&u(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&g(p,"mouse")}),{hoverProps:f,triggerHoverEnd:g}},[t,r,n,o,s]);return d.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function t2(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(l=>{r&&yo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Pe(l=>{r&&r(l)});d.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=ue(c);if(typeof PointerEvent<"u"){let g=f=>{l.isPointerDown&&yo(f,t)&&s(f),l.isPointerDown=!1};return u.addEventListener("pointerdown",a,!0),u.addEventListener("pointerup",g,!0),()=>{u.removeEventListener("pointerdown",a,!0),u.removeEventListener("pointerup",g,!0)}}else{let g=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&yo(p,t)&&s(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&yo(p,t)&&s(p),l.isPointerDown=!1};return u.addEventListener("mousedown",a,!0),u.addEventListener("mouseup",g,!0),u.addEventListener("touchstart",a,!0),u.addEventListener("touchend",f,!0),()=>{u.removeEventListener("mousedown",a,!0),u.removeEventListener("mouseup",g,!0),u.removeEventListener("touchstart",a,!0),u.removeEventListener("touchend",f,!0)}}},[t,n,a,s])}function yo(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Ku(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function r2(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ku(e.onKeyDown),onKeyUp:Ku(e.onKeyUp)}}}const n2=500;function gm(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=n2,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=Xh(),{pressProps:u}=vr({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),s.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),s.current=void 0},i),f.pointerType==="touch")){let p=h=>{h.preventDefault()};l(f.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){s.current&&clearTimeout(s.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),g=A3(o&&!t?a:void 0);return{longPressProps:K(u,g)}}function yr(e){const t=ue(e);if(Fn()==="virtual"){let r=t.activeElement;Yh(()=>{t.activeElement===r&&e.isConnected&&Tt(e)})}else Tt(e)}function o2(e){const t=Qe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function i2(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function hm(e,t){return e.nodeName!=="#comment"&&o2(e)&&i2(e,t)&&(!e.parentElement||hm(e.parentElement,e))}const Hu=d.createContext(null),os="react-aria-focus-scope-restore";let ce=null;function mm(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(Hu)||{},c=d.useMemo(()=>new as({scopeRef:s}),[s]);X(()=>{let f=l||ve.root;if(ve.getTreeNode(f.scopeRef)&&ce&&!ri(ce,f.scopeRef)){let p=ve.getTreeNode(ce);p&&(f=p)}f.addChild(c),ve.addNode(c)},[c,l]),X(()=>{let f=ve.getTreeNode(s);f&&(f.contain=!!r)},[r]),X(()=>{var f;let p=(f=i.current)===null||f===void 0?void 0:f.nextSibling,h=[],m=b=>b.stopPropagation();for(;p&&p!==a.current;)h.push(p),p.addEventListener(os,m),p=p.nextSibling;return s.current=h,()=>{for(let b of h)b.removeEventListener(os,m)}},[t]),f2(s,n,r),c2(s,r),p2(s,n,r),d2(s,o),d.useEffect(()=>{const f=ue(s.current?s.current[0]:void 0).activeElement;let p=null;if(tt(f,s.current)){for(let h of ve.traverse())h.scopeRef&&tt(f,h.scopeRef.current)&&(p=h);p===ve.getTreeNode(s)&&(ce=p.scopeRef)}},[s]),X(()=>()=>{var f,p,h;let m=(h=(p=ve.getTreeNode(s))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&h!==void 0?h:null;(s===ce||ri(s,ce))&&(!m||ve.getTreeNode(m))&&(ce=m),ve.removeTreeNode(s)},[s]);let u=d.useMemo(()=>a2(s),[]),g=d.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return d.createElement(Hu.Provider,{value:g},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function a2(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t,s=n||ue(r[0]).activeElement,l=r[0].previousElementSibling,c=pr(r),u=We(c,{tabbable:o,accept:a},r);u.currentNode=tt(s,r)?s:l;let g=u.nextNode();return!g&&i&&(u.currentNode=l,g=u.nextNode()),g&&Le(g,!0),g},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t,s=n||ue(r[0]).activeElement,l=r[r.length-1].nextElementSibling,c=pr(r),u=We(c,{tabbable:o,accept:a},r);u.currentNode=tt(s,r)?s:l;let g=u.previousNode();return!g&&i&&(u.currentNode=l,g=u.previousNode()),g&&Le(g,!0),g},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=pr(r),a=We(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let s=a.nextNode();return s&&Le(s,!0),s},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=pr(r),a=We(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let s=a.previousNode();return s&&Le(s,!0),s}}}const gl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],s2=gl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const l2=gl.join(':not([hidden]):not([tabindex="-1"]),');function pr(e){return e[0].parentElement}function xn(e){let t=ve.getTreeNode(ce);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function c2(e,t){let r=d.useRef(void 0),n=d.useRef(void 0);X(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=ue(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!xn(e)||c.isComposing)return;let u=i.activeElement,g=e.current;if(!g||!tt(u,g))return;let f=pr(g),p=We(f,{tabbable:!0},g);if(!u)return;p.currentNode=u;let h=c.shiftKey?p.previousNode():p.nextNode();h||(p.currentNode=c.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,h=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),h&&Le(h,!0)},s=c=>{(!ce||ri(ce,e))&&tt(c.target,e.current)?(ce=e,r.current=c.target):xn(e)&&!Bt(c.target,e)?r.current?r.current.focus():ce&&ce.current&&is(ce.current):xn(e)&&(r.current=c.target)},l=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=Fn();if(!((u==="virtual"||u===null)&&ul()&&Gh())&&i.activeElement&&xn(e)&&!Bt(i.activeElement,e))if(ce=e,i.body.contains(c.target)){var f;r.current=c.target,(f=r.current)===null||f===void 0||f.focus()}else ce.current&&is(ce.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),X(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function vm(e){return Bt(e)}function tt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Bt(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ve.traverse(ve.getTreeNode(t)))if(r&&tt(e,r.current))return!0;return!1}function u2(e){return Bt(e,ce)}function ri(e,t){var r;let n=(r=ve.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Le(e,t=!1){if(e!=null&&!t)try{yr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function bm(e,t=!0){let r=e[0].previousElementSibling,n=pr(e),o=We(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=pr(e),o=We(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function is(e,t=!0){Le(bm(e,t))}function d2(e,t){const r=d.useRef(t);d.useEffect(()=>{if(r.current){ce=e;const n=ue(e.current?e.current[0]:void 0);!tt(n.activeElement,ce.current)&&e.current&&is(e.current)}r.current=!1},[e])}function f2(e,t,r){X(()=>{if(t||r)return;let n=e.current;const o=ue(n?n[0]:void 0);let i=a=>{let s=a.target;tt(s,e.current)?ce=e:vm(s)||(ce=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function ju(e){let t=ve.getTreeNode(ce);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function p2(e,t,r){const n=d.useRef(typeof document<"u"?ue(e.current?e.current[0]:void 0).activeElement:null);X(()=>{let o=e.current;const i=ue(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!ce||ri(ce,e))&&tt(i.activeElement,e.current)&&(ce=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,r]),X(()=>{const o=ue(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!xn(e)||a.isComposing)return;let s=o.activeElement;if(!Bt(s,e)||!ju(e))return;let l=ve.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=We(o.body,{tabbable:!0});u.currentNode=s;let g=a.shiftKey?u.previousNode():u.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!g||!Bt(g,e))&&c){u.currentNode=c;do g=a.shiftKey?u.previousNode():u.nextNode();while(Bt(g,e));a.preventDefault(),a.stopPropagation(),g?Le(g,!0):vm(c)?Le(c,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),X(()=>{const o=ue(e.current?e.current[0]:void 0);if(!t)return;let i=ve.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let s=ve.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(o.activeElement&&Bt(o.activeElement,e)||o.activeElement===o.body&&ju(e))){let c=ve.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let u=c.getTreeNode(e);for(;u;){if(u.nodeToRestore&&u.nodeToRestore.isConnected){Uu(u.nodeToRestore);return}u=u.parent}for(u=c.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&ve.getTreeNode(u.scopeRef)){let g=bm(u.scopeRef.current,!0);Uu(g);return}u=u.parent}}})}}}},[e,t])}function Uu(e){e.dispatchEvent(new CustomEvent(os,{bubbles:!0,cancelable:!0}))&&Le(e)}function We(e,t,r){let n=t!=null&&t.tabbable?l2:s2,o=ue(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(n)&&hm(i)&&(!r||tt(i,r))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function g2(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=r,l=o||ue(n).activeElement,c=We(n,{tabbable:i,accept:s});n.contains(l)&&(c.currentNode=l);let u=c.nextNode();return!u&&a&&(c.currentNode=n,u=c.nextNode()),u&&Le(u,!0),u},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=r,l=o||ue(n).activeElement,c=We(n,{tabbable:i,accept:s});if(n.contains(l))c.currentNode=l;else{let g=fa(c);return g&&Le(g,!0),g??null}let u=c.previousNode();if(!u&&a){c.currentNode=n;let g=fa(c);if(!g)return null;u=g}return u&&Le(u,!0),u??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,s=We(n,{tabbable:o,accept:i}).nextNode();return s&&Le(s,!0),s},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=We(n,{tabbable:o,accept:i}),s=fa(a);return s&&Le(s,!0),s??null}}}function fa(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class hl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new as({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&tt(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new hl;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new as({scopeRef:null}),this.fastMap.set(null,this.root)}}class as{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ve=new hl;function Qt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||zn()}),[i,a]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=d.useCallback(p=>{o.current.isFocused=p,a(p),c()},[c]);Q3(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:g}=lm({isDisabled:n,onFocusChange:u}),{focusWithinProps:f}=$i({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:s,focusProps:n?f:g}}let ym=d.createContext(null);function h2(e){let t=d.useContext(ym)||{};dl(t,e);let{ref:r,...n}=t;return n}const m2=d.forwardRef(function(t,r){let{children:n,...o}=t,i=Ue(r),a={...o,ref:i};return d.createElement(ym.Provider,{value:a},n)});function nn(e,t){let{focusProps:r}=lm(e),{keyboardProps:n}=r2(e),o=K(r,n),i=h2(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);return d.useEffect(()=>{s.current&&t.current&&yr(t.current),s.current=!1},[t]),{focusableProps:K({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function v2(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,c={};r!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:u}=nn(e,t),{pressProps:g,isPressed:f}=vr({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),p=ye(l,{labelable:!0}),h=K(u,g),m=Ei(),b=qh(e);return{isPressed:f,linkProps:K(p,b,{...h,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:y=>{var x;(x=g.onClick)===null||x===void 0||x.call(g,y),a&&(a(y),console.warn("onClick is deprecated, please use onPress")),!m.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&k3(y.currentTarget,y)&&e.href&&(y.preventDefault(),m.open(y.currentTarget,y,e.href,e.routerOptions))}})}}const b2=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),y2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function x2(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return b2.has(r.script)}let t=e.split("-")[0];return y2.has(t)}const S2=Symbol.for("react-aria.i18n.locale");function xm(){let e=typeof window<"u"&&window[S2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:x2(e)?"rtl":"ltr"}}let ss=xm(),Sn=new Set;function Gu(){ss=xm();for(let e of Sn)e(ss)}function w2(){let e=Zt(),[t,r]=d.useState(ss);return d.useEffect(()=>(Sn.size===0&&window.addEventListener("languagechange",Gu),Sn.add(r),()=>{Sn.delete(r),Sn.size===0&&window.removeEventListener("languagechange",Gu)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const C2=d.createContext(null);function Pr(){let e=w2();return d.useContext(C2)||e}const E2=Symbol.for("react-aria.i18n.locale"),P2=Symbol.for("react-aria.i18n.strings");let Ar;class ki{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=$2(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[E2];if(Ar===void 0){let o=window[P2];if(!o)return null;Ar={};for(let i in o)Ar[i]=new ki({[r]:o[i]},r)}let n=Ar==null?void 0:Ar[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function $2(e,t,r="en-US"){if(t[e])return t[e];let n=k2(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function k2(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const qu=new Map,Yu=new Map;class T2{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,a=qu.get(i);a||(a=new Intl.PluralRules(this.locale,{type:n}),qu.set(i,a));let s=a.select(t);return o=r[s]||r.other,typeof o=="function"?o():o}number(t){let r=Yu.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Yu.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const Xu=new WeakMap;function R2(e){let t=Xu.get(e);return t||(t=new ki(e),Xu.set(e,t)),t}function O2(e,t){return t&&ki.getGlobalDictionaryForPackage(t)||R2(e)}function ml(e,t){let{locale:r}=Pr(),n=O2(e,t);return d.useMemo(()=>new T2(r,n),[r,n])}function I2(e={}){let{locale:t}=Pr();return d.useMemo(()=>new Rg(t,e),[t,e])}let pa=new Map;function vl(e){let{locale:t}=Pr(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(pa.has(r))return pa.get(r);let n=new Intl.Collator(t,e);return pa.set(r,n),n}function Ti(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:g,href:f,target:p,rel:h,type:m="button"}=e,b;r==="button"?b={type:m,disabled:n}:b={role:"button",tabIndex:n?void 0:0,href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:y,isPressed:x}=vr({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:S}=nn(e,t);u&&(S.tabIndex=n?-1:S.tabIndex);let $=K(S,y,ye(e,{labelable:!0}));return{isPressed:x,buttonProps:K(b,$,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{g&&(g(w),console.warn("onClick is deprecated, please use onPress"))}})}}function Sm(e,t,r){const{isSelected:n}=t,{isPressed:o,buttonProps:i}=Ti({...e,onPress:qt(t.toggle,e.onPress)},r);return{isPressed:o,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:K(i,{"aria-pressed":n})}}function D2(e,t){const{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);X(()=>{var h;a(!!(t.current&&(!((h=t.current.parentElement)===null||h===void 0)&&h.closest('[role="toolbar"]'))))});const{direction:s}=Pr(),l=s==="rtl"&&o==="horizontal";let c=g2(t);const u=h=>{if(h.currentTarget.contains(h.target)){if(o==="horizontal"&&h.key==="ArrowRight"||o==="vertical"&&h.key==="ArrowDown")l?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&h.key==="ArrowLeft"||o==="vertical"&&h.key==="ArrowUp")l?c.focusNext():c.focusPrevious();else if(h.key==="Tab"){h.stopPropagation(),g.current=document.activeElement,h.shiftKey?c.focusFirst():c.focusLast();return}else return;h.stopPropagation(),h.preventDefault()}},g=d.useRef(null),f=h=>{!h.currentTarget.contains(h.relatedTarget)&&!g.current&&(g.current=h.target)},p=h=>{var m;if(g.current&&!h.currentTarget.contains(h.relatedTarget)&&(!((m=t.current)===null||m===void 0)&&m.contains(h.target))){var b;(b=g.current)===null||b===void 0||b.focus(),g.current=null}};return{toolbarProps:{...ye(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:u,onFocusCapture:i?void 0:p,onBlurCapture:i?void 0:f}}}function A2(e,t,r){let{isDisabled:n}=e,{toolbarProps:o}=D2(e,r);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":n}}}function N2(e,t,r){let n={isSelected:t.selectedKeys.has(e.id),setSelected(l){t.setSelected(e.id,l)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}=Sm({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},n,r);return t.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=n.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}}const wm=7e3;let ut=null;function Zu(e,t="assertive",r=wm){ut?ut.announce(e,t,r):(ut=new L2,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ut.announce(e,t,r):setTimeout(()=>{ut!=null&&ut.isAttached()&&(ut==null||ut.announce(e,t,r))},100))}class L2{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=wm){var o,i;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Cm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Em={...Cm,customError:!0,valid:!1},fn={isInvalid:!1,validationDetails:Cm,validationErrors:[]},z2=d.createContext({}),ls="__formValidationState"+Date.now();function bl(e){if(e[ls]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[ls];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return F2(e)}function F2(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Em}:null,c=d.useMemo(()=>{if(!a||o==null)return null;let T=M2(a,o);return Ju(T)},[a,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let u=d.useContext(z2),g=d.useMemo(()=>n?Array.isArray(n)?n.flatMap(T=>cs(u[T])):cs(u[n]):[],[u,n]),[f,p]=d.useState(u),[h,m]=d.useState(!1);u!==f&&(p(u),m(!1));let b=d.useMemo(()=>Ju(h?[]:g),[h,g]),y=d.useRef(fn),[x,S]=d.useState(fn),$=d.useRef(fn),w=()=>{if(!C)return;D(!1);let T=c||i||y.current;ga(T,$.current)||($.current=T,S(T))},[C,D]=d.useState(!1);return d.useEffect(w),{realtimeValidation:l||b||c||i||fn,displayValidation:s==="native"?l||b||x:l||b||c||i||x,updateValidation(T){s==="aria"&&!ga(x,T)?S(T):y.current=T},resetValidation(){let T=fn;ga(T,$.current)||($.current=T,S(T)),s==="native"&&D(!1),m(!0)},commitValidation(){s==="native"&&D(!0),m(!0)}}}function cs(e){return e?Array.isArray(e)?e:[e]:[]}function M2(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return cs(r)}return[]}function Ju(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Em}:null}function ga(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function yl(e,t,r){let{validationBehavior:n,focus:o}=e;X(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(V2(r.current))}});let i=Pe(()=>{t.resetValidation()}),a=Pe(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let u=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&r&&u&&B2(u)===r.current){var g;o?o():(g=r.current)===null||g===void 0||g.focus(),pm("keyboard")}l.preventDefault()}),s=Pe(()=>{t.commitValidation()});d.useEffect(()=>{let l=r==null?void 0:r.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[r,a,s,i,n])}function _2(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function V2(e){return{isInvalid:!e.validity.valid,validationDetails:_2(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function B2(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function W2(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:u="valid",isInvalid:g}=e,f=C=>{C.stopPropagation(),t.setSelected(C.target.checked)},p=s!=null,h=l!=null||c!=null;!p&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:b}=vr({isDisabled:n}),{pressProps:y,isPressed:x}=vr({isDisabled:n||o,onPress(){t.toggle()}}),{focusableProps:S}=nn(e,r),$=K(m,S),w=ye(e,{labelable:!0});return fl(r,t.isSelected,t.setSelected),{labelProps:K(y,{onClick:C=>C.preventDefault()}),inputProps:K(w,{"aria-invalid":g||u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:f,disabled:n,...i==null?{}:{value:i},name:a,type:"checkbox",...$}),isSelected:t.isSelected,isPressed:b||x,isDisabled:n,isReadOnly:o,isInvalid:g||u==="invalid"}}function K2(e,t,r){let n=bl({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=n.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:u,isDisabled:g,isReadOnly:f}=W2({...e,isInvalid:o},t,r);yl(e,n,r);let{isIndeterminate:p,isRequired:h,validationBehavior:m="aria"}=e;d.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)});let{pressProps:b}=vr({isDisabled:g||f,onPress(){let{[ls]:y}=e,{commitValidation:x}=y||n;x()}});return{labelProps:K(s,b),inputProps:{...l,checked:c,"aria-required":h&&m==="aria"||void 0,required:h&&m==="native"},isSelected:c,isPressed:u,isDisabled:g,isReadOnly:f,isInvalid:o,validationErrors:i,validationDetails:a}}function xl(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=$e(t);let a=$e(),s={};r?(n=n?`${a} ${n}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Zh({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:l}}function Sl(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:a}=xl(e),s=An([!!t,!!r,n,o]),l=An([!!t,!!r,n,o]);return a=K(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Pm(e={}){let{isReadOnly:t}=e,[r,n]=Jt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||n(a)}function i(){t||n(!r)}return{isSelected:r,setSelected:o,toggle:i}}function H2(e){let{selectionMode:t="single",disallowEmptySelection:r,isDisabled:n=!1}=e,[o,i]=Jt(d.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),d.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:n,selectedKeys:o,setSelectedKeys:i,toggleKey(a){let s;t==="multiple"?(s=new Set(o),s.has(a)&&(!r||s.size>1)?s.delete(a):s.add(a)):s=new Set(o.has(a)&&!r?[]:[a]),i(s)},setSelected(a,s){s!==o.has(a)&&this.toggleKey(a)}}}const Qu={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function $m(e={}){let{style:t,isFocusable:r}=e,[n,o]=d.useState(!1),{focusWithinProps:i}=$i({isDisabled:!r,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>n?t:t?{...Qu,...t}:Qu,[n]);return{visuallyHiddenProps:{...i,style:a}}}function km(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=$m(e);return d.createElement(r,K(i,a),t)}function j2(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=Jt(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=nn(e,t),g=bl({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:h}=g.displayValidation,{labelProps:m,fieldProps:b,descriptionProps:y,errorMessageProps:x}=Sl({...e,isInvalid:f,errorMessage:e.errorMessage||p}),S=ye(e,{labelable:!0});const $={type:a,pattern:e.pattern};return fl(t,l,c),yl(e,g,t),d.useEffect(()=>{if(t.current instanceof Qe(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:K(S,r==="input"?$:void 0,{disabled:n,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:w=>c(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...b}),descriptionProps:y,errorMessageProps:x,isInvalid:f,validationErrors:p,validationDetails:h}}const pt={top:"top",bottom:"top",left:"left",right:"left"},ni={top:"bottom",bottom:"top",left:"right",right:"left"},U2={top:"left",left:"top"},us={top:"height",left:"width"},Tm={width:"totalWidth",height:"totalHeight"},xo={};let Se=typeof document<"u"?window.visualViewport:null;function ed(e){let t=0,r=0,n=0,o=0,i=0,a=0,s={};var l;let c=((l=Se==null?void 0:Se.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let h=document.documentElement;n=h.clientWidth,o=h.clientHeight;var u;t=(u=Se==null?void 0:Se.width)!==null&&u!==void 0?u:n;var g;r=(g=Se==null?void 0:Se.height)!==null&&g!==void 0?g:o,s.top=h.scrollTop||e.scrollTop,s.left=h.scrollLeft||e.scrollLeft,Se&&(i=Se.offsetTop,a=Se.offsetLeft)}else({width:t,height:r,top:i,left:a}=Ur(e)),s.top=e.scrollTop,s.left=e.scrollLeft,n=t,o=r;if(cl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){s.top=0,s.left=0;var f;i=(f=Se==null?void 0:Se.pageTop)!==null&&f!==void 0?f:0;var p;a=(p=Se==null?void 0:Se.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:s,top:i,left:a}}function G2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function td(e,t,r,n,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,c=n[us[e]],u=n.scroll[pt[e]]+i,g=c+n.scroll[pt[e]]-i,f=t-l+a[e]-n[pt[e]],p=t-l+r+a[e]-n[pt[e]];return f<u?u-f:p>g?Math.max(g-p,u-f):0}function q2(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function rd(e){if(xo[e])return xo[e];let[t,r]=e.split(" "),n=pt[t]||"right",o=U2[n];pt[r]||(r="center");let i=us[n],a=us[o];return xo[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},xo[e]}function ha(e,t,r,n,o,i,a,s,l,c){let{placement:u,crossPlacement:g,axis:f,crossAxis:p,size:h,crossSize:m}=n,b={};var y;b[p]=(y=e[p])!==null&&y!==void 0?y:0;var x,S,$,w;g==="center"?b[p]+=(((x=e[m])!==null&&x!==void 0?x:0)-((S=r[m])!==null&&S!==void 0?S:0))/2:g!==p&&(b[p]+=(($=e[m])!==null&&$!==void 0?$:0)-((w=r[m])!==null&&w!==void 0?w:0)),b[p]+=i;const C=e[p]-r[m]+l+c,D=e[p]+e[m]-l-c;if(b[p]=Qo(b[p],C,D),u===f){const v=s?a[h]:t[Tm[h]];b[ni[f]]=Math.floor(v-e[f]+o)}else b[f]=Math.floor(e[f]+e[h]+o);return b}function Y2(e,t,r,n,o,i,a,s){const l=n?r.height:t[Tm.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-a);var g,f,p,h,m,b;let y=s!=="top"?Math.max(0,t.height+t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0)-u-(((f=o.top)!==null&&f!==void 0?f:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,u+a-(t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((b=o.bottom)!==null&&b!==void 0?b:0)+i));return Math.min(t.height-i*2,y)}function nd(e,t,r,n,o,i){let{placement:a,axis:s,size:l}=i;var c,u;if(a===s)return Math.max(0,r[s]-e[s]-((c=e.scroll[s])!==null&&c!==void 0?c:0)+t[s]-((u=n[s])!==null&&u!==void 0?u:0)-n[ni[s]]-o);var g;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-r[s]-r[l]-((g=n[s])!==null&&g!==void 0?g:0)-n[ni[s]]-o)}function X2(e,t,r,n,o,i,a,s,l,c,u,g,f,p,h,m){let b=rd(e),{size:y,crossAxis:x,crossSize:S,placement:$,crossPlacement:w}=b,C=ha(t,s,r,b,u,g,c,f,h,m),D=u,v=nd(s,c,t,o,i+u,b);if(a&&n[y]>v){let Ie=rd(`${ni[$]} ${w}`),De=ha(t,s,r,Ie,u,g,c,f,h,m);nd(s,c,t,o,i+u,Ie)>v&&(b=Ie,C=De,D=u)}let P="bottom";b.axis==="top"?b.placement==="top"?P="top":b.placement==="bottom"&&(P="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?P="bottom":b.crossPlacement==="bottom"&&(P="top"));let T=td(x,C[x],r[S],s,l,i,c);C[x]+=T;let I=Y2(C,s,c,f,o,i,r.height,P);p&&p<I&&(I=p),r.height=Math.min(r.height,I),C=ha(t,s,r,b,D,g,c,f,h,m),T=td(x,C[x],r[S],s,l,i,c),C[x]+=T;let L={},E=t[x]+.5*t[S]-C[x]-o[pt[x]];const O=h/2+m;var A,z,F,R;const _=pt[x]==="left"?((A=o.left)!==null&&A!==void 0?A:0)+((z=o.right)!==null&&z!==void 0?z:0):((F=o.top)!==null&&F!==void 0?F:0)+((R=o.bottom)!==null&&R!==void 0?R:0),B=r[S]-_-h/2-m,Z=t[x]+h/2-(C[x]+o[pt[x]]),ne=t[x]+t[S]-h/2-(C[x]+o[pt[x]]),_e=Qo(E,Z,ne);return L[x]=Qo(_e,O,B),{position:C,maxHeight:I,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:b.placement}}function Z2(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:u,arrowSize:g=0,arrowBoundaryOffset:f=0}=e,p=n instanceof HTMLElement?J2(n):document.documentElement,h=p===document.documentElement;const m=window.getComputedStyle(p).position;let b=!!m&&m!=="static",y=h?Ur(r):od(r,p);if(!h){let{marginTop:L,marginLeft:E}=window.getComputedStyle(r);y.top+=parseInt(L,10)||0,y.left+=parseInt(E,10)||0}let x=Ur(n),S=q2(n);var $,w;x.width+=(($=S.left)!==null&&$!==void 0?$:0)+((w=S.right)!==null&&w!==void 0?w:0);var C,D;x.height+=((C=S.top)!==null&&C!==void 0?C:0)+((D=S.bottom)!==null&&D!==void 0?D:0);let v=G2(o),P=ed(s),T=ed(p),I=s.tagName==="BODY"?Ur(p):od(p,s);return p.tagName==="HTML"&&s.tagName==="BODY"&&(T.scroll.top=0,T.scroll.left=0),X2(t,y,x,v,S,i,a,P,T,I,l,c,b,u,g,f)}function Ur(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:r+a-l,width:n,height:o}}function od(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();n={top:o,left:i,width:a,height:s}}else{n=Ur(e);let o=Ur(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function J2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!id(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!id(t);)t=t.parentElement;return t||document.documentElement}function id(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Rm=new WeakMap;function Q2(e){let{triggerRef:t,isOpen:r,onClose:n}=e;d.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=n||Rm.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let he=typeof document<"u"?window.visualViewport:null;function Om(e){let{direction:t}=Pr(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:g=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:h,maxHeight:m,arrowBoundaryOffset:b=0}=e,[y,x]=d.useState(null),S=[f,a,o.current,n.current,i.current,s,l,c,u,g,p,t,m,b,r],$=d.useRef(he==null?void 0:he.scale);d.useEffect(()=>{p&&($.current=he==null?void 0:he.scale)},[p]);let w=d.useCallback(()=>{if(f===!1||!p||!o.current||!n.current||!c||(he==null?void 0:he.scale)!==$.current)return;let T=null;if(i.current&&i.current.contains(document.activeElement)){var I;let R=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),_=i.current.getBoundingClientRect();var L;if(T={type:"top",offset:((L=R==null?void 0:R.top)!==null&&L!==void 0?L:0)-_.top},T.offset>_.height/2){T.type="bottom";var E;T.offset=((E=R==null?void 0:R.bottom)!==null&&E!==void 0?E:0)-_.bottom}}let O=o.current;if(!m&&o.current){var A;O.style.top="0px",O.style.bottom="";var z;O.style.maxHeight=((z=(A=window.visualViewport)===null||A===void 0?void 0:A.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let F=Z2({placement:tT(a,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:l,boundaryElement:c,offset:u,crossOffset:g,maxHeight:m,arrowSize:r,arrowBoundaryOffset:b});if(F.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(F.position).forEach(R=>O.style[R]=F.position[R]+"px"),O.style.maxHeight=F.maxHeight!=null?F.maxHeight+"px":"",T&&document.activeElement&&i.current){let R=document.activeElement.getBoundingClientRect(),_=i.current.getBoundingClientRect(),B=R[T.type]-_[T.type];i.current.scrollTop+=B-T.offset}x(F)}},S);X(w,S),eT(w),Za({ref:o,onResize:w}),Za({ref:n,onResize:w});let C=d.useRef(!1);X(()=>{let T,I=()=>{C.current=!0,clearTimeout(T),T=setTimeout(()=>{C.current=!1},500),w()},L=()=>{C.current&&I()};return he==null||he.addEventListener("resize",I),he==null||he.addEventListener("scroll",L),()=>{he==null||he.removeEventListener("resize",I),he==null||he.removeEventListener("scroll",L)}},[w]);let D=d.useCallback(()=>{C.current||h==null||h()},[h,C]);Q2({triggerRef:n,isOpen:p,onClose:h&&D});var v,P;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...y==null?void 0:y.position,maxHeight:(v=y==null?void 0:y.maxHeight)!==null&&v!==void 0?v:"100vh"}},placement:(P=y==null?void 0:y.placement)!==null&&P!==void 0?P:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y==null?void 0:y.arrowOffsetLeft,top:y==null?void 0:y.arrowOffsetTop}},updatePosition:w}}function eT(e){X(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function tT(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Et=[];function rT(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>(o&&Et.push(t),()=>{let h=Et.indexOf(t);h>=0&&Et.splice(h,1)}),[o,t]);let l=()=>{Et[Et.length-1]===t&&r&&r()},c=h=>{(!s||s(h.target))&&Et[Et.length-1]===t&&(h.stopPropagation(),h.preventDefault())},u=h=>{(!s||s(h.target))&&(Et[Et.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},g=h=>{h.key==="Escape"&&!a&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),l())};t2({ref:t,onInteractOutside:i&&o?u:void 0,onInteractOutsideStart:c});let{focusWithinProps:f}=$i({isDisabled:!n,onBlurWithin:h=>{!h.relatedTarget||u2(h.relatedTarget)||(!s||s(h.relatedTarget))&&(r==null||r())}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:g,...f},underlayProps:{onPointerDown:p}}}function Im(e,t,r){let{type:n}=e,{isOpen:o}=t;d.useEffect(()=>{r&&r.current&&Rm.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let a=$e();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const ma=typeof document<"u"&&window.visualViewport,nT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let So=0,va;function oT(e={}){let{isDisabled:t}=e;X(()=>{if(!t)return So++,So===1&&(Ci()?va=aT():va=iT()),()=>{So--,So===0&&va()}},[t])}function iT(){return qt(Wr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Wr(document.documentElement,"overflow","hidden"))}function aT(){let e,t,r=c=>{e=Jh(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Wr(e,"overscrollBehavior","contain"))},n=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=()=>{t&&t()},i=c=>{let u=c.target;sT(u)&&(s(),u.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{u.style.transform="",ma&&(ma.height<window.innerHeight?requestAnimationFrame(()=>{ad(u)}):ma.addEventListener("resize",()=>ad(u),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},u=window.pageXOffset,g=window.pageYOffset;a=qt(pn(window,"scroll",c),Wr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Wr(document.documentElement,"overflow","hidden"),Wr(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(u,g)}),window.scrollTo(0,0)},l=qt(pn(document,"touchstart",r,{passive:!1,capture:!0}),pn(document,"touchmove",n,{passive:!1,capture:!0}),pn(document,"touchend",o,{passive:!1,capture:!0}),pn(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Wr(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function pn(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function ad(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Jh(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect().top,i=r.getBoundingClientRect().top;i>o+r.clientHeight&&(n.scrollTop+=i-o)}r=n.parentElement}}function sT(e){return e instanceof HTMLInputElement&&!nT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const ds=d.createContext(null);function lT(e){let{children:t}=e,r=d.useContext(ds),[n,o]=d.useState(0),i=d.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return d.createElement(ds.Provider,{value:i},t)}function cT(){let e=d.useContext(ds);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function uT(e){let{modalProviderProps:t}=cT();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function dT(e){return d.createElement(lT,null,d.createElement(uT,e))}function fT(e){let t=Zt(),{portalContainer:r=t?null:document.body,...n}=e;if(d.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let o=d.createElement(dT,n);return ct.createPortal(o,r)}var Dm={};Dm={dismiss:"تجاهل"};var Am={};Am={dismiss:"Отхвърляне"};var Nm={};Nm={dismiss:"Odstranit"};var Lm={};Lm={dismiss:"Luk"};var zm={};zm={dismiss:"Schließen"};var Fm={};Fm={dismiss:"Απόρριψη"};var Mm={};Mm={dismiss:"Dismiss"};var _m={};_m={dismiss:"Descartar"};var Vm={};Vm={dismiss:"Lõpeta"};var Bm={};Bm={dismiss:"Hylkää"};var Wm={};Wm={dismiss:"Rejeter"};var Km={};Km={dismiss:"התעלם"};var Hm={};Hm={dismiss:"Odbaci"};var jm={};jm={dismiss:"Elutasítás"};var Um={};Um={dismiss:"Ignora"};var Gm={};Gm={dismiss:"閉じる"};var qm={};qm={dismiss:"무시"};var Ym={};Ym={dismiss:"Atmesti"};var Xm={};Xm={dismiss:"Nerādīt"};var Zm={};Zm={dismiss:"Lukk"};var Jm={};Jm={dismiss:"Negeren"};var Qm={};Qm={dismiss:"Zignoruj"};var ev={};ev={dismiss:"Descartar"};var tv={};tv={dismiss:"Dispensar"};var rv={};rv={dismiss:"Revocare"};var nv={};nv={dismiss:"Пропустить"};var ov={};ov={dismiss:"Zrušiť"};var iv={};iv={dismiss:"Opusti"};var av={};av={dismiss:"Odbaci"};var sv={};sv={dismiss:"Avvisa"};var lv={};lv={dismiss:"Kapat"};var cv={};cv={dismiss:"Скасувати"};var uv={};uv={dismiss:"取消"};var dv={};dv={dismiss:"關閉"};var fv={};fv={"ar-AE":Dm,"bg-BG":Am,"cs-CZ":Nm,"da-DK":Lm,"de-DE":zm,"el-GR":Fm,"en-US":Mm,"es-ES":_m,"et-EE":Vm,"fi-FI":Bm,"fr-FR":Wm,"he-IL":Km,"hr-HR":Hm,"hu-HU":jm,"it-IT":Um,"ja-JP":Gm,"ko-KR":qm,"lt-LT":Ym,"lv-LV":Xm,"nb-NO":Zm,"nl-NL":Jm,"pl-PL":Qm,"pt-BR":ev,"pt-PT":tv,"ro-RO":rv,"ru-RU":nv,"sk-SK":ov,"sl-SI":iv,"sr-SP":av,"sv-SE":sv,"tr-TR":lv,"uk-UA":cv,"zh-CN":uv,"zh-TW":dv};function pT(e){return e&&e.__esModule?e.default:e}function sd(e){let{onDismiss:t,...r}=e,n=ml(pT(fv),"@react-aria/overlays"),o=Zh(r,n.format("dismiss")),i=()=>{t&&t()};return d.createElement(km,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let gn=new WeakMap,Ye=[];function gT(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(f);let c=f=>{if(r.has(f)||f.parentElement&&n.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of r)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),g=c(l);if(g===NodeFilter.FILTER_ACCEPT&&i(l),g!==NodeFilter.FILTER_REJECT){let f=u.nextNode();for(;f!=null;)i(f),f=u.nextNode()}},i=l=>{var c;let u=(c=gn.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),n.add(l),gn.set(l,u+1))};Ye.length&&Ye[Ye.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(r.delete(u),n.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?r.add(u):u instanceof Element&&o(u)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Ye.push(s),()=>{a.disconnect();for(let l of n){let c=gn.get(l);c!=null&&(c===1?(l.removeAttribute("aria-hidden"),gn.delete(l)):gn.set(l,c-1))}s===Ye[Ye.length-1]?(Ye.pop(),Ye.length&&Ye[Ye.length-1].observe()):Ye.splice(Ye.indexOf(s),1)}}function hT(e,t){let{triggerRef:r,popoverRef:n,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=rT({isOpen:t.isOpen&&!s["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},n),{overlayProps:u,arrowProps:g,placement:f}=Om({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:o?t.close:null});return oT({isDisabled:o||!t.isOpen}),X(()=>{if(t.isOpen&&!o&&n.current)return gT([n.current])},[o,t.isOpen,n]),{popoverProps:K(l,u),arrowProps:g,underlayProps:c,placement:f}}const mT=d.createContext({});function vT(){var e;return(e=d.useContext(mT))!==null&&e!==void 0?e:{}}const pv=d.createContext(null);function bT(e){let t=Zt(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=vT();if(!e.portalContainer&&s&&(r=s()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(mm,{restoreFocus:!0,contain:o&&!n},l)),l=d.createElement(pv.Provider,{value:a},d.createElement(U3,null,l)),ct.createPortal(l,r)}function yT(){let e=d.useContext(pv),t=e==null?void 0:e.setContain;X(()=>{t==null||t(!0)},[t])}const wl=new WeakMap;function xT(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function ST(e,t){let r=wl.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${xT(t)}`}function fs(e){return E3()?e.altKey:e.ctrlKey}const wT=1e3;function gv(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=CT(a.key);if(!(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},wT)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function CT(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ET(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:g=!1,isVirtualized:f,scrollRef:p=n,linkBehavior:h="action"}=e,{direction:m}=Pr(),b=Ei(),y=E=>{var O;if(E.altKey&&E.key==="Tab"&&E.preventDefault(),!(!((O=n.current)===null||O===void 0)&&O.contains(E.target)))return;const A=(N,M)=>{if(N!=null){if(t.isLink(N)&&h==="selection"&&l&&!fs(E)){var H;ct.flushSync(()=>{t.setFocusedKey(N,M)});let ee=(H=p.current)===null||H===void 0?void 0:H.querySelector(`[data-key="${CSS.escape(N.toString())}"]`),V=t.getItemProps(N);ee&&b.open(ee,E,V.href,V.routerOptions);return}if(t.setFocusedKey(N,M),t.isLink(N)&&h==="override")return;E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):l&&!fs(E)&&t.replaceSelection(N)}};switch(E.key){case"ArrowDown":if(r.getKeyBelow){var z,F,R;let N=t.focusedKey!=null?(z=r.getKeyBelow)===null||z===void 0?void 0:z.call(r,t.focusedKey):(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r);N==null&&i&&(N=(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N))}break;case"ArrowUp":if(r.getKeyAbove){var _,B,Z;let N=t.focusedKey!=null?(_=r.getKeyAbove)===null||_===void 0?void 0:_.call(r,t.focusedKey):(B=r.getLastKey)===null||B===void 0?void 0:B.call(r);N==null&&i&&(N=(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N))}break;case"ArrowLeft":if(r.getKeyLeftOf){var ne,_e,Ie;let N=t.focusedKey!=null?(ne=r.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(r,t.focusedKey):null;N==null&&i&&(N=m==="rtl"?(_e=r.getFirstKey)===null||_e===void 0?void 0:_e.call(r,t.focusedKey):(Ie=r.getLastKey)===null||Ie===void 0?void 0:Ie.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N,m==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var De,Ft,er;let N=t.focusedKey!=null?(De=r.getKeyRightOf)===null||De===void 0?void 0:De.call(r,t.focusedKey):null;N==null&&i&&(N=m==="rtl"?(Ft=r.getLastKey)===null||Ft===void 0?void 0:Ft.call(r,t.focusedKey):(er=r.getFirstKey)===null||er===void 0?void 0:er.call(r,t.focusedKey)),N!=null&&(E.preventDefault(),A(N,m==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&E.shiftKey)return;E.preventDefault();let N=r.getFirstKey(t.focusedKey,Fr(E));t.setFocusedKey(N),N!=null&&(Fr(E)&&E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):l&&t.replaceSelection(N))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&E.shiftKey)return;E.preventDefault();let N=r.getLastKey(t.focusedKey,Fr(E));t.setFocusedKey(N),N!=null&&(Fr(E)&&E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):l&&t.replaceSelection(N))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let N=r.getKeyPageBelow(t.focusedKey);N!=null&&(E.preventDefault(),A(N))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let N=r.getKeyPageAbove(t.focusedKey);N!=null&&(E.preventDefault(),A(N))}break;case"a":Fr(E)&&t.selectionMode==="multiple"&&s!==!0&&(E.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(E.stopPropagation(),E.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(E.shiftKey)n.current.focus();else{let N=We(n.current,{tabbable:!0}),M,H;do H=N.lastChild(),H&&(M=H);while(H);M&&!M.contains(document.activeElement)&&Tt(M)}break}}},x=d.useRef({top:0,left:0});yn(p,"scroll",f?void 0:()=>{var E,O,A,z;x.current={top:(A=(E=p.current)===null||E===void 0?void 0:E.scrollTop)!==null&&A!==void 0?A:0,left:(z=(O=p.current)===null||O===void 0?void 0:O.scrollLeft)!==null&&z!==void 0?z:0}});let S=E=>{if(t.isFocused){E.currentTarget.contains(E.target)||t.setFocused(!1);return}if(E.currentTarget.contains(E.target)){if(t.setFocused(!0),t.focusedKey==null){var O,A;let R=B=>{B!=null&&(t.setFocusedKey(B),l&&t.replaceSelection(B))},_=E.relatedTarget;var z,F;_&&E.currentTarget.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?R((z=t.lastSelectedKey)!==null&&z!==void 0?z:(O=r.getLastKey)===null||O===void 0?void 0:O.call(r)):R((F=t.firstSelectedKey)!==null&&F!==void 0?F:(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))}else!f&&p.current&&(p.current.scrollTop=x.current.top,p.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&p.current){let R=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);R&&(R.contains(document.activeElement)||Tt(R),Fn()==="keyboard"&&zu(R,{containingElement:n.current}))}}},$=E=>{E.currentTarget.contains(E.relatedTarget)||t.setFocused(!1)},w=d.useRef(!1);yn(n,z3,u?E=>{let{detail:O}=E;E.stopPropagation(),t.setFocused(!0),(O==null?void 0:O.focusStrategy)==="first"&&(w.current=!0)}:void 0);let C=Pe(()=>{var E,O;let A=(O=(E=r.getFirstKey)===null||E===void 0?void 0:E.call(r))!==null&&O!==void 0?O:null;if(A==null){var z;(z=n.current)===null||z===void 0||z.dispatchEvent(new CustomEvent(em,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(A),w.current=!1});Nu(()=>{w.current&&C()},[t.collection,C]);let D=Pe(()=>{t.collection.size>0&&(w.current=!1)});Nu(()=>{D()},[t.focusedKey,D]),yn(n,L3,u?E=>{E.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const v=d.useRef(o);d.useEffect(()=>{if(v.current){var E,O;let F=null;var A;o==="first"&&(F=(A=(E=r.getFirstKey)===null||E===void 0?void 0:E.call(r))!==null&&A!==void 0?A:null);var z;o==="last"&&(F=(z=(O=r.getLastKey)===null||O===void 0?void 0:O.call(r))!==null&&z!==void 0?z:null);let R=t.selectedKeys;if(R.size){for(let _ of R)if(t.canSelectItem(_)){F=_;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!u&&n.current&&yr(n.current)}},[]);let P=d.useRef(t.focusedKey);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==P.current||v.current)&&p.current&&n.current){let E=Fn(),O=n.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!O)return;(E==="keyboard"||v.current)&&(Qh(p.current,O),E!=="virtual"&&zu(O,{containingElement:n.current}))}!u&&t.isFocused&&t.focusedKey==null&&P.current!=null&&n.current&&yr(n.current),P.current=t.focusedKey,v.current=!1}),yn(n,"react-aria-focus-scope-restore",E=>{E.preventDefault(),t.setFocused(!0)});let T={onKeyDown:y,onFocus:S,onBlur:$,onMouseDown(E){p.current===E.target&&E.preventDefault()}},{typeSelectProps:I}=gv({keyboardDelegate:r,selectionManager:t});c||(T=K(I,T));let L;return u?L=-1:L=t.focusedKey==null?0:-1,{collectionProps:{...T,tabIndex:L}}}function PT(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:g="action"}=e,f=Ei();t=$e(t);let p=R=>{if(R.pointerType==="keyboard"&&fs(R))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(g==="selection"&&o.current){let _=r.getItemProps(n);f.open(o.current,R,_.href,_.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(g==="override"||g==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):R&&R.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||R&&(Fr(R)||R.pointerType==="touch"||R.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};d.useEffect(()=>{if(n===r.focusedKey&&r.isFocused)if(!a)s?s():document.activeElement!==o.current&&o.current&&yr(o.current);else{var _;let B=new CustomEvent(em,{cancelable:!0,bubbles:!0});(_=o.current)===null||_===void 0||_.dispatchEvent(B)}},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),l=l||r.isDisabled(n);let h={};!a&&!l?h={tabIndex:n===r.focusedKey?0:-1,onFocus(R){R.target===o.current&&r.setFocusedKey(n)}}:l&&(h.onMouseDown=R=>{R.preventDefault()});let m=r.isLink(n)&&g==="override",b=r.isLink(n)&&g!=="selection"&&g!=="none",y=!l&&r.canSelectItem(n)&&!m,x=(c||b)&&!l,S=x&&(r.selectionBehavior==="replace"?!y:!y||r.isEmpty),$=x&&y&&r.selectionBehavior==="replace",w=S||$,C=d.useRef(null),D=w&&y,v=d.useRef(!1),P=d.useRef(!1),T=R=>{if(c&&c(),b&&o.current){let _=r.getItemProps(n);f.open(o.current,R,_.href,_.routerOptions)}},I={};i?(I.onPressStart=R=>{C.current=R.pointerType,v.current=D,R.pointerType==="keyboard"&&(!w||cd())&&p(R)},u?(I.onPressUp=S?void 0:R=>{R.pointerType==="mouse"&&y&&p(R)},I.onPress=S?T:R=>{R.pointerType!=="keyboard"&&R.pointerType!=="mouse"&&y&&p(R)}):I.onPress=R=>{if(S||$&&R.pointerType!=="mouse"){if(R.pointerType==="keyboard"&&!ld())return;T(R)}else R.pointerType!=="keyboard"&&y&&p(R)}):(I.onPressStart=R=>{C.current=R.pointerType,v.current=D,P.current=S,y&&(R.pointerType==="mouse"&&!S||R.pointerType==="keyboard"&&(!x||cd()))&&p(R)},I.onPress=R=>{(R.pointerType==="touch"||R.pointerType==="pen"||R.pointerType==="virtual"||R.pointerType==="keyboard"&&w&&ld()||R.pointerType==="mouse"&&P.current)&&(w?T(R):y&&p(R))}),h["data-key"]=n,I.preventFocusOnPress=a;let{pressProps:L,isPressed:E}=vr(I),O=$?R=>{C.current==="mouse"&&(R.stopPropagation(),R.preventDefault(),T(R))}:void 0,{longPressProps:A}=gm({isDisabled:!D,onLongPress(R){R.pointerType==="touch"&&(p(R),r.setSelectionBehavior("toggle"))}}),z=R=>{C.current==="touch"&&v.current&&R.preventDefault()},F=r.isLink(n)?R=>{mr.isOpening||R.preventDefault()}:void 0;return{itemProps:K(h,y||S?L:{},D?A:{},{onDoubleClick:O,onDragStartCapture:z,onClick:F,id:t}),isPressed:E,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:y,hasAction:w}}function ld(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function cd(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ud{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?r.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left+r.scrollLeft,y:i.top-o.top+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t==null?void 0:t.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t==null?void 0:t.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t==null?void 0:t.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t==null?void 0:t.scrollTop)!==null&&n!==void 0?n:0,width:(o=t==null?void 0:t.offsetWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.offsetHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class Cl{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(a,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Nn(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Nn(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new ud(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ud(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function $T(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=vl({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,c=d.useMemo(()=>i||new Cl({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,r,n,o,s,l]),{collectionProps:u}=ET({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:u}}function kT(e,t,r){let n=ye(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=$T({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=$i({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=$e(e.id);wl.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:u}=xl({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:K(n,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...K(u,a)})}}class TT{build(t,r){return this.context=r,dd(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(d.isValidElement(r)&&r.type===d.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];d.Children.forEach(r,a=>{a&&o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(d.isValidElement(t.element)&&t.element.type===d.Fragment){let b=[];d.Children.forEach(t.element.props.children,x=>{b.push(x)});var i;let y=(i=t.index)!==null&&i!==void 0?i:0;for(const x of b)yield*this.getFullNode({element:x,index:y++},r,n,o);return}let a=t.element;if(!a&&t.value&&r&&r.renderer){let b=this.cache.get(t.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=t.index,b.parentKey=o?o.key:null,yield b;return}a=r.renderer(t.value)}if(d.isValidElement(a)){let b=a.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let $=a.type;throw new Error(`Unknown element <${$}> in collection.`)}let y=b.getCollectionNode(a.props,this.context);var s;let x=(s=t.index)!==null&&s!==void 0?s:0,S=y.next();for(;!S.done&&S.value;){let $=S.value;t.index=x;var l;let w=(l=$.key)!==null&&l!==void 0?l:null;w==null&&(w=$.element?null:this.getKey(a,t,r,n));let D=[...this.getFullNode({...$,key:w,index:x,wrapper:RT(t.wrapper,$.wrapper)},this.getChildState(r,$),n?`${n}${a.key}`:a.key,o)];for(let v of D){var c,u;v.value=(u=(c=$.value)!==null&&c!==void 0?c:t.value)!==null&&u!==void 0?u:null,v.value&&this.cache.set(v.value,v);var g;if(t.type&&v.type!==t.type)throw new Error(`Unsupported type <${ba(v.type)}> in <${ba((g=o==null?void 0:o.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${ba(t.type)}> is supported.`);x++,yield v}S=y.next(D)}return}if(t.key==null||t.type==null)return;let f=this;var p,h;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(p=t.value)!==null&&p!==void 0?p:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(h=t.textValue)!==null&&h!==void 0?h:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:dd(function*(){if(!t.hasChildNodes||!t.childNodes)return;let b=0;for(let y of t.childNodes()){y.key!=null&&(y.key=`${m.key}${y.key}`);let x=f.getFullNode({...y,index:b},f.getChildState(r,y),m.key,m);for(let S of x)b++,yield S}})};yield m}constructor(){this.cache=new WeakMap}}function dd(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function RT(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function ba(e){return e[0].toUpperCase()+e.slice(1)}function OT(e,t,r){let n=d.useMemo(()=>new TT,[]),{children:o,items:i,collection:a}=e;return d.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function hv(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function IT(e){return DT(e)}function DT(e,t){for(let r of e)return r}function ya(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...fd(e,t),t],o=[...fd(e,r),r],i=n.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function fd(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const pd=new WeakMap;function AT(e){let t=pd.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(hv(i,e)):r++};return n(e),pd.set(e,r),r}function NT(e,t,r){var n,o;let{key:i}=e,a=wl.get(t);var s;let l=(s=e.isDisabled)!==null&&s!==void 0?s:t.selectionManager.isDisabled(i);var c;let u=(c=e.isSelected)!==null&&c!==void 0?c:t.selectionManager.isSelected(i);var g;let f=(g=e.shouldSelectOnPressUp)!==null&&g!==void 0?g:a==null?void 0:a.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:a==null?void 0:a.shouldFocusOnHover;var m;let b=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:a==null?void 0:a.shouldUseVirtualFocus;var y;let x=(y=e.isVirtualized)!==null&&y!==void 0?y:a==null?void 0:a.isVirtualized,S=An(),$=An(),w={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};Yt()&&cl()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=S,w["aria-describedby"]=$);let C=t.collection.getItem(i);if(x){let F=Number(C==null?void 0:C.index);w["aria-posinset"]=Number.isNaN(F)?void 0:F+1,w["aria-setsize"]=AT(t.collection)}let D=a!=null&&a.onAction?()=>{var F;return a==null||(F=a.onAction)===null||F===void 0?void 0:F.call(a,i)}:void 0,v=ST(t,i),{itemProps:P,isPressed:T,isFocused:I,hasAction:L,allowsSelection:E}=PT({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:x,shouldUseVirtualFocus:b,isDisabled:l,onAction:D||!(C==null||(n=C.props)===null||n===void 0)&&n.onAction?qt(C==null||(o=C.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:v}),{hoverProps:O}=Er({isDisabled:l||!h,onHoverStart(){zn()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),A=ye(C==null?void 0:C.props);delete A.id;let z=qh(C==null?void 0:C.props);return{optionProps:{...w,...K(A,P,O,z),id:v},labelProps:{id:S},descriptionProps:{id:$},isFocused:I,isFocusVisible:I&&zn(),isSelected:u,isDisabled:l,isPressed:T,allowsSelection:E,hasAction:L}}function LT(e){let{heading:t,"aria-label":r}=e,n=$e();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var mv={};mv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var vv={};vv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var bv={};bv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var yv={};yv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var xv={};xv={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Sv={};Sv={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var wv={};wv={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Cv={};Cv={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Ev={};Ev={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Pv={};Pv={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var $v={};$v={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var kv={};kv={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Tv={};Tv={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Rv={};Rv={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Ov={};Ov={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Iv={};Iv={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Dv={};Dv={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Av={};Av={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Nv={};Nv={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Lv={};Lv={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var zv={};zv={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Fv={};Fv={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Mv={};Mv={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var _v={};_v={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Vv={};Vv={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Bv={};Bv={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Wv={};Wv={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Kv={};Kv={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Hv={};Hv={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var jv={};jv={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Uv={};Uv={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Gv={};Gv={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var qv={};qv={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Yv={};Yv={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Xv={};Xv={"ar-AE":mv,"bg-BG":vv,"cs-CZ":bv,"da-DK":yv,"de-DE":xv,"el-GR":Sv,"en-US":wv,"es-ES":Cv,"et-EE":Ev,"fi-FI":Pv,"fr-FR":$v,"he-IL":kv,"hr-HR":Tv,"hu-HU":Rv,"it-IT":Ov,"ja-JP":Iv,"ko-KR":Dv,"lt-LT":Av,"lv-LV":Nv,"nb-NO":Lv,"nl-NL":zv,"pl-PL":Fv,"pt-BR":Mv,"pt-PT":_v,"ro-RO":Vv,"ru-RU":Bv,"sk-SK":Wv,"sl-SI":Kv,"sr-SP":Hv,"sv-SE":jv,"tr-TR":Uv,"uk-UA":Gv,"zh-CN":qv,"zh-TW":Yv};function zT(e){return e&&e.__esModule?e.default:e}function FT(e,t,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=e,a=$e(),{triggerProps:s,overlayProps:l}=Im({type:n},t,r),c=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&r&&r.current)switch(p.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},u=ml(zT(Xv),"@react-aria/menu"),{longPressProps:g}=gm({isDisabled:o||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&t.open(p.pointerType==="virtual"?"first":null)},onPress(p){p.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?f:g,id:a,onKeyDown:c},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function MT(e,t){let{role:r="dialog"}=e,n=An();n=e["aria-label"]?void 0:n;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){yr(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),yr(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),yT(),{dialogProps:{...ye(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}function _T(e,t,r){let{isDisabled:n}=e,o=$e(),i=$e(),s=!Zt()&&"onbeforematch"in document.body,l=d.useRef(null),c=d.useCallback(()=>{l.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found")}),ct.flushSync(()=>{t.toggle()})},[r,t]);return yn(r,"beforematch",s?c:null),X(()=>{l.current&&cancelAnimationFrame(l.current),s&&r.current&&!n&&(t.isExpanded?r.current.removeAttribute("hidden"):r.current.setAttribute("hidden","until-found"))},[n,r,t.isExpanded,s]),d.useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[]),{buttonProps:{id:o,"aria-expanded":t.isExpanded,"aria-controls":i,onPress:u=>{!n&&u.pointerType!=="keyboard"&&t.toggle()},isDisabled:n,onPressStart(u){u.pointerType==="keyboard"&&!n&&t.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":o,"aria-hidden":!t.isExpanded,hidden:s?!0:!t.isExpanded}}}function VT(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=ye(e,{labelable:!0}),{labelProps:l,fieldProps:c}=xl({...e,labelElementType:"span"});t=Qo(t,r,n);let u=(t-r)/(n-r),g=I2(a);if(!i&&!o){let f=a.style==="percent"?u:t;o=g.format(f)}return{progressBarProps:K(s,{...c,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}const Zv=new WeakMap;function BT(e,t,r){let{keyboardDelegate:n,isDisabled:o,isRequired:i,name:a,validationBehavior:s="aria"}=e,l=vl({usage:"search",sensitivity:"base"}),c=d.useMemo(()=>n||new Cl(t.collection,t.disabledKeys,r,l),[n,t.collection,t.disabledKeys,l]),{menuTriggerProps:u,menuProps:g}=FT({isDisabled:o,type:"listbox"},t,r),f=v=>{switch(v.key){case"ArrowLeft":{var P,T;v.preventDefault();let E=t.selectedKey!=null?(P=c.getKeyAbove)===null||P===void 0?void 0:P.call(c,t.selectedKey):(T=c.getFirstKey)===null||T===void 0?void 0:T.call(c);E&&t.setSelectedKey(E);break}case"ArrowRight":{var I,L;v.preventDefault();let E=t.selectedKey!=null?(I=c.getKeyBelow)===null||I===void 0?void 0:I.call(c,t.selectedKey):(L=c.getFirstKey)===null||L===void 0?void 0:L.call(c);E&&t.setSelectedKey(E);break}}},{typeSelectProps:p}=gv({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(v){t.setSelectedKey(v)}}),{isInvalid:h,validationErrors:m,validationDetails:b}=t.displayValidation,{labelProps:y,fieldProps:x,descriptionProps:S,errorMessageProps:$}=Sl({...e,labelElementType:"span",isInvalid:h,errorMessage:e.errorMessage||m});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let w=ye(e,{labelable:!0}),C=K(p,u,x),D=$e();return Zv.set(t,{isDisabled:o,isRequired:i,name:a,validationBehavior:s}),{labelProps:{...y,onClick:()=>{if(!e.isDisabled){var v;(v=r.current)===null||v===void 0||v.focus(),pm("keyboard")}}},triggerProps:K(w,{...C,isDisabled:o,onKeyDown:qt(C.onKeyDown,f,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[D,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].filter(Boolean).join(" "),onFocus(v){t.isFocused||(e.onFocus&&e.onFocus(v),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(v){t.isOpen||(e.onBlur&&e.onBlur(v),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:D},menuProps:{...g,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:v=>{v.currentTarget.contains(v.relatedTarget)||(e.onBlur&&e.onBlur(v),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[x["aria-labelledby"],C["aria-label"]&&!x["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:$,isInvalid:h,validationErrors:m,validationDetails:b}}function WT(e,t,r){let n=Zv.get(t)||{},{autoComplete:o,name:i=n.name,isDisabled:a=n.isDisabled}=e,{validationBehavior:s,isRequired:l}=n,{visuallyHiddenProps:c}=$m();fl(e.selectRef,t.selectedKey,t.setSelectedKey),yl({validationBehavior:s,focus:()=>{var g;return(g=r.current)===null||g===void 0?void 0:g.focus()}},t,e.selectRef);var u;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:a,required:s==="native"&&l,name:i,value:(u=t.selectedKey)!==null&&u!==void 0?u:"",onChange:g=>t.setSelectedKey(g.target.value)}}}function KT(e){let{state:t,triggerRef:r,label:n,name:o,isDisabled:i}=e,a=d.useRef(null),{containerProps:s,selectProps:l}=WT({...e,selectRef:a},t,r);var c;return t.collection.size<=300?d.createElement("div",{...s,"data-testid":"hidden-select-container"},d.createElement("label",null,n,d.createElement("select",{...l,ref:a},d.createElement("option",null),[...t.collection.getKeys()].map(u=>{let g=t.collection.getItem(u);if(g&&g.type==="item")return d.createElement("option",{key:g.key,value:g.key},g.textValue)})))):o?d.createElement("input",{type:"hidden",autoComplete:l.autoComplete,name:o,disabled:i,value:(c=t.selectedKey)!==null&&c!==void 0?c:""}):null}function HT(e,t){let r=ye(e,{labelable:!0}),{hoverProps:n}=Er({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:K(r,n,{role:"tooltip"})}}function jT(e,t,r){let{isDisabled:n,trigger:o}=e,i=$e(),a=d.useRef(!1),s=d.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=y=>{!a.current&&!s.current&&t.close(y)};d.useEffect(()=>{let y=x=>{r&&r.current&&x.key==="Escape"&&(x.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",y,!0),()=>{document.removeEventListener("keydown",y,!0)}},[r,t]);let u=()=>{o!=="focus"&&(Fn()==="pointer"?a.current=!0:a.current=!1,l())},g=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},f=()=>{s.current=!1,a.current=!1,c(!0)},p=()=>{zn()&&(s.current=!0,l())},h=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:m}=Er({isDisabled:n,onHoverStart:u,onHoverEnd:g}),{focusableProps:b}=nn({isDisabled:n,onFocus:p,onBlur:h},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...K(b,m,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:i}}}const fr=oe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}}),{withContext:UT}=rt({recipe:fr}),GT=UT("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const r=!(t!=null&&t.includes(e))&&!Eh.isValidProperty(e);return Bf(e)&&r&&!e.includes("onPress")}}),Ri=d.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=d.useRef(null),s=Ue(Nt(a,t)),l=r||(n?"a":"button")||"button",{buttonProps:c}=Ti({...i,elementType:l},s);return k.jsx(GT,{...K(i,c,{as:r,asChild:n,ref:s}),children:o})});Ri.displayName="Button";const qT=d.forwardRef(function(t,r){const{children:n,portalled:o=!0,portalRef:i,backdrop:a=!0,...s}=t;return k.jsxs(WE,{disabled:!o,container:i,children:[a&&k.jsx(kh,{}),k.jsx(m5,{children:k.jsx(v5,{ref:r,...s,asChild:!1,children:n})})]})}),YT=d.forwardRef(function(t,r){return k.jsx(x5,{position:"absolute",top:"2",insetEnd:"2",...t,asChild:!0,children:k.jsx(Ri,{size:"xs",ref:r,children:t.children})})}),XT=g5,ZT=C5,JT=E5,QT=w5,eR=kh,tR=y5,rR=b5,nR=h5,oR=S5,Gn=d.forwardRef(({children:e,...t},r)=>k.jsx(Ri,{px:0,py:0,ref:r,...t,children:e}));Gn.displayName="IconButton";const Jv=oe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:iR}=rt({recipe:Jv}),aR=iR("a"),Qv=d.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=d.useRef(null),s=Ue(Nt(a,t)),l=r||(n?"span":"a")||"a",{linkProps:c}=v2({...i,elementType:l},s);return k.jsx(aR,{...K(i,c,{as:r,asChild:n,ref:s}),children:o})});Qv.displayName="Link";const sR=e=>k.jsx(Oh,{...e}),lR=e=>k.jsx(Ih,{...e}),eb=d.forwardRef((e,t)=>k.jsx($5,{ref:t,...e}));eb.displayName="SimpleGrid";const cR=Object.assign(eb,{Item:Th}),uR=e=>k.jsx(Dh,{...e}),dR=e=>k.jsx(_h,{...e}),fR=e=>k.jsx(Vh,{...e}),pR=e=>k.jsx(Nh,{...e}),gR=e=>k.jsx(Lh,{...e}),hR=e=>k.jsx(Ah,{...e}),mR=e=>k.jsx(Fh,{...e}),vR=e=>k.jsx(Mh,{...e}),bR=e=>k.jsx(zh,{...e}),tb=d.forwardRef((e,t)=>k.jsx(J5,{ref:t,...e}));tb.displayName="Text";d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);const yR=d.createContext({}),oi=Symbol("default");function $r({values:e,children:t}){for(let[r,n]of e)t=d.createElement(r.Provider,{value:n},t);return t}function Me(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return d.useMemo(()=>{let l,c,u;return typeof t=="function"?l=t({...s,defaultClassName:o}):l=t,typeof r=="function"?c=r({...s,defaultStyle:a||{}}):c=r,typeof n=="function"?u=n({...s,defaultChildren:i}):n==null?u=i:u=n,{className:l??o,style:c||a?{...a,...c}:void 0,children:u??i,"data-rac":""}},[t,r,n,o,i,a,s])}function Oi(e,t){let r=d.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[oi])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||oi;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function je(e,t,r){let n=Oi(r,e.slot)||{},{ref:o,...i}=n,a=Ue(d.useMemo(()=>jh(t,o),[t,o])),s=K(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},g=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...g}}:s.style={...i.style,...e.style}),[s,a]}function El(){let[e,t]=d.useState(!0),r=d.useRef(!1),n=d.useCallback(o=>{r.current=!0,t(!!o)},[]);return X(()=>{r.current||t(!1)},[]),[n,e]}function rb(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}class Pl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Pl(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t}constructor(t,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=r}}class $l{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),o=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!n}filter(t){let r=new $l,n=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),a=null;for(let s of this.getChildren(o.key))if(t(s.textValue)||s.type==="header"){let l=s.clone();a==null&&(i.firstChildKey=l.key),r.firstKey==null&&(r.firstKey=i.key),a&&a.parentKey===l.parentKey?(a.nextKey=l.key,l.prevKey=a.key):l.prevKey=null,l.nextKey=null,r.addNode(l),a=l}a&&(a.type!=="header"?(i.lastChildKey=a.key,n==null?i.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=i.key,i.prevKey=n.key),i.nextKey=null,n=i,r.addNode(i)):(r.firstKey===i.key&&(r.firstKey=null),r.removeNode(a.key)))}else if(o.type==="separator"){let i=o.clone();i.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=i.key,i.prevKey=n.key,n=i,r.addNode(i))}else if(t(o.textValue)){let i=o.clone();r.firstKey==null&&(r.firstKey=i.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===i.parentKey?(n.nextKey=i.key,i.prevKey=n.key):i.prevKey=null,i.nextKey=null,r.addNode(i),n=i}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let o;n.prevKey!=null&&(o=r.getItem(n.prevKey),o.nextKey=null),r.removeNode(n.key),n=o}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class nb{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,r){if(r==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode;let n=r;for(;n;)n.index++,n=n.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let r=t.nextSibling;for(;r;)r.index--,r=r.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class Mn extends nb{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Mn?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,r,n,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof Mn?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(r=this.nextSibling)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(n=this.firstChild)===null||n===void 0?void 0:n.node.key)!==null&&l!==void 0?l:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(t,r,n,o){let i=this.ownerDocument.getMutableNode(this),{value:a,textValue:s,id:l,...c}=t;if(c.ref=r,i.props=c,i.rendered=n,i.render=o,i.value=a,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",l!=null&&l!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=l}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Pl(t,`react-aria-${++r.nodeId}`),this.ownerDocument.startTransaction()}}class xR extends nb{get isConnected(){return this.isMounted}createElement(t){return new Mn(t,this)}getMutableNode(t){let r=t.node;return this.mutatedNodes.has(t)||(r=t.node.clone(),this.mutatedNodes.add(t),t.node=r),this.markDirty(t),r}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let r=this.getMutableCollection();if(!r.getItem(t.node.key)){r.addNode(t.node);for(let n of t)this.addNode(n)}this.markDirty(t)}removeNode(t){for(let n of t)this.removeNode(n);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof Mn&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,r;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var n,o;i.commit((n=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&n!==void 0?n:null,(o=(r=this.lastChild)===null||r===void 0?void 0:r.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function ob(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=d.useMemo(()=>new WeakMap,i);return d.useMemo(()=>{if(r&&typeof t=="function"){let c=[];for(let u of r){let g=a.get(u);if(!g){g=t(u);var s,l;let f=(l=(s=g.props.id)!==null&&s!==void 0?s:u.key)!==null&&l!==void 0?l:u.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),g=d.cloneElement(g,o?{key:f,id:f,value:u}:{key:f}),a.set(u,g)}c.push(g)}return c}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const ii=d.createContext(!1),SR=typeof DocumentFragment<"u"?new DocumentFragment:null;function wR(e){let t=d.useContext(ii),r=Zt();if(t)return d.createElement(d.Fragment,null,e.children);let n=d.createElement(ii.Provider,{value:!0},e.children);return r?d.createElement("template",{"data-react-aria-hidden":!0},n):ct.createPortal(n,SR)}function ib(e){let t=(r,n)=>d.useContext(ii)?null:e(r,n);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function CR(){return d.useContext(ii)}var wo={exports:{}},xa={};/**
2
25
  * @license React
3
26
  * use-sync-external-store-shim.production.js
4
27
  *
@@ -6,7 +29,7 @@
6
29
  *
7
30
  * This source code is licensed under the MIT license found in the
8
31
  * LICENSE file in the root directory of this source tree.
9
- */var fo;function _d(){if(fo)return gr;fo=1;var r=a;function e(f,b){return f===b&&(f!==0||1/f===1/b)||f!==f&&b!==b}var t=typeof Object.is=="function"?Object.is:e,n=r.useState,o=r.useEffect,i=r.useLayoutEffect,l=r.useDebugValue;function s(f,b){var p=b(),h=n({inst:{value:p,getSnapshot:b}}),m=h[0].inst,y=h[1];return i(function(){m.value=p,m.getSnapshot=b,u(m)&&y({inst:m})},[f,p,b]),o(function(){return u(m)&&y({inst:m}),f(function(){u(m)&&y({inst:m})})},[f]),l(p),p}function u(f){var b=f.getSnapshot;f=f.value;try{var p=b();return!t(f,p)}catch{return!0}}function c(f,b){return b()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return gr.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:d,gr}var mr={};/**
32
+ */var gd;function ER(){if(gd)return xa;gd=1;var e=d;function t(g,f){return g===f&&(g!==0||1/g===1/f)||g!==g&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(g,f){var p=f(),h=n({inst:{value:p,getSnapshot:f}}),m=h[0].inst,b=h[1];return i(function(){m.value=p,m.getSnapshot=f,l(m)&&b({inst:m})},[g,p,f]),o(function(){return l(m)&&b({inst:m}),g(function(){l(m)&&b({inst:m})})},[g]),a(p),p}function l(g){var f=g.getSnapshot;g=g.value;try{var p=f();return!r(g,p)}catch{return!0}}function c(g,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return xa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,xa}var Sa={};/**
10
33
  * @license React
11
34
  * use-sync-external-store-shim.development.js
12
35
  *
@@ -14,14 +37,14 @@
14
37
  *
15
38
  * This source code is licensed under the MIT license found in the
16
39
  * LICENSE file in the root directory of this source tree.
17
- */var po;function Ud(){return po||(po=1,process.env.NODE_ENV!=="production"&&function(){function r(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}function e(p,h){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!f){var y=h();i(m,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:m,getSnapshot:h}});var $=y[0].inst,C=y[1];return u(function(){$.value=m,$.getSnapshot=h,t($)&&C({inst:$})},[p,m,h]),s(function(){return t($)&&C({inst:$}),p(function(){t($)&&C({inst:$})})},[p]),c(m),m}function t(p){var h=p.getSnapshot;p=p.value;try{var m=h();return!i(p,m)}catch{return!0}}function n(p,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,i=typeof Object.is=="function"?Object.is:r,l=o.useState,s=o.useEffect,u=o.useLayoutEffect,c=o.useDebugValue,d=!1,f=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;mr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),mr}var vo;function Gd(){return vo||(vo=1,process.env.NODE_ENV==="production"?kt.exports=_d():kt.exports=Ud()),kt.exports}var qd=Gd();const _l=a.createContext(!1),pt=a.createContext(null);function Ul(r){if(a.useContext(pt))return r.content;let{collection:t,document:n}=Jd(r.createCollection);return a.createElement(a.Fragment,null,a.createElement(jd,null,a.createElement(pt.Provider,{value:n},r.content)),a.createElement(Zd,{render:r.children,collection:t}))}function Zd({collection:r,render:e}){return e(r)}function Yd(r,e,t){let n=Se(),o=a.useRef(n);o.current=n;let i=a.useCallback(()=>o.current?t():e(),[e,t]);return qd.useSyncExternalStore(r,i)}const Xd=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Yd;function Jd(r){let[e]=a.useState(()=>new Hd((r==null?void 0:r())||new on)),t=a.useCallback(l=>e.subscribe(l),[e]),n=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),i=Xd(t,n,o);return z(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:i,document:e}}const Br=a.createContext(null);function Gl(r,e,t,n,o,i){let l=a.useCallback(u=>{u==null||u.setProps(e,t,n,i)},[e,t,n,i]),s=a.useContext(Br);if(s){let u=s.ownerDocument.nodesByProps.get(e);return u||(u=s.ownerDocument.createElement(r),u.setProps(e,t,n,i),s.appendChild(u),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,u)),o?a.createElement(Br.Provider,{value:u},o):null}return a.createElement(r,{ref:l},o)}function ql(r,e){let t=({node:o})=>e(o.props,o.props.ref,o),n=a.forwardRef((o,i)=>{if(!a.useContext(_l)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return Gl(r,o,i,"children"in o?o.children:null,null,s=>a.createElement(t,{node:s}))});return n.displayName=e.name,n}function Qd(r,e,t=Zl){let n=({node:i})=>e(i.props,i.props.ref,i),o=a.forwardRef((i,l)=>{let s=t(i);var u;return(u=Gl(r,i,l,null,s,c=>a.createElement(n,{node:c})))!==null&&u!==void 0?u:a.createElement(a.Fragment,null)});return o.displayName=e.name,o}function Zl(r){return jl({...r,addIdAndValue:!0})}const bo=a.createContext(null);function Yl(r){let e=a.useContext(bo),t=((e==null?void 0:e.dependencies)||[]).concat(r.dependencies),n=r.idScope||(e==null?void 0:e.idScope),o=Zl({...r,idScope:n,dependencies:t});return a.useContext(pt)&&(o=a.createElement(ef,null,o)),e=a.useMemo(()=>({dependencies:t,idScope:n}),[n,...t]),a.createElement(bo.Provider,{value:e},o)}function ef({children:r}){let e=a.useContext(pt),t=a.useMemo(()=>a.createElement(pt.Provider,{value:null},a.createElement(_l.Provider,{value:!0},r)),[r]);return Se()?a.createElement(Br.Provider,{value:e},t):Ie.createPortal(t,e)}const Xl=a.createContext({}),tf=a.createContext(null),rf=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),ln=a.createContext({}),nf=Wl(function(e,t){[e,t]=re(e,t,ln),e=of(e);let n=e,{isPending:o}=n,{buttonProps:i,isPressed:l}=Ut(e,t),{focusProps:s,isFocused:u,isFocusVisible:c}=we(e),{hoverProps:d,isHovered:f}=Ne({...e,isDisabled:e.isDisabled||o}),b={isHovered:f,isPressed:(n.isPressed||l)&&!o,isFocused:u,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:o??!1},p=J({...e,values:b,defaultClassName:"react-aria-Button"}),h=Y(i.id),m=Y(),y=i["aria-labelledby"];o&&(y?y=`${y} ${m}`:i["aria-label"]&&(y=`${h} ${m}`));let $=a.useRef(o);return a.useEffect(()=>{let C={"aria-labelledby":y||h};(!$.current&&u&&o||$.current&&u&&!o)&&qn(C,"assertive"),$.current=o},[o,u,y,h]),a.createElement("button",{...G(e,{propNames:rf}),...I(i,s,d),...p,type:i.type==="submit"&&o?"button":i.type,id:h,ref:t,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":b.isPressed||void 0,"data-hovered":f||void 0,"data-focused":u||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},a.createElement(tf.Provider,{value:{id:m}},p.children))});function of(r){return r.isPending&&(r.onPress=void 0,r.onPressStart=void 0,r.onPressEnd=void 0,r.onPressChange=void 0,r.onPressUp=void 0,r.onKeyDown=void 0,r.onKeyUp=void 0,r.onClick=void 0,r.href=void 0),r}const Zt=a.createContext({}),Jl=a.createContext(null);class ho{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&(n=t.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t==null?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let s of l.childNodes)t(s)};for(let l of e)t(l);let n=null,o=0;for(let[l,s]of this.keyMap)n?(n.nextKey=l,s.prevKey=n.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}}class se extends Set{constructor(e,t,n){super(e),e instanceof se?(this.anchorKey=t??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=t??null,this.currentKey=n??null)}}function lf(r,e){if(r.size!==e.size)return!1;for(let t of r)if(!e.has(t))return!1;return!0}function af(r){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=r,l=a.useRef(!1),[,s]=a.useState(!1),u=a.useRef(null),c=a.useRef(null),[,d]=a.useState(null),f=a.useMemo(()=>go(r.selectedKeys),[r.selectedKeys]),b=a.useMemo(()=>go(r.defaultSelectedKeys,new se),[r.defaultSelectedKeys]),[p,h]=Ce(f,b,r.onSelectionChange),m=a.useMemo(()=>r.disabledKeys?new Set(r.disabledKeys):new Set,[r.disabledKeys]),[y,$]=a.useState(o);o==="replace"&&y==="toggle"&&typeof p=="object"&&p.size===0&&$("replace");let C=a.useRef(o);return a.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(w){l.current=w,s(w)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(w,F="first"){u.current=w,c.current=F,d(w)},selectedKeys:p,setSelectedKeys(w){(n||!lf(w,p))&&h(w)},disabledKeys:m,disabledBehavior:i}}function go(r,e){return r?r==="all"?"all":new se(r):e}class sf{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(n=>t.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!e||o&&hr(this.collection,o,e)<0)&&(e=o)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!e||o&&hr(this.collection,o,e)>0)&&(e=o)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys==="all")n=new se([t],t,t);else{let l=this.state.selectedKeys;var o;let s=(o=l.anchorKey)!==null&&o!==void 0?o:t;n=new se(l,s,t);var i;for(let u of this.getKeyRange(s,(i=l.currentKey)!==null&&i!==void 0?i:t))n.delete(u);for(let u of this.getKeyRange(t,s))this.canSelectItem(u)&&n.add(u)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),o=this.collection.getItem(t);return n&&o?hr(this.collection,n,o)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let o=[],i=e;for(;i!=null;){let l=this.collection.getItem(i);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===t)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new se(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new se([t],t,t):new se;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new se;for(let n of e){let o=this.getKey(n);if(o!=null&&(t.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let l=this.collection.getItem(n);(l==null?void 0:l.type)==="item"&&e.push(n);var i;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&t((i=(o=Jc(el(l,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new se)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(t=n.props)===null||t===void 0)&&t.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(t=n.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,n;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(t=n.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}constructor(e,t,n){this.collection=e,this.state=t;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function Ql(r){let{filter:e,layoutDelegate:t}=r,n=af(r),o=a.useMemo(()=>r.disabledKeys?new Set(r.disabledKeys):new Set,[r.disabledKeys]),i=a.useCallback(d=>e?new ho(e(d)):new ho(d),[e]),l=a.useMemo(()=>({suppressTextValueWarning:r.suppressTextValueWarning}),[r.suppressTextValueWarning]),s=Xc(r,i,l),u=a.useMemo(()=>new sf(s,n,{layoutDelegate:t}),[s,n,t]);const c=a.useRef(null);return a.useEffect(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)&&c.current){const $=c.current.getItem(n.focusedKey),C=[...c.current.getKeys()].map(v=>{const R=c.current.getItem(v);return(R==null?void 0:R.type)==="item"?R:null}).filter(v=>v!==null),w=[...s.getKeys()].map(v=>{const R=s.getItem(v);return(R==null?void 0:R.type)==="item"?R:null}).filter(v=>v!==null);var d,f;const F=((d=C==null?void 0:C.length)!==null&&d!==void 0?d:0)-((f=w==null?void 0:w.length)!==null&&f!==void 0?f:0);var b,p,h;let k=Math.min(F>1?Math.max(((b=$==null?void 0:$.index)!==null&&b!==void 0?b:0)-F+1,0):(p=$==null?void 0:$.index)!==null&&p!==void 0?p:0,((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0)-1),D=null,B=!1;for(;k>=0;){if(!u.isDisabled(w[k].key)){D=w[k];break}if(k<w.length-1&&!B)k++;else{B=!0;var m,y;k>((m=$==null?void 0:$.index)!==null&&m!==void 0?m:0)&&(k=(y=$==null?void 0:$.index)!==null&&y!==void 0?y:0),k--}}n.setFocusedKey(D?D.key:null)}c.current=s},[s,u,n,n.focusedKey]),{collection:s,disabledKeys:o,selectionManager:u}}function uf(r){var e;let[t,n]=Ce(r.selectedKey,(e=r.defaultSelectedKey)!==null&&e!==void 0?e:null,r.onSelectionChange),o=a.useMemo(()=>t!=null?[t]:[],[t]),{collection:i,disabledKeys:l,selectionManager:s}=Ql({...r,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===t&&r.onSelectionChange&&r.onSelectionChange(f),n(f)}}),u=t!=null?i.getItem(t):null;return{collection:i,disabledKeys:l,selectionManager:s,selectedKey:t,setSelectedKey:n,selectedItem:u}}function Yt(r){let[e,t]=Ce(r.isOpen,r.defaultOpen||!1,r.onOpenChange);const n=a.useCallback(()=>{t(!0)},[t]),o=a.useCallback(()=>{t(!1)},[t]),i=a.useCallback(()=>{t(!e)},[t,e]);return{isOpen:e,setOpen:t,open:n,close:o,toggle:i}}function cf(r){let[e,t]=Ce(r.isExpanded,r.defaultExpanded||!1,r.onExpandedChange);const n=a.useCallback(()=>{t(!0)},[t]),o=a.useCallback(()=>{t(!1)},[t]),i=a.useCallback(()=>{t(!e)},[t,e]);return{isExpanded:e,setExpanded:t,expand:n,collapse:o,toggle:i}}function df(r){let{allowsMultipleExpanded:e=!1,isDisabled:t=!1}=r,[n,o]=Ce(a.useMemo(()=>r.expandedKeys?new Set(r.expandedKeys):void 0,[r.expandedKeys]),a.useMemo(()=>r.defaultExpandedKeys?new Set(r.defaultExpandedKeys):new Set,[r.defaultExpandedKeys]),r.onExpandedChange);return a.useEffect(()=>{!e&&n.size>1&&o(new Set([n.values().next().value]))}),{allowsMultipleExpanded:e,isDisabled:t,expandedKeys:n,setExpandedKeys:o,toggleKey(i){let l;e?(l=new Set(n),l.has(i)?l.delete(i):l.add(i)):l=new Set(n.has(i)?[]:[i]),o(l)}}}function ff(r){let e=Yt(r),[t,n]=a.useState(null),[o,i]=a.useState([]),l=()=>{i([]),e.close()};return{focusStrategy:t,...e,open(c=null){n(c),e.open()},toggle(c=null){n(c),e.toggle()},close(){l()},expandedKeysStack:o,openSubmenu:(c,d)=>{i(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{i(f=>f[d]===c?f.slice(0,d):f)}}}function pf(r){let e=Yt(r),[t,n]=a.useState(null),o=uf({...r,onSelectionChange:u=>{r.onSelectionChange!=null&&r.onSelectionChange(u),e.close(),i.commitValidation()}}),i=Yr({...r,value:o.selectedKey}),[l,s]=a.useState(!1);return{...i,...o,...e,focusStrategy:t,open(u=null){o.collection.size!==0&&(n(u),e.open())},toggle(u=null){o.collection.size!==0&&(n(u),e.toggle())},isFocused:l,setFocused:s}}const vf=1500,mo=500;let De={},bf=0,rt=!1,pe=null,ke=null;function ea(r={}){let{delay:e=vf,closeDelay:t=mo}=r,{isOpen:n,open:o,close:i}=Yt(r),l=a.useMemo(()=>`${++bf}`,[]),s=a.useRef(null),u=a.useRef(i),c=()=>{De[l]=b},d=()=>{for(let h in De)h!==l&&(De[h](!0),delete De[h])},f=()=>{s.current&&clearTimeout(s.current),s.current=null,d(),c(),rt=!0,o(),pe&&(clearTimeout(pe),pe=null),ke&&(clearTimeout(ke),ke=null)},b=h=>{h||t<=0?(s.current&&clearTimeout(s.current),s.current=null,u.current()):s.current||(s.current=setTimeout(()=>{s.current=null,u.current()},t)),pe&&(clearTimeout(pe),pe=null),rt&&(ke&&clearTimeout(ke),ke=setTimeout(()=>{delete De[l],ke=null,rt=!1},Math.max(mo,t)))},p=()=>{d(),c(),!n&&!pe&&!rt?pe=setTimeout(()=>{pe=null,rt=!0,f()},e):n||f()};return a.useEffect(()=>{u.current=i},[i]),a.useEffect(()=>()=>{s.current&&clearTimeout(s.current),De[l]&&delete De[l]},[l]),{isOpen:n,open:h=>{!h&&e>0&&!s.current?p():f()},close:b}}const ta=a.createContext(null),Nr=a.createContext({});let hf=r=>{let{onHoverStart:e,onHoverChange:t,onHoverEnd:n,...o}=r;return o};const gf=Wl(function(e,t){[e,t]=re(e,t,Nr);let{hoverProps:n,isHovered:o}=Ne(e),{isFocused:i,isFocusVisible:l,focusProps:s}=we({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=J({...e,values:{isHovered:o,isFocused:i,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return a.createElement("input",{...I(hf(e),s,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})}),mf=a.createContext({}),yf=a.createContext(null),$f=a.forwardRef(function(e,t){[e,t]=re(e,t,yf);let{validationBehavior:n}=qt(ta)||{};var o,i;let l=(i=(o=e.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=a.useRef(null),[u,c]=re({},s,Nr),[d,f]=rn(),[b,p]=a.useState("input"),{labelProps:h,inputProps:m,descriptionProps:y,errorMessageProps:$,...C}=fc({...Hl(e),inputElementType:b,label:f,validationBehavior:l},c),w=a.useCallback(D=>{c.current=D,D&&p(D instanceof HTMLTextAreaElement?"textarea":"input")},[c]),F=J({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:C.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),k=G(e);return delete k.id,a.createElement("div",{...k,...F,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":C.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(ze,{values:[[Xl,{...h,ref:d}],[Nr,{...I(m,u),ref:w}],[mf,{...m,ref:w}],[Zt,{slots:{description:y,errorMessage:$}}],[Jl,C]]},F.children))}),xf=a.createContext(null),Pf=a.createContext(null),Sf={CollectionRoot({collection:r,renderDropIndicator:e}){return yo(r,null,e)},CollectionBranch({collection:r,parent:e,renderDropIndicator:t}){return yo(r,e,t)}};function yo(r,e,t){return jl({items:e?r.getChildren(e.key):r,dependencies:[t],children(n){var o;let i=n.render(n);if(!t||n.type!=="item")return i;let l=n.key,s=r.getKeyAfter(l);return a.createElement(a.Fragment,null,t({type:"item",key:l,dropPosition:"before"}),i,(s==null||((o=r.getItem(s))===null||o===void 0?void 0:o.type)!=="item")&&t({type:"item",key:l,dropPosition:"after"}))}})}const an=a.createContext(Sf);var ra={};ra={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var na={};na={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var oa={};oa={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var ia={};ia={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var la={};la={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var aa={};aa={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var sa={};sa={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var ua={};ua={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var ca={};ca={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var da={};da={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var fa={};fa={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var pa={};pa={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var va={};va={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var ba={};ba={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var ha={};ha={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var ga={};ga={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var ma={};ma={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var ya={};ya={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var $a={};$a={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var xa={};xa={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Pa={};Pa={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var Sa={};Sa={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var Ca={};Ca={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var wa={};wa={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Ea={};Ea={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Ta={};Ta={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Da={};Da={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var ka={};ka={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Ra={};Ra={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Ka={};Ka={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Fa={};Fa={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Ma={};Ma={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var La={};La={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Aa={};Aa={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var Ia={};Ia={"ar-AE":ra,"bg-BG":na,"cs-CZ":oa,"da-DK":ia,"de-DE":la,"el-GR":aa,"en-US":sa,"es-ES":ua,"et-EE":ca,"fi-FI":da,"fr-FR":fa,"he-IL":pa,"hr-HR":va,"hu-HU":ba,"it-IT":ha,"ja-JP":ga,"ko-KR":ma,"lt-LT":ya,"lv-LV":$a,"nb-NO":xa,"nl-NL":Pa,"pl-PL":Sa,"pt-BR":Ca,"pt-PT":wa,"ro-RO":Ea,"ru-RU":Ta,"sk-SK":Da,"sl-SI":ka,"sr-SP":Ra,"sv-SE":Ka,"tr-TR":Fa,"uk-UA":Ma,"zh-CN":La,"zh-TW":Aa};const Xt=a.createContext({}),Ba=a.createContext(null),Cf=a.forwardRef(function(e,t){let{render:n}=a.useContext(Ba);return a.createElement(a.Fragment,null,n(e,t))});function Na(r,e){var t;let n=r==null?void 0:r.renderDropIndicator,o=r==null||(t=r.isVirtualDragging)===null||t===void 0?void 0:t.call(r),i=a.useCallback(l=>{if(o||e!=null&&e.isDropTarget(l))return n?n(l):a.createElement(Cf,{target:l})},[e==null?void 0:e.target,o,n]);return r!=null&&r.useDropIndicator?i:void 0}function wf(r,e,t){var n,o;let i=r.focusedKey,l=null;if(!(e==null||(n=e.isVirtualDragging)===null||n===void 0)&&n.call(e)&&(t==null||(o=t.target)===null||o===void 0?void 0:o.type)==="item"){l=t.target.key;var s;t.target.dropPosition==="after"&&(l=(s=t.collection.getKeyAfter(l))!==null&&s!==void 0?s:l)}return a.useMemo(()=>new Set([i,l].filter(u=>u!=null)),[i,l])}const Oa=a.createContext({}),Ef=ql("header",function(e,t){return[e,t]=re(e,t,Oa),a.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)}),Tf=a.createContext({}),sn=a.createContext(null),bt=a.createContext(null),Df=a.forwardRef(function(e,t){[e,t]=re(e,t,sn);let n=a.useContext(bt);return n?a.createElement(za,{state:n,props:e,listBoxRef:t}):a.createElement(Ul,{content:a.createElement(Yl,e)},o=>a.createElement(kf,{props:e,listBoxRef:t,collection:o}))});function kf({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:n}=a.useContext(an),{filterFn:o,collectionProps:i,collectionRef:l}=a.useContext(xf)||{};e=ne(a.useMemo(()=>ko(e,l!==void 0?l:null),[l,e]));let s=a.useMemo(()=>o?t.filter(o):t,[t,o]),u=Ql({...r,collection:s,layoutDelegate:n});return a.createElement(za,{state:u,props:{...r,...i},listBoxRef:e})}function za({state:r,props:e,listBoxRef:t}){let{dragAndDropHooks:n,layout:o="stack",orientation:i="vertical"}=e,{collection:l,selectionManager:s}=r,u=!!(n!=null&&n.useDraggableCollectionState),c=!!(n!=null&&n.useDroppableCollectionState),{direction:d}=Oe(),{disabledBehavior:f,disabledKeys:b}=s,p=Zr({usage:"search",sensitivity:"base"}),{isVirtualized:h,layoutDelegate:m,dropTargetDelegate:y,CollectionRoot:$}=a.useContext(an),C=a.useMemo(()=>e.keyboardDelegate||new tn({collection:l,collator:p,ref:t,disabledKeys:b,disabledBehavior:f,layout:o,orientation:i,direction:d,layoutDelegate:m}),[l,p,t,f,b,i,d,e.keyboardDelegate,o,m]),{listBoxProps:w}=qc({...e,shouldSelectOnPressUp:u||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:h},r,t),F=a.useRef(u),k=a.useRef(c);a.useEffect(()=>{F.current!==u&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),k.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[u,c]);let D,B,v,R=!1,K=null,E=a.useRef(null);if(u&&n){D=n.useDraggableCollectionState({collection:l,selectionManager:s,preview:n.renderDragPreview?E:void 0}),n.useDraggableCollection({},D,t);let T=n.DragPreview;K=n.renderDragPreview?a.createElement(T,{ref:E},n.renderDragPreview):null}if(c&&n){B=n.useDroppableCollectionState({collection:l,selectionManager:s});let T=n.dropTargetDelegate||y||new n.ListDropTargetDelegate(l,t,{orientation:i,layout:o,direction:d});v=n.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:T},B,t),R=B.isDropTarget({type:"root"})}let{focusProps:L,isFocused:g,isFocusVisible:P}=we(),M={isDropTarget:R,isEmpty:r.collection.size===0,isFocused:g,isFocusVisible:P,layout:e.layout||"stack",state:r},N=J({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:M}),O=null;return r.collection.size===0&&e.renderEmptyState&&(O=a.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(M))),a.createElement(ei,null,a.createElement("div",{...G(e),...I(w,L,v==null?void 0:v.collectionProps),...N,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":R||void 0,"data-empty":r.collection.size===0||void 0,"data-focused":g||void 0,"data-focus-visible":P||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},a.createElement(ze,{values:[[sn,e],[bt,r],[Xt,{dragAndDropHooks:n,dragState:D,dropState:B}],[Tf,{elementType:"div"}],[Ba,{render:Ff}],[Pf,{name:"ListBoxSection",render:Ha}]]},a.createElement($,{collection:l,scrollRef:t,persistedKeys:wf(s,n,B),renderDropIndicator:Na(n,B)})),O,K))}function Ha(r,e,t,n="react-aria-ListBoxSection"){let o=a.useContext(bt),{dragAndDropHooks:i,dropState:l}=a.useContext(Xt),{CollectionBranch:s}=a.useContext(an),[u,c]=rn();var d;let{headingProps:f,groupProps:b}=rd({heading:c,"aria-label":(d=r["aria-label"])!==null&&d!==void 0?d:void 0}),p=J({defaultClassName:n,className:r.className,style:r.style,values:{}});return a.createElement("section",{...G(r),...b,...p,ref:e},a.createElement(Oa.Provider,{value:{...f,ref:u}},a.createElement(s,{collection:o.collection,parent:t,renderDropIndicator:Na(i,l)})))}const Rf=Qd("section",Ha),Kf=ql("item",function(e,t,n){let o=ne(t),i=a.useContext(bt),{dragAndDropHooks:l,dragState:s,dropState:u}=a.useContext(Xt),{optionProps:c,labelProps:d,descriptionProps:f,...b}=td({key:n.key,"aria-label":e==null?void 0:e["aria-label"]},i,o),{hoverProps:p,isHovered:h}=Ne({isDisabled:!b.allowsSelection&&!b.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),m=null;s&&l&&(m=l.useDraggableItem({key:n.key},s));let y=null;u&&l&&(y=l.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},u,o));let $=s&&s.isDragging(n.key),C=J({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...b,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:$,isDropTarget:y==null?void 0:y.isDropTarget}});a.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let w=e.href?"a":"div";return a.createElement(w,{...I(c,p,m==null?void 0:m.dragProps,y==null?void 0:y.dropProps),...C,ref:o,"data-allows-dragging":!!s||void 0,"data-selected":b.isSelected||void 0,"data-disabled":b.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":b.isFocused||void 0,"data-focus-visible":b.isFocusVisible||void 0,"data-pressed":b.isPressed||void 0,"data-dragging":$||void 0,"data-drop-target":(y==null?void 0:y.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},a.createElement(ze,{values:[[Zt,{slots:{label:d,description:f}}]]},C.children))});function Ff(r,e){e=ne(e);let{dragAndDropHooks:t,dropState:n}=a.useContext(Xt),{dropIndicatorProps:o,isHidden:i,isDropTarget:l}=t.useDropIndicator(r,n,e);return i?null:a.createElement(Lf,{...r,dropIndicatorProps:o,isDropTarget:l,ref:e})}function Mf(r,e){let{dropIndicatorProps:t,isDropTarget:n,...o}=r,i=J({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return a.createElement("div",{...t,...i,role:"option",ref:e,"data-drop-target":n||void 0})}const Lf=a.forwardRef(Mf),Va=a.createContext({placement:"bottom"}),un=a.createContext(null),ja=a.forwardRef(function(e,t){[e,t]=re(e,t,un);let n=a.useContext(Jt),o=Yt(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?o:n,l=zo(t,i.isOpen)||e.isExiting||!1;if(Wd()){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,u)}return i&&!i.isOpen&&!l?null:a.createElement(Af,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:l})});function Af({state:r,isExiting:e,UNSTABLE_portalContainer:t,...n}){let o=a.useRef(null),[i,l]=a.useState(0);z(()=>{o.current&&r.isOpen&&l(o.current.getBoundingClientRect().width)},[r.isOpen,o]);var s;let{popoverProps:u,underlayProps:c,arrowProps:d,placement:f}=Ic({...n,offset:(s=n.offset)!==null&&s!==void 0?s:8,arrowSize:i},r),b=n.popoverRef,p=Oo(b,!!f)||n.isEntering||!1,h=J({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:f,isEntering:p,isExiting:e}}),m={...u.style,...h.style};return a.createElement(Oc,{...n,isExiting:e,portalContainer:t},!n.isNonModal&&r.isOpen&&a.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),a.createElement("div",{...I(G(n),u),...h,ref:b,slot:n.slot||void 0,style:m,"data-trigger":n.trigger,"data-placement":f,"data-entering":p||void 0,"data-exiting":e||void 0},!n.isNonModal&&a.createElement(oo,{onDismiss:r.close}),a.createElement(Va.Provider,{value:{...d,placement:f,ref:o}},h.children),a.createElement(oo,{onDismiss:r.close})))}const If=a.createContext(null),Wa=a.createContext(null),Jt=a.createContext(null);function Bf(r){let e=ff(r),t=a.useRef(null),{triggerProps:n,overlayProps:o}=hi({type:"dialog"},e,t);return n.id=Y(),o["aria-labelledby"]=n.id,a.createElement(ze,{values:[[Jt,e],[If,e],[Wa,o],[un,{trigger:"DialogTrigger",triggerRef:t}]]},a.createElement(uu,{...n,ref:t,isPressed:e.isOpen},r.children))}const Nf=a.forwardRef(function(e,t){let n=e["aria-labelledby"];[e,t]=re(e,t,Wa);let{dialogProps:o,titleProps:i}=id({...e,"aria-labelledby":n},t),l=a.useContext(Jt);!o["aria-label"]&&!o["aria-labelledby"]&&(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=J({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return a.createElement("section",{...G(e),...o,...s,ref:t,slot:e.slot||void 0},a.createElement(ze,{values:[[zd,{slots:{[Nt]:{},title:{...i,level:2}}}],[ln,{slots:{[Nt]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))});function Of(r){return r&&r.__esModule?r.default:r}const cn=a.createContext(null),dn=a.createContext(null),zf=a.forwardRef(function(e,t){[e,t]=re(e,t,cn);let{children:n,isDisabled:o=!1,isInvalid:i=!1,isRequired:l=!1}=e,s=a.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,o,i,l]);return a.createElement(Ul,{content:s},u=>a.createElement(Hf,{props:e,collection:u,selectRef:t}))});function Hf({props:r,selectRef:e,collection:t}){let{validationBehavior:n}=qt(ta)||{};var o,i;let l=(i=(o=r.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=pf({...r,collection:t,children:void 0,validationBehavior:l}),{isFocusVisible:u,focusProps:c}=we({within:!0}),d=a.useRef(null),[f,b]=rn(),{labelProps:p,triggerProps:h,valueProps:m,menuProps:y,descriptionProps:$,errorMessageProps:C,...w}=sd({...Hl(r),label:b,validationBehavior:l},s,d),[F,k]=a.useState(null),D=a.useCallback(()=>{d.current&&k(d.current.offsetWidth+"px")},[d]);$r({ref:d,onResize:D});let B=a.useMemo(()=>({isOpen:s.isOpen,isFocused:s.isFocused,isFocusVisible:u,isDisabled:r.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:r.isRequired||!1}),[s.isOpen,s.isFocused,u,r.isDisabled,w.isInvalid,r.isRequired]),v=J({...r,values:B,defaultClassName:"react-aria-Select"}),R=G(r);delete R.id;let K=a.useRef(null);return a.createElement(ze,{values:[[cn,r],[dn,s],[_a,m],[Xl,{...p,ref:f,elementType:"span"}],[ln,{...h,ref:d,isPressed:s.isOpen}],[Jt,s],[un,{trigger:"Select",triggerRef:d,scrollRef:K,placement:"bottom start",style:{"--trigger-width":F}}],[sn,{...y,ref:K}],[bt,s],[Zt,{slots:{description:$,errorMessage:C}}],[Jl,w]]},a.createElement("div",{...R,...v,...c,ref:e,slot:r.slot||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":u||void 0,"data-open":s.isOpen||void 0,"data-disabled":r.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-required":r.isRequired||void 0}),a.createElement(cd,{autoComplete:r.autoComplete,state:s,triggerRef:d,label:b,name:r.name,isDisabled:r.isDisabled}))}const _a=a.createContext(null),Vf=a.forwardRef(function(e,t){var n,o;[e,t]=re(e,t,_a);let i=a.useContext(dn),{placeholder:l}=qt(cn),s=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,u=s==null?void 0:s.props.children;typeof u=="function"&&(u=u({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=qr(Of(Ia),"react-aria-components");var d,f,b;let p=J({...e,defaultChildren:(d=u??l)!==null&&d!==void 0?d:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(n=i.selectedItem)===null||n===void 0?void 0:n.value)!==null&&f!==void 0?f:null,selectedText:(b=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&b!==void 0?b:null,isPlaceholder:!s}}),h=G(e);return a.createElement("span",{ref:t,...h,...p,"data-placeholder":!s||void 0},a.createElement(Zt.Provider,{value:void 0},p.children))}),jf=a.createContext({}),Ua=a.createContext(null),Wf=a.forwardRef(function(e,t){[e,t]=re(e,t,jf);let n=dc(e),{groupProps:o}=ec(e,n,t),i=J({...e,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return a.createElement("div",{...o,...i,ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(Ua.Provider,{value:n},i.children))}),_f=a.createContext({}),Uf=a.forwardRef(function(e,t){[e,t]=re(e,t,_f);let n=a.useContext(Ua),o=ci(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(m){n.setSelected(e.id,m)}}:e),{buttonProps:i,isPressed:l,isSelected:s,isDisabled:u}=n&&e.id!=null?tc({...e,id:e.id},n,t):li({...e,id:e.id!=null?String(e.id):void 0},o,t),{focusProps:c,isFocused:d,isFocusVisible:f}=we(e),{hoverProps:b,isHovered:p}=Ne(e),h=J({...e,id:void 0,values:{isHovered:p,isPressed:l,isFocused:d,isSelected:o.isSelected,isFocusVisible:f,isDisabled:u,state:o},defaultClassName:"react-aria-ToggleButton"});return a.createElement("button",{...I(i,c,b),...h,ref:t,slot:e.slot||void 0,"data-focused":d||void 0,"data-disabled":u||void 0,"data-pressed":l||void 0,"data-selected":s||void 0,"data-hovered":p||void 0,"data-focus-visible":f||void 0})}),fn=a.createContext(null),Ga=a.createContext(null);function Gf(r){let e=ea(r),t=a.useRef(null),{triggerProps:n,tooltipProps:o}=fd(r,e,t);return a.createElement(ze,{values:[[fn,e],[Ga,{...o,triggerRef:t}]]},a.createElement(Lu,{...n,ref:t},r.children))}const qf=a.forwardRef(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=re(t,n,Ga);let o=a.useContext(fn),i=ea(t),l=t.isOpen!=null||t.defaultOpen!=null||!o?i:o,s=zo(n,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!s?null:a.createElement(Mc,{portalContainer:e},a.createElement(Zf,{...t,tooltipRef:n,isExiting:s}))});function Zf(r){let e=a.useContext(fn),t=a.useRef(null),[n,o]=a.useState(0);z(()=>{t.current&&e.isOpen&&o(t.current.getBoundingClientRect().width)},[e.isOpen,t]);let{overlayProps:i,arrowProps:l,placement:s}=bi({placement:r.placement||"top",targetRef:r.triggerRef,overlayRef:r.tooltipRef,offset:r.offset,crossOffset:r.crossOffset,isOpen:e.isOpen,arrowSize:n,arrowBoundaryOffset:r.arrowBoundaryOffset,shouldFlip:r.shouldFlip,onClose:()=>e.close(!0)}),u=Oo(r.tooltipRef,!!s)||r.isEntering||!1,c=J({...r,defaultClassName:"react-aria-Tooltip",values:{placement:s,isEntering:u,isExiting:r.isExiting,state:e}});r=I(r,i);let{tooltipProps:d}=dd(r,e);return a.createElement("div",{...d,ref:r.tooltipRef,...c,style:{...i.style,...c.style},"data-placement":s??void 0,"data-entering":u||void 0,"data-exiting":r.isExiting||void 0},a.createElement(Va.Provider,{value:{...l,placement:s,ref:t}},c.children))}const qa=S.defineRecipe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:Yf}=S.createRecipeContext({recipe:qa}),Xf=Yf("div"),Za=a.forwardRef(function({children:e,placement:t="bottom",...n},o){return x.jsx(Xf,{ref:o,asChild:!0,...n,children:x.jsx(qf,{placement:t,...n,children:e})})});Za.displayName="Tooltip";const Ya=Gf;Ya.displayName="TooltipTrigger";const Xa=a.forwardRef(function(e,t){const n=a.useRef(null),o=ne(S.mergeRefs(n,t)),{focusableProps:i}=qe(e,o);if(a.isValidElement(e.children))return a.cloneElement(e.children,I(i,e.children.props,{ref:o}))});Xa.displayName="MakeElementFocusable";function Jf(r){return x.jsx(Co.ThemeProvider,{attribute:"class",disableTransitionOnChange:!0,...r})}function pn(){const{resolvedTheme:r,setTheme:e}=Co.useTheme();return{colorMode:r,setColorMode:e,toggleColorMode:()=>{e(r==="light"?"dark":"light")}}}function Qf(r,e){const{colorMode:t}=pn();return t==="light"?r:e}function ep(){const{colorMode:r}=pn();return r==="light"?"Light Theme":"DarkTheme"}const tp=S.defineAnimationStyles({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function rp(r){var t;const e={};for(const n in r)(t=r[n])!=null&&t.value?e[n]=r[n].value:e[n]=r[n];return e}const np=rp(W.themeTokens.breakpoints),op=S.defineGlobalStyles({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),ip={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},lp=S.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),ap=S.defineRecipe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),sp=S.defineRecipe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),up=S.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),vn=S.defineRecipe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),cp={avatar:wo,button:Re,code:ap,heading:sp,kbd:up,link:Bl,tooltip:qa,textInput:vn},dp=S.defineSemanticTokens.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...W.themeTokens.color["system-palettes"],...W.themeTokens.color["brand-palettes"],...W.themeTokens.color["semantic-palettes"]}),fp=S.defineSemanticTokens.shadows(W.themeTokens.shadow),pp=S.defineSemanticTokens.radii({}),vp={colors:dp,shadows:fp,radii:pp},bp=S.defineSlotRecipe({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),hp=S.defineSlotRecipe({className:"chakra-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),gp=S.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),mp=S.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),Ja=S.defineSlotRecipe({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),yp=S.defineSlotRecipe({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),$p={dialog:bp,list:hp,table:gp,checkbox:mp,select:Ja,accordion:yp},xp=S.defineTextStyles(W.themeTokens.textStyle),Pp=S.defineTokens.durations(W.themeTokens.aspectRatio),Sp=S.defineTokens.animations(W.themeTokens.animation),Cp=S.defineTokens.blurs(W.themeTokens.blur),wp=S.defineTokens.borders(W.themeTokens.border),Ep=S.defineTokens.colors({...W.themeTokens.color["blacks-and-whites"]}),Tp=S.defineTokens.durations(W.themeTokens.duration),Dp=S.defineTokens.easings(W.themeTokens.easing),kp=S.defineTokens.fonts(W.themeTokens.fontFamily),Rp=S.defineTokens.fontSizes(W.themeTokens.fontSize),Kp=S.defineTokens.fontWeights(W.themeTokens.fontWeight),Fp=r=>Object.keys(r).reduce((e,t)=>{const o=parseFloat(r[t].value)/100;return e[t]={value:`${o}em`},e},{}),Mp=S.defineTokens.letterSpacings(Fp(W.themeTokens.letterSpacing)),Lp=S.defineTokens.lineHeights(W.themeTokens.lineHeight),Ap=S.defineTokens.radii(W.themeTokens.borderRadius),Ip=S.defineTokens.spacing(W.themeTokens.spacing),Bp=S.defineTokens.sizes({...W.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),Np=S.defineTokens.zIndex(W.themeTokens.zIndex),Op=S.defineTokens.cursor(W.themeTokens.cursor),zp={aspectRatios:Pp,animations:Sp,blurs:Cp,borders:wp,colors:Ep,durations:Tp,easings:Dp,fonts:kp,fontSizes:Rp,fontWeights:Kp,letterSpacings:Mp,lineHeights:Lp,radii:Ap,spacing:Ip,sizes:Bp,zIndex:Np,cursor:Op},Hp=S.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:op,theme:{breakpoints:np,keyframes:ip,tokens:zp,semanticTokens:vp,recipes:cp,slotRecipes:$p,textStyles:xp,layerStyles:lp,animationStyles:tp}}),Qa=S.createSystem(S.defaultBaseConfig,Hp);function Vp(){const[r,e]=a.useState(t());function t(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return a.useEffect(()=>{const n=document.documentElement,o=new MutationObserver(()=>{const i=t();e(i)});return o.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),r}function jp({children:r,...e}){return x.jsx(S.ChakraProvider,{value:Qa,children:x.jsx(Jf,{enableSystem:!1,...e,children:x.jsx(x.Fragment,{children:r})})})}function Qt(r){const e={},t={...r};return Object.keys(r).forEach(n=>{Object.prototype.hasOwnProperty.call(r,n)&&S.defaultSystem.isValidProperty(n)&&(e[n]=r[n],delete t[n])}),[e,t]}const{withProvider:Wp,withContext:es}=S.createSlotRecipeContext({key:"checkbox"}),_p=Wp("label","root"),Up=es("span","label"),Gp=es("span","indicator"),ts=a.forwardRef((r,e)=>{const t=a.useRef(null),n=ne(S.mergeRefs(t,e)),o=S.useSlotRecipe({key:"checkbox"}),[i]=o.splitVariantProps(r),[l,s]=Qt(r),u=ci(r),{inputProps:c}=cc(s,u,n),{isFocused:d,focusProps:f}=we(),b=u.isSelected&&!r.isIndeterminate,p=r.isIndeterminate,h={"data-selected":b,"data-indeterminate":p,"data-invalid":r.isInvalid,"data-disabled":r.isDisabled,"data-focus":d||void 0};return x.jsxs(_p,{"data-slot":"root",...i,...h,...l,children:[x.jsxs(Gp,{"data-slot":"indicator",...h,children:[b&&x.jsx(ee.Check,{}),p&&x.jsx(ee.Remove,{}),x.jsx(bn,{as:"span",children:x.jsx("input",{...I(c,f),ref:n})})]}),r.children&&x.jsx(Up,{"data-slot":"label",...h,children:r.children})]})});ts.displayName="Checkbox";const er=a.forwardRef((r,e)=>x.jsx(S.Stack,{ref:e,...r}));er.displayName="Stack";const bn=r=>{const{as:e="div",...t}=r;return x.jsx(fi,{elementType:e,...t})};bn.displayName="VisuallyHidden";const{withContext:qp}=S.createRecipeContext({recipe:vn}),Zp=qp("input"),rs=a.forwardRef((r,e)=>{const t=a.useRef(null),n=ne(S.mergeRefs(t,e)),o=S.useRecipe({recipe:vn}),[i,l]=o.splitVariantProps(r),[s,u]=Qt(l);return x.jsx($f,{...u,children:x.jsx(Zp,{ref:n,...i,...s,asChild:!0,children:x.jsx(gf,{})})})});rs.displayName="TextInput";const ns=a.forwardRef((r,e)=>x.jsx(S.Grid,{ref:e,...r}));ns.displayName="Grid";const Yp=Object.assign(ns,{Item:S.GridItem}),{withProvider:Xp,withContext:ht}=S.createSlotRecipeContext({key:"select"}),Jp=Xp("div","root"),Qp=ht("button","trigger"),ev=ht("span","triggerLabel"),tv=ht("div","options"),rv=ht("div","option"),nv=ht("div","optionGroup"),os=()=>{const r=a.useContext(dn);if(!(r!=null&&r.selectedKey))return null;const e=()=>{r==null||r.setSelectedKey(null)};return x.jsx(vt,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:e,children:x.jsx(ee.Close,{})})};os.displayName="Select.ClearButton";const hn=a.forwardRef(({children:r,isLoading:e,isDisabled:t,...n},o)=>{const i=S.useSlotRecipe({recipe:Ja}),[l,s]=i.splitVariantProps(n),[u,c]=Qt(s),d={...c,isDisabled:e||t};return x.jsx(Jp,{asChild:!0,ref:o,...l,...u,children:x.jsxs(zf,{...d,children:[x.jsxs(S.chakra.div,{position:"relative",children:[x.jsx(Qp,{zIndex:0,asChild:!0,children:x.jsx(nf,{children:x.jsx(ev,{asChild:!0,children:x.jsx(Vf,{})})})}),x.jsxs(S.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[x.jsx(S.Flex,{width:"600",my:"auto",children:x.jsx(os,{})}),x.jsx(S.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:x.jsx(ve,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:e?x.jsx(ve,{asChild:!0,animation:"spin",animationDuration:"slowest",children:x.jsx(ee.Loop,{})}):x.jsx(ee.KeyboardArrowDown,{})})})]})]}),x.jsx(ja,{children:r})]})})});hn.displayName="Select.Root";const gn=r=>a.forwardRef(r),mn=gn((r,e)=>{const[t,n]=Qt(r);return x.jsx(tv,{asChild:!0,...t,children:x.jsx(Df,{ref:e,...n})})});mn.displayName="Select.Options";const yn=gn((r,e)=>x.jsx(rv,{asChild:!0,ref:e,children:x.jsx(Kf,{...r})}));yn.displayName="Select.Option";const $n=gn(({label:r,items:e,children:t,...n},o)=>{if(e&&typeof t!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return x.jsxs(Rf,{ref:o,...n,children:[x.jsx(nv,{asChild:!0,children:x.jsx(Ef,{children:r})}),e?x.jsx(Yl,{items:e,children:i=>typeof t=="function"?t(i):null}):t]})});$n.displayName="Select.OptionGroup";const ov={Root:hn,Options:mn,Option:yn,OptionGroup:$n},{withProvider:iv,withContext:gt}=S.createSlotRecipeContext({key:"accordion"}),lv=iv("div","root"),av=gt("div","disclosure"),sv=gt("button","trigger"),uv=gt("div","panel"),cv=gt("div","accordionTitle"),Or=gt("div","headerContentRight"),xn=a.createContext(null),is=a.createContext(null),dv=a.forwardRef(({children:r,onExpandedChange:e,...t},n)=>{const o=df({...t,onExpandedChange:s=>{e==null||e(s.size>0)}}),i=S.useSlotRecipe({key:"accordion"}),[l]=i.splitVariantProps(t);return x.jsx(is.Provider,{value:o,children:x.jsx(lv,{"data-slot":"root",ref:n,...l,children:r})})}),fv=a.forwardRef(({children:r},e)=>{const t=a.useContext(xn);if(!t)throw new Error("Accordion.Header must be used within Accordion.Item");const n=a.Children.toArray(r).reduce((o,i)=>(a.isValidElement(i)&&i.type===Or?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return x.jsxs(S.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[x.jsxs(sv,{ref:S.mergeRefs(t.triggerRef,e),...t.buttonProps,"data-slot":"trigger",outline:t.isFocusVisible?void 0:"none",children:[x.jsx(ee.KeyboardArrowRight,{}),x.jsx(cv,{"data-slot":"accordionTitle",children:n.main})]}),n.rightContent.length>0&&x.jsx(Or,{"data-slot":"headerContentRight",children:n.rightContent})]})}),pv=a.forwardRef((r,e)=>{const t=a.useContext(xn),n=ne(S.mergeRefs(t==null?void 0:t.panelRef,e));return x.jsx(uv,{ref:n,...S.mergeProps({...t==null?void 0:t.panelProps,...r}),"data-slot":"panel",children:r.children})}),vv=a.forwardRef(({children:r,id:e,isDisabled:t,isExpanded:n,onExpandedChange:o,value:i},l)=>{const s=Y(),c=i||(e||s),d=a.useContext(is),f=d?d.expandedKeys.has(c):n,b=cf({isExpanded:f,onExpandedChange:D=>{d&&d.toggleKey(c),o==null||o(D)}}),p=a.useRef(null),h=a.useRef(null),m=t||(d==null?void 0:d.isDisabled)||!1,{buttonProps:y,panelProps:$}=ld({isExpanded:b.isExpanded,isDisabled:m},b,p),{buttonProps:C}=Ut(y,h),{focusProps:w,isFocusVisible:F}=we(),k={isExpanded:b.isExpanded,triggerRef:h,panelRef:p,buttonProps:I(C,w),panelProps:$,isFocusVisible:F};return x.jsx(xn.Provider,{value:k,children:x.jsx(av,{"data-slot":"disclosure","data-value":c,"data-expanded":b.isExpanded,ref:l,children:r})})}),bv={Root:dv,Item:vv,Header:fv,Content:pv,HeaderRightContent:Or},hv=S.defineRecipe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:gv}=S.createRecipeContext({recipe:hv}),mv=gv("div"),yv="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",$v="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",ls=a.forwardRef(({"aria-label":r="Loading data",...e},t)=>{const{progressBarProps:n}=ad({isIndeterminate:!0,"aria-label":r,...e});return x.jsx(mv,{ref:t,...I(e,n),"aria-label":r,children:x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[x.jsx("path",{d:yv,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),x.jsx("path",{d:$v,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});ls.displayName="LoadingSpinner";const xv=S.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:Pv,withContext:as}=S.createSlotRecipeContext({recipe:xv}),Sv=Pv("div","root"),Cv=as("div","header"),wv=as("div","content"),Pn=a.createContext(void 0),Sn=a.forwardRef(({children:r,...e},t)=>{const{isFocused:n,isFocusVisible:o,focusProps:i}=we(),[l,s]=a.useState(null),[u,c]=a.useState(null),d=a.useMemo(()=>({setHeader:s,setContent:c}),[s,c]);return x.jsx(Pn.Provider,{value:d,children:x.jsxs(Sv,{ref:t,...I(e,i),"data-focus":n||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[x.jsxs(er,{direction:"column",gap:"200",children:[l,u]}),r]})})});Sn.displayName="Card.Root";const Cn=({children:r,...e})=>{const t=a.useContext(Pn);return a.useEffect(()=>{if(t){const n=x.jsx(Cv,{...e,children:r});return t.setHeader(n),()=>t.setHeader(null)}},[r,e]),null};Cn.displayName="Card.Header";const wn=({children:r,...e})=>{const t=a.useContext(Pn);return a.useEffect(()=>{if(t){const n=x.jsx(wv,{...e,children:r});return t.setContent(n),()=>t.setContent(null)}},[r,e]),null};wn.displayName="Card.Content";const Ev={Root:Sn,Header:Cn,Content:wn},Tv=S.defineRecipe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:Dv}=S.createRecipeContext({recipe:Tv}),kv=Dv("span"),Rv=a.forwardRef((r,e)=>{const{as:t,asChild:n,children:o,...i}=r,l=a.useRef(null),s=ne(S.mergeRefs(l,e)),u=t||"span";return x.jsx(kv,{as:u,...I(i,{ref:s}),children:o})}),Kv=S.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:Fv,withContext:mt}=S.createSlotRecipeContext({recipe:Kv}),Mv=Fv("div","root"),Lv=mt("div","title"),Av=mt("div","description"),Iv=mt("div","icon"),Bv=mt("div","actions"),Nv=mt("div","dismissButton"),Ov=r=>{switch(r){case"critical":return x.jsx(ee.ErrorOutline,{});case"info":return x.jsx(ee.Info,{});case"warning":return x.jsx(ee.WarningAmber,{});case"positive":return x.jsx(ee.CheckCircleOutline,{});default:return null}},yt=a.createContext(void 0),ss=a.forwardRef(({children:r,...e},t)=>{const[n,o]=a.useState(null),[i,l]=a.useState(null),[s,u]=a.useState(null),[c,d]=a.useState(null),f=a.useMemo(()=>({setTitle:o,setDescription:l,setActions:u,setDismiss:d}),[o,l,u,d]);return x.jsx(yt.Provider,{value:f,children:x.jsxs(Mv,{ref:t,...e,role:"alert",children:[x.jsx(Iv,{alignItems:"flex-start",children:Ov(e.tone)}),x.jsxs(er,{flex:"1",gap:"200",children:[x.jsxs(ve,{children:[n,i]}),s]}),c,r]})})});ss.displayName="Alert.Root";const us=({children:r,...e})=>{const t=a.useContext(yt);return a.useEffect(()=>{if(t){const n=x.jsx(Lv,{...e,fontWeight:"600",children:r});return t.setTitle(n),()=>t.setTitle(null)}},[r,e]),null};us.displayName="Alert.Title";const cs=({children:r,...e})=>{const t=a.useContext(yt);return a.useEffect(()=>{if(t){const n=x.jsx(Av,{...e,children:r});return t.setDescription(n),()=>t.setDescription(null)}},[r,e]),null};cs.displayName="Alert.Description";const ds=({children:r,...e})=>{const t=a.useContext(yt);return a.useEffect(()=>{if(t){const n=x.jsx(Bv,{...e,children:r});return t.setActions(n),()=>t.setActions(null)}},[r,e]),null};ds.displayName="Alert.Actions";const fs=({children:r,...e})=>{const t=a.useContext(yt);return a.useEffect(()=>{if(t){const n=x.jsx(Nv,{children:x.jsx(vt,{"aria-label":"Dismiss",...e,variant:"ghost",size:"2xs",children:x.jsx(ee.Clear,{role:"img"})})});return t.setDismiss(n),()=>t.setDismiss(null)}},[r,e]),null};fs.displayName="Alert.DismissButton";const zv={Root:ss,Title:us,Description:cs,Actions:ds,DismissButton:fs};var $o,xo,Po,So;const Hv=S.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...Re.base,...($o=Re.variants)==null?void 0:$o.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(xo=Re.variants)==null?void 0:xo.variant.solid}},variants:{size:{xs:{button:(Po=Re.variants)==null?void 0:Po.size.xs},md:{button:(So=Re.variants)==null?void 0:So.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:Vv,withProvider:jv}=S.createSlotRecipeContext({recipe:Hv}),Wv=jv(Wf,"root"),_v=Vv(Uf,"button"),En=a.forwardRef(({children:r,...e},t)=>x.jsx(Wv,{ref:t,...e,children:r}));En.displayName="ToggleButtonGroup.Root";const Tn=a.forwardRef(({children:r,...e},t)=>x.jsx(_v,{...e,ref:t,children:r}));Tn.displayName="ToggleButtonGroup.Button";const Uv={Root:En,Button:Tn},Gv=`
40
+ */var hd;function PR(){return hd||(hd=1,process.env.NODE_ENV!=="production"&&function(){function e(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}function t(p,h){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!g){var b=h();i(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}b=a({inst:{value:m,getSnapshot:h}});var y=b[0].inst,x=b[1];return l(function(){y.value=m,y.getSnapshot=h,r(y)&&x({inst:y})},[p,m,h]),s(function(){return r(y)&&x({inst:y}),p(function(){r(y)&&x({inst:y})})},[p]),c(m),m}function r(p){var h=p.getSnapshot;p=p.value;try{var m=h();return!i(p,m)}catch{return!0}}function n(p,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=d,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,g=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Sa.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Sa}var md;function $R(){return md||(md=1,process.env.NODE_ENV==="production"?wo.exports=ER():wo.exports=PR()),wo.exports}var kR=$R();const ab=d.createContext(!1),_n=d.createContext(null);function sb(e){if(d.useContext(_n))return e.content;let{collection:r,document:n}=IR(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(wR,null,d.createElement(_n.Provider,{value:n},e.content)),d.createElement(TR,{render:e.children,collection:r}))}function TR({collection:e,render:t}){return t(e)}function RR(e,t,r){let n=Zt(),o=d.useRef(n);o.current=n;let i=d.useCallback(()=>o.current?r():t(),[t,r]);return kR.useSyncExternalStore(e,i)}const OR=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:RR;function IR(e){let[t]=d.useState(()=>new xR((e==null?void 0:e())||new $l)),r=d.useCallback(a=>t.subscribe(a),[t]),n=d.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=OR(r,n,o);return X(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}const ps=d.createContext(null);function lb(e,t,r,n,o,i){let a=d.useCallback(l=>{l==null||l.setProps(t,r,n,i)},[t,r,n,i]),s=d.useContext(ps);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e),l.setProps(t,r,n,i),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),o?d.createElement(ps.Provider,{value:l},o):null}return d.createElement(e,{ref:a},o)}function cb(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=d.forwardRef((o,i)=>{if(!d.useContext(ab)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return lb(e,o,i,"children"in o?o.children:null,null,s=>d.createElement(r,{node:s}))});return n.displayName=t.name,n}function DR(e,t,r=ub){let n=({node:i})=>t(i.props,i.props.ref,i),o=d.forwardRef((i,a)=>{let s=r(i);var l;return(l=lb(e,i,a,null,s,c=>d.createElement(n,{node:c})))!==null&&l!==void 0?l:d.createElement(d.Fragment,null)});return o.displayName=t.name,o}function ub(e){return ob({...e,addIdAndValue:!0})}const vd=d.createContext(null);function db(e){let t=d.useContext(vd),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=ub({...e,idScope:n,dependencies:r});return d.useContext(_n)&&(o=d.createElement(AR,null,o)),t=d.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),d.createElement(vd.Provider,{value:t},o)}function AR({children:e}){let t=d.useContext(_n),r=d.useMemo(()=>d.createElement(_n.Provider,{value:null},d.createElement(ab.Provider,{value:!0},e)),[e]);return Zt()?d.createElement(ps.Provider,{value:t},r):ct.createPortal(r,t)}const fb=d.createContext({}),NR=d.createContext(null),LR=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),kl=d.createContext({}),zR=ib(function(t,r){[t,r]=je(t,r,kl),t=FR(t);let n=t,{isPending:o}=n,{buttonProps:i,isPressed:a}=Ti(t,r),{focusProps:s,isFocused:l,isFocusVisible:c}=Qt(t),{hoverProps:u,isHovered:g}=Er({...t,isDisabled:t.isDisabled||o}),f={isHovered:g,isPressed:(n.isPressed||a)&&!o,isFocused:l,isFocusVisible:c,isDisabled:t.isDisabled||!1,isPending:o??!1},p=Me({...t,values:f,defaultClassName:"react-aria-Button"}),h=$e(i.id),m=$e(),b=i["aria-labelledby"];o&&(b?b=`${b} ${m}`:i["aria-label"]&&(b=`${h} ${m}`));let y=d.useRef(o);return d.useEffect(()=>{let x={"aria-labelledby":b||h};(!y.current&&l&&o||y.current&&l&&!o)&&Zu(x,"assertive"),y.current=o},[o,l,b,h]),d.createElement("button",{...ye(t,{propNames:LR}),...K(i,s,u),...p,type:i.type==="submit"&&o?"button":i.type,id:h,ref:r,"aria-labelledby":b,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":f.isPressed||void 0,"data-hovered":g||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},d.createElement(NR.Provider,{value:{id:m}},p.children))});function FR(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const Ii=d.createContext({}),pb=d.createContext(null);class bd{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n=null,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}}class it extends Set{constructor(t,r,n){super(t),t instanceof it?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function MR(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function _R(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),c=d.useRef(null),[,u]=d.useState(null),g=d.useMemo(()=>yd(e.selectedKeys),[e.selectedKeys]),f=d.useMemo(()=>yd(e.defaultSelectedKeys,new it),[e.defaultSelectedKeys]),[p,h]=Jt(g,f,e.onSelectionChange),m=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[b,y]=d.useState(o);o==="replace"&&b==="toggle"&&typeof p=="object"&&p.size===0&&y("replace");let x=d.useRef(o);return d.useEffect(()=>{o!==x.current&&(y(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:b,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(S){a.current=S,s(S)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(S,$="first"){l.current=S,c.current=$,u(S)},selectedKeys:p,setSelectedKeys(S){(n||!MR(S,p))&&h(S)},disabledKeys:m,disabledBehavior:i}}function yd(e,t){return e?e==="all"?"all":new it(e):t}class VR{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&ya(this.collection,o,t)<0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&ya(this.collection,o,t)>0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new it([r],r,r);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new it(a,s,r);var i;for(let l of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(l);for(let l of this.getKeyRange(r,s))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?ya(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new it(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new it([r],r,r):new it;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new it;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&t.push(n);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=IT(hv(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new it)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function gb(e){let{filter:t,layoutDelegate:r}=e,n=_R(e),o=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=d.useCallback(u=>t?new bd(t(u)):new bd(u),[t]),a=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=OT(e,i,a),l=d.useMemo(()=>new VR(s,n,{layoutDelegate:r}),[s,n,r]);const c=d.useRef(null);return d.useEffect(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)&&c.current){const y=c.current.getItem(n.focusedKey),x=[...c.current.getKeys()].map(v=>{const P=c.current.getItem(v);return(P==null?void 0:P.type)==="item"?P:null}).filter(v=>v!==null),S=[...s.getKeys()].map(v=>{const P=s.getItem(v);return(P==null?void 0:P.type)==="item"?P:null}).filter(v=>v!==null);var u,g;const $=((u=x==null?void 0:x.length)!==null&&u!==void 0?u:0)-((g=S==null?void 0:S.length)!==null&&g!==void 0?g:0);var f,p,h;let w=Math.min($>1?Math.max(((f=y==null?void 0:y.index)!==null&&f!==void 0?f:0)-$+1,0):(p=y==null?void 0:y.index)!==null&&p!==void 0?p:0,((h=S==null?void 0:S.length)!==null&&h!==void 0?h:0)-1),C=null,D=!1;for(;w>=0;){if(!l.isDisabled(S[w].key)){C=S[w];break}if(w<S.length-1&&!D)w++;else{D=!0;var m,b;w>((m=y==null?void 0:y.index)!==null&&m!==void 0?m:0)&&(w=(b=y==null?void 0:y.index)!==null&&b!==void 0?b:0),w--}}n.setFocusedKey(C?C.key:null)}c.current=s},[s,l,n,n.focusedKey]),{collection:s,disabledKeys:o,selectionManager:l}}function BR(e){var t;let[r,n]=Jt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=d.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:s}=gb({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{if(c==="all")return;var u;let g=(u=c.values().next().value)!==null&&u!==void 0?u:null;g===r&&e.onSelectionChange&&e.onSelectionChange(g),n(g)}}),l=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:r,setSelectedKey:n,selectedItem:l}}function Di(e){let[t,r]=Jt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=d.useCallback(()=>{r(!0)},[r]),o=d.useCallback(()=>{r(!1)},[r]),i=d.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}function WR(e){let[t,r]=Jt(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);const n=d.useCallback(()=>{r(!0)},[r]),o=d.useCallback(()=>{r(!1)},[r]),i=d.useCallback(()=>{r(!t)},[r,t]);return{isExpanded:t,setExpanded:r,expand:n,collapse:o,toggle:i}}function KR(e){let{allowsMultipleExpanded:t=!1,isDisabled:r=!1}=e,[n,o]=Jt(d.useMemo(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),d.useMemo(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return d.useEffect(()=>{!t&&n.size>1&&o(new Set([n.values().next().value]))}),{allowsMultipleExpanded:t,isDisabled:r,expandedKeys:n,setExpandedKeys:o,toggleKey(i){let a;t?(a=new Set(n),a.has(i)?a.delete(i):a.add(i)):a=new Set(n.has(i)?[]:[i]),o(a)}}}function HR(e){let t=Di(e),[r,n]=d.useState(null),[o,i]=d.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(c,u)=>{i(g=>u>g.length?g:[...g.slice(0,u),c])},closeSubmenu:(c,u)=>{i(g=>g[u]===c?g.slice(0,u):g)}}}function jR(e){let t=Di(e),[r,n]=d.useState(null),o=BR({...e,onSelectionChange:l=>{e.onSelectionChange!=null&&e.onSelectionChange(l),t.close(),i.commitValidation()}}),i=bl({...e,value:o.selectedKey}),[a,s]=d.useState(!1);return{...i,...o,...t,focusStrategy:r,open(l=null){o.collection.size!==0&&(n(l),t.open())},toggle(l=null){o.collection.size!==0&&(n(l),t.toggle())},isFocused:a,setFocused:s}}const UR=1500,xd=500;let lr={},GR=0,hn=!1,Pt=null,cr=null;function hb(e={}){let{delay:t=UR,closeDelay:r=xd}=e,{isOpen:n,open:o,close:i}=Di(e),a=d.useMemo(()=>`${++GR}`,[]),s=d.useRef(null),l=d.useRef(i),c=()=>{lr[a]=f},u=()=>{for(let h in lr)h!==a&&(lr[h](!0),delete lr[h])},g=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),c(),hn=!0,o(),Pt&&(clearTimeout(Pt),Pt=null),cr&&(clearTimeout(cr),cr=null)},f=h=>{h||r<=0?(s.current&&clearTimeout(s.current),s.current=null,l.current()):s.current||(s.current=setTimeout(()=>{s.current=null,l.current()},r)),Pt&&(clearTimeout(Pt),Pt=null),hn&&(cr&&clearTimeout(cr),cr=setTimeout(()=>{delete lr[a],cr=null,hn=!1},Math.max(xd,r)))},p=()=>{u(),c(),!n&&!Pt&&!hn?Pt=setTimeout(()=>{Pt=null,hn=!0,g()},t):n||g()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),lr[a]&&delete lr[a]},[a]),{isOpen:n,open:h=>{!h&&t>0&&!s.current?p():g()},close:f}}const mb=d.createContext(null),gs=d.createContext({});let qR=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...o}=e;return o};const YR=ib(function(t,r){[t,r]=je(t,r,gs);let{hoverProps:n,isHovered:o}=Er(t),{isFocused:i,isFocusVisible:a,focusProps:s}=Qt({isTextInput:!0,autoFocus:t.autoFocus}),l=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",c=Me({...t,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:t.disabled||!1,isInvalid:l},defaultClassName:"react-aria-Input"});return d.createElement("input",{...K(qR(t),s,n),...c,ref:r,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":l||void 0})}),XR=d.createContext({}),ZR=d.createContext(null),JR=d.forwardRef(function(t,r){[t,r]=je(t,r,ZR);let{validationBehavior:n}=Oi(mb)||{};var o,i;let a=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=d.useRef(null),[l,c]=je({},s,gs),[u,g]=El(),[f,p]=d.useState("input"),{labelProps:h,inputProps:m,descriptionProps:b,errorMessageProps:y,...x}=j2({...rb(t),inputElementType:f,label:g,validationBehavior:a},c),S=d.useCallback(C=>{c.current=C,C&&p(C instanceof HTMLTextAreaElement?"textarea":"input")},[c]),$=Me({...t,values:{isDisabled:t.isDisabled||!1,isInvalid:x.isInvalid,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-TextField"}),w=ye(t);return delete w.id,d.createElement("div",{...w,...$,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},d.createElement($r,{values:[[fb,{...h,ref:u}],[gs,{...K(m,l),ref:S}],[XR,{...m,ref:S}],[Ii,{slots:{description:b,errorMessage:y}}],[pb,x]]},$.children))}),QR=d.createContext(null),eO=d.createContext(null),tO={CollectionRoot({collection:e,renderDropIndicator:t}){return Sd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Sd(e,t,r)}};function Sd(e,t,r){return ob({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){var o;let i=n.render(n);if(!r||n.type!=="item")return i;let a=n.key,s=e.getKeyAfter(a);return d.createElement(d.Fragment,null,r({type:"item",key:a,dropPosition:"before"}),i,(s==null||((o=e.getItem(s))===null||o===void 0?void 0:o.type)!=="item")&&r({type:"item",key:a,dropPosition:"after"}))}})}const Tl=d.createContext(tO);var vb={};vb={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var bb={};bb={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var yb={};yb={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var xb={};xb={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Sb={};Sb={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var wb={};wb={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var Cb={};Cb={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Eb={};Eb={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Pb={};Pb={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var $b={};$b={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var kb={};kb={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Tb={};Tb={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Rb={};Rb={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Ob={};Ob={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var Ib={};Ib={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Db={};Db={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var Ab={};Ab={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var Nb={};Nb={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Lb={};Lb={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var zb={};zb={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Fb={};Fb={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var Mb={};Mb={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var _b={};_b={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Vb={};Vb={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Bb={};Bb={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Wb={};Wb={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Kb={};Kb={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Hb={};Hb={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var jb={};jb={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Ub={};Ub={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Gb={};Gb={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var qb={};qb={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Yb={};Yb={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Xb={};Xb={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var Zb={};Zb={"ar-AE":vb,"bg-BG":bb,"cs-CZ":yb,"da-DK":xb,"de-DE":Sb,"el-GR":wb,"en-US":Cb,"es-ES":Eb,"et-EE":Pb,"fi-FI":$b,"fr-FR":kb,"he-IL":Tb,"hr-HR":Rb,"hu-HU":Ob,"it-IT":Ib,"ja-JP":Db,"ko-KR":Ab,"lt-LT":Nb,"lv-LV":Lb,"nb-NO":zb,"nl-NL":Fb,"pl-PL":Mb,"pt-BR":_b,"pt-PT":Vb,"ro-RO":Bb,"ru-RU":Wb,"sk-SK":Kb,"sl-SI":Hb,"sr-SP":jb,"sv-SE":Ub,"tr-TR":Gb,"uk-UA":qb,"zh-CN":Yb,"zh-TW":Xb};const Ai=d.createContext({}),Jb=d.createContext(null),rO=d.forwardRef(function(t,r){let{render:n}=d.useContext(Jb);return d.createElement(d.Fragment,null,n(t,r))});function Qb(e,t){var r;let n=e==null?void 0:e.renderDropIndicator,o=e==null||(r=e.isVirtualDragging)===null||r===void 0?void 0:r.call(e),i=d.useCallback(a=>{if(o||t!=null&&t.isDropTarget(a))return n?n(a):d.createElement(rO,{target:a})},[t==null?void 0:t.target,o,n]);return e!=null&&e.useDropIndicator?i:void 0}function nO(e,t,r){var n,o;let i=e.focusedKey,a=null;if(!(t==null||(n=t.isVirtualDragging)===null||n===void 0)&&n.call(t)&&(r==null||(o=r.target)===null||o===void 0?void 0:o.type)==="item"){a=r.target.key;var s;r.target.dropPosition==="after"&&(a=(s=r.collection.getKeyAfter(a))!==null&&s!==void 0?s:a)}return d.useMemo(()=>new Set([i,a].filter(l=>l!=null)),[i,a])}const e0=d.createContext({}),oO=cb("header",function(t,r){return[t,r]=je(t,r,e0),d.createElement("header",{className:"react-aria-Header",...t,ref:r},t.children)}),iO=d.createContext({}),Rl=d.createContext(null),qn=d.createContext(null),aO=d.forwardRef(function(t,r){[t,r]=je(t,r,Rl);let n=d.useContext(qn);return n?d.createElement(t0,{state:n,props:t,listBoxRef:r}):d.createElement(sb,{content:d.createElement(db,t)},o=>d.createElement(sO,{props:t,listBoxRef:r,collection:o}))});function sO({props:e,listBoxRef:t,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:n}=d.useContext(Tl),{filterFn:o,collectionProps:i,collectionRef:a}=d.useContext(QR)||{};t=Ue(d.useMemo(()=>jh(t,a!==void 0?a:null),[a,t]));let s=d.useMemo(()=>o?r.filter(o):r,[r,o]),l=gb({...e,collection:s,layoutDelegate:n});return d.createElement(t0,{state:l,props:{...e,...i},listBoxRef:t})}function t0({state:e,props:t,listBoxRef:r}){let{dragAndDropHooks:n,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(n!=null&&n.useDraggableCollectionState),c=!!(n!=null&&n.useDroppableCollectionState),{direction:u}=Pr(),{disabledBehavior:g,disabledKeys:f}=s,p=vl({usage:"search",sensitivity:"base"}),{isVirtualized:h,layoutDelegate:m,dropTargetDelegate:b,CollectionRoot:y}=d.useContext(Tl),x=d.useMemo(()=>t.keyboardDelegate||new Cl({collection:a,collator:p,ref:r,disabledKeys:f,disabledBehavior:g,layout:o,orientation:i,direction:u,layoutDelegate:m}),[a,p,r,g,f,i,u,t.keyboardDelegate,o,m]),{listBoxProps:S}=kT({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:h},e,r),$=d.useRef(l),w=d.useRef(c);d.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),w.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,c]);let C,D,v,P=!1,T=null,I=d.useRef(null);if(l&&n){C=n.useDraggableCollectionState({collection:a,selectionManager:s,preview:n.renderDragPreview?I:void 0}),n.useDraggableCollection({},C,r);let R=n.DragPreview;T=n.renderDragPreview?d.createElement(R,{ref:I},n.renderDragPreview):null}if(c&&n){D=n.useDroppableCollectionState({collection:a,selectionManager:s});let R=n.dropTargetDelegate||b||new n.ListDropTargetDelegate(a,r,{orientation:i,layout:o,direction:u});v=n.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:R},D,r),P=D.isDropTarget({type:"root"})}let{focusProps:L,isFocused:E,isFocusVisible:O}=Qt(),A={isDropTarget:P,isEmpty:e.collection.size===0,isFocused:E,isFocusVisible:O,layout:t.layout||"stack",state:e},z=Me({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:A}),F=null;return e.collection.size===0&&t.renderEmptyState&&(F=d.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(A))),d.createElement(mm,null,d.createElement("div",{...ye(t),...K(S,L,v==null?void 0:v.collectionProps),...z,ref:r,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":P||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":E||void 0,"data-focus-visible":O||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},d.createElement($r,{values:[[Rl,t],[qn,e],[Ai,{dragAndDropHooks:n,dragState:C,dropState:D}],[iO,{elementType:"div"}],[Jb,{render:uO}],[eO,{name:"ListBoxSection",render:r0}]]},d.createElement(y,{collection:a,scrollRef:r,persistedKeys:nO(s,n,D),renderDropIndicator:Qb(n,D)})),F,T))}function r0(e,t,r,n="react-aria-ListBoxSection"){let o=d.useContext(qn),{dragAndDropHooks:i,dropState:a}=d.useContext(Ai),{CollectionBranch:s}=d.useContext(Tl),[l,c]=El();var u;let{headingProps:g,groupProps:f}=LT({heading:c,"aria-label":(u=e["aria-label"])!==null&&u!==void 0?u:void 0}),p=Me({defaultClassName:n,className:e.className,style:e.style,values:{}});return d.createElement("section",{...ye(e),...f,...p,ref:t},d.createElement(e0.Provider,{value:{...g,ref:l}},d.createElement(s,{collection:o.collection,parent:r,renderDropIndicator:Qb(i,a)})))}const lO=DR("section",r0),cO=cb("item",function(t,r,n){let o=Ue(r),i=d.useContext(qn),{dragAndDropHooks:a,dragState:s,dropState:l}=d.useContext(Ai),{optionProps:c,labelProps:u,descriptionProps:g,...f}=NT({key:n.key,"aria-label":t==null?void 0:t["aria-label"]},i,o),{hoverProps:p,isHovered:h}=Er({isDisabled:!f.allowsSelection&&!f.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),m=null;s&&a&&(m=a.useDraggableItem({key:n.key},s));let b=null;l&&a&&(b=a.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},l,o));let y=s&&s.isDragging(n.key),x=Me({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...f,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}});d.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let S=t.href?"a":"div";return d.createElement(S,{...K(c,p,m==null?void 0:m.dragProps,b==null?void 0:b.dropProps),...x,ref:o,"data-allows-dragging":!!s||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},d.createElement($r,{values:[[Ii,{slots:{label:u,description:g}}]]},x.children))});function uO(e,t){t=Ue(t);let{dragAndDropHooks:r,dropState:n}=d.useContext(Ai),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=r.useDropIndicator(e,n,t);return i?null:d.createElement(fO,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function dO(e,t){let{dropIndicatorProps:r,isDropTarget:n,...o}=e,i=Me({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return d.createElement("div",{...r,...i,role:"option",ref:t,"data-drop-target":n||void 0})}const fO=d.forwardRef(dO),n0=d.createContext({placement:"bottom"}),Ol=d.createContext(null),o0=d.forwardRef(function(t,r){[t,r]=je(t,r,Ol);let n=d.useContext(Ni),o=Di(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=rm(r,i.isOpen)||t.isExiting||!1;if(CR()){let l=t.children;return typeof l=="function"&&(l=l({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,l)}return i&&!i.isOpen&&!a?null:d.createElement(pO,{...t,triggerRef:t.triggerRef,state:i,popoverRef:r,isExiting:a})});function pO({state:e,isExiting:t,UNSTABLE_portalContainer:r,...n}){let o=d.useRef(null),[i,a]=d.useState(0);X(()=>{o.current&&e.isOpen&&a(o.current.getBoundingClientRect().width)},[e.isOpen,o]);var s;let{popoverProps:l,underlayProps:c,arrowProps:u,placement:g}=hT({...n,offset:(s=n.offset)!==null&&s!==void 0?s:8,arrowSize:i},e),f=n.popoverRef,p=tm(f,!!g)||n.isEntering||!1,h=Me({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:g,isEntering:p,isExiting:t}}),m={...l.style,...h.style};return d.createElement(bT,{...n,isExiting:t,portalContainer:r},!n.isNonModal&&e.isOpen&&d.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),d.createElement("div",{...K(ye(n),l),...h,ref:f,slot:n.slot||void 0,style:m,"data-trigger":n.trigger,"data-placement":g,"data-entering":p||void 0,"data-exiting":t||void 0},!n.isNonModal&&d.createElement(sd,{onDismiss:e.close}),d.createElement(n0.Provider,{value:{...u,placement:g,ref:o}},h.children),d.createElement(sd,{onDismiss:e.close})))}const gO=d.createContext(null),i0=d.createContext(null),Ni=d.createContext(null);function hO(e){let t=HR(e),r=d.useRef(null),{triggerProps:n,overlayProps:o}=Im({type:"dialog"},t,r);return n.id=$e(),o["aria-labelledby"]=n.id,d.createElement($r,{values:[[Ni,t],[gO,t],[i0,o],[Ol,{trigger:"DialogTrigger",triggerRef:r}]]},d.createElement(j3,{...n,ref:r,isPressed:t.isOpen},e.children))}const mO=d.forwardRef(function(t,r){let n=t["aria-labelledby"];[t,r]=je(t,r,i0);let{dialogProps:o,titleProps:i}=MT({...t,"aria-labelledby":n},r),a=d.useContext(Ni);!o["aria-label"]&&!o["aria-labelledby"]&&(t["aria-labelledby"]?o["aria-labelledby"]=t["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=Me({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}});return d.createElement("section",{...ye(t),...o,...s,ref:r,slot:t.slot||void 0},d.createElement($r,{values:[[yR,{slots:{[oi]:{},title:{...i,level:2}}}],[kl,{slots:{[oi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))});function vO(e){return e&&e.__esModule?e.default:e}const Il=d.createContext(null),Dl=d.createContext(null),bO=d.forwardRef(function(t,r){[t,r]=je(t,r,Il);let{children:n,isDisabled:o=!1,isInvalid:i=!1,isRequired:a=!1}=t,s=d.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,o,i,a]);return d.createElement(sb,{content:s},l=>d.createElement(yO,{props:t,collection:l,selectRef:r}))});function yO({props:e,selectRef:t,collection:r}){let{validationBehavior:n}=Oi(mb)||{};var o,i;let a=(i=(o=e.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=jR({...e,collection:r,children:void 0,validationBehavior:a}),{isFocusVisible:l,focusProps:c}=Qt({within:!0}),u=d.useRef(null),[g,f]=El(),{labelProps:p,triggerProps:h,valueProps:m,menuProps:b,descriptionProps:y,errorMessageProps:x,...S}=BT({...rb(e),label:f,validationBehavior:a},s,u),[$,w]=d.useState(null),C=d.useCallback(()=>{u.current&&w(u.current.offsetWidth+"px")},[u]);Za({ref:u,onResize:C});let D=d.useMemo(()=>({isOpen:s.isOpen,isFocused:s.isFocused,isFocusVisible:l,isDisabled:e.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:e.isRequired||!1}),[s.isOpen,s.isFocused,l,e.isDisabled,S.isInvalid,e.isRequired]),v=Me({...e,values:D,defaultClassName:"react-aria-Select"}),P=ye(e);delete P.id;let T=d.useRef(null);return d.createElement($r,{values:[[Il,e],[Dl,s],[a0,m],[fb,{...p,ref:g,elementType:"span"}],[kl,{...h,ref:u,isPressed:s.isOpen}],[Ni,s],[Ol,{trigger:"Select",triggerRef:u,scrollRef:T,placement:"bottom start",style:{"--trigger-width":$}}],[Rl,{...b,ref:T}],[qn,s],[Ii,{slots:{description:y,errorMessage:x}}],[pb,S]]},d.createElement("div",{...P,...v,...c,ref:t,slot:e.slot||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":s.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":e.isRequired||void 0}),d.createElement(KT,{autoComplete:e.autoComplete,state:s,triggerRef:u,label:f,name:e.name,isDisabled:e.isDisabled}))}const a0=d.createContext(null),xO=d.forwardRef(function(t,r){var n,o;[t,r]=je(t,r,a0);let i=d.useContext(Dl),{placeholder:a}=Oi(Il),s=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,l=s==null?void 0:s.props.children;typeof l=="function"&&(l=l({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=ml(vO(Zb),"react-aria-components");var u,g,f;let p=Me({...t,defaultChildren:(u=l??a)!==null&&u!==void 0?u:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(g=(n=i.selectedItem)===null||n===void 0?void 0:n.value)!==null&&g!==void 0?g:null,selectedText:(f=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&f!==void 0?f:null,isPlaceholder:!s}}),h=ye(t);return d.createElement("span",{ref:r,...h,...p,"data-placeholder":!s||void 0},d.createElement(Ii.Provider,{value:void 0},p.children))}),SO=d.createContext({}),s0=d.createContext(null),wO=d.forwardRef(function(t,r){[t,r]=je(t,r,SO);let n=H2(t),{groupProps:o}=A2(t,n,r),i=Me({...t,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return d.createElement("div",{...o,...i,ref:r,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(s0.Provider,{value:n},i.children))}),CO=d.createContext({}),EO=d.forwardRef(function(t,r){[t,r]=je(t,r,CO);let n=d.useContext(s0),o=Pm(n&&t.id!=null?{isSelected:n.selectedKeys.has(t.id),onChange(m){n.setSelected(t.id,m)}}:t),{buttonProps:i,isPressed:a,isSelected:s,isDisabled:l}=n&&t.id!=null?N2({...t,id:t.id},n,r):Sm({...t,id:t.id!=null?String(t.id):void 0},o,r),{focusProps:c,isFocused:u,isFocusVisible:g}=Qt(t),{hoverProps:f,isHovered:p}=Er(t),h=Me({...t,id:void 0,values:{isHovered:p,isPressed:a,isFocused:u,isSelected:o.isSelected,isFocusVisible:g,isDisabled:l,state:o},defaultClassName:"react-aria-ToggleButton"});return d.createElement("button",{...K(i,c,f),...h,ref:r,slot:t.slot||void 0,"data-focused":u||void 0,"data-disabled":l||void 0,"data-pressed":a||void 0,"data-selected":s||void 0,"data-hovered":p||void 0,"data-focus-visible":g||void 0})}),Al=d.createContext(null),l0=d.createContext(null);function PO(e){let t=hb(e),r=d.useRef(null),{triggerProps:n,tooltipProps:o}=jT(e,t,r);return d.createElement($r,{values:[[Al,t],[l0,{...o,triggerRef:r}]]},d.createElement(m2,{...n,ref:r},e.children))}const $O=d.forwardRef(function({UNSTABLE_portalContainer:t,...r},n){[r,n]=je(r,n,l0);let o=d.useContext(Al),i=hb(r),a=r.isOpen!=null||r.defaultOpen!=null||!o?i:o,s=rm(n,a.isOpen)||r.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(fT,{portalContainer:t},d.createElement(kO,{...r,tooltipRef:n,isExiting:s}))});function kO(e){let t=d.useContext(Al),r=d.useRef(null),[n,o]=d.useState(0);X(()=>{r.current&&t.isOpen&&o(r.current.getBoundingClientRect().width)},[t.isOpen,r]);let{overlayProps:i,arrowProps:a,placement:s}=Om({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:n,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,onClose:()=>t.close(!0)}),l=tm(e.tooltipRef,!!s)||e.isEntering||!1,c=Me({...e,defaultClassName:"react-aria-Tooltip",values:{placement:s,isEntering:l,isExiting:e.isExiting,state:t}});e=K(e,i);let{tooltipProps:u}=HT(e,t);return d.createElement("div",{...u,ref:e.tooltipRef,...c,style:{...i.style,...c.style},"data-placement":s??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},d.createElement(n0.Provider,{value:{...a,placement:s,ref:r}},c.children))}const c0=oe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:TO}=rt({recipe:c0}),RO=TO("div"),u0=d.forwardRef(function({children:t,placement:r="bottom",...n},o){return k.jsx(RO,{ref:o,asChild:!0,...n,children:k.jsx($O,{placement:r,...n,children:t})})});u0.displayName="Tooltip";const d0=PO;d0.displayName="TooltipTrigger";const f0=d.forwardRef(function(t,r){const n=d.useRef(null),o=Ue(Nt(n,r)),{focusableProps:i}=nn(t,o);if(d.isValidElement(t.children))return d.cloneElement(t.children,K(i,t.children.props,{ref:o}))});f0.displayName="MakeElementFocusable";var OO=(e,t,r,n,o,i,a,s)=>{let l=document.documentElement,c=["light","dark"];function u(p){(Array.isArray(e)?e:[e]).forEach(h=>{let m=h==="class",b=m&&i?o.map(y=>i[y]||y):o;m?(l.classList.remove(...b),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(h,p)}),g(p)}function g(p){s&&c.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let p=localStorage.getItem(t)||r,h=a&&p==="system"?f():p;u(h)}catch{}},wd=["light","dark"],p0="(prefers-color-scheme: dark)",IO=typeof window>"u",Nl=U.createContext(void 0),DO={setTheme:e=>{},themes:[]},AO=()=>{var e;return(e=U.useContext(Nl))!=null?e:DO},NO=e=>U.useContext(Nl)?U.createElement(U.Fragment,null,e.children):U.createElement(zO,{...e}),LO=["light","dark"],zO=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=LO,defaultTheme:a=r?"system":"light",attribute:s="data-theme",value:l,children:c,nonce:u,scriptProps:g})=>{let[f,p]=U.useState(()=>MO(o,a)),[h,m]=U.useState(()=>f==="system"?wa():f),b=l?Object.values(l):i,y=U.useCallback(w=>{let C=w;if(!C)return;w==="system"&&r&&(C=wa());let D=l?l[C]:C,v=t?_O(u):null,P=document.documentElement,T=I=>{I==="class"?(P.classList.remove(...b),D&&P.classList.add(D)):I.startsWith("data-")&&(D?P.setAttribute(I,D):P.removeAttribute(I))};if(Array.isArray(s)?s.forEach(T):T(s),n){let I=wd.includes(a)?a:null,L=wd.includes(C)?C:I;P.style.colorScheme=L}v==null||v()},[u]),x=U.useCallback(w=>{let C=typeof w=="function"?w(f):w;p(C);try{localStorage.setItem(o,C)}catch{}},[f]),S=U.useCallback(w=>{let C=wa(w);m(C),f==="system"&&r&&!e&&y("system")},[f,e]);U.useEffect(()=>{let w=window.matchMedia(p0);return w.addListener(S),S(w),()=>w.removeListener(S)},[S]),U.useEffect(()=>{let w=C=>{C.key===o&&(C.newValue?p(C.newValue):x(a))};return window.addEventListener("storage",w),()=>window.removeEventListener("storage",w)},[x]),U.useEffect(()=>{y(e??f)},[e,f]);let $=U.useMemo(()=>({theme:f,setTheme:x,forcedTheme:e,resolvedTheme:f==="system"?h:f,themes:r?[...i,"system"]:i,systemTheme:r?h:void 0}),[f,x,e,h,r,i]);return U.createElement(Nl.Provider,{value:$},U.createElement(FO,{forcedTheme:e,storageKey:o,attribute:s,enableSystem:r,enableColorScheme:n,defaultTheme:a,value:l,themes:i,nonce:u,scriptProps:g}),c)},FO=U.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:a,themes:s,nonce:l,scriptProps:c})=>{let u=JSON.stringify([r,t,i,e,s,a,n,o]).slice(1,-1);return U.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${OO.toString()})(${u})`}})}),MO=(e,t)=>{if(IO)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},_O=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},wa=e=>(e||(e=window.matchMedia(p0)),e.matches?"dark":"light");function VO(e){return k.jsx(NO,{attribute:"class",disableTransitionOnChange:!0,...e})}function Ll(){const{resolvedTheme:e,setTheme:t}=AO();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function BO(e,t){const{colorMode:r}=Ll();return r==="light"?e:t}function WO(){const{colorMode:e}=Ll();return e==="light"?"Light Theme":"DarkTheme"}const KO=Yg({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function HO(e){var r;const t={};for(const n in e)(r=e[n])!=null&&r.value?t[n]=e[n].value:t[n]=e[n];return t}const jO=HO(pe.themeTokens.breakpoints),UO=Ug({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),GO={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},qO=Xg({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),YO=oe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),XO=oe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),ZO=oe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),zl=oe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),JO={avatar:Bh,button:fr,code:YO,heading:XO,kbd:ZO,link:Jv,tooltip:c0,textInput:zl},QO=rn.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...pe.themeTokens.color["system-palettes"],...pe.themeTokens.color["brand-palettes"],...pe.themeTokens.color["semantic-palettes"]}),eI=rn.shadows(pe.themeTokens.shadow),tI=rn.radii({}),rI={colors:QO,shadows:eI,radii:tI},nI=W({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),oI=W({className:"chakra-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),iI=W({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),aI=W({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),g0=W({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),sI=W({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),lI={dialog:nI,list:oI,table:iI,checkbox:aI,select:g0,accordion:sI},cI=qg(pe.themeTokens.textStyle),uI=Y.durations(pe.themeTokens.aspectRatio),dI=Y.animations(pe.themeTokens.animation),fI=Y.blurs(pe.themeTokens.blur),pI=Y.borders(pe.themeTokens.border),gI=Y.colors({...pe.themeTokens.color["blacks-and-whites"]}),hI=Y.durations(pe.themeTokens.duration),mI=Y.easings(pe.themeTokens.easing),vI=Y.fonts(pe.themeTokens.fontFamily),bI=Y.fontSizes(pe.themeTokens.fontSize),yI=Y.fontWeights(pe.themeTokens.fontWeight),xI=e=>Object.keys(e).reduce((t,r)=>{const o=parseFloat(e[r].value)/100;return t[r]={value:`${o}em`},t},{}),SI=Y.letterSpacings(xI(pe.themeTokens.letterSpacing)),wI=Y.lineHeights(pe.themeTokens.lineHeight),CI=Y.radii(pe.themeTokens.borderRadius),EI=Y.spacing(pe.themeTokens.spacing),PI=Y.sizes({...pe.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),$I=Y.zIndex(pe.themeTokens.zIndex),kI=Y.cursor(pe.themeTokens.cursor),TI={aspectRatios:uI,animations:dI,blurs:fI,borders:pI,colors:gI,durations:hI,easings:mI,fonts:vI,fontSizes:bI,fontWeights:yI,letterSpacings:SI,lineHeights:wI,radii:CI,spacing:EI,sizes:PI,zIndex:$I,cursor:kI},RI=il({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:UO,theme:{breakpoints:jO,keyframes:GO,tokens:TI,semanticTokens:rI,recipes:JO,slotRecipes:lI,textStyles:cI,layerStyles:qO,animationStyles:KO}}),h0=xh(eh,RI);function OI(){const[e,t]=d.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return d.useEffect(()=>{const n=document.documentElement,o=new MutationObserver(()=>{const i=r();t(i)});return o.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),e}function II({children:e,...t}){return k.jsx(Vy,{value:h0,children:k.jsx(VO,{enableSystem:!1,...t,children:k.jsx(k.Fragment,{children:e})})})}function Li(e){const t={},r={...e};return Object.keys(e).forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&Eh.isValidProperty(n)&&(t[n]=e[n],delete r[n])}),[t,r]}const{withProvider:DI,withContext:m0}=xt({key:"checkbox"}),AI=DI("label","root"),NI=m0("span","label"),LI=m0("span","indicator"),v0=d.forwardRef((e,t)=>{const r=d.useRef(null),n=Ue(Nt(r,t)),o=Si({key:"checkbox"}),[i]=o.splitVariantProps(e),[a,s]=Li(e),l=Pm(e),{inputProps:c}=K2(s,l,n),{isFocused:u,focusProps:g}=Qt(),f=l.isSelected&&!e.isIndeterminate,p=e.isIndeterminate,h={"data-selected":f,"data-indeterminate":p,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":u||void 0};return k.jsxs(AI,{"data-slot":"root",...i,...h,...a,children:[k.jsxs(LI,{"data-slot":"indicator",...h,children:[f&&k.jsx(Be.Check,{}),p&&k.jsx(Be.Remove,{}),k.jsx(Fl,{as:"span",children:k.jsx("input",{...K(c,g),ref:n})})]}),e.children&&k.jsx(NI,{"data-slot":"label",...h,children:e.children})]})});v0.displayName="Checkbox";const zi=d.forwardRef((e,t)=>k.jsx(p5,{ref:t,...e}));zi.displayName="Stack";const Fl=e=>{const{as:t="div",...r}=e;return k.jsx(km,{elementType:t,...r})};Fl.displayName="VisuallyHidden";const{withContext:zI}=rt({recipe:zl}),FI=zI("input"),b0=d.forwardRef((e,t)=>{const r=d.useRef(null),n=Ue(Nt(r,t)),o=tp({recipe:zl}),[i,a]=o.splitVariantProps(e),[s,l]=Li(a);return k.jsx(JR,{...l,children:k.jsx(FI,{ref:n,...i,...s,asChild:!0,children:k.jsx(YR,{})})})});b0.displayName="TextInput";const y0=d.forwardRef((e,t)=>k.jsx(rp,{ref:t,...e}));y0.displayName="Grid";const MI=Object.assign(y0,{Item:Th}),{withProvider:_I,withContext:Yn}=xt({key:"select"}),VI=_I("div","root"),BI=Yn("button","trigger"),WI=Yn("span","triggerLabel"),KI=Yn("div","options"),HI=Yn("div","option"),jI=Yn("div","optionGroup"),x0=()=>{const e=d.useContext(Dl);if(!(e!=null&&e.selectedKey))return null;const t=()=>{e==null||e.setSelectedKey(null)};return k.jsx(Gn,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:k.jsx(Be.Close,{})})};x0.displayName="Select.ClearButton";const Ml=d.forwardRef(({children:e,isLoading:t,isDisabled:r,...n},o)=>{const i=Si({recipe:g0}),[a,s]=i.splitVariantProps(n),[l,c]=Li(s),u={...c,isDisabled:t||r};return k.jsx(VI,{asChild:!0,ref:o,...a,...l,children:k.jsxs(bO,{...u,children:[k.jsxs(Re.div,{position:"relative",children:[k.jsx(BI,{zIndex:0,asChild:!0,children:k.jsx(zR,{children:k.jsx(WI,{asChild:!0,children:k.jsx(xO,{})})})}),k.jsxs(Pn,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[k.jsx(Pn,{width:"600",my:"auto",children:k.jsx(x0,{})}),k.jsx(Pn,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:k.jsx(kt,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?k.jsx(kt,{asChild:!0,animation:"spin",animationDuration:"slowest",children:k.jsx(Be.Loop,{})}):k.jsx(Be.KeyboardArrowDown,{})})})]})]}),k.jsx(o0,{children:e})]})})});Ml.displayName="Select.Root";const _l=e=>d.forwardRef(e),Vl=_l((e,t)=>{const[r,n]=Li(e);return k.jsx(KI,{asChild:!0,...r,children:k.jsx(aO,{ref:t,...n})})});Vl.displayName="Select.Options";const Bl=_l((e,t)=>k.jsx(HI,{asChild:!0,ref:t,children:k.jsx(cO,{...e})}));Bl.displayName="Select.Option";const Wl=_l(({label:e,items:t,children:r,...n},o)=>{if(t&&typeof r!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return k.jsxs(lO,{ref:o,...n,children:[k.jsx(jI,{asChild:!0,children:k.jsx(oO,{children:e})}),t?k.jsx(db,{items:t,children:i=>typeof r=="function"?r(i):null}):r]})});Wl.displayName="Select.OptionGroup";const UI={Root:Ml,Options:Vl,Option:Bl,OptionGroup:Wl},{withProvider:GI,withContext:Xn}=xt({key:"accordion"}),qI=GI("div","root"),YI=Xn("div","disclosure"),XI=Xn("button","trigger"),ZI=Xn("div","panel"),JI=Xn("div","accordionTitle"),hs=Xn("div","headerContentRight"),Kl=d.createContext(null),S0=d.createContext(null),QI=d.forwardRef(({children:e,onExpandedChange:t,...r},n)=>{const o=KR({...r,onExpandedChange:s=>{t==null||t(s.size>0)}}),i=Si({key:"accordion"}),[a]=i.splitVariantProps(r);return k.jsx(S0.Provider,{value:o,children:k.jsx(qI,{"data-slot":"root",ref:n,...a,children:e})})}),e6=d.forwardRef(({children:e},t)=>{const r=d.useContext(Kl);if(!r)throw new Error("Accordion.Header must be used within Accordion.Item");const n=d.Children.toArray(e).reduce((o,i)=>(d.isValidElement(i)&&i.type===hs?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return k.jsxs(Pn,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[k.jsxs(XI,{ref:Nt(r.triggerRef,t),...r.buttonProps,"data-slot":"trigger",outline:r.isFocusVisible?void 0:"none",children:[k.jsx(Be.KeyboardArrowRight,{}),k.jsx(JI,{"data-slot":"accordionTitle",children:n.main})]}),n.rightContent.length>0&&k.jsx(hs,{"data-slot":"headerContentRight",children:n.rightContent})]})}),t6=d.forwardRef((e,t)=>{const r=d.useContext(Kl),n=Ue(Nt(r==null?void 0:r.panelRef,t));return k.jsx(ZI,{ref:n,...kn({...r==null?void 0:r.panelProps,...e}),"data-slot":"panel",children:e.children})}),r6=d.forwardRef(({children:e,id:t,isDisabled:r,isExpanded:n,onExpandedChange:o,value:i},a)=>{const s=$e(),c=i||(t||s),u=d.useContext(S0),g=u?u.expandedKeys.has(c):n,f=WR({isExpanded:g,onExpandedChange:C=>{u&&u.toggleKey(c),o==null||o(C)}}),p=d.useRef(null),h=d.useRef(null),m=r||(u==null?void 0:u.isDisabled)||!1,{buttonProps:b,panelProps:y}=_T({isExpanded:f.isExpanded,isDisabled:m},f,p),{buttonProps:x}=Ti(b,h),{focusProps:S,isFocusVisible:$}=Qt(),w={isExpanded:f.isExpanded,triggerRef:h,panelRef:p,buttonProps:K(x,S),panelProps:y,isFocusVisible:$};return k.jsx(Kl.Provider,{value:w,children:k.jsx(YI,{"data-slot":"disclosure","data-value":c,"data-expanded":f.isExpanded,ref:a,children:e})})}),n6={Root:QI,Item:r6,Header:e6,Content:t6,HeaderRightContent:hs},o6=oe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:i6}=rt({recipe:o6}),a6=i6("div"),s6="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",l6="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",w0=d.forwardRef(({"aria-label":e="Loading data",...t},r)=>{const{progressBarProps:n}=VT({isIndeterminate:!0,"aria-label":e,...t});return k.jsx(a6,{ref:r,...K(t,n),"aria-label":e,children:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[k.jsx("path",{d:s6,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),k.jsx("path",{d:l6,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});w0.displayName="LoadingSpinner";const c6=W({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:u6,withContext:C0}=xt({recipe:c6}),d6=u6("div","root"),f6=C0("div","header"),p6=C0("div","content"),Hl=d.createContext(void 0),jl=d.forwardRef(({children:e,...t},r)=>{const{isFocused:n,isFocusVisible:o,focusProps:i}=Qt(),[a,s]=d.useState(null),[l,c]=d.useState(null),u=d.useMemo(()=>({setHeader:s,setContent:c}),[s,c]);return k.jsx(Hl.Provider,{value:u,children:k.jsxs(d6,{ref:r,...K(t,i),"data-focus":n||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[k.jsxs(zi,{direction:"column",gap:"200",children:[a,l]}),e]})})});jl.displayName="Card.Root";const Ul=({children:e,...t})=>{const r=d.useContext(Hl);return d.useEffect(()=>{if(r){const n=k.jsx(f6,{...t,children:e});return r.setHeader(n),()=>r.setHeader(null)}},[e,t]),null};Ul.displayName="Card.Header";const Gl=({children:e,...t})=>{const r=d.useContext(Hl);return d.useEffect(()=>{if(r){const n=k.jsx(p6,{...t,children:e});return r.setContent(n),()=>r.setContent(null)}},[e,t]),null};Gl.displayName="Card.Content";const g6={Root:jl,Header:Ul,Content:Gl},h6=oe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:m6}=rt({recipe:h6}),v6=m6("span"),b6=d.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=d.useRef(null),s=Ue(Nt(a,t)),l=r||"span";return k.jsx(v6,{as:l,...K(i,{ref:s}),children:o})}),y6=W({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:x6,withContext:Zn}=xt({recipe:y6}),S6=x6("div","root"),w6=Zn("div","title"),C6=Zn("div","description"),E6=Zn("div","icon"),P6=Zn("div","actions"),$6=Zn("div","dismissButton"),k6=e=>{switch(e){case"critical":return k.jsx(Be.ErrorOutline,{});case"info":return k.jsx(Be.Info,{});case"warning":return k.jsx(Be.WarningAmber,{});case"positive":return k.jsx(Be.CheckCircleOutline,{});default:return null}},Jn=d.createContext(void 0),E0=d.forwardRef(({children:e,...t},r)=>{const[n,o]=d.useState(null),[i,a]=d.useState(null),[s,l]=d.useState(null),[c,u]=d.useState(null),g=d.useMemo(()=>({setTitle:o,setDescription:a,setActions:l,setDismiss:u}),[o,a,l,u]);return k.jsx(Jn.Provider,{value:g,children:k.jsxs(S6,{ref:r,...t,role:"alert",children:[k.jsx(E6,{alignItems:"flex-start",children:k6(t.tone)}),k.jsxs(zi,{flex:"1",gap:"200",children:[k.jsxs(kt,{children:[n,i]}),s]}),c,e]})})});E0.displayName="Alert.Root";const P0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx(w6,{...t,fontWeight:"600",children:e});return r.setTitle(n),()=>r.setTitle(null)}},[e,t]),null};P0.displayName="Alert.Title";const $0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx(C6,{...t,children:e});return r.setDescription(n),()=>r.setDescription(null)}},[e,t]),null};$0.displayName="Alert.Description";const k0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx(P6,{...t,children:e});return r.setActions(n),()=>r.setActions(null)}},[e,t]),null};k0.displayName="Alert.Actions";const T0=({children:e,...t})=>{const r=d.useContext(Jn);return d.useEffect(()=>{if(r){const n=k.jsx($6,{children:k.jsx(Gn,{"aria-label":"Dismiss",...t,variant:"ghost",size:"2xs",children:k.jsx(Be.Clear,{role:"img"})})});return r.setDismiss(n),()=>r.setDismiss(null)}},[e,t]),null};T0.displayName="Alert.DismissButton";const T6={Root:E0,Title:P0,Description:$0,Actions:k0,DismissButton:T0};var zf,Ff,Mf,_f;const R6=W({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...fr.base,...(zf=fr.variants)==null?void 0:zf.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Ff=fr.variants)==null?void 0:Ff.variant.solid}},variants:{size:{xs:{button:(Mf=fr.variants)==null?void 0:Mf.size.xs},md:{button:(_f=fr.variants)==null?void 0:_f.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:O6,withProvider:I6}=xt({recipe:R6}),D6=I6(wO,"root"),A6=O6(EO,"button"),ql=d.forwardRef(({children:e,...t},r)=>k.jsx(D6,{ref:r,...t,children:e}));ql.displayName="ToggleButtonGroup.Root";const Yl=d.forwardRef(({children:e,...t},r)=>k.jsx(A6,{...t,ref:r,children:e}));Yl.displayName="ToggleButtonGroup.Button";const N6={Root:ql,Button:Yl},L6=`
18
41
  "label"
19
42
  "input"
20
43
  "description"
21
44
  "error"
22
- `,qv=`
45
+ `,z6=`
23
46
  "label input"
24
47
  "label description"
25
48
  "label error"
26
- `,Zv=S.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:Gv},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:qv,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:Yv,withContext:$t}=S.createSlotRecipeContext({recipe:Zv}),Xv=Yv("div","root"),Jv=$t("div","label"),Qv=$t("div","input"),eb=$t("div","description"),tb=$t("div","error"),rb=$t("div","popover"),nb=a.forwardRef(({isInvalid:r,isRequired:e,isDisabled:t,isReadOnly:n,children:o,...i},l)=>{const[s,u]=a.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:r,isRequired:e,isDisabled:t,isReadOnly:n}),{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:b}=Qr({label:s.label,description:s.description,errorMessage:s.error});a.useEffect(()=>{u(h=>({...h,isInvalid:r,isRequired:e,isDisabled:t,isReadOnly:n}))},[r,e,t,n]);const p={...d,isInvalid:r,isRequired:e,isDisabled:t,isReadOnly:n};return x.jsx(He.Provider,{value:{context:s,setContext:u},children:x.jsxs(Xv,{ref:l,...i,children:[s.label&&x.jsxs(Jv,{...s.labelSlotProps,children:[x.jsxs("label",{...c,children:[s.label,e&&x.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&x.jsxs(Bf,{children:[x.jsx(ve,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:x.jsx(ve,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:x.jsx(vt,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:x.jsx(ee.HelpOutline,{})})})}),x.jsx(ja,{children:x.jsx(rb,{asChild:!0,children:x.jsx(Nf,{children:x.jsx(ve,{p:"300",children:s.info})})})})]})]}),s.input&&x.jsx(Qv,{...s.inputSlotProps,children:a.Children.map(s.input,h=>a.isValidElement(h)?a.cloneElement(h,p):h)}),s.description&&x.jsx(eb,{...f,...s.descriptionSlotProps,children:s.description}),r&&s.error&&x.jsxs(tb,{...b,...s.errorSlotProps,children:[x.jsx(ve,{as:ee.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),o]})})}),ob=({children:r,...e})=>{const{setContext:t}=a.useContext(He);return a.useEffect(()=>{t(n=>({...n,label:r,labelSlotProps:e}))},[r,t]),null},ib=({children:r,...e})=>{const{setContext:t}=a.useContext(He);return a.useEffect(()=>{t(n=>({...n,input:r,inputSlotProps:e}))},[r,t]),null},lb=({children:r,...e})=>{const{setContext:t}=a.useContext(He);return a.useEffect(()=>{t(n=>({...n,description:r,descriptionSlotProps:e}))},[r,t]),null},ab=({children:r,...e})=>{const{setContext:t}=a.useContext(He);return a.useEffect(()=>{t(n=>({...n,error:r,errorSlotProps:e}))},[r,t]),null},sb=({children:r})=>{const{setContext:e}=a.useContext(He);return a.useEffect(()=>{e(t=>({...t,info:r}))},[r,e]),null},He=a.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),ub={Root:nb,Label:ob,Input:ib,Description:lb,Error:ab,InfoBox:sb};Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>S.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>S.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>S.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>S.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>S.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>S.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>S.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>S.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>S.Table});Object.defineProperty(exports,"useHotkeys",{enumerable:!0,get:()=>vs.useHotkeys});Object.defineProperty(exports,"useCopyToClipboard",{enumerable:!0,get:()=>bs.useCopyToClipboard});exports.Accordion=bv;exports.Alert=zv;exports.Avatar=Eo;exports.Badge=Rv;exports.Box=ve;exports.Button=Gt;exports.Card=Ev;exports.CardContent=wn;exports.CardHeader=Cn;exports.CardRoot=Sn;exports.Checkbox=ts;exports.ColorModeLabel=ep;exports.DialogActionTrigger=wd;exports.DialogBackdrop=xd;exports.DialogBody=$d;exports.DialogCloseTrigger=hd;exports.DialogContent=bd;exports.DialogDescription=Sd;exports.DialogFooter=md;exports.DialogHeader=yd;exports.DialogRoot=gd;exports.DialogTitle=Pd;exports.DialogTrigger=Cd;exports.FormField=ub;exports.FormFieldContext=He;exports.Grid=Yp;exports.IconButton=vt;exports.Link=Nl;exports.ListItem=kd;exports.ListRoot=Dd;exports.LoadingSpinner=ls;exports.MakeElementFocusable=Xa;exports.NimbusProvider=jp;exports.Select=ov;exports.SimpleGrid=Rd;exports.Stack=er;exports.TableBody=Nd;exports.TableCell=Bd;exports.TableColumn=Md;exports.TableColumnGroup=Fd;exports.TableColumnHeader=Od;exports.TableFooter=Ad;exports.TableHeader=Ld;exports.TableRoot=Kd;exports.TableRow=Id;exports.Text=zl;exports.TextInput=rs;exports.ToggleButtonGroup=Uv;exports.ToggleButtonGroupButton=Tn;exports.ToggleButtonGroupRoot=En;exports.Tooltip=Za;exports.TooltipTrigger=Ya;exports.VisuallyHidden=bn;exports._SelectOption=yn;exports._SelectOptionGroup=$n;exports._SelectOptions=mn;exports._SelectRoot=hn;exports.system=Qa;exports.useColorMode=pn;exports.useColorModeValue=Qf;exports.useColorScheme=Vp;
49
+ `,F6=W({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:L6},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:z6,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:M6,withContext:Qn}=xt({recipe:F6}),_6=M6("div","root"),V6=Qn("div","label"),B6=Qn("div","input"),W6=Qn("div","description"),K6=Qn("div","error"),H6=Qn("div","popover"),j6=d.forwardRef(({isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n,children:o,...i},a)=>{const[s,l]=d.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}),{labelProps:c,fieldProps:u,descriptionProps:g,errorMessageProps:f}=Sl({label:s.label,description:s.description,errorMessage:s.error});d.useEffect(()=>{l(h=>({...h,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}))},[e,t,r,n]);const p={...u,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n};return k.jsx(kr.Provider,{value:{context:s,setContext:l},children:k.jsxs(_6,{ref:a,...i,children:[s.label&&k.jsxs(V6,{...s.labelSlotProps,children:[k.jsxs("label",{...c,children:[s.label,t&&k.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&k.jsxs(hO,{children:[k.jsx(kt,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:k.jsx(kt,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:k.jsx(Gn,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:k.jsx(Be.HelpOutline,{})})})}),k.jsx(o0,{children:k.jsx(H6,{asChild:!0,children:k.jsx(mO,{children:k.jsx(kt,{p:"300",children:s.info})})})})]})]}),s.input&&k.jsx(B6,{...s.inputSlotProps,children:d.Children.map(s.input,h=>d.isValidElement(h)?d.cloneElement(h,p):h)}),s.description&&k.jsx(W6,{...g,...s.descriptionSlotProps,children:s.description}),e&&s.error&&k.jsxs(K6,{...f,...s.errorSlotProps,children:[k.jsx(kt,{as:Be.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),o]})})}),U6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,label:e,labelSlotProps:t}))},[e,r]),null},G6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,input:e,inputSlotProps:t}))},[e,r]),null},q6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,description:e,descriptionSlotProps:t}))},[e,r]),null},Y6=({children:e,...t})=>{const{setContext:r}=d.useContext(kr);return d.useEffect(()=>{r(n=>({...n,error:e,errorSlotProps:t}))},[e,r]),null},X6=({children:e})=>{const{setContext:t}=d.useContext(kr);return d.useEffect(()=>{t(r=>({...r,info:e}))},[e,t]),null},kr=d.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),Z6={Root:j6,Label:U6,Input:G6,Description:q6,Error:Y6,InfoBox:X6};function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ms.apply(null,arguments)}var R0=["shift","alt","meta","mod","ctrl"],J6={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Wt(e){return(e&&J6[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Q6(e){return R0.includes(e)}function Ca(e,t){return t===void 0&&(t=","),e.split(t)}function Ea(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(a){return Wt(a)}),o={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},i=n.filter(function(a){return!R0.includes(a)});return ms({},o,{keys:i,description:r,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&O0([Wt(e.key),Wt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&I0([Wt(e.key),Wt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Kt.clear()})})();var Kt=new Set;function Xl(e){return Array.isArray(e)}function eD(e,t){t===void 0&&(t=",");var r=Xl(e)?e:e.split(t);return r.every(function(n){return Kt.has(n.trim().toLowerCase())})}function O0(e){var t=Array.isArray(e)?e:[e];Kt.has("meta")&&Kt.forEach(function(r){return!Q6(r)&&Kt.delete(r.toLowerCase())}),t.forEach(function(r){return Kt.add(r.toLowerCase())})}function I0(e){var t=Array.isArray(e)?e:[e];e==="meta"?Kt.clear():t.forEach(function(r){return Kt.delete(r.toLowerCase())})}function tD(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function rD(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function nD(e){return D0(e,["input","textarea","select"])}function D0(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,o=null;return oD(r)&&n?o=e.composedPath()[0]&&e.composedPath()[0].tagName:o=r&&r.tagName,Xl(t)?!!(o&&t&&t.some(function(i){var a;return i.toLowerCase()===((a=o)==null?void 0:a.toLowerCase())})):!!(o&&t&&t)}function oD(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function iD(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var aD=function(t,r,n){n===void 0&&(n=!1);var o=r.alt,i=r.meta,a=r.mod,s=r.shift,l=r.ctrl,c=r.keys,u=t.key,g=t.code,f=t.ctrlKey,p=t.metaKey,h=t.shiftKey,m=t.altKey,b=Wt(g),y=u.toLowerCase();if(!(c!=null&&c.includes(b))&&!(c!=null&&c.includes(y))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(b))return!1;if(!n){if(o===!m&&y!=="alt"||s===!h&&y!=="shift")return!1;if(a){if(!p&&!f)return!1}else if(i===!p&&y!=="meta"&&y!=="os"||l===!f&&y!=="ctrl"&&y!=="control")return!1}return c&&c.length===1&&(c.includes(y)||c.includes(b))?!0:c?eD(c):!c},sD=d.createContext(void 0),lD=function(){return d.useContext(sD)};function A0(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&A0(e[n],t[n])},!0):e===t}var cD=d.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),uD=function(){return d.useContext(cD)};function dD(e){var t=d.useRef(void 0);return A0(t.current,e)||(t.current=e),t.current}var Cd=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},fD=typeof window<"u"?d.useLayoutEffect:d.useEffect;function pD(e,t,r,n){var o=d.useState(null),i=o[0],a=o[1],s=d.useRef(!1),l=r instanceof Array?n instanceof Array?void 0:n:r,c=Xl(e)?e.join(l==null?void 0:l.splitKey):e,u=r instanceof Array?r:n instanceof Array?n:void 0,g=d.useCallback(t,u??[]),f=d.useRef(g);u?f.current=g:f.current=t;var p=dD(l),h=uD(),m=h.enabledScopes,b=lD();return fD(function(){if(!((p==null?void 0:p.enabled)===!1||!iD(m,p==null?void 0:p.scopes))){var y=function(C,D){var v;if(D===void 0&&(D=!1),!(nD(C)&&!D0(C,p==null?void 0:p.enableOnFormTags))){if(i!==null){var P=i.getRootNode();if((P instanceof Document||P instanceof ShadowRoot)&&P.activeElement!==i&&!i.contains(P.activeElement)){Cd(C);return}}(v=C.target)!=null&&v.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||Ca(c,p==null?void 0:p.splitKey).forEach(function(T){var I,L=Ea(T,p==null?void 0:p.combinationKey);if(aD(C,L,p==null?void 0:p.ignoreModifiers)||(I=L.keys)!=null&&I.includes("*")){if(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(C)||D&&s.current)return;if(tD(C,L,p==null?void 0:p.preventDefault),!rD(C,L,p==null?void 0:p.enabled)){Cd(C);return}f.current(C,L),D||(s.current=!0)}})}},x=function(C){C.key!==void 0&&(O0(Wt(C.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&y(C))},S=function(C){C.key!==void 0&&(I0(Wt(C.code)),s.current=!1,p!=null&&p.keyup&&y(C,!0))},$=i||(l==null?void 0:l.document)||document;return $.addEventListener("keyup",S),$.addEventListener("keydown",x),b&&Ca(c,p==null?void 0:p.splitKey).forEach(function(w){return b.addHotkey(Ea(w,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){$.removeEventListener("keyup",S),$.removeEventListener("keydown",x),b&&Ca(c,p==null?void 0:p.splitKey).forEach(function(w){return b.removeHotkey(Ea(w,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[i,c,p,m]),a}function gD(){var e=d.useRef(!1),t=d.useCallback(function(){return e.current},[]);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var hD=function(e){e===void 0&&(e={});var t=d.useState(e),r=t[0],n=t[1],o=d.useCallback(function(i){n(function(a){return Object.assign({},a,i instanceof Function?i(a):i)})},[]);return[r,o]},Pa,Ed;function mD(){return Ed||(Ed=1,Pa=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Pa}var $a,Pd;function vD(){if(Pd)return $a;Pd=1;var e=mD(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var s,l,c,u,g,f,p=!1;a||(a={}),s=a.debug||!1;try{c=e(),u=document.createRange(),g=document.getSelection(),f=document.createElement("span"),f.textContent=i,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(m){if(m.stopPropagation(),a.format)if(m.preventDefault(),typeof m.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[a.format]||t.default;window.clipboardData.setData(b,i)}else m.clipboardData.clearData(),m.clipboardData.setData(a.format,i);a.onCopy&&(m.preventDefault(),a.onCopy(m.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),g.addRange(u);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");p=!0}catch(m){s&&console.error("unable to copy using execCommand: ",m),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),p=!0}catch(b){s&&console.error("unable to copy using clipboardData: ",b),s&&console.error("falling back to prompt"),l=n("message"in a?a.message:r),window.prompt(l,i)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(u):g.removeAllRanges()),f&&document.body.removeChild(f),c()}return p}return $a=o,$a}var bD=vD();const yD=Yf(bD);var xD=function(){var e=gD(),t=hD({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],o=d.useCallback(function(i){if(e()){var a,s;try{if(typeof i!="string"&&typeof i!="number"){var l=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(l),n({value:i,error:l,noUserInteraction:!0});return}else if(i===""){var l=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(l),n({value:i,error:l,noUserInteraction:!0});return}s=i.toString(),a=yD(s),n({value:s,error:void 0,noUserInteraction:a})}catch(c){n({value:s,error:c,noUserInteraction:a})}}},[]);return[r,o]};exports.Accordion=n6;exports.Alert=T6;exports.Avatar=Wh;exports.Badge=b6;exports.Bleed=l5;exports.Box=kt;exports.Button=Ri;exports.Card=g6;exports.CardContent=Gl;exports.CardHeader=Ul;exports.CardRoot=jl;exports.Checkbox=v0;exports.Code=u5;exports.ColorModeLabel=WO;exports.DialogActionTrigger=oR;exports.DialogBackdrop=eR;exports.DialogBody=QT;exports.DialogCloseTrigger=YT;exports.DialogContent=qT;exports.DialogDescription=rR;exports.DialogFooter=ZT;exports.DialogHeader=JT;exports.DialogRoot=XT;exports.DialogTitle=tR;exports.DialogTrigger=nR;exports.Em=Q5;exports.Flex=Pn;exports.FormField=Z6;exports.FormFieldContext=kr;exports.Grid=MI;exports.Heading=X5;exports.Highlight=D5;exports.IconButton=Gn;exports.Kbd=L5;exports.Link=Qv;exports.List=V5;exports.ListItem=lR;exports.ListRoot=sR;exports.LoadingSpinner=w0;exports.MakeElementFocusable=f0;exports.NimbusProvider=II;exports.Select=UI;exports.SimpleGrid=cR;exports.Stack=zi;exports.Table=q5;exports.TableBody=vR;exports.TableCell=mR;exports.TableColumn=fR;exports.TableColumnGroup=dR;exports.TableColumnHeader=bR;exports.TableFooter=gR;exports.TableHeader=pR;exports.TableRoot=uR;exports.TableRow=hR;exports.Text=tb;exports.TextInput=b0;exports.ToggleButtonGroup=N6;exports.ToggleButtonGroupButton=Yl;exports.ToggleButtonGroupRoot=ql;exports.Tooltip=u0;exports.TooltipTrigger=d0;exports.VisuallyHidden=Fl;exports._SelectOption=Bl;exports._SelectOptionGroup=Wl;exports._SelectOptions=Vl;exports._SelectRoot=Ml;exports.system=h0;exports.useColorMode=Ll;exports.useColorModeValue=BO;exports.useColorScheme=OI;exports.useCopyToClipboard=xD;exports.useHotkeys=pD;
27
50
  //# sourceMappingURL=index.cjs.map