@commercetools/nimbus 0.0.7-rc8-experimental → 0.0.7-rc8

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,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("@chakra-ui/react"),U=require("@commercetools/nimbus-tokens"),s=require("react"),P=require("react/jsx-runtime"),je=require("react-dom"),se=require("@commercetools/nimbus-icons");function Xs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const X=Xs(s),ri=w.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:Js}=w.createRecipeContext({recipe:ri}),Qs=Js("figure");function eu(t,e){return t.split("")[0].toUpperCase()+e.split("")[0].toUpperCase()}const ni=s.forwardRef((t,e)=>{const{firstName:r,lastName:n,src:o,alt:i,...l}=t,a=`${r} ${n}`,u={"aria-label":`${a} avatar`,ref:e,...l};return P.jsx(Qs,{...u,children:o?P.jsx(w.Image,{src:o,alt:i||a}):eu(r,n)})});ni.displayName="Avatar";const xe=s.forwardRef((t,e)=>P.jsx(w.Box,{ref:e,...t}));xe.displayName="Box";const H=typeof document<"u"?s.useLayoutEffect:()=>{};function J(t){const e=s.useRef(null);return H(()=>{e.current=t},[t]),s.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function tu(t){let[e,r]=s.useState(t),n=s.useRef(null),o=J(()=>{if(!n.current)return;let l=n.current.next();if(l.done){n.current=null;return}e===l.value?o():r(l.value)});H(()=>{n.current&&o()});let i=J(l=>{n.current=l(e),o()});return[e,i]}const Bt={prefix:String(Math.round(Math.random()*1e10)),current:0},oi=s.createContext(Bt),ru=s.createContext(!1);let nu=!!(typeof window<"u"&&window.document&&window.document.createElement),hr=new WeakMap;function ou(t=!1){let e=s.useContext(oi),r=s.useRef(null);if(r.current===null&&!t){var n,o;let i=(o=s.__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=hr.get(i);l==null?hr.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==l.state&&(e.current=l.id,hr.delete(i))}r.current=++e.current}return r.current}function iu(t){let e=s.useContext(oi);e===Bt&&!nu&&process.env.NODE_ENV!=="production"&&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=ou(!!t),n=e===Bt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function lu(t){let e=s.useId(),[r]=s.useState(_e()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Bt.prefix}`;return t||`${n}-${e}`}const au=typeof s.useId=="function"?lu:iu;function su(){return!1}function uu(){return!0}function cu(t){return()=>{}}function _e(){return typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore(cu,su,uu):s.useContext(ru)}let du=!!(typeof window<"u"&&window.document&&window.document.createElement),tt=new Map,ct;typeof FinalizationRegistry<"u"&&(ct=new FinalizationRegistry(t=>{tt.delete(t)}));function te(t){let[e,r]=s.useState(t),n=s.useRef(null),o=au(e),i=s.useRef(null);if(ct&&ct.register(i,o),du){const l=tt.get(o);l&&!l.includes(n)?l.push(n):tt.set(o,[n])}return H(()=>{let l=o;return()=>{ct&&ct.unregister(i),tt.delete(l)}},[o]),s.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),o}function fu(t,e){if(t===e)return t;let r=tt.get(t);if(r)return r.forEach(o=>o.current=e),e;let n=tt.get(e);return n?(n.forEach(o=>o.current=t),t):e}function bt(t=[]){let e=te(),[r,n]=tu(e),o=s.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return H(o,[e,o,...t]),r}function Te(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const j=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},oe=t=>t&&"window"in t&&t.window===t?t:j(t).defaultView||window;function pu(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function vu(t){return pu(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let bu=!1;function Yt(){return bu}function W(t,e){if(!Yt())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:vu(r)?r=r.host:r=r.parentNode}return!1}const re=(t=document)=>{var e;if(!Yt())return t.activeElement;let r=t.activeElement;for(;r&&"shadowRoot"in r&&(!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement);)r=r.shadowRoot.activeElement;return r};function V(t){return Yt()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class hu{get currentNode(){return this._currentNode}set currentNode(e){if(!W(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,o=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=n,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=o,this._currentSetFor.add(a),n=o=l.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return W(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let i=this.nextNode();return i&&(this.currentNode=i),i}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const u=l.shadowRoot;if(u){const c=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function gu(t,e,r,n){return Yt()?new hu(t,e,r,n):t.createTreeWalker(e,r,n)}function ii(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=ii(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function mu(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=ii(t))&&(n&&(n+=" "),n+=e);return n}function A(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];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]=Te(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?e[o]=mu(i,l):o==="id"&&i&&l?e.id=fu(i,l):e[o]=l!==void 0?l:i}}return e}function li(...t){return t.length===1&&t[0]?t[0]:e=>{for(let r of t)typeof r=="function"?r(e):r!=null&&(r.current=e)}}const yu=new Set(["id"]),$u=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),xu=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Su=/^(data-.*)$/;function Q(t,e={}){let{labelable:r,isLink:n,propNames:o}=e,i={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(yu.has(l)||r&&$u.has(l)||n&&xu.has(l)||o!=null&&o.has(l)||Su.test(l))&&(i[l]=t[l]);return i}function be(t){if(Pu())t.focus({preventScroll:!0});else{let e=Eu(t);t.focus(),wu(e)}}let Dt=null;function Pu(){if(Dt==null){Dt=!1;try{document.createElement("div").focus({get preventScroll(){return Dt=!0,!0}})}catch{}}return Dt}function Eu(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function wu(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}function Zt(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(r=>t.test(r.brand)))||t.test(window.navigator.userAgent)}function ln(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Se(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ke=Se(function(){return ln(/^Mac/i)}),Cu=Se(function(){return ln(/^iPhone/i)}),ai=Se(function(){return ln(/^iPad/i)||ke()&&navigator.maxTouchPoints>1}),Xt=Se(function(){return Cu()||ai()}),Tu=Se(function(){return ke()||Xt()}),an=Se(function(){return Zt(/AppleWebKit/i)&&!si()}),si=Se(function(){return Zt(/Chrome/i)}),sn=Se(function(){return Zt(/Android/i)}),ku=Se(function(){return Zt(/Firefox/i)}),Du=s.createContext({isNative:!0,open:Lu,useHref:t=>t});function Jt(){return s.useContext(Du)}function Ru(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function ze(t,e,r=!0){var n,o;let{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}=e;ku()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&t.target==="_blank"&&(ke()?i=!0:l=!0);let c=an()&&ke()&&!ai()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u,bubbles:!0,cancelable:!0});ze.isOpening=r,be(t),t.dispatchEvent(c),ze.isOpening=!1}ze.isOpening=!1;function Ku(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function Lu(t,e){Ku(t,r=>ze(r,e))}function ui(t){let e=Jt();var r;const n=e.useHref((r=t==null?void 0:t.href)!==null&&r!==void 0?r:"");return{href:t!=null&&t.href?n:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Xe=new Map,Nr=new Set;function Qn(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{if(!t(n)||!n.target)return;let o=Xe.get(n.target);o||(o=new Set,Xe.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!t(n)||!n.target)return;let o=Xe.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Xe.delete(n.target)),Xe.size===0)){for(let i of Nr)i();Nr.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Qn():document.addEventListener("DOMContentLoaded",Qn));function ci(t){requestAnimationFrame(()=>{Xe.size===0?t():Nr.add(t)})}function Qt(){let t=s.useRef(new Map),e=s.useCallback((o,i,l,a)=>{let u=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:i,eventTarget:o,fn:u,options:a}),o.addEventListener(i,u,a)},[]),r=s.useCallback((o,i,l,a)=>{var u;let c=((u=t.current.get(l))===null||u===void 0?void 0:u.fn)||l;o.removeEventListener(i,c,a),t.current.delete(l)},[]),n=s.useCallback(()=>{t.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return s.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function di(t,e){let{id:r,"aria-label":n,"aria-labelledby":o}=t;return r=te(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":o}}function de(t){const e=s.useRef(null);return s.useMemo(()=>({get current(){return e.current},set current(r){e.current=r,typeof t=="function"?t(r):t&&(t.current=r)}}),[t])}function eo(t,e){const r=s.useRef(!0),n=s.useRef(null);H(()=>(r.current=!0,()=>{r.current=!1}),[]),H(()=>{r.current?r.current=!1:(!n.current||e.some((o,i)=>!Object.is(o,n[i])))&&t(),n.current=e},e)}function Fu(){return typeof window.ResizeObserver<"u"}function Br(t){const{ref:e,box:r,onResize:n}=t;s.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(Fu()){const i=new window.ResizeObserver(l=>{l.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,e,r])}function un(t,e){H(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ht(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function fi(t,e){let r=t;for(ht(r,e)&&(r=r.parentElement);r&&!ht(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Mu(t,e){const r=[];for(;t&&t!==document.documentElement;)ht(t,e)&&r.push(t),t=t.parentElement;return r}let Au=0;const gr=new Map;function Iu(t){let[e,r]=s.useState();return H(()=>{if(!t)return;let n=gr.get(t);if(n)r(n.element.id);else{let o=`react-aria-description-${Au++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=t,document.body.appendChild(i),n={refCount:0,element:i},gr.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),gr.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function dt(t,e,r,n){let o=J(r),i=r==null;s.useEffect(()=>{if(i||!t.current)return;let l=t.current;return l.addEventListener(e,o,n),()=>{l.removeEventListener(e,o,n)}},[t,e,n,i,o])}function pi(t,e){let r=to(t,e,"left"),n=to(t,e,"top"),o=e.offsetWidth,i=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:v,scrollPaddingLeft:p}=getComputedStyle(t),b=l+parseInt(c,10),m=a+parseInt(u,10),y=b+t.clientWidth,$=m+t.clientHeight,E=parseInt(d,10)||0,C=parseInt(v,10)||0,K=parseInt(f,10)||0,T=parseInt(p,10)||0;r<=l+T?l=r-parseInt(c,10)-T:r+o>y-K&&(l+=r+o-y+K),n<=m+E?a=n-parseInt(u,10)-E:n+i>$-C&&(a+=n+i-$+C),t.scrollLeft=l,t.scrollTop=a}function to(t,e,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;e.offsetParent&&(o+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){o-=t[n];break}e=e.offsetParent}return o}function ro(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let u=Mu(t);for(let c of u)pi(c,t)}else{var r;let{left:u,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:d,top:f}=t.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=t.scrollIntoView)===null||i===void 0||i.call(t,{block:"nearest"})}}}}function Or(t){return t.mozInputSource===0&&t.isTrusted?!0:sn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Nu(t){return!sn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function cn(t,e,r){let n=s.useRef(e),o=J(()=>{r&&r(n.current)});s.useEffect(()=>{var i;let l=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[t,o])}const Bu="react-aria-clear-focus",Ou="react-aria-focus";function Je(t){return ke()?t.metaKey:t.ctrlKey}function vi(t,e=!0){let[r,n]=s.useState(!0),o=r&&e;return H(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,o]),hi(t,o,s.useCallback(()=>n(!1),[])),o}function bi(t,e){let[r,n]=s.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=r==="exiting";return hi(t,o,s.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function hi(t,e,r){H(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||je.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[t,e,r])}const dn=["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"])'],zu=dn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";dn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Hu=dn.join(':not([hidden]):not([tabindex="-1"]),');function gi(t){return t.matches(zu)}function Vu(t){return t.matches(Hu)}function Re(t,e,r){let[n,o]=s.useState(t||e),i=s.useRef(t!==void 0),l=t!==void 0;s.useEffect(()=>{let c=i.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let a=l?t:n,u=s.useCallback((c,...d)=>{let f=(v,...p)=>{r&&(Object.is(a,v)||r(v,...p)),l||(a=v)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...b)=>{let m=c(l?a:p,...b);return f(m,...d),l?p:m})):(l||o(c),f(c,...d))},[l,a,r]);return[a,u]}function Ot(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}function fn(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function mi(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function yi(t){let e=s.useRef({isFocused:!1,observer:null});H(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=J(n=>{t==null||t(n)});return s.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=>{if(e.current.isFocused=!1,o.disabled){let a=fn(l);r(a)}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 a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let zt=!1;function no(t){for(;t&&!gi(t);)t=t.parentElement;let e=oe(t),r=e.document.activeElement;if(!r||r===t)return;zt=!0;let n=!1,o=d=>{(d.target===r||n)&&d.stopImmediatePropagation()},i=d=>{(d.target===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,be(r),u()))},l=d=>{(d.target===t||n)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,be(r),u()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",i,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",i,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),zt=!1,n=!1},c=requestAnimationFrame(u);return u}let Qe="default",zr="",It=new WeakMap;function oo(t){if(Xt()){if(Qe==="default"){const e=j(t);zr=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Qe="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";It.set(t,t.style[e]),t.style[e]="none"}}function mr(t){if(Xt()){if(Qe!=="disabled")return;Qe="restoring",setTimeout(()=>{ci(()=>{if(Qe==="restoring"){const e=j(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=zr||""),zr="",Qe="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&It.has(t)){let e=It.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),It.delete(t)}}const gt=s.createContext({register:()=>{}});gt.displayName="PressResponderContext";function ju(t,e){return e.get?e.get.call(t):e.value}function $i(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function _u(t,e){var r=$i(t,e,"get");return ju(t,r)}function Wu(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Uu(t,e,r){Wu(t,e),e.set(t,r)}function Gu(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function io(t,e,r){var n=$i(t,e,"set");return Gu(t,n,r),r}function qu(t){let e=s.useContext(gt);if(e){let{register:r,...n}=e;t=A(n,t),r()}return un(e,t.ref),t}var Rt=new WeakMap;class Kt{continuePropagation(){io(this,Rt,!1)}get shouldStopPropagation(){return _u(this,Rt)}constructor(e,r,n,o){Uu(this,Rt,{writable:!0,value:void 0}),io(this,Rt,!0);var i;let l=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const a=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),a&&(d!=null&&f!=null?(u=d-a.left,c=f-a.top):(u=a.width/2,c=a.height/2)),this.type=e,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=u,this.y=c}}const lo=Symbol("linkClicked");function He(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:l,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:v,...p}=qu(t),[b,m]=s.useState(!1),y=s.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:E}=Qt(),C=J((h,R)=>{let B=y.current;if(a||B.didFirePressStart)return!1;let D=!0;if(B.isTriggeringEvent=!0,n){let z=new Kt("pressstart",R,h);n(z),D=z.shouldStopPropagation}return r&&r(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,m(!0),D}),K=J((h,R,B=!0)=>{let D=y.current;if(!D.didFirePressStart)return!1;D.didFirePressStart=!1,D.isTriggeringEvent=!0;let z=!0;if(o){let g=new Kt("pressend",R,h);o(g),z=g.shouldStopPropagation}if(r&&r(!1),m(!1),e&&B&&!a){let g=new Kt("press",R,h);e(g),z&&(z=g.shouldStopPropagation)}return D.isTriggeringEvent=!1,z}),T=J((h,R)=>{let B=y.current;if(a)return!1;if(i){B.isTriggeringEvent=!0;let D=new Kt("pressup",R,h);return i(D),B.isTriggeringEvent=!1,D.shouldStopPropagation}return!0}),x=J(h=>{let R=y.current;if(R.isPressed&&R.target){R.didFirePressStart&&R.pointerType!=null&&K(Ye(R.target,h),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,E(),f||mr(R.target);for(let B of R.disposables)B();R.disposables=[]}}),M=J(h=>{d&&x(h)}),F=J(h=>{l==null||l(h)}),N=J((h,R)=>{if(l){let B=new MouseEvent("click",h);mi(B,R),l(fn(B))}}),L=s.useMemo(()=>{let h=y.current,R={onKeyDown(D){if(yr(D.nativeEvent,D.currentTarget)&&W(D.currentTarget,V(D.nativeEvent))){var z;uo(V(D.nativeEvent),D.key)&&D.preventDefault();let g=!0;if(!h.isPressed&&!D.repeat){h.target=D.currentTarget,h.isPressed=!0,h.pointerType="keyboard",g=C(D,"keyboard");let k=D.currentTarget,S=O=>{yr(O,k)&&!O.repeat&&W(k,V(O))&&h.target&&T(Ye(h.target,O),"keyboard")};$(j(D.currentTarget),"keyup",Te(S,B),!0)}g&&D.stopPropagation(),D.metaKey&&ke()&&((z=h.metaKeyEvents)===null||z===void 0||z.set(D.key,D.nativeEvent))}else D.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(D){if(!(D&&!W(D.currentTarget,V(D.nativeEvent)))&&D&&D.button===0&&!h.isTriggeringEvent&&!ze.isOpening){let z=!0;if(a&&D.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||Or(D.nativeEvent))){let g=C(D,"virtual"),k=T(D,"virtual"),S=K(D,"virtual");F(D),z=g&&k&&S}else if(h.isPressed&&h.pointerType!=="keyboard"){let g=h.pointerType||D.nativeEvent.pointerType||"virtual";z=K(Ye(D.currentTarget,D),g,!0),h.isOverTarget=!1,F(D),x(D)}h.ignoreEmulatedMouseEvents=!1,z&&D.stopPropagation()}}},B=D=>{var z;if(h.isPressed&&h.target&&yr(D,h.target)){var g;uo(V(D),D.key)&&D.preventDefault();let S=V(D),O=W(h.target,V(D));K(Ye(h.target,D),"keyboard",O),O&&N(D,h.target),E(),D.key!=="Enter"&&pn(h.target)&&W(h.target,S)&&!D[lo]&&(D[lo]=!0,ze(h.target,D,!1)),h.isPressed=!1,(g=h.metaKeyEvents)===null||g===void 0||g.delete(D.key)}else if(D.key==="Meta"&&(!((z=h.metaKeyEvents)===null||z===void 0)&&z.size)){var k;let S=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let O of S.values())(k=h.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){R.onPointerDown=g=>{if(g.button!==0||!W(g.currentTarget,V(g.nativeEvent)))return;if(Nu(g.nativeEvent)){h.pointerType="virtual";return}h.pointerType=g.pointerType;let k=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=g.pointerId,h.target=g.currentTarget,f||oo(h.target),k=C(g,h.pointerType);let S=V(g.nativeEvent);"releasePointerCapture"in S&&S.releasePointerCapture(g.pointerId),$(j(g.currentTarget),"pointerup",D,!1),$(j(g.currentTarget),"pointercancel",z,!1)}k&&g.stopPropagation()},R.onMouseDown=g=>{if(W(g.currentTarget,V(g.nativeEvent))&&g.button===0){if(c){let k=no(g.target);k&&h.disposables.push(k)}g.stopPropagation()}},R.onPointerUp=g=>{!W(g.currentTarget,V(g.nativeEvent))||h.pointerType==="virtual"||g.button===0&&T(g,h.pointerType||g.pointerType)},R.onPointerEnter=g=>{g.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,C(Ye(h.target,g),h.pointerType))},R.onPointerLeave=g=>{g.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,K(Ye(h.target,g),h.pointerType,!1),M(g))};let D=g=>{if(g.pointerId===h.activePointerId&&h.isPressed&&g.button===0&&h.target){if(W(h.target,V(g))&&h.pointerType!=null){let k=!1,S=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(k?x(g):(be(h.target),h.target.click()))},80);$(g.currentTarget,"click",()=>k=!0,!0),h.disposables.push(()=>clearTimeout(S))}else x(g);h.isOverTarget=!1}},z=g=>{x(g)};R.onDragStart=g=>{W(g.currentTarget,V(g.nativeEvent))&&x(g)}}else if(process.env.NODE_ENV==="test"){R.onMouseDown=g=>{if(g.button!==0||!W(g.currentTarget,V(g.nativeEvent)))return;if(h.ignoreEmulatedMouseEvents){g.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=g.currentTarget,h.pointerType=Or(g.nativeEvent)?"virtual":"mouse",je.flushSync(()=>C(g,h.pointerType))&&g.stopPropagation(),c){let S=no(g.target);S&&h.disposables.push(S)}$(j(g.currentTarget),"mouseup",D,!1)},R.onMouseEnter=g=>{if(!W(g.currentTarget,V(g.nativeEvent)))return;let k=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,k=C(g,h.pointerType)),k&&g.stopPropagation()},R.onMouseLeave=g=>{if(!W(g.currentTarget,V(g.nativeEvent)))return;let k=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,k=K(g,h.pointerType,!1),M(g)),k&&g.stopPropagation()},R.onMouseUp=g=>{W(g.currentTarget,V(g.nativeEvent))&&!h.ignoreEmulatedMouseEvents&&g.button===0&&T(g,h.pointerType||"mouse")};let D=g=>{if(g.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&h.target.contains(g.target)&&h.pointerType!=null||x(g),h.isOverTarget=!1}};R.onTouchStart=g=>{if(!W(g.currentTarget,V(g.nativeEvent)))return;let k=Yu(g.nativeEvent);if(!k)return;h.activePointerId=k.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=g.currentTarget,h.pointerType="touch",f||oo(h.target),C(Pe(h.target,g),h.pointerType)&&g.stopPropagation(),$(oe(g.currentTarget),"scroll",z,!0)},R.onTouchMove=g=>{if(!W(g.currentTarget,V(g.nativeEvent)))return;if(!h.isPressed){g.stopPropagation();return}let k=ao(g.nativeEvent,h.activePointerId),S=!0;k&&so(k,g.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,S=C(Pe(h.target,g),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S=K(Pe(h.target,g),h.pointerType,!1),M(Pe(h.target,g))),S&&g.stopPropagation()},R.onTouchEnd=g=>{if(!W(g.currentTarget,V(g.nativeEvent)))return;if(!h.isPressed){g.stopPropagation();return}let k=ao(g.nativeEvent,h.activePointerId),S=!0;k&&so(k,g.currentTarget)&&h.pointerType!=null?(T(Pe(h.target,g),h.pointerType),S=K(Pe(h.target,g),h.pointerType),N(g.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(S=K(Pe(h.target,g),h.pointerType,!1)),S&&g.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&mr(h.target),E()},R.onTouchCancel=g=>{W(g.currentTarget,V(g.nativeEvent))&&(g.stopPropagation(),h.isPressed&&x(Pe(h.target,g)))};let z=g=>{h.isPressed&&W(V(g),h.target)&&x({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=g=>{W(g.currentTarget,V(g.nativeEvent))&&x(g)}}return R},[$,a,c,E,f,x,M,K,C,T,F,N]);return s.useEffect(()=>{let h=v==null?void 0:v.current;h&&h instanceof oe(h).Element&&oe(h).getComputedStyle(h).touchAction==="auto"&&(h.style.touchAction="pan-x pan-y pinch-zoom")},[v]),s.useEffect(()=>{let h=y.current;return()=>{var R;f||mr((R=h.target)!==null&&R!==void 0?R:void 0);for(let B of h.disposables)B();h.disposables=[]}},[f]),{isPressed:u||b,pressProps:A(p,L)}}function pn(t){return t.tagName==="A"&&t.hasAttribute("href")}function yr(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof oe(o).HTMLInputElement&&!xi(o,r)||o instanceof oe(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&pn(o))&&r!=="Enter")}function Yu(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function ao(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function Pe(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function Ye(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function Zu(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function Xu(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function so(t,e){let r=e.getBoundingClientRect(),n=Zu(t);return Xu(r,n)}function Ju(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!pn(t)}function uo(t,e){return t instanceof HTMLInputElement?!xi(t,e):Ju(t)}const Qu=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Qu.has(t.type)}let We=null,Hr=new Set,vt=new Map,Ve=!1,Vr=!1;const ec={Tab:!0,Escape:!0};function er(t,e){for(let r of Hr)r(t,e)}function tc(t){return!(t.metaKey||!ke()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ht(t){Ve=!0,tc(t)&&(We="keyboard",er("keyboard",t))}function fe(t){We="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ve=!0,er("pointer",t))}function Si(t){Or(t)&&(Ve=!0,We="virtual")}function Pi(t){t.target===window||t.target===document||zt||!t.isTrusted||(!Ve&&!Vr&&(We="virtual",er("virtual",t)),Ve=!1,Vr=!1)}function Ei(){zt||(Ve=!1,Vr=!0)}function jr(t){if(typeof window>"u"||vt.get(oe(t)))return;const e=oe(t),r=j(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ve=!0,n.apply(this,arguments)},r.addEventListener("keydown",Ht,!0),r.addEventListener("keyup",Ht,!0),r.addEventListener("click",Si,!0),e.addEventListener("focus",Pi,!0),e.addEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",fe,!0),r.addEventListener("pointermove",fe,!0),r.addEventListener("pointerup",fe,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",fe,!0),r.addEventListener("mousemove",fe,!0),r.addEventListener("mouseup",fe,!0)),e.addEventListener("beforeunload",()=>{wi(t)},{once:!0}),vt.set(e,{focus:n})}const wi=(t,e)=>{const r=oe(t),n=j(t);e&&n.removeEventListener("DOMContentLoaded",e),vt.has(r)&&(r.HTMLElement.prototype.focus=vt.get(r).focus,n.removeEventListener("keydown",Ht,!0),n.removeEventListener("keyup",Ht,!0),n.removeEventListener("click",Si,!0),r.removeEventListener("focus",Pi,!0),r.removeEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",fe,!0),n.removeEventListener("pointermove",fe,!0),n.removeEventListener("pointerup",fe,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",fe,!0),n.removeEventListener("mousemove",fe,!0),n.removeEventListener("mouseup",fe,!0)),vt.delete(r))};function rc(t){const e=j(t);let r;return e.readyState!=="loading"?jr(t):(r=()=>{jr(t)},e.addEventListener("DOMContentLoaded",r)),()=>wi(t,r)}typeof document<"u"&&rc();function mt(){return We!=="pointer"}function yt(){return We}function Ci(t){We=t,er(t,null)}const nc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oc(t,e,r){let n=j(r==null?void 0:r.target);const o=typeof window<"u"?oe(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?oe(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?oe(r==null?void 0:r.target).HTMLElement:HTMLElement,a=typeof window<"u"?oe(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return t=t||n.activeElement instanceof o&&!nc.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof l&&n.activeElement.isContentEditable,!(t&&e==="keyboard"&&r instanceof a&&!ec[r.key])}function ic(t,e,r){jr(),s.useEffect(()=>{let n=(o,i)=>{oc(!!(r!=null&&r.isTextInput),o,i)&&t(mt())};return Hr.add(n),()=>{Hr.delete(n)}},e)}function De(t){const e=j(t),r=re(e);if(yt()==="virtual"){let n=r;ci(()=>{re(e)===n&&t.isConnected&&be(t)})}else be(t)}function Ti(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:o}=t;const i=s.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),o&&o(!1),!0},[n,o]),l=yi(i),a=s.useCallback(u=>{const c=j(u.target),d=c?re(c):re();u.target===u.currentTarget&&d===V(u.nativeEvent)&&(r&&r(u),o&&o(!0),l(u))},[o,r,l]);return{focusProps:{onFocus:!e&&(r||o||n)?a:void 0,onBlur:!e&&(n||o)?i:void 0}}}function co(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?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}};t(n),e&&r.stopPropagation()}}function lc(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:co(t.onKeyDown),onKeyUp:co(t.onKeyUp)}}}let Vt=s.createContext(null);function ac(t){let e=s.useContext(Vt)||{};un(e,t);let{ref:r,...n}=e;return n}const sc=s.forwardRef(function(e,r){let{children:n,...o}=e,i=de(r),l={...o,ref:i};return s.createElement(Vt.Provider,{value:l},n)});function ot(t,e){let{focusProps:r}=Ti(t),{keyboardProps:n}=lc(t),o=A(r,n),i=ac(e),l=t.isDisabled?{}:i,a=s.useRef(t.autoFocus);s.useEffect(()=>{a.current&&e.current&&De(e.current),a.current=!1},[e]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:A({...o,tabIndex:u},l)}}const uc=s.forwardRef(({children:t,...e},r)=>{let n=s.useRef(!1),o=s.useContext(gt);r=de(r||(o==null?void 0:o.ref));let i=A(o||{},{...e,ref:r,register(){n.current=!0,o&&o.register()}});return un(o,r),s.useEffect(()=>{n.current||(process.env.NODE_ENV!=="production"&&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)},[]),s.createElement(gt.Provider,{value:i},t)});function cc({children:t}){let e=s.useMemo(()=>({register:()=>{}}),[]);return s.createElement(gt.Provider,{value:e},t)}function tr(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=t,i=s.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=Qt(),u=s.useCallback(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(f),o&&o(!1))},[r,o,i,a]),c=yi(u),d=s.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const v=j(f.target),p=re(v);if(!i.current.isFocusWithin&&p===V(f.nativeEvent)){n&&n(f),o&&o(!0),i.current.isFocusWithin=!0,c(f);let b=f.currentTarget;l(v,"focus",m=>{if(i.current.isFocusWithin&&!W(b,m.target)){let y=new v.defaultView.FocusEvent("blur",{relatedTarget:m.target});mi(y,b);let $=fn(y);u($)}},{capture:!0})}},[n,o,c,l,u]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}let jt=!1,$r=0;function _r(){jt=!0,setTimeout(()=>{jt=!1},50)}function fo(t){t.pointerType==="touch"&&_r()}function dc(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",fo):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",_r),$r++,()=>{$r--,!($r>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",fo):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",_r))}}function Ue(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:o}=t,[i,l]=s.useState(!1),a=s.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s.useEffect(dc,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=Qt(),{hoverProps:d,triggerHoverEnd:f}=s.useMemo(()=>{let v=(m,y)=>{if(a.pointerType=y,o||y==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let $=m.currentTarget;a.target=$,u(j(m.target),"pointerover",E=>{a.isHovered&&a.target&&!W(a.target,E.target)&&p(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:$,pointerType:y}),r&&r(!0),l(!0)},p=(m,y)=>{let $=a.target;a.pointerType="",a.target=null,!(y==="touch"||!a.isHovered||!$)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:$,pointerType:y}),r&&r(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=m=>{jt&&m.pointerType==="mouse"||v(m,m.pointerType)},b.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!jt&&v(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:b,triggerHoverEnd:p}},[e,r,n,o,a,u,c]);return s.useEffect(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:d,isHovered:i}}function fc(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=t,i=s.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=J(u=>{r&&Lt(u,e)&&(o&&o(u),i.current.isPointerDown=!0)}),a=J(u=>{r&&r(u)});s.useEffect(()=>{let u=i.current;if(n)return;const c=e.current,d=j(c);if(typeof PointerEvent<"u"){let f=v=>{u.isPointerDown&&Lt(v,e)&&a(v),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 if(process.env.NODE_ENV==="test"){let f=p=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Lt(p,e)&&a(p),u.isPointerDown=!1},v=p=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Lt(p,e)&&a(p),u.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",v,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",v,!0)}}},[e,n,l,a])}function Lt(t,e){if(t.button>0)return!1;if(t.target){const r=t.target.ownerDocument;if(!r||!r.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const pc=500;function ki(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=pc,accessibilityDescription:l}=t;const a=s.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=Qt(),{pressProps:d}=He({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(r&&r({...v,type:"longpressstart"}),a.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),j(v.target).activeElement!==v.target&&be(v.target),o&&o({...v,type:"longpress"}),a.current=void 0},i),v.pointerType==="touch")){let p=b=>{b.preventDefault()};u(v.target,"contextmenu",p,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(v.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(v){a.current&&clearTimeout(a.current),n&&(v.pointerType==="mouse"||v.pointerType==="touch")&&n({...v,type:"longpressend"})}}),f=Iu(o&&!e?l:void 0);return{longPressProps:A(d,f)}}function vc(t,e){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:a,...u}=t,c={};r!=="a"&&(c={role:"link",tabIndex:a?void 0:0});let{focusableProps:d}=ot(t,e),{pressProps:f,isPressed:v}=He({onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:a,ref:e}),p=Q(u,{labelable:!0}),b=A(d,f),m=Jt(),y=ui(t);return{isPressed:v,linkProps:A(p,y,{...b,...c,"aria-disabled":a||void 0,"aria-current":t["aria-current"],onClick:$=>{var E;(E=f.onClick)===null||E===void 0||E.call(f,$),!m.isNative&&$.currentTarget instanceof HTMLAnchorElement&&$.currentTarget.href&&!$.isDefaultPrevented()&&Ru($.currentTarget,$)&&t.href&&($.preventDefault(),m.open($.currentTarget,$,t.href,t.routerOptions))}})}}const bc=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hc=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function gc(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return bc.has(r.script)}let e=t.split("-")[0];return hc.has(e)}const mc=Symbol.for("react-aria.i18n.locale");function Di(){let t=typeof window<"u"&&window[mc]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:gc(t)?"rtl":"ltr"}}let Wr=Di(),ft=new Set;function po(){Wr=Di();for(let t of ft)t(Wr)}function yc(){let t=_e(),[e,r]=s.useState(Wr);return s.useEffect(()=>(ft.size===0&&window.addEventListener("languagechange",po),ft.add(r),()=>{ft.delete(r),ft.size===0&&window.removeEventListener("languagechange",po)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const $c=s.createContext(null);function Ke(){let t=yc();return s.useContext($c)||t}const xc=Symbol.for("react-aria.i18n.locale"),Sc=Symbol.for("react-aria.i18n.strings");let Ze;class rr{getStringForLocale(e,r){let o=this.getStringsForLocale(r)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${r} locale`);return o}getStringsForLocale(e){let r=this.strings[e];return r||(r=Pc(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[xc];if(Ze===void 0){let o=window[Sc];if(!o)return null;Ze={};for(let i in o)Ze[i]=new rr({[r]:o[i]},r)}let n=Ze==null?void 0:Ze[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,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}}function Pc(t,e,r="en-US"){if(e[t])return e[t];let n=Ec(t);if(e[n])return e[n];for(let o in e)if(o.startsWith(n+"-"))return e[o];return e[r]}function Ec(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const vo=new Map,bo=new Map;class wc{format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let o=r["="+e];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,l=vo.get(i);l||(l=new Intl.PluralRules(this.locale,{type:n}),vo.set(i,l));let a=l.select(e);return o=r[a]||r.other,typeof o=="function"?o():o}number(e){let r=bo.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),bo.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}constructor(e,r){this.locale=e,this.strings=r}}const ho=new WeakMap;function Cc(t){let e=ho.get(t);return e||(e=new rr(t),ho.set(t,e)),e}function Tc(t,e){return e&&rr.getGlobalDictionaryForPackage(e)||Cc(t)}function vn(t,e){let{locale:r}=Ke(),n=Tc(t,e);return s.useMemo(()=>new wc(r,n),[r,n])}let xr=new Map,Ur=!1;try{Ur=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _t=!1;try{_t=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Ri={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class kc{format(e){let r="";if(!Ur&&this.options.signDisplay!=null?r=Rc(this.numberFormatter,this.options.signDisplay,e):r=this.numberFormatter.format(e),this.options.style==="unit"&&!_t){var n;let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return r;let a=(n=Ri[o])===null||n===void 0?void 0:n[i];r+=a[l]||a.default}return r}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(r)}`}formatRangeToParts(e,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),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 e=this.numberFormatter.resolvedOptions();return!Ur&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!_t&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,r={}){this.numberFormatter=Dc(e,r),this.options=r}}function Dc(t,e={}){let{numberingSystem:r}=e;if(r&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${r}`),e.style==="unit"&&!_t){var n;let{unit:l,unitDisplay:a="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Ri[l])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${a}`);e={...e,style:"decimal"}}let o=t+(e?Object.entries(e).sort((l,a)=>l[0]<a[0]?-1:1).join():"");if(xr.has(o))return xr.get(o);let i=new Intl.NumberFormat(t,e);return xr.set(o,i),i}function Rc(t,e,r){if(e==="auto")return t.format(r);if(e==="never")return t.format(Math.abs(r));{let n=!1;if(e==="always"?n=r>0||Object.is(r,0):e==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=t.format(-r),i=t.format(r),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 t.format(r)}}function Kc(t={}){let{locale:e}=Ke();return s.useMemo(()=>new kc(e,t),[e,t])}let Sr=new Map;function bn(t){let{locale:e}=Ke(),r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Sr.has(r))return Sr.get(r);let n=new Intl.Collator(e,t);return Sr.set(r,n),n}function nr(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:a,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:v,target:p,rel:b,type:m="button"}=t,y;r==="button"?y={type:m,disabled:n}:y={role:"button",href:r==="a"&&!n?v: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"?b:void 0};let{pressProps:$,isPressed:E}=He({onPressStart:i,onPressEnd:l,onPressChange:u,onPress:o,onPressUp:a,onClick:f,isDisabled:n,preventFocusOnPress:c,ref:e}),{focusableProps:C}=ot(t,e);d&&(C.tabIndex=n?-1:C.tabIndex);let K=A(C,$,Q(t,{labelable:!0}));return{isPressed:E,buttonProps:A(y,K,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}function Ki(t,e,r){const{isSelected:n}=e,{isPressed:o,buttonProps:i}=nr({...t,onPress:Te(e.toggle,t.onPress)},r);return{isPressed:o,isSelected:n,isDisabled:t.isDisabled||!1,buttonProps:A(i,{"aria-pressed":n})}}function Lc(t){const e=oe(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=t.ownerDocument.defaultView;let{display:l,visibility:a}=i(t);o=l!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function Fc(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Li(t,e){return t.nodeName!=="#comment"&&Lc(t)&&Fc(t,e)&&(!t.parentElement||Li(t.parentElement,t))}const go=s.createContext(null),Gr="react-aria-focus-scope-restore";let _=null;function Fi(t){let{children:e,contain:r,restoreFocus:n,autoFocus:o}=t,i=s.useRef(null),l=s.useRef(null),a=s.useRef([]),{parentNode:u}=s.useContext(go)||{},c=s.useMemo(()=>new Yr({scopeRef:a}),[a]);H(()=>{let v=u||q.root;if(q.getTreeNode(v.scopeRef)&&_&&!Wt(_,v.scopeRef)){let p=q.getTreeNode(_);p&&(v=p)}v.addChild(c),q.addNode(c)},[c,u]),H(()=>{let v=q.getTreeNode(a);v&&(v.contain=!!r)},[r]),H(()=>{var v;let p=(v=i.current)===null||v===void 0?void 0:v.nextSibling,b=[],m=y=>y.stopPropagation();for(;p&&p!==l.current;)b.push(p),p.addEventListener(Gr,m),p=p.nextSibling;return a.current=b,()=>{for(let y of b)y.removeEventListener(Gr,m)}},[e]),Bc(a,n,r),Ac(a,r),Oc(a,n,r),Nc(a,o),s.useEffect(()=>{const v=re(j(a.current?a.current[0]:void 0));let p=null;if(pe(v,a.current)){for(let b of q.traverse())b.scopeRef&&pe(v,b.scopeRef.current)&&(p=b);p===q.getTreeNode(a)&&(_=p.scopeRef)}},[a]),H(()=>()=>{var v,p,b;let m=(b=(p=q.getTreeNode(a))===null||p===void 0||(v=p.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&b!==void 0?b:null;(a===_||Wt(a,_))&&(!m||q.getTreeNode(m))&&(_=m),q.removeTreeNode(a)},[a]);let d=s.useMemo(()=>Mc(a),[]),f=s.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return s.createElement(go.Provider,{value:f},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Mc(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e;var a;let u=n||re(j((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[0].previousElementSibling,d=Oe(r),f=ue(d,{tabbable:o,accept:l},r);f.currentNode=pe(u,r)?u:c;let v=f.nextNode();return!v&&i&&(f.currentNode=c,v=f.nextNode()),v&&le(v,!0),v},focusPrevious(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e;var a;let u=n||re(j((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[r.length-1].nextElementSibling,d=Oe(r),f=ue(d,{tabbable:o,accept:l},r);f.currentNode=pe(u,r)?u:c;let v=f.previousNode();return!v&&i&&(f.currentNode=c,v=f.previousNode()),v&&le(v,!0),v},focusFirst(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=Oe(r),l=ue(i,{tabbable:n,accept:o},r);l.currentNode=r[0].previousElementSibling;let a=l.nextNode();return a&&le(a,!0),a},focusLast(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=Oe(r),l=ue(i,{tabbable:n,accept:o},r);l.currentNode=r[r.length-1].nextElementSibling;let a=l.previousNode();return a&&le(a,!0),a}}}function Oe(t){return t[0].parentElement}function pt(t){let e=q.getTreeNode(_);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Ac(t,e){let r=s.useRef(void 0),n=s.useRef(void 0);H(()=>{let o=t.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||!pt(t)||c.isComposing)return;let d=re(i),f=t.current;if(!f||!pe(d,f))return;let v=Oe(f),p=ue(v,{tabbable:!0},f);if(!d)return;p.currentNode=d;let b=c.shiftKey?p.previousNode():p.nextNode();b||(p.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),b&&le(b,!0)},a=c=>{(!_||Wt(_,t))&&pe(V(c),t.current)?(_=t,r.current=V(c)):pt(t)&&!Ee(V(c),t)?r.current?r.current.focus():_&&_.current&&qr(_.current):pt(t)&&(r.current=V(c))},u=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let d=yt(),f=(d==="virtual"||d===null)&&sn()&&si(),v=re(i);if(!f&&v&&pt(t)&&!Ee(v,t)){_=t;let b=V(c);if(b&&b.isConnected){var p;r.current=b,(p=r.current)===null||p===void 0||p.focus()}else _.current&&qr(_.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",a,!1),o==null||o.forEach(c=>c.addEventListener("focusin",a,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",a,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",a,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",u,!1))}},[t,e]),H(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Mi(t){return Ee(t)}function pe(t,e){return!t||!e?!1:e.some(r=>r.contains(t))}function Ee(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of q.traverse(q.getTreeNode(e)))if(r&&pe(t,r.current))return!0;return!1}function Ic(t){return Ee(t,_)}function Wt(t,e){var r;let n=(r=q.getTreeNode(e))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function le(t,e=!1){if(t!=null&&!e)try{De(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Ai(t,e=!0){let r=t[0].previousElementSibling,n=Oe(t),o=ue(n,{tabbable:e},t);o.currentNode=r;let i=o.nextNode();return e&&!i&&(n=Oe(t),o=ue(n,{tabbable:!1},t),o.currentNode=r,i=o.nextNode()),i}function qr(t,e=!0){le(Ai(t,e))}function Nc(t,e){const r=s.useRef(e);s.useEffect(()=>{if(r.current){_=t;const n=j(t.current?t.current[0]:void 0);!pe(re(n),_.current)&&t.current&&qr(t.current)}r.current=!1},[t])}function Bc(t,e,r){H(()=>{if(e||r)return;let n=t.current;const o=j(n?n[0]:void 0);let i=l=>{let a=V(l);pe(a,t.current)?_=t:Mi(a)||(_=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))}},[t,e,r])}function mo(t){let e=q.getTreeNode(_);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Oc(t,e,r){const n=s.useRef(typeof document<"u"?re(j(t.current?t.current[0]:void 0)):null);H(()=>{let o=t.current;const i=j(o?o[0]:void 0);if(!e||r)return;let l=()=>{(!_||Wt(_,t))&&pe(re(i),t.current)&&(_=t)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,r]),H(()=>{const o=j(t.current?t.current[0]:void 0);if(!e)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!pt(t)||l.isComposing)return;let a=o.activeElement;if(!Ee(a,t)||!mo(t))return;let u=q.getTreeNode(t);if(!u)return;let c=u.nodeToRestore,d=ue(o.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!f||!Ee(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(Ee(f,t));l.preventDefault(),l.stopPropagation(),f?le(f,!0):Mi(c)?le(c,!0):a.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[t,e,r]),H(()=>{const o=j(t.current?t.current[0]:void 0);if(!e)return;let i=q.getTreeNode(t);if(i){var l;return i.nodeToRestore=(l=n.current)!==null&&l!==void 0?l:void 0,()=>{let a=q.getTreeNode(t);if(!a)return;let u=a.nodeToRestore,c=re(o);if(e&&u&&(c&&Ee(c,t)||c===o.body&&mo(t))){let d=q.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){yo(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&q.getTreeNode(f.scopeRef)){let v=Ai(f.scopeRef.current,!0);yo(v);return}f=f.parent}}})}}}},[t,e])}function yo(t){t.dispatchEvent(new CustomEvent(Gr,{bubbles:!0,cancelable:!0}))&&le(t)}function ue(t,e,r){let n=e!=null&&e.tabbable?Vu:gi,o=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,i=j(o),l=gu(i,t||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var u;return!(e==null||(u=e.from)===null||u===void 0)&&u.contains(a)?NodeFilter.FILTER_REJECT:n(a)&&Li(a)&&(!r||pe(a,r))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}function zc(t,e={}){return{focusNext(r={}){let n=t.current;if(!n)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:a=e.accept}=r,u=o||re(j(n)),c=ue(n,{tabbable:i,accept:a});n.contains(u)&&(c.currentNode=u);let d=c.nextNode();return!d&&l&&(c.currentNode=n,d=c.nextNode()),d&&le(d,!0),d},focusPrevious(r=e){let n=t.current;if(!n)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:a=e.accept}=r,u=o||re(j(n)),c=ue(n,{tabbable:i,accept:a});if(n.contains(u))c.currentNode=u;else{let f=Pr(c);return f&&le(f,!0),f??null}let d=c.previousNode();if(!d&&l){c.currentNode=n;let f=Pr(c);if(!f)return null;d=f}return d&&le(d,!0),d??null},focusFirst(r=e){let n=t.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=r,a=ue(n,{tabbable:o,accept:i}).nextNode();return a&&le(a,!0),a},focusLast(r=e){let n=t.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=r,l=ue(n,{tabbable:o,accept:i}),a=Pr(l);return a&&le(a,!0),a??null}}}function Pr(t){let e,r;do r=t.lastChild(),r&&(e=r);while(r);return e}class hn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Yr({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 r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&pe(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(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var e;let r=new hn;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(e=o.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Yr({scopeRef:null}),this.fastMap.set(null,this.root)}}class Yr{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 q=new hn;function Le(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,o=s.useRef({isFocused:!1,isFocusVisible:e||mt()}),[i,l]=s.useState(!1),[a,u]=s.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=s.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=s.useCallback(p=>{o.current.isFocused=p,l(p),c()},[c]);ic(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:f}=Ti({isDisabled:n,onFocusChange:d}),{focusWithinProps:v}=tr({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:n?v:f}}function Ii(t){let e=jc(j(t));e!==t&&(e&&Hc(e,t),t&&Vc(t,e))}function Hc(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Vc(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function jc(t){let e=re(t),r=e==null?void 0:e.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}function _c(t,e){const{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=t;let[i,l]=s.useState(!1);H(()=>{var b;l(!!(e.current&&(!((b=e.current.parentElement)===null||b===void 0)&&b.closest('[role="toolbar"]'))))});const{direction:a}=Ke(),u=a==="rtl"&&o==="horizontal";let c=zc(e);const d=b=>{if(b.currentTarget.contains(b.target)){if(o==="horizontal"&&b.key==="ArrowRight"||o==="vertical"&&b.key==="ArrowDown")u?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&b.key==="ArrowLeft"||o==="vertical"&&b.key==="ArrowUp")u?c.focusNext():c.focusPrevious();else if(b.key==="Tab"){b.stopPropagation(),f.current=document.activeElement,b.shiftKey?c.focusFirst():c.focusLast();return}else return;b.stopPropagation(),b.preventDefault()}},f=s.useRef(null),v=b=>{!b.currentTarget.contains(b.relatedTarget)&&!f.current&&(f.current=b.target)},p=b=>{var m;if(f.current&&!b.currentTarget.contains(b.relatedTarget)&&(!((m=e.current)===null||m===void 0)&&m.contains(b.target))){var y;(y=f.current)===null||y===void 0||y.focus(),f.current=null}};return{toolbarProps:{...Q(t,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:d,onFocusCapture:i?void 0:p,onBlurCapture:i?void 0:v}}}function Wc(t,e,r){let{isDisabled:n}=t,{toolbarProps:o}=_c(t,r);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":n}}}function Uc(t,e,r){let n={isSelected:e.selectedKeys.has(t.id),setSelected(u){e.setSelected(t.id,u)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:i,isDisabled:l,buttonProps:a}=Ki({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},n,r);return e.selectionMode==="single"&&(a.role="radio",a["aria-checked"]=n.isSelected,delete a["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:l,buttonProps:a}}const Ni=7e3;let ge=null;function $o(t,e="assertive",r=Ni){ge?ge.announce(t,e,r):(ge=new Gc,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ge.announce(t,e,r):setTimeout(()=>{ge!=null&&ge.isAttached()&&(ge==null||ge.announce(t,e,r))},100))}class Gc{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=Ni){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,r==="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 Bi={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Oi={...Bi,customError:!0,valid:!1},lt={isInvalid:!1,validationDetails:Bi,validationErrors:[]},qc=s.createContext({}),Zr="__formValidationState"+Date.now();function gn(t){if(t[Zr]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[Zr];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return Yc(t)}function Yc(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:l,validationBehavior:a="aria"}=t;r&&(e||(e=r==="invalid"));let u=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Oi}:null,c=s.useMemo(()=>{if(!l||o==null)return null;let L=Zc(l,o);return xo(L)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=s.useContext(qc),f=s.useMemo(()=>n?Array.isArray(n)?n.flatMap(L=>Xr(d[L])):Xr(d[n]):[],[d,n]),[v,p]=s.useState(d),[b,m]=s.useState(!1);d!==v&&(p(d),m(!1));let y=s.useMemo(()=>xo(b?[]:f),[b,f]),$=s.useRef(lt),[E,C]=s.useState(lt),K=s.useRef(lt),T=()=>{if(!x)return;M(!1);let L=c||i||$.current;Er(L,K.current)||(K.current=L,C(L))},[x,M]=s.useState(!1);return s.useEffect(T),{realtimeValidation:u||y||c||i||lt,displayValidation:a==="native"?u||y||E:u||y||c||i||E,updateValidation(L){a==="aria"&&!Er(E,L)?C(L):$.current=L},resetValidation(){let L=lt;Er(L,K.current)||(K.current=L,C(L)),a==="native"&&M(!1),m(!0)},commitValidation(){a==="native"&&M(!0),m(!0)}}}function Xr(t){return t?Array.isArray(t)?t:[t]:[]}function Zc(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return Xr(r)}return[]}function xo(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Oi}:null}function Er(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function mn(t,e,r){let{validationBehavior:n,focus:o}=t;H(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Jc(r.current))}});let i=J(()=>{e.resetValidation()}),l=J(u=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&r&&d&&Qc(d)===r.current){var f;o?o():(f=r.current)===null||f===void 0||f.focus(),Ci("keyboard")}u.preventDefault()}),a=J(()=>{e.commitValidation()});s.useEffect(()=>{let u=r==null?void 0:r.current;if(!u)return;let c=u.form;return u.addEventListener("invalid",l),u.addEventListener("change",a),c==null||c.addEventListener("reset",i),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",a),c==null||c.removeEventListener("reset",i)}},[r,l,a,i,n])}function Xc(t){let e=t.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 Jc(t){return{isInvalid:!t.validity.valid,validationDetails:Xc(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Qc(t){for(let e=0;e<t.elements.length;e++){let r=t.elements[e];if(!r.validity.valid)return r}return null}function ed(t,e,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:l,children:a,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=t,v=x=>{x.stopPropagation(),e.setSelected(x.target.checked)},p=a!=null,b=u!=null||c!=null;!p&&!b&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:y}=He({isDisabled:n}),{pressProps:$,isPressed:E}=He({onPress(){var x;e.toggle(),(x=r.current)===null||x===void 0||x.focus()},isDisabled:n||o}),{focusableProps:C}=ot(t,r),K=A(m,C),T=Q(t,{labelable:!0});return cn(r,e.isSelected,e.setSelected),{labelProps:A($,{onClick:x=>x.preventDefault()}),inputProps:A(T,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":o||void 0,onChange:v,disabled:n,...i==null?{}:{value:i},name:l,type:"checkbox",...K}),isSelected:e.isSelected,isPressed:y||E,isDisabled:n,isReadOnly:o,isInvalid:f||d==="invalid"}}function td(t,e,r){let n=gn({...t,value:e.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:l}=n.displayValidation,{labelProps:a,inputProps:u,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:v}=ed({...t,isInvalid:o},e,r);mn(t,n,r);let{isIndeterminate:p,isRequired:b,validationBehavior:m="aria"}=t;s.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)});let{pressProps:y}=He({isDisabled:f||v,onPress(){let{[Zr]:$}=t,{commitValidation:E}=$||n;E()}});return{labelProps:A(a,y),inputProps:{...u,checked:c,"aria-required":b&&m==="aria"||void 0,required:b&&m==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:v,isInvalid:o,validationErrors:i,validationDetails:l}}function yn(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=t;e=te(e);let l=te(),a={};r?(n=n?`${l} ${n}`:l,a={id:l,htmlFor:i==="label"?e:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=di({id:e,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:u}}function $n(t){let{description:e,errorMessage:r,isInvalid:n,validationState:o}=t,{labelProps:i,fieldProps:l}=yn(t),a=bt([!!e,!!r,n,o]),u=bt([!!e,!!r,n,o]);return l=A(l,{"aria-describedby":[a,u,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:u}}}function zi(t={}){let{isReadOnly:e}=t,[r,n]=Re(t.isSelected,t.defaultSelected||!1,t.onChange);function o(l){e||n(l)}function i(){e||n(!r)}return{isSelected:r,setSelected:o,toggle:i}}function rd(t){let{selectionMode:e="single",disallowEmptySelection:r,isDisabled:n=!1}=t,[o,i]=Re(s.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),s.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:n,selectedKeys:o,setSelectedKeys:i,toggleKey(l){let a;e==="multiple"?(a=new Set(o),a.has(l)&&(!r||a.size>1)?a.delete(l):a.add(l)):a=new Set(o.has(l)&&!r?[]:[l]),i(a)},setSelected(l,a){a!==o.has(l)&&this.toggleKey(l)}}}const So={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 Hi(t={}){let{style:e,isFocusable:r}=t,[n,o]=s.useState(!1),{focusWithinProps:i}=tr({isDisabled:!r,onFocusWithinChange:a=>o(a)}),l=s.useMemo(()=>n?e:e?{...So,...e}:So,[n]);return{visuallyHiddenProps:{...i,style:l}}}function Vi(t){let{children:e,elementType:r="div",isFocusable:n,style:o,...i}=t,{visuallyHiddenProps:l}=Hi(t);return s.createElement(r,A(i,l),e)}function nd(t,e){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:a="aria"}=t,[u,c]=Re(t.value,t.defaultValue||"",t.onChange),{focusableProps:d}=ot(t,e),f=gn({...t,value:u}),{isInvalid:v,validationErrors:p,validationDetails:b}=f.displayValidation,{labelProps:m,fieldProps:y,descriptionProps:$,errorMessageProps:E}=$n({...t,isInvalid:v,errorMessage:t.errorMessage||p}),C=Q(t,{labelable:!0});const K={type:l,pattern:t.pattern};return cn(e,u,c),mn(t,f,e),s.useEffect(()=>{if(e.current instanceof oe(e.current).HTMLTextAreaElement){let T=e.current;Object.defineProperty(T,"defaultValue",{get:()=>T.value,set:()=>{},configurable:!0})}},[e]),{labelProps:m,inputProps:A(C,r==="input"?K:void 0,{disabled:n,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":v||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:u,onChange:T=>c(T.target.value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(s.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...d,...y}),descriptionProps:$,errorMessageProps:E,isInvalid:v,validationErrors:p,validationDetails:b}}const ye={top:"top",bottom:"top",left:"left",right:"left"},Ut={top:"bottom",bottom:"top",left:"right",right:"left"},od={top:"left",left:"top"},Jr={top:"height",left:"width"},ji={width:"totalWidth",height:"totalHeight"},Ft={};let ee=typeof document<"u"?window.visualViewport:null;function Po(t){let e=0,r=0,n=0,o=0,i=0,l=0,a={};var u;let c=((u=ee==null?void 0:ee.scale)!==null&&u!==void 0?u:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;n=b.clientWidth,o=b.clientHeight;var d;e=(d=ee==null?void 0:ee.width)!==null&&d!==void 0?d:n;var f;r=(f=ee==null?void 0:ee.height)!==null&&f!==void 0?f:o,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,ee&&(i=ee.offsetTop,l=ee.offsetLeft)}else({width:e,height:r,top:i,left:l}=rt(t)),a.top=t.scrollTop,a.left=t.scrollLeft,n=e,o=r;if(an()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var v;i=(v=ee==null?void 0:ee.pageTop)!==null&&v!==void 0?v:0;var p;l=(p=ee==null?void 0:ee.pageLeft)!==null&&p!==void 0?p:0}return{width:e,height:r,totalWidth:n,totalHeight:o,scroll:a,top:i,left:l}}function id(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Eo(t,e,r,n,o,i,l){var a;let u=(a=o.scroll[t])!==null&&a!==void 0?a:0,c=n[Jr[t]],d=n.scroll[ye[t]]+i,f=c+n.scroll[ye[t]]-i,v=e-u+l[t]-n[ye[t]],p=e-u+r+l[t]-n[ye[t]];return v<d?d-v:p>f?Math.max(f-p,d-v):0}function ld(t){let e=window.getComputedStyle(t);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 wo(t){if(Ft[t])return Ft[t];let[e,r]=t.split(" "),n=ye[e]||"right",o=od[n];ye[r]||(r="center");let i=Jr[n],l=Jr[o];return Ft[t]={placement:e,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:l},Ft[t]}function wr(t,e,r,n,o,i,l,a,u,c){let{placement:d,crossPlacement:f,axis:v,crossAxis:p,size:b,crossSize:m}=n,y={};var $;y[p]=($=t[p])!==null&&$!==void 0?$:0;var E,C,K,T;f==="center"?y[p]+=(((E=t[m])!==null&&E!==void 0?E:0)-((C=r[m])!==null&&C!==void 0?C:0))/2:f!==p&&(y[p]+=((K=t[m])!==null&&K!==void 0?K:0)-((T=r[m])!==null&&T!==void 0?T:0)),y[p]+=i;const x=t[p]-r[m]+u+c,M=t[p]+t[m]-u-c;if(y[p]=Ot(y[p],x,M),d===v){const F=a?l[b]:e[ji[b]];y[Ut[v]]=Math.floor(F-t[v]+o)}else y[v]=Math.floor(t[v]+t[b]+o);return y}function ad(t,e,r,n,o,i,l,a){const u=n?r.height:e[ji.height];var c;let d=t.top!=null?r.top+t.top:r.top+(u-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,v,p,b,m,y;let $=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((v=o.top)!==null&&v!==void 0?v:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,d+l-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b: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 Co(t,e,r,n,o,i){let{placement:l,axis:a,size:u}=i;var c,d;if(l===a)return Math.max(0,r[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=n[a])!==null&&d!==void 0?d:0)-n[Ut[a]]-o);var f;return Math.max(0,t[u]+t[a]+t.scroll[a]-e[a]-r[a]-r[u]-((f=n[a])!==null&&f!==void 0?f:0)-n[Ut[a]]-o)}function sd(t,e,r,n,o,i,l,a,u,c,d,f,v,p,b,m){let y=wo(t),{size:$,crossAxis:E,crossSize:C,placement:K,crossPlacement:T}=y,x=wr(e,a,r,y,d,f,c,v,b,m),M=d,F=Co(a,c,e,o,i+d,y);if(l&&n[$]>F){let Fe=wo(`${Ut[K]} ${T}`),it=wr(e,a,r,Fe,d,f,c,v,b,m);Co(a,c,e,o,i+d,Fe)>F&&(y=Fe,x=it,M=d)}let N="bottom";y.axis==="top"?y.placement==="top"?N="top":y.placement==="bottom"&&(N="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?N="bottom":y.crossPlacement==="bottom"&&(N="top"));let L=Eo(E,x[E],r[C],a,u,i,c);x[E]+=L;let h=ad(x,a,c,v,o,i,r.height,N);p&&p<h&&(h=p),r.height=Math.min(r.height,h),x=wr(e,a,r,y,M,f,c,v,b,m),L=Eo(E,x[E],r[C],a,u,i,c),x[E]+=L;let R={},B=e[E]+.5*e[C]-x[E]-o[ye[E]];const D=b/2+m;var z,g,k,S;const O=ye[E]==="left"?((z=o.left)!==null&&z!==void 0?z:0)+((g=o.right)!==null&&g!==void 0?g:0):((k=o.top)!==null&&k!==void 0?k:0)+((S=o.bottom)!==null&&S!==void 0?S:0),Y=r[C]-O-b/2-m,Z=e[E]+b/2-(x[E]+o[ye[E]]),ne=e[E]+e[C]-b/2-(x[E]+o[ye[E]]),he=Ot(B,Z,ne);return R[E]=Ot(he,D,Y),{position:x,maxHeight:h,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:y.placement}}function ud(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:a,offset:u,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:v=0}=t,p=n instanceof HTMLElement?cd(n):document.documentElement,b=p===document.documentElement;const m=window.getComputedStyle(p).position;let y=!!m&&m!=="static",$=b?rt(r):To(r,p);if(!b){let{marginTop:R,marginLeft:B}=window.getComputedStyle(r);$.top+=parseInt(R,10)||0,$.left+=parseInt(B,10)||0}let E=rt(n),C=ld(n);var K,T;E.width+=((K=C.left)!==null&&K!==void 0?K:0)+((T=C.right)!==null&&T!==void 0?T:0);var x,M;E.height+=((x=C.top)!==null&&x!==void 0?x:0)+((M=C.bottom)!==null&&M!==void 0?M:0);let F=id(o),N=Po(a),L=Po(p),h=a.tagName==="BODY"?rt(p):To(p,a);return p.tagName==="HTML"&&a.tagName==="BODY"&&(L.scroll.top=0,L.scroll.left=0),sd(e,$,E,F,C,i,l,N,L,h,u,c,y,d,f,v)}function rt(t){let{top:e,left:r,width:n,height:o}=t.getBoundingClientRect(),{scrollTop:i,scrollLeft:l,clientTop:a,clientLeft:u}=document.documentElement;return{top:e+i-a,left:r+l-u,width:n,height:o}}function To(t,e){let r=window.getComputedStyle(t),n;if(r.position==="fixed"){let{top:o,left:i,width:l,height:a}=t.getBoundingClientRect();n={top:o,left:i,width:l,height:a}}else{n=rt(t);let o=rt(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(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function cd(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!ko(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!ko(e);)e=e.parentElement;return e||document.documentElement}function ko(t){let e=window.getComputedStyle(t);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 _i=new WeakMap;function dd(t){let{triggerRef:e,isOpen:r,onClose:n}=t;s.useEffect(()=>{if(!r||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 a=n||_i.get(e.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,e])}let G=typeof document<"u"?window.visualViewport:null;function Wi(t){let{direction:e}=Ke(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:a=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:v=!0,isOpen:p=!0,onClose:b,maxHeight:m,arrowBoundaryOffset:y=0}=t,[$,E]=s.useState(null),C=[v,l,o.current,n.current,i.current,a,u,c,d,f,p,e,m,y,r],K=s.useRef(G==null?void 0:G.scale);s.useEffect(()=>{p&&(K.current=G==null?void 0:G.scale)},[p]);let T=s.useCallback(()=>{if(v===!1||!p||!o.current||!n.current||!c||(G==null?void 0:G.scale)!==K.current)return;let L=null;if(i.current&&i.current.contains(document.activeElement)){var h;let S=(h=document.activeElement)===null||h===void 0?void 0:h.getBoundingClientRect(),O=i.current.getBoundingClientRect();var R;if(L={type:"top",offset:((R=S==null?void 0:S.top)!==null&&R!==void 0?R:0)-O.top},L.offset>O.height/2){L.type="bottom";var B;L.offset=((B=S==null?void 0:S.bottom)!==null&&B!==void 0?B:0)-O.bottom}}let D=o.current;if(!m&&o.current){var z;D.style.top="0px",D.style.bottom="";var g;D.style.maxHeight=((g=(z=window.visualViewport)===null||z===void 0?void 0:z.height)!==null&&g!==void 0?g:window.innerHeight)+"px"}let k=ud({placement:pd(l,e),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:a,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:m,arrowSize:r,arrowBoundaryOffset:y});if(k.position){if(D.style.top="",D.style.bottom="",D.style.left="",D.style.right="",Object.keys(k.position).forEach(S=>D.style[S]=k.position[S]+"px"),D.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",L&&document.activeElement&&i.current){let S=document.activeElement.getBoundingClientRect(),O=i.current.getBoundingClientRect(),Y=S[L.type]-O[L.type];i.current.scrollTop+=Y-L.offset}E(k)}},C);H(T,C),fd(T),Br({ref:o,onResize:T}),Br({ref:n,onResize:T});let x=s.useRef(!1);H(()=>{let L,h=()=>{x.current=!0,clearTimeout(L),L=setTimeout(()=>{x.current=!1},500),T()},R=()=>{x.current&&h()};return G==null||G.addEventListener("resize",h),G==null||G.addEventListener("scroll",R),()=>{G==null||G.removeEventListener("resize",h),G==null||G.removeEventListener("scroll",R)}},[T]);let M=s.useCallback(()=>{x.current||b==null||b()},[b,x]);dd({triggerRef:n,isOpen:p,onClose:b&&M});var F,N;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(F=$==null?void 0:$.maxHeight)!==null&&F!==void 0?F:"100vh"}},placement:(N=$==null?void 0:$.placement)!==null&&N!==void 0?N:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:T}}function fd(t){H(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function pd(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const me=[];function vd(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;s.useEffect(()=>{if(o&&!me.includes(e))return me.push(e),()=>{let b=me.indexOf(e);b>=0&&me.splice(b,1)}},[o,e]);let u=()=>{me[me.length-1]===e&&r&&r()},c=b=>{(!a||a(b.target))&&me[me.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!a||a(b.target))&&(me[me.length-1]===e&&(b.stopPropagation(),b.preventDefault()),u())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),u())};fc({ref:e,onInteractOutside:i&&o?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:v}=tr({isDisabled:!n,onBlurWithin:b=>{!b.relatedTarget||Ic(b.relatedTarget)||(!a||a(b.relatedTarget))&&(r==null||r())}}),p=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...v},underlayProps:{onPointerDown:p}}}function Ui(t,e,r){let{type:n}=t,{isOpen:o}=e;s.useEffect(()=>{r&&r.current&&_i.set(r.current,e.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let l=te();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Cr=typeof document<"u"&&window.visualViewport,bd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Mt=0,Tr;function hd(t={}){let{isDisabled:e}=t;H(()=>{if(!e)return Mt++,Mt===1&&(Xt()?Tr=md():Tr=gd()),()=>{Mt--,Mt===0&&Tr()}},[e])}function gd(){return Te(et(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),et(document.documentElement,"overflow","hidden"))}function md(){let t,e,r=c=>{t=fi(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=et(t,"overscrollBehavior","contain"))},n=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},o=()=>{e&&e()},i=c=>{let d=c.target;yd(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Cr&&(Cr.height<window.innerHeight?requestAnimationFrame(()=>{Do(d)}):Cr.addEventListener("resize",()=>Do(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Te(at(window,"scroll",c),et(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),et(document.documentElement,"overflow","hidden"),et(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},u=Te(at(document,"touchstart",r,{passive:!1,capture:!0}),at(document,"touchmove",n,{passive:!1,capture:!0}),at(document,"touchend",o,{passive:!1,capture:!0}),at(document,"focus",i,!0));return()=>{e==null||e(),l==null||l(),u()}}function et(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function at(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function Do(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=fi(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 yd(t){return t instanceof HTMLInputElement&&!bd.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const $d=s.createContext({});function Gi(){var t;return(t=s.useContext($d))!==null&&t!==void 0?t:{}}const Qr=s.createContext(null);function xd(t){let{children:e}=t,r=s.useContext(Qr),[n,o]=s.useState(0),i=s.useMemo(()=>({parent:r,modalCount:n,addModal(){o(l=>l+1),r&&r.addModal()},removeModal(){o(l=>l-1),r&&r.removeModal()}}),[r,n]);return s.createElement(Qr.Provider,{value:i},e)}function Sd(){let t=s.useContext(Qr);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function Pd(t){let{modalProviderProps:e}=Sd();return s.createElement("div",{"data-overlay-container":!0,...t,...e})}function Ed(t){return s.createElement(xd,null,s.createElement(Pd,t))}function wd(t){let e=_e(),{portalContainer:r=e?null:document.body,...n}=t,{getContainer:o}=Gi();if(!t.portalContainer&&o&&(r=o()),s.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 i=s.createElement(Ed,n);return je.createPortal(i,r)}var qi={};qi={dismiss:"تجاهل"};var Yi={};Yi={dismiss:"Отхвърляне"};var Zi={};Zi={dismiss:"Odstranit"};var Xi={};Xi={dismiss:"Luk"};var Ji={};Ji={dismiss:"Schließen"};var Qi={};Qi={dismiss:"Απόρριψη"};var el={};el={dismiss:"Dismiss"};var tl={};tl={dismiss:"Descartar"};var rl={};rl={dismiss:"Lõpeta"};var nl={};nl={dismiss:"Hylkää"};var ol={};ol={dismiss:"Rejeter"};var il={};il={dismiss:"התעלם"};var ll={};ll={dismiss:"Odbaci"};var al={};al={dismiss:"Elutasítás"};var sl={};sl={dismiss:"Ignora"};var ul={};ul={dismiss:"閉じる"};var cl={};cl={dismiss:"무시"};var dl={};dl={dismiss:"Atmesti"};var fl={};fl={dismiss:"Nerādīt"};var pl={};pl={dismiss:"Lukk"};var vl={};vl={dismiss:"Negeren"};var bl={};bl={dismiss:"Zignoruj"};var hl={};hl={dismiss:"Descartar"};var gl={};gl={dismiss:"Dispensar"};var ml={};ml={dismiss:"Revocare"};var yl={};yl={dismiss:"Пропустить"};var $l={};$l={dismiss:"Zrušiť"};var xl={};xl={dismiss:"Opusti"};var Sl={};Sl={dismiss:"Odbaci"};var Pl={};Pl={dismiss:"Avvisa"};var El={};El={dismiss:"Kapat"};var wl={};wl={dismiss:"Скасувати"};var Cl={};Cl={dismiss:"取消"};var Tl={};Tl={dismiss:"關閉"};var kl={};kl={"ar-AE":qi,"bg-BG":Yi,"cs-CZ":Zi,"da-DK":Xi,"de-DE":Ji,"el-GR":Qi,"en-US":el,"es-ES":tl,"et-EE":rl,"fi-FI":nl,"fr-FR":ol,"he-IL":il,"hr-HR":ll,"hu-HU":al,"it-IT":sl,"ja-JP":ul,"ko-KR":cl,"lt-LT":dl,"lv-LV":fl,"nb-NO":pl,"nl-NL":vl,"pl-PL":bl,"pt-BR":hl,"pt-PT":gl,"ro-RO":ml,"ru-RU":yl,"sk-SK":$l,"sl-SI":xl,"sr-SP":Sl,"sv-SE":Pl,"tr-TR":El,"uk-UA":wl,"zh-CN":Cl,"zh-TW":Tl};function Cd(t){return t&&t.__esModule?t.default:t}function Ro(t){let{onDismiss:e,...r}=t,n=vn(Cd(kl),"@react-aria/overlays"),o=di(r,n.format("dismiss")),i=()=>{e&&e()};return s.createElement(Vi,null,s.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let st=new WeakMap,ie=[];function Td(t,e=document.body){let r=new Set(t),n=new Set,o=u=>{for(let v of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(v);let c=v=>{if(r.has(v)||v.parentElement&&n.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of r)if(v.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 v=d.nextNode();for(;v!=null;)i(v),v=d.nextNode()}},i=u=>{var c;let d=(c=st.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),st.set(u,d+1))};ie.length&&ie[ie.length-1].disconnect(),o(e);let l=new MutationObserver(u=>{for(let c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(r.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")?r.add(d):d instanceof Element&&o(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:r,hiddenNodes:n,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return ie.push(a),()=>{l.disconnect();for(let u of n){let c=st.get(u);c!=null&&(c===1?(u.removeAttribute("aria-hidden"),st.delete(u)):st.set(u,c-1))}a===ie[ie.length-1]?(ie.pop(),ie.length&&ie[ie.length-1].observe()):ie.splice(ie.indexOf(a),1)}}function kd(t){let e=ie[ie.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function Dd(t,e){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...u}=t,c=u.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=vd({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},o??n),{overlayProps:v,arrowProps:p,placement:b}=Wi({...u,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:i&&!c?e.close:null});return hd({isDisabled:i||!e.isOpen}),H(()=>{if(e.isOpen&&n.current){var m,y;return i?kd((m=o==null?void 0:o.current)!==null&&m!==void 0?m:n.current):Td([(y=o==null?void 0:o.current)!==null&&y!==void 0?y:n.current])}},[i,e.isOpen,n,o]),{popoverProps:A(d,v),arrowProps:p,underlayProps:f,placement:b}}const Dl=s.createContext(null);function Ko(t){let e=_e(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[o,i]=s.useState(!1),l=s.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:a}=Gi();if(!t.portalContainer&&a&&(r=a()),!r)return null;let u=t.children;return t.disableFocusManagement||(u=s.createElement(Fi,{restoreFocus:!0,contain:(t.shouldContainFocus||o)&&!n},u)),u=s.createElement(Dl.Provider,{value:l},s.createElement(cc,null,u)),je.createPortal(u,r)}function Rd(){let t=s.useContext(Dl),e=t==null?void 0:t.setContain;H(()=>{e==null||e(!0)},[e])}const xn=new WeakMap;function Kd(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Ld(t,e){let r=xn.get(t);if(!r)throw new Error("Unknown list");return`${r.id}-option-${Kd(e)}`}function en(t){return Tu()?t.altKey:t.ctrlKey}function Nt(t,e){var r,n;let o=`[data-key="${CSS.escape(String(e))}"]`,i=(r=t.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=t.current)===null||n===void 0?void 0:n.querySelector(o)}const Rl=new WeakMap;function Fd(t){let e=te();return Rl.set(t,e),e}function Md(t){return Rl.get(t)}const Ad=1e3;function Kl(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=s.useRef({search:"",timeout:void 0}).current,i=l=>{let a=Id(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=a,e.getKeyForSearch!=null){let u=e.getKeyForSearch(o.search,r.focusedKey);u==null&&(u=e.getKeyForSearch(o.search)),u!=null&&(r.setFocusedKey(u),n&&n(u))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Ad)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:void 0}}}function Id(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Nd(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:u="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:v=!1,isVirtualized:p,scrollRef:b=n,linkBehavior:m="action"}=t,{direction:y}=Ke(),$=Jt(),E=g=>{var k;if(g.altKey&&g.key==="Tab"&&g.preventDefault(),!(!((k=n.current)===null||k===void 0)&&k.contains(g.target)))return;const S=(I,Me)=>{if(I!=null){if(e.isLink(I)&&m==="selection"&&c&&!en(g)){je.flushSync(()=>{e.setFocusedKey(I,Me)});let Ae=Nt(n,I),Jn=e.getItemProps(I);Ae&&$.open(Ae,g,Jn.href,Jn.routerOptions);return}if(e.setFocusedKey(I,Me),e.isLink(I)&&m==="override")return;g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(I):c&&!en(g)&&e.replaceSelection(I)}};switch(g.key){case"ArrowDown":if(r.getKeyBelow){var O,Y,Z;let I=e.focusedKey!=null?(O=r.getKeyBelow)===null||O===void 0?void 0:O.call(r,e.focusedKey):(Y=r.getFirstKey)===null||Y===void 0?void 0:Y.call(r);I==null&&i&&(I=(Z=r.getFirstKey)===null||Z===void 0?void 0:Z.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),S(I))}break;case"ArrowUp":if(r.getKeyAbove){var ne,he,Fe;let I=e.focusedKey!=null?(ne=r.getKeyAbove)===null||ne===void 0?void 0:ne.call(r,e.focusedKey):(he=r.getLastKey)===null||he===void 0?void 0:he.call(r);I==null&&i&&(I=(Fe=r.getLastKey)===null||Fe===void 0?void 0:Fe.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),S(I))}break;case"ArrowLeft":if(r.getKeyLeftOf){var it,kt,fr;let I=e.focusedKey!=null?(it=r.getKeyLeftOf)===null||it===void 0?void 0:it.call(r,e.focusedKey):null;I==null&&i&&(I=y==="rtl"?(kt=r.getFirstKey)===null||kt===void 0?void 0:kt.call(r,e.focusedKey):(fr=r.getLastKey)===null||fr===void 0?void 0:fr.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),S(I,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var pr,vr,br;let I=e.focusedKey!=null?(pr=r.getKeyRightOf)===null||pr===void 0?void 0:pr.call(r,e.focusedKey):null;I==null&&i&&(I=y==="rtl"?(vr=r.getLastKey)===null||vr===void 0?void 0:vr.call(r,e.focusedKey):(br=r.getFirstKey)===null||br===void 0?void 0:br.call(r,e.focusedKey)),I!=null&&(g.preventDefault(),S(I,y==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let I=r.getFirstKey(e.focusedKey,Je(g));e.setFocusedKey(I),I!=null&&(Je(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(I):c&&e.replaceSelection(I))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let I=r.getLastKey(e.focusedKey,Je(g));e.setFocusedKey(I),I!=null&&(Je(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(I):c&&e.replaceSelection(I))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let I=r.getKeyPageBelow(e.focusedKey);I!=null&&(g.preventDefault(),S(I))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let I=r.getKeyPageAbove(e.focusedKey);I!=null&&(g.preventDefault(),S(I))}break;case"a":Je(g)&&e.selectionMode==="multiple"&&a!==!0&&(g.preventDefault(),e.selectAll());break;case"Escape":u==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(g.stopPropagation(),g.preventDefault(),e.clearSelection());break;case"Tab":if(!v){if(g.shiftKey)n.current.focus();else{let I=ue(n.current,{tabbable:!0}),Me,Ae;do Ae=I.lastChild(),Ae&&(Me=Ae);while(Ae);Me&&!Me.contains(document.activeElement)&&be(Me)}break}}},C=s.useRef({top:0,left:0});dt(b,"scroll",p?void 0:()=>{var g,k,S,O;C.current={top:(S=(g=b.current)===null||g===void 0?void 0:g.scrollTop)!==null&&S!==void 0?S:0,left:(O=(k=b.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&O!==void 0?O:0}});let K=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 k,S;let Z=he=>{he!=null&&(e.setFocusedKey(he),c&&!e.isSelected(he)&&e.replaceSelection(he))},ne=g.relatedTarget;var O,Y;ne&&g.currentTarget.compareDocumentPosition(ne)&Node.DOCUMENT_POSITION_FOLLOWING?Z((O=e.lastSelectedKey)!==null&&O!==void 0?O:(k=r.getLastKey)===null||k===void 0?void 0:k.call(r)):Z((Y=e.firstSelectedKey)!==null&&Y!==void 0?Y:(S=r.getFirstKey)===null||S===void 0?void 0:S.call(r))}else!p&&b.current&&(b.current.scrollTop=C.current.top,b.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&b.current){let Z=Nt(n,e.focusedKey);Z instanceof HTMLElement&&(!Z.contains(document.activeElement)&&!f&&be(Z),yt()==="keyboard"&&ro(Z,{containingElement:n.current}))}}},T=g=>{g.currentTarget.contains(g.relatedTarget)||e.setFocused(!1)},x=s.useRef(!1);dt(n,Ou,f?g=>{let{detail:k}=g;g.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(x.current=!0)}:void 0);let M=J(()=>{var g,k;let S=(k=(g=r.getFirstKey)===null||g===void 0?void 0:g.call(r))!==null&&k!==void 0?k:null;S==null?(Ii(n.current),e.collection.size>0&&(x.current=!1)):(e.setFocusedKey(S),x.current=!1)});eo(()=>{x.current&&M()},[e.collection,M]);let F=J(()=>{e.collection.size>0&&(x.current=!1)});eo(()=>{F()},[e.focusedKey,F]),dt(n,Bu,f?g=>{var k;g.stopPropagation(),e.setFocused(!1),!((k=g.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const N=s.useRef(o),L=s.useRef(!1);s.useEffect(()=>{if(N.current){var g,k;let Y=null;var S;o==="first"&&(Y=(S=(g=r.getFirstKey)===null||g===void 0?void 0:g.call(r))!==null&&S!==void 0?S:null);var O;o==="last"&&(Y=(O=(k=r.getLastKey)===null||k===void 0?void 0:k.call(r))!==null&&O!==void 0?O:null);let Z=e.selectedKeys;if(Z.size){for(let ne of Z)if(e.canSelectItem(ne)){Y=ne;break}}e.setFocused(!0),e.setFocusedKey(Y),Y==null&&!f&&n.current&&De(n.current),e.collection.size>0&&(N.current=!1,L.current=!0)}});let h=s.useRef(e.focusedKey);s.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==h.current||L.current)&&b.current&&n.current){let g=yt(),k=Nt(n,e.focusedKey);if(!(k instanceof HTMLElement))return;(g==="keyboard"||L.current)&&(pi(b.current,k),g!=="virtual"&&ro(k,{containingElement:n.current}))}!f&&e.isFocused&&e.focusedKey==null&&h.current!=null&&n.current&&De(n.current),h.current=e.focusedKey,L.current=!1}),dt(n,"react-aria-focus-scope-restore",g=>{g.preventDefault(),e.setFocused(!0)});let R={onKeyDown:E,onFocus:K,onBlur:T,onMouseDown(g){b.current===g.target&&g.preventDefault()}},{typeSelectProps:B}=Kl({keyboardDelegate:r,selectionManager:e});d||(R=A(B,R));let D;f||(D=e.focusedKey==null?0:-1);let z=Fd(e.collection);return{collectionProps:A(R,{tabIndex:D,"data-collection":z})}}function Bd(t){let{id:e,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,v=Jt();e=te(e);let p=S=>{if(S.pointerType==="keyboard"&&en(S))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&o.current){let O=r.getItemProps(n);v.open(o.current,S,O.href,O.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):S&&S.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||S&&(Je(S)||S.pointerType==="touch"||S.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};s.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(l?Ii(o.current):a?a():document.activeElement!==o.current&&o.current&&De(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,l]),u=u||r.isDisabled(n);let b={};!l&&!u?b={tabIndex:n===r.focusedKey?0:-1,onFocus(S){S.target===o.current&&r.setFocusedKey(n)}}:u&&(b.onMouseDown=S=>{S.preventDefault()});let m=r.isLink(n)&&f==="override",y=r.isLink(n)&&f!=="selection"&&f!=="none",$=!u&&r.canSelectItem(n)&&!m,E=(c||y)&&!u,C=E&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),K=E&&$&&r.selectionBehavior==="replace",T=C||K,x=s.useRef(null),M=T&&$,F=s.useRef(!1),N=s.useRef(!1),L=S=>{if(c&&c(),y&&o.current){let O=r.getItemProps(n);v.open(o.current,S,O.href,O.routerOptions)}},h={ref:o};i?(h.onPressStart=S=>{x.current=S.pointerType,F.current=M,S.pointerType==="keyboard"&&(!T||Fo())&&p(S)},d?(h.onPressUp=C?void 0:S=>{S.pointerType==="mouse"&&$&&p(S)},h.onPress=C?L:S=>{S.pointerType!=="keyboard"&&S.pointerType!=="mouse"&&$&&p(S)}):h.onPress=S=>{if(C||K&&S.pointerType!=="mouse"){if(S.pointerType==="keyboard"&&!Lo())return;L(S)}else S.pointerType!=="keyboard"&&$&&p(S)}):(h.onPressStart=S=>{x.current=S.pointerType,F.current=M,N.current=C,$&&(S.pointerType==="mouse"&&!C||S.pointerType==="keyboard"&&(!E||Fo()))&&p(S)},h.onPress=S=>{(S.pointerType==="touch"||S.pointerType==="pen"||S.pointerType==="virtual"||S.pointerType==="keyboard"&&T&&Lo()||S.pointerType==="mouse"&&N.current)&&(T?L(S):$&&p(S))}),b["data-collection"]=Md(r.collection),b["data-key"]=n,h.preventFocusOnPress=l,l&&(h=A(h,{onPressStart(S){S.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(S){S.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}}));let{pressProps:R,isPressed:B}=He(h),D=K?S=>{x.current==="mouse"&&(S.stopPropagation(),S.preventDefault(),L(S))}:void 0,{longPressProps:z}=ki({isDisabled:!M,onLongPress(S){S.pointerType==="touch"&&(p(S),r.setSelectionBehavior("toggle"))}}),g=S=>{x.current==="touch"&&F.current&&S.preventDefault()},k=r.isLink(n)?S=>{ze.isOpening||S.preventDefault()}:void 0;return{itemProps:A(b,$||C||l?R:{},M?z:{},{onDoubleClick:D,onDragStartCapture:g,onClick:k,id:e},l?{onMouseDown:S=>S.preventDefault()}:void 0),isPressed:B,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:u,allowsSelection:$,hasAction:T}}function Lo(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Fo(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Mo{getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?Nt(this.ref,e):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 e=this.ref.current;var r,n;return{width:(r=e==null?void 0:e.scrollWidth)!==null&&r!==void 0?r:0,height:(n=e==null?void 0:e.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let e=this.ref.current;var r,n,o,i;return{x:(r=e==null?void 0:e.scrollLeft)!==null&&r!==void 0?r: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 Sn{isDisabled(e){var r;return this.disabledBehavior==="all"&&(((r=e.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,r){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=r(n)}return null}getNextKey(e){let r=e;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(e){let r=e;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(e,r,n){let o=e,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(l,i)&&o!=null);return o}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](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 r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[r](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,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!ht(r))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 r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!ht(r))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,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 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 r=e[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 Mo(r.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 Mo(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Od(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:l}=t,a=bn({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,c=s.useMemo(()=>i||new Sn({collection:r,disabledKeys:n,disabledBehavior:u,ref:o,collator:a,layoutDelegate:l}),[i,l,r,n,o,a,u]),{collectionProps:d}=Nd({...t,ref:o,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function zd(t,e,r){let n=Q(t,{labelable:!0}),o=t.selectionBehavior||"toggle",i=t.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Od({...t,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=tr({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),u=te(t.id);xn.set(e,{id:u,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=yn({...t,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:A(n,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...A(d,l)})}}class Hd{build(e,r){return this.context=r,Ao(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(s.isValidElement(r)&&r.type===s.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=[];s.Children.forEach(r,l=>{l&&o.push(l)});let i=0;for(let l of o){let a=this.getFullNode({element:l,index:i},{});for(let u of a)i++,yield u}}}getKey(e,r,n,o){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var l;let a=(l=i.key)!==null&&l!==void 0?l:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,o){if(s.isValidElement(e.element)&&e.element.type===s.Fragment){let y=[];s.Children.forEach(e.element.props.children,E=>{y.push(E)});var i;let $=(i=e.index)!==null&&i!==void 0?i:0;for(const E of y)yield*this.getFullNode({element:E,index:$++},r,n,o);return}let l=e.element;if(!l&&e.value&&r&&r.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=r.renderer(e.value)}if(s.isValidElement(l)){let y=l.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let K=l.type;throw new Error(`Unknown element <${K}> in collection.`)}let $=y.getCollectionNode(l.props,this.context);var a;let E=(a=e.index)!==null&&a!==void 0?a:0,C=$.next();for(;!C.done&&C.value;){let K=C.value;e.index=E;var u;let T=(u=K.key)!==null&&u!==void 0?u:null;T==null&&(T=K.element?null:this.getKey(l,e,r,n));let M=[...this.getFullNode({...K,key:T,index:E,wrapper:Vd(e.wrapper,K.wrapper)},this.getChildState(r,K),n?`${n}${l.key}`:l.key,o)];for(let F of M){var c,d;F.value=(d=(c=K.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,F.value&&this.cache.set(F.value,F);var f;if(e.type&&F.type!==e.type)throw new Error(`Unsupported type <${kr(F.type)}> in <${kr((f=o==null?void 0:o.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${kr(e.type)}> is supported.`);E++,yield F}C=$.next(M)}return}if(e.key==null||e.type==null)return;let v=this;var p,b;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:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Ao(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let $ of e.childNodes()){$.key!=null&&($.key=`${m.key}${$.key}`);let E=v.getFullNode({...$,index:y},v.getChildState(r,$),m.key,m);for(let C of E)y++,yield C}})};yield m}constructor(){this.cache=new WeakMap}}function Ao(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function Vd(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function kr(t){return t[0].toUpperCase()+t.slice(1)}function jd(t,e,r){let n=s.useMemo(()=>new Hd,[]),{children:o,items:i,collection:l}=t;return s.useMemo(()=>{if(l)return l;let u=n.build({children:o,items:i},r);return e(u)},[n,o,i,l,r,e])}function Ll(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function _d(t){return Wd(t)}function Wd(t,e){for(let r of t)return r}function Dr(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[...Io(t,e),e],o=[...Io(t,r),r],i=n.slice(0,o.length).findIndex((l,a)=>l!==o[a]);return i!==-1?(e=n[i],r=o[i],e.index-r.index):n.findIndex(l=>l===r)>=0?1:(o.findIndex(l=>l===e)>=0,-1)}function Io(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}const No=new WeakMap;function Ud(t){let e=No.get(t);if(e!=null)return e;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Ll(i,t)):r++};return n(t),No.set(t,r),r}function Gd(t,e,r){var n,o;let{key:i}=t,l=xn.get(e);var a;let u=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(i);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(i);var f;let v=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var p;let b=(p=t.shouldFocusOnHover)!==null&&p!==void 0?p:l==null?void 0:l.shouldFocusOnHover;var m;let y=(m=t.shouldUseVirtualFocus)!==null&&m!==void 0?m:l==null?void 0:l.shouldUseVirtualFocus;var $;let E=($=t.isVirtualized)!==null&&$!==void 0?$:l==null?void 0:l.isVirtualized,C=bt(),K=bt(),T={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};ke()&&an()||(T["aria-label"]=t["aria-label"],T["aria-labelledby"]=C,T["aria-describedby"]=K);let x=e.collection.getItem(i);if(E){let k=Number(x==null?void 0:x.index);T["aria-posinset"]=Number.isNaN(k)?void 0:k+1,T["aria-setsize"]=Ud(e.collection)}let M=l!=null&&l.onAction?()=>{var k;return l==null||(k=l.onAction)===null||k===void 0?void 0:k.call(l,i)}:void 0,F=Ld(e,i),{itemProps:N,isPressed:L,isFocused:h,hasAction:R,allowsSelection:B}=Bd({selectionManager:e.selectionManager,key:i,ref:r,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&b,isVirtualized:E,shouldUseVirtualFocus:y,isDisabled:u,onAction:M||!(x==null||(n=x.props)===null||n===void 0)&&n.onAction?Te(x==null||(o=x.props)===null||o===void 0?void 0:o.onAction,M):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:F}),{hoverProps:D}=Ue({isDisabled:u||!b,onHoverStart(){mt()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(i))}}),z=Q(x==null?void 0:x.props);delete z.id;let g=ui(x==null?void 0:x.props);return{optionProps:{...T,...A(z,N,D,g),id:F},labelProps:{id:C},descriptionProps:{id:K},isFocused:h,isFocusVisible:h&&e.selectionManager.isFocused&&mt(),isSelected:d,isDisabled:u,isPressed:L,allowsSelection:B,hasAction:R}}function qd(t){let{heading:e,"aria-label":r}=t,n=te();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}var Fl={};Fl={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ml={};Ml={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Al={};Al={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Il={};Il={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Nl={};Nl={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Bl={};Bl={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Ol={};Ol={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var zl={};zl={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Hl={};Hl={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Vl={};Vl={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var jl={};jl={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var _l={};_l={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Wl={};Wl={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Ul={};Ul={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Gl={};Gl={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var ql={};ql={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Yl={};Yl={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Zl={};Zl={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Xl={};Xl={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Jl={};Jl={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Ql={};Ql={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var ea={};ea={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var ta={};ta={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var ra={};ra={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var na={};na={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var oa={};oa={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ia={};ia={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var la={};la={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var aa={};aa={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var sa={};sa={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ua={};ua={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ca={};ca={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var da={};da={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var fa={};fa={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var pa={};pa={"ar-AE":Fl,"bg-BG":Ml,"cs-CZ":Al,"da-DK":Il,"de-DE":Nl,"el-GR":Bl,"en-US":Ol,"es-ES":zl,"et-EE":Hl,"fi-FI":Vl,"fr-FR":jl,"he-IL":_l,"hr-HR":Wl,"hu-HU":Ul,"it-IT":Gl,"ja-JP":ql,"ko-KR":Yl,"lt-LT":Zl,"lv-LV":Xl,"nb-NO":Jl,"nl-NL":Ql,"pl-PL":ea,"pt-BR":ta,"pt-PT":ra,"ro-RO":na,"ru-RU":oa,"sk-SK":ia,"sl-SI":la,"sr-SP":aa,"sv-SE":sa,"tr-TR":ua,"uk-UA":ca,"zh-CN":da,"zh-TW":fa};function Yd(t){return t&&t.__esModule?t.default:t}function Zd(t,e,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=t,l=te(),{triggerProps:a,overlayProps:u}=Ui({type:n},e,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(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=vn(Yd(pa),"@react-aria/menu"),{longPressProps:f}=ki({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),v={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&(be(p.target),e.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!o&&(be(p.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?v:f,id:l,onKeyDown:c},menuProps:{...u,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}function Xd(t,e){let{role:r="dialog"}=t,n=bt();n=t["aria-label"]?void 0:n;let o=s.useRef(!1);return s.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){De(e.current);let i=setTimeout(()=>{document.activeElement===e.current&&(o.current=!0,e.current&&(e.current.blur(),De(e.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),Rd(),{dialogProps:{...Q(t,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}function Jd(t,e,r){let{isDisabled:n}=t,o=te(),i=te(),a=!_e()&&"onbeforematch"in document.body,u=s.useRef(null),c=s.useCallback(()=>{u.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found")}),je.flushSync(()=>{e.toggle()})},[r,e]);return dt(r,"beforematch",a?c:null),H(()=>{u.current&&cancelAnimationFrame(u.current),a&&r.current&&!n&&(e.isExpanded?r.current.removeAttribute("hidden"):r.current.setAttribute("hidden","until-found"))},[n,r,e.isExpanded,a]),s.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:a?!0:!e.isExpanded}}}function Qd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var At={exports:{}},Rr={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("@chakra-ui/react"),G=require("@commercetools/nimbus-tokens"),s=require("react"),E=require("react/jsx-runtime"),Ye=require("react-dom"),ce=require("@commercetools/nimbus-icons");function kc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ee=kc(s),fi=P.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:Tc}=P.createRecipeContext({recipe:fi}),Rc=Tc("figure");function Bc(t,e){return t.split("")[0].toUpperCase()+e.split("")[0].toUpperCase()}const pi=s.forwardRef((t,e)=>{const{firstName:n,lastName:r,src:o,alt:i,...l}=t,a=`${n} ${r}`,u={"aria-label":`${a} avatar`,ref:e,...l};return E.jsx(Rc,{...u,children:o?E.jsx(P.Image,{src:o,alt:i||a}):Bc(n,r)})});pi.displayName="Avatar";const Pe=s.forwardRef((t,e)=>E.jsx(P.Box,{ref:e,...t}));Pe.displayName="Box";const V=typeof document<"u"?s.useLayoutEffect:()=>{};function X(t){const e=s.useRef(null);return V(()=>{e.current=t},[t]),s.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Ac(t){let[e,n]=s.useState(t),r=s.useRef(null),o=X(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?o():n(l.value)});V(()=>{r.current&&o()});let i=X(l=>{r.current=l(e),o()});return[e,i]}const Ut={prefix:String(Math.round(Math.random()*1e10)),current:0},vi=s.createContext(Ut),Fc=s.createContext(!1);let Kc=!!(typeof window<"u"&&window.document&&window.document.createElement),wn=new WeakMap;function Ic(t=!1){let e=s.useContext(vi),n=s.useRef(null);if(n.current===null&&!t){var r,o;let i=(o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=wn.get(i);l==null?wn.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==l.state&&(e.current=l.id,wn.delete(i))}n.current=++e.current}return n.current}function Lc(t){let e=s.useContext(vi);e===Ut&&!Kc&&process.env.NODE_ENV!=="production"&&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 n=Ic(!!t),r=e===Ut&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function Mc(t){let e=s.useId(),[n]=s.useState(Le()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ut.prefix}`;return t||`${r}-${e}`}const Nc=typeof s.useId=="function"?Mc:Lc;function zc(){return!1}function Oc(){return!0}function Vc(t){return()=>{}}function Le(){return typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore(Vc,zc,Oc):s.useContext(Fc)}let Hc=!!(typeof window<"u"&&window.document&&window.document.createElement),it=new Map,ht;typeof FinalizationRegistry<"u"&&(ht=new FinalizationRegistry(t=>{it.delete(t)}));function J(t){let[e,n]=s.useState(t),r=s.useRef(null),o=Nc(e),i=s.useRef(null);if(ht&&ht.register(i,o),Hc){const l=it.get(o);l&&!l.includes(r)?l.push(r):it.set(o,[r])}return V(()=>{let l=o;return()=>{ht&&ht.unregister(i),it.delete(l)}},[o]),s.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),o}function jc(t,e){if(t===e)return t;let n=it.get(t);if(n)return n.forEach(o=>o.current=e),e;let r=it.get(e);return r?(r.forEach(o=>o.current=t),t):e}function st(t=[]){let e=J(),[n,r]=Ac(e),o=s.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return V(o,[e,o,...t]),n}function Se(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const j=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},le=t=>t&&"window"in t&&t.window===t?t:j(t).defaultView||window;function _c(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Wc(t){return _c(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Uc=!1;function on(){return Uc}function U(t,e){if(!on())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Wc(n)?n=n.host:n=n.parentNode}return!1}const ne=(t=document)=>{var e;if(!on())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function H(t){return on()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class Gc{get currentNode(){return this._currentNode}set currentNode(e){if(!U(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,o=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=o,this._currentSetFor.add(a),r=o=l.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return U(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let i=this.nextNode();return i&&(this.currentNode=i),i}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const u=l.shadowRoot;if(u){const c=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function qc(t,e,n,r){return on()?new Gc(t,e,n,r):t.createTreeWalker(e,n,r)}function bi(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=bi(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Zc(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=bi(t))&&(r&&(r+=" "),r+=e);return r}function L(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let o in r){let i=e[o],l=r[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Se(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?e[o]=Zc(i,l):o==="id"&&i&&l?e.id=jc(i,l):e[o]=l!==void 0?l:i}}return e}function mi(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const Yc=new Set(["id"]),Xc=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Jc=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Qc=/^(data-.*)$/;function q(t,e={}){let{labelable:n,isLink:r,propNames:o}=e,i={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(Yc.has(l)||n&&Xc.has(l)||r&&Jc.has(l)||o!=null&&o.has(l)||Qc.test(l))&&(i[l]=t[l]);return i}function me(t){if(ed())t.focus({preventScroll:!0});else{let e=td(t);t.focus(),nd(e)}}let Mt=null;function ed(){if(Mt==null){Mt=!1;try{document.createElement("div").focus({get preventScroll(){return Mt=!0,!0}})}catch{}}return Mt}function td(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function nd(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ln(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function pr(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function De(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const Ie=De(function(){return pr(/^Mac/i)}),rd=De(function(){return pr(/^iPhone/i)}),hi=De(function(){return pr(/^iPad/i)||Ie()&&navigator.maxTouchPoints>1}),an=De(function(){return rd()||hi()}),od=De(function(){return Ie()||an()}),vr=De(function(){return ln(/AppleWebKit/i)&&!gi()}),gi=De(function(){return ln(/Chrome/i)}),br=De(function(){return ln(/Android/i)}),id=De(function(){return ln(/Firefox/i)}),ld=s.createContext({isNative:!0,open:ud,useHref:t=>t});function Dt(){return s.useContext(ld)}function ad(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Ge(t,e,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}=e;id()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Ie()?i=!0:l=!0);let c=vr()&&Ie()&&!hi()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u,bubbles:!0,cancelable:!0});Ge.isOpening=n,me(t),t.dispatchEvent(c),Ge.isOpening=!1}Ge.isOpening=!1;function sd(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function ud(t,e){sd(t,n=>Ge(n,e))}function yi(t){let e=Dt();var n;const r=e.useHref((n=t.href)!==null&&n!==void 0?n:"");return{"data-href":t.href?r:void 0,"data-target":t.target,"data-rel":t.rel,"data-download":t.download,"data-ping":t.ping,"data-referrer-policy":t.referrerPolicy}}function $i(t){let e=Dt();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let tt=new Map,Gn=new Set;function ao(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let o=tt.get(r.target);o||(o=new Set,tt.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let o=tt.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),tt.delete(r.target)),tt.size===0)){for(let i of Gn)i();Gn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ao():document.addEventListener("DOMContentLoaded",ao));function xi(t){requestAnimationFrame(()=>{tt.size===0?t():Gn.add(t)})}function sn(){let t=s.useRef(new Map),e=s.useCallback((o,i,l,a)=>{let u=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:i,eventTarget:o,fn:u,options:a}),o.addEventListener(i,u,a)},[]),n=s.useCallback((o,i,l,a)=>{var u;let c=((u=t.current.get(l))===null||u===void 0?void 0:u.fn)||l;o.removeEventListener(i,c,a),t.current.delete(l)},[]),r=s.useCallback(()=>{t.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return s.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ei(t,e){let{id:n,"aria-label":r,"aria-labelledby":o}=t;return n=J(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":o}}function de(t){const e=s.useRef(null);return s.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function cd(t,e){const n=s.useRef(!0),r=s.useRef(null);s.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),s.useEffect(()=>{let o=r.current;n.current?n.current=!1:(!o||e.some((i,l)=>!Object.is(i,o[l])))&&t(),r.current=e},e)}function so(t,e){const n=s.useRef(!0),r=s.useRef(null);V(()=>(n.current=!0,()=>{n.current=!1}),[]),V(()=>{n.current?n.current=!1:(!r.current||e.some((o,i)=>!Object.is(o,r[i])))&&t(),r.current=e},e)}function dd(){return typeof window.ResizeObserver<"u"}function qn(t){const{ref:e,box:n,onResize:r}=t;s.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(dd()){const i=new window.ResizeObserver(l=>{l.length&&r()});return i.observe(o,{box:n}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function mr(t,e){V(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Et(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function Re(t,e){let n=t;for(Et(n,e)&&(n=n.parentElement);n&&!Et(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fd(t,e){const n=[];for(;t&&t!==document.documentElement;)Et(t,e)&&n.push(t),t=t.parentElement;return n}let pd=0;const Dn=new Map;function hr(t){let[e,n]=s.useState();return V(()=>{if(!t)return;let r=Dn.get(t);if(r)n(r.element.id);else{let o=`react-aria-description-${pd++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=t,document.body.appendChild(i),r={refCount:0,element:i},Dn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Dn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function gt(t,e,n,r){let o=X(n),i=n==null;s.useEffect(()=>{if(i||!t.current)return;let l=t.current;return l.addEventListener(e,o,r),()=>{l.removeEventListener(e,o,r)}},[t,e,r,i,o])}function Ci(t,e){let n=uo(t,e,"left"),r=uo(t,e,"top"),o=e.offsetWidth,i=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:v}=getComputedStyle(t),b=l+parseInt(c,10),g=a+parseInt(u,10),y=b+t.clientWidth,$=g+t.clientHeight,S=parseInt(d,10)||0,w=parseInt(p,10)||0,B=parseInt(f,10)||0,k=parseInt(v,10)||0;n<=l+k?l=n-parseInt(c,10)-k:n+o>y-B&&(l+=n+o-y+B),r<=g+S?a=r-parseInt(u,10)-S:r+i>$-w&&(a+=r+i-$+w),t.scrollLeft=l,t.scrollTop=a}function uo(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;e.offsetParent&&(o+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){o-=t[r];break}e=e.offsetParent}return o}function Be(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let u=fd(t);for(let c of u)Ci(c,t)}else{var n;let{left:u,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(u-d)>1||Math.abs(c-f)>1){var r,o,i;e==null||(o=e.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=t.scrollIntoView)===null||i===void 0||i.call(t,{block:"nearest"})}}}}function Zn(t){return t.mozInputSource===0&&t.isTrusted?!0:br()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function vd(t){return!br()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function gr(t,e,n){let r=s.useRef(e),o=X(()=>{n&&n(r.current)});s.useEffect(()=>{var i;let l=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[t,o])}const bd="react-aria-clear-focus",md="react-aria-focus";function nt(t){return Ie()?t.metaKey:t.ctrlKey}function Pi(t,e=!0){let[n,r]=s.useState(!0),o=n&&e;return V(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,o]),wi(t,o,s.useCallback(()=>r(!1),[])),o}function Si(t,e){let[n,r]=s.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let o=n==="exiting";return wi(t,o,s.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function wi(t,e,n){V(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let o=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{o||Ye.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[t,e,n])}const yr=["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"])'],hd=yr.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yr.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const gd=yr.join(':not([hidden]):not([tabindex="-1"]),');function Di(t){return t.matches(hd)}function yd(t){return t.matches(gd)}function Me(t,e,n){let[r,o]=s.useState(t||e),i=s.useRef(t!==void 0),l=t!==void 0;s.useEffect(()=>{let c=i.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let a=l?t:r,u=s.useCallback((c,...d)=>{let f=(p,...v)=>{n&&(Object.is(a,p)||n(p,...v)),l||(a=p)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((v,...b)=>{let g=c(l?a:v,...b);return f(g,...d),l?v:g})):(l||o(c),f(c,...d))},[l,a,n]);return[a,u]}function Gt(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}function $r(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ki(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Ti(t){let e=s.useRef({isFocused:!1,observer:null});V(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=X(r=>{t==null||t(r)});return s.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=r.target,i=l=>{if(e.current.isFocused=!1,o.disabled){let a=$r(l);n(a)}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 a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let qt=!1;function co(t){for(;t&&!Di(t);)t=t.parentElement;let e=le(t),n=e.document.activeElement;if(!n||n===t)return;qt=!0;let r=!1,o=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},i=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,me(n),u()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,me(n),u()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",i,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",i,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),qt=!1,r=!1},c=requestAnimationFrame(u);return u}let rt="default",Yn="",_t=new WeakMap;function fo(t){if(an()){if(rt==="default"){const e=j(t);Yn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";_t.set(t,t.style[e]),t.style[e]="none"}}function kn(t){if(an()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{xi(()=>{if(rt==="restoring"){const e=j(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Yn||""),Yn="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&_t.has(t)){let e=_t.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),_t.delete(t)}}const Ct=s.createContext({register:()=>{}});Ct.displayName="PressResponderContext";function $d(t,e){return e.get?e.get.call(t):e.value}function Ri(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function xd(t,e){var n=Ri(t,e,"get");return $d(t,n)}function Ed(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Cd(t,e,n){Ed(t,e),e.set(t,n)}function Pd(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function po(t,e,n){var r=Ri(t,e,"set");return Pd(t,r,n),n}function Sd(t){let e=s.useContext(Ct);if(e){let{register:n,...r}=e;t=L(r,t),n()}return mr(e,t.ref),t}var Nt=new WeakMap;class zt{continuePropagation(){po(this,Nt,!1)}get shouldStopPropagation(){return xd(this,Nt)}constructor(e,n,r,o){Cd(this,Nt,{writable:!0,value:void 0}),po(this,Nt,!0);var i;let l=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let u,c=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(u=d-a.left,c=f-a.top):(u=a.width/2,c=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=u,this.y=c}}const vo=Symbol("linkClicked");function qe(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:l,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...v}=Sd(t),[b,g]=s.useState(!1),y=s.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:S}=sn(),w=X((h,R)=>{let z=y.current;if(a||z.didFirePressStart)return!1;let T=!0;if(z.isTriggeringEvent=!0,r){let O=new zt("pressstart",R,h);r(O),T=O.shouldStopPropagation}return n&&n(!0),z.isTriggeringEvent=!1,z.didFirePressStart=!0,g(!0),T}),B=X((h,R,z=!0)=>{let T=y.current;if(!T.didFirePressStart)return!1;T.didFirePressStart=!1,T.isTriggeringEvent=!0;let O=!0;if(o){let m=new zt("pressend",R,h);o(m),O=m.shouldStopPropagation}if(n&&n(!1),g(!1),e&&z&&!a){let m=new zt("press",R,h);e(m),O&&(O=m.shouldStopPropagation)}return T.isTriggeringEvent=!1,O}),k=X((h,R)=>{let z=y.current;if(a)return!1;if(i){z.isTriggeringEvent=!0;let T=new zt("pressup",R,h);return i(T),z.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),C=X(h=>{let R=y.current;if(R.isPressed&&R.target){R.didFirePressStart&&R.pointerType!=null&&B(Qe(R.target,h),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,S(),f||kn(R.target);for(let z of R.disposables)z();R.disposables=[]}}),K=X(h=>{d&&C(h)}),F=X(h=>{l==null||l(h)}),M=X((h,R)=>{if(l){let z=new MouseEvent("click",h);ki(z,R),l($r(z))}}),A=s.useMemo(()=>{let h=y.current,R={onKeyDown(T){if(Tn(T.nativeEvent,T.currentTarget)&&U(T.currentTarget,H(T.nativeEvent))){var O;ho(H(T.nativeEvent),T.key)&&T.preventDefault();let m=!0;if(!h.isPressed&&!T.repeat){h.target=T.currentTarget,h.isPressed=!0,h.pointerType="keyboard",m=w(T,"keyboard");let D=T.currentTarget,x=I=>{Tn(I,D)&&!I.repeat&&U(D,H(I))&&h.target&&k(Qe(h.target,I),"keyboard")};$(j(T.currentTarget),"keyup",Se(x,z),!0)}m&&T.stopPropagation(),T.metaKey&&Ie()&&((O=h.metaKeyEvents)===null||O===void 0||O.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(T){if(!(T&&!U(T.currentTarget,H(T.nativeEvent)))&&T&&T.button===0&&!h.isTriggeringEvent&&!Ge.isOpening){let O=!0;if(a&&T.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||Zn(T.nativeEvent))){let m=w(T,"virtual"),D=k(T,"virtual"),x=B(T,"virtual");F(T),O=m&&D&&x}else if(h.isPressed&&h.pointerType!=="keyboard"){let m=h.pointerType||T.nativeEvent.pointerType||"virtual";O=B(Qe(T.currentTarget,T),m,!0),h.isOverTarget=!1,F(T),C(T)}h.ignoreEmulatedMouseEvents=!1,O&&T.stopPropagation()}}},z=T=>{var O;if(h.isPressed&&h.target&&Tn(T,h.target)){var m;ho(H(T),T.key)&&T.preventDefault();let x=H(T),I=U(h.target,H(T));B(Qe(h.target,T),"keyboard",I),I&&M(T,h.target),S(),T.key!=="Enter"&&xr(h.target)&&U(h.target,x)&&!T[vo]&&(T[vo]=!0,Ge(h.target,T,!1)),h.isPressed=!1,(m=h.metaKeyEvents)===null||m===void 0||m.delete(T.key)}else if(T.key==="Meta"&&(!((O=h.metaKeyEvents)===null||O===void 0)&&O.size)){var D;let x=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let I of x.values())(D=h.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",I))}};if(typeof PointerEvent<"u"){R.onPointerDown=m=>{if(m.button!==0||!U(m.currentTarget,H(m.nativeEvent)))return;if(vd(m.nativeEvent)){h.pointerType="virtual";return}h.pointerType=m.pointerType;let D=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=m.pointerId,h.target=m.currentTarget,f||fo(h.target),D=w(m,h.pointerType);let x=H(m.nativeEvent);"releasePointerCapture"in x&&x.releasePointerCapture(m.pointerId),$(j(m.currentTarget),"pointerup",T,!1),$(j(m.currentTarget),"pointercancel",O,!1)}D&&m.stopPropagation()},R.onMouseDown=m=>{if(U(m.currentTarget,H(m.nativeEvent))&&m.button===0){if(c){let D=co(m.target);D&&h.disposables.push(D)}m.stopPropagation()}},R.onPointerUp=m=>{!U(m.currentTarget,H(m.nativeEvent))||h.pointerType==="virtual"||m.button===0&&k(m,h.pointerType||m.pointerType)},R.onPointerEnter=m=>{m.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,w(Qe(h.target,m),h.pointerType))},R.onPointerLeave=m=>{m.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,B(Qe(h.target,m),h.pointerType,!1),K(m))};let T=m=>{if(m.pointerId===h.activePointerId&&h.isPressed&&m.button===0&&h.target){if(U(h.target,H(m))&&h.pointerType!=null){let D=!1,x=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(D?C(m):(me(h.target),h.target.click()))},80);$(m.currentTarget,"click",()=>D=!0,!0),h.disposables.push(()=>clearTimeout(x))}else C(m);h.isOverTarget=!1}},O=m=>{C(m)};R.onDragStart=m=>{U(m.currentTarget,H(m.nativeEvent))&&C(m)}}else if(process.env.NODE_ENV==="test"){R.onMouseDown=m=>{if(m.button!==0||!U(m.currentTarget,H(m.nativeEvent)))return;if(h.ignoreEmulatedMouseEvents){m.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=m.currentTarget,h.pointerType=Zn(m.nativeEvent)?"virtual":"mouse",Ye.flushSync(()=>w(m,h.pointerType))&&m.stopPropagation(),c){let x=co(m.target);x&&h.disposables.push(x)}$(j(m.currentTarget),"mouseup",T,!1)},R.onMouseEnter=m=>{if(!U(m.currentTarget,H(m.nativeEvent)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,D=w(m,h.pointerType)),D&&m.stopPropagation()},R.onMouseLeave=m=>{if(!U(m.currentTarget,H(m.nativeEvent)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,D=B(m,h.pointerType,!1),K(m)),D&&m.stopPropagation()},R.onMouseUp=m=>{U(m.currentTarget,H(m.nativeEvent))&&!h.ignoreEmulatedMouseEvents&&m.button===0&&k(m,h.pointerType||"mouse")};let T=m=>{if(m.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&h.target.contains(m.target)&&h.pointerType!=null||C(m),h.isOverTarget=!1}};R.onTouchStart=m=>{if(!U(m.currentTarget,H(m.nativeEvent)))return;let D=wd(m.nativeEvent);if(!D)return;h.activePointerId=D.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=m.currentTarget,h.pointerType="touch",f||fo(h.target),w(Te(h.target,m),h.pointerType)&&m.stopPropagation(),$(le(m.currentTarget),"scroll",O,!0)},R.onTouchMove=m=>{if(!U(m.currentTarget,H(m.nativeEvent)))return;if(!h.isPressed){m.stopPropagation();return}let D=bo(m.nativeEvent,h.activePointerId),x=!0;D&&mo(D,m.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,x=w(Te(h.target,m),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,x=B(Te(h.target,m),h.pointerType,!1),K(Te(h.target,m))),x&&m.stopPropagation()},R.onTouchEnd=m=>{if(!U(m.currentTarget,H(m.nativeEvent)))return;if(!h.isPressed){m.stopPropagation();return}let D=bo(m.nativeEvent,h.activePointerId),x=!0;D&&mo(D,m.currentTarget)&&h.pointerType!=null?(k(Te(h.target,m),h.pointerType),x=B(Te(h.target,m),h.pointerType),M(m.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(x=B(Te(h.target,m),h.pointerType,!1)),x&&m.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&kn(h.target),S()},R.onTouchCancel=m=>{U(m.currentTarget,H(m.nativeEvent))&&(m.stopPropagation(),h.isPressed&&C(Te(h.target,m)))};let O=m=>{h.isPressed&&U(H(m),h.target)&&C({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=m=>{U(m.currentTarget,H(m.nativeEvent))&&C(m)}}return R},[$,a,c,S,f,C,K,B,w,k,F,M]);return s.useEffect(()=>{let h=p==null?void 0:p.current;h&&h instanceof le(h).Element&&le(h).getComputedStyle(h).touchAction==="auto"&&(h.style.touchAction="pan-x pan-y pinch-zoom")},[p]),s.useEffect(()=>{let h=y.current;return()=>{var R;f||kn((R=h.target)!==null&&R!==void 0?R:void 0);for(let z of h.disposables)z();h.disposables=[]}},[f]),{isPressed:u||b,pressProps:L(v,A)}}function xr(t){return t.tagName==="A"&&t.hasAttribute("href")}function Tn(t,e){const{key:n,code:r}=t,o=e,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof le(o).HTMLInputElement&&!Bi(o,n)||o instanceof le(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&xr(o))&&n!=="Enter")}function wd(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function bo(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===e)return o}return null}function Te(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Qe(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Dd(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function kd(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function mo(t,e){let n=e.getBoundingClientRect(),r=Dd(t);return kd(n,r)}function Td(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!xr(t)}function ho(t,e){return t instanceof HTMLInputElement?!Bi(t,e):Td(t)}const Rd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Bi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Rd.has(t.type)}let we=null,Pt=new Set,xt=new Map,Ze=!1,Xn=!1;const Bd={Tab:!0,Escape:!0};function un(t,e){for(let n of Pt)n(t,e)}function Ad(t){return!(t.metaKey||!Ie()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Zt(t){Ze=!0,Ad(t)&&(we="keyboard",un("keyboard",t))}function pe(t){we="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ze=!0,un("pointer",t))}function Ai(t){Zn(t)&&(Ze=!0,we="virtual")}function Fi(t){t.target===window||t.target===document||qt||!t.isTrusted||(!Ze&&!Xn&&(we="virtual",un("virtual",t)),Ze=!1,Xn=!1)}function Ki(){qt||(Ze=!1,Xn=!0)}function Yt(t){if(typeof window>"u"||xt.get(le(t)))return;const e=le(t),n=j(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ze=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zt,!0),n.addEventListener("keyup",Zt,!0),n.addEventListener("click",Ai,!0),e.addEventListener("focus",Fi,!0),e.addEventListener("blur",Ki,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",pe,!0),n.addEventListener("pointermove",pe,!0),n.addEventListener("pointerup",pe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",pe,!0),n.addEventListener("mousemove",pe,!0),n.addEventListener("mouseup",pe,!0)),e.addEventListener("beforeunload",()=>{Ii(t)},{once:!0}),xt.set(e,{focus:r})}const Ii=(t,e)=>{const n=le(t),r=j(t);e&&r.removeEventListener("DOMContentLoaded",e),xt.has(n)&&(n.HTMLElement.prototype.focus=xt.get(n).focus,r.removeEventListener("keydown",Zt,!0),r.removeEventListener("keyup",Zt,!0),r.removeEventListener("click",Ai,!0),n.removeEventListener("focus",Fi,!0),n.removeEventListener("blur",Ki,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",pe,!0),r.removeEventListener("pointermove",pe,!0),r.removeEventListener("pointerup",pe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",pe,!0),r.removeEventListener("mousemove",pe,!0),r.removeEventListener("mouseup",pe,!0)),xt.delete(n))};function Fd(t){const e=j(t);let n;return e.readyState!=="loading"?Yt(t):(n=()=>{Yt(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ii(t,n)}typeof document<"u"&&Fd();function ut(){return we!=="pointer"}function St(){return we}function Li(t){we=t,un(t,null)}function Mi(){Yt();let[t,e]=s.useState(we);return s.useEffect(()=>{let n=()=>{e(we)};return Pt.add(n),()=>{Pt.delete(n)}},[]),Le()?null:t}const Kd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Id(t,e,n){let r=j(n==null?void 0:n.target);const o=typeof window<"u"?le(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?le(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?le(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?le(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof o&&!Kd.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!Bd[n.key])}function Ld(t,e,n){Yt(),s.useEffect(()=>{let r=(o,i)=>{Id(!!(n!=null&&n.isTextInput),o,i)&&t(ut())};return Pt.add(r),()=>{Pt.delete(r)}},e)}function ie(t){const e=j(t),n=ne(e);if(St()==="virtual"){let r=n;xi(()=>{ne(e)===r&&t.isConnected&&me(t)})}else me(t)}function Ni(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:o}=t;const i=s.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),o&&o(!1),!0},[r,o]),l=Ti(i),a=s.useCallback(u=>{const c=j(u.target),d=c?ne(c):ne();u.target===u.currentTarget&&d===H(u.nativeEvent)&&(n&&n(u),o&&o(!0),l(u))},[o,n,l]);return{focusProps:{onFocus:!e&&(n||o||r)?a:void 0,onBlur:!e&&(r||o)?i:void 0}}}function go(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?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}};t(r),e&&n.stopPropagation()}}function Md(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:go(t.onKeyDown),onKeyUp:go(t.onKeyUp)}}}let Xt=s.createContext(null);function Nd(t){let e=s.useContext(Xt)||{};mr(e,t);let{ref:n,...r}=e;return r}const zd=s.forwardRef(function(e,n){let{children:r,...o}=e,i=de(n),l={...o,ref:i};return s.createElement(Xt.Provider,{value:l},r)});function Xe(t,e){let{focusProps:n}=Ni(t),{keyboardProps:r}=Md(t),o=L(n,r),i=Nd(e),l=t.isDisabled?{}:i,a=s.useRef(t.autoFocus);s.useEffect(()=>{a.current&&e.current&&ie(e.current),a.current=!1},[e]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:L({...o,tabIndex:u},l)}}const Od=s.forwardRef(({children:t,...e},n)=>{let r=s.useRef(!1),o=s.useContext(Ct);n=de(n||(o==null?void 0:o.ref));let i=L(o||{},{...e,ref:n,register(){r.current=!0,o&&o.register()}});return mr(o,n),s.useEffect(()=>{r.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),s.createElement(Ct.Provider,{value:i},t)});function Vd({children:t}){let e=s.useMemo(()=>({register:()=>{}}),[]);return s.createElement(Ct.Provider,{value:e},t)}function kt(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=t,i=s.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=sn(),u=s.useCallback(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(f),o&&o(!1))},[n,o,i,a]),c=Ti(u),d=s.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=j(f.target),v=ne(p);if(!i.current.isFocusWithin&&v===H(f.nativeEvent)){r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,c(f);let b=f.currentTarget;l(p,"focus",g=>{if(i.current.isFocusWithin&&!U(b,g.target)){let y=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});ki(y,b);let $=$r(y);u($)}},{capture:!0})}},[r,o,c,l,u]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}let Jt=!1,Rn=0;function Jn(){Jt=!0,setTimeout(()=>{Jt=!1},50)}function yo(t){t.pointerType==="touch"&&Jn()}function Hd(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",yo):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Jn),Rn++,()=>{Rn--,!(Rn>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",yo):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Jn))}}function Ne(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:o}=t,[i,l]=s.useState(!1),a=s.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s.useEffect(Hd,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=sn(),{hoverProps:d,triggerHoverEnd:f}=s.useMemo(()=>{let p=(g,y)=>{if(a.pointerType=y,o||y==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let $=g.currentTarget;a.target=$,u(j(g.target),"pointerover",S=>{a.isHovered&&a.target&&!U(a.target,S.target)&&v(S,S.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},v=(g,y)=>{let $=a.target;a.pointerType="",a.target=null,!(y==="touch"||!a.isHovered||!$)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=g=>{Jt&&g.pointerType==="mouse"||p(g,g.pointerType)},b.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&v(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Jt&&p(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&v(g,"mouse")}),{hoverProps:b,triggerHoverEnd:v}},[e,n,r,o,a,u,c]);return s.useEffect(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:d,isHovered:i}}function jd(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=t,i=s.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=X(u=>{n&&Ot(u,e)&&(o&&o(u),i.current.isPointerDown=!0)}),a=X(u=>{n&&n(u)});s.useEffect(()=>{let u=i.current;if(r)return;const c=e.current,d=j(c);if(typeof PointerEvent<"u"){let f=p=>{u.isPointerDown&&Ot(p,e)&&a(p),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 if(process.env.NODE_ENV==="test"){let f=v=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Ot(v,e)&&a(v),u.isPointerDown=!1},p=v=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Ot(v,e)&&a(v),u.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",p,!0)}}},[e,r,l,a])}function Ot(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const _d=500;function zi(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=_d,accessibilityDescription:l}=t;const a=s.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=sn(),{pressProps:d}=qe({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),j(p.target).activeElement!==p.target&&me(p.target),o&&o({...p,type:"longpress"}),a.current=void 0},i),p.pointerType==="touch")){let v=b=>{b.preventDefault()};u(p.target,"contextmenu",v,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=hr(o&&!e?l:void 0);return{longPressProps:L(d,f)}}function Wd(t,e){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:a,...u}=t,c={};n!=="a"&&(c={role:"link",tabIndex:a?void 0:0});let{focusableProps:d}=Xe(t,e),{pressProps:f,isPressed:p}=qe({onPress:r,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:a,ref:e}),v=q(u,{labelable:!0}),b=L(d,f),g=Dt(),y=$i(t);return{isPressed:p,linkProps:L(v,y,{...b,...c,"aria-disabled":a||void 0,"aria-current":t["aria-current"],onClick:$=>{var S;(S=f.onClick)===null||S===void 0||S.call(f,$),!g.isNative&&$.currentTarget instanceof HTMLAnchorElement&&$.currentTarget.href&&!$.isDefaultPrevented()&&ad($.currentTarget,$)&&t.href&&($.preventDefault(),g.open($.currentTarget,$,t.href,t.routerOptions))}})}}const Ud=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Gd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function qd(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Ud.has(n.script)}let e=t.split("-")[0];return Gd.has(e)}const Zd=Symbol.for("react-aria.i18n.locale");function Oi(){let t=typeof window<"u"&&window[Zd]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:qd(t)?"rtl":"ltr"}}let Qn=Oi(),yt=new Set;function $o(){Qn=Oi();for(let t of yt)t(Qn)}function Yd(){let t=Le(),[e,n]=s.useState(Qn);return s.useEffect(()=>(yt.size===0&&window.addEventListener("languagechange",$o),yt.add(n),()=>{yt.delete(n),yt.size===0&&window.removeEventListener("languagechange",$o)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Xd=s.createContext(null);function xe(){let t=Yd();return s.useContext(Xd)||t}const Jd=Symbol.for("react-aria.i18n.locale"),Qd=Symbol.for("react-aria.i18n.strings");let et;class cn{getStringForLocale(e,n){let o=this.getStringsForLocale(n)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${n} locale`);return o}getStringsForLocale(e){let n=this.strings[e];return n||(n=ef(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Jd];if(et===void 0){let o=window[Qd];if(!o)return null;et={};for(let i in o)et[i]=new cn({[n]:o[i]},n)}let r=et==null?void 0:et[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function ef(t,e,n="en-US"){if(e[t])return e[t];let r=tf(t);if(e[r])return e[r];for(let o in e)if(o.startsWith(r+"-"))return e[o];return e[n]}function tf(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const xo=new Map,Eo=new Map;class nf{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let o=n["="+e];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=xo.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),xo.set(i,l));let a=l.select(e);return o=n[a]||n.other,typeof o=="function"?o():o}number(e){let n=Eo.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Eo.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Co=new WeakMap;function rf(t){let e=Co.get(t);return e||(e=new cn(t),Co.set(t,e)),e}function of(t,e){return e&&cn.getGlobalDictionaryForPackage(e)||rf(t)}function ct(t,e){let{locale:n}=xe(),r=of(t,e);return s.useMemo(()=>new nf(n,r),[n,r])}let Bn=new Map,er=!1;try{er=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Qt=!1;try{Qt=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Vi={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class lf{format(e){let n="";if(!er&&this.options.signDisplay!=null?n=sf(this.numberFormatter,this.options.signDisplay,e):n=this.numberFormatter.format(e),this.options.style==="unit"&&!Qt){var r;let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return n;let a=(r=Vi[o])===null||r===void 0?void 0:r[i];n+=a[l]||a.default}return n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,n);if(n<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(n)}`}formatRangeToParts(e,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,n);if(n<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!er&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Qt&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,n={}){this.numberFormatter=af(e,n),this.options=n}}function af(t,e={}){let{numberingSystem:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),e.style==="unit"&&!Qt){var r;let{unit:l,unitDisplay:a="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Vi[l])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${a}`);e={...e,style:"decimal"}}let o=t+(e?Object.entries(e).sort((l,a)=>l[0]<a[0]?-1:1).join():"");if(Bn.has(o))return Bn.get(o);let i=new Intl.NumberFormat(t,e);return Bn.set(o,i),i}function sf(t,e,n){if(e==="auto")return t.format(n);if(e==="never")return t.format(Math.abs(n));{let r=!1;if(e==="always"?r=n>0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=t.format(-n),i=t.format(n),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 t.format(n)}}function uf(t={}){let{locale:e}=xe();return s.useMemo(()=>new lf(e,t),[e,t])}let An=new Map;function Er(t){let{locale:e}=xe(),n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(An.has(n))return An.get(n);let r=new Intl.Collator(e,t);return An.set(n,r),r}function dn(t,e){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:a,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:v,rel:b,type:g="button"}=t,y;n==="button"?y={type:g,disabled:r}:y={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?v:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:$,isPressed:S}=qe({onPressStart:i,onPressEnd:l,onPressChange:u,onPress:o,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:w}=Xe(t,e);d&&(w.tabIndex=r?-1:w.tabIndex);let B=L(w,$,q(t,{labelable:!0}));return{isPressed:S,buttonProps:L(y,B,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}function Hi(t,e,n){const{isSelected:r}=e,{isPressed:o,buttonProps:i}=dn({...t,onPress:Se(e.toggle,t.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:t.isDisabled||!1,buttonProps:L(i,{"aria-pressed":r})}}function cf(t){const e=le(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=t.ownerDocument.defaultView;let{display:l,visibility:a}=i(t);o=l!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function df(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function ji(t,e){return t.nodeName!=="#comment"&&cf(t)&&df(t,e)&&(!t.parentElement||ji(t.parentElement,t))}const Po=s.createContext(null),tr="react-aria-focus-scope-restore";let W=null;function _i(t){let{children:e,contain:n,restoreFocus:r,autoFocus:o}=t,i=s.useRef(null),l=s.useRef(null),a=s.useRef([]),{parentNode:u}=s.useContext(Po)||{},c=s.useMemo(()=>new rr({scopeRef:a}),[a]);V(()=>{let p=u||Y.root;if(Y.getTreeNode(p.scopeRef)&&W&&!en(W,p.scopeRef)){let v=Y.getTreeNode(W);v&&(p=v)}p.addChild(c),Y.addNode(c)},[c,u]),V(()=>{let p=Y.getTreeNode(a);p&&(p.contain=!!n)},[n]),V(()=>{var p;let v=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[],g=y=>y.stopPropagation();for(;v&&v!==l.current;)b.push(v),v.addEventListener(tr,g),v=v.nextSibling;return a.current=b,()=>{for(let y of b)y.removeEventListener(tr,g)}},[e]),mf(a,r,n),pf(a,n),hf(a,r,n),bf(a,o),s.useEffect(()=>{const p=ne(j(a.current?a.current[0]:void 0));let v=null;if(ve(p,a.current)){for(let b of Y.traverse())b.scopeRef&&ve(p,b.scopeRef.current)&&(v=b);v===Y.getTreeNode(a)&&(W=v.scopeRef)}},[a]),V(()=>()=>{var p,v,b;let g=(b=(v=Y.getTreeNode(a))===null||v===void 0||(p=v.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(a===W||en(a,W))&&(!g||Y.getTreeNode(g))&&(W=g),Y.removeTreeNode(a)},[a]);let d=s.useMemo(()=>ff(a),[]),f=s.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return s.createElement(Po.Provider,{value:f},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function ff(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:o,wrap:i,accept:l}=e;var a;let u=r||ne(j((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,d=Ue(n),f=oe(d,{tabbable:o,accept:l},n);f.currentNode=ve(u,n)?u:c;let p=f.nextNode();return!p&&i&&(f.currentNode=c,p=f.nextNode()),p&&ue(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:o,wrap:i,accept:l}=e;var a;let u=r||ne(j((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,d=Ue(n),f=oe(d,{tabbable:o,accept:l},n);f.currentNode=ve(u,n)?u:c;let p=f.previousNode();return!p&&i&&(f.currentNode=c,p=f.previousNode()),p&&ue(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:o}=e,i=Ue(n),l=oe(i,{tabbable:r,accept:o},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&ue(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:o}=e,i=Ue(n),l=oe(i,{tabbable:r,accept:o},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&ue(a,!0),a}}}function Ue(t){return t[0].parentElement}function $t(t){let e=Y.getTreeNode(W);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function pf(t,e){let n=s.useRef(void 0),r=s.useRef(void 0);V(()=>{let o=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.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||!$t(t)||c.isComposing)return;let d=ne(i),f=t.current;if(!f||!ve(d,f))return;let p=Ue(f),v=oe(p,{tabbable:!0},f);if(!d)return;v.currentNode=d;let b=c.shiftKey?v.previousNode():v.nextNode();b||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),b&&ue(b,!0)},a=c=>{(!W||en(W,t))&&ve(H(c),t.current)?(W=t,n.current=H(c)):$t(t)&&!Ae(H(c),t)?n.current?n.current.focus():W&&W.current&&nr(W.current):$t(t)&&(n.current=H(c))},u=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=St(),f=(d==="virtual"||d===null)&&br()&&gi(),p=ne(i);if(!f&&p&&$t(t)&&!Ae(p,t)){W=t;let b=H(c);if(b&&b.isConnected){var v;n.current=b,(v=n.current)===null||v===void 0||v.focus()}else W.current&&nr(W.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",a,!1),o==null||o.forEach(c=>c.addEventListener("focusin",a,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",a,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",a,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",u,!1))}},[t,e]),V(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Wi(t){return Ae(t)}function ve(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function Ae(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Y.traverse(Y.getTreeNode(e)))if(n&&ve(t,n.current))return!0;return!1}function vf(t){return Ae(t,W)}function en(t,e){var n;let r=(n=Y.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function ue(t,e=!1){if(t!=null&&!e)try{ie(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Ui(t,e=!0){let n=t[0].previousElementSibling,r=Ue(t),o=oe(r,{tabbable:e},t);o.currentNode=n;let i=o.nextNode();return e&&!i&&(r=Ue(t),o=oe(r,{tabbable:!1},t),o.currentNode=n,i=o.nextNode()),i}function nr(t,e=!0){ue(Ui(t,e))}function bf(t,e){const n=s.useRef(e);s.useEffect(()=>{if(n.current){W=t;const r=j(t.current?t.current[0]:void 0);!ve(ne(r),W.current)&&t.current&&nr(t.current)}n.current=!1},[t])}function mf(t,e,n){V(()=>{if(e||n)return;let r=t.current;const o=j(r?r[0]:void 0);let i=l=>{let a=H(l);ve(a,t.current)?W=t:Wi(a)||(W=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",i,!1))}},[t,e,n])}function So(t){let e=Y.getTreeNode(W);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function hf(t,e,n){const r=s.useRef(typeof document<"u"?ne(j(t.current?t.current[0]:void 0)):null);V(()=>{let o=t.current;const i=j(o?o[0]:void 0);if(!e||n)return;let l=()=>{(!W||en(W,t))&&ve(ne(i),t.current)&&(W=t)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),V(()=>{const o=j(t.current?t.current[0]:void 0);if(!e)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!$t(t)||l.isComposing)return;let a=o.activeElement;if(!Ae(a,t)||!So(t))return;let u=Y.getTreeNode(t);if(!u)return;let c=u.nodeToRestore,d=oe(o.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!f||!Ae(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(Ae(f,t));l.preventDefault(),l.stopPropagation(),f?ue(f,!0):Wi(c)?ue(c,!0):a.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[t,e,n]),V(()=>{const o=j(t.current?t.current[0]:void 0);if(!e)return;let i=Y.getTreeNode(t);if(i){var l;return i.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=Y.getTreeNode(t);if(!a)return;let u=a.nodeToRestore,c=ne(o);if(e&&u&&(c&&Ae(c,t)||c===o.body&&So(t))){let d=Y.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){wo(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&Y.getTreeNode(f.scopeRef)){let p=Ui(f.scopeRef.current,!0);wo(p);return}f=f.parent}}})}}}},[t,e])}function wo(t){t.dispatchEvent(new CustomEvent(tr,{bubbles:!0,cancelable:!0}))&&ue(t)}function oe(t,e,n){let r=e!=null&&e.tabbable?yd:Di,o=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,i=j(o),l=qc(i,t||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var u;return!(e==null||(u=e.from)===null||u===void 0)&&u.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&ji(a)&&(!n||ve(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}function gf(t,e={}){return{focusNext(n={}){let r=t.current;if(!r)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:a=e.accept}=n,u=o||ne(j(r)),c=oe(r,{tabbable:i,accept:a});r.contains(u)&&(c.currentNode=u);let d=c.nextNode();return!d&&l&&(c.currentNode=r,d=c.nextNode()),d&&ue(d,!0),d},focusPrevious(n=e){let r=t.current;if(!r)return null;let{from:o,tabbable:i=e.tabbable,wrap:l=e.wrap,accept:a=e.accept}=n,u=o||ne(j(r)),c=oe(r,{tabbable:i,accept:a});if(r.contains(u))c.currentNode=u;else{let f=Fn(c);return f&&ue(f,!0),f??null}let d=c.previousNode();if(!d&&l){c.currentNode=r;let f=Fn(c);if(!f)return null;d=f}return d&&ue(d,!0),d??null},focusFirst(n=e){let r=t.current;if(!r)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=n,a=oe(r,{tabbable:o,accept:i}).nextNode();return a&&ue(a,!0),a},focusLast(n=e){let r=t.current;if(!r)return null;let{tabbable:o=e.tabbable,accept:i=e.accept}=n,l=oe(r,{tabbable:o,accept:i}),a=Fn(l);return a&&ue(a,!0),a??null}}}function Fn(t){let e,n;do n=t.lastChild(),n&&(e=n);while(n);return e}class Cr{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new rr({scopeRef:e});o.addChild(i),i.parent=o,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ve(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Cr;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(e=o.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new rr({scopeRef:null}),this.fastMap.set(null,this.root)}}class rr{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 Y=new Cr;function Ee(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,o=s.useRef({isFocused:!1,isFocusVisible:e||ut()}),[i,l]=s.useState(!1),[a,u]=s.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=s.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=s.useCallback(v=>{o.current.isFocused=v,l(v),c()},[c]);Ld(v=>{o.current.isFocusVisible=v,c()},[],{isTextInput:n});let{focusProps:f}=Ni({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=kt({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?p:f}}function yf(t,e){let n=e==null?void 0:e.isDisabled,[r,o]=s.useState(!1);return V(()=>{if(t!=null&&t.current&&!n){let i=()=>{if(t.current){let a=oe(t.current,{tabbable:!0});o(!!a.nextNode())}};i();let l=new MutationObserver(i);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Gi(t){let e=Ef(j(t));e!==t&&(e&&$f(e,t),t&&xf(t,e))}function $f(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function xf(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Ef(t){let e=ne(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}function Cf(t,e){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=t;let[i,l]=s.useState(!1);V(()=>{var b;l(!!(e.current&&(!((b=e.current.parentElement)===null||b===void 0)&&b.closest('[role="toolbar"]'))))});const{direction:a}=xe(),u=a==="rtl"&&o==="horizontal";let c=gf(e);const d=b=>{if(b.currentTarget.contains(b.target)){if(o==="horizontal"&&b.key==="ArrowRight"||o==="vertical"&&b.key==="ArrowDown")u?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&b.key==="ArrowLeft"||o==="vertical"&&b.key==="ArrowUp")u?c.focusNext():c.focusPrevious();else if(b.key==="Tab"){b.stopPropagation(),f.current=document.activeElement,b.shiftKey?c.focusFirst():c.focusLast();return}else return;b.stopPropagation(),b.preventDefault()}},f=s.useRef(null),p=b=>{!b.currentTarget.contains(b.relatedTarget)&&!f.current&&(f.current=b.target)},v=b=>{var g;if(f.current&&!b.currentTarget.contains(b.relatedTarget)&&(!((g=e.current)===null||g===void 0)&&g.contains(b.target))){var y;(y=f.current)===null||y===void 0||y.focus(),f.current=null}};return{toolbarProps:{...q(t,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:i?void 0:d,onFocusCapture:i?void 0:v,onBlurCapture:i?void 0:p}}}function Pf(t,e,n){let{isDisabled:r}=t,{toolbarProps:o}=Cf(t,n);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function Sf(t,e,n){let r={isSelected:e.selectedKeys.has(t.id),setSelected(u){e.setSelected(t.id,u)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:i,isDisabled:l,buttonProps:a}=Hi({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},r,n);return e.selectionMode==="single"&&(a.role="radio",a["aria-checked"]=r.isSelected,delete a["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:l,buttonProps:a}}const qi=7e3;let ge=null;function or(t,e="assertive",n=qi){ge?ge.announce(t,e,n):(ge=new wf,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ge.announce(t,e,n):setTimeout(()=>{ge!=null&&ge.isAttached()&&(ge==null||ge.announce(t,e,n))},100))}class wf{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=qi){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,n==="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()},r)}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 Zi={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Yi={...Zi,customError:!0,valid:!1},pt={isInvalid:!1,validationDetails:Zi,validationErrors:[]},Df=s.createContext({}),ir="__formValidationState"+Date.now();function Pr(t){if(t[ir]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=t[ir];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return kf(t)}function kf(t){let{isInvalid:e,validationState:n,name:r,value:o,builtinValidation:i,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let u=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Yi}:null,c=s.useMemo(()=>{if(!l||o==null)return null;let A=Tf(l,o);return Do(A)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=s.useContext(Df),f=s.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>lr(d[A])):lr(d[r]):[],[d,r]),[p,v]=s.useState(d),[b,g]=s.useState(!1);d!==p&&(v(d),g(!1));let y=s.useMemo(()=>Do(b?[]:f),[b,f]),$=s.useRef(pt),[S,w]=s.useState(pt),B=s.useRef(pt),k=()=>{if(!C)return;K(!1);let A=c||i||$.current;Kn(A,B.current)||(B.current=A,w(A))},[C,K]=s.useState(!1);return s.useEffect(k),{realtimeValidation:u||y||c||i||pt,displayValidation:a==="native"?u||y||S:u||y||c||i||S,updateValidation(A){a==="aria"&&!Kn(S,A)?w(A):$.current=A},resetValidation(){let A=pt;Kn(A,B.current)||(B.current=A,w(A)),a==="native"&&K(!1),g(!0)},commitValidation(){a==="native"&&K(!0),g(!0)}}}function lr(t){return t?Array.isArray(t)?t:[t]:[]}function Tf(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return lr(n)}return[]}function Do(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Yi}:null}function Kn(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function Sr(t,e,n){let{validationBehavior:r,focus:o}=t;V(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(u),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Bf(n.current))}});let i=X(()=>{e.resetValidation()}),l=X(u=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&n&&d&&Af(d)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Li("keyboard")}u.preventDefault()}),a=X(()=>{e.commitValidation()});s.useEffect(()=>{let u=n==null?void 0:n.current;if(!u)return;let c=u.form;return u.addEventListener("invalid",l),u.addEventListener("change",a),c==null||c.addEventListener("reset",i),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",a),c==null||c.removeEventListener("reset",i)}},[n,l,a,i,r])}function Rf(t){let e=t.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 Bf(t){return{isInvalid:!t.validity.valid,validationDetails:Rf(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Af(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Ff(t,e,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:l,children:a,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=t,p=C=>{C.stopPropagation(),e.setSelected(C.target.checked)},v=a!=null,b=u!=null||c!=null;!v&&!b&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=qe({isDisabled:r}),{pressProps:$,isPressed:S}=qe({onPress(){var C;e.toggle(),(C=n.current)===null||C===void 0||C.focus()},isDisabled:r||o}),{focusableProps:w}=Xe(t,n),B=L(g,w),k=q(t,{labelable:!0});return gr(n,e.isSelected,e.setSelected),{labelProps:L($,{onClick:C=>C.preventDefault()}),inputProps:L(k,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:l,type:"checkbox",...B}),isSelected:e.isSelected,isPressed:y||S,isDisabled:r,isReadOnly:o,isInvalid:f||d==="invalid"}}function Kf(t,e,n){let r=Pr({...t,value:e.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:l}=r.displayValidation,{labelProps:a,inputProps:u,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p}=Ff({...t,isInvalid:o},e,n);Sr(t,r,n);let{isIndeterminate:v,isRequired:b,validationBehavior:g="aria"}=t;s.useEffect(()=>{n.current&&(n.current.indeterminate=!!v)});let{pressProps:y}=qe({isDisabled:f||p,onPress(){let{[ir]:$}=t,{commitValidation:S}=$||r;S()}});return{labelProps:L(a,y),inputProps:{...u,checked:c,"aria-required":b&&g==="aria"||void 0,required:b&&g==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:l}}function wr(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=t;e=J(e);let l=J(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:i==="label"?e:void 0}):!r&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=Ei({id:e,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:u}}function fn(t){let{description:e,errorMessage:n,isInvalid:r,validationState:o}=t,{labelProps:i,fieldProps:l}=wr(t),a=st([!!e,!!n,r,o]),u=st([!!e,!!n,r,o]);return l=L(l,{"aria-describedby":[a,u,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:u}}}function Xi(t={}){let{isReadOnly:e}=t,[n,r]=Me(t.isSelected,t.defaultSelected||!1,t.onChange);function o(l){e||r(l)}function i(){e||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function If(t){let{selectionMode:e="single",disallowEmptySelection:n,isDisabled:r=!1}=t,[o,i]=Me(s.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),s.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:r,selectedKeys:o,setSelectedKeys:i,toggleKey(l){let a;e==="multiple"?(a=new Set(o),a.has(l)&&(!n||a.size>1)?a.delete(l):a.add(l)):a=new Set(o.has(l)&&!n?[]:[l]),i(a)},setSelected(l,a){a!==o.has(l)&&this.toggleKey(l)}}}const ko={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 Ji(t={}){let{style:e,isFocusable:n}=t,[r,o]=s.useState(!1),{focusWithinProps:i}=kt({isDisabled:!n,onFocusWithinChange:a=>o(a)}),l=s.useMemo(()=>r?e:e?{...ko,...e}:ko,[r]);return{visuallyHiddenProps:{...i,style:l}}}function Qi(t){let{children:e,elementType:n="div",isFocusable:r,style:o,...i}=t,{visuallyHiddenProps:l}=Ji(t);return s.createElement(n,L(i,l),e)}function Lf(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:a="aria"}=t,[u,c]=Me(t.value,t.defaultValue||"",t.onChange),{focusableProps:d}=Xe(t,e),f=Pr({...t,value:u}),{isInvalid:p,validationErrors:v,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:S}=fn({...t,isInvalid:p,errorMessage:t.errorMessage||v}),w=q(t,{labelable:!0});const B={type:l,pattern:t.pattern};return gr(e,u,c),Sr(t,f,e),s.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:g,inputProps:L(w,n==="input"?B:void 0,{disabled:r,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:u,onChange:k=>c(k.target.value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(s.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...d,...y}),descriptionProps:$,errorMessageProps:S,isInvalid:p,validationErrors:v,validationDetails:b}}const $e={top:"top",bottom:"top",left:"left",right:"left"},tn={top:"bottom",bottom:"top",left:"right",right:"left"},Mf={top:"left",left:"top"},ar={top:"height",left:"width"},el={width:"totalWidth",height:"totalHeight"},Vt={};let te=typeof document<"u"?window.visualViewport:null;function To(t){let e=0,n=0,r=0,o=0,i=0,l=0,a={};var u;let c=((u=te==null?void 0:te.scale)!==null&&u!==void 0?u:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,o=b.clientHeight;var d;e=(d=te==null?void 0:te.width)!==null&&d!==void 0?d:r;var f;n=(f=te==null?void 0:te.height)!==null&&f!==void 0?f:o,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,te&&(i=te.offsetTop,l=te.offsetLeft)}else({width:e,height:n,top:i,left:l}=lt(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,o=n;if(vr()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var p;i=(p=te==null?void 0:te.pageTop)!==null&&p!==void 0?p:0;var v;l=(v=te==null?void 0:te.pageLeft)!==null&&v!==void 0?v:0}return{width:e,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:l}}function Nf(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Ro(t,e,n,r,o,i,l){var a;let u=(a=o.scroll[t])!==null&&a!==void 0?a:0,c=r[ar[t]],d=r.scroll[$e[t]]+i,f=c+r.scroll[$e[t]]-i,p=e-u+l[t]-r[$e[t]],v=e-u+n+l[t]-r[$e[t]];return p<d?d-p:v>f?Math.max(f-v,d-p):0}function zf(t){let e=window.getComputedStyle(t);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 Bo(t){if(Vt[t])return Vt[t];let[e,n]=t.split(" "),r=$e[e]||"right",o=Mf[r];$e[n]||(n="center");let i=ar[r],l=ar[o];return Vt[t]={placement:e,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:l},Vt[t]}function In(t,e,n,r,o,i,l,a,u,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:v,size:b,crossSize:g}=r,y={};var $;y[v]=($=t[v])!==null&&$!==void 0?$:0;var S,w,B,k;f==="center"?y[v]+=(((S=t[g])!==null&&S!==void 0?S:0)-((w=n[g])!==null&&w!==void 0?w:0))/2:f!==v&&(y[v]+=((B=t[g])!==null&&B!==void 0?B:0)-((k=n[g])!==null&&k!==void 0?k:0)),y[v]+=i;const C=t[v]-n[g]+u+c,K=t[v]+t[g]-u-c;if(y[v]=Gt(y[v],C,K),d===p){const F=a?l[b]:e[el[b]];y[tn[p]]=Math.floor(F-t[p]+o)}else y[p]=Math.floor(t[p]+t[b]+o);return y}function Of(t,e,n,r,o,i,l,a){const u=r?n.height:e[el.height];var c;let d=t.top!=null?n.top+t.top:n.top+(u-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,p,v,b,g,y;let $=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=o.top)!==null&&p!==void 0?p:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+i)):Math.max(0,d+l-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((g=o.top)!==null&&g!==void 0?g:0)+((y=o.bottom)!==null&&y!==void 0?y:0)+i));return Math.min(e.height-i*2,$)}function Ao(t,e,n,r,o,i){let{placement:l,axis:a,size:u}=i;var c,d;if(l===a)return Math.max(0,n[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[tn[a]]-o);var f;return Math.max(0,t[u]+t[a]+t.scroll[a]-e[a]-n[a]-n[u]-((f=r[a])!==null&&f!==void 0?f:0)-r[tn[a]]-o)}function Vf(t,e,n,r,o,i,l,a,u,c,d,f,p,v,b,g){let y=Bo(t),{size:$,crossAxis:S,crossSize:w,placement:B,crossPlacement:k}=y,C=In(e,a,n,y,d,f,c,p,b,g),K=d,F=Ao(a,c,e,o,i+d,y);if(l&&r[$]>F){let Oe=Bo(`${tn[B]} ${k}`),ft=In(e,a,n,Oe,d,f,c,p,b,g);Ao(a,c,e,o,i+d,Oe)>F&&(y=Oe,C=ft,K=d)}let M="bottom";y.axis==="top"?y.placement==="top"?M="top":y.placement==="bottom"&&(M="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?M="bottom":y.crossPlacement==="bottom"&&(M="top"));let A=Ro(S,C[S],n[w],a,u,i,c);C[S]+=A;let h=Of(C,a,c,p,o,i,n.height,M);v&&v<h&&(h=v),n.height=Math.min(n.height,h),C=In(e,a,n,y,K,f,c,p,b,g),A=Ro(S,C[S],n[w],a,u,i,c),C[S]+=A;let R={},z=e[S]+.5*e[w]-C[S]-o[$e[S]];const T=b/2+g;var O,m,D,x;const I=$e[S]==="left"?((O=o.left)!==null&&O!==void 0?O:0)+((m=o.right)!==null&&m!==void 0?m:0):((D=o.top)!==null&&D!==void 0?D:0)+((x=o.bottom)!==null&&x!==void 0?x:0),_=n[w]-I-b/2-g,Q=e[S]+b/2-(C[S]+o[$e[S]]),re=e[S]+e[w]-b/2-(C[S]+o[$e[S]]),he=Gt(z,Q,re);return R[S]=Gt(he,T,_),{position:C,maxHeight:h,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:y.placement}}function Hf(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:a,offset:u,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,v=r instanceof HTMLElement?jf(r):document.documentElement,b=v===document.documentElement;const g=window.getComputedStyle(v).position;let y=!!g&&g!=="static",$=b?lt(n):Fo(n,v);if(!b){let{marginTop:R,marginLeft:z}=window.getComputedStyle(n);$.top+=parseInt(R,10)||0,$.left+=parseInt(z,10)||0}let S=lt(r),w=zf(r);var B,k;S.width+=((B=w.left)!==null&&B!==void 0?B:0)+((k=w.right)!==null&&k!==void 0?k:0);var C,K;S.height+=((C=w.top)!==null&&C!==void 0?C:0)+((K=w.bottom)!==null&&K!==void 0?K:0);let F=Nf(o),M=To(a),A=To(v),h=a.tagName==="BODY"?lt(v):Fo(v,a);return v.tagName==="HTML"&&a.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),Vf(e,$,S,F,w,i,l,M,A,h,u,c,y,d,f,p)}function lt(t){let{top:e,left:n,width:r,height:o}=t.getBoundingClientRect(),{scrollTop:i,scrollLeft:l,clientTop:a,clientLeft:u}=document.documentElement;return{top:e+i-a,left:n+l-u,width:r,height:o}}function Fo(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:o,left:i,width:l,height:a}=t.getBoundingClientRect();r={top:o,left:i,width:l,height:a}}else{r=lt(t);let o=lt(e),i=window.getComputedStyle(e);o.top+=(parseInt(i.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function jf(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ko(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ko(e);)e=e.parentElement;return e||document.documentElement}function Ko(t){let e=window.getComputedStyle(t);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 tl=new WeakMap;function _f(t){let{triggerRef:e,isOpen:n,onClose:r}=t;s.useEffect(()=>{if(!n||r===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 a=r||tl.get(e.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,e])}let Z=typeof document<"u"?window.visualViewport:null;function nl(t){let{direction:e}=xe(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:a=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:v=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=t,[$,S]=s.useState(null),w=[p,l,o.current,r.current,i.current,a,u,c,d,f,v,e,g,y,n],B=s.useRef(Z==null?void 0:Z.scale);s.useEffect(()=>{v&&(B.current=Z==null?void 0:Z.scale)},[v]);let k=s.useCallback(()=>{if(p===!1||!v||!o.current||!r.current||!c||(Z==null?void 0:Z.scale)!==B.current)return;let A=null;if(i.current&&i.current.contains(document.activeElement)){var h;let x=(h=document.activeElement)===null||h===void 0?void 0:h.getBoundingClientRect(),I=i.current.getBoundingClientRect();var R;if(A={type:"top",offset:((R=x==null?void 0:x.top)!==null&&R!==void 0?R:0)-I.top},A.offset>I.height/2){A.type="bottom";var z;A.offset=((z=x==null?void 0:x.bottom)!==null&&z!==void 0?z:0)-I.bottom}}let T=o.current;if(!g&&o.current){var O;T.style.top="0px",T.style.bottom="";var m;T.style.maxHeight=((m=(O=window.visualViewport)===null||O===void 0?void 0:O.height)!==null&&m!==void 0?m:window.innerHeight)+"px"}let D=Hf({placement:Uf(l,e),overlayNode:o.current,targetNode:r.current,scrollNode:i.current||o.current,padding:a,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});if(D.position){if(T.style.top="",T.style.bottom="",T.style.left="",T.style.right="",Object.keys(D.position).forEach(x=>T.style[x]=D.position[x]+"px"),T.style.maxHeight=D.maxHeight!=null?D.maxHeight+"px":"",A&&document.activeElement&&i.current){let x=document.activeElement.getBoundingClientRect(),I=i.current.getBoundingClientRect(),_=x[A.type]-I[A.type];i.current.scrollTop+=_-A.offset}S(D)}},w);V(k,w),Wf(k),qn({ref:o,onResize:k}),qn({ref:r,onResize:k});let C=s.useRef(!1);V(()=>{let A,h=()=>{C.current=!0,clearTimeout(A),A=setTimeout(()=>{C.current=!1},500),k()},R=()=>{C.current&&h()};return Z==null||Z.addEventListener("resize",h),Z==null||Z.addEventListener("scroll",R),()=>{Z==null||Z.removeEventListener("resize",h),Z==null||Z.removeEventListener("scroll",R)}},[k]);let K=s.useCallback(()=>{C.current||b==null||b()},[b,C]);_f({triggerRef:r,isOpen:v,onClose:b&&K});var F,M;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(F=$==null?void 0:$.maxHeight)!==null&&F!==void 0?F:"100vh"}},placement:(M=$==null?void 0:$.placement)!==null&&M!==void 0?M:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:k}}function Wf(t){V(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Uf(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const ye=[];function Gf(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;s.useEffect(()=>{if(o&&!ye.includes(e))return ye.push(e),()=>{let b=ye.indexOf(e);b>=0&&ye.splice(b,1)}},[o,e]);let u=()=>{ye[ye.length-1]===e&&n&&n()},c=b=>{(!a||a(b.target))&&ye[ye.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!a||a(b.target))&&(ye[ye.length-1]===e&&(b.stopPropagation(),b.preventDefault()),u())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),u())};jd({ref:e,onInteractOutside:i&&o?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=kt({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||vf(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),v=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:v}}}function rl(t,e,n){let{type:r}=t,{isOpen:o}=e;s.useEffect(()=>{n&&n.current&&tl.set(n.current,e.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let l=J();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Ln=typeof document<"u"&&window.visualViewport,qf=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ht=0,Mn;function Zf(t={}){let{isDisabled:e}=t;V(()=>{if(!e)return Ht++,Ht===1&&(an()?Mn=Xf():Mn=Yf()),()=>{Ht--,Ht===0&&Mn()}},[e])}function Yf(){return Se(ot(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),ot(document.documentElement,"overflow","hidden"))}function Xf(){let t,e,n=c=>{t=Re(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=ot(t,"overscrollBehavior","contain"))},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},o=()=>{e&&e()},i=c=>{let d=c.target;Jf(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ln&&(Ln.height<window.innerHeight?requestAnimationFrame(()=>{Io(d)}):Ln.addEventListener("resize",()=>Io(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Se(vt(window,"scroll",c),ot(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),ot(document.documentElement,"overflow","hidden"),ot(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},u=Se(vt(document,"touchstart",n,{passive:!1,capture:!0}),vt(document,"touchmove",r,{passive:!1,capture:!0}),vt(document,"touchend",o,{passive:!1,capture:!0}),vt(document,"focus",i,!0));return()=>{e==null||e(),l==null||l(),u()}}function ot(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function vt(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Io(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Re(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let o=r.getBoundingClientRect().top,i=n.getBoundingClientRect().top;i>o+n.clientHeight&&(r.scrollTop+=i-o)}n=r.parentElement}}function Jf(t){return t instanceof HTMLInputElement&&!qf.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const Qf=s.createContext({});function ol(){var t;return(t=s.useContext(Qf))!==null&&t!==void 0?t:{}}const sr=s.createContext(null);function ep(t){let{children:e}=t,n=s.useContext(sr),[r,o]=s.useState(0),i=s.useMemo(()=>({parent:n,modalCount:r,addModal(){o(l=>l+1),n&&n.addModal()},removeModal(){o(l=>l-1),n&&n.removeModal()}}),[n,r]);return s.createElement(sr.Provider,{value:i},e)}function tp(){let t=s.useContext(sr);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function np(t){let{modalProviderProps:e}=tp();return s.createElement("div",{"data-overlay-container":!0,...t,...e})}function rp(t){return s.createElement(ep,null,s.createElement(np,t))}function op(t){let e=Le(),{portalContainer:n=e?null:document.body,...r}=t,{getContainer:o}=ol();if(!t.portalContainer&&o&&(n=o()),s.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=s.createElement(rp,r);return Ye.createPortal(i,n)}var il={};il={dismiss:"تجاهل"};var ll={};ll={dismiss:"Отхвърляне"};var al={};al={dismiss:"Odstranit"};var sl={};sl={dismiss:"Luk"};var ul={};ul={dismiss:"Schließen"};var cl={};cl={dismiss:"Απόρριψη"};var dl={};dl={dismiss:"Dismiss"};var fl={};fl={dismiss:"Descartar"};var pl={};pl={dismiss:"Lõpeta"};var vl={};vl={dismiss:"Hylkää"};var bl={};bl={dismiss:"Rejeter"};var ml={};ml={dismiss:"התעלם"};var hl={};hl={dismiss:"Odbaci"};var gl={};gl={dismiss:"Elutasítás"};var yl={};yl={dismiss:"Ignora"};var $l={};$l={dismiss:"閉じる"};var xl={};xl={dismiss:"무시"};var El={};El={dismiss:"Atmesti"};var Cl={};Cl={dismiss:"Nerādīt"};var Pl={};Pl={dismiss:"Lukk"};var Sl={};Sl={dismiss:"Negeren"};var wl={};wl={dismiss:"Zignoruj"};var Dl={};Dl={dismiss:"Descartar"};var kl={};kl={dismiss:"Dispensar"};var Tl={};Tl={dismiss:"Revocare"};var Rl={};Rl={dismiss:"Пропустить"};var Bl={};Bl={dismiss:"Zrušiť"};var Al={};Al={dismiss:"Opusti"};var Fl={};Fl={dismiss:"Odbaci"};var Kl={};Kl={dismiss:"Avvisa"};var Il={};Il={dismiss:"Kapat"};var Ll={};Ll={dismiss:"Скасувати"};var Ml={};Ml={dismiss:"取消"};var Nl={};Nl={dismiss:"關閉"};var zl={};zl={"ar-AE":il,"bg-BG":ll,"cs-CZ":al,"da-DK":sl,"de-DE":ul,"el-GR":cl,"en-US":dl,"es-ES":fl,"et-EE":pl,"fi-FI":vl,"fr-FR":bl,"he-IL":ml,"hr-HR":hl,"hu-HU":gl,"it-IT":yl,"ja-JP":$l,"ko-KR":xl,"lt-LT":El,"lv-LV":Cl,"nb-NO":Pl,"nl-NL":Sl,"pl-PL":wl,"pt-BR":Dl,"pt-PT":kl,"ro-RO":Tl,"ru-RU":Rl,"sk-SK":Bl,"sl-SI":Al,"sr-SP":Fl,"sv-SE":Kl,"tr-TR":Il,"uk-UA":Ll,"zh-CN":Ml,"zh-TW":Nl};function ip(t){return t&&t.__esModule?t.default:t}function Lo(t){let{onDismiss:e,...n}=t,r=ct(ip(zl),"@react-aria/overlays"),o=Ei(n,r.format("dismiss")),i=()=>{e&&e()};return s.createElement(Qi,null,s.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let bt=new WeakMap,se=[];function lp(t,e=document.body){let n=new Set(t),r=new Set,o=u=>{for(let p of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let v of n)if(p.contains(v))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 p=d.nextNode();for(;p!=null;)i(p),p=d.nextNode()}},i=u=>{var c;let d=(c=bt.get(u))!==null&&c!==void 0?c:0;u.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&u.setAttribute("aria-hidden","true"),r.add(u),bt.set(u,d+1))};se.length&&se[se.length-1].disconnect(),o(e);let l=new MutationObserver(u=>{for(let c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return se.push(a),()=>{l.disconnect();for(let u of r){let c=bt.get(u);c!=null&&(c===1?(u.removeAttribute("aria-hidden"),bt.delete(u)):bt.set(u,c-1))}a===se[se.length-1]?(se.pop(),se.length&&se[se.length-1].observe()):se.splice(se.indexOf(a),1)}}function ap(t){let e=se[se.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function sp(t,e){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...u}=t,c=u.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Gf({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},o??r),{overlayProps:p,arrowProps:v,placement:b}=nl({...u,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:i&&!c?e.close:null});return Zf({isDisabled:i||!e.isOpen}),V(()=>{if(e.isOpen&&r.current){var g,y;return i?ap((g=o==null?void 0:o.current)!==null&&g!==void 0?g:r.current):lp([(y=o==null?void 0:o.current)!==null&&y!==void 0?y:r.current])}},[i,e.isOpen,r,o]),{popoverProps:L(d,p),arrowProps:v,underlayProps:f,placement:b}}const Ol=s.createContext(null);function Mo(t){let e=Le(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[o,i]=s.useState(!1),l=s.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:a}=ol();if(!t.portalContainer&&a&&(n=a()),!n)return null;let u=t.children;return t.disableFocusManagement||(u=s.createElement(_i,{restoreFocus:!0,contain:(t.shouldContainFocus||o)&&!r},u)),u=s.createElement(Ol.Provider,{value:l},s.createElement(Vd,null,u)),Ye.createPortal(u,n)}function up(){let t=s.useContext(Ol),e=t==null?void 0:t.setContain;V(()=>{e==null||e(!0)},[e])}const Dr=new WeakMap;function cp(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function dp(t,e){let n=Dr.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${cp(e)}`}function ur(t){return od()?t.altKey:t.ctrlKey}function Wt(t,e){var n,r;let o=`[data-key="${CSS.escape(String(e))}"]`,i=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(o)}const Vl=new WeakMap;function fp(t){let e=J();return Vl.set(t,e),e}function pp(t){return Vl.get(t)}const vp=1e3;function Hl(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,o=s.useRef({search:"",timeout:void 0}).current,i=l=>{let a=bp(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=a,e.getKeyForSearch!=null){let u=e.getKeyForSearch(o.search,n.focusedKey);u==null&&(u=e.getKeyForSearch(o.search)),u!=null&&(n.setFocusedKey(u),r&&r(u))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},vp)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:void 0}}}function bp(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function mp(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:u="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:v,scrollRef:b=r,linkBehavior:g="action"}=t,{direction:y}=xe(),$=Dt(),S=m=>{var D;if(m.altKey&&m.key==="Tab"&&m.preventDefault(),!(!((D=r.current)===null||D===void 0)&&D.contains(m.target)))return;const x=(N,Ve)=>{if(N!=null){if(e.isLink(N)&&g==="selection"&&c&&!ur(m)){Ye.flushSync(()=>{e.setFocusedKey(N,Ve)});let He=Wt(r,N),lo=e.getItemProps(N);He&&$.open(He,m,lo.href,lo.routerOptions);return}if(e.setFocusedKey(N,Ve),e.isLink(N)&&g==="override")return;m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):c&&!ur(m)&&e.replaceSelection(N)}};switch(m.key){case"ArrowDown":if(n.getKeyBelow){var I,_,Q;let N=e.focusedKey!=null?(I=n.getKeyBelow)===null||I===void 0?void 0:I.call(n,e.focusedKey):(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n);N==null&&i&&(N=(Q=n.getFirstKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey)),N!=null&&(m.preventDefault(),x(N))}break;case"ArrowUp":if(n.getKeyAbove){var re,he,Oe;let N=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(he=n.getLastKey)===null||he===void 0?void 0:he.call(n);N==null&&i&&(N=(Oe=n.getLastKey)===null||Oe===void 0?void 0:Oe.call(n,e.focusedKey)),N!=null&&(m.preventDefault(),x(N))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ft,Lt,En;let N=e.focusedKey!=null?(ft=n.getKeyLeftOf)===null||ft===void 0?void 0:ft.call(n,e.focusedKey):null;N==null&&i&&(N=y==="rtl"?(Lt=n.getFirstKey)===null||Lt===void 0?void 0:Lt.call(n,e.focusedKey):(En=n.getLastKey)===null||En===void 0?void 0:En.call(n,e.focusedKey)),N!=null&&(m.preventDefault(),x(N,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Cn,Pn,Sn;let N=e.focusedKey!=null?(Cn=n.getKeyRightOf)===null||Cn===void 0?void 0:Cn.call(n,e.focusedKey):null;N==null&&i&&(N=y==="rtl"?(Pn=n.getLastKey)===null||Pn===void 0?void 0:Pn.call(n,e.focusedKey):(Sn=n.getFirstKey)===null||Sn===void 0?void 0:Sn.call(n,e.focusedKey)),N!=null&&(m.preventDefault(),x(N,y==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&m.shiftKey)return;m.preventDefault();let N=n.getFirstKey(e.focusedKey,nt(m));e.setFocusedKey(N),N!=null&&(nt(m)&&m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):c&&e.replaceSelection(N))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&m.shiftKey)return;m.preventDefault();let N=n.getLastKey(e.focusedKey,nt(m));e.setFocusedKey(N),N!=null&&(nt(m)&&m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):c&&e.replaceSelection(N))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let N=n.getKeyPageBelow(e.focusedKey);N!=null&&(m.preventDefault(),x(N))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let N=n.getKeyPageAbove(e.focusedKey);N!=null&&(m.preventDefault(),x(N))}break;case"a":nt(m)&&e.selectionMode==="multiple"&&a!==!0&&(m.preventDefault(),e.selectAll());break;case"Escape":u==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(m.stopPropagation(),m.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(m.shiftKey)r.current.focus();else{let N=oe(r.current,{tabbable:!0}),Ve,He;do He=N.lastChild(),He&&(Ve=He);while(He);Ve&&!Ve.contains(document.activeElement)&&me(Ve)}break}}},w=s.useRef({top:0,left:0});gt(b,"scroll",v?void 0:()=>{var m,D,x,I;w.current={top:(x=(m=b.current)===null||m===void 0?void 0:m.scrollTop)!==null&&x!==void 0?x:0,left:(I=(D=b.current)===null||D===void 0?void 0:D.scrollLeft)!==null&&I!==void 0?I:0}});let B=m=>{if(e.isFocused){m.currentTarget.contains(m.target)||e.setFocused(!1);return}if(m.currentTarget.contains(m.target)){if(e.setFocused(!0),e.focusedKey==null){var D,x;let Q=he=>{he!=null&&(e.setFocusedKey(he),c&&!e.isSelected(he)&&e.replaceSelection(he))},re=m.relatedTarget;var I,_;re&&m.currentTarget.compareDocumentPosition(re)&Node.DOCUMENT_POSITION_FOLLOWING?Q((I=e.lastSelectedKey)!==null&&I!==void 0?I:(D=n.getLastKey)===null||D===void 0?void 0:D.call(n)):Q((_=e.firstSelectedKey)!==null&&_!==void 0?_:(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n))}else!v&&b.current&&(b.current.scrollTop=w.current.top,b.current.scrollLeft=w.current.left);if(e.focusedKey!=null&&b.current){let Q=Wt(r,e.focusedKey);Q instanceof HTMLElement&&(!Q.contains(document.activeElement)&&!f&&me(Q),St()==="keyboard"&&Be(Q,{containingElement:r.current}))}}},k=m=>{m.currentTarget.contains(m.relatedTarget)||e.setFocused(!1)},C=s.useRef(!1);gt(r,md,f?m=>{let{detail:D}=m;m.stopPropagation(),e.setFocused(!0),(D==null?void 0:D.focusStrategy)==="first"&&(C.current=!0)}:void 0);let K=X(()=>{var m,D;let x=(D=(m=n.getFirstKey)===null||m===void 0?void 0:m.call(n))!==null&&D!==void 0?D:null;x==null?(Gi(r.current),e.collection.size>0&&(C.current=!1)):(e.setFocusedKey(x),C.current=!1)});so(()=>{C.current&&K()},[e.collection,K]);let F=X(()=>{e.collection.size>0&&(C.current=!1)});so(()=>{F()},[e.focusedKey,F]),gt(r,bd,f?m=>{var D;m.stopPropagation(),e.setFocused(!1),!((D=m.detail)===null||D===void 0)&&D.clearFocusKey&&e.setFocusedKey(null)}:void 0);const M=s.useRef(o),A=s.useRef(!1);s.useEffect(()=>{if(M.current){var m,D;let _=null;var x;o==="first"&&(_=(x=(m=n.getFirstKey)===null||m===void 0?void 0:m.call(n))!==null&&x!==void 0?x:null);var I;o==="last"&&(_=(I=(D=n.getLastKey)===null||D===void 0?void 0:D.call(n))!==null&&I!==void 0?I:null);let Q=e.selectedKeys;if(Q.size){for(let re of Q)if(e.canSelectItem(re)){_=re;break}}e.setFocused(!0),e.setFocusedKey(_),_==null&&!f&&r.current&&ie(r.current),e.collection.size>0&&(M.current=!1,A.current=!0)}});let h=s.useRef(e.focusedKey);s.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==h.current||A.current)&&b.current&&r.current){let m=St(),D=Wt(r,e.focusedKey);if(!(D instanceof HTMLElement))return;(m==="keyboard"||A.current)&&(Ci(b.current,D),m!=="virtual"&&Be(D,{containingElement:r.current}))}!f&&e.isFocused&&e.focusedKey==null&&h.current!=null&&r.current&&ie(r.current),h.current=e.focusedKey,A.current=!1}),gt(r,"react-aria-focus-scope-restore",m=>{m.preventDefault(),e.setFocused(!0)});let R={onKeyDown:S,onFocus:B,onBlur:k,onMouseDown(m){b.current===m.target&&m.preventDefault()}},{typeSelectProps:z}=Hl({keyboardDelegate:n,selectionManager:e});d||(R=L(z,R));let T;f||(T=e.focusedKey==null?0:-1);let O=fp(e.collection);return{collectionProps:L(R,{tabIndex:T,"data-collection":O})}}function jl(t){let{id:e,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=Dt();e=J(e);let v=x=>{if(x.pointerType==="keyboard"&&ur(x))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&o.current){let I=n.getItemProps(r);p.open(o.current,x,I.href,I.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):x&&x.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||x&&(nt(x)||x.pointerType==="touch"||x.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};s.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Gi(o.current):a?a():document.activeElement!==o.current&&o.current&&ie(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),u=u||n.isDisabled(r);let b={};!l&&!u?b={tabIndex:r===n.focusedKey?0:-1,onFocus(x){x.target===o.current&&n.setFocusedKey(r)}}:u&&(b.onMouseDown=x=>{x.preventDefault()});let g=n.isLink(r)&&f==="override",y=n.isLink(r)&&f!=="selection"&&f!=="none",$=!u&&n.canSelectItem(r)&&!g,S=(c||y)&&!u,w=S&&(n.selectionBehavior==="replace"?!$:!$||n.isEmpty),B=S&&$&&n.selectionBehavior==="replace",k=w||B,C=s.useRef(null),K=k&&$,F=s.useRef(!1),M=s.useRef(!1),A=x=>{if(c&&c(),y&&o.current){let I=n.getItemProps(r);p.open(o.current,x,I.href,I.routerOptions)}},h={ref:o};i?(h.onPressStart=x=>{C.current=x.pointerType,F.current=K,x.pointerType==="keyboard"&&(!k||zo())&&v(x)},d?(h.onPressUp=w?void 0:x=>{x.pointerType==="mouse"&&$&&v(x)},h.onPress=w?A:x=>{x.pointerType!=="keyboard"&&x.pointerType!=="mouse"&&$&&v(x)}):h.onPress=x=>{if(w||B&&x.pointerType!=="mouse"){if(x.pointerType==="keyboard"&&!No())return;A(x)}else x.pointerType!=="keyboard"&&$&&v(x)}):(h.onPressStart=x=>{C.current=x.pointerType,F.current=K,M.current=w,$&&(x.pointerType==="mouse"&&!w||x.pointerType==="keyboard"&&(!S||zo()))&&v(x)},h.onPress=x=>{(x.pointerType==="touch"||x.pointerType==="pen"||x.pointerType==="virtual"||x.pointerType==="keyboard"&&k&&No()||x.pointerType==="mouse"&&M.current)&&(k?A(x):$&&v(x))}),b["data-collection"]=pp(n.collection),b["data-key"]=r,h.preventFocusOnPress=l,l&&(h=L(h,{onPressStart(x){x.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(x){x.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:R,isPressed:z}=qe(h),T=B?x=>{C.current==="mouse"&&(x.stopPropagation(),x.preventDefault(),A(x))}:void 0,{longPressProps:O}=zi({isDisabled:!K,onLongPress(x){x.pointerType==="touch"&&(v(x),n.setSelectionBehavior("toggle"))}}),m=x=>{C.current==="touch"&&F.current&&x.preventDefault()},D=n.isLink(r)?x=>{Ge.isOpening||x.preventDefault()}:void 0;return{itemProps:L(b,$||w||l?R:{},K?O:{},{onDoubleClick:T,onDragStartCapture:m,onClick:D,id:e},l?{onMouseDown:x=>x.preventDefault()}:void 0),isPressed:z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:u,allowsSelection:$,hasAction:k}}function No(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function zo(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Oo{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Wt(this.ref,e):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left+n.scrollLeft,y:i.top-o.top+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,o,i;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r: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 pn{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let o=e,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(l,i)&&o!=null);return o}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,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,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Et(n))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Et(n))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.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 n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Oo(n.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 Oo(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function _l(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:l}=t,a=Er({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,c=s.useMemo(()=>i||new pn({collection:n,disabledKeys:r,disabledBehavior:u,ref:o,collator:a,layoutDelegate:l}),[i,l,n,r,o,a,u]),{collectionProps:d}=mp({...t,ref:o,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function hp(t,e,n){let r=q(t,{labelable:!0}),o=t.selectionBehavior||"toggle",i=t.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=_l({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=kt({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),u=J(t.id);Dr.set(e,{id:u,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=wr({...t,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:L(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...L(d,l)})}}class gp{build(e,n){return this.context=n,Vo(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(s.isValidElement(n)&&n.type===s.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];s.Children.forEach(n,l=>{l&&o.push(l)});let i=0;for(let l of o){let a=this.getFullNode({element:l,index:i},{});for(let u of a)i++,yield u}}}getKey(e,n,r,o){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let a=(l=i.key)!==null&&l!==void 0?l:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,o){if(s.isValidElement(e.element)&&e.element.type===s.Fragment){let y=[];s.Children.forEach(e.element.props.children,S=>{y.push(S)});var i;let $=(i=e.index)!==null&&i!==void 0?i:0;for(const S of y)yield*this.getFullNode({element:S,index:$++},n,r,o);return}let l=e.element;if(!l&&e.value&&n&&n.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=n.renderer(e.value)}if(s.isValidElement(l)){let y=l.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let B=l.type;throw new Error(`Unknown element <${B}> in collection.`)}let $=y.getCollectionNode(l.props,this.context);var a;let S=(a=e.index)!==null&&a!==void 0?a:0,w=$.next();for(;!w.done&&w.value;){let B=w.value;e.index=S;var u;let k=(u=B.key)!==null&&u!==void 0?u:null;k==null&&(k=B.element?null:this.getKey(l,e,n,r));let K=[...this.getFullNode({...B,key:k,index:S,wrapper:yp(e.wrapper,B.wrapper)},this.getChildState(n,B),r?`${r}${l.key}`:l.key,o)];for(let F of K){var c,d;F.value=(d=(c=B.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,F.value&&this.cache.set(F.value,F);var f;if(e.type&&F.type!==e.type)throw new Error(`Unsupported type <${Nn(F.type)}> in <${Nn((f=o==null?void 0:o.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Nn(e.type)}> is supported.`);S++,yield F}w=$.next(K)}return}if(e.key==null||e.type==null)return;let p=this;var v,b;let g={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Vo(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let $ of e.childNodes()){$.key!=null&&($.key=`${g.key}${$.key}`);let S=p.getFullNode({...$,index:y},p.getChildState(n,$),g.key,g);for(let w of S)y++,yield w}})};yield g}constructor(){this.cache=new WeakMap}}function Vo(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function yp(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Nn(t){return t[0].toUpperCase()+t.slice(1)}function $p(t,e,n){let r=s.useMemo(()=>new gp,[]),{children:o,items:i,collection:l}=t;return s.useMemo(()=>{if(l)return l;let u=r.build({children:o,items:i},n);return e(u)},[r,o,i,l,n,e])}function Wl(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function xp(t){return Ep(t)}function Ep(t,e){for(let n of t)return n}function Cp(t){let e;for(let n of t)e=n;return e}function zn(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Ho(t,e),e],o=[...Ho(t,n),n],i=r.slice(0,o.length).findIndex((l,a)=>l!==o[a]);return i!==-1?(e=r[i],n=o[i],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===e)>=0,-1)}function Ho(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const jo=new WeakMap;function Pp(t){let e=jo.get(t);if(e!=null)return e;let n=0,r=o=>{for(let i of o)i.type==="section"?r(Wl(i,t)):n++};return r(t),jo.set(t,n),n}function Sp(t,e,n){var r,o;let{key:i}=t,l=Dr.get(e);var a;let u=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(i);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(i);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var v;let b=(v=t.shouldFocusOnHover)!==null&&v!==void 0?v:l==null?void 0:l.shouldFocusOnHover;var g;let y=(g=t.shouldUseVirtualFocus)!==null&&g!==void 0?g:l==null?void 0:l.shouldUseVirtualFocus;var $;let S=($=t.isVirtualized)!==null&&$!==void 0?$:l==null?void 0:l.isVirtualized,w=st(),B=st(),k={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Ie()&&vr()||(k["aria-label"]=t["aria-label"],k["aria-labelledby"]=w,k["aria-describedby"]=B);let C=e.collection.getItem(i);if(S){let D=Number(C==null?void 0:C.index);k["aria-posinset"]=Number.isNaN(D)?void 0:D+1,k["aria-setsize"]=Pp(e.collection)}let K=l!=null&&l.onAction?()=>{var D;return l==null||(D=l.onAction)===null||D===void 0?void 0:D.call(l,i)}:void 0,F=dp(e,i),{itemProps:M,isPressed:A,isFocused:h,hasAction:R,allowsSelection:z}=jl({selectionManager:e.selectionManager,key:i,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&b,isVirtualized:S,shouldUseVirtualFocus:y,isDisabled:u,onAction:K||!(C==null||(r=C.props)===null||r===void 0)&&r.onAction?Se(C==null||(o=C.props)===null||o===void 0?void 0:o.onAction,K):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:F}),{hoverProps:T}=Ne({isDisabled:u||!b,onHoverStart(){ut()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(i))}}),O=q(C==null?void 0:C.props);delete O.id;let m=$i(C==null?void 0:C.props);return{optionProps:{...k,...L(O,M,T,m),id:F},labelProps:{id:w},descriptionProps:{id:B},isFocused:h,isFocusVisible:h&&e.selectionManager.isFocused&&ut(),isSelected:d,isDisabled:u,isPressed:A,allowsSelection:z,hasAction:R}}function wp(t){let{heading:e,"aria-label":n}=t,r=J();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var Ul={};Ul={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Gl={};Gl={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var ql={};ql={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Zl={};Zl={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Yl={};Yl={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Xl={};Xl={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Jl={};Jl={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ql={};Ql={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ea={};ea={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ta={};ta={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var na={};na={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var ra={};ra={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var oa={};oa={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ia={};ia={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var la={};la={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var aa={};aa={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var sa={};sa={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ua={};ua={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var ca={};ca={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var da={};da={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var fa={};fa={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var pa={};pa={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var va={};va={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var ba={};ba={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ma={};ma={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ha={};ha={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ga={};ga={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var ya={};ya={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var $a={};$a={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var xa={};xa={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Ea={};Ea={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Ca={};Ca={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Pa={};Pa={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Sa={};Sa={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var wa={};wa={"ar-AE":Ul,"bg-BG":Gl,"cs-CZ":ql,"da-DK":Zl,"de-DE":Yl,"el-GR":Xl,"en-US":Jl,"es-ES":Ql,"et-EE":ea,"fi-FI":ta,"fr-FR":na,"he-IL":ra,"hr-HR":oa,"hu-HU":ia,"it-IT":la,"ja-JP":aa,"ko-KR":sa,"lt-LT":ua,"lv-LV":ca,"nb-NO":da,"nl-NL":fa,"pl-PL":pa,"pt-BR":va,"pt-PT":ba,"ro-RO":ma,"ru-RU":ha,"sk-SK":ga,"sl-SI":ya,"sr-SP":$a,"sv-SE":xa,"tr-TR":Ea,"uk-UA":Ca,"zh-CN":Pa,"zh-TW":Sa};function Dp(t){return t&&t.__esModule?t.default:t}function kp(t,e,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=t,l=J(),{triggerProps:a,overlayProps:u}=rl({type:r},e,n),c=v=>{if(!o&&!(i==="longPress"&&!v.altKey)&&n&&n.current)switch(v.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("last");break;default:"continuePropagation"in v&&v.continuePropagation()}},d=ct(Dp(wa),"@react-aria/menu"),{longPressProps:f}=zi({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!o&&(me(v.target),e.open(v.pointerType==="virtual"?"first":null))},onPress(v){v.pointerType==="touch"&&!o&&(me(v.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?p:f,id:l,onKeyDown:c},menuProps:{...u,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}function Tp(t,e){let{role:n="dialog"}=t,r=st();r=t["aria-label"]?void 0:r;let o=s.useRef(!1);return s.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){ie(e.current);let i=setTimeout(()=>{document.activeElement===e.current&&(o.current=!0,e.current&&(e.current.blur(),ie(e.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),up(),{dialogProps:{...q(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function Rp(t,e,n){let{isDisabled:r}=t,o=J(),i=J(),a=!Le()&&"onbeforematch"in document.body,u=s.useRef(null),c=s.useCallback(()=>{u.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute("hidden","until-found")}),Ye.flushSync(()=>{e.toggle()})},[n,e]);return gt(n,"beforematch",a?c:null),V(()=>{u.current&&cancelAnimationFrame(u.current),a&&n.current&&!r&&(e.isExpanded?n.current.removeAttribute("hidden"):n.current.setAttribute("hidden","until-found"))},[r,n,e.isExpanded,a]),s.useEffect(()=>()=>{u.current&&cancelAnimationFrame(u.current)},[]),{buttonProps:{id:o,"aria-expanded":e.isExpanded,"aria-controls":i,onPress:d=>{!r&&d.pointerType!=="keyboard"&&e.toggle()},isDisabled:r,onPressStart(d){d.pointerType==="keyboard"&&!r&&e.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":o,"aria-hidden":!e.isExpanded,hidden:a?!0:!e.isExpanded}}}const kr=new WeakMap;function _o(t,e){var n;let{id:r}=(n=kr.get(t))!==null&&n!==void 0?n:{};if(!r)throw new Error("Unknown list");return`${r}-${Bp(e)}`}function Bp(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}var Da={};Da={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var ka={};ka={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var Ta={};Ta={deselectedItem:t=>`Položka ${t.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var Ra={};Ra={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var Ba={};Ba={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var Aa={};Aa={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var Fa={};Fa={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var Ka={};Ka={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var Ia={};Ia={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)} üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var La={};La={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var Ma={};Ma={deselectedItem:t=>`${t.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var Na={};Na={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var za={};za={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var Oa={};Oa={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var Va={};Va={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var Ha={};Ha={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var ja={};ja={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var _a={};_a={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var Wa={};Wa={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var Ua={};Ua={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var Ga={};Ga={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var qa={};qa={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var Za={};Za={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Ya={};Ya={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Xa={};Xa={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var Ja={};Ja={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var Qa={};Qa={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var es={};es={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var ts={};ts={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var ns={};ns={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var rs={};rs={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var os={};os={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var is={};is={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var ls={};ls={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`};var Tr={};Tr={"ar-AE":Da,"bg-BG":ka,"cs-CZ":Ta,"da-DK":Ra,"de-DE":Ba,"el-GR":Aa,"en-US":Fa,"es-ES":Ka,"et-EE":Ia,"fi-FI":La,"fr-FR":Ma,"he-IL":Na,"hr-HR":za,"hu-HU":Oa,"it-IT":Va,"ja-JP":Ha,"ko-KR":ja,"lt-LT":_a,"lv-LV":Wa,"nb-NO":Ua,"nl-NL":Ga,"pl-PL":qa,"pt-BR":Za,"pt-PT":Ya,"ro-RO":Xa,"ru-RU":Ja,"sk-SK":Qa,"sl-SI":es,"sr-SP":ts,"sv-SE":ns,"tr-TR":rs,"uk-UA":os,"zh-CN":is,"zh-TW":ls};function Ap(t){return t&&t.__esModule?t.default:t}function Fp(t,e){let{getRowText:n=a=>{var u,c,d,f;return(f=(u=(c=e.collection).getTextValue)===null||u===void 0?void 0:u.call(c,a))!==null&&f!==void 0?f:(d=e.collection.getItem(a))===null||d===void 0?void 0:d.textValue}}=t,r=ct(Ap(Tr),"@react-aria/grid"),o=e.selectionManager.rawSelection,i=s.useRef(o),l=X(()=>{var a;if(!e.selectionManager.isFocused||o===i.current){i.current=o;return}let u=Wo(o,i.current),c=Wo(i.current,o),d=e.selectionManager.selectionBehavior==="replace",f=[];if(e.selectionManager.selectedKeys.size===1&&d){if(e.collection.getItem(e.selectionManager.selectedKeys.keys().next().value)){let p=n(e.selectionManager.selectedKeys.keys().next().value);p&&f.push(r.format("selectedItem",{item:p}))}}else if(u.size===1&&c.size===0){let p=n(u.keys().next().value);p&&f.push(r.format("selectedItem",{item:p}))}else if(c.size===1&&u.size===0&&e.collection.getItem(c.keys().next().value)){let p=n(c.keys().next().value);p&&f.push(r.format("deselectedItem",{item:p}))}e.selectionManager.selectionMode==="multiple"&&(f.length===0||o==="all"||o.size>1||i.current==="all"||((a=i.current)===null||a===void 0?void 0:a.size)>1)&&f.push(o==="all"?r.format("selectedAll"):r.format("selectedCount",{count:o.size})),f.length>0&&or(f.join(" ")),i.current=o});cd(()=>{if(e.selectionManager.isFocused)l();else{let a=requestAnimationFrame(l);return()=>cancelAnimationFrame(a)}},[o,e.selectionManager.isFocused])}function Wo(t,e){let n=new Set;if(t==="all"||e==="all")return n;for(let r of t.keys())e.has(r)||n.add(r);return n}function Kp(t){return t&&t.__esModule?t.default:t}function Ip(t){let e=ct(Kp(Tr),"@react-aria/grid"),n=Mi(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,o=s.useMemo(()=>{let l=t.selectionManager.selectionMode,a=t.selectionManager.selectionBehavior,u;return r&&(u=e.format("longPressToSelect")),a==="replace"&&l!=="none"&&t.hasItemActions?u:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,r]);return hr(o)}function Lp(t,e,n){let{isVirtualized:r,keyboardDelegate:o,layoutDelegate:i,onAction:l,disallowTypeAhead:a,linkBehavior:u="action",keyboardNavigationBehavior:c="arrow",escapeKeyBehavior:d="clearSelection"}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=_l({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:n,keyboardDelegate:o,layoutDelegate:i,isVirtualized:r,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:u,disallowTypeAhead:a,autoFocus:t.autoFocus,escapeKeyBehavior:d}),p=J(t.id);kr.set(e,{id:p,onAction:l,linkBehavior:u,keyboardNavigationBehavior:c});let v=Ip({selectionManager:e.selectionManager,hasItemActions:!!l}),b=yf(n,{isDisabled:e.collection.size!==0}),g=q(t,{labelable:!0}),y=L(g,{role:"grid",id:p,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:b?-1:0}:f,v);return r&&(y["aria-rowcount"]=e.collection.size,y["aria-colcount"]=1),Fp({},e),{gridProps:y}}const Uo={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Mp(t,e,n){var r,o;let{node:i,isVirtualized:l,shouldSelectOnPressUp:a}=t,{direction:u}=xe(),{onAction:c,linkBehavior:d,keyboardNavigationBehavior:f}=kr.get(e),p=st(),v=s.useRef(null),b=()=>{var m;n.current!==null&&(v.current!=null&&i.key!==v.current||!(!((m=n.current)===null||m===void 0)&&m.contains(document.activeElement)))&&ie(n.current)},g={},y=t.hasChildItems,$=e.selectionManager.isLink(i.key);if(i!=null&&"expandedKeys"in e){var S,w,B;let m=(S=(w=e.collection).getChildren)===null||S===void 0?void 0:S.call(w,i.key);y=y||[...m??[]].length>1,c==null&&!$&&e.selectionManager.selectionMode==="none"&&y&&(c=()=>e.toggleKey(i.key));let D=y?e.expandedKeys.has(i.key):void 0,x=1;var k;if(i.level>0&&(i==null?void 0:i.parentKey)!=null){let I=e.collection.getItem(i.parentKey);if(I){var C,K;let _=(C=(K=e.collection).getChildren)===null||C===void 0?void 0:C.call(K,I.key);x=Cp(_).index+1}}else x=((k=(B=[...e.collection].filter(I=>I.level===0).at(-1))===null||B===void 0?void 0:B.index)!==null&&k!==void 0?k:0)+1;g={"aria-expanded":D,"aria-level":i.level+1,"aria-posinset":(i==null?void 0:i.index)+1,"aria-setsize":x}}let{itemProps:F,...M}=jl({selectionManager:e.selectionManager,key:i.key,ref:n,isVirtualized:l,shouldSelectOnPressUp:a,onAction:c||!((r=i.props)===null||r===void 0)&&r.onAction?Se((o=i.props)===null||o===void 0?void 0:o.onAction,c?()=>c(i.key):void 0):void 0,focus:b,linkBehavior:d}),A=m=>{if(!m.currentTarget.contains(m.target)||!n.current||!document.activeElement)return;let D=oe(n.current);if(D.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===n.current){if(m.key===Uo.expand[u]&&e.selectionManager.focusedKey===i.key&&y&&!e.expandedKeys.has(i.key)){e.toggleKey(i.key),m.stopPropagation();return}else if(m.key===Uo.collapse[u]&&e.selectionManager.focusedKey===i.key&&y&&e.expandedKeys.has(i.key)){e.toggleKey(i.key),m.stopPropagation();return}}switch(m.key){case"ArrowLeft":if(f==="arrow"){let I=u==="rtl"?D.nextNode():D.previousNode();if(I)m.preventDefault(),m.stopPropagation(),ie(I),Be(I,{containingElement:Re(n.current)});else if(m.preventDefault(),m.stopPropagation(),u==="rtl")ie(n.current),Be(n.current,{containingElement:Re(n.current)});else{D.currentNode=n.current;let _=Go(D);_&&(ie(_),Be(_,{containingElement:Re(n.current)}))}}break;case"ArrowRight":if(f==="arrow"){let I=u==="rtl"?D.previousNode():D.nextNode();if(I)m.preventDefault(),m.stopPropagation(),ie(I),Be(I,{containingElement:Re(n.current)});else if(m.preventDefault(),m.stopPropagation(),u==="ltr")ie(n.current),Be(n.current,{containingElement:Re(n.current)});else{D.currentNode=n.current;let _=Go(D);_&&(ie(_),Be(_,{containingElement:Re(n.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!m.altKey&&n.current.contains(m.target)){var x;m.stopPropagation(),m.preventDefault(),(x=n.current.parentElement)===null||x===void 0||x.dispatchEvent(new KeyboardEvent(m.nativeEvent.type,m.nativeEvent))}break;case"Tab":if(f==="tab"){let I=oe(n.current,{tabbable:!0});I.currentNode=document.activeElement,(m.shiftKey?I.previousNode():I.nextNode())&&m.stopPropagation()}}},h=m=>{if(v.current=i.key,m.target!==n.current){ut()||e.selectionManager.setFocusedKey(i.key);return}},R=yi(i.props),z=M.hasAction?R:{},T=L(F,z,{role:"row",onKeyDownCapture:A,onFocus:h,"aria-label":i.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(i.key)?e.selectionManager.isSelected(i.key):void 0,"aria-disabled":e.selectionManager.isDisabled(i.key)||void 0,"aria-labelledby":p&&i.textValue?`${_o(e,i.key)} ${p}`:void 0,id:_o(e,i.key)});l&&(T["aria-rowindex"]=i.index+1);let O={role:"gridcell","aria-colindex":1};return{rowProps:{...L(T,g)},gridCellProps:O,descriptionProps:{id:p},...M}}function Go(t){let e=null,n=null;do n=t.lastChild(),n&&(e=n);while(n);return e}function Np(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jt={exports:{}},On={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Bo;function ef(){if(Bo)return Rr;Bo=1;var t=s;function e(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,o=t.useEffect,i=t.useLayoutEffect,l=t.useDebugValue;function a(f,v){var p=v(),b=n({inst:{value:p,getSnapshot:v}}),m=b[0].inst,y=b[1];return i(function(){m.value=p,m.getSnapshot=v,u(m)&&y({inst:m})},[f,p,v]),o(function(){return u(m)&&y({inst:m}),f(function(){u(m)&&y({inst:m})})},[f]),l(p),p}function u(f){var v=f.getSnapshot;f=f.value;try{var p=v();return!r(f,p)}catch{return!0}}function c(f,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Rr.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Rr}var Kr={};/**
9
+ */var qo;function zp(){if(qo)return On;qo=1;var t=s;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,l=t.useDebugValue;function a(f,p){var v=p(),b=r({inst:{value:v,getSnapshot:p}}),g=b[0].inst,y=b[1];return i(function(){g.value=v,g.getSnapshot=p,u(g)&&y({inst:g})},[f,v,p]),o(function(){return u(g)&&y({inst:g}),f(function(){u(g)&&y({inst:g})})},[f]),l(v),v}function u(f){var p=f.getSnapshot;f=f.value;try{var v=p();return!n(f,v)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return On.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,On}var Vn={};/**
10
10
  * @license React
11
11
  * use-sync-external-store-shim.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Oo;function tf(){return Oo||(Oo=1,process.env.NODE_ENV!=="production"&&function(){function t(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}function e(p,b){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=b();if(!f){var y=b();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:b}});var $=y[0].inst,E=y[1];return u(function(){$.value=m,$.getSnapshot=b,r($)&&E({inst:$})},[p,m,b]),a(function(){return r($)&&E({inst:$}),p(function(){r($)&&E({inst:$})})},[p]),c(m),m}function r(p){var b=p.getSnapshot;p=p.value;try{var m=b();return!i(p,m)}catch{return!0}}function n(p,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=s,i=typeof Object.is=="function"?Object.is:t,l=o.useState,a=o.useEffect,u=o.useLayoutEffect,c=o.useDebugValue,d=!1,f=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;Kr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Kr}var zo;function rf(){return zo||(zo=1,process.env.NODE_ENV==="production"?At.exports=ef():At.exports=tf()),At.exports}var nf=rf();function of(t){let{value:e=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=t,a=Q(t,{labelable:!0}),{labelProps:u,fieldProps:c}=yn({...t,labelElementType:"span"});e=Ot(e,r,n);let d=(e-r)/(n-r),f=Kc(l);if(!i&&!o){let v=l.style==="percent"?d:e;o=f.format(v)}return{progressBarProps:A(a,{...c,"aria-valuenow":i?void 0:e,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:u}}const va=new WeakMap;function lf(t,e,r){let{keyboardDelegate:n,isDisabled:o,isRequired:i,name:l,validationBehavior:a="aria"}=t,u=bn({usage:"search",sensitivity:"base"}),c=s.useMemo(()=>n||new Sn(e.collection,e.disabledKeys,r,u),[n,e.collection,e.disabledKeys,u,r]),{menuTriggerProps:d,menuProps:f}=Zd({isDisabled:o,type:"listbox"},e,r),v=F=>{switch(F.key){case"ArrowLeft":{var N,L;F.preventDefault();let B=e.selectedKey!=null?(N=c.getKeyAbove)===null||N===void 0?void 0:N.call(c,e.selectedKey):(L=c.getFirstKey)===null||L===void 0?void 0:L.call(c);B&&e.setSelectedKey(B);break}case"ArrowRight":{var h,R;F.preventDefault();let B=e.selectedKey!=null?(h=c.getKeyBelow)===null||h===void 0?void 0:h.call(c,e.selectedKey):(R=c.getFirstKey)===null||R===void 0?void 0:R.call(c);B&&e.setSelectedKey(B);break}}},{typeSelectProps:p}=Kl({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(F){e.setSelectedKey(F)}}),{isInvalid:b,validationErrors:m,validationDetails:y}=e.displayValidation,{labelProps:$,fieldProps:E,descriptionProps:C,errorMessageProps:K}=$n({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||m});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let T=Q(t,{labelable:!0}),x=A(p,d,E),M=te();return va.set(e,{isDisabled:o,isRequired:i,name:l,validationBehavior:a}),{labelProps:{...$,onClick:()=>{if(!t.isDisabled){var F;(F=r.current)===null||F===void 0||F.focus(),Ci("keyboard")}}},triggerProps:A(T,{...x,isDisabled:o,onKeyDown:Te(x.onKeyDown,v,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[M,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].filter(Boolean).join(" "),onFocus(F){e.isFocused||(t.onFocus&&t.onFocus(F),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(F){e.isOpen||(t.onBlur&&t.onBlur(F),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:M},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:F=>{F.currentTarget.contains(F.relatedTarget)||(t.onBlur&&t.onBlur(F),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],x["aria-label"]&&!E["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:K,isInvalid:b,validationErrors:m,validationDetails:y}}function af(t,e,r){let n=va.get(e)||{},{autoComplete:o,name:i=n.name,isDisabled:l=n.isDisabled}=t,{validationBehavior:a,isRequired:u}=n,{visuallyHiddenProps:c}=Hi();cn(t.selectRef,e.selectedKey,e.setSelectedKey),mn({validationBehavior:a,focus:()=>{var f;return(f=r.current)===null||f===void 0?void 0:f.focus()}},e,t.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:a==="native"&&u,name:i,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function sf(t){let{state:e,triggerRef:r,label:n,name:o,isDisabled:i}=t,l=s.useRef(null),{containerProps:a,selectProps:u}=af({...t,selectRef:l},e,r);var c;return e.collection.size<=300?s.createElement("div",{...a,"data-testid":"hidden-select-container"},s.createElement("label",null,n,s.createElement("select",{...u,ref:l},s.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return s.createElement("option",{key:f.key,value:f.key},f.textValue)})))):o?s.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:o,disabled:i,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function uf(t,e){let r=Q(t,{labelable:!0}),{hoverProps:n}=Ue({onHoverStart:()=>e==null?void 0:e.open(!0),onHoverEnd:()=>e==null?void 0:e.close()});return{tooltipProps:A(r,n,{role:"tooltip"})}}function cf(t,e,r){let{isDisabled:n,trigger:o}=t,i=te(),l=s.useRef(!1),a=s.useRef(!1),u=()=>{(l.current||a.current)&&e.open(a.current)},c=$=>{!l.current&&!a.current&&e.close($)};s.useEffect(()=>{let $=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),e.close(!0))};if(e.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[r,e]);let d=()=>{o!=="focus"&&(yt()==="pointer"?l.current=!0:l.current=!1,u())},f=()=>{o!=="focus"&&(a.current=!1,l.current=!1,c())},v=()=>{a.current=!1,l.current=!1,c(!0)},p=()=>{mt()&&(a.current=!0,u())},b=()=>{a.current=!1,l.current=!1,c(!0)},{hoverProps:m}=Ue({isDisabled:n,onHoverStart:d,onHoverEnd:f}),{focusableProps:y}=ot({isDisabled:n,onFocus:p,onBlur:b},r);return{triggerProps:{"aria-describedby":e.isOpen?i:void 0,...A(y,m,{onPointerDown:v,onKeyDown:v,tabIndex:void 0})},tooltipProps:{id:i}}}const Be=w.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"}});function df(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var ff=/^((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)-.*))$/,pf=df(function(t){return ff.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});const{withContext:vf}=w.createRecipeContext({recipe:Be}),bf=vf("button",{defaultProps:{type:"button"},shouldForwardProp(t,e){const r=!(e!=null&&e.includes(t))&&!w.defaultSystem.isValidProperty(t);return pf(t)&&r&&!t.includes("onPress")}}),or=s.forwardRef((t,e)=>{const{as:r,asChild:n,children:o,...i}=t,l=s.useRef(null),a=de(w.mergeRefs(l,e)),u=r||(n?"a":"button")||"button",{buttonProps:c}=nr({...i,elementType:u},a);return P.jsx(bf,{...A(i,c,{as:r,asChild:n,ref:a}),children:o})});or.displayName="Button";const hf=s.forwardRef(function(e,r){const{children:n,portalled:o=!0,portalRef:i,backdrop:l=!0,...a}=e;return P.jsxs(w.Portal,{disabled:!o,container:i,children:[l&&P.jsx(w.Dialog.Backdrop,{}),P.jsx(w.Dialog.Positioner,{children:P.jsx(w.Dialog.Content,{ref:r,...a,asChild:!1,children:n})})]})}),gf=s.forwardRef(function(e,r){return P.jsx(w.Dialog.CloseTrigger,{position:"absolute",top:"2",insetEnd:"2",...e,asChild:!0,children:P.jsx(or,{size:"xs",ref:r,children:e.children})})}),mf=w.Dialog.Root,yf=w.Dialog.Footer,$f=w.Dialog.Header,xf=w.Dialog.Body,Sf=w.Dialog.Backdrop,Pf=w.Dialog.Title,Ef=w.Dialog.Description,wf=w.Dialog.Trigger,Cf=w.Dialog.ActionTrigger,xt=s.forwardRef(({children:t,...e},r)=>P.jsx(or,{px:0,py:0,ref:r,...e,children:t}));xt.displayName="IconButton";const ba=w.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:Tf}=w.createRecipeContext({recipe:ba}),kf=Tf("a"),ha=s.forwardRef((t,e)=>{const{as:r,asChild:n,children:o,...i}=t,l=s.useRef(null),a=de(w.mergeRefs(l,e)),u=r||(n?"span":"a")||"a",{linkProps:c}=vc({...i,elementType:u},a);return P.jsx(kf,{...A(i,c,{as:r,asChild:n,ref:a}),children:o})});ha.displayName="Link";const Df=t=>P.jsx(w.List.Root,{...t}),Rf=t=>P.jsx(w.List.Item,{...t}),ga=s.forwardRef((t,e)=>P.jsx(w.SimpleGrid,{ref:e,...t}));ga.displayName="SimpleGrid";const Kf=Object.assign(ga,{Item:w.GridItem}),Lf=t=>P.jsx(w.Table.Root,{...t}),Ff=t=>P.jsx(w.Table.ColumnGroup,{...t}),Mf=t=>P.jsx(w.Table.Column,{...t}),Af=t=>P.jsx(w.Table.Header,{...t}),If=t=>P.jsx(w.Table.Footer,{...t}),Nf=t=>P.jsx(w.Table.Row,{...t}),Bf=t=>P.jsx(w.Table.Cell,{...t}),Of=t=>P.jsx(w.Table.Body,{...t}),zf=t=>P.jsx(w.Table.ColumnHeader,{...t}),ma=s.forwardRef((t,e)=>P.jsx(w.Text,{ref:e,...t}));ma.displayName="Text";s.createContext(null);s.createContext(null);s.createContext(null);s.createContext(null);s.createContext(null);const Hf=s.createContext({}),Gt=Symbol("default");function Ge({values:t,children:e}){for(let[r,n]of t)e=s.createElement(r.Provider,{value:n},e);return e}function ae(t){let{className:e,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:a}=t;return s.useMemo(()=>{let u,c,d;return typeof e=="function"?u=e({...a,defaultClassName:o}):u=e,typeof r=="function"?c=r({...a,defaultStyle:l||{}}):c=r,typeof n=="function"?d=n({...a,defaultChildren:i}):n==null?d=i:d=n,{className:u??o,style:c||l?{...l,...c}:void 0,children:d??i,"data-rac":""}},[e,r,n,o,i,l,a])}function ir(t,e){let r=s.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||Gt;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),i=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function ce(t,e,r){let n=ir(r,t.slot)||{},{ref:o,...i}=n,l=de(s.useMemo(()=>li(e,o),[e,o])),a=A(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?a.style=u=>{let c=typeof i.style=="function"?i.style(u):i.style,d={...u.defaultStyle,...c},f=typeof t.style=="function"?t.style({...u,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...i.style,...t.style}),[a,l]}function Pn(t=!0){let[e,r]=s.useState(t),n=s.useRef(!1),o=s.useCallback(i=>{n.current=!0,r(!!i)},[]);return H(()=>{n.current||r(!1)},[]),[o,e]}function ya(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}class En{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new En(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.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,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.colSpan=null,this.colIndex=null,this.type=e,this.key=r}}class wn{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 r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),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(e){let r=this.keyMap.get(e);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(e){let r=this.keyMap.get(e);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 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 r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}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,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(e){let r=new wn,n=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),l=null;for(let a of this.getChildren(o.key))if(Ho(a,e,this,r)){let u=a.clone();l==null&&(i.firstChildKey=u.key),r.firstKey==null&&(r.firstKey=i.key),l&&l.parentKey===u.parentKey?(l.nextKey=u.key,u.prevKey=l.key):u.prevKey=null,u.nextKey=null,r.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,r.addNode(i)):(r.firstKey===i.key&&(r.firstKey=null),r.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,r.addNode(i))}else{let i=o.clone();Ho(i,e,this,r)&&(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}}function Ho(t,e,r,n){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let o=[...r.getChildren(t.key)][0];if(o&&e(o.textValue)){let i=o.clone();return n.addNode(i),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class $a{*[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}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){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),this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(r),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(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.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class nt extends $a{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof nt?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,r,n;let o=this.nextVisibleSibling,i=this.getMutableNode();i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof nt?this.parentNode.node.key:null;var l;i.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;i.nextKey=(a=o==null?void 0:o.node.key)!==null&&a!==void 0?a:null,i.hasChildNodes=!!this.firstChild;var u;i.firstChildKey=(u=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null;var c;if(i.lastChildKey=(c=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&c!==void 0?c:null,(i.colSpan!=null||i.colIndex!=null)&&o){var d,f;let v=((d=i.colIndex)!==null&&d!==void 0?d:i.index)+((f=i.colSpan)!==null&&f!==void 0?f:1);if(v!==o.node.colIndex){let p=o.getMutableNode();p.colIndex=v}}}setProps(e,r,n,o){let i=this.getMutableNode(),{value:l,textValue:a,id:u,...c}=e;if(c.ref=r,i.props=c,i.rendered=n,i.render=o,i.value=l,i.textValue=a||(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}c.colSpan!=null&&(i.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){let n=r==="none";if(e.isHidden!==n){var o,i;(((o=e.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===e||((i=e.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new En(e,`react-aria-${++r.nodeId}`)}}class Vf extends $a{get isConnected(){return this.isMounted}createElement(e){return new nt(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof nt&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof nt&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,r,n,o;this.nextCollection.commit((n=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(o=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}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.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function xa(t){let{children:e,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=t,l=s.useMemo(()=>new WeakMap,i);return s.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let f=l.get(d);if(!f){f=e(d);var a,u;let v=(u=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&u!==void 0?u:d.id;if(v==null)throw new Error("Could not determine key for item");n&&(v=n+":"+v),f=s.cloneElement(f,o?{key:v,id:v,value:d}:{key:v}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,l,n,o])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const qt=s.createContext(!1);function jf(t){if(s.useContext(qt))return s.createElement(s.Fragment,null,t.children);let r=s.createElement(qt.Provider,{value:!0},t.children);return s.createElement("template",{"data-react-aria-hidden":!0},r)}function Cn(t){let e=(r,n)=>s.useContext(qt)?null:t(r,n);return e.displayName=t.displayName||t.name,s.forwardRef(e)}function _f(){return s.useContext(qt)}const Sa=s.createContext(!1),$t=s.createContext(null);function Pa(t){if(s.useContext($t))return t.content;let{collection:r,document:n}=qf(t.createCollection);return s.createElement(s.Fragment,null,s.createElement(jf,null,s.createElement($t.Provider,{value:n},t.content)),s.createElement(Wf,{render:t.children,collection:r}))}function Wf({collection:t,render:e}){return e(t)}function Uf(t,e,r){let n=_e(),o=s.useRef(n);o.current=n;let i=s.useCallback(()=>o.current?r():e(),[e,r]);return nf.useSyncExternalStore(t,i)}const Gf=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:Uf;function qf(t){let[e]=s.useState(()=>new Vf((t==null?void 0:t())||new wn)),r=s.useCallback(l=>e.subscribe(l),[e]),n=s.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=s.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),i=Gf(r,n,o);return H(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:i,document:e}}const tn=s.createContext(null);function Ea(t,e,r,n,o,i){let l=s.useCallback(u=>{u==null||u.setProps(e,r,n,i)},[e,r,n,i]),a=s.useContext(tn);if(a){let u=a.ownerDocument.nodesByProps.get(e);return u||(u=a.ownerDocument.createElement(t),u.setProps(e,r,n,i),a.appendChild(u),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,u)),o?s.createElement(tn.Provider,{value:u},o):null}return s.createElement(t,{ref:l},o)}function wa(t,e){let r=({node:o})=>e(o.props,o.props.ref,o),n=s.forwardRef((o,i)=>{let l=s.useContext(Vt);if(!s.useContext(Sa)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return Ea(t,o,i,"children"in o?o.children:null,null,u=>s.createElement(Vt.Provider,{value:l},s.createElement(r,{node:u})))});return n.displayName=e.name,n}function Yf(t,e,r=Ca){let n=({node:i})=>e(i.props,i.props.ref,i),o=s.forwardRef((i,l)=>{let a=r(i);var u;return(u=Ea(t,i,l,null,a,c=>s.createElement(n,{node:c})))!==null&&u!==void 0?u:s.createElement(s.Fragment,null)});return o.displayName=e.name,o}function Ca(t){return xa({...t,addIdAndValue:!0})}const Vo=s.createContext(null);function Ta(t){let e=s.useContext(Vo),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope||(e==null?void 0:e.idScope),o=Ca({...t,idScope:n,dependencies:r});return s.useContext($t)&&(o=s.createElement(Zf,null,o)),e=s.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),s.createElement(Vo.Provider,{value:e},o)}function Zf({children:t}){let e=s.useContext($t),r=s.useMemo(()=>s.createElement($t.Provider,{value:null},s.createElement(Sa.Provider,{value:!0},t)),[t]);return _e()?s.createElement(tn.Provider,{value:e},r):je.createPortal(r,e)}const rn=s.createContext({});let Xf=t=>{let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,...o}=t;return o};const Jf=Cn(function(e,r){[e,r]=ce(e,r,rn);let{hoverProps:n,isHovered:o}=Ue(e),{isFocused:i,isFocusVisible:l,focusProps:a}=Le({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=ae({...e,values:{isHovered:o,isFocused:i,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return s.createElement("input",{...A(Xf(e),a,n),...c,ref:r,"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})}),ka=s.createContext({}),Qf=s.createContext(null),ep=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Tn=s.createContext({}),tp=Cn(function(e,r){[e,r]=ce(e,r,Tn),e=rp(e);let n=e,{isPending:o}=n,{buttonProps:i,isPressed:l}=nr(e,r),{focusProps:a,isFocused:u,isFocusVisible:c}=Le(e),{hoverProps:d,isHovered:f}=Ue({...e,isDisabled:e.isDisabled||o}),v={isHovered:f,isPressed:(n.isPressed||l)&&!o,isFocused:u,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:o??!1},p=ae({...e,values:v,defaultClassName:"react-aria-Button"}),b=te(i.id),m=te(),y=i["aria-labelledby"];o&&(y?y=`${y} ${m}`:i["aria-label"]&&(y=`${b} ${m}`));let $=s.useRef(o);return s.useEffect(()=>{let E={"aria-labelledby":y||b};(!$.current&&u&&o||$.current&&u&&!o)&&$o(E,"assertive"),$.current=o},[o,u,y,b]),s.createElement("button",{...Q(e,{propNames:ep}),...A(i,a,d),...p,type:i.type==="submit"&&o?"button":i.type,id:b,ref:r,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":f||void 0,"data-focused":u||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},s.createElement(Qf.Provider,{value:{id:m}},p.children))});function rp(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const lr=s.createContext({}),Da=s.createContext(null);class jo{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let r=this.keyMap.get(e);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}getChildren(e){let r=this.keyMap.get(e);return(r==null?void 0:r.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)r(a)};for(let l of e)r(l);let n=null,o=0;for(let[l,a]of this.keyMap)n?(n.nextKey=l,a.prevKey=n.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=o++),n=a,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}}class ve extends Set{constructor(e,r,n){super(e),e instanceof ve?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function np(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function op(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=t,l=s.useRef(!1),[,a]=s.useState(!1),u=s.useRef(null),c=s.useRef(null),[,d]=s.useState(null),f=s.useMemo(()=>_o(t.selectedKeys),[t.selectedKeys]),v=s.useMemo(()=>_o(t.defaultSelectedKeys,new ve),[t.defaultSelectedKeys]),[p,b]=Re(f,v,t.onSelectionChange),m=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,$]=s.useState(o);o==="replace"&&y==="toggle"&&typeof p=="object"&&p.size===0&&$("replace");let E=s.useRef(o);return s.useEffect(()=>{o!==E.current&&($(o),E.current=o)},[o]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(C,K="first"){u.current=C,c.current=K,d(C)},selectedKeys:p,setSelectedKeys(C){(n||!np(C,p))&&b(C)},disabledKeys:m,disabledBehavior:i}}function _o(t,e){return t?t==="all"?"all":new ve(t):e}class kn{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,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}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 r=this.getKey(e);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 e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!e||o&&Dr(this.collection,o,e)<0)&&(e=o)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!e||o&&Dr(this.collection,o,e)>0)&&(e=o)}var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r: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 r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ve([r],r,r);else{let l=this.state.selectedKeys;var o;let a=(o=l.anchorKey)!==null&&o!==void 0?o:r;n=new ve(l,a,r);var i;for(let u of this.getKeyRange(a,(i=l.currentKey)!==null&&i!==void 0?i:r))n.delete(u);for(let u of this.getKeyRange(r,a))this.canSelectItem(u)&&n.add(u)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),o=this.collection.getItem(r);return n&&o?Dr(this.collection,n,o)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);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===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new ve(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(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new ve([r],r,r):new ve;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new ve;for(let n of e){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=[],r=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")&&r((i=(o=_d(Ll(l,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()),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 ve)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(e){var r,n;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))===null||r===void 0?void 0:r.props}withCollection(e){return new kn(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,r,n){this.collection=e,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 Ra(t){let{filter:e,layoutDelegate:r}=t,n=op(t),o=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),i=s.useCallback(c=>e?new jo(e(c)):new jo(c),[e]),l=s.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=jd(t,i,l),u=s.useMemo(()=>new kn(a,n,{layoutDelegate:r}),[a,n,r]);return Ka(a,u),{collection:a,disabledKeys:o,selectionManager:u}}function ip(t,e){let r=s.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),n=t.selectionManager.withCollection(r);return Ka(r,n),{collection:r,selectionManager:n,disabledKeys:t.disabledKeys}}function Ka(t,e){const r=s.useRef(null);s.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&r.current){const d=r.current.getItem(e.focusedKey),f=[...r.current.getKeys()].map($=>{const E=r.current.getItem($);return(E==null?void 0:E.type)==="item"?E:null}).filter($=>$!==null),v=[...t.getKeys()].map($=>{const E=t.getItem($);return(E==null?void 0:E.type)==="item"?E:null}).filter($=>$!==null);var n,o;const p=((n=f==null?void 0:f.length)!==null&&n!==void 0?n:0)-((o=v==null?void 0:v.length)!==null&&o!==void 0?o:0);var i,l,a;let b=Math.min(p>1?Math.max(((i=d==null?void 0:d.index)!==null&&i!==void 0?i:0)-p+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=v==null?void 0:v.length)!==null&&a!==void 0?a:0)-1),m=null,y=!1;for(;b>=0;){if(!e.isDisabled(v[b].key)){m=v[b];break}if(b<v.length-1&&!y)b++;else{y=!0;var u,c;b>((u=d==null?void 0:d.index)!==null&&u!==void 0?u:0)&&(b=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),b--}}e.setFocusedKey(m?m.key:null)}r.current=t},[t,e])}function lp(t){var e;let[r,n]=Re(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),o=s.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:l,selectionManager:a}=Ra({...t,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===r&&t.onSelectionChange&&t.onSelectionChange(f),n(f)}}),u=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:l,selectionManager:a,selectedKey:r,setSelectedKey:n,selectedItem:u}}function ar(t){let[e,r]=Re(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=s.useCallback(()=>{r(!0)},[r]),o=s.useCallback(()=>{r(!1)},[r]),i=s.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:o,toggle:i}}function ap(t){let[e,r]=Re(t.isExpanded,t.defaultExpanded||!1,t.onExpandedChange);const n=s.useCallback(()=>{r(!0)},[r]),o=s.useCallback(()=>{r(!1)},[r]),i=s.useCallback(()=>{r(!e)},[r,e]);return{isExpanded:e,setExpanded:r,expand:n,collapse:o,toggle:i}}function sp(t){let{allowsMultipleExpanded:e=!1,isDisabled:r=!1}=t,[n,o]=Re(s.useMemo(()=>t.expandedKeys?new Set(t.expandedKeys):void 0,[t.expandedKeys]),s.useMemo(()=>t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,[t.defaultExpandedKeys]),t.onExpandedChange);return s.useEffect(()=>{!e&&n.size>1&&o(new Set([n.values().next().value]))}),{allowsMultipleExpanded:e,isDisabled:r,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 up(t){let e=ar(t),[r,n]=s.useState(null),[o,i]=s.useState([]),l=()=>{i([]),e.close()};return{focusStrategy:r,...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 cp(t){let e=ar(t),[r,n]=s.useState(null),o=lp({...t,onSelectionChange:u=>{t.onSelectionChange!=null&&t.onSelectionChange(u),e.close(),i.commitValidation()}}),i=gn({...t,value:o.selectedKey}),[l,a]=s.useState(!1);return{...i,...o,...e,focusStrategy:r,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:a}}const dp=1500,Wo=500;let Ie={},fp=0,ut=!1,$e=null,Ne=null;function La(t={}){let{delay:e=dp,closeDelay:r=Wo}=t,{isOpen:n,open:o,close:i}=ar(t),l=s.useMemo(()=>`${++fp}`,[]),a=s.useRef(null),u=s.useRef(i),c=()=>{Ie[l]=v},d=()=>{for(let b in Ie)b!==l&&(Ie[b](!0),delete Ie[b])},f=()=>{a.current&&clearTimeout(a.current),a.current=null,d(),c(),ut=!0,o(),$e&&(clearTimeout($e),$e=null),Ne&&(clearTimeout(Ne),Ne=null)},v=b=>{b||r<=0?(a.current&&clearTimeout(a.current),a.current=null,u.current()):a.current||(a.current=setTimeout(()=>{a.current=null,u.current()},r)),$e&&(clearTimeout($e),$e=null),ut&&(Ne&&clearTimeout(Ne),Ne=setTimeout(()=>{delete Ie[l],Ne=null,ut=!1},Math.max(Wo,r)))},p=()=>{d(),c(),!n&&!$e&&!ut?$e=setTimeout(()=>{$e=null,ut=!0,f()},e):n||f()};return s.useEffect(()=>{u.current=i},[i]),s.useEffect(()=>()=>{a.current&&clearTimeout(a.current),Ie[l]&&delete Ie[l]},[l]),{isOpen:n,open:b=>{!b&&e>0&&!a.current?p():f()},close:v}}const Fa=s.createContext(null),pp=s.createContext({}),vp=s.createContext(null),bp=Cn(function(e,r){[e,r]=ce(e,r,vp);let{validationBehavior:n}=ir(Fa)||{};var o,i;let l=(i=(o=e.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",a=s.useRef(null),[u,c]=ce({},a,rn),[d,f]=Pn(!e["aria-label"]&&!e["aria-labelledby"]),[v,p]=s.useState("input"),{labelProps:b,inputProps:m,descriptionProps:y,errorMessageProps:$,...E}=nd({...ya(e),inputElementType:v,label:f,validationBehavior:l},c),C=s.useCallback(x=>{c.current=x,x&&p(x instanceof HTMLTextAreaElement?"textarea":"input")},[c]),K=ae({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:E.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),T=Q(e);return delete T.id,s.createElement("div",{...T,...K,ref:r,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},s.createElement(Ge,{values:[[ka,{...b,ref:d}],[rn,{...A(m,u),ref:C}],[pp,{...m,ref:C}],[lr,{slots:{description:y,errorMessage:$}}],[Da,E]]},K.children))}),hp=s.createContext(null),gp=s.createContext(null),mp={CollectionRoot({collection:t,renderDropIndicator:e}){return Uo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return Uo(t,e,r)}};function Uo(t,e,r){return xa({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){var o;let i=n.render(n);if(!r||n.type!=="item")return i;let l=n.key,a=t.getKeyAfter(l);return s.createElement(s.Fragment,null,r({type:"item",key:l,dropPosition:"before"}),i,(a==null||((o=t.getItem(a))===null||o===void 0?void 0:o.type)!=="item")&&r({type:"item",key:l,dropPosition:"after"}))}})}const Dn=s.createContext(mp);var Ma={};Ma={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var Aa={};Aa={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var Ia={};Ia={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Na={};Na={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Ba={};Ba={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var Oa={};Oa={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var za={};za={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Ha={};Ha={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Va={};Va={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var ja={};ja={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var _a={};_a={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Wa={};Wa={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Ua={};Ua={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Ga={};Ga={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var qa={};qa={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Ya={};Ya={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var Za={};Za={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var Xa={};Xa={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Ja={};Ja={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var Qa={};Qa={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var es={};es={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var ts={};ts={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var rs={};rs={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var ns={};ns={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var os={};os={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var is={};is={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var ls={};ls={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var as={};as={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var ss={};ss={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var us={};us={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var cs={};cs={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var ds={};ds={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var fs={};fs={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var ps={};ps={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var vs={};vs={"ar-AE":Ma,"bg-BG":Aa,"cs-CZ":Ia,"da-DK":Na,"de-DE":Ba,"el-GR":Oa,"en-US":za,"es-ES":Ha,"et-EE":Va,"fi-FI":ja,"fr-FR":_a,"he-IL":Wa,"hr-HR":Ua,"hu-HU":Ga,"it-IT":qa,"ja-JP":Ya,"ko-KR":Za,"lt-LT":Xa,"lv-LV":Ja,"nb-NO":Qa,"nl-NL":es,"pl-PL":ts,"pt-BR":rs,"pt-PT":ns,"ro-RO":os,"ru-RU":is,"sk-SK":ls,"sl-SI":as,"sr-SP":ss,"sv-SE":us,"tr-TR":cs,"uk-UA":ds,"zh-CN":fs,"zh-TW":ps};const sr=s.createContext({}),bs=s.createContext(null),yp=s.forwardRef(function(e,r){let{render:n}=s.useContext(bs);return s.createElement(s.Fragment,null,n(e,r))});function hs(t,e){var r;let n=t==null?void 0:t.renderDropIndicator,o=t==null||(r=t.isVirtualDragging)===null||r===void 0?void 0:r.call(t),i=s.useCallback(l=>{if(o||e!=null&&e.isDropTarget(l))return n?n(l):s.createElement(yp,{target:l})},[e==null?void 0:e.target,o,n]);return t!=null&&t.useDropIndicator?i:void 0}function $p(t,e,r){var n,o;let i=t.focusedKey,l=null;if(!(e==null||(n=e.isVirtualDragging)===null||n===void 0)&&n.call(e)&&(r==null||(o=r.target)===null||o===void 0?void 0:o.type)==="item"){l=r.target.key;var a;r.target.dropPosition==="after"&&(l=(a=r.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return s.useMemo(()=>new Set([i,l].filter(u=>u!=null)),[i,l])}const gs=s.createContext({}),xp=wa("header",function(e,r){return[e,r]=ce(e,r,gs),s.createElement("header",{className:"react-aria-Header",...e,ref:r},e.children)}),Sp=s.createContext({}),Rn=s.createContext(null),St=s.createContext(null),Pp=s.forwardRef(function(e,r){[e,r]=ce(e,r,Rn);let n=s.useContext(St);return n?s.createElement(ms,{state:n,props:e,listBoxRef:r}):s.createElement(Pa,{content:s.createElement(Ta,e)},o=>s.createElement(Ep,{props:e,listBoxRef:r,collection:o}))});function Ep({props:t,listBoxRef:e,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:n}=s.useContext(Dn),o=Ra({...t,layoutDelegate:n});return s.createElement(ms,{state:o,props:t,listBoxRef:e})}function ms({state:t,props:e,listBoxRef:r}){let{filter:n,collectionProps:o,collectionRef:i}=s.useContext(hp)||{};e=s.useMemo(()=>o?{...e,...o}:e,[e,o]);let{dragAndDropHooks:l,layout:a="stack",orientation:u="vertical"}=e;r=de(s.useMemo(()=>li(r,i!==void 0?i:null),[i,r]));let c=ip(t,n),{collection:d,selectionManager:f}=c,v=!!(l!=null&&l.useDraggableCollectionState),p=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=Ke(),{disabledBehavior:m,disabledKeys:y}=f,$=bn({usage:"search",sensitivity:"base"}),{isVirtualized:E,layoutDelegate:C,dropTargetDelegate:K,CollectionRoot:T}=s.useContext(Dn),x=s.useMemo(()=>e.keyboardDelegate||new Sn({collection:d,collator:$,ref:r,disabledKeys:y,disabledBehavior:m,layout:a,orientation:u,direction:b,layoutDelegate:C}),[d,$,r,m,y,u,b,e.keyboardDelegate,a,C]),{listBoxProps:M}=zd({...e,shouldSelectOnPressUp:v||e.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:E},c,r),F=s.useRef(v),N=s.useRef(p);s.useEffect(()=>{process.env.NODE_ENV!=="production"&&(F.current!==v&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),N.current!==p&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[v,p]);let L,h,R,B=!1,D=null,z=s.useRef(null);if(v&&l){L=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?z:void 0}),l.useDraggableCollection({},L,r);let ne=l.DragPreview;D=l.renderDragPreview?s.createElement(ne,{ref:z},l.renderDragPreview):null}if(p&&l){h=l.useDroppableCollectionState({collection:d,selectionManager:f});let ne=l.dropTargetDelegate||K||new l.ListDropTargetDelegate(d,r,{orientation:u,layout:a,direction:b});R=l.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:ne},h,r),B=h.isDropTarget({type:"root"})}let{focusProps:g,isFocused:k,isFocusVisible:S}=Le(),O={isDropTarget:B,isEmpty:c.collection.size===0,isFocused:k,isFocusVisible:S,layout:e.layout||"stack",state:c},Y=ae({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:O}),Z=null;return c.collection.size===0&&e.renderEmptyState&&(Z=s.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(O))),s.createElement(Fi,null,s.createElement("div",{...Q(e),...A(M,g,R==null?void 0:R.collectionProps),...Y,ref:r,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":k||void 0,"data-focus-visible":S||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},s.createElement(Ge,{values:[[Rn,e],[St,c],[sr,{dragAndDropHooks:l,dragState:L,dropState:h}],[Sp,{elementType:"div"}],[bs,{render:Tp}],[gp,{name:"ListBoxSection",render:ys}]]},s.createElement(T,{collection:d,scrollRef:r,persistedKeys:$p(f,l,h),renderDropIndicator:hs(l,h)})),Z,D))}function ys(t,e,r,n="react-aria-ListBoxSection"){let o=s.useContext(St),{dragAndDropHooks:i,dropState:l}=s.useContext(sr),{CollectionBranch:a}=s.useContext(Dn),[u,c]=Pn();var d;let{headingProps:f,groupProps:v}=qd({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),p=ae({defaultClassName:n,className:t.className,style:t.style,values:{}});return s.createElement("section",{...Q(t),...v,...p,ref:e},s.createElement(gs.Provider,{value:{...f,ref:u}},s.createElement(a,{collection:o.collection,parent:r,renderDropIndicator:hs(i,l)})))}const wp=Yf("section",ys),Cp=wa("item",function(e,r,n){let o=de(r),i=s.useContext(St),{dragAndDropHooks:l,dragState:a,dropState:u}=s.useContext(sr),{optionProps:c,labelProps:d,descriptionProps:f,...v}=Gd({key:n.key,"aria-label":e==null?void 0:e["aria-label"]},i,o),{hoverProps:p,isHovered:b}=Ue({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),m=null;a&&l&&(m=l.useDraggableItem({key:n.key},a));let y=null;u&&l&&(y=l.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},u,o));let $=a&&a.isDragging(n.key),E=ae({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...v,isHovered:b,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:$,isDropTarget:y==null?void 0:y.isDropTarget}});s.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&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 C=e.href?"a":"div";return s.createElement(C,{...A(c,p,m==null?void 0:m.dragProps,y==null?void 0:y.dropProps),...E,ref:o,"data-allows-dragging":!!a||void 0,"data-selected":v.isSelected||void 0,"data-disabled":v.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.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},s.createElement(Ge,{values:[[lr,{slots:{[Gt]:d,label:d,description:f}}]]},E.children))});function Tp(t,e){e=de(e);let{dragAndDropHooks:r,dropState:n}=s.useContext(sr),{dropIndicatorProps:o,isHidden:i,isDropTarget:l}=r.useDropIndicator(t,n,e);return i?null:s.createElement(Dp,{...t,dropIndicatorProps:o,isDropTarget:l,ref:e})}function kp(t,e){let{dropIndicatorProps:r,isDropTarget:n,...o}=t,i=ae({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return s.createElement("div",{...r,...i,role:"option",ref:e,"data-drop-target":n||void 0})}const Dp=s.forwardRef(kp),$s=s.createContext({placement:"bottom"}),Kn=s.createContext(null),Go=s.createContext(null),xs=s.forwardRef(function(e,r){[e,r]=ce(e,r,Kn);let n=s.useContext(ur),o=ar(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?o:n,l=bi(r,i.isOpen)||e.isExiting||!1,a=_f(),{direction:u}=Ke();if(a){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),s.createElement(s.Fragment,null,c)}return i&&!i.isOpen&&!l?null:s.createElement(Rp,{...e,triggerRef:e.triggerRef,state:i,popoverRef:r,isExiting:l,dir:u})});function Rp({state:t,isExiting:e,UNSTABLE_portalContainer:r,...n}){let o=s.useRef(null),[i,l]=s.useState(0),a=s.useRef(null),u=s.useContext(Go),c=u&&n.trigger==="SubmenuTrigger";H(()=>{o.current&&t.isOpen&&l(o.current.getBoundingClientRect().width)},[t.isOpen,o]);var d;let{popoverProps:f,underlayProps:v,arrowProps:p,placement:b}=Dd({...n,offset:(d=n.offset)!==null&&d!==void 0?d:8,arrowSize:i,groupRef:c?u:a},t),m=n.popoverRef,y=vi(m,!!b)||n.isEntering||!1,$=ae({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:b,isEntering:y,isExiting:e}}),E=!n.isNonModal||n.trigger==="SubmenuTrigger",[C,K]=s.useState(!1);H(()=>{m.current&&K(E&&!m.current.querySelector("[role=dialog]"))},[m,E]),s.useEffect(()=>{C&&m.current&&!m.current.contains(document.activeElement)&&De(m.current)},[C,m]);let T={...f.style,...$.style},x=s.createElement("div",{...A(Q(n),f),...$,role:C?"dialog":void 0,tabIndex:C?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:m,slot:n.slot||void 0,style:T,dir:n.dir,"data-trigger":n.trigger,"data-placement":b,"data-entering":y||void 0,"data-exiting":e||void 0},!n.isNonModal&&s.createElement(Ro,{onDismiss:t.close}),s.createElement($s.Provider,{value:{...p,placement:b,ref:o}},$.children),s.createElement(Ro,{onDismiss:t.close}));if(!c)return s.createElement(Ko,{...n,shouldContainFocus:C,isExiting:e,portalContainer:r},!n.isNonModal&&t.isOpen&&s.createElement("div",{"data-testid":"underlay",...v,style:{position:"fixed",inset:0}}),s.createElement("div",{ref:a,style:{display:"contents"}},s.createElement(Go.Provider,{value:a},x)));var M;return s.createElement(Ko,{...n,shouldContainFocus:C,isExiting:e,portalContainer:(M=r??(u==null?void 0:u.current))!==null&&M!==void 0?M:void 0},x)}const Kp=s.createContext(null),Ss=s.createContext(null),ur=s.createContext(null);function Lp(t){let e=up(t),r=s.useRef(null),{triggerProps:n,overlayProps:o}=Ui({type:"dialog"},e,r);return n.id=te(),o["aria-labelledby"]=n.id,s.createElement(Ge,{values:[[ur,e],[Kp,e],[Ss,o],[Kn,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"]}]]},s.createElement(uc,{...n,ref:r,isPressed:e.isOpen},t.children))}const Fp=s.forwardRef(function(e,r){let n=e["aria-labelledby"];[e,r]=ce(e,r,Ss);let{dialogProps:o,titleProps:i}=Xd({...e,"aria-labelledby":n},r),l=s.useContext(ur);!o["aria-label"]&&!o["aria-labelledby"]&&(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&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 a=ae({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return s.createElement("section",{...Q(e),...o,...a,ref:r,slot:e.slot||void 0},s.createElement(Ge,{values:[[Hf,{slots:{[Gt]:{},title:{...i,level:2}}}],[Tn,{slots:{[Gt]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))});function Mp(t){return t&&t.__esModule?t.default:t}const Ln=s.createContext(null),Fn=s.createContext(null),Ap=s.forwardRef(function(e,r){[e,r]=ce(e,r,Ln);let{children:n,isDisabled:o=!1,isInvalid:i=!1,isRequired:l=!1}=e,a=s.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 s.createElement(Pa,{content:a},u=>s.createElement(Ip,{props:e,collection:u,selectRef:r}))});function Ip({props:t,selectRef:e,collection:r}){let{validationBehavior:n}=ir(Fa)||{};var o,i;let l=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",a=cp({...t,collection:r,children:void 0,validationBehavior:l}),{isFocusVisible:u,focusProps:c}=Le({within:!0}),d=s.useRef(null),[f,v]=Pn(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:p,triggerProps:b,valueProps:m,menuProps:y,descriptionProps:$,errorMessageProps:E,...C}=lf({...ya(t),label:v,validationBehavior:l},a,d),[K,T]=s.useState(null),x=s.useCallback(()=>{d.current&&T(d.current.offsetWidth+"px")},[d]);Br({ref:d,onResize:x});let M=s.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:u,isDisabled:t.isDisabled||!1,isInvalid:C.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,u,t.isDisabled,C.isInvalid,t.isRequired]),F=ae({...t,values:M,defaultClassName:"react-aria-Select"}),N=Q(t);delete N.id;let L=s.useRef(null);return s.createElement(Ge,{values:[[Ln,t],[Fn,a],[Ps,m],[ka,{...p,ref:f,elementType:"span"}],[Tn,{...b,ref:d,isPressed:a.isOpen}],[ur,a],[Kn,{trigger:"Select",triggerRef:d,scrollRef:L,placement:"bottom start",style:{"--trigger-width":K},"aria-labelledby":y["aria-labelledby"]}],[Rn,{...y,ref:L}],[St,a],[lr,{slots:{description:$,errorMessage:E}}],[Da,C]]},s.createElement("div",{...N,...F,...c,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":u||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":C.isInvalid||void 0,"data-required":t.isRequired||void 0}),s.createElement(sf,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:v,name:t.name,isDisabled:t.isDisabled}))}const Ps=s.createContext(null),Np=s.forwardRef(function(e,r){var n,o;[e,r]=ce(e,r,Ps);let i=s.useContext(Fn),{placeholder:l}=ir(Ln),a=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,u=a==null?void 0:a.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=vn(Mp(vs),"react-aria-components");var d,f,v;let p=ae({...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:(v=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&v!==void 0?v:null,isPlaceholder:!a}}),b=Q(e);return s.createElement("span",{ref:r,...b,...p,"data-placeholder":!a||void 0},s.createElement(lr.Provider,{value:void 0},p.children))}),Bp=s.createContext({}),Es=s.createContext(null),Op=s.forwardRef(function(e,r){[e,r]=ce(e,r,Bp);let n=rd(e),{groupProps:o}=Wc(e,n,r),i=ae({...e,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return s.createElement("div",{...o,...i,ref:r,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},s.createElement(Es.Provider,{value:n},i.children))}),zp=s.createContext({}),Hp=s.forwardRef(function(e,r){[e,r]=ce(e,r,zp);let n=s.useContext(Es),o=zi(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(m){n.setSelected(e.id,m)}}:e),{buttonProps:i,isPressed:l,isSelected:a,isDisabled:u}=n&&e.id!=null?Uc({...e,id:e.id},n,r):Ki({...e,id:e.id!=null?String(e.id):void 0},o,r),{focusProps:c,isFocused:d,isFocusVisible:f}=Le(e),{hoverProps:v,isHovered:p}=Ue(e),b=ae({...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 s.createElement("button",{...A(i,c,v),...b,ref:r,slot:e.slot||void 0,"data-focused":d||void 0,"data-disabled":u||void 0,"data-pressed":l||void 0,"data-selected":a||void 0,"data-hovered":p||void 0,"data-focus-visible":f||void 0})}),Mn=s.createContext(null),ws=s.createContext(null);function Vp(t){let e=La(t),r=s.useRef(null),{triggerProps:n,tooltipProps:o}=cf(t,e,r);return s.createElement(Ge,{values:[[Mn,e],[ws,{...o,triggerRef:r}]]},s.createElement(sc,{...n,ref:r},t.children))}const jp=s.forwardRef(function({UNSTABLE_portalContainer:e,...r},n){[r,n]=ce(r,n,ws);let o=s.useContext(Mn),i=La(r),l=r.isOpen!=null||r.defaultOpen!=null||!o?i:o,a=bi(n,l.isOpen)||r.isExiting||!1;return!l.isOpen&&!a?null:s.createElement(wd,{portalContainer:e},s.createElement(_p,{...r,tooltipRef:n,isExiting:a}))});function _p(t){let e=s.useContext(Mn),r=s.useRef(null),[n,o]=s.useState(0);H(()=>{r.current&&e.isOpen&&o(r.current.getBoundingClientRect().width)},[e.isOpen,r]);let{overlayProps:i,arrowProps:l,placement:a}=Wi({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:e.isOpen,arrowSize:n,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,onClose:()=>e.close(!0)}),u=vi(t.tooltipRef,!!a)||t.isEntering||!1,c=ae({...t,defaultClassName:"react-aria-Tooltip",values:{placement:a,isEntering:u,isExiting:t.isExiting,state:e}});t=A(t,i);let{tooltipProps:d}=uf(t,e);return s.createElement("div",{...d,ref:t.tooltipRef,...c,style:{...i.style,...c.style},"data-placement":a??void 0,"data-entering":u||void 0,"data-exiting":t.isExiting||void 0},s.createElement($s.Provider,{value:{...l,placement:a,ref:r}},c.children))}const Cs=w.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:Wp}=w.createRecipeContext({recipe:Cs}),Up=Wp("div"),Ts=s.forwardRef(function({children:e,placement:r="bottom",...n},o){return P.jsx(Up,{ref:o,asChild:!0,...n,children:P.jsx(jp,{placement:r,...n,children:e})})});Ts.displayName="Tooltip";const ks=Vp;ks.displayName="TooltipTrigger";const Ds=s.forwardRef(function(e,r){const n=s.useRef(null),o=de(w.mergeRefs(n,r)),{focusableProps:i}=ot(e,o);if(s.isValidElement(e.children))return s.cloneElement(e.children,A(i,e.children.props,{ref:o}))});Ds.displayName="MakeElementFocusable";var Gp=(t,e,r,n,o,i,l,a)=>{let u=document.documentElement,c=["light","dark"];function d(p){(Array.isArray(t)?t:[t]).forEach(b=>{let m=b==="class",y=m&&i?o.map($=>i[$]||$):o;m?(u.classList.remove(...y),u.classList.add(i&&i[p]?i[p]:p)):u.setAttribute(b,p)}),f(p)}function f(p){a&&c.includes(p)&&(u.style.colorScheme=p)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let p=localStorage.getItem(e)||r,b=l&&p==="system"?v():p;d(b)}catch{}},qo=["light","dark"],Rs="(prefers-color-scheme: dark)",qp=typeof window>"u",An=X.createContext(void 0),Yp={setTheme:t=>{},themes:[]},Zp=()=>{var t;return(t=X.useContext(An))!=null?t:Yp},Xp=t=>X.useContext(An)?X.createElement(X.Fragment,null,t.children):X.createElement(Qp,{...t}),Jp=["light","dark"],Qp=({forcedTheme:t,disableTransitionOnChange:e=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=Jp,defaultTheme:l=r?"system":"light",attribute:a="data-theme",value:u,children:c,nonce:d,scriptProps:f})=>{let[v,p]=X.useState(()=>tv(o,l)),[b,m]=X.useState(()=>v==="system"?Lr():v),y=u?Object.values(u):i,$=X.useCallback(T=>{let x=T;if(!x)return;T==="system"&&r&&(x=Lr());let M=u?u[x]:x,F=e?rv(d):null,N=document.documentElement,L=h=>{h==="class"?(N.classList.remove(...y),M&&N.classList.add(M)):h.startsWith("data-")&&(M?N.setAttribute(h,M):N.removeAttribute(h))};if(Array.isArray(a)?a.forEach(L):L(a),n){let h=qo.includes(l)?l:null,R=qo.includes(x)?x:h;N.style.colorScheme=R}F==null||F()},[d]),E=X.useCallback(T=>{let x=typeof T=="function"?T(v):T;p(x);try{localStorage.setItem(o,x)}catch{}},[v]),C=X.useCallback(T=>{let x=Lr(T);m(x),v==="system"&&r&&!t&&$("system")},[v,t]);X.useEffect(()=>{let T=window.matchMedia(Rs);return T.addListener(C),C(T),()=>T.removeListener(C)},[C]),X.useEffect(()=>{let T=x=>{x.key===o&&(x.newValue?p(x.newValue):E(l))};return window.addEventListener("storage",T),()=>window.removeEventListener("storage",T)},[E]),X.useEffect(()=>{$(t??v)},[t,v]);let K=X.useMemo(()=>({theme:v,setTheme:E,forcedTheme:t,resolvedTheme:v==="system"?b:v,themes:r?[...i,"system"]:i,systemTheme:r?b:void 0}),[v,E,t,b,r,i]);return X.createElement(An.Provider,{value:K},X.createElement(ev,{forcedTheme:t,storageKey:o,attribute:a,enableSystem:r,enableColorScheme:n,defaultTheme:l,value:u,themes:i,nonce:d,scriptProps:f}),c)},ev=X.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:l,themes:a,nonce:u,scriptProps:c})=>{let d=JSON.stringify([r,e,i,t,a,l,n,o]).slice(1,-1);return X.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${Gp.toString()})(${d})`}})}),tv=(t,e)=>{if(qp)return;let r;try{r=localStorage.getItem(t)||void 0}catch{}return r||e},rv=t=>{let e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.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(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Lr=t=>(t||(t=window.matchMedia(Rs)),t.matches?"dark":"light");function nv(t){return P.jsx(Xp,{attribute:"class",disableTransitionOnChange:!0,...t})}function In(){const{resolvedTheme:t,setTheme:e}=Zp();return{colorMode:t,setColorMode:e,toggleColorMode:()=>{e(t==="light"?"dark":"light")}}}function ov(t,e){const{colorMode:r}=In();return r==="light"?t:e}function iv(){const{colorMode:t}=In();return t==="light"?"Light Theme":"DarkTheme"}const lv=w.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 av(t){var r;const e={};for(const n in t)(r=t[n])!=null&&r.value?e[n]=t[n].value:e[n]=t[n];return e}const sv=av(U.themeTokens.breakpoints),uv=w.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"}}),cv={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"}}},dv=w.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),fv=w.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"}}),pv=w.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"}}),vv=w.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"}}),Nn=w.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"}}),bv={avatar:ri,button:Be,code:fv,heading:pv,kbd:vv,link:ba,tooltip:Cs,textInput:Nn},hv=w.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}"}},...U.themeTokens.color["system-palettes"],...U.themeTokens.color["brand-palettes"],...U.themeTokens.color["semantic-palettes"]}),gv=w.defineSemanticTokens.shadows(U.themeTokens.shadow),mv=w.defineSemanticTokens.radii({}),yv={colors:hv,shadows:gv,radii:mv},$v=w.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"}}),xv=w.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"}}),Sv=w.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"}}),Pv=w.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"}}),Ks=w.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"}}),Ev=w.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"}}),wv={dialog:$v,list:xv,table:Sv,checkbox:Pv,select:Ks,accordion:Ev},Cv=w.defineTextStyles(U.themeTokens.textStyle),Tv=w.defineTokens.durations(U.themeTokens.aspectRatio),kv=w.defineTokens.animations(U.themeTokens.animation),Dv=w.defineTokens.blurs(U.themeTokens.blur),Rv=w.defineTokens.borders(U.themeTokens.border),Kv=w.defineTokens.colors({...U.themeTokens.color["blacks-and-whites"]}),Lv=w.defineTokens.durations(U.themeTokens.duration),Fv=w.defineTokens.easings(U.themeTokens.easing),Mv=w.defineTokens.fonts(U.themeTokens.fontFamily),Av=w.defineTokens.fontSizes(U.themeTokens.fontSize),Iv=w.defineTokens.fontWeights(U.themeTokens.fontWeight),Nv=t=>Object.keys(t).reduce((e,r)=>{const o=parseFloat(t[r].value)/100;return e[r]={value:`${o}em`},e},{}),Bv=w.defineTokens.letterSpacings(Nv(U.themeTokens.letterSpacing)),Ov=w.defineTokens.lineHeights(U.themeTokens.lineHeight),zv=w.defineTokens.radii(U.themeTokens.borderRadius),Hv=w.defineTokens.spacing(U.themeTokens.spacing),Vv=w.defineTokens.sizes({...U.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"}}),jv=w.defineTokens.zIndex(U.themeTokens.zIndex),_v=w.defineTokens.cursor(U.themeTokens.cursor),Wv={aspectRatios:Tv,animations:kv,blurs:Dv,borders:Rv,colors:Kv,durations:Lv,easings:Fv,fonts:Mv,fontSizes:Av,fontWeights:Iv,letterSpacings:Bv,lineHeights:Ov,radii:zv,spacing:Hv,sizes:Vv,zIndex:jv,cursor:_v},Uv=w.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:uv,theme:{breakpoints:sv,keyframes:cv,tokens:Wv,semanticTokens:yv,recipes:bv,slotRecipes:wv,textStyles:Cv,layerStyles:dv,animationStyles:lv}}),Ls=w.createSystem(w.defaultBaseConfig,Uv);function Gv(){const[t,e]=s.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return s.useEffect(()=>{const n=document.documentElement,o=new MutationObserver(()=>{const i=r();e(i)});return o.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),t}function qv({children:t,...e}){return P.jsx(w.ChakraProvider,{value:Ls,children:P.jsx(nv,{enableSystem:!1,...e,children:P.jsx(P.Fragment,{children:t})})})}function cr(t){const e={},r={...t};return Object.keys(t).forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&w.defaultSystem.isValidProperty(n)&&(e[n]=t[n],delete r[n])}),[e,r]}const{withProvider:Yv,withContext:Fs}=w.createSlotRecipeContext({key:"checkbox"}),Zv=Yv("label","root"),Xv=Fs("span","label"),Jv=Fs("span","indicator"),Ms=s.forwardRef((t,e)=>{const r=s.useRef(null),n=de(w.mergeRefs(r,e)),o=w.useSlotRecipe({key:"checkbox"}),[i]=o.splitVariantProps(t),[l,a]=cr(t),u=zi(t),{inputProps:c}=td(a,u,n),{isFocused:d,focusProps:f}=Le(),v=u.isSelected&&!t.isIndeterminate,p=t.isIndeterminate,b={"data-selected":v,"data-indeterminate":p,"data-invalid":t.isInvalid,"data-disabled":t.isDisabled,"data-focus":d||void 0};return P.jsxs(Zv,{"data-slot":"root",...i,...b,...l,children:[P.jsxs(Jv,{"data-slot":"indicator",...b,children:[v&&P.jsx(se.Check,{}),p&&P.jsx(se.Remove,{}),P.jsx(Bn,{as:"span",children:P.jsx("input",{...A(c,f),ref:n})})]}),t.children&&P.jsx(Xv,{"data-slot":"label",...b,children:t.children})]})});Ms.displayName="Checkbox";const dr=s.forwardRef((t,e)=>P.jsx(w.Stack,{ref:e,...t}));dr.displayName="Stack";const Bn=t=>{const{as:e="div",...r}=t;return P.jsx(Vi,{elementType:e,...r})};Bn.displayName="VisuallyHidden";const{withContext:Qv}=w.createRecipeContext({recipe:Nn}),eb=Qv("input"),As=s.forwardRef((t,e)=>{const r=s.useRef(null),n=de(w.mergeRefs(r,e)),o=w.useRecipe({recipe:Nn}),[i,l]=o.splitVariantProps(t),[a,u]=cr(l);return P.jsx(bp,{...u,children:P.jsx(eb,{ref:n,...i,...a,asChild:!0,children:P.jsx(Jf,{})})})});As.displayName="TextInput";const Is=s.forwardRef((t,e)=>P.jsx(w.Grid,{ref:e,...t}));Is.displayName="Grid";const tb=Object.assign(Is,{Item:w.GridItem}),{withProvider:rb,withContext:Pt}=w.createSlotRecipeContext({key:"select"}),nb=rb("div","root"),ob=Pt("button","trigger"),ib=Pt("span","triggerLabel"),lb=Pt("div","options"),ab=Pt("div","option"),sb=Pt("div","optionGroup"),Ns=()=>{const t=s.useContext(Fn);if(!(t!=null&&t.selectedKey))return null;const e=()=>{t==null||t.setSelectedKey(null)};return P.jsx(xt,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:e,children:P.jsx(se.Close,{})})};Ns.displayName="Select.ClearButton";const On=s.forwardRef(({children:t,isLoading:e,isDisabled:r,...n},o)=>{const i=w.useSlotRecipe({recipe:Ks}),[l,a]=i.splitVariantProps(n),[u,c]=cr(a),d={...c,isDisabled:e||r};return P.jsx(nb,{asChild:!0,ref:o,...l,...u,children:P.jsxs(Ap,{...d,children:[P.jsxs(w.chakra.div,{position:"relative",children:[P.jsx(ob,{zIndex:0,asChild:!0,children:P.jsx(tp,{children:P.jsx(ib,{asChild:!0,children:P.jsx(Np,{})})})}),P.jsxs(w.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[P.jsx(w.Flex,{width:"600",my:"auto",children:P.jsx(Ns,{})}),P.jsx(w.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:P.jsx(xe,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:e?P.jsx(xe,{asChild:!0,animation:"spin",animationDuration:"slowest",children:P.jsx(se.Loop,{})}):P.jsx(se.KeyboardArrowDown,{})})})]})]}),P.jsx(xs,{children:t})]})})});On.displayName="Select.Root";const zn=t=>s.forwardRef(t),Hn=zn((t,e)=>{const[r,n]=cr(t);return P.jsx(lb,{asChild:!0,...r,children:P.jsx(Pp,{ref:e,...n})})});Hn.displayName="Select.Options";const Vn=zn((t,e)=>P.jsx(ab,{asChild:!0,ref:e,children:P.jsx(Cp,{...t})}));Vn.displayName="Select.Option";const jn=zn(({label:t,items:e,children:r,...n},o)=>{if(e&&typeof r!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return P.jsxs(wp,{ref:o,...n,children:[P.jsx(sb,{asChild:!0,children:P.jsx(xp,{children:t})}),e?P.jsx(Ta,{items:e,children:i=>typeof r=="function"?r(i):null}):r]})});jn.displayName="Select.OptionGroup";const ub={Root:On,Options:Hn,Option:Vn,OptionGroup:jn},{withProvider:cb,withContext:Et}=w.createSlotRecipeContext({key:"accordion"}),db=cb("div","root"),fb=Et("div","disclosure"),pb=Et("button","trigger"),vb=Et("div","panel"),bb=Et("div","accordionTitle"),nn=Et("div","headerContentRight"),_n=s.createContext(null),Bs=s.createContext(null),hb=s.forwardRef(({children:t,onExpandedChange:e,...r},n)=>{const o=sp({...r,onExpandedChange:a=>{e==null||e(a.size>0)}}),i=w.useSlotRecipe({key:"accordion"}),[l]=i.splitVariantProps(r);return P.jsx(Bs.Provider,{value:o,children:P.jsx(db,{"data-slot":"root",ref:n,...l,children:t})})}),gb=s.forwardRef(({children:t},e)=>{const r=s.useContext(_n);if(!r)throw new Error("Accordion.Header must be used within Accordion.Item");const n=s.Children.toArray(t).reduce((o,i)=>(s.isValidElement(i)&&i.type===nn?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return P.jsxs(w.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[P.jsxs(pb,{ref:w.mergeRefs(r.triggerRef,e),...r.buttonProps,"data-slot":"trigger",outline:r.isFocusVisible?void 0:"none",children:[P.jsx(se.KeyboardArrowRight,{}),P.jsx(bb,{"data-slot":"accordionTitle",children:n.main})]}),n.rightContent.length>0&&P.jsx(nn,{"data-slot":"headerContentRight",children:n.rightContent})]})}),mb=s.forwardRef((t,e)=>{const r=s.useContext(_n),n=de(w.mergeRefs(r==null?void 0:r.panelRef,e));return P.jsx(vb,{ref:n,...w.mergeProps({...r==null?void 0:r.panelProps,...t}),"data-slot":"panel",children:t.children})}),yb=s.forwardRef(({children:t,id:e,isDisabled:r,isExpanded:n,onExpandedChange:o,value:i},l)=>{const a=te(),c=i||(e||a),d=s.useContext(Bs),f=d?d.expandedKeys.has(c):n,v=ap({isExpanded:f,onExpandedChange:x=>{d&&d.toggleKey(c),o==null||o(x)}}),p=s.useRef(null),b=s.useRef(null),m=r||(d==null?void 0:d.isDisabled)||!1,{buttonProps:y,panelProps:$}=Jd({isExpanded:v.isExpanded,isDisabled:m},v,p),{buttonProps:E}=nr(y,b),{focusProps:C,isFocusVisible:K}=Le(),T={isExpanded:v.isExpanded,triggerRef:b,panelRef:p,buttonProps:A(E,C),panelProps:$,isFocusVisible:K};return P.jsx(_n.Provider,{value:T,children:P.jsx(fb,{"data-slot":"disclosure","data-value":c,"data-expanded":v.isExpanded,ref:l,children:t})})}),$b={Root:hb,Item:yb,Header:gb,Content:mb,HeaderRightContent:nn},xb=w.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:Sb}=w.createRecipeContext({recipe:xb}),Pb=Sb("div"),Eb="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",wb="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",Os=s.forwardRef(({"aria-label":t="Loading data",...e},r)=>{const{progressBarProps:n}=of({isIndeterminate:!0,"aria-label":t,...e});return P.jsx(Pb,{ref:r,...A(e,n),"aria-label":t,children:P.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[P.jsx("path",{d:Eb,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),P.jsx("path",{d:wb,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});Os.displayName="LoadingSpinner";const Cb=w.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:Tb,withContext:zs}=w.createSlotRecipeContext({recipe:Cb}),kb=Tb("div","root"),Db=zs("div","header"),Rb=zs("div","content"),Wn=s.createContext(void 0),Un=s.forwardRef(({children:t,...e},r)=>{const{isFocused:n,isFocusVisible:o,focusProps:i}=Le(),[l,a]=s.useState(null),[u,c]=s.useState(null),d=s.useMemo(()=>({setHeader:a,setContent:c}),[a,c]);return P.jsx(Wn.Provider,{value:d,children:P.jsxs(kb,{ref:r,...A(e,i),"data-focus":n||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[P.jsxs(dr,{direction:"column",gap:"200",children:[l,u]}),t]})})});Un.displayName="Card.Root";const Gn=({children:t,...e})=>{const r=s.useContext(Wn);return s.useEffect(()=>{if(r){const n=P.jsx(Db,{...e,children:t});return r.setHeader(n),()=>r.setHeader(null)}},[t,e]),null};Gn.displayName="Card.Header";const qn=({children:t,...e})=>{const r=s.useContext(Wn);return s.useEffect(()=>{if(r){const n=P.jsx(Rb,{...e,children:t});return r.setContent(n),()=>r.setContent(null)}},[t,e]),null};qn.displayName="Card.Content";const Kb={Root:Un,Header:Gn,Content:qn},Lb=w.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:Fb}=w.createRecipeContext({recipe:Lb}),Mb=Fb("span"),Ab=s.forwardRef((t,e)=>{const{as:r,asChild:n,children:o,...i}=t,l=s.useRef(null),a=de(w.mergeRefs(l,e)),u=r||"span";return P.jsx(Mb,{as:u,...A(i,{ref:a}),children:o})}),Ib=w.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:Nb,withContext:wt}=w.createSlotRecipeContext({recipe:Ib}),Bb=Nb("div","root"),Ob=wt("div","title"),zb=wt("div","description"),Hb=wt("div","icon"),Vb=wt("div","actions"),jb=wt("div","dismissButton"),_b=t=>{switch(t){case"critical":return P.jsx(se.ErrorOutline,{});case"info":return P.jsx(se.Info,{});case"warning":return P.jsx(se.WarningAmber,{});case"positive":return P.jsx(se.CheckCircleOutline,{});default:return null}},Ct=s.createContext(void 0),Hs=s.forwardRef(({children:t,...e},r)=>{const[n,o]=s.useState(null),[i,l]=s.useState(null),[a,u]=s.useState(null),[c,d]=s.useState(null),f=s.useMemo(()=>({setTitle:o,setDescription:l,setActions:u,setDismiss:d}),[o,l,u,d]);return P.jsx(Ct.Provider,{value:f,children:P.jsxs(Bb,{ref:r,...e,role:"alert",children:[P.jsx(Hb,{alignItems:"flex-start",children:_b(e.tone)}),P.jsxs(dr,{flex:"1",gap:"200",children:[P.jsxs(xe,{children:[n,i]}),a]}),c,t]})})});Hs.displayName="Alert.Root";const Vs=({children:t,...e})=>{const r=s.useContext(Ct);return s.useEffect(()=>{if(r){const n=P.jsx(Ob,{...e,fontWeight:"600",children:t});return r.setTitle(n),()=>r.setTitle(null)}},[t,e]),null};Vs.displayName="Alert.Title";const js=({children:t,...e})=>{const r=s.useContext(Ct);return s.useEffect(()=>{if(r){const n=P.jsx(zb,{...e,children:t});return r.setDescription(n),()=>r.setDescription(null)}},[t,e]),null};js.displayName="Alert.Description";const _s=({children:t,...e})=>{const r=s.useContext(Ct);return s.useEffect(()=>{if(r){const n=P.jsx(Vb,{...e,children:t});return r.setActions(n),()=>r.setActions(null)}},[t,e]),null};_s.displayName="Alert.Actions";const Ws=({children:t,...e})=>{const r=s.useContext(Ct);return s.useEffect(()=>{if(r){const n=P.jsx(jb,{children:P.jsx(xt,{"aria-label":"Dismiss",...e,variant:"ghost",size:"2xs",children:P.jsx(se.Clear,{role:"img"})})});return r.setDismiss(n),()=>r.setDismiss(null)}},[t,e]),null};Ws.displayName="Alert.DismissButton";const Wb={Root:Hs,Title:Vs,Description:js,Actions:_s,DismissButton:Ws};var Jo,Qo,ei,ti;const Ub=w.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...Be.base,...(Jo=Be.variants)==null?void 0:Jo.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Qo=Be.variants)==null?void 0:Qo.variant.solid}},variants:{size:{xs:{button:(ei=Be.variants)==null?void 0:ei.size.xs},md:{button:(ti=Be.variants)==null?void 0:ti.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:Gb,withProvider:qb}=w.createSlotRecipeContext({recipe:Ub}),Yb=qb(Op,"root"),Zb=Gb(Hp,"button"),Yn=s.forwardRef(({children:t,...e},r)=>P.jsx(Yb,{ref:r,...e,children:t}));Yn.displayName="ToggleButtonGroup.Root";const Zn=s.forwardRef(({children:t,...e},r)=>P.jsx(Zb,{...e,ref:r,children:t}));Zn.displayName="ToggleButtonGroup.Button";const Xb={Root:Yn,Button:Zn},Jb=`
17
+ */var Zo;function Op(){return Zo||(Zo=1,process.env.NODE_ENV!=="production"&&function(){function t(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}function e(v,b){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 g=b();if(!f){var y=b();i(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:g,getSnapshot:b}});var $=y[0].inst,S=y[1];return u(function(){$.value=g,$.getSnapshot=b,n($)&&S({inst:$})},[v,g,b]),a(function(){return n($)&&S({inst:$}),v(function(){n($)&&S({inst:$})})},[v]),c(g),g}function n(v){var b=v.getSnapshot;v=v.value;try{var g=b();return!i(v,g)}catch{return!0}}function r(v,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=s,i=typeof Object.is=="function"?Object.is:t,l=o.useState,a=o.useEffect,u=o.useLayoutEffect,c=o.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Vn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Vn}var Yo;function Vp(){return Yo||(Yo=1,process.env.NODE_ENV==="production"?jt.exports=zp():jt.exports=Op()),jt.exports}var Hp=Vp();function jp(t){let{value:e=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=t,a=q(t,{labelable:!0}),{labelProps:u,fieldProps:c}=wr({...t,labelElementType:"span"});e=Gt(e,n,r);let d=(e-n)/(r-n),f=uf(l);if(!i&&!o){let p=l.style==="percent"?d:e;o=f.format(p)}return{progressBarProps:L(a,{...c,"aria-valuenow":i?void 0:e,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:u}}const as=new WeakMap;function _p(t,e,n){let{keyboardDelegate:r,isDisabled:o,isRequired:i,name:l,validationBehavior:a="aria"}=t,u=Er({usage:"search",sensitivity:"base"}),c=s.useMemo(()=>r||new pn(e.collection,e.disabledKeys,n,u),[r,e.collection,e.disabledKeys,u,n]),{menuTriggerProps:d,menuProps:f}=kp({isDisabled:o,type:"listbox"},e,n),p=F=>{switch(F.key){case"ArrowLeft":{var M,A;F.preventDefault();let z=e.selectedKey!=null?(M=c.getKeyAbove)===null||M===void 0?void 0:M.call(c,e.selectedKey):(A=c.getFirstKey)===null||A===void 0?void 0:A.call(c);z&&e.setSelectedKey(z);break}case"ArrowRight":{var h,R;F.preventDefault();let z=e.selectedKey!=null?(h=c.getKeyBelow)===null||h===void 0?void 0:h.call(c,e.selectedKey):(R=c.getFirstKey)===null||R===void 0?void 0:R.call(c);z&&e.setSelectedKey(z);break}}},{typeSelectProps:v}=Hl({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(F){e.setSelectedKey(F)}}),{isInvalid:b,validationErrors:g,validationDetails:y}=e.displayValidation,{labelProps:$,fieldProps:S,descriptionProps:w,errorMessageProps:B}=fn({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||g});v.onKeyDown=v.onKeyDownCapture,delete v.onKeyDownCapture;let k=q(t,{labelable:!0}),C=L(v,d,S),K=J();return as.set(e,{isDisabled:o,isRequired:i,name:l,validationBehavior:a}),{labelProps:{...$,onClick:()=>{if(!t.isDisabled){var F;(F=n.current)===null||F===void 0||F.focus(),Li("keyboard")}}},triggerProps:L(k,{...C,isDisabled:o,onKeyDown:Se(C.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[K,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].filter(Boolean).join(" "),onFocus(F){e.isFocused||(t.onFocus&&t.onFocus(F),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(F){e.isOpen||(t.onBlur&&t.onBlur(F),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:K},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:F=>{F.currentTarget.contains(F.relatedTarget)||(t.onBlur&&t.onBlur(F),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],C["aria-label"]&&!S["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:w,errorMessageProps:B,isInvalid:b,validationErrors:g,validationDetails:y}}function Wp(t,e,n){let r=as.get(e)||{},{autoComplete:o,name:i=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:u}=r,{visuallyHiddenProps:c}=Ji();gr(t.selectRef,e.selectedKey,e.setSelectedKey),Sr({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.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:a==="native"&&u,name:i,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function Up(t){let{state:e,triggerRef:n,label:r,name:o,isDisabled:i}=t,l=s.useRef(null),{containerProps:a,selectProps:u}=Wp({...t,selectRef:l},e,n);var c;return e.collection.size<=300?s.createElement("div",{...a,"data-testid":"hidden-select-container"},s.createElement("label",null,r,s.createElement("select",{...u,ref:l},s.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return s.createElement("option",{key:f.key,value:f.key},f.textValue)})))):o?s.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:o,disabled:i,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}const ss=new WeakMap;function Gp(t,e,n){let{direction:r}=xe(),o=t.keyboardDelegate||new pn({collection:e.collection,ref:n,orientation:"horizontal",direction:r,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:i,fieldProps:l,descriptionProps:a,errorMessageProps:u}=fn({...t,labelElementType:"span"}),{gridProps:c}=Lp({...t,...l,keyboardDelegate:o,shouldFocusWrap:!0,linkBehavior:"override"},e,n),[d,f]=s.useState(!1),{focusWithinProps:p}=kt({onFocusWithinChange:f}),v=q(t),b=s.useRef(e.collection.size);return s.useEffect(()=>{n.current&&b.current>0&&e.collection.size===0&&d&&n.current.focus(),b.current=e.collection.size},[e.collection.size,d,n]),ss.set(e,{onRemove:t.onRemove}),{gridProps:L(c,v,{role:e.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":d?"polite":"off",...p,...l}),labelProps:i,descriptionProps:a,errorMessageProps:u}}var us={};us={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var cs={};cs={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var ds={};ds={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var fs={};fs={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var ps={};ps={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var vs={};vs={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var bs={};bs={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var ms={};ms={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var hs={};hs={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var gs={};gs={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var ys={};ys={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var $s={};$s={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var xs={};xs={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var Es={};Es={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var Cs={};Cs={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var Ps={};Ps={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var Ss={};Ss={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var ws={};ws={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var Ds={};Ds={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var ks={};ks={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var Ts={};Ts={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var Rs={};Rs={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var Bs={};Bs={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var As={};As={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var Fs={};Fs={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var Ks={};Ks={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var Is={};Is={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var Ls={};Ls={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var Ms={};Ms={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var Ns={};Ns={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var zs={};zs={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var Os={};Os={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var Vs={};Vs={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Hs={};Hs={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var js={};js={"ar-AE":us,"bg-BG":cs,"cs-CZ":ds,"da-DK":fs,"de-DE":ps,"el-GR":vs,"en-US":bs,"es-ES":ms,"et-EE":hs,"fi-FI":gs,"fr-FR":ys,"he-IL":$s,"hr-HR":xs,"hu-HU":Es,"it-IT":Cs,"ja-JP":Ps,"ko-KR":Ss,"lt-LT":ws,"lv-LV":Ds,"nb-NO":ks,"nl-NL":Ts,"pl-PL":Rs,"pt-BR":Bs,"pt-PT":As,"ro-RO":Fs,"ru-RU":Ks,"sk-SK":Is,"sl-SI":Ls,"sr-SP":Ms,"sv-SE":Ns,"tr-TR":zs,"uk-UA":Os,"zh-CN":Vs,"zh-TW":Hs};function qp(t){return t&&t.__esModule?t.default:t}function Zp(t,e,n){let{item:r}=t,o=ct(qp(js),"@react-aria/tag"),i=J(),{onRemove:l}=ss.get(e)||{},{rowProps:a,gridCellProps:u,...c}=Mp({node:r},e,n);delete a.onKeyDownCapture;let{descriptionProps:d,...f}=c,p=e.disabledKeys.has(r.key)||r.props.isDisabled,v=K=>{if(K.key==="Delete"||K.key==="Backspace"){if(p)return;K.preventDefault(),e.selectionManager.isSelected(r.key)?l==null||l(new Set(e.selectionManager.selectedKeys)):l==null||l(new Set([r.key]))}},b=Mi();b==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(b="pointer");let g=l&&(b==="keyboard"||b==="virtual")?o.format("removeDescription"):"",y=hr(g),$=r.key===e.selectionManager.focusedKey,S=e.selectionManager.focusedKey!=null,w=-1;!p&&($||!S)&&(w=0);let B=q(r.props),k=yi(r.props),{focusableProps:C}=Xe({isDisabled:p},n);return{removeButtonProps:{"aria-label":o.format("removeButtonLabel"),"aria-labelledby":`${i} ${a.id}`,isDisabled:p,id:i,onPress:()=>l?l(new Set([r.key])):null,excludeFromTabOrder:!0},rowProps:L(C,a,B,k,{tabIndex:w,onKeyDown:l?v:void 0,"aria-describedby":y["aria-describedby"]}),gridCellProps:L(u,{"aria-errormessage":t["aria-errormessage"],"aria-label":t["aria-label"]}),...f,allowsRemoving:!!l}}function Yp(t,e){let n=q(t,{labelable:!0}),{hoverProps:r}=Ne({onHoverStart:()=>e==null?void 0:e.open(!0),onHoverEnd:()=>e==null?void 0:e.close()});return{tooltipProps:L(n,r,{role:"tooltip"})}}function Xp(t,e,n){let{isDisabled:r,trigger:o}=t,i=J(),l=s.useRef(!1),a=s.useRef(!1),u=()=>{(l.current||a.current)&&e.open(a.current)},c=$=>{!l.current&&!a.current&&e.close($)};s.useEffect(()=>{let $=S=>{n&&n.current&&S.key==="Escape"&&(S.stopPropagation(),e.close(!0))};if(e.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,e]);let d=()=>{o!=="focus"&&(St()==="pointer"?l.current=!0:l.current=!1,u())},f=()=>{o!=="focus"&&(a.current=!1,l.current=!1,c())},p=()=>{a.current=!1,l.current=!1,c(!0)},v=()=>{ut()&&(a.current=!0,u())},b=()=>{a.current=!1,l.current=!1,c(!0)},{hoverProps:g}=Ne({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:y}=Xe({isDisabled:r,onFocus:v,onBlur:b},n);return{triggerProps:{"aria-describedby":e.isOpen?i:void 0,...L(y,g,{onPointerDown:p,onKeyDown:p,tabIndex:void 0})},tooltipProps:{id:i}}}const We=P.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"}});function Jp(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Qp=/^((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)-.*))$/,ev=Jp(function(t){return Qp.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});const{withContext:tv}=P.createRecipeContext({recipe:We}),nv=tv("button",{defaultProps:{type:"button"},shouldForwardProp(t,e){const n=!(e!=null&&e.includes(t))&&!P.defaultSystem.isValidProperty(t);return ev(t)&&n&&!t.includes("onPress")}}),vn=s.forwardRef((t,e)=>{const{as:n,asChild:r,children:o,...i}=t,l=s.useRef(null),a=de(P.mergeRefs(l,e)),u=n||(r?"a":"button")||"button",{buttonProps:c}=dn({...i,elementType:u},a);return E.jsx(nv,{...L(i,c,{as:n,asChild:r}),ref:a,children:o})});vn.displayName="Button";const rv=s.forwardRef(function(e,n){const{children:r,portalled:o=!0,portalRef:i,backdrop:l=!0,...a}=e;return E.jsxs(P.Portal,{disabled:!o,container:i,children:[l&&E.jsx(P.Dialog.Backdrop,{}),E.jsx(P.Dialog.Positioner,{children:E.jsx(P.Dialog.Content,{ref:n,...a,asChild:!1,children:r})})]})}),ov=s.forwardRef(function(e,n){return E.jsx(P.Dialog.CloseTrigger,{position:"absolute",top:"2",insetEnd:"2",...e,asChild:!0,children:E.jsx(vn,{size:"xs",ref:n,children:e.children})})}),iv=P.Dialog.Root,lv=P.Dialog.Footer,av=P.Dialog.Header,sv=P.Dialog.Body,uv=P.Dialog.Backdrop,cv=P.Dialog.Title,dv=P.Dialog.Description,fv=P.Dialog.Trigger,pv=P.Dialog.ActionTrigger;s.createContext(null);s.createContext(null);s.createContext(null);s.createContext(null);s.createContext(null);const vv=s.createContext({}),nn=Symbol("default");function ze({values:t,children:e}){for(let[n,r]of t)e=s.createElement(n.Provider,{value:r},e);return e}function ae(t){let{className:e,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:a}=t;return s.useMemo(()=>{let u,c,d;return typeof e=="function"?u=e({...a,defaultClassName:o}):u=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?d=r({...a,defaultChildren:i}):r==null?d=i:d=r,{className:u??o,style:c||l?{...l,...c}:void 0,children:d??i,"data-rac":""}},[e,n,r,o,i,l,a])}function Rr(t,e){let n=s.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||nn;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),i=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function fe(t,e,n){let r=Rr(n,t.slot)||{},{ref:o,...i}=r,l=de(s.useMemo(()=>mi(e,o),[e,o])),a=L(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?a.style=u=>{let c=typeof i.style=="function"?i.style(u):i.style,d={...u.defaultStyle,...c},f=typeof t.style=="function"?t.style({...u,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...i.style,...t.style}),[a,l]}function Br(t=!0){let[e,n]=s.useState(t),r=s.useRef(!1),o=s.useCallback(i=>{r.current=!0,n(!!i)},[]);return V(()=>{r.current||n(!1)},[]),[o,e]}function bv(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class Ar{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Ar(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.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,n){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.colSpan=null,this.colIndex=null,this.type=e,this.key=n}}class Fr{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 n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.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 n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}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,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}UNSTABLE_filter(e){let n=new Fr,r=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),l=null;for(let a of this.getChildren(o.key))if(Xo(a,e,this,n)){let u=a.clone();l==null&&(i.firstChildKey=u.key),n.firstKey==null&&(n.firstKey=i.key),l&&l.parentKey===u.parentKey?(l.nextKey=u.key,u.prevKey=l.key):u.prevKey=null,u.nextKey=null,n.addNode(u),l=u}l&&(l.type!=="header"?(i.lastChildKey=l.key,r==null?i.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=i.key,i.prevKey=r.key),i.nextKey=null,r=i,n.addNode(i)):(n.firstKey===i.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(o.type==="separator"){let i=o.clone();i.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=i.key,i.prevKey=r.key,r=i,n.addNode(i))}else{let i=o.clone();Xo(i,e,this,n)&&(n.firstKey==null&&(n.firstKey=i.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===i.parentKey?(r.nextKey=i.key,i.prevKey=r.key):i.prevKey=null,i.nextKey=null,n.addNode(i),r=i)}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let o;r.prevKey!=null&&(o=n.getItem(r.prevKey),o.nextKey=null),n.removeNode(r.key),r=o}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Xo(t,e,n,r){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let o=[...n.getChildren(t.key)][0];if(o&&e(o.textValue)){let i=o.clone();return r.addNode(i),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class _s{*[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}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){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),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(n),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(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.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class at extends _s{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof at?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,n,r;let o=this.nextVisibleSibling,i=this.getMutableNode();i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof at?this.parentNode.node.key:null;var l;i.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;i.nextKey=(a=o==null?void 0:o.node.key)!==null&&a!==void 0?a:null,i.hasChildNodes=!!this.firstChild;var u;i.firstChildKey=(u=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&u!==void 0?u:null;var c;if(i.lastChildKey=(c=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&c!==void 0?c:null,(i.colSpan!=null||i.colIndex!=null)&&o){var d,f;let p=((d=i.colIndex)!==null&&d!==void 0?d:i.index)+((f=i.colSpan)!==null&&f!==void 0?f:1);if(p!==o.node.colIndex){let v=o.getMutableNode();v.colIndex=p}}}setProps(e,n,r,o){let i=this.getMutableNode(),{value:l,textValue:a,id:u,...c}=e;if(c.ref=n,i.props=c,i.rendered=r,i.render=o,i.value=l,i.textValue=a||(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}c.colSpan!=null&&(i.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var o,i;(((o=e.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===e||((i=e.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new Ar(e,`react-aria-${++n.nodeId}`)}}class mv extends _s{get isConnected(){return this.isMounted}createElement(e){return new at(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof at&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof at&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,r,o;this.nextCollection.commit((r=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}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.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function Ws(t){let{children:e,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=t,l=s.useMemo(()=>new WeakMap,i);return s.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,u;let p=(u=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&u!==void 0?u:d.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=s.cloneElement(f,o?{key:p,id:p,value:d}:{key:p}),l.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,o])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const rn=s.createContext(!1);function hv(t){if(s.useContext(rn))return s.createElement(s.Fragment,null,t.children);let n=s.createElement(rn.Provider,{value:!0},t.children);return s.createElement("template",{"data-react-aria-hidden":!0},n)}function Us(t){let e=(n,r)=>s.useContext(rn)?null:t(n,r);return e.displayName=t.displayName||t.name,s.forwardRef(e)}function gv(){return s.useContext(rn)}const Gs=s.createContext(!1),wt=s.createContext(null);function Kr(t){if(s.useContext(wt))return t.content;let{collection:n,document:r}=Ev(t.createCollection);return s.createElement(s.Fragment,null,s.createElement(hv,null,s.createElement(wt.Provider,{value:r},t.content)),s.createElement(yv,{render:t.children,collection:n}))}function yv({collection:t,render:e}){return e(t)}function $v(t,e,n){let r=Le(),o=s.useRef(r);o.current=r;let i=s.useCallback(()=>o.current?n():e(),[e,n]);return Hp.useSyncExternalStore(t,i)}const xv=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:$v;function Ev(t){let[e]=s.useState(()=>new mv((t==null?void 0:t())||new Fr)),n=s.useCallback(l=>e.subscribe(l),[e]),r=s.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=s.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),i=xv(n,r,o);return V(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:i,document:e}}const cr=s.createContext(null);function qs(t,e,n,r,o,i){let l=s.useCallback(u=>{u==null||u.setProps(e,n,r,i)},[e,n,r,i]),a=s.useContext(cr);if(a){let u=a.ownerDocument.nodesByProps.get(e);return u||(u=a.ownerDocument.createElement(t),u.setProps(e,n,r,i),a.appendChild(u),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,u)),o?s.createElement(cr.Provider,{value:u},o):null}return s.createElement(t,{ref:l},o)}function Ir(t,e){let n=({node:o})=>e(o.props,o.props.ref,o),r=s.forwardRef((o,i)=>{let l=s.useContext(Xt);if(!s.useContext(Gs)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return qs(t,o,i,"children"in o?o.children:null,null,u=>s.createElement(Xt.Provider,{value:l},s.createElement(n,{node:u})))});return r.displayName=e.name,r}function Cv(t,e,n=Zs){let r=({node:i})=>e(i.props,i.props.ref,i),o=s.forwardRef((i,l)=>{let a=n(i);var u;return(u=qs(t,i,l,null,a,c=>s.createElement(r,{node:c})))!==null&&u!==void 0?u:s.createElement(s.Fragment,null)});return o.displayName=e.name,o}function Zs(t){return Ws({...t,addIdAndValue:!0})}const Jo=s.createContext(null);function Lr(t){let e=s.useContext(Jo),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),o=Zs({...t,idScope:r,dependencies:n});return s.useContext(wt)&&(o=s.createElement(Pv,null,o)),e=s.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),s.createElement(Jo.Provider,{value:e},o)}function Pv({children:t}){let e=s.useContext(wt),n=s.useMemo(()=>s.createElement(wt.Provider,{value:null},s.createElement(Gs.Provider,{value:!0},t)),[t]);return Le()?s.createElement(cr.Provider,{value:e},n):Ye.createPortal(n,e)}const Sv=s.createContext({});let wv=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...o}=t;return o};const Dv=Us(function(e,n){[e,n]=fe(e,n,Sv);let{hoverProps:r,isHovered:o}=Ne(e),{isFocused:i,isFocusVisible:l,focusProps:a}=Ee({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=ae({...e,values:{isHovered:o,isFocused:i,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return s.createElement("input",{...L(wv(e),a,r),...c,ref:n,"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})}),Ys=s.createContext({}),kv=s.createContext(null),Tv=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Tt=s.createContext({}),Rv=Us(function(e,n){[e,n]=fe(e,n,Tt),e=Bv(e);let r=e,{isPending:o}=r,{buttonProps:i,isPressed:l}=dn(e,n),{focusProps:a,isFocused:u,isFocusVisible:c}=Ee(e),{hoverProps:d,isHovered:f}=Ne({...e,isDisabled:e.isDisabled||o}),p={isHovered:f,isPressed:(r.isPressed||l)&&!o,isFocused:u,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:o??!1},v=ae({...e,values:p,defaultClassName:"react-aria-Button"}),b=J(i.id),g=J(),y=i["aria-labelledby"];o&&(y?y=`${y} ${g}`:i["aria-label"]&&(y=`${b} ${g}`));let $=s.useRef(o);return s.useEffect(()=>{let S={"aria-labelledby":y||b};(!$.current&&u&&o||$.current&&u&&!o)&&or(S,"assertive"),$.current=o},[o,u,y,b]),s.createElement("button",{...q(e,{propNames:Tv}),...L(i,a,d),...v,type:i.type==="submit"&&o?"button":i.type,id:b,ref:n,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":u||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},s.createElement(kv.Provider,{value:{id:g}},v.children))});function Bv(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const bn=s.createContext({}),Av=s.createContext(null);class Qo{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,o=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;var i;this.lastKey=(i=r==null?void 0:r.key)!==null&&i!==void 0?i:null}}class be extends Set{constructor(e,n,r){super(e),e instanceof be?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Fv(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Kv(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=t,l=s.useRef(!1),[,a]=s.useState(!1),u=s.useRef(null),c=s.useRef(null),[,d]=s.useState(null),f=s.useMemo(()=>ei(t.selectedKeys),[t.selectedKeys]),p=s.useMemo(()=>ei(t.defaultSelectedKeys,new be),[t.defaultSelectedKeys]),[v,b]=Me(f,p,t.onSelectionChange),g=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,$]=s.useState(o);o==="replace"&&y==="toggle"&&typeof v=="object"&&v.size===0&&$("replace");let S=s.useRef(o);return s.useEffect(()=>{o!==S.current&&($(o),S.current=o)},[o]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(w){l.current=w,a(w)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(w,B="first"){u.current=w,c.current=B,d(w)},selectedKeys:v,setSelectedKeys(w){(r||!Fv(w,v))&&b(w)},disabledKeys:g,disabledBehavior:i}}function ei(t,e){return t?t==="all"?"all":new be(t):e}class Mr{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,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}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 n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}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(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!e||o&&zn(this.collection,o,e)<0)&&(e=o)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!e||o&&zn(this.collection,o,e)>0)&&(e=o)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n: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 n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new be([n],n,n);else{let l=this.state.selectedKeys;var o;let a=(o=l.anchorKey)!==null&&o!==void 0?o:n;r=new be(l,a,n);var i;for(let u of this.getKeyRange(a,(i=l.currentKey)!==null&&i!==void 0?i:n))r.delete(u);for(let u of this.getKeyRange(n,a))this.canSelectItem(u)&&r.add(u)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),o=this.collection.getItem(n);return r&&o?zn(this.collection,r,o)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);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===n)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new be(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new be([n],n,n):new be;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new be;for(let r of e){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var i;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((i=(o=xp(Wl(l,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(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 be)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new Mr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function Nr(t){let{filter:e,layoutDelegate:n}=t,r=Kv(t),o=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),i=s.useCallback(c=>e?new Qo(e(c)):new Qo(c),[e]),l=s.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=$p(t,i,l),u=s.useMemo(()=>new Mr(a,r,{layoutDelegate:n}),[a,r,n]);return Xs(a,u),{collection:a,disabledKeys:o,selectionManager:u}}function Iv(t,e){let n=s.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return Xs(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function Xs(t,e){const n=s.useRef(null);s.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map($=>{const S=n.current.getItem($);return(S==null?void 0:S.type)==="item"?S:null}).filter($=>$!==null),p=[...t.getKeys()].map($=>{const S=t.getItem($);return(S==null?void 0:S.type)==="item"?S:null}).filter($=>$!==null);var r,o;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((o=p==null?void 0:p.length)!==null&&o!==void 0?o:0);var i,l,a;let b=Math.min(v>1?Math.max(((i=d==null?void 0:d.index)!==null&&i!==void 0?i:0)-v+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),g=null,y=!1;for(;b>=0;){if(!e.isDisabled(p[b].key)){g=p[b];break}if(b<p.length-1&&!y)b++;else{y=!0;var u,c;b>((u=d==null?void 0:d.index)!==null&&u!==void 0?u:0)&&(b=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),b--}}e.setFocusedKey(g?g.key:null)}n.current=t},[t,e])}function Lv(t){var e;let[n,r]=Me(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),o=s.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:l,selectionManager:a}=Nr({...t,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===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),u=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:u}}function mn(t){let[e,n]=Me(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=s.useCallback(()=>{n(!0)},[n]),o=s.useCallback(()=>{n(!1)},[n]),i=s.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:o,toggle:i}}function Mv(t){let[e,n]=Me(t.isExpanded,t.defaultExpanded||!1,t.onExpandedChange);const r=s.useCallback(()=>{n(!0)},[n]),o=s.useCallback(()=>{n(!1)},[n]),i=s.useCallback(()=>{n(!e)},[n,e]);return{isExpanded:e,setExpanded:n,expand:r,collapse:o,toggle:i}}function Nv(t){let{allowsMultipleExpanded:e=!1,isDisabled:n=!1}=t,[r,o]=Me(s.useMemo(()=>t.expandedKeys?new Set(t.expandedKeys):void 0,[t.expandedKeys]),s.useMemo(()=>t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,[t.defaultExpandedKeys]),t.onExpandedChange);return s.useEffect(()=>{!e&&r.size>1&&o(new Set([r.values().next().value]))}),{allowsMultipleExpanded:e,isDisabled:n,expandedKeys:r,setExpandedKeys:o,toggleKey(i){let l;e?(l=new Set(r),l.has(i)?l.delete(i):l.add(i)):l=new Set(r.has(i)?[]:[i]),o(l)}}}function zv(t){let e=mn(t),[n,r]=s.useState(null),[o,i]=s.useState([]),l=()=>{i([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(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 Ov(t){let e=mn(t),[n,r]=s.useState(null),o=Lv({...t,onSelectionChange:u=>{t.onSelectionChange!=null&&t.onSelectionChange(u),e.close(),i.commitValidation()}}),i=Pr({...t,value:o.selectedKey}),[l,a]=s.useState(!1);return{...i,...o,...e,focusStrategy:n,open(u=null){o.collection.size!==0&&(r(u),e.open())},toggle(u=null){o.collection.size!==0&&(r(u),e.toggle())},isFocused:l,setFocused:a}}const Vv=1500,ti=500;let je={},Hv=0,mt=!1,Ce=null,_e=null;function Js(t={}){let{delay:e=Vv,closeDelay:n=ti}=t,{isOpen:r,open:o,close:i}=mn(t),l=s.useMemo(()=>`${++Hv}`,[]),a=s.useRef(null),u=s.useRef(i),c=()=>{je[l]=p},d=()=>{for(let b in je)b!==l&&(je[b](!0),delete je[b])},f=()=>{a.current&&clearTimeout(a.current),a.current=null,d(),c(),mt=!0,o(),Ce&&(clearTimeout(Ce),Ce=null),_e&&(clearTimeout(_e),_e=null)},p=b=>{b||n<=0?(a.current&&clearTimeout(a.current),a.current=null,u.current()):a.current||(a.current=setTimeout(()=>{a.current=null,u.current()},n)),Ce&&(clearTimeout(Ce),Ce=null),mt&&(_e&&clearTimeout(_e),_e=setTimeout(()=>{delete je[l],_e=null,mt=!1},Math.max(ti,n)))},v=()=>{d(),c(),!r&&!Ce&&!mt?Ce=setTimeout(()=>{Ce=null,mt=!0,f()},e):r||f()};return s.useEffect(()=>{u.current=i},[i]),s.useEffect(()=>()=>{a.current&&clearTimeout(a.current),je[l]&&delete je[l]},[l]),{isOpen:r,open:b=>{!b&&e>0&&!a.current?v():f()},close:p}}const jv=s.createContext(null),_v=s.createContext(null),Wv=s.createContext(null),Qs={CollectionRoot({collection:t,renderDropIndicator:e}){return ni(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return ni(t,e,n)}};function ni(t,e,n){return Ws({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var o;let i=r.render(r);if(!n||r.type!=="item")return i;let l=r.key,a=t.getKeyAfter(l);return s.createElement(s.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),i,(a==null||((o=t.getItem(a))===null||o===void 0?void 0:o.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const Rt=s.createContext(Qs);function Uv(t){return s.useMemo(()=>t!=null?new Set([t]):null,[t])}var eu={};eu={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var tu={};tu={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var nu={};nu={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var ru={};ru={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var ou={};ou={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var iu={};iu={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var lu={};lu={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var au={};au={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var su={};su={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var uu={};uu={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var cu={};cu={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var du={};du={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var fu={};fu={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var pu={};pu={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var vu={};vu={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var bu={};bu={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var mu={};mu={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var hu={};hu={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var gu={};gu={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var yu={};yu={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var $u={};$u={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var xu={};xu={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var Eu={};Eu={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Cu={};Cu={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Pu={};Pu={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Su={};Su={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var wu={};wu={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Du={};Du={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var ku={};ku={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Tu={};Tu={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Ru={};Ru={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Bu={};Bu={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Au={};Au={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Fu={};Fu={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var Ku={};Ku={"ar-AE":eu,"bg-BG":tu,"cs-CZ":nu,"da-DK":ru,"de-DE":ou,"el-GR":iu,"en-US":lu,"es-ES":au,"et-EE":su,"fi-FI":uu,"fr-FR":cu,"he-IL":du,"hr-HR":fu,"hu-HU":pu,"it-IT":vu,"ja-JP":bu,"ko-KR":mu,"lt-LT":hu,"lv-LV":gu,"nb-NO":yu,"nl-NL":$u,"pl-PL":xu,"pt-BR":Eu,"pt-PT":Cu,"ro-RO":Pu,"ru-RU":Su,"sk-SK":wu,"sl-SI":Du,"sr-SP":ku,"sv-SE":Tu,"tr-TR":Ru,"uk-UA":Bu,"zh-CN":Au,"zh-TW":Fu};const hn=s.createContext({}),Iu=s.createContext(null),Gv=s.forwardRef(function(e,n){let{render:r}=s.useContext(Iu);return s.createElement(s.Fragment,null,r(e,n))});function Lu(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,o=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),i=s.useCallback(l=>{if(o||e!=null&&e.isDropTarget(l))return r?r(l):s.createElement(Gv,{target:l})},[e==null?void 0:e.target,o,r]);return t!=null&&t.useDropIndicator?i:void 0}function qv(t,e,n){var r,o;let i=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(o=n.target)===null||o===void 0?void 0:o.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return s.useMemo(()=>new Set([i,l].filter(u=>u!=null)),[i,l])}const Mu=s.createContext({}),Zv=Ir("header",function(e,n){return[e,n]=fe(e,n,Mu),s.createElement("header",{className:"react-aria-Header",...e,ref:n},e.children)}),Yv=s.createContext({}),zr=s.createContext(null),ke=s.createContext(null),Xv=s.forwardRef(function(e,n){[e,n]=fe(e,n,zr);let r=s.useContext(ke);return r?s.createElement(Nu,{state:r,props:e,listBoxRef:n}):s.createElement(Kr,{content:s.createElement(Lr,e)},o=>s.createElement(Jv,{props:e,listBoxRef:n,collection:o}))});function Jv({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=s.useContext(Rt),o=Nr({...t,layoutDelegate:r});return s.createElement(Nu,{state:o,props:t,listBoxRef:e})}function Nu({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:o,collectionRef:i}=s.useContext(_v)||{};e=s.useMemo(()=>o?{...e,...o}:e,[e,o]);let{dragAndDropHooks:l,layout:a="stack",orientation:u="vertical"}=e;n=de(s.useMemo(()=>mi(n,i!==void 0?i:null),[i,n]));let c=Iv(t,r),{collection:d,selectionManager:f}=c,p=!!(l!=null&&l.useDraggableCollectionState),v=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=xe(),{disabledBehavior:g,disabledKeys:y}=f,$=Er({usage:"search",sensitivity:"base"}),{isVirtualized:S,layoutDelegate:w,dropTargetDelegate:B,CollectionRoot:k}=s.useContext(Rt),C=s.useMemo(()=>e.keyboardDelegate||new pn({collection:d,collator:$,ref:n,disabledKeys:y,disabledBehavior:g,layout:a,orientation:u,direction:b,layoutDelegate:w}),[d,$,n,g,y,u,b,e.keyboardDelegate,a,w]),{listBoxProps:K}=hp({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:S},c,n),F=s.useRef(p),M=s.useRef(v);s.useEffect(()=>{process.env.NODE_ENV!=="production"&&(F.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),M.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,v]);let A,h,R,z=!1,T=null,O=s.useRef(null);if(p&&l){A=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?O:void 0}),l.useDraggableCollection({},A,n);let re=l.DragPreview;T=l.renderDragPreview?s.createElement(re,{ref:O},l.renderDragPreview):null}if(v&&l){h=l.useDroppableCollectionState({collection:d,selectionManager:f});let re=l.dropTargetDelegate||B||new l.ListDropTargetDelegate(d,n,{orientation:u,layout:a,direction:b});R=l.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:re},h,n),z=h.isDropTarget({type:"root"})}let{focusProps:m,isFocused:D,isFocusVisible:x}=Ee(),I={isDropTarget:z,isEmpty:c.collection.size===0,isFocused:D,isFocusVisible:x,layout:e.layout||"stack",state:c},_=ae({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:I}),Q=null;return c.collection.size===0&&e.renderEmptyState&&(Q=s.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(I))),s.createElement(_i,null,s.createElement("div",{...q(e),...L(K,m,R==null?void 0:R.collectionProps),..._,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":z||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":D||void 0,"data-focus-visible":x||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},s.createElement(ze,{values:[[zr,e],[ke,c],[hn,{dragAndDropHooks:l,dragState:A,dropState:h}],[Yv,{elementType:"div"}],[Iu,{render:tb}],[Wv,{name:"ListBoxSection",render:zu}]]},s.createElement(k,{collection:d,scrollRef:n,persistedKeys:qv(f,l,h),renderDropIndicator:Lu(l,h)})),Q,T))}function zu(t,e,n,r="react-aria-ListBoxSection"){let o=s.useContext(ke),{dragAndDropHooks:i,dropState:l}=s.useContext(hn),{CollectionBranch:a}=s.useContext(Rt),[u,c]=Br();var d;let{headingProps:f,groupProps:p}=wp({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),v=ae({defaultClassName:r,className:t.className,style:t.style,values:{}});return s.createElement("section",{...q(t),...p,...v,ref:e},s.createElement(Mu.Provider,{value:{...f,ref:u}},s.createElement(a,{collection:o.collection,parent:n,renderDropIndicator:Lu(i,l)})))}const Qv=Cv("section",zu),eb=Ir("item",function(e,n,r){let o=de(n),i=s.useContext(ke),{dragAndDropHooks:l,dragState:a,dropState:u}=s.useContext(hn),{optionProps:c,labelProps:d,descriptionProps:f,...p}=Sp({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},i,o),{hoverProps:v,isHovered:b}=Ne({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),g=null;a&&l&&(g=l.useDraggableItem({key:r.key},a));let y=null;u&&l&&(y=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},u,o));let $=a&&a.isDragging(r.key),S=ae({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:b,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:$,isDropTarget:y==null?void 0:y.isDropTarget}});s.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&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.")},[r.textValue]);let w=e.href?"a":"div";return s.createElement(w,{...L(c,v,g==null?void 0:g.dragProps,y==null?void 0:y.dropProps),...S,ref:o,"data-allows-dragging":!!a||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.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},s.createElement(ze,{values:[[bn,{slots:{[nn]:d,label:d,description:f}}]]},S.children))});function tb(t,e){e=de(e);let{dragAndDropHooks:n,dropState:r}=s.useContext(hn),{dropIndicatorProps:o,isHidden:i,isDropTarget:l}=n.useDropIndicator(t,r,e);return i?null:s.createElement(rb,{...t,dropIndicatorProps:o,isDropTarget:l,ref:e})}function nb(t,e){let{dropIndicatorProps:n,isDropTarget:r,...o}=t,i=ae({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return s.createElement("div",{...n,...i,role:"option",ref:e,"data-drop-target":r||void 0})}const rb=s.forwardRef(nb),Ou=s.createContext({placement:"bottom"}),Or=s.createContext(null),ri=s.createContext(null),Vu=s.forwardRef(function(e,n){[e,n]=fe(e,n,Or);let r=s.useContext(gn),o=mn(e),i=e.isOpen!=null||e.defaultOpen!=null||!r?o:r,l=Si(n,i.isOpen)||e.isExiting||!1,a=gv(),{direction:u}=xe();if(a){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),s.createElement(s.Fragment,null,c)}return i&&!i.isOpen&&!l?null:s.createElement(ob,{...e,triggerRef:e.triggerRef,state:i,popoverRef:n,isExiting:l,dir:u})});function ob({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let o=s.useRef(null),[i,l]=s.useState(0),a=s.useRef(null),u=s.useContext(ri),c=u&&r.trigger==="SubmenuTrigger";V(()=>{o.current&&t.isOpen&&l(o.current.getBoundingClientRect().width)},[t.isOpen,o]);var d;let{popoverProps:f,underlayProps:p,arrowProps:v,placement:b}=sp({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:i,groupRef:c?u:a},t),g=r.popoverRef,y=Pi(g,!!b)||r.isEntering||!1,$=ae({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:b,isEntering:y,isExiting:e}}),S=!r.isNonModal||r.trigger==="SubmenuTrigger",[w,B]=s.useState(!1);V(()=>{g.current&&B(S&&!g.current.querySelector("[role=dialog]"))},[g,S]),s.useEffect(()=>{w&&g.current&&!g.current.contains(document.activeElement)&&ie(g.current)},[w,g]);let k={...f.style,...$.style},C=s.createElement("div",{...L(q(r),f),...$,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:g,slot:r.slot||void 0,style:k,dir:r.dir,"data-trigger":r.trigger,"data-placement":b,"data-entering":y||void 0,"data-exiting":e||void 0},!r.isNonModal&&s.createElement(Lo,{onDismiss:t.close}),s.createElement(Ou.Provider,{value:{...v,placement:b,ref:o}},$.children),s.createElement(Lo,{onDismiss:t.close}));if(!c)return s.createElement(Mo,{...r,shouldContainFocus:w,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&s.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),s.createElement("div",{ref:a,style:{display:"contents"}},s.createElement(ri.Provider,{value:a},C)));var K;return s.createElement(Mo,{...r,shouldContainFocus:w,isExiting:e,portalContainer:(K=n??(u==null?void 0:u.current))!==null&&K!==void 0?K:void 0},C)}const ib=s.createContext(null),Hu=s.createContext(null),gn=s.createContext(null);function lb(t){let e=zv(t),n=s.useRef(null),{triggerProps:r,overlayProps:o}=rl({type:"dialog"},e,n);return r.id=J(),o["aria-labelledby"]=r.id,s.createElement(ze,{values:[[gn,e],[ib,e],[Hu,o],[Or,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"]}]]},s.createElement(Od,{...r,ref:n,isPressed:e.isOpen},t.children))}const ab=s.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=fe(e,n,Hu);let{dialogProps:o,titleProps:i}=Tp({...e,"aria-labelledby":r},n),l=s.useContext(gn);!o["aria-label"]&&!o["aria-labelledby"]&&(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&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 a=ae({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return s.createElement("section",{...q(e),...o,...a,ref:n,slot:e.slot||void 0},s.createElement(ze,{values:[[vv,{slots:{[nn]:{},title:{...i,level:2}}}],[Tt,{slots:{[nn]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))});function sb(t){return t&&t.__esModule?t.default:t}const Vr=s.createContext(null),Hr=s.createContext(null),ub=s.forwardRef(function(e,n){[e,n]=fe(e,n,Vr);let{children:r,isDisabled:o=!1,isInvalid:i=!1,isRequired:l=!1}=e,a=s.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,o,i,l]);return s.createElement(Kr,{content:a},u=>s.createElement(cb,{props:e,collection:u,selectRef:n}))});function cb({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=Rr(jv)||{};var o,i;let l=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:r)!==null&&i!==void 0?i:"native",a=Ov({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:u,focusProps:c}=Ee({within:!0}),d=s.useRef(null),[f,p]=Br(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:v,triggerProps:b,valueProps:g,menuProps:y,descriptionProps:$,errorMessageProps:S,...w}=_p({...bv(t),label:p,validationBehavior:l},a,d),[B,k]=s.useState(null),C=s.useCallback(()=>{d.current&&k(d.current.offsetWidth+"px")},[d]);qn({ref:d,onResize:C});let K=s.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:u,isDisabled:t.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,u,t.isDisabled,w.isInvalid,t.isRequired]),F=ae({...t,values:K,defaultClassName:"react-aria-Select"}),M=q(t);delete M.id;let A=s.useRef(null);return s.createElement(ze,{values:[[Vr,t],[Hr,a],[ju,g],[Ys,{...v,ref:f,elementType:"span"}],[Tt,{...b,ref:d,isPressed:a.isOpen}],[gn,a],[Or,{trigger:"Select",triggerRef:d,scrollRef:A,placement:"bottom start",style:{"--trigger-width":B},"aria-labelledby":y["aria-labelledby"]}],[zr,{...y,ref:A}],[ke,a],[bn,{slots:{description:$,errorMessage:S}}],[Av,w]]},s.createElement("div",{...M,...F,...c,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":u||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-required":t.isRequired||void 0}),s.createElement(Up,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const ju=s.createContext(null),db=s.forwardRef(function(e,n){var r,o;[e,n]=fe(e,n,ju);let i=s.useContext(Hr),{placeholder:l}=Rr(Vr),a=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,u=a==null?void 0:a.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=ct(sb(Ku),"react-aria-components");var d,f,p;let v=ae({...e,defaultChildren:(d=u??l)!==null&&d!==void 0?d:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(r=i.selectedItem)===null||r===void 0?void 0:r.value)!==null&&f!==void 0?f:null,selectedText:(p=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&p!==void 0?p:null,isPlaceholder:!a}}),b=q(e);return s.createElement("span",{ref:n,...b,...v,"data-placeholder":!a||void 0},s.createElement(bn.Provider,{value:void 0},v.children))}),fb=s.createContext(null),_u=s.createContext(null),pb=s.forwardRef(function(e,n){return[e,n]=fe(e,n,fb),s.createElement(Kr,{content:e.children},r=>s.createElement(vb,{props:e,forwardedRef:n,collection:r}))});function vb({props:t,forwardedRef:e,collection:n}){let r=s.useRef(null),[o,i]=Br(!t["aria-label"]&&!t["aria-labelledby"]),l=Nr({...t,children:void 0,collection:n}),a=q(t),u=Object.fromEntries(Object.entries(a).map(([b])=>[b,void 0])),{gridProps:c,labelProps:d,descriptionProps:f,errorMessageProps:p}=Gp({...t,...u,label:i},l,r);var v;return s.createElement("div",{...a,ref:e,slot:t.slot||void 0,className:(v=t.className)!==null&&v!==void 0?v:"react-aria-TagGroup",style:t.style},s.createElement(ze,{values:[[Ys,{...d,elementType:"span",ref:o}],[_u,{...c,ref:r}],[ke,l],[bn,{slots:{description:f,errorMessage:p}}]]},t.children))}const bb=s.forwardRef(function(e,n){return s.useContext(ke)?s.createElement(mb,{props:e,forwardedRef:n}):s.createElement(Lr,e)});function mb({props:t,forwardedRef:e}){let n=s.useContext(ke),{CollectionRoot:r}=s.useContext(Rt),[o,i]=fe(t,e,_u);delete o.items,delete o.renderEmptyState;let{focusProps:l,isFocused:a,isFocusVisible:u}=Ee(),c={isEmpty:n.collection.size===0,isFocused:a,isFocusVisible:u,state:n},d=ae({className:t.className,style:t.style,defaultClassName:"react-aria-TagList",values:c}),f=Uv(n.selectionManager.focusedKey);return s.createElement("div",{...L(o,l),...d,ref:i,"data-empty":n.collection.size===0||void 0,"data-focused":a||void 0,"data-focus-visible":u||void 0},n.collection.size===0&&t.renderEmptyState?t.renderEmptyState(c):s.createElement(r,{collection:n.collection,persistedKeys:f}))}const hb=Ir("item",(t,e,n)=>{let r=s.useContext(ke),o=de(e),{focusProps:i,isFocusVisible:l}=Ee({within:!0}),{rowProps:a,gridCellProps:u,removeButtonProps:c,...d}=Zp({item:n},r,o),{hoverProps:f,isHovered:p}=Ne({isDisabled:!d.allowsSelection,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),v=ae({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tag",values:{...d,isFocusVisible:l,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior}});return s.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[n.textValue]),s.createElement("div",{ref:o,...v,...L(q(t),a,i,f),"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":l||void 0,"data-pressed":d.isPressed||void 0,"data-allows-removing":d.allowsRemoving||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},s.createElement("div",{...u,style:{display:"contents"}},s.createElement(ze,{values:[[Tt,{slots:{remove:c}}],[Rt,Qs]]},v.children)))}),gb=s.createContext({}),Wu=s.createContext(null),yb=s.forwardRef(function(e,n){[e,n]=fe(e,n,gb);let r=If(e),{groupProps:o}=Pf(e,r,n),i=ae({...e,values:{isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"});return s.createElement("div",{...o,...i,ref:n,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},s.createElement(Wu.Provider,{value:r},i.children))}),$b=s.createContext({}),xb=s.forwardRef(function(e,n){[e,n]=fe(e,n,$b);let r=s.useContext(Wu),o=Xi(r&&e.id!=null?{isSelected:r.selectedKeys.has(e.id),onChange(g){r.setSelected(e.id,g)}}:e),{buttonProps:i,isPressed:l,isSelected:a,isDisabled:u}=r&&e.id!=null?Sf({...e,id:e.id},r,n):Hi({...e,id:e.id!=null?String(e.id):void 0},o,n),{focusProps:c,isFocused:d,isFocusVisible:f}=Ee(e),{hoverProps:p,isHovered:v}=Ne(e),b=ae({...e,id:void 0,values:{isHovered:v,isPressed:l,isFocused:d,isSelected:o.isSelected,isFocusVisible:f,isDisabled:u,state:o},defaultClassName:"react-aria-ToggleButton"});return s.createElement("button",{...L(i,c,p),...b,ref:n,slot:e.slot||void 0,"data-focused":d||void 0,"data-disabled":u||void 0,"data-pressed":l||void 0,"data-selected":a||void 0,"data-hovered":v||void 0,"data-focus-visible":f||void 0})}),jr=s.createContext(null),Uu=s.createContext(null);function Eb(t){let e=Js(t),n=s.useRef(null),{triggerProps:r,tooltipProps:o}=Xp(t,e,n);return s.createElement(ze,{values:[[jr,e],[Uu,{...o,triggerRef:n}]]},s.createElement(zd,{...r,ref:n},t.children))}const Cb=s.forwardRef(function({UNSTABLE_portalContainer:e,...n},r){[n,r]=fe(n,r,Uu);let o=s.useContext(jr),i=Js(n),l=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,a=Si(r,l.isOpen)||n.isExiting||!1;return!l.isOpen&&!a?null:s.createElement(op,{portalContainer:e},s.createElement(Pb,{...n,tooltipRef:r,isExiting:a}))});function Pb(t){let e=s.useContext(jr),n=s.useRef(null),[r,o]=s.useState(0);V(()=>{n.current&&e.isOpen&&o(n.current.getBoundingClientRect().width)},[e.isOpen,n]);let{overlayProps:i,arrowProps:l,placement:a}=nl({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:e.isOpen,arrowSize:r,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,onClose:()=>e.close(!0)}),u=Pi(t.tooltipRef,!!a)||t.isEntering||!1,c=ae({...t,defaultClassName:"react-aria-Tooltip",values:{placement:a,isEntering:u,isExiting:t.isExiting,state:e}});t=L(t,i);let{tooltipProps:d}=Yp(t,e);return s.createElement("div",{...d,ref:t.tooltipRef,...c,style:{...i.style,...c.style},"data-placement":a??void 0,"data-entering":u||void 0,"data-exiting":t.isExiting||void 0},s.createElement(Ou.Provider,{value:{...l,placement:a,ref:n}},c.children))}const dt=s.forwardRef(({children:t,...e},n)=>{const[r,o]=fe(e,n,Tt);return E.jsx(vn,{px:0,py:0,ref:o,...r,children:t})});dt.displayName="IconButton";const Gu=s.forwardRef((t,e)=>E.jsx(P.Image,{ref:e,...t}));Gu.displayName="Image";const qu=P.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:Sb}=P.createRecipeContext({recipe:qu}),wb=Sb("a"),Zu=s.forwardRef((t,e)=>{const{as:n,asChild:r,children:o,...i}=t,l=s.useRef(null),a=de(P.mergeRefs(l,e)),u=n||(r?"span":"a")||"a",{linkProps:c}=Wd({...i,elementType:u},a);return E.jsx(wb,{...L(i,c,{as:n,asChild:r,ref:a}),children:o})});Zu.displayName="Link";const Db=t=>E.jsx(P.List.Root,{...t}),kb=t=>E.jsx(P.List.Item,{...t}),Yu=s.forwardRef((t,e)=>E.jsx(P.SimpleGrid,{ref:e,...t}));Yu.displayName="SimpleGrid";const Tb=Object.assign(Yu,{Item:P.GridItem}),Rb=t=>E.jsx(P.Table.Root,{...t}),Bb=t=>E.jsx(P.Table.ColumnGroup,{...t}),Ab=t=>E.jsx(P.Table.Column,{...t}),Fb=t=>E.jsx(P.Table.Header,{...t}),Kb=t=>E.jsx(P.Table.Footer,{...t}),Ib=t=>E.jsx(P.Table.Row,{...t}),Lb=t=>E.jsx(P.Table.Cell,{...t}),Mb=t=>E.jsx(P.Table.Body,{...t}),Nb=t=>E.jsx(P.Table.ColumnHeader,{...t}),Xu=s.forwardRef((t,e)=>E.jsx(P.Text,{ref:e,...t}));Xu.displayName="Text";const Ju=P.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:zb}=P.createRecipeContext({recipe:Ju}),Ob=zb("div"),Qu=s.forwardRef(function({children:e,placement:n="bottom",...r},o){return E.jsx(Ob,{ref:o,asChild:!0,...r,children:E.jsx(Cb,{placement:n,...r,children:e})})});Qu.displayName="Tooltip";const ec=Eb;ec.displayName="TooltipTrigger";const tc=s.forwardRef(function(e,n){const r=s.useRef(null),o=de(P.mergeRefs(r,n)),{focusableProps:i}=Xe(e,o);if(s.isValidElement(e.children))return s.cloneElement(e.children,L(i,e.children.props,{ref:o}))});tc.displayName="MakeElementFocusable";var Vb=(t,e,n,r,o,i,l,a)=>{let u=document.documentElement,c=["light","dark"];function d(v){(Array.isArray(t)?t:[t]).forEach(b=>{let g=b==="class",y=g&&i?o.map($=>i[$]||$):o;g?(u.classList.remove(...y),u.classList.add(i&&i[v]?i[v]:v)):u.setAttribute(b,v)}),f(v)}function f(v){a&&c.includes(v)&&(u.style.colorScheme=v)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let v=localStorage.getItem(e)||n,b=l&&v==="system"?p():v;d(b)}catch{}},oi=["light","dark"],nc="(prefers-color-scheme: dark)",Hb=typeof window>"u",_r=ee.createContext(void 0),jb={setTheme:t=>{},themes:[]},_b=()=>{var t;return(t=ee.useContext(_r))!=null?t:jb},Wb=t=>ee.useContext(_r)?ee.createElement(ee.Fragment,null,t.children):ee.createElement(Gb,{...t}),Ub=["light","dark"],Gb=({forcedTheme:t,disableTransitionOnChange:e=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=Ub,defaultTheme:l=n?"system":"light",attribute:a="data-theme",value:u,children:c,nonce:d,scriptProps:f})=>{let[p,v]=ee.useState(()=>Zb(o,l)),[b,g]=ee.useState(()=>p==="system"?Hn():p),y=u?Object.values(u):i,$=ee.useCallback(k=>{let C=k;if(!C)return;k==="system"&&n&&(C=Hn());let K=u?u[C]:C,F=e?Yb(d):null,M=document.documentElement,A=h=>{h==="class"?(M.classList.remove(...y),K&&M.classList.add(K)):h.startsWith("data-")&&(K?M.setAttribute(h,K):M.removeAttribute(h))};if(Array.isArray(a)?a.forEach(A):A(a),r){let h=oi.includes(l)?l:null,R=oi.includes(C)?C:h;M.style.colorScheme=R}F==null||F()},[d]),S=ee.useCallback(k=>{let C=typeof k=="function"?k(p):k;v(C);try{localStorage.setItem(o,C)}catch{}},[p]),w=ee.useCallback(k=>{let C=Hn(k);g(C),p==="system"&&n&&!t&&$("system")},[p,t]);ee.useEffect(()=>{let k=window.matchMedia(nc);return k.addListener(w),w(k),()=>k.removeListener(w)},[w]),ee.useEffect(()=>{let k=C=>{C.key===o&&(C.newValue?v(C.newValue):S(l))};return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[S]),ee.useEffect(()=>{$(t??p)},[t,p]);let B=ee.useMemo(()=>({theme:p,setTheme:S,forcedTheme:t,resolvedTheme:p==="system"?b:p,themes:n?[...i,"system"]:i,systemTheme:n?b:void 0}),[p,S,t,b,n,i]);return ee.createElement(_r.Provider,{value:B},ee.createElement(qb,{forcedTheme:t,storageKey:o,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:l,value:u,themes:i,nonce:d,scriptProps:f}),c)},qb=ee.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,themes:a,nonce:u,scriptProps:c})=>{let d=JSON.stringify([n,e,i,t,a,l,r,o]).slice(1,-1);return ee.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${Vb.toString()})(${d})`}})}),Zb=(t,e)=>{if(Hb)return;let n;try{n=localStorage.getItem(t)||void 0}catch{}return n||e},Yb=t=>{let e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.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(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Hn=t=>(t||(t=window.matchMedia(nc)),t.matches?"dark":"light");function Xb(t){return E.jsx(Wb,{attribute:"class",disableTransitionOnChange:!0,...t})}function Wr(){const{resolvedTheme:t,setTheme:e}=_b();return{colorMode:t,setColorMode:e,toggleColorMode:()=>{e(t==="light"?"dark":"light")}}}function Jb(t,e){const{colorMode:n}=Wr();return n==="light"?t:e}function Qb(){const{colorMode:t}=Wr();return t==="light"?"Light Theme":"DarkTheme"}const e0=P.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 t0(t){var n;const e={};for(const r in t)(n=t[r])!=null&&n.value?e[r]=t[r].value:e[r]=t[r];return e}const n0=t0(G.themeTokens.breakpoints),r0=P.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"}}),o0={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"}}},i0=P.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),l0=P.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"}}),a0=P.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"}}),s0=P.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"}}),Ur=P.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"}}),u0={avatar:fi,button:We,code:l0,heading:a0,kbd:s0,link:qu,tooltip:Ju,textInput:Ur},c0=P.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}"}},...G.themeTokens.color["system-palettes"],...G.themeTokens.color["brand-palettes"],...G.themeTokens.color["semantic-palettes"]}),d0=P.defineSemanticTokens.shadows(G.themeTokens.shadow),f0=P.defineSemanticTokens.radii({}),p0={colors:c0,shadows:d0,radii:f0},v0=P.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"}}),b0=P.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"}}),m0=P.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"}}),h0=P.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"}}),rc=P.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"}}),g0=P.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"}}),y0=P.defineSlotRecipe({slots:["root","tagList","tag"],className:"nimbus-tag-group",base:{root:{display:"flex",flexDirection:"column",gapY:"50"},tagList:{display:"flex",flexWrap:"wrap",gap:"100"},tag:{colorPalette:"primary",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",gap:"100",borderRadius:"200",background:"colorPalette.3",fontSize:"400",lineHeight:"500",focusVisibleRing:"outside","&[data-disabled] &":{layerStyle:"disabled",pointerEvents:"none"},"&[data-selected]":{background:"colorPalette.9",color:"colorPalette.contrast",cursor:"button"},"&[aria-selected]":{cursor:"button"},"& [role='gridcell']":{display:"inline-flex !important",alignItems:"center",justifyContent:"space-between",gapX:"100"}}},variants:{size:{sm:{tag:{minH:"600",paddingX:"200",fontSize:"350",lineHeight:"400"}},md:{tag:{minH:"800",paddingX:"200",paddingY:"100"}},lg:{tag:{minH:"1000",padding:"200"}}}},defaultVariants:{size:"lg"}}),$0={dialog:v0,list:b0,table:m0,checkbox:h0,select:rc,accordion:g0,taggroup:y0},x0=P.defineTextStyles(G.themeTokens.textStyle),E0=P.defineTokens.durations(G.themeTokens.aspectRatio),C0=P.defineTokens.animations(G.themeTokens.animation),P0=P.defineTokens.blurs(G.themeTokens.blur),S0=P.defineTokens.borders(G.themeTokens.border),w0=P.defineTokens.colors({...G.themeTokens.color["blacks-and-whites"]}),D0=P.defineTokens.durations(G.themeTokens.duration),k0=P.defineTokens.easings(G.themeTokens.easing),T0=P.defineTokens.fonts(G.themeTokens.fontFamily),R0=P.defineTokens.fontSizes(G.themeTokens.fontSize),B0=P.defineTokens.fontWeights(G.themeTokens.fontWeight),A0=t=>Object.keys(t).reduce((e,n)=>{const o=parseFloat(t[n].value)/100;return e[n]={value:`${o}em`},e},{}),F0=P.defineTokens.letterSpacings(A0(G.themeTokens.letterSpacing)),K0=P.defineTokens.lineHeights(G.themeTokens.lineHeight),I0=P.defineTokens.radii(G.themeTokens.borderRadius),L0=P.defineTokens.spacing(G.themeTokens.spacing),M0=P.defineTokens.sizes({...G.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"}}),N0=P.defineTokens.zIndex(G.themeTokens.zIndex),z0=P.defineTokens.cursor(G.themeTokens.cursor),O0={aspectRatios:E0,animations:C0,blurs:P0,borders:S0,colors:w0,durations:D0,easings:k0,fonts:T0,fontSizes:R0,fontWeights:B0,letterSpacings:F0,lineHeights:K0,radii:I0,spacing:L0,sizes:M0,zIndex:N0,cursor:z0},V0=P.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:r0,theme:{breakpoints:n0,keyframes:o0,tokens:O0,semanticTokens:p0,recipes:u0,slotRecipes:$0,textStyles:x0,layerStyles:i0,animationStyles:e0}}),oc=P.createSystem(P.defaultBaseConfig,V0);function H0(){const[t,e]=s.useState(n());function n(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return s.useEffect(()=>{const r=document.documentElement,o=new MutationObserver(()=>{const i=n();e(i)});return o.observe(r,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),t}function j0({children:t,...e}){return E.jsx(P.ChakraProvider,{value:oc,children:E.jsx(Xb,{enableSystem:!1,...e,children:E.jsx(E.Fragment,{children:t})})})}function yn(t){const e={},n={...t};return Object.keys(t).forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&P.defaultSystem.isValidProperty(r)&&(e[r]=t[r],delete n[r])}),[e,n]}const{withProvider:_0,withContext:ic}=P.createSlotRecipeContext({key:"checkbox"}),W0=_0("label","root"),U0=ic("span","label"),G0=ic("span","indicator"),lc=s.forwardRef((t,e)=>{const n=s.useRef(null),r=de(P.mergeRefs(n,e)),o=P.useSlotRecipe({key:"checkbox"}),[i]=o.splitVariantProps(t),[l,a]=yn(t),u=Xi(t),{inputProps:c}=Kf(a,u,r),{isFocused:d,focusProps:f}=Ee(),p=u.isSelected&&!t.isIndeterminate,v=t.isIndeterminate,b={"data-selected":p,"data-indeterminate":v,"data-invalid":t.isInvalid,"data-disabled":t.isDisabled,"data-focus":d||void 0};return E.jsxs(W0,{"data-slot":"root",...i,...b,...l,children:[E.jsxs(G0,{"data-slot":"indicator",...b,children:[p&&E.jsx(ce.Check,{}),v&&E.jsx(ce.Remove,{}),E.jsx(Gr,{as:"span",children:E.jsx("input",{...L(c,f),ref:r})})]}),t.children&&E.jsx(U0,{"data-slot":"label",...b,children:t.children})]})});lc.displayName="Checkbox";const $n=s.forwardRef((t,e)=>E.jsx(P.Stack,{ref:e,...t}));$n.displayName="Stack";const Gr=t=>{const{as:e="div",...n}=t;return E.jsx(Qi,{elementType:e,...n})};Gr.displayName="VisuallyHidden";const{withContext:q0}=P.createRecipeContext({recipe:Ur}),Z0=q0("input"),ac=s.forwardRef((t,e)=>{const n=P.useRecipe({recipe:Ur}),r=s.useRef(null),o=de(P.mergeRefs(r,e)),[i,l]=n.splitVariantProps(t),[a,u]=yn(l),{inputProps:c}=Lf(u,o);return E.jsx(Z0,{...i,...a,...u,asChild:!0,children:E.jsx(Dv,{ref:o,...c})})});ac.displayName="TextInput";const sc=s.forwardRef((t,e)=>E.jsx(P.Grid,{ref:e,...t}));sc.displayName="Grid";const Y0=Object.assign(sc,{Item:P.GridItem}),{withProvider:X0,withContext:Bt}=P.createSlotRecipeContext({key:"select"}),J0=X0("div","root"),Q0=Bt("button","trigger"),em=Bt("span","triggerLabel"),tm=Bt("div","options"),nm=Bt("div","option"),rm=Bt("div","optionGroup"),uc=()=>{const t=s.useContext(Hr);if(!(t!=null&&t.selectedKey))return null;const e=()=>{t==null||t.setSelectedKey(null)};return E.jsx(dt,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:e,children:E.jsx(ce.Close,{})})};uc.displayName="Select.ClearButton";const qr=s.forwardRef(({children:t,isLoading:e,isDisabled:n,...r},o)=>{const i=P.useSlotRecipe({recipe:rc}),[l,a]=i.splitVariantProps(r),[u,c]=yn(a),d={...c,isDisabled:e||n};return E.jsx(J0,{asChild:!0,ref:o,...l,...u,children:E.jsxs(ub,{...d,children:[E.jsxs(P.chakra.div,{position:"relative",children:[E.jsx(Q0,{zIndex:0,asChild:!0,children:E.jsx(Rv,{children:E.jsx(em,{asChild:!0,children:E.jsx(db,{})})})}),E.jsxs(P.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[E.jsx(P.Flex,{width:"600",my:"auto",children:E.jsx(uc,{})}),E.jsx(P.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:E.jsx(Pe,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:e?E.jsx(Pe,{asChild:!0,animation:"spin",animationDuration:"slowest",children:E.jsx(ce.Loop,{})}):E.jsx(ce.KeyboardArrowDown,{})})})]})]}),E.jsx(Vu,{children:t})]})})});qr.displayName="Select.Root";const xn=t=>s.forwardRef(t),Zr=xn((t,e)=>{const[n,r]=yn(t);return E.jsx(tm,{asChild:!0,...n,children:E.jsx(Xv,{ref:e,...r})})});Zr.displayName="Select.Options";const Yr=xn((t,e)=>E.jsx(nm,{asChild:!0,ref:e,children:E.jsx(eb,{...t})}));Yr.displayName="Select.Option";const Xr=xn(({label:t,items:e,children:n,...r},o)=>{if(e&&typeof n!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return E.jsxs(Qv,{ref:o,...r,children:[E.jsx(rm,{asChild:!0,children:E.jsx(Zv,{children:t})}),e?E.jsx(Lr,{items:e,children:i=>typeof n=="function"?n(i):null}):n]})});Xr.displayName="Select.OptionGroup";const om={Root:qr,Options:Zr,Option:Yr,OptionGroup:Xr},{withProvider:im,withContext:At}=P.createSlotRecipeContext({key:"accordion"}),lm=im("div","root"),am=At("div","disclosure"),sm=At("button","trigger"),um=At("div","panel"),cm=At("div","accordionTitle"),dr=At("div","headerContentRight"),Jr=s.createContext(null),cc=s.createContext(null),dm=s.forwardRef(({children:t,onExpandedChange:e,...n},r)=>{const o=Nv({...n,onExpandedChange:a=>{e==null||e(a.size>0)}}),i=P.useSlotRecipe({key:"accordion"}),[l]=i.splitVariantProps(n);return E.jsx(cc.Provider,{value:o,children:E.jsx(lm,{"data-slot":"root",ref:r,...l,children:t})})}),fm=s.forwardRef(({children:t},e)=>{const n=s.useContext(Jr);if(!n)throw new Error("Accordion.Header must be used within Accordion.Item");const r=s.Children.toArray(t).reduce((o,i)=>(s.isValidElement(i)&&i.type===dr?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return E.jsxs(P.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[E.jsxs(sm,{ref:P.mergeRefs(n.triggerRef,e),...n.buttonProps,"data-slot":"trigger",outline:n.isFocusVisible?void 0:"none",children:[E.jsx(ce.KeyboardArrowRight,{}),E.jsx(cm,{"data-slot":"accordionTitle",children:r.main})]}),r.rightContent.length>0&&E.jsx(dr,{"data-slot":"headerContentRight",children:r.rightContent})]})}),pm=s.forwardRef((t,e)=>{const n=s.useContext(Jr),r=de(P.mergeRefs(n==null?void 0:n.panelRef,e));return E.jsx(um,{ref:r,...P.mergeProps({...n==null?void 0:n.panelProps,...t}),"data-slot":"panel",children:t.children})}),vm=s.forwardRef(({children:t,id:e,isDisabled:n,isExpanded:r,onExpandedChange:o,value:i},l)=>{const a=J(),c=i||(e||a),d=s.useContext(cc),f=d?d.expandedKeys.has(c):r,p=Mv({isExpanded:f,onExpandedChange:C=>{d&&d.toggleKey(c),o==null||o(C)}}),v=s.useRef(null),b=s.useRef(null),g=n||(d==null?void 0:d.isDisabled)||!1,{buttonProps:y,panelProps:$}=Rp({isExpanded:p.isExpanded,isDisabled:g},p,v),{buttonProps:S}=dn(y,b),{focusProps:w,isFocusVisible:B}=Ee(),k={isExpanded:p.isExpanded,triggerRef:b,panelRef:v,buttonProps:L(S,w),panelProps:$,isFocusVisible:B};return E.jsx(Jr.Provider,{value:k,children:E.jsx(am,{"data-slot":"disclosure","data-value":c,"data-expanded":p.isExpanded,ref:l,children:t})})}),bm={Root:dm,Item:vm,Header:fm,Content:pm,HeaderRightContent:dr},mm=P.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:hm}=P.createRecipeContext({recipe:mm}),gm=hm("div"),ym="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",$m="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",dc=s.forwardRef(({"aria-label":t="Loading data",...e},n)=>{const{progressBarProps:r}=jp({isIndeterminate:!0,"aria-label":t,...e});return E.jsx(gm,{ref:n,...L(e,r),"aria-label":t,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[E.jsx("path",{d:ym,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:$m,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});dc.displayName="LoadingSpinner";const xm=P.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:Em,withContext:fc}=P.createSlotRecipeContext({recipe:xm}),Cm=Em("div","root"),Pm=fc("div","header"),Sm=fc("div","content"),Qr=s.createContext(void 0),eo=s.forwardRef(({children:t,...e},n)=>{const{isFocused:r,isFocusVisible:o,focusProps:i}=Ee(),[l,a]=s.useState(null),[u,c]=s.useState(null),d=s.useMemo(()=>({setHeader:a,setContent:c}),[a,c]);return E.jsx(Qr.Provider,{value:d,children:E.jsxs(Cm,{ref:n,...L(e,i),"data-focus":r||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[E.jsxs($n,{direction:"column",gap:"200",children:[l,u]}),t]})})});eo.displayName="Card.Root";const to=({children:t,...e})=>{const n=s.useContext(Qr);return s.useEffect(()=>{if(n){const r=E.jsx(Pm,{...e,children:t});return n.setHeader(r),()=>n.setHeader(null)}},[t,e]),null};to.displayName="Card.Header";const no=({children:t,...e})=>{const n=s.useContext(Qr);return s.useEffect(()=>{if(n){const r=E.jsx(Sm,{...e,children:t});return n.setContent(r),()=>n.setContent(null)}},[t,e]),null};no.displayName="Card.Content";const wm={Root:eo,Header:to,Content:no},Dm=P.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:km}=P.createRecipeContext({recipe:Dm}),Tm=km("span"),Rm=s.forwardRef((t,e)=>{const{as:n,asChild:r,children:o,...i}=t,l=s.useRef(null),a=de(P.mergeRefs(l,e)),u=n||"span";return E.jsx(Tm,{as:u,...L(i,{ref:a}),children:o})}),Bm=P.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:Am,withContext:Ft}=P.createSlotRecipeContext({recipe:Bm}),Fm=Am("div","root"),Km=Ft("div","title"),Im=Ft("div","description"),Lm=Ft("div","icon"),Mm=Ft("div","actions"),Nm=Ft("div","dismissButton"),zm=t=>{switch(t){case"critical":return E.jsx(ce.ErrorOutline,{});case"info":return E.jsx(ce.Info,{});case"warning":return E.jsx(ce.WarningAmber,{});case"positive":return E.jsx(ce.CheckCircleOutline,{});default:return null}},Kt=s.createContext(void 0),pc=s.forwardRef(({children:t,...e},n)=>{const[r,o]=s.useState(null),[i,l]=s.useState(null),[a,u]=s.useState(null),[c,d]=s.useState(null),f=s.useMemo(()=>({setTitle:o,setDescription:l,setActions:u,setDismiss:d}),[o,l,u,d]);return E.jsx(Kt.Provider,{value:f,children:E.jsxs(Fm,{ref:n,...e,role:"alert",children:[E.jsx(Lm,{alignItems:"flex-start",children:zm(e.tone)}),E.jsxs($n,{flex:"1",gap:"200",children:[E.jsxs(Pe,{children:[r,i]}),a]}),c,t]})})});pc.displayName="Alert.Root";const vc=({children:t,...e})=>{const n=s.useContext(Kt);return s.useEffect(()=>{if(n){const r=E.jsx(Km,{...e,fontWeight:"600",children:t});return n.setTitle(r),()=>n.setTitle(null)}},[t,e]),null};vc.displayName="Alert.Title";const bc=({children:t,...e})=>{const n=s.useContext(Kt);return s.useEffect(()=>{if(n){const r=E.jsx(Im,{...e,children:t});return n.setDescription(r),()=>n.setDescription(null)}},[t,e]),null};bc.displayName="Alert.Description";const mc=({children:t,...e})=>{const n=s.useContext(Kt);return s.useEffect(()=>{if(n){const r=E.jsx(Mm,{...e,children:t});return n.setActions(r),()=>n.setActions(null)}},[t,e]),null};mc.displayName="Alert.Actions";const hc=({children:t,...e})=>{const n=s.useContext(Kt);return s.useEffect(()=>{if(n){const r=E.jsx(Nm,{children:E.jsx(dt,{"aria-label":"Dismiss",...e,variant:"ghost",size:"2xs",children:E.jsx(ce.Clear,{role:"img"})})});return n.setDismiss(r),()=>n.setDismiss(null)}},[t,e]),null};hc.displayName="Alert.DismissButton";const Om={Root:pc,Title:vc,Description:bc,Actions:mc,DismissButton:hc};var si,ui,ci,di;const Vm=P.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...We.base,...(si=We.variants)==null?void 0:si.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(ui=We.variants)==null?void 0:ui.variant.solid}},variants:{size:{xs:{button:(ci=We.variants)==null?void 0:ci.size.xs},md:{button:(di=We.variants)==null?void 0:di.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:Hm,withProvider:jm}=P.createSlotRecipeContext({recipe:Vm}),_m=jm(yb,"root"),Wm=Hm(xb,"button"),ro=s.forwardRef(({children:t,...e},n)=>E.jsx(_m,{ref:n,...e,children:t}));ro.displayName="ToggleButtonGroup.Root";const oo=s.forwardRef(({children:t,...e},n)=>E.jsx(Wm,{...e,ref:n,children:t}));oo.displayName="ToggleButtonGroup.Button";const Um={Root:ro,Button:oo},Gm=`
18
18
  "label"
19
19
  "input"
20
20
  "description"
21
21
  "error"
22
- `,Qb=`
22
+ `,qm=`
23
23
  "label input"
24
24
  "label description"
25
25
  "label error"
26
- `,eh=w.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:Jb},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:Qb,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:th,withContext:Tt}=w.createSlotRecipeContext({recipe:eh}),rh=th("div","root"),nh=Tt("div","label"),oh=Tt("div","input"),ih=Tt("div","description"),lh=Tt("div","error"),ah=Tt("div","popover"),sh=s.forwardRef(({isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n,children:o,...i},l)=>{const[a,u]=s.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n}),{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:v}=$n({label:a.label,description:a.description,errorMessage:a.error});s.useEffect(()=>{u(b=>({...b,isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n}))},[t,e,r,n]);const p={...d,isInvalid:t,isRequired:e,isDisabled:r,isReadOnly:n};return P.jsx(qe.Provider,{value:{context:a,setContext:u},children:P.jsxs(rh,{ref:l,...i,children:[a.label&&P.jsxs(nh,{...a.labelSlotProps,children:[P.jsxs("label",{...c,children:[a.label,e&&P.jsx("sup",{"aria-hidden":"true",children:"*"})]}),a.info&&P.jsxs(Lp,{children:[P.jsx(xe,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:P.jsx(xe,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:P.jsx(xt,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:P.jsx(se.HelpOutline,{})})})}),P.jsx(xs,{children:P.jsx(ah,{asChild:!0,children:P.jsx(Fp,{children:P.jsx(xe,{p:"300",children:a.info})})})})]})]}),a.input&&P.jsx(oh,{...a.inputSlotProps,children:s.Children.map(a.input,b=>s.isValidElement(b)?s.cloneElement(b,p):b)}),a.description&&P.jsx(ih,{...f,...a.descriptionSlotProps,children:a.description}),t&&a.error&&P.jsxs(lh,{...v,...a.errorSlotProps,children:[P.jsx(xe,{as:se.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),a.error]}),o]})})}),uh=({children:t,...e})=>{const{setContext:r}=s.useContext(qe);return s.useEffect(()=>{r(n=>({...n,label:t,labelSlotProps:e}))},[t,r]),null},ch=({children:t,...e})=>{const{setContext:r}=s.useContext(qe);return s.useEffect(()=>{r(n=>({...n,input:t,inputSlotProps:e}))},[t,r]),null},dh=({children:t,...e})=>{const{setContext:r}=s.useContext(qe);return s.useEffect(()=>{r(n=>({...n,description:t,descriptionSlotProps:e}))},[t,r]),null},fh=({children:t,...e})=>{const{setContext:r}=s.useContext(qe);return s.useEffect(()=>{r(n=>({...n,error:t,errorSlotProps:e}))},[t,r]),null},ph=({children:t})=>{const{setContext:e}=s.useContext(qe);return s.useEffect(()=>{e(r=>({...r,info:t}))},[t,e]),null},qe=s.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),vh={Root:sh,Label:uh,Input:ch,Description:dh,Error:fh,InfoBox:ph};function on(){return on=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},on.apply(null,arguments)}var Us=["shift","alt","meta","mod","ctrl"],bh={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 we(t){return(t&&bh[t]||t||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function hh(t){return Us.includes(t)}function Fr(t,e){return e===void 0&&(e=","),t.split(e)}function Mr(t,e,r){e===void 0&&(e="+");var n=t.toLocaleLowerCase().split(e).map(function(l){return we(l)}),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(l){return!Us.includes(l)});return on({},o,{keys:i,description:r,hotkey:t})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(t){t.key!==void 0&&Gs([we(t.key),we(t.code)])}),document.addEventListener("keyup",function(t){t.key!==void 0&&qs([we(t.key),we(t.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Ce.clear()})})();var Ce=new Set;function Xn(t){return Array.isArray(t)}function gh(t,e){e===void 0&&(e=",");var r=Xn(t)?t:t.split(e);return r.every(function(n){return Ce.has(n.trim().toLowerCase())})}function Gs(t){var e=Array.isArray(t)?t:[t];Ce.has("meta")&&Ce.forEach(function(r){return!hh(r)&&Ce.delete(r.toLowerCase())}),e.forEach(function(r){return Ce.add(r.toLowerCase())})}function qs(t){var e=Array.isArray(t)?t:[t];t==="meta"?Ce.clear():e.forEach(function(r){return Ce.delete(r.toLowerCase())})}function mh(t,e,r){(typeof r=="function"&&r(t,e)||r===!0)&&t.preventDefault()}function yh(t,e,r){return typeof r=="function"?r(t,e):r===!0||r===void 0}function $h(t){return Ys(t,["input","textarea","select"])}function Ys(t,e){e===void 0&&(e=!1);var r=t.target,n=t.composed,o=null;return xh(r)&&n?o=t.composedPath()[0]&&t.composedPath()[0].tagName:o=r&&r.tagName,Xn(e)?!!(o&&e&&e.some(function(i){var l;return i.toLowerCase()===((l=o)==null?void 0:l.toLowerCase())})):!!(o&&e&&e)}function xh(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function Sh(t,e){return t.length===0&&e?(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):e?t.some(function(r){return e.includes(r)})||t.includes("*"):!0}var Ph=function(e,r,n){n===void 0&&(n=!1);var o=r.alt,i=r.meta,l=r.mod,a=r.shift,u=r.ctrl,c=r.keys,d=e.key,f=e.code,v=e.ctrlKey,p=e.metaKey,b=e.shiftKey,m=e.altKey,y=we(f),$=d.toLowerCase();if(!(c!=null&&c.includes(y))&&!(c!=null&&c.includes($))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(y))return!1;if(!n){if(o===!m&&$!=="alt"||a===!b&&$!=="shift")return!1;if(l){if(!p&&!v)return!1}else if(i===!p&&$!=="meta"&&$!=="os"||u===!v&&$!=="ctrl"&&$!=="control")return!1}return c&&c.length===1&&(c.includes($)||c.includes(y))?!0:c?gh(c):!c},Eh=s.createContext(void 0),wh=function(){return s.useContext(Eh)};function Zs(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(r,n){return r&&Zs(t[n],e[n])},!0):t===e}var Ch=s.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),Th=function(){return s.useContext(Ch)};function kh(t){var e=s.useRef(void 0);return Zs(e.current,t)||(e.current=t),e.current}var Yo=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},Dh=typeof window<"u"?s.useLayoutEffect:s.useEffect;function Rh(t,e,r,n){var o=s.useState(null),i=o[0],l=o[1],a=s.useRef(!1),u=r instanceof Array?n instanceof Array?void 0:n:r,c=Xn(t)?t.join(u==null?void 0:u.splitKey):t,d=r instanceof Array?r:n instanceof Array?n:void 0,f=s.useCallback(e,d??[]),v=s.useRef(f);d?v.current=f:v.current=e;var p=kh(u),b=Th(),m=b.enabledScopes,y=wh();return Dh(function(){if(!((p==null?void 0:p.enabled)===!1||!Sh(m,p==null?void 0:p.scopes))){var $=function(x,M){var F;if(M===void 0&&(M=!1),!($h(x)&&!Ys(x,p==null?void 0:p.enableOnFormTags))){if(i!==null){var N=i.getRootNode();if((N instanceof Document||N instanceof ShadowRoot)&&N.activeElement!==i&&!i.contains(N.activeElement)){Yo(x);return}}(F=x.target)!=null&&F.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||Fr(c,p==null?void 0:p.splitKey).forEach(function(L){var h,R=Mr(L,p==null?void 0:p.combinationKey);if(Ph(x,R,p==null?void 0:p.ignoreModifiers)||(h=R.keys)!=null&&h.includes("*")){if(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(x)||M&&a.current)return;if(mh(x,R,p==null?void 0:p.preventDefault),!yh(x,R,p==null?void 0:p.enabled)){Yo(x);return}v.current(x,R),M||(a.current=!0)}})}},E=function(x){x.key!==void 0&&(Gs(we(x.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&$(x))},C=function(x){x.key!==void 0&&(qs(we(x.code)),a.current=!1,p!=null&&p.keyup&&$(x,!0))},K=i||(u==null?void 0:u.document)||document;return K.addEventListener("keyup",C,u==null?void 0:u.eventListenerOptions),K.addEventListener("keydown",E,u==null?void 0:u.eventListenerOptions),y&&Fr(c,p==null?void 0:p.splitKey).forEach(function(T){return y.addHotkey(Mr(T,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){K.removeEventListener("keyup",C,u==null?void 0:u.eventListenerOptions),K.removeEventListener("keydown",E,u==null?void 0:u.eventListenerOptions),y&&Fr(c,p==null?void 0:p.splitKey).forEach(function(T){return y.removeHotkey(Mr(T,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[i,c,p,m]),l}function Kh(){var t=s.useRef(!1),e=s.useCallback(function(){return t.current},[]);return s.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}var Lh=function(t){t===void 0&&(t={});var e=s.useState(t),r=e[0],n=e[1],o=s.useCallback(function(i){n(function(l){return Object.assign({},l,i instanceof Function?i(l):i)})},[]);return[r,o]},Ar,Zo;function Fh(){return Zo||(Zo=1,Ar=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(o){t.addRange(o)}),e&&e.focus()}}),Ar}var Ir,Xo;function Mh(){if(Xo)return Ir;Xo=1;var t=Fh(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,l)}function o(i,l){var a,u,c,d,f,v,p=!1;l||(l={}),a=l.debug||!1;try{c=t(),d=document.createRange(),f=document.getSelection(),v=document.createElement("span"),v.textContent=i,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(m){if(m.stopPropagation(),l.format)if(m.preventDefault(),typeof m.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[l.format]||e.default;window.clipboardData.setData(y,i)}else m.clipboardData.clearData(),m.clipboardData.setData(l.format,i);l.onCopy&&(m.preventDefault(),l.onCopy(m.clipboardData))}),document.body.appendChild(v),d.selectNodeContents(v),f.addRange(d);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");p=!0}catch(m){a&&console.error("unable to copy using execCommand: ",m),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",i),l.onCopy&&l.onCopy(window.clipboardData),p=!0}catch(y){a&&console.error("unable to copy using clipboardData: ",y),a&&console.error("falling back to prompt"),u=n("message"in l?l.message:r),window.prompt(u,i)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),v&&document.body.removeChild(v),c()}return p}return Ir=o,Ir}var Ah=Mh();const Ih=Qd(Ah);var Nh=function(){var t=Kh(),e=Lh({value:void 0,error:void 0,noUserInteraction:!0}),r=e[0],n=e[1],o=s.useCallback(function(i){if(t()){var l,a;try{if(typeof i!="string"&&typeof i!="number"){var u=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(u),n({value:i,error:u,noUserInteraction:!0});return}else if(i===""){var u=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(u),n({value:i,error:u,noUserInteraction:!0});return}a=i.toString(),l=Ih(a),n({value:a,error:void 0,noUserInteraction:l})}catch(c){n({value:a,error:c,noUserInteraction:l})}}},[]);return[r,o]};Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>w.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>w.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>w.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>w.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>w.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>w.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>w.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>w.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>w.Table});exports.Accordion=$b;exports.Alert=Wb;exports.Avatar=ni;exports.Badge=Ab;exports.Box=xe;exports.Button=or;exports.Card=Kb;exports.CardContent=qn;exports.CardHeader=Gn;exports.CardRoot=Un;exports.Checkbox=Ms;exports.ColorModeLabel=iv;exports.DialogActionTrigger=Cf;exports.DialogBackdrop=Sf;exports.DialogBody=xf;exports.DialogCloseTrigger=gf;exports.DialogContent=hf;exports.DialogDescription=Ef;exports.DialogFooter=yf;exports.DialogHeader=$f;exports.DialogRoot=mf;exports.DialogTitle=Pf;exports.DialogTrigger=wf;exports.FormField=vh;exports.FormFieldContext=qe;exports.Grid=tb;exports.IconButton=xt;exports.Link=ha;exports.ListItem=Rf;exports.ListRoot=Df;exports.LoadingSpinner=Os;exports.MakeElementFocusable=Ds;exports.NimbusProvider=qv;exports.Select=ub;exports.SimpleGrid=Kf;exports.Stack=dr;exports.TableBody=Of;exports.TableCell=Bf;exports.TableColumn=Mf;exports.TableColumnGroup=Ff;exports.TableColumnHeader=zf;exports.TableFooter=If;exports.TableHeader=Af;exports.TableRoot=Lf;exports.TableRow=Nf;exports.Text=ma;exports.TextInput=As;exports.ToggleButtonGroup=Xb;exports.ToggleButtonGroupButton=Zn;exports.ToggleButtonGroupRoot=Yn;exports.Tooltip=Ts;exports.TooltipTrigger=ks;exports.VisuallyHidden=Bn;exports._SelectOption=Vn;exports._SelectOptionGroup=jn;exports._SelectOptions=Hn;exports._SelectRoot=On;exports.system=Ls;exports.useColorMode=In;exports.useColorModeValue=ov;exports.useColorScheme=Gv;exports.useCopyToClipboard=Nh;exports.useHotkeys=Rh;
26
+ `,Zm=P.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:Gm},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:qm,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:Ym,withContext:It}=P.createSlotRecipeContext({recipe:Zm}),Xm=Ym("div","root"),Jm=It("div","label"),Qm=It("div","input"),eh=It("div","description"),th=It("div","error"),nh=It("div","popover"),rh=s.forwardRef(({isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r,children:o,...i},l)=>{const[a,u]=s.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r}),{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:p}=fn({label:a.label,description:a.description,errorMessage:a.error});s.useEffect(()=>{u(b=>({...b,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r}))},[t,e,n,r]);const v={...d,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r};return E.jsx(Je.Provider,{value:{context:a,setContext:u},children:E.jsxs(Xm,{ref:l,...i,children:[a.label&&E.jsxs(Jm,{...a.labelSlotProps,children:[E.jsxs("label",{...c,children:[a.label,e&&E.jsx("sup",{"aria-hidden":"true",children:"*"})]}),a.info&&E.jsxs(lb,{children:[E.jsx(Pe,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:E.jsx(Pe,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:E.jsx(dt,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:E.jsx(ce.HelpOutline,{})})})}),E.jsx(Vu,{children:E.jsx(nh,{asChild:!0,children:E.jsx(ab,{children:E.jsx(Pe,{p:"300",children:a.info})})})})]})]}),a.input&&E.jsx(Qm,{...a.inputSlotProps,children:s.Children.map(a.input,b=>s.isValidElement(b)?s.cloneElement(b,v):b)}),a.description&&E.jsx(eh,{...f,...a.descriptionSlotProps,children:a.description}),t&&a.error&&E.jsxs(th,{...p,...a.errorSlotProps,children:[E.jsx(Pe,{as:ce.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),a.error]}),o]})})}),oh=({children:t,...e})=>{const{setContext:n}=s.useContext(Je);return s.useEffect(()=>{n(r=>({...r,label:t,labelSlotProps:e}))},[t,n]),null},ih=({children:t,...e})=>{const{setContext:n}=s.useContext(Je);return s.useEffect(()=>{n(r=>({...r,input:t,inputSlotProps:e}))},[t,n]),null},lh=({children:t,...e})=>{const{setContext:n}=s.useContext(Je);return s.useEffect(()=>{n(r=>({...r,description:t,descriptionSlotProps:e}))},[t,n]),null},ah=({children:t,...e})=>{const{setContext:n}=s.useContext(Je);return s.useEffect(()=>{n(r=>({...r,error:t,errorSlotProps:e}))},[t,n]),null},sh=({children:t})=>{const{setContext:e}=s.useContext(Je);return s.useEffect(()=>{e(n=>({...n,info:t}))},[t,e]),null},Je=s.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),uh={Root:rh,Label:oh,Input:ih,Description:lh,Error:ah,InfoBox:sh},ch=P.defineRecipe({className:"nimbus-icon",base:{display:"inline-block"},variants:{size:{"2xs":{boxSize:"600"},xs:{boxSize:"800"},sm:{boxSize:"900"},md:{boxSize:"1000"},lg:{boxSize:"1200"},xl:{boxSize:"1400"}}}}),{withContext:dh}=P.createRecipeContext({recipe:ch}),fh=dh("svg"),gc=s.forwardRef(({...t},e)=>E.jsx(fh,{ref:e,asChild:!t.as,...t}));gc.displayName="Icon";const{withProvider:ph,withContext:yc}=P.createSlotRecipeContext({key:"taggroup"}),vh=ph(pb,"root"),bh=xn((t,e)=>{const n=yc(bb,"tagList");return E.jsx(n,{...t,ref:e})}),mh=yc(hb,"tag"),$c=({children:t,onRemove:e,selectionMode:n,ref:r,...o})=>(e&&(n==="multiple"||n==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),E.jsx(vh,{ref:r,onRemove:e,selectionMode:n,...o,children:t}));$c.displayName="TagGroup.Root";const xc=({children:t,ref:e,...n})=>E.jsx(bh,{ref:e,...n,children:t});xc.displayName="TagGroup.TagList";const Ec=({children:t,ref:e,...n})=>{const r=typeof t=="string"?t:void 0;return E.jsx(mh,{ref:e,textValue:r,...n,children:({allowsRemoving:o,isSelected:i,selectionMode:l})=>E.jsxs(E.Fragment,{children:[t,o&&l!=="multiple"&&l!=="single"&&E.jsx(dt,{size:"2xs",variant:i?"solid":"ghost",slot:"remove",tone:i?void 0:"neutral",children:E.jsx(ce.Close,{})})]})})};Ec.displayName="TagGroup.Tag";const hh={Root:$c,TagList:xc,Tag:Ec};function fr(){return fr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fr.apply(null,arguments)}var Cc=["shift","alt","meta","mod","ctrl"],gh={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 Fe(t){return(t&&gh[t]||t||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function yh(t){return Cc.includes(t)}function jn(t,e){return e===void 0&&(e=","),t.split(e)}function _n(t,e,n){e===void 0&&(e="+");var r=t.toLocaleLowerCase().split(e).map(function(l){return Fe(l)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},i=r.filter(function(l){return!Cc.includes(l)});return fr({},o,{keys:i,description:n,hotkey:t})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(t){t.key!==void 0&&Pc([Fe(t.key),Fe(t.code)])}),document.addEventListener("keyup",function(t){t.key!==void 0&&Sc([Fe(t.key),Fe(t.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Ke.clear()})})();var Ke=new Set;function io(t){return Array.isArray(t)}function $h(t,e){e===void 0&&(e=",");var n=io(t)?t:t.split(e);return n.every(function(r){return Ke.has(r.trim().toLowerCase())})}function Pc(t){var e=Array.isArray(t)?t:[t];Ke.has("meta")&&Ke.forEach(function(n){return!yh(n)&&Ke.delete(n.toLowerCase())}),e.forEach(function(n){return Ke.add(n.toLowerCase())})}function Sc(t){var e=Array.isArray(t)?t:[t];t==="meta"?Ke.clear():e.forEach(function(n){return Ke.delete(n.toLowerCase())})}function xh(t,e,n){(typeof n=="function"&&n(t,e)||n===!0)&&t.preventDefault()}function Eh(t,e,n){return typeof n=="function"?n(t,e):n===!0||n===void 0}function Ch(t){return wc(t,["input","textarea","select"])}function wc(t,e){e===void 0&&(e=!1);var n=t.target,r=t.composed,o=null;return Ph(n)&&r?o=t.composedPath()[0]&&t.composedPath()[0].tagName:o=n&&n.tagName,io(e)?!!(o&&e&&e.some(function(i){var l;return i.toLowerCase()===((l=o)==null?void 0:l.toLowerCase())})):!!(o&&e&&e)}function Ph(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function Sh(t,e){return t.length===0&&e?(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):e?t.some(function(n){return e.includes(n)})||t.includes("*"):!0}var wh=function(e,n,r){r===void 0&&(r=!1);var o=n.alt,i=n.meta,l=n.mod,a=n.shift,u=n.ctrl,c=n.keys,d=e.key,f=e.code,p=e.ctrlKey,v=e.metaKey,b=e.shiftKey,g=e.altKey,y=Fe(f),$=d.toLowerCase();if(!(c!=null&&c.includes(y))&&!(c!=null&&c.includes($))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(y))return!1;if(!r){if(o===!g&&$!=="alt"||a===!b&&$!=="shift")return!1;if(l){if(!v&&!p)return!1}else if(i===!v&&$!=="meta"&&$!=="os"||u===!p&&$!=="ctrl"&&$!=="control")return!1}return c&&c.length===1&&(c.includes($)||c.includes(y))?!0:c?$h(c):!c},Dh=s.createContext(void 0),kh=function(){return s.useContext(Dh)};function Dc(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(n,r){return n&&Dc(t[r],e[r])},!0):t===e}var Th=s.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),Rh=function(){return s.useContext(Th)};function Bh(t){var e=s.useRef(void 0);return Dc(e.current,t)||(e.current=t),e.current}var ii=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},Ah=typeof window<"u"?s.useLayoutEffect:s.useEffect;function Fh(t,e,n,r){var o=s.useState(null),i=o[0],l=o[1],a=s.useRef(!1),u=n instanceof Array?r instanceof Array?void 0:r:n,c=io(t)?t.join(u==null?void 0:u.splitKey):t,d=n instanceof Array?n:r instanceof Array?r:void 0,f=s.useCallback(e,d??[]),p=s.useRef(f);d?p.current=f:p.current=e;var v=Bh(u),b=Rh(),g=b.enabledScopes,y=kh();return Ah(function(){if(!((v==null?void 0:v.enabled)===!1||!Sh(g,v==null?void 0:v.scopes))){var $=function(C,K){var F;if(K===void 0&&(K=!1),!(Ch(C)&&!wc(C,v==null?void 0:v.enableOnFormTags))){if(i!==null){var M=i.getRootNode();if((M instanceof Document||M instanceof ShadowRoot)&&M.activeElement!==i&&!i.contains(M.activeElement)){ii(C);return}}(F=C.target)!=null&&F.isContentEditable&&!(v!=null&&v.enableOnContentEditable)||jn(c,v==null?void 0:v.splitKey).forEach(function(A){var h,R=_n(A,v==null?void 0:v.combinationKey);if(wh(C,R,v==null?void 0:v.ignoreModifiers)||(h=R.keys)!=null&&h.includes("*")){if(v!=null&&v.ignoreEventWhen!=null&&v.ignoreEventWhen(C)||K&&a.current)return;if(xh(C,R,v==null?void 0:v.preventDefault),!Eh(C,R,v==null?void 0:v.enabled)){ii(C);return}p.current(C,R),K||(a.current=!0)}})}},S=function(C){C.key!==void 0&&(Pc(Fe(C.code)),((v==null?void 0:v.keydown)===void 0&&(v==null?void 0:v.keyup)!==!0||v!=null&&v.keydown)&&$(C))},w=function(C){C.key!==void 0&&(Sc(Fe(C.code)),a.current=!1,v!=null&&v.keyup&&$(C,!0))},B=i||(u==null?void 0:u.document)||document;return B.addEventListener("keyup",w,u==null?void 0:u.eventListenerOptions),B.addEventListener("keydown",S,u==null?void 0:u.eventListenerOptions),y&&jn(c,v==null?void 0:v.splitKey).forEach(function(k){return y.addHotkey(_n(k,v==null?void 0:v.combinationKey,v==null?void 0:v.description))}),function(){B.removeEventListener("keyup",w,u==null?void 0:u.eventListenerOptions),B.removeEventListener("keydown",S,u==null?void 0:u.eventListenerOptions),y&&jn(c,v==null?void 0:v.splitKey).forEach(function(k){return y.removeHotkey(_n(k,v==null?void 0:v.combinationKey,v==null?void 0:v.description))})}}},[i,c,v,g]),l}function Kh(){var t=s.useRef(!1),e=s.useCallback(function(){return t.current},[]);return s.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}var Ih=function(t){t===void 0&&(t={});var e=s.useState(t),n=e[0],r=e[1],o=s.useCallback(function(i){r(function(l){return Object.assign({},l,i instanceof Function?i(l):i)})},[]);return[n,o]},Wn,li;function Lh(){return li||(li=1,Wn=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(o){t.addRange(o)}),e&&e.focus()}}),Wn}var Un,ai;function Mh(){if(ai)return Un;ai=1;var t=Lh(),e={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(i){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,l)}function o(i,l){var a,u,c,d,f,p,v=!1;l||(l={}),a=l.debug||!1;try{c=t(),d=document.createRange(),f=document.getSelection(),p=document.createElement("span"),p.textContent=i,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(g){if(g.stopPropagation(),l.format)if(g.preventDefault(),typeof g.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[l.format]||e.default;window.clipboardData.setData(y,i)}else g.clipboardData.clearData(),g.clipboardData.setData(l.format,i);l.onCopy&&(g.preventDefault(),l.onCopy(g.clipboardData))}),document.body.appendChild(p),d.selectNodeContents(p),f.addRange(d);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");v=!0}catch(g){a&&console.error("unable to copy using execCommand: ",g),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",i),l.onCopy&&l.onCopy(window.clipboardData),v=!0}catch(y){a&&console.error("unable to copy using clipboardData: ",y),a&&console.error("falling back to prompt"),u=r("message"in l?l.message:n),window.prompt(u,i)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),p&&document.body.removeChild(p),c()}return v}return Un=o,Un}var Nh=Mh();const zh=Np(Nh);var Oh=function(){var t=Kh(),e=Ih({value:void 0,error:void 0,noUserInteraction:!0}),n=e[0],r=e[1],o=s.useCallback(function(i){if(t()){var l,a;try{if(typeof i!="string"&&typeof i!="number"){var u=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(u),r({value:i,error:u,noUserInteraction:!0});return}else if(i===""){var u=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(u),r({value:i,error:u,noUserInteraction:!0});return}a=i.toString(),l=zh(a),r({value:a,error:void 0,noUserInteraction:l})}catch(c){r({value:a,error:c,noUserInteraction:l})}}},[]);return[n,o]};Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>P.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>P.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>P.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>P.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>P.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>P.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>P.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>P.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>P.Table});exports.Accordion=bm;exports.Alert=Om;exports.Avatar=pi;exports.Badge=Rm;exports.Box=Pe;exports.Button=vn;exports.Card=wm;exports.CardContent=no;exports.CardHeader=to;exports.CardRoot=eo;exports.Checkbox=lc;exports.ColorModeLabel=Qb;exports.DialogActionTrigger=pv;exports.DialogBackdrop=uv;exports.DialogBody=sv;exports.DialogCloseTrigger=ov;exports.DialogContent=rv;exports.DialogDescription=dv;exports.DialogFooter=lv;exports.DialogHeader=av;exports.DialogRoot=iv;exports.DialogTitle=cv;exports.DialogTrigger=fv;exports.FormField=uh;exports.FormFieldContext=Je;exports.Grid=Y0;exports.Icon=gc;exports.IconButton=dt;exports.Image=Gu;exports.Link=Zu;exports.ListItem=kb;exports.ListRoot=Db;exports.LoadingSpinner=dc;exports.MakeElementFocusable=tc;exports.NimbusProvider=j0;exports.Select=om;exports.SimpleGrid=Tb;exports.Stack=$n;exports.TableBody=Mb;exports.TableCell=Lb;exports.TableColumn=Ab;exports.TableColumnGroup=Bb;exports.TableColumnHeader=Nb;exports.TableFooter=Kb;exports.TableHeader=Fb;exports.TableRoot=Rb;exports.TableRow=Ib;exports.TagGroup=hh;exports.Text=Xu;exports.TextInput=ac;exports.ToggleButtonGroup=Um;exports.ToggleButtonGroupButton=oo;exports.ToggleButtonGroupRoot=ro;exports.Tooltip=Qu;exports.TooltipTrigger=ec;exports.VisuallyHidden=Gr;exports._SelectOption=Yr;exports._SelectOptionGroup=Xr;exports._SelectOptions=Zr;exports._SelectRoot=qr;exports.system=oc;exports.useColorMode=Wr;exports.useColorModeValue=Jb;exports.useColorScheme=H0;exports.useCopyToClipboard=Oh;exports.useHotkeys=Fh;
27
27
  //# sourceMappingURL=index.cjs.map