eidotter 0.17.2 → 0.19.0
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/LICENSE.md +41 -1
- package/README.md +20 -7
- package/dist/components/Alert/components/Alert.d.ts +1 -1
- package/dist/components/Badge/components/Badge.d.ts +2 -2
- package/dist/components/Button/components/Button.d.ts +6 -1
- package/dist/components/Card/components/Card.d.ts +1 -1
- package/dist/components/Chat/components/ChatContainer.d.ts +0 -1
- package/dist/components/Checkbox/components/Checkbox.d.ts +1 -1
- package/dist/components/FilterBar/components/FilterBar.d.ts +1 -1
- package/dist/components/Header/components/Header.d.ts +24 -0
- package/dist/components/Header/components/index.d.ts +2 -0
- package/dist/components/Header/index.d.ts +2 -0
- package/dist/components/Icon/components/Icon.d.ts +18 -7
- package/dist/components/Modal/components/Modal.d.ts +5 -7
- package/dist/components/Progress/components/Progress.d.ts +2 -2
- package/dist/components/Stat/components/Stat.d.ts +2 -2
- package/dist/components/Switch/components/Switch.d.ts +3 -1
- package/dist/components/Tabs/components/Tabs.d.ts +9 -3
- package/dist/components/Tag/components/Tag.d.ts +1 -1
- package/dist/components/Terminal/components/Terminal.d.ts +2 -4
- package/dist/components/TextScramble/components/TextScramble.d.ts +1 -1
- package/dist/components/TimelineNode/components/TimelineNode.d.ts +4 -4
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.es.js +3539 -3374
- package/dist/index.umd.js +6 -6
- package/guidelines/README.md +8 -4
- package/guidelines/components.md +40 -1
- package/package.json +7 -3
- package/src/styles/fonts/Flexi_IBM_VGA_LICENSE.txt +428 -0
- package/src/styles/fonts/Flexi_IBM_VGA_True.ttf +0 -0
- package/src/styles/fonts.css +17 -0
- package/src/styles/theme.amber-mono.css +34 -24
- package/src/styles/theme.cga-amber.css +41 -31
- package/src/styles/theme.cga-mode4-p0.css +44 -34
- package/src/styles/theme.cga-mode4-p1.css +52 -42
- package/src/styles/theme.cga-mode5.css +53 -43
- package/src/styles/tokens.css +37 -27
- package/tailwind.preset.cjs +32 -18
package/dist/index.umd.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(A,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(A=typeof globalThis<"u"?globalThis:A||self,h(A.eidotter={},A.jsxRuntime,A.React,A.ReactDOM))})(this,(function(A,h,c,st){"use strict";function ca(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 oe=ca(c),da=c.createContext(null);c.createContext(null),c.createContext(null),c.createContext(null),c.createContext(null);const ua=c.createContext({});c.createContext(null);const fa=c.createContext(null),Q=typeof document<"u"?c.useLayoutEffect:()=>{};function pa(t){let[e,n]=c.useState(t),r=c.useRef(e),i=c.useRef(null),o=c.useRef(()=>{if(!i.current)return;let a=i.current.next();if(a.done){i.current=null;return}r.current===a.value?o.current():n(a.value)});Q(()=>{r.current=e,i.current&&o.current()});let l=c.useCallback(a=>{i.current=a(r.current),o.current()},[o]);return[e,l]}const Nt={prefix:String(Math.round(Math.random()*1e10)),current:0},Ir=c.createContext(Nt),ha=c.createContext(!1);let ba=!!(typeof window<"u"&&window.document&&window.document.createElement),pn=new WeakMap;function va(t=!1){let e=c.useContext(Ir),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=pn.get(o);l==null?pn.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,pn.delete(o))}n.current=++e.current}return n.current}function ma(t){let e=c.useContext(Ir);e===Nt&&!ba&&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=va(!!t),r=e===Nt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function ga(t){let e=c.useId(),[n]=c.useState(ze()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Nt.prefix}`;return t||`${r}-${e}`}const ya=typeof c.useId=="function"?ga:ma;function $a(){return!1}function xa(){return!0}function wa(t){return()=>{}}function ze(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(wa,$a,xa):c.useContext(ha)}let Ea=!!(typeof window<"u"&&window.document&&window.document.createElement),Qe=new Map,ct;typeof FinalizationRegistry<"u"&&(ct=new FinalizationRegistry(t=>{Qe.delete(t)}));function ke(t){let[e,n]=c.useState(t),r=c.useRef(null),i=ya(e),o=c.useRef(null);if(ct&&ct.register(o,i),Ea){const l=Qe.get(i);l&&!l.includes(r)?l.push(r):Qe.set(i,[r])}return Q(()=>{let l=i;return()=>{ct&&ct.unregister(o),Qe.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function Sa(t,e){if(t===e)return t;let n=Qe.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Qe.get(e);return r?(r.forEach(i=>i.current=t),t):e}function hn(t=[]){let e=ke(),[n,r]=pa(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return Q(i,[e,i,...t]),n}function dt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const X=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},ce=t=>t&&"window"in t&&t.window===t?t:X(t).defaultView||window;function Ca(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function ka(t){return Ca(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Pa=!1;function Pe(){return Pa}function H(t,e){if(!Pe())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:ka(n)?n=n.host:n=n.parentNode}return!1}const ie=(t=document)=>{var e;if(!Pe())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 I(t){if(Pe()&&t.target instanceof Element&&t.target.shadowRoot){var e,n;if("composedPath"in t)return(e=t.composedPath()[0])!==null&&e!==void 0?e:null;if("composedPath"in t.nativeEvent)return(n=t.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return t.target}function bn(t){if(!t)return!1;let e=t.getRootNode(),n=ce(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}class Na{get currentNode(){return this._currentNode}set currentNode(e){if(!H(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,i=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=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return H(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 i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}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 i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===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 i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const d=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),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=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function Mr(t,e,n,r){return Pe()?new Na(t,e,n,r):t.createTreeWalker(e,n,r)}function et(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=Kr(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Kr(t[o],null)})}}}function Kr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Lr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Lr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ta(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Lr(t))&&(r&&(r+=" "),r+=e);return r}function G(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=dt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Ta(o,l):i==="id"&&o&&l?e.id=Sa(o,l):i==="ref"&&o&&l?e.ref=et(o,l):e[i]=l!==void 0?l:o}}return e}const Da=new Set(["id"]),_a=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ia=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ma=new Set(["dir","lang","hidden","inert","translate"]),Fr=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Ka=/^(data-.*)$/;function de(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,a={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(Da.has(s)||n&&_a.has(s)||r&&Ia.has(s)||i&&Ma.has(s)||o&&(Fr.has(s)||s.endsWith("Capture")&&Fr.has(s.slice(0,-7)))||l!=null&&l.has(s)||Ka.test(s))&&(a[s]=t[s]);return a}function Ne(t){if(La())t.focus({preventScroll:!0});else{let e=Fa(t);t.focus(),Aa(e)}}let Tt=null;function La(){if(Tt==null){Tt=!1;try{document.createElement("div").focus({get preventScroll(){return Tt=!0,!0}})}catch{}}return Tt}function Fa(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 Aa(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Dt(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function vn(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 Te(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const Ve=Te(function(){return vn(/^Mac/i)}),Oa=Te(function(){return vn(/^iPhone/i)}),Ar=Te(function(){return vn(/^iPad/i)||Ve()&&navigator.maxTouchPoints>1}),He=Te(function(){return Oa()||Ar()}),Ba=Te(function(){return Ve()||He()}),za=Te(function(){return Dt(/AppleWebKit/i)&&!mn()}),mn=Te(function(){return Dt(/Chrome/i)}),gn=Te(function(){return Dt(/Android/i)}),Va=Te(function(){return Dt(/Firefox/i)}),Ha=c.createContext({isNative:!0,open:Wa,useHref:t=>t});function yn(){return c.useContext(Ha)}function De(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;Va()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Ve()?o=!0:l=!0);let d=za()&&Ve()&&!Ar()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});De.isOpening=n,Ne(t),t.dispatchEvent(d),De.isOpening=!1}De.isOpening=!1;function Ra(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 Wa(t,e){Ra(t,n=>De(n,e))}function Ua(t){let e=yn();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 Me=new Map,$n=new Set;function Or(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=I(r);if(!t(r)||!i)return;let o=Me.get(i);o||(o=new Set,Me.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=I(r);if(!t(r)||!i)return;let o=Me.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Me.delete(i)),Me.size===0)){for(let l of $n)l();$n.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Or():document.addEventListener("DOMContentLoaded",Or));function ja(){for(const[t]of Me)"isConnected"in t&&!t.isConnected&&Me.delete(t)}function Br(t){requestAnimationFrame(()=>{ja(),Me.size===0?t():$n.add(t)})}function _t(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...d)=>{t.current.delete(l),l(...d)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let d=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,d,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function It(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=ke(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function Ke(t){const e=c.useRef(null),n=c.useRef(void 0),r=c.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return c.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}var xn;const Ga=(xn=c.useInsertionEffect)!==null&&xn!==void 0?xn:Q;function ye(t){const e=c.useRef(null);return Ga(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function zr(t,e){const n=c.useRef(!0),r=c.useRef(null);Q(()=>(n.current=!0,()=>{n.current=!1}),[]),Q(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Vr(t,e){Q(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ut(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function Hr(t,e){let n=t;for(ut(n,e)&&(n=n.parentElement);n&&!ut(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Rr(t,e){let n=[],r=document.scrollingElement||document.documentElement;do ut(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function tt(t){return Ve()?t.metaKey:t.ctrlKey}const qa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ft(t){return t instanceof HTMLInputElement&&!qa.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let pe=typeof document<"u"&&window.visualViewport;function Ya(){let t=ze(),[e,n]=c.useState(()=>t?{width:0,height:0}:wn());return c.useEffect(()=>{let r=a=>{n(s=>a.width===s.width&&a.height===s.height?s:a)},i=()=>{pe&&pe.scale>1||r(wn())},o,l=a=>{pe&&pe.scale>1||ft(I(a))&&(o=requestAnimationFrame(()=>{let s=ie();(!s||!ft(s))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(wn()),He()&&window.addEventListener("blur",l,!0),pe?pe.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),He()&&window.removeEventListener("blur",l,!0),pe?pe.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function wn(){return{width:pe?pe.width*pe.scale:document.documentElement.clientWidth,height:pe?pe.height*pe.scale:document.documentElement.clientHeight}}let Xa=0;const En=new Map;function Za(t){let[e,n]=c.useState();return Q(()=>{if(!t)return;let r=En.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Xa++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},En.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),En.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Mt(t,e,n,r){let i=ye(n),o=n==null;c.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function Sn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,a=e.getBoundingClientRect(),s=t.getBoundingClientRect(),d=window.getComputedStyle(e),u=window.getComputedStyle(t),p=document.scrollingElement||document.documentElement,b=t===p?0:s.top,v=t===p?t.clientHeight:s.bottom,g=t===p?0:s.left,m=t===p?t.clientWidth:s.right,y=parseInt(d.scrollMarginTop,10)||0,$=parseInt(d.scrollMarginBottom,10)||0,w=parseInt(d.scrollMarginLeft,10)||0,E=parseInt(d.scrollMarginRight,10)||0,C=parseInt(u.scrollPaddingTop,10)||0,N=parseInt(u.scrollPaddingBottom,10)||0,V=parseInt(u.scrollPaddingLeft,10)||0,F=parseInt(u.scrollPaddingRight,10)||0,S=parseInt(u.borderTopWidth,10)||0,L=parseInt(u.borderBottomWidth,10)||0,z=parseInt(u.borderLeftWidth,10)||0,ee=parseInt(u.borderRightWidth,10)||0,ne=a.top-y,q=a.bottom+$,P=a.left-w,O=a.right+E,j=t===p?0:z+ee,Y=t===p?0:S+L,J=t.offsetWidth-t.clientWidth-j,re=t.offsetHeight-t.clientHeight-Y,f=b+S+C,T=v-L-N-re,x=g+z+V,k=m-ee-F;u.direction==="rtl"&&!He()?x+=J:k-=J;let D=ne<f||q>T,_=P<x||O>k;if(D&&r==="start")o+=ne-f;else if(D&&r==="center")o+=(ne+q)/2-(f+T)/2;else if(D&&r==="end")o+=q-T;else if(D&&r==="nearest"){let R=ne-f,se=q-T;o+=Math.abs(R)<=Math.abs(se)?R:se}if(_&&i==="start")l+=P-x;else if(_&&i==="center")l+=(P+O)/2-(x+k)/2;else if(_&&i==="end")l+=O-k;else if(_&&i==="nearest"){let R=P-x,se=O-k;l+=Math.abs(R)<=Math.abs(se)?R:se}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function Wr(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(l).overflow==="hidden")&&!mn()){var r;let{left:s,top:d}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:u,top:p}=t.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(d-p)>1){var i,o;n==null||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}else{let{left:s,top:d}=t.getBoundingClientRect(),u=Rr(t,!0);for(let v of u)Sn(v,t);let{left:p,top:b}=t.getBoundingClientRect();if(Math.abs(s-p)>1||Math.abs(d-b)>1){u=n?Rr(n,!0):[];for(let v of u)Sn(v,n,{block:"center",inline:"center"})}}}}function Cn(t){return t.pointerType===""&&t.isTrusted?!0:gn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Ja(t){return!gn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Ur(t,e,n){let r=ye(()=>{n&&n(e)});c.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t])}function jr(t){const e=c.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Qa="react-aria-clear-focus",es="react-aria-focus";function kn(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return Q(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Gr(t,i,c.useCallback(()=>r(!1),[])),i}function Pn(t,e){let[n,r]=c.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Gr(t,i,c.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Gr(t,e,n){Q(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||st.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const ts=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ns(t){const e=ce(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function rs(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 Nn(t,e){return ts?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&ns(t)&&rs(t,e)&&(!t.parentElement||Nn(t.parentElement,t))}const Tn=["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"])',"permission"],is=Tn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Tn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const os=Tn.join(':not([hidden]):not([tabindex="-1"]),');function qr(t){return t.matches(is)&&Nn(t)&&!Xr(t)}function Yr(t){return t.matches(os)&&Nn(t)&&!Xr(t)}function Xr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var Dn;const ls=typeof document<"u"?(Dn=c.useInsertionEffect)!==null&&Dn!==void 0?Dn:c.useLayoutEffect:()=>{};function pt(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(r),l=c.useRef(t!==void 0),a=t!==void 0;c.useEffect(()=>{let p=l.current;p!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),l.current=a},[a]);let s=a?t:r;ls(()=>{o.current=s});let[,d]=c.useReducer(()=>({}),{}),u=c.useCallback((p,...b)=>{let v=typeof p=="function"?p(o.current):p;Object.is(o.current,v)||(o.current=v,i(v),d(),n==null||n(v,...b))},[n]);return[s,u]}const _n=Symbol("default");function ht({values:t,children:e}){for(let[n,r]of t)e=c.createElement(n.Provider,{value:r},e);return e}function he(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a,render:s}=t;return c.useMemo(()=>{let d,u,p;return typeof e=="function"?d=e({...a,defaultClassName:i}):d=e,typeof n=="function"?u=n({...a,defaultStyle:l||{}}):u=n,typeof r=="function"?p=r({...a,defaultChildren:o}):r==null?p=o:p=r,{className:d??i,style:u||l?{...l,...u}:void 0,children:p??o,"data-rac":"",render:s?b=>s(b,a):void 0}},[e,n,r,i,o,l,a,s])}function Kt(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||_n;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function $e(t,e,n){let r=Kt(n,t.slot)||{},{ref:i,...o}=r,l=Ke(c.useMemo(()=>et(e,i),[e,i])),a=G(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=s=>{let d=typeof o.style=="function"?o.style(s):o.style,u={...s.defaultStyle,...d},p=typeof t.style=="function"?t.style({...s,defaultStyle:u}):t.style;return{...u,...p}}:a.style={...o.style,...t.style}),[a,l]}function as(t=!0){let[e,n]=c.useState(t),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,n(!!o)},[]);return Q(()=>{r.current||n(!1)},[]),[i,e]}function Lt(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function ss(t,e,n){let{render:r,...i}=e,o=c.useRef(null),l=c.useMemo(()=>et(n,o),[n,o]);Q(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let a={...i,ref:l};return r?r(a,void 0):c.createElement(t,a)}const Zr={},ue=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Zr[e];return n||(n=c.forwardRef(ss.bind(null,e)),Zr[e]=n),n}}),Jr=7e3;let we=null;function Qr(t,e="assertive",n=Jr){we?we.announce(t,e,n):(we=new cs,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?we.announce(t,e,n):setTimeout(()=>{we!=null&&we.isAttached()&&(we==null||we.announce(t,e,n))},100))}class cs{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=Jr){var i,o;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"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.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 ds=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),us=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function fs(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 ds.has(n.script)}let e=t.split("-")[0];return us.has(e)}const ei=Symbol.for("react-aria.i18n.locale");function ti(){let t=typeof window<"u"&&window[ei]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:fs(t)?"rtl":"ltr"}}let In=ti(),bt=new Set;function ni(){In=ti();for(let t of bt)t(In)}function ps(){let t=ze(),[e,n]=c.useState(In);return c.useEffect(()=>(bt.size===0&&window.addEventListener("languagechange",ni),bt.add(n),()=>{bt.delete(n),bt.size===0&&window.removeEventListener("languagechange",ni)}),[]),t?{locale:typeof window<"u"&&window[ei]||"en-US",direction:"ltr"}:e}const hs=c.createContext(null);function Mn(){let t=ps();return c.useContext(hs)||t}const bs=Symbol.for("react-aria.i18n.locale"),vs=Symbol.for("react-aria.i18n.strings");let nt;class Ft{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=ms(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[bs];if(nt===void 0){let i=window[vs];if(!i)return null;nt={};for(let o in i)nt[o]=new Ft({[n]:i[o]},n)}let r=nt==null?void 0:nt[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 ms(t,e,n="en-US"){if(e[t])return e[t];let r=gs(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function gs(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ri=new Map,ii=new Map;class ys{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 i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=ri.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ri.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=ii.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ii.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 oi=new WeakMap;function $s(t){let e=oi.get(t);return e||(e=new Ft(t),oi.set(t,e)),e}function xs(t,e){return e&&Ft.getGlobalDictionaryForPackage(e)||$s(t)}function ws(t,e){let{locale:n}=Mn(),r=xs(t,e);return c.useMemo(()=>new ys(n,r),[n,r])}function Es(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ss(t,e,n){Es(t,e),e.set(t,n)}function Kn(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function li(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function ai(t){let e=c.useRef({isFocused:!1,observer:null});return Q(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),c.useCallback(n=>{let r=I(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=Kn(l);t==null||t(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===ie()?null:ie();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let At=!1;function si(t){for(;t&&!qr(t);)t=t.parentElement;let e=ce(t),n=e.document.activeElement;if(!n||n===t)return;At=!0;let r=!1,i=u=>{(I(u)===n||r)&&u.stopImmediatePropagation()},o=u=>{(I(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,Ne(n),s()))},l=u=>{(I(u)===t||r)&&u.stopImmediatePropagation()},a=u=>{(I(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,Ne(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(d),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),At=!1,r=!1},d=requestAnimationFrame(s);return s}let rt="default",Ln="",Ot=new WeakMap;function ci(t){if(He()){if(rt==="default"){const e=X(t);Ln=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";Ot.set(t,t.style[e]),t.style[e]="none"}}function Fn(t){if(He()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{Br(()=>{if(rt==="restoring"){const e=X(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Ln||""),Ln="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Ot.has(t)){let e=Ot.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Ot.delete(t)}}const An=c.createContext({register:()=>{}});An.displayName="PressResponderContext";function Cs(t,e){return e.get?e.get.call(t):e.value}function di(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function ks(t,e){var n=di(t,e,"get");return Cs(t,n)}function Ps(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 ui(t,e,n){var r=di(t,e,"set");return Ps(t,r,n),n}function Ns(t){let e=c.useContext(An);if(e){let{register:n,ref:r,...i}=e;t=G(i,t),n()}return Vr(e,t.ref),t}var Bt=new WeakMap;class zt{continuePropagation(){ui(this,Bt,!1)}get shouldStopPropagation(){return ks(this,Bt)}constructor(e,n,r,i){Ss(this,Bt,{writable:!0,value:void 0}),ui(this,Bt,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,d=0,u,p=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,p=r.clientY),a&&(u!=null&&p!=null?(s=u-a.left,d=p-a.top):(s=a.width/2,d=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=s,this.y=d,this.key=r.key}}const fi=Symbol("linkClicked"),pi="react-aria-pressable-style",hi="data-react-aria-pressable";function it(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:p,ref:b,...v}=Ns(t),[g,m]=c.useState(!1),y=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:w,removeGlobalListener:E}=_t(),C=c.useCallback((f,T)=>{let x=y.current;if(a||x.didFirePressStart)return!1;let k=!0;if(x.isTriggeringEvent=!0,r){let D=new zt("pressstart",T,f);r(D),k=D.shouldStopPropagation}return n&&n(!0),x.isTriggeringEvent=!1,x.didFirePressStart=!0,m(!0),k},[a,r,n]),N=c.useCallback((f,T,x=!0)=>{let k=y.current;if(!k.didFirePressStart)return!1;k.didFirePressStart=!1,k.isTriggeringEvent=!0;let D=!0;if(i){let _=new zt("pressend",T,f);i(_),D=_.shouldStopPropagation}if(n&&n(!1),m(!1),e&&x&&!a){let _=new zt("press",T,f);e(_),D&&(D=_.shouldStopPropagation)}return k.isTriggeringEvent=!1,D},[a,i,n,e]),V=ye(N),F=c.useCallback((f,T)=>{let x=y.current;if(a)return!1;if(o){x.isTriggeringEvent=!0;let k=new zt("pressup",T,f);return o(k),x.isTriggeringEvent=!1,k.shouldStopPropagation}return!0},[a,o]),S=ye(F),L=c.useCallback(f=>{let T=y.current;if(T.isPressed&&T.target){T.didFirePressStart&&T.pointerType!=null&&N(Re(T.target,f),T.pointerType,!1),T.isPressed=!1,J(null),T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,w(),p||Fn(T.target);for(let x of T.disposables)x();T.disposables=[]}},[p,w,N]),z=ye(L),ee=c.useCallback(f=>{u&&L(f)},[u,L]),ne=c.useCallback(f=>{a||l==null||l(f)},[a,l]),q=c.useCallback((f,T)=>{if(!a&&l){let x=new MouseEvent("click",f);li(x,T),l(Kn(x))}},[a,l]),P=ye(q),[O,j]=c.useState(!1);Q(()=>{let f=y.current;if(O){let T=_=>{var R;if(f.isPressed&&f.target&&Bn(_,f.target)){var se;mi(I(_),_.key)&&_.preventDefault();let Z=I(_),fe=H(f.target,Z);V(Re(f.target,_),"keyboard",fe),fe&&P(_,f.target),w(),_.key!=="Enter"&&On(f.target)&&H(f.target,Z)&&!_[fi]&&(_[fi]=!0,De(f.target,_,!1)),f.isPressed=!1,j(!1),(se=f.metaKeyEvents)===null||se===void 0||se.delete(_.key)}else if(_.key==="Meta"&&(!((R=f.metaKeyEvents)===null||R===void 0)&&R.size)){var B;let Z=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let fe of Z.values())(B=f.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",fe))}},x=f.target,D=dt(_=>{x&&Bn(_,x)&&!_.repeat&&H(x,I(_))&&f.target&&S(Re(f.target,_),"keyboard")},T);return $(X(f.target),"keyup",D,!0),()=>{E(X(f.target),"keyup",D,!0)}}},[O,$,w,E]);let[Y,J]=c.useState(null);Q(()=>{let f=y.current;if(Y==="pointer"){let T=k=>{if(k.pointerId===f.activePointerId&&f.isPressed&&k.button===0&&f.target){if(H(f.target,I(k))&&f.pointerType!=null){let D=!1,_=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(D?z(k):(Ne(f.target),f.target.click()))},80);k.currentTarget&&$(k.currentTarget,"click",()=>D=!0,!0),f.disposables.push(()=>clearTimeout(_))}else z(k);f.isOverTarget=!1}},x=k=>{z(k)};return $(X(f.target),"pointerup",T,!1),$(X(f.target),"pointercancel",x,!1),()=>{E(X(f.target),"pointerup",T,!1),E(X(f.target),"pointercancel",x,!1)}}else if(Y==="mouse"&&process.env.NODE_ENV==="test"){let T=x=>{if(x.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&H(f.target,x.target)&&f.pointerType!=null||z(x),f.isOverTarget=!1}};return $(X(f.target),"mouseup",T,!1),()=>{E(X(f.target),"mouseup",T,!1)}}else if(Y==="touch"&&process.env.NODE_ENV==="test"){let T=x=>{f.isPressed&&H(I(x),f.target)&&z({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return $(ce(f.target),"scroll",T,!0),()=>{E(ce(f.target),"scroll",T,!0)}}},[Y,$,E]);let re=c.useMemo(()=>{let f=y.current,T={onKeyDown(x){if(Bn(x.nativeEvent,x.currentTarget)&&H(x.currentTarget,I(x))){var k;mi(I(x),x.key)&&x.preventDefault();let D=!0;!f.isPressed&&!x.repeat&&(f.target=x.currentTarget,f.isPressed=!0,j(!0),f.pointerType="keyboard",D=C(x,"keyboard")),D&&x.stopPropagation(),x.metaKey&&Ve()&&((k=f.metaKeyEvents)===null||k===void 0||k.set(x.key,x.nativeEvent))}else x.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(x){if(!(x&&!H(x.currentTarget,I(x)))&&x&&x.button===0&&!f.isTriggeringEvent&&!De.isOpening){let k=!0;if(a&&x.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||Cn(x.nativeEvent))){let D=C(x,"virtual"),_=F(x,"virtual"),R=N(x,"virtual");ne(x),k=D&&_&&R}else if(f.isPressed&&f.pointerType!=="keyboard"){let D=f.pointerType||x.nativeEvent.pointerType||"virtual",_=F(Re(x.currentTarget,x),D),R=N(Re(x.currentTarget,x),D,!0);k=_&&R,f.isOverTarget=!1,ne(x),L(x)}f.ignoreEmulatedMouseEvents=!1,k&&x.stopPropagation()}}};return typeof PointerEvent<"u"?(T.onPointerDown=x=>{if(x.button!==0||!H(x.currentTarget,I(x)))return;if(Ja(x.nativeEvent)){f.pointerType="virtual";return}f.pointerType=x.pointerType;let k=!0;if(!f.isPressed){f.isPressed=!0,J("pointer"),f.isOverTarget=!0,f.activePointerId=x.pointerId,f.target=x.currentTarget,p||ci(f.target),k=C(x,f.pointerType);let D=I(x);"releasePointerCapture"in D&&("hasPointerCapture"in D?D.hasPointerCapture(x.pointerId)&&D.releasePointerCapture(x.pointerId):D.releasePointerCapture(x.pointerId))}k&&x.stopPropagation()},T.onMouseDown=x=>{if(H(x.currentTarget,I(x))&&x.button===0){if(d){let k=si(x.target);k&&f.disposables.push(k)}x.stopPropagation()}},T.onPointerUp=x=>{!H(x.currentTarget,I(x))||f.pointerType==="virtual"||x.button===0&&!f.isPressed&&F(x,f.pointerType||x.pointerType)},T.onPointerEnter=x=>{x.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,C(Re(f.target,x),f.pointerType))},T.onPointerLeave=x=>{x.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,N(Re(f.target,x),f.pointerType,!1),ee(x))},T.onDragStart=x=>{H(x.currentTarget,I(x))&&L(x)}):process.env.NODE_ENV==="test"&&(T.onMouseDown=x=>{if(x.button!==0||!H(x.currentTarget,I(x)))return;if(f.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(f.isPressed=!0,J("mouse"),f.isOverTarget=!0,f.target=x.currentTarget,f.pointerType=Cn(x.nativeEvent)?"virtual":"mouse",st.flushSync(()=>C(x,f.pointerType))&&x.stopPropagation(),d){let D=si(x.target);D&&f.disposables.push(D)}},T.onMouseEnter=x=>{if(!H(x.currentTarget,I(x)))return;let k=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,k=C(x,f.pointerType)),k&&x.stopPropagation()},T.onMouseLeave=x=>{if(!H(x.currentTarget,I(x)))return;let k=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,k=N(x,f.pointerType,!1),ee(x)),k&&x.stopPropagation()},T.onMouseUp=x=>{H(x.currentTarget,I(x))&&!f.ignoreEmulatedMouseEvents&&x.button===0&&!f.isPressed&&F(x,f.pointerType||"mouse")},T.onTouchStart=x=>{if(!H(x.currentTarget,I(x)))return;let k=Ts(x.nativeEvent);if(!k)return;f.activePointerId=k.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,J("touch"),f.target=x.currentTarget,f.pointerType="touch",p||ci(f.target),C(Le(f.target,x),f.pointerType)&&x.stopPropagation()},T.onTouchMove=x=>{if(!H(x.currentTarget,I(x)))return;if(!f.isPressed){x.stopPropagation();return}let k=bi(x.nativeEvent,f.activePointerId),D=!0;k&&vi(k,x.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,D=C(Le(f.target,x),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,D=N(Le(f.target,x),f.pointerType,!1),ee(Le(f.target,x))),D&&x.stopPropagation()},T.onTouchEnd=x=>{if(!H(x.currentTarget,I(x)))return;if(!f.isPressed){x.stopPropagation();return}let k=bi(x.nativeEvent,f.activePointerId),D=!0;k&&vi(k,x.currentTarget)&&f.pointerType!=null?(F(Le(f.target,x),f.pointerType),D=N(Le(f.target,x),f.pointerType),q(x.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(D=N(Le(f.target,x),f.pointerType,!1)),D&&x.stopPropagation(),f.isPressed=!1,J(null),f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!p&&Fn(f.target),w()},T.onTouchCancel=x=>{H(x.currentTarget,I(x))&&(x.stopPropagation(),f.isPressed&&L(Le(f.target,x)))},T.onDragStart=x=>{H(x.currentTarget,I(x))&&L(x)}),T},[a,d,w,p,L,ee,N,C,F,ne,q]);return c.useEffect(()=>{if(!b||process.env.NODE_ENV==="test")return;const f=X(b.current);if(!f||!f.head||f.getElementById(pi))return;const T=f.createElement("style");T.id=pi,T.textContent=`
|
|
1
|
+
(function(O,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(O=typeof globalThis<"u"?globalThis:O||self,p(O.eidotter={},O.jsxRuntime,O.React,O.ReactDOM))})(this,(function(O,p,a,dt){"use strict";const ds=a.createContext(null);a.createContext(null),a.createContext(null),a.createContext(null),a.createContext(null);const cs=a.createContext({});a.createContext(null);const us=a.createContext(null),R=typeof document<"u"?a.useLayoutEffect:()=>{};function fs(t){let[e,n]=a.useState(t),r=a.useRef(e),i=a.useRef(null),o=a.useRef(()=>{if(!i.current)return;let s=i.current.next();if(s.done){i.current=null;return}r.current===s.value?o.current():n(s.value)});R(()=>{r.current=e,i.current&&o.current()});let l=a.useCallback(s=>{i.current=s(r.current),o.current()},[o]);return[e,l]}const Dt={prefix:String(Math.round(Math.random()*1e10)),current:0},Sr=a.createContext(Dt),hs=a.createContext(!1);let ps=!!(typeof window<"u"&&window.document&&window.document.createElement),pn=new WeakMap;function ms(t=!1){let e=a.useContext(Sr),n=a.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=pn.get(o);l==null?pn.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,pn.delete(o))}n.current=++e.current}return n.current}function vs(t){let e=a.useContext(Sr);e===Dt&&!ps&&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=ms(!!t),r=e===Dt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function gs(t){let e=a.useId(),[n]=a.useState(Be()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Dt.prefix}`;return t||`${r}-${e}`}const bs=typeof a.useId=="function"?gs:vs;function ys(){return!1}function xs(){return!0}function ws(t){return()=>{}}function Be(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(ws,ys,xs):a.useContext(hs)}let Es=!!(typeof window<"u"&&window.document&&window.document.createElement),Re=new Map,ct;typeof FinalizationRegistry<"u"&&(ct=new FinalizationRegistry(t=>{Re.delete(t)}));function Ne(t){let[e,n]=a.useState(t),r=a.useRef(null),i=bs(e),o=a.useRef(null);if(ct&&ct.register(o,i),Es){const l=Re.get(i);l&&!l.includes(r)?l.push(r):Re.set(i,[r])}return R(()=>{let l=i;return()=>{ct&&ct.unregister(o),Re.delete(l)}},[i]),a.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function Cs(t,e){if(t===e)return t;let n=Re.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Re.get(e);return r?(r.forEach(i=>i.current=t),t):e}function mn(t=[]){let e=Ne(),[n,r]=fs(e),i=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return R(i,[e,i,...t]),n}function ut(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Y=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},de=t=>t&&"window"in t&&t.window===t?t:Y(t).defaultView||window;function Ps(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function ks(t){return Ps(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Ns=!1;function Te(){return Ns}function U(t,e){if(!Te())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:ks(n)?n=n.host:n=n.parentNode}return!1}const ie=(t=document)=>{var e;if(!Te())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 K(t){if(Te()&&t.target instanceof Element&&t.target.shadowRoot){var e,n;if("composedPath"in t)return(e=t.composedPath()[0])!==null&&e!==void 0?e:null;if("composedPath"in t.nativeEvent)return(n=t.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return t.target}function vn(t){if(!t)return!1;let e=t.getRootNode(),n=de(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}class Ts{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,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),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 i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}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 i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===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 i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const d=l.shadowRoot;if(d){const c=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(l);if(!((s=this.filter)===null||s===void 0)&&s.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=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function $r(t,e,n,r){return Te()?new Ts(t,e,n,r):t.createTreeWalker(e,n,r)}function et(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=Lr(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Lr(t[o],null)})}}}function Lr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Fr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Fr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ds(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Fr(t))&&(r&&(r+=" "),r+=e);return r}function G(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=ut(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Ds(o,l):i==="id"&&o&&l?e.id=Cs(o,l):i==="ref"&&o&&l?e.ref=et(o,l):e[i]=l!==void 0?l:o}}return e}const Ms=new Set(["id"]),Is=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ks=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_s=new Set(["dir","lang","hidden","inert","translate"]),Or=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Ss=/^(data-.*)$/;function ce(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,s={};for(const d in t)Object.prototype.hasOwnProperty.call(t,d)&&(Ms.has(d)||n&&Is.has(d)||r&&Ks.has(d)||i&&_s.has(d)||o&&(Or.has(d)||d.endsWith("Capture")&&Or.has(d.slice(0,-7)))||l!=null&&l.has(d)||Ss.test(d))&&(s[d]=t[d]);return s}function De(t){if($s())t.focus({preventScroll:!0});else{let e=Ls(t);t.focus(),Fs(e)}}let Mt=null;function $s(){if(Mt==null){Mt=!1;try{document.createElement("div").focus({get preventScroll(){return Mt=!0,!0}})}catch{}}return Mt}function Ls(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 Fs(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function It(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function gn(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 Me(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const He=Me(function(){return gn(/^Mac/i)}),Os=Me(function(){return gn(/^iPhone/i)}),Ar=Me(function(){return gn(/^iPad/i)||He()&&navigator.maxTouchPoints>1}),Ue=Me(function(){return Os()||Ar()}),As=Me(function(){return He()||Ue()}),zs=Me(function(){return It(/AppleWebKit/i)&&!bn()}),bn=Me(function(){return It(/Chrome/i)}),yn=Me(function(){return It(/Android/i)}),Vs=Me(function(){return It(/Firefox/i)}),Bs=a.createContext({isNative:!0,open:Us,useHref:t=>t});function xn(){return a.useContext(Bs)}function Ie(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}=e;Vs()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(He()?o=!0:l=!0);let c=zs()&&He()&&!Ar()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d,detail:1,bubbles:!0,cancelable:!0});Ie.isOpening=n,De(t),t.dispatchEvent(c),Ie.isOpening=!1}Ie.isOpening=!1;function Hs(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 Us(t,e){Hs(t,n=>Ie(n,e))}function Ws(t){let e=xn();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 Se=new Map,wn=new Set;function zr(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=K(r);if(!t(r)||!i)return;let o=Se.get(i);o||(o=new Set,Se.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=K(r);if(!t(r)||!i)return;let o=Se.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Se.delete(i)),Se.size===0)){for(let l of wn)l();wn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?zr():document.addEventListener("DOMContentLoaded",zr));function js(){for(const[t]of Se)"isConnected"in t&&!t.isConnected&&Se.delete(t)}function Vr(t){requestAnimationFrame(()=>{js(),Se.size===0?t():wn.add(t)})}function Kt(){let t=a.useRef(new Map),e=a.useCallback((i,o,l,s)=>{let d=s!=null&&s.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:d,options:s}),i.addEventListener(o,d,s)},[]),n=a.useCallback((i,o,l,s)=>{var d;let c=((d=t.current.get(l))===null||d===void 0?void 0:d.fn)||l;i.removeEventListener(o,c,s),t.current.delete(l)},[]),r=a.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return a.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function _t(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Ne(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function $e(t){const e=a.useRef(null),n=a.useRef(void 0),r=a.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}var En;const Gs=(En=a.useInsertionEffect)!==null&&En!==void 0?En:R;function ye(t){const e=a.useRef(null);return Gs(()=>{e.current=t},[t]),a.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Br(t,e){const n=a.useRef(!0),r=a.useRef(null);R(()=>(n.current=!0,()=>{n.current=!1}),[]),R(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Hr(t,e){R(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ft(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function Ur(t,e){let n=t;for(ft(n,e)&&(n=n.parentElement);n&&!ft(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Wr(t,e){let n=[],r=document.scrollingElement||document.documentElement;do ft(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function tt(t){return He()?t.metaKey:t.ctrlKey}const qs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ht(t){return t instanceof HTMLInputElement&&!qs.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let he=typeof document<"u"&&window.visualViewport;function Zs(){let t=Be(),[e,n]=a.useState(()=>t?{width:0,height:0}:Cn());return a.useEffect(()=>{let r=s=>{n(d=>s.width===d.width&&s.height===d.height?d:s)},i=()=>{he&&he.scale>1||r(Cn())},o,l=s=>{he&&he.scale>1||ht(K(s))&&(o=requestAnimationFrame(()=>{let d=ie();(!d||!ht(d))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(Cn()),Ue()&&window.addEventListener("blur",l,!0),he?he.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),Ue()&&window.removeEventListener("blur",l,!0),he?he.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function Cn(){return{width:he?he.width*he.scale:document.documentElement.clientWidth,height:he?he.height*he.scale:document.documentElement.clientHeight}}let Ys=0;const Pn=new Map;function Xs(t){let[e,n]=a.useState();return R(()=>{if(!t)return;let r=Pn.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Ys++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Pn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Pn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function St(t,e,n,r){let i=ye(n),o=n==null;a.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function kn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),d=t.getBoundingClientRect(),c=window.getComputedStyle(e),u=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,m=t===f?0:d.top,v=t===f?t.clientHeight:d.bottom,y=t===f?0:d.left,g=t===f?t.clientWidth:d.right,w=parseInt(c.scrollMarginTop,10)||0,x=parseInt(c.scrollMarginBottom,10)||0,E=parseInt(c.scrollMarginLeft,10)||0,C=parseInt(c.scrollMarginRight,10)||0,k=parseInt(u.scrollPaddingTop,10)||0,N=parseInt(u.scrollPaddingBottom,10)||0,H=parseInt(u.scrollPaddingLeft,10)||0,F=parseInt(u.scrollPaddingRight,10)||0,P=parseInt(u.borderTopWidth,10)||0,I=parseInt(u.borderBottomWidth,10)||0,z=parseInt(u.borderLeftWidth,10)||0,ee=parseInt(u.borderRightWidth,10)||0,ne=s.top-w,q=s.bottom+x,T=s.left-E,V=s.right+C,j=t===f?0:z+ee,Z=t===f?0:P+I,Q=t.offsetWidth-t.clientWidth-j,re=t.offsetHeight-t.clientHeight-Z,h=m+P+k,M=v-I-N-re,b=y+z+H,D=g-ee-F;u.direction==="rtl"&&!Ue()?b+=Q:D-=Q;let S=ne<h||q>M,L=T<b||V>D;if(S&&r==="start")o+=ne-h;else if(S&&r==="center")o+=(ne+q)/2-(h+M)/2;else if(S&&r==="end")o+=q-M;else if(S&&r==="nearest"){let X=ne-h,ae=q-M;o+=Math.abs(X)<=Math.abs(ae)?X:ae}if(L&&i==="start")l+=T-b;else if(L&&i==="center")l+=(T+V)/2-(b+D)/2;else if(L&&i==="end")l+=V-D;else if(L&&i==="nearest"){let X=T-b,ae=V-D;l+=Math.abs(X)<=Math.abs(ae)?X:ae}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function jr(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(l).overflow==="hidden")&&!bn()){var r;let{left:d,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:u,top:f}=t.getBoundingClientRect();if(Math.abs(d-u)>1||Math.abs(c-f)>1){var i,o;n==null||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}else{let{left:d,top:c}=t.getBoundingClientRect(),u=Wr(t,!0);for(let v of u)kn(v,t);let{left:f,top:m}=t.getBoundingClientRect();if(Math.abs(d-f)>1||Math.abs(c-m)>1){u=n?Wr(n,!0):[];for(let v of u)kn(v,n,{block:"center",inline:"center"})}}}}function Nn(t){return t.pointerType===""&&t.isTrusted?!0:yn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Js(t){return!yn()&&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=ye(()=>{n&&n(e)});a.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t])}function qr(t){const e=a.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Qs="react-aria-clear-focus",Rs="react-aria-focus";function Tn(t,e=!0){let[n,r]=a.useState(!0),i=n&&e;return R(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Zr(t,i,a.useCallback(()=>r(!1),[])),i}function Dn(t,e){let[n,r]=a.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Zr(t,i,a.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Zr(t,e,n){R(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||dt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const ea=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ta(t){const e=de(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:s}=o(t);i=l!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function na(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 Mn(t,e){return ea?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&ta(t)&&na(t,e)&&(!t.parentElement||Mn(t.parentElement,t))}const In=["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"])',"permission"],ra=In.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";In.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ia=In.join(':not([hidden]):not([tabindex="-1"]),');function Yr(t){return t.matches(ra)&&Mn(t)&&!Jr(t)}function Xr(t){return t.matches(ia)&&Mn(t)&&!Jr(t)}function Jr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var Kn;const oa=typeof document<"u"?(Kn=a.useInsertionEffect)!==null&&Kn!==void 0?Kn:a.useLayoutEffect:()=>{};function pt(t,e,n){let[r,i]=a.useState(t||e),o=a.useRef(r),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let d=s?t:r;oa(()=>{o.current=d});let[,c]=a.useReducer(()=>({}),{}),u=a.useCallback((f,...m)=>{let v=typeof f=="function"?f(o.current):f;Object.is(o.current,v)||(o.current=v,i(v),c(),n==null||n(v,...m))},[n]);return[d,u]}const _n=Symbol("default");function mt({values:t,children:e}){for(let[n,r]of t)e=a.createElement(n.Provider,{value:r},e);return e}function pe(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:s,render:d}=t;return a.useMemo(()=>{let c,u,f;return typeof e=="function"?c=e({...s,defaultClassName:i}):c=e,typeof n=="function"?u=n({...s,defaultStyle:l||{}}):u=n,typeof r=="function"?f=r({...s,defaultChildren:o}):r==null?f=o:f=r,{className:c??i,style:u||l?{...l,...u}:void 0,children:f??o,"data-rac":"",render:d?m=>d(m,s):void 0}},[e,n,r,i,o,l,s,d])}function $t(t,e){let n=a.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||_n;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function xe(t,e,n){let r=$t(n,t.slot)||{},{ref:i,...o}=r,l=$e(a.useMemo(()=>et(e,i),[e,i])),s=G(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?s.style=d=>{let c=typeof o.style=="function"?o.style(d):o.style,u={...d.defaultStyle,...c},f=typeof t.style=="function"?t.style({...d,defaultStyle:u}):t.style;return{...u,...f}}:s.style={...o.style,...t.style}),[s,l]}function la(t=!0){let[e,n]=a.useState(t),r=a.useRef(!1),i=a.useCallback(o=>{r.current=!0,n(!!o)},[]);return R(()=>{r.current||n(!1)},[]),[i,e]}function Lt(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function sa(t,e,n){let{render:r,...i}=e,o=a.useRef(null),l=a.useMemo(()=>et(n,o),[n,o]);R(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let s={...i,ref:l};return r?r(s,void 0):a.createElement(t,s)}const Qr={},ue=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Qr[e];return n||(n=a.forwardRef(sa.bind(null,e)),Qr[e]=n),n}}),Rr=7e3;let Ee=null;function ei(t,e="assertive",n=Rr){Ee?Ee.announce(t,e,n):(Ee=new aa,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ee.announce(t,e,n):setTimeout(()=>{Ee!=null&&Ee.isAttached()&&(Ee==null||Ee.announce(t,e,n))},100))}class aa{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=Rr){var i,o;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"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.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 da=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ca=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ua(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 da.has(n.script)}let e=t.split("-")[0];return ca.has(e)}const ti=Symbol.for("react-aria.i18n.locale");function ni(){let t=typeof window<"u"&&window[ti]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:ua(t)?"rtl":"ltr"}}let Sn=ni(),vt=new Set;function ri(){Sn=ni();for(let t of vt)t(Sn)}function fa(){let t=Be(),[e,n]=a.useState(Sn);return a.useEffect(()=>(vt.size===0&&window.addEventListener("languagechange",ri),vt.add(n),()=>{vt.delete(n),vt.size===0&&window.removeEventListener("languagechange",ri)}),[]),t?{locale:typeof window<"u"&&window[ti]||"en-US",direction:"ltr"}:e}const ha=a.createContext(null);function $n(){let t=fa();return a.useContext(ha)||t}const pa=Symbol.for("react-aria.i18n.locale"),ma=Symbol.for("react-aria.i18n.strings");let nt;class Ft{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=va(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[pa];if(nt===void 0){let i=window[ma];if(!i)return null;nt={};for(let o in i)nt[o]=new Ft({[n]:i[o]},n)}let r=nt==null?void 0:nt[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 va(t,e,n="en-US"){if(e[t])return e[t];let r=ga(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function ga(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ii=new Map,oi=new Map;class ba{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 i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=ii.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ii.set(o,l));let s=l.select(e);return i=n[s]||n.other,typeof i=="function"?i():i}number(e){let n=oi.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),oi.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 li=new WeakMap;function ya(t){let e=li.get(t);return e||(e=new Ft(t),li.set(t,e)),e}function xa(t,e){return e&&Ft.getGlobalDictionaryForPackage(e)||ya(t)}function wa(t,e){let{locale:n}=$n(),r=xa(t,e);return a.useMemo(()=>new ba(n,r),[n,r])}function Ea(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ca(t,e,n){Ea(t,e),e.set(t,n)}function Ln(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function si(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function ai(t){let e=a.useRef({isFocused:!1,observer:null});return R(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{let r=K(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let s=Ln(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=i===ie()?null:ie();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Ot=!1;function di(t){for(;t&&!Yr(t);)t=t.parentElement;let e=de(t),n=e.document.activeElement;if(!n||n===t)return;Ot=!0;let r=!1,i=u=>{(K(u)===n||r)&&u.stopImmediatePropagation()},o=u=>{(K(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,De(n),d()))},l=u=>{(K(u)===t||r)&&u.stopImmediatePropagation()},s=u=>{(K(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,De(n),d()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let d=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),Ot=!1,r=!1},c=requestAnimationFrame(d);return d}let rt="default",Fn="",At=new WeakMap;function ci(t){if(Ue()){if(rt==="default"){const e=Y(t);Fn=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";At.set(t,t.style[e]),t.style[e]="none"}}function On(t){if(Ue()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{Vr(()=>{if(rt==="restoring"){const e=Y(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Fn||""),Fn="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&At.has(t)){let e=At.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),At.delete(t)}}const An=a.createContext({register:()=>{}});An.displayName="PressResponderContext";function Pa(t,e){return e.get?e.get.call(t):e.value}function ui(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function ka(t,e){var n=ui(t,e,"get");return Pa(t,n)}function Na(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 fi(t,e,n){var r=ui(t,e,"set");return Na(t,r,n),n}function Ta(t){let e=a.useContext(An);if(e){let{register:n,ref:r,...i}=e;t=G(i,t),n()}return Hr(e,t.ref),t}var zt=new WeakMap;class Vt{continuePropagation(){fi(this,zt,!1)}get shouldStopPropagation(){return ka(this,zt)}constructor(e,n,r,i){Ca(this,zt,{writable:!0,value:void 0}),fi(this,zt,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let d,c=0,u,f=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,f=r.clientY),s&&(u!=null&&f!=null?(d=u-s.left,c=f-s.top):(d=s.width/2,c=s.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=d,this.y=c,this.key=r.key}}const hi=Symbol("linkClicked"),pi="react-aria-pressable-style",mi="data-react-aria-pressable";function it(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:s,isPressed:d,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:m,...v}=Ta(t),[y,g]=a.useState(!1),w=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:E,removeGlobalListener:C}=Kt(),k=a.useCallback((h,M)=>{let b=w.current;if(s||b.didFirePressStart)return!1;let D=!0;if(b.isTriggeringEvent=!0,r){let S=new Vt("pressstart",M,h);r(S),D=S.shouldStopPropagation}return n&&n(!0),b.isTriggeringEvent=!1,b.didFirePressStart=!0,g(!0),D},[s,r,n]),N=a.useCallback((h,M,b=!0)=>{let D=w.current;if(!D.didFirePressStart)return!1;D.didFirePressStart=!1,D.isTriggeringEvent=!0;let S=!0;if(i){let L=new Vt("pressend",M,h);i(L),S=L.shouldStopPropagation}if(n&&n(!1),g(!1),e&&b&&!s){let L=new Vt("press",M,h);e(L),S&&(S=L.shouldStopPropagation)}return D.isTriggeringEvent=!1,S},[s,i,n,e]),H=ye(N),F=a.useCallback((h,M)=>{let b=w.current;if(s)return!1;if(o){b.isTriggeringEvent=!0;let D=new Vt("pressup",M,h);return o(D),b.isTriggeringEvent=!1,D.shouldStopPropagation}return!0},[s,o]),P=ye(F),I=a.useCallback(h=>{let M=w.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&N(We(M.target,h),M.pointerType,!1),M.isPressed=!1,Q(null),M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,E(),f||On(M.target);for(let b of M.disposables)b();M.disposables=[]}},[f,E,N]),z=ye(I),ee=a.useCallback(h=>{u&&I(h)},[u,I]),ne=a.useCallback(h=>{s||l==null||l(h)},[s,l]),q=a.useCallback((h,M)=>{if(!s&&l){let b=new MouseEvent("click",h);si(b,M),l(Ln(b))}},[s,l]),T=ye(q),[V,j]=a.useState(!1);R(()=>{let h=w.current;if(V){let M=L=>{var X;if(h.isPressed&&h.target&&Vn(L,h.target)){var ae;bi(K(L),L.key)&&L.preventDefault();let J=K(L),fe=U(h.target,J);H(We(h.target,L),"keyboard",fe),fe&&T(L,h.target),E(),L.key!=="Enter"&&zn(h.target)&&U(h.target,J)&&!L[hi]&&(L[hi]=!0,Ie(h.target,L,!1)),h.isPressed=!1,j(!1),(ae=h.metaKeyEvents)===null||ae===void 0||ae.delete(L.key)}else if(L.key==="Meta"&&(!((X=h.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let J=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let fe of J.values())(B=h.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",fe))}},b=h.target,S=ut(L=>{b&&Vn(L,b)&&!L.repeat&&U(b,K(L))&&h.target&&P(We(h.target,L),"keyboard")},M);return x(Y(h.target),"keyup",S,!0),()=>{C(Y(h.target),"keyup",S,!0)}}},[V,x,E,C]);let[Z,Q]=a.useState(null);R(()=>{let h=w.current;if(Z==="pointer"){let M=D=>{if(D.pointerId===h.activePointerId&&h.isPressed&&D.button===0&&h.target){if(U(h.target,K(D))&&h.pointerType!=null){let S=!1,L=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(S?z(D):(De(h.target),h.target.click()))},80);D.currentTarget&&x(D.currentTarget,"click",()=>S=!0,!0),h.disposables.push(()=>clearTimeout(L))}else z(D);h.isOverTarget=!1}},b=D=>{z(D)};return x(Y(h.target),"pointerup",M,!1),x(Y(h.target),"pointercancel",b,!1),()=>{C(Y(h.target),"pointerup",M,!1),C(Y(h.target),"pointercancel",b,!1)}}else if(Z==="mouse"&&process.env.NODE_ENV==="test"){let M=b=>{if(b.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&U(h.target,b.target)&&h.pointerType!=null||z(b),h.isOverTarget=!1}};return x(Y(h.target),"mouseup",M,!1),()=>{C(Y(h.target),"mouseup",M,!1)}}else if(Z==="touch"&&process.env.NODE_ENV==="test"){let M=b=>{h.isPressed&&U(K(b),h.target)&&z({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return x(de(h.target),"scroll",M,!0),()=>{C(de(h.target),"scroll",M,!0)}}},[Z,x,C]);let re=a.useMemo(()=>{let h=w.current,M={onKeyDown(b){if(Vn(b.nativeEvent,b.currentTarget)&&U(b.currentTarget,K(b))){var D;bi(K(b),b.key)&&b.preventDefault();let S=!0;!h.isPressed&&!b.repeat&&(h.target=b.currentTarget,h.isPressed=!0,j(!0),h.pointerType="keyboard",S=k(b,"keyboard")),S&&b.stopPropagation(),b.metaKey&&He()&&((D=h.metaKeyEvents)===null||D===void 0||D.set(b.key,b.nativeEvent))}else b.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(b){if(!(b&&!U(b.currentTarget,K(b)))&&b&&b.button===0&&!h.isTriggeringEvent&&!Ie.isOpening){let D=!0;if(s&&b.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||Nn(b.nativeEvent))){let S=k(b,"virtual"),L=F(b,"virtual"),X=N(b,"virtual");ne(b),D=S&&L&&X}else if(h.isPressed&&h.pointerType!=="keyboard"){let S=h.pointerType||b.nativeEvent.pointerType||"virtual",L=F(We(b.currentTarget,b),S),X=N(We(b.currentTarget,b),S,!0);D=L&&X,h.isOverTarget=!1,ne(b),I(b)}h.ignoreEmulatedMouseEvents=!1,D&&b.stopPropagation()}}};return typeof PointerEvent<"u"?(M.onPointerDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(Js(b.nativeEvent)){h.pointerType="virtual";return}h.pointerType=b.pointerType;let D=!0;if(!h.isPressed){h.isPressed=!0,Q("pointer"),h.isOverTarget=!0,h.activePointerId=b.pointerId,h.target=b.currentTarget,f||ci(h.target),D=k(b,h.pointerType);let S=K(b);"releasePointerCapture"in S&&("hasPointerCapture"in S?S.hasPointerCapture(b.pointerId)&&S.releasePointerCapture(b.pointerId):S.releasePointerCapture(b.pointerId))}D&&b.stopPropagation()},M.onMouseDown=b=>{if(U(b.currentTarget,K(b))&&b.button===0){if(c){let D=di(b.target);D&&h.disposables.push(D)}b.stopPropagation()}},M.onPointerUp=b=>{!U(b.currentTarget,K(b))||h.pointerType==="virtual"||b.button===0&&!h.isPressed&&F(b,h.pointerType||b.pointerType)},M.onPointerEnter=b=>{b.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,k(We(h.target,b),h.pointerType))},M.onPointerLeave=b=>{b.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,N(We(h.target,b),h.pointerType,!1),ee(b))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}):process.env.NODE_ENV==="test"&&(M.onMouseDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(h.ignoreEmulatedMouseEvents){b.stopPropagation();return}if(h.isPressed=!0,Q("mouse"),h.isOverTarget=!0,h.target=b.currentTarget,h.pointerType=Nn(b.nativeEvent)?"virtual":"mouse",dt.flushSync(()=>k(b,h.pointerType))&&b.stopPropagation(),c){let S=di(b.target);S&&h.disposables.push(S)}},M.onMouseEnter=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,D=k(b,h.pointerType)),D&&b.stopPropagation()},M.onMouseLeave=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,D=N(b,h.pointerType,!1),ee(b)),D&&b.stopPropagation()},M.onMouseUp=b=>{U(b.currentTarget,K(b))&&!h.ignoreEmulatedMouseEvents&&b.button===0&&!h.isPressed&&F(b,h.pointerType||"mouse")},M.onTouchStart=b=>{if(!U(b.currentTarget,K(b)))return;let D=Da(b.nativeEvent);if(!D)return;h.activePointerId=D.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,Q("touch"),h.target=b.currentTarget,h.pointerType="touch",f||ci(h.target),k(Le(h.target,b),h.pointerType)&&b.stopPropagation()},M.onTouchMove=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,S=k(Le(h.target,b),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S=N(Le(h.target,b),h.pointerType,!1),ee(Le(h.target,b))),S&&b.stopPropagation()},M.onTouchEnd=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)&&h.pointerType!=null?(F(Le(h.target,b),h.pointerType),S=N(Le(h.target,b),h.pointerType),q(b.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(S=N(Le(h.target,b),h.pointerType,!1)),S&&b.stopPropagation(),h.isPressed=!1,Q(null),h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&On(h.target),E()},M.onTouchCancel=b=>{U(b.currentTarget,K(b))&&(b.stopPropagation(),h.isPressed&&I(Le(h.target,b)))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}),M},[s,c,E,f,I,ee,N,k,F,ne,q]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const h=Y(m.current);if(!h||!h.head||h.getElementById(pi))return;const M=h.createElement("style");M.id=pi,M.textContent=`
|
|
2
2
|
@layer {
|
|
3
|
-
[${
|
|
3
|
+
[${mi}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
`.trim(),f.head.prepend(T)},[b]),c.useEffect(()=>{let f=y.current;return()=>{var T;p||Fn((T=f.target)!==null&&T!==void 0?T:void 0);for(let x of f.disposables)x();f.disposables=[]}},[p]),{isPressed:s||g,pressProps:G(v,re,{[hi]:!0})}}function On(t){return t.tagName==="A"&&t.hasAttribute("href")}function Bn(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ce(i).HTMLInputElement&&!gi(i,n)||i instanceof ce(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&On(i))&&n!=="Enter")}function Ts(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function bi(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function Le(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 Re(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,key:e.key}}function Ds(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 _s(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function vi(t,e){let n=e.getBoundingClientRect(),r=Ds(t);return _s(n,r)}function Is(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!On(t)}function mi(t,e){return t instanceof HTMLInputElement?!gi(t,e):Is(t)}const Ms=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Ms.has(t.type)}let We=null;const zn=new Set;let vt=new Map,Ue=!1,Vn=!1;const Ks={Tab:!0,Escape:!0};function Vt(t,e){for(let n of zn)n(t,e)}function Ls(t){return!(t.metaKey||!Ve()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ht(t){Ue=!0,!De.isOpening&&Ls(t)&&(We="keyboard",Vt("keyboard",t))}function be(t){We="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Ue=!0,Vt("pointer",t))}function yi(t){!De.isOpening&&Cn(t)&&(Ue=!0,We="virtual")}function $i(t){I(t)===window||I(t)===document||At||!t.isTrusted||(!Ue&&!Vn&&(We="virtual",Vt("virtual",t)),Ue=!1,Vn=!1)}function xi(){At||(Ue=!1,Vn=!0)}function Hn(t){if(typeof window>"u"||typeof document>"u"||vt.get(ce(t)))return;const e=ce(t),n=X(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ue=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ht,!0),n.addEventListener("keyup",Ht,!0),n.addEventListener("click",yi,!0),e.addEventListener("focus",$i,!0),e.addEventListener("blur",xi,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",be,!0),n.addEventListener("pointermove",be,!0),n.addEventListener("pointerup",be,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",be,!0),n.addEventListener("mousemove",be,!0),n.addEventListener("mouseup",be,!0)),e.addEventListener("beforeunload",()=>{wi(t)},{once:!0}),vt.set(e,{focus:r})}const wi=(t,e)=>{const n=ce(t),r=X(t);e&&r.removeEventListener("DOMContentLoaded",e),vt.has(n)&&(n.HTMLElement.prototype.focus=vt.get(n).focus,r.removeEventListener("keydown",Ht,!0),r.removeEventListener("keyup",Ht,!0),r.removeEventListener("click",yi,!0),n.removeEventListener("focus",$i,!0),n.removeEventListener("blur",xi,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",be,!0),r.removeEventListener("pointermove",be,!0),r.removeEventListener("pointerup",be,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",be,!0),r.removeEventListener("mousemove",be,!0),r.removeEventListener("mouseup",be,!0)),vt.delete(n))};function Fs(t){const e=X(t);let n;return e.readyState!=="loading"?Hn(t):(n=()=>{Hn(t)},e.addEventListener("DOMContentLoaded",n)),()=>wi(t,n)}typeof document<"u"&&Fs();function Rn(){return We!=="pointer"}function Rt(){return We}function As(t){We=t,Vt(t,null)}const Os=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Bs(t,e,n){let r=X(n?I(n):void 0),i=n?I(n):void 0;const o=typeof window<"u"?ce(i).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?ce(i).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ce(i).HTMLElement:HTMLElement,s=typeof window<"u"?ce(i).KeyboardEvent:KeyboardEvent;let d=ie(r);return t=t||d instanceof o&&!Os.has(d.type)||d instanceof l||d instanceof a&&d.isContentEditable,!(t&&e==="keyboard"&&n instanceof s&&!Ks[n.key])}function zs(t,e,n){Hn(),c.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,o)=>{Bs(!!(n!=null&&n.isTextInput),i,o)&&t(Rn())};return zn.add(r),()=>{zn.delete(r)}},e)}function je(t){if(!t.isConnected)return;const e=X(t);if(Rt()==="virtual"){let n=ie(e);Br(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&Ne(t)})}else Ne(t)}function Ei(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(I(s)===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=ai(o),a=c.useCallback(s=>{let d=I(s);const u=X(d),p=u?ie(u):ie();d===s.currentTarget&&d===p&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Si(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 Vs(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Si(t.onKeyDown),onKeyUp:Si(t.onKeyUp)}}}let Wn=c.createContext(null);function Hs(t){let e=c.useContext(Wn)||{};Vr(e,t);let{ref:n,...r}=e;return r}function Wt(t,e){let{focusProps:n}=Ei(t),{keyboardProps:r}=Vs(t),i=G(n,r),o=Hs(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);c.useEffect(()=>{a.current&&e.current&&je(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:G({...i,tabIndex:s},l)}}function Rs({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(An.Provider,{value:e},t)}function Un(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=_t(),s=c.useCallback(p=>{H(p.currentTarget,I(p))&&o.current.isFocusWithin&&!H(p.currentTarget,p.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(p),i&&i(!1))},[n,i,o,a]),d=ai(s),u=c.useCallback(p=>{if(!H(p.currentTarget,I(p)))return;let b=I(p);const v=X(b),g=ie(v);if(!o.current.isFocusWithin&&g===b){r&&r(p),i&&i(!0),o.current.isFocusWithin=!0,d(p);let m=p.currentTarget;l(v,"focus",y=>{let $=I(y);if(o.current.isFocusWithin&&!H(m,$)){let w=new v.defaultView.FocusEvent("blur",{relatedTarget:$});li(w,m);let E=Kn(w);s(E)}},{capture:!0})}},[r,i,d,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}let Ut=!1,jt=0;function jn(){Ut=!0,setTimeout(()=>{Ut=!1},50)}function Ci(t){t.pointerType==="touch"&&jn()}function Ws(){if(!(typeof document>"u"))return jt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ci):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",jn)),jt++,()=>{jt--,!(jt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ci):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",jn))}}function mt(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(Ws,[]);let{addGlobalListener:s,removeAllGlobalListeners:d}=_t(),{hoverProps:u,triggerHoverEnd:p}=c.useMemo(()=>{let b=(m,y)=>{if(a.pointerType=y,i||y==="touch"||a.isHovered||!H(m.currentTarget,I(m)))return;a.isHovered=!0;let $=m.currentTarget;a.target=$,s(X(I(m)),"pointerover",w=>{a.isHovered&&a.target&&!H(a.target,I(w))&&v(w,w.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},v=(m,y)=>{let $=a.target;a.pointerType="",a.target=null,!(y==="touch"||!a.isHovered||!$)&&(a.isHovered=!1,d(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{Ut&&m.pointerType==="mouse"||b(m,m.pointerType)},g.onPointerLeave=m=>{!i&&H(m.currentTarget,I(m))&&v(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!Ut&&b(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!i&&H(m.currentTarget,I(m))&&v(m,"mouse")}),{hoverProps:g,triggerHoverEnd:v}},[e,n,r,i,a,s,d]);return c.useEffect(()=>{i&&p({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:u,isHovered:o}}function Us(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ye(s=>{n&&Gt(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=ye(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const d=e.current,u=X(d);if(typeof PointerEvent<"u"){let p=b=>{s.isPointerDown&&Gt(b,e)&&a(b),s.isPointerDown=!1};return u.addEventListener("pointerdown",l,!0),u.addEventListener("click",p,!0),()=>{u.removeEventListener("pointerdown",l,!0),u.removeEventListener("click",p,!0)}}else if(process.env.NODE_ENV==="test"){let p=v=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Gt(v,e)&&a(v),s.isPointerDown=!1},b=v=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Gt(v,e)&&a(v),s.isPointerDown=!1};return u.addEventListener("mousedown",l,!0),u.addEventListener("mouseup",p,!0),u.addEventListener("touchstart",l,!0),u.addEventListener("touchend",b,!0),()=>{u.removeEventListener("mousedown",l,!0),u.removeEventListener("mouseup",p,!0),u.removeEventListener("touchstart",l,!0),u.removeEventListener("touchend",b,!0)}}},[e,r])}function Gt(t,e){if(t.button>0)return!1;let n=I(t);if(n){const r=n.ownerDocument;if(!r||!H(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const js=500;function Gs(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=js,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:d}=_t(),{pressProps:u}=it({isDisabled:e,onPressStart(b){if(b.continuePropagation(),(b.pointerType==="mouse"||b.pointerType==="touch")&&(n&&n({...b,type:"longpressstart"}),a.current=setTimeout(()=>{b.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),X(b.target).activeElement!==b.target&&Ne(b.target),i&&i({...b,type:"longpress"}),a.current=void 0},o),b.pointerType==="touch")){let v=g=>{g.preventDefault()};s(b.target,"contextmenu",v,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{d(b.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(b){a.current&&clearTimeout(a.current),r&&(b.pointerType==="mouse"||b.pointerType==="touch")&&r({...b,type:"longpressend"})}}),p=Za(i&&!e?l:void 0);return{longPressProps:G(u,p)}}const ki=c.createContext(null),Gn="react-aria-focus-scope-restore";let te=null;function qs(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(ki)||{},d=c.useMemo(()=>new Xn({scopeRef:a}),[a]);Q(()=>{let b=s||le.root;if(le.getTreeNode(b.scopeRef)&&te&&!qt(te,b.scopeRef)){let v=le.getTreeNode(te);v&&(b=v)}b.addChild(d),le.addNode(d)},[d,s]),Q(()=>{let b=le.getTreeNode(a);b&&(b.contain=!!n)},[n]),Q(()=>{var b;let v=(b=o.current)===null||b===void 0?void 0:b.nextSibling,g=[],m=y=>y.stopPropagation();for(;v&&v!==l.current;)g.push(v),v.addEventListener(Gn,m),v=v.nextSibling;return a.current=g,()=>{for(let y of g)y.removeEventListener(Gn,m)}},[e]),tc(a,r,n),Js(a,n),nc(a,r,n),ec(a,i),c.useEffect(()=>{const b=ie(X(a.current?a.current[0]:void 0));let v=null;if(ve(b,a.current)){for(let g of le.traverse())g.scopeRef&&ve(b,g.scopeRef.current)&&(v=g);v===le.getTreeNode(a)&&(te=v.scopeRef)}},[a]),Q(()=>()=>{var b,v,g;let m=(g=(v=le.getTreeNode(a))===null||v===void 0||(b=v.parent)===null||b===void 0?void 0:b.scopeRef)!==null&&g!==void 0?g:null;(a===te||qt(a,te))&&(!m||le.getTreeNode(m))&&(te=m),le.removeTreeNode(a)},[a]);let u=c.useMemo(()=>Ys(a),[]),p=c.useMemo(()=>({focusManager:u,parentNode:d}),[d,u]);return c.createElement(ki.Provider,{value:p},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Ys(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||ie(X((a=n[0])!==null&&a!==void 0?a:void 0)),d=n[0].previousElementSibling,u=Ge(n),p=Ee(u,{tabbable:i,accept:l},n);p.currentNode=ve(s,n)?s:d;let b=p.nextNode();return!b&&o&&(p.currentNode=d,b=p.nextNode()),b&&_e(b,!0),b},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||ie(X((a=n[0])!==null&&a!==void 0?a:void 0)),d=n[n.length-1].nextElementSibling,u=Ge(n),p=Ee(u,{tabbable:i,accept:l},n);p.currentNode=ve(s,n)?s:d;let b=p.previousNode();return!b&&o&&(p.currentNode=d,b=p.previousNode()),b&&_e(b,!0),b},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ge(n),l=Ee(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&_e(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ge(n),l=Ee(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&_e(a,!0),a}}}function Ge(t){return t[0].parentElement}function gt(t){let e=le.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Xs(t){if(!t.form)return Array.from(X(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=ce(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function Zs(t){if(t.checked)return!0;const e=Xs(t);return e.length>0&&!e.some(n=>n.checked)}function Js(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);Q(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=X(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!gt(t)||d.isComposing)return;let u=ie(o),p=t.current;if(!p||!ve(u,p))return;let b=Ge(p),v=Ee(b,{tabbable:!0},p);if(!u)return;v.currentNode=u;let g=d.shiftKey?v.previousNode():v.nextNode();g||(v.currentNode=d.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,g=d.shiftKey?v.previousNode():v.nextNode()),d.preventDefault(),g&&_e(g,!0)},a=d=>{(!te||qt(te,t))&&ve(I(d),t.current)?(te=t,n.current=I(d)):gt(t)&&!Fe(I(d),t)?n.current?n.current.focus():te&&te.current&&qn(te.current):gt(t)&&(n.current=I(d))},s=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Rt(),p=(u==="virtual"||u===null)&&gn()&&mn(),b=ie(o);if(!p&&b&>(t)&&!Fe(b,t)){te=t;let g=I(d);if(g&&g.isConnected){var v;n.current=g,(v=n.current)===null||v===void 0||v.focus()}else te.current&&qn(te.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(d=>d.addEventListener("focusin",a,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",a,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",s,!1))}},[t,e]),Q(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Pi(t){return Fe(t)}function ve(t,e){return!t||!e?!1:e.some(n=>H(n,t))}function Fe(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of le.traverse(le.getTreeNode(e)))if(n&&ve(t,n.current))return!0;return!1}function Qs(t){return Fe(t,te)}function qt(t,e){var n;let r=(n=le.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function _e(t,e=!1){if(t!=null&&!e)try{je(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Ni(t,e=!0){let n=t[0].previousElementSibling,r=Ge(t),i=Ee(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ge(t),i=Ee(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function qn(t,e=!0){_e(Ni(t,e))}function ec(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){te=t;const r=X(t.current?t.current[0]:void 0);!ve(ie(r),te.current)&&t.current&&qn(t.current)}n.current=!1},[t])}function tc(t,e,n){Q(()=>{if(e||n)return;let r=t.current;const i=X(r?r[0]:void 0);let o=l=>{let a=I(l);ve(a,t.current)?te=t:Pi(a)||(te=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ti(t){let e=le.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function nc(t,e,n){const r=c.useRef(typeof document<"u"?ie(X(t.current?t.current[0]:void 0)):null);Q(()=>{let i=t.current;const o=X(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!te||qt(te,t))&&ve(ie(o),t.current)&&(te=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),Q(()=>{const i=X(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!gt(t)||l.isComposing)return;let a=i.activeElement;if(!Fe(a,t)||!Ti(t))return;let s=le.getTreeNode(t);if(!s)return;let d=s.nodeToRestore,u=Ee(i.body,{tabbable:!0});u.currentNode=a;let p=l.shiftKey?u.previousNode():u.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,s.nodeToRestore=void 0),(!p||!Fe(p,t))&&d){u.currentNode=d;do p=l.shiftKey?u.previousNode():u.nextNode();while(Fe(p,t));l.preventDefault(),l.stopPropagation(),p?_e(p,!0):Pi(d)?_e(d,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),Q(()=>{const i=X(t.current?t.current[0]:void 0);if(!e)return;let o=le.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=le.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,d=ie(i);if(e&&s&&(d&&Fe(d,t)||d===i.body&&Ti(t))){let u=le.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let p=u.getTreeNode(t);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){Di(p.nodeToRestore);return}p=p.parent}for(p=u.getTreeNode(t);p;){if(p.scopeRef&&p.scopeRef.current&&le.getTreeNode(p.scopeRef)){let b=Ni(p.scopeRef.current,!0);Di(b);return}p=p.parent}}})}}}},[t,e])}function Di(t){t.dispatchEvent(new CustomEvent(Gn,{bubbles:!0,cancelable:!0}))&&_e(t)}function Ee(t,e,n){let r=e!=null&&e.tabbable?Yr:qr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=X(i),l=Mr(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){return H(e==null?void 0:e.from,a)||e!=null&&e.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!Zs(a)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:r(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}class Yn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Xn({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.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 o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ve(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),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 Yn;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Xn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xn{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 le=new Yn;function qe(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||Rn()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),u=c.useCallback(v=>{i.current.isFocused=v,i.current.isFocusVisible=Rn(),l(v),d()},[d]);zs(v=>{i.current.isFocusVisible=v,d()},[n,o],{enabled:o,isTextInput:n});let{focusProps:p}=Ei({isDisabled:r,onFocusChange:u}),{focusWithinProps:b}=Un({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:a,focusProps:r?b:p}}function rc(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return Q(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=Ee(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function _i(t){let e=oc(X(t));e!==t&&(e&&ic(e,t),t&&Ii(t,e))}function ic(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Ii(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function oc(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Se=[];function lc(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t,s=c.useRef(void 0);c.useEffect(()=>{if(i&&!Se.includes(e))return Se.push(e),()=>{let m=Se.indexOf(e);m>=0&&Se.splice(m,1)}},[i,e]);let d=()=>{Se[Se.length-1]===e&&n&&n()},u=m=>{const y=Se[Se.length-1];s.current=y,(!a||a(I(m)))&&y===e&&(m.stopPropagation(),m.preventDefault())},p=m=>{(!a||a(I(m)))&&(Se[Se.length-1]===e&&(m.stopPropagation(),m.preventDefault()),s.current===e&&d()),s.current=void 0},b=m=>{m.key==="Escape"&&!l&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),d())};Us({ref:e,onInteractOutside:o&&i?p:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=Un({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||Qs(m.relatedTarget)||(!a||a(m.relatedTarget))&&(n==null||n())}}),g=m=>{I(m)===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:b,...v},underlayProps:{onPointerDown:g}}}const yt=typeof document<"u"&&window.visualViewport;let Yt=0,Zn;function ac(t={}){let{isDisabled:e}=t;Q(()=>{if(!e)return Yt++,Yt===1&&(He()?Zn=cc():Zn=sc()),()=>{Yt--,Yt===0&&Zn()}},[e])}function sc(){let t=window.innerWidth-document.documentElement.clientWidth;return dt(t>0&&("scrollbarGutter"in document.documentElement.style?Xt(document.documentElement,"scrollbarGutter","stable"):Xt(document.documentElement,"paddingRight",`${t}px`)),Xt(document.documentElement,"overflow","hidden"))}function cc(){let t=Xt(document.documentElement,"overflow","hidden"),e,n=!1,r=d=>{let u=I(d);e=ut(u)?u:Hr(u,!0),n=!1;let p=u.ownerDocument.defaultView.getSelection();p&&!p.isCollapsed&&p.containsNode(u,!0)&&(n=!0),d.composedPath().some(b=>b instanceof HTMLInputElement&&b.type==="range")&&(n=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(n=!0)},i=document.createElement("style");i.textContent=`
|
|
7
|
+
`.trim(),h.head.prepend(M)},[m]),a.useEffect(()=>{let h=w.current;return()=>{var M;f||On((M=h.target)!==null&&M!==void 0?M:void 0);for(let b of h.disposables)b();h.disposables=[]}},[f]),{isPressed:d||y,pressProps:G(v,re,{[mi]:!0})}}function zn(t){return t.tagName==="A"&&t.hasAttribute("href")}function Vn(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof de(i).HTMLInputElement&&!yi(i,n)||i instanceof de(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&zn(i))&&n!=="Enter")}function Da(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function vi(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function Le(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 We(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,key:e.key}}function Ma(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 Ia(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function gi(t,e){let n=e.getBoundingClientRect(),r=Ma(t);return Ia(n,r)}function Ka(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!zn(t)}function bi(t,e){return t instanceof HTMLInputElement?!yi(t,e):Ka(t)}const _a=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":_a.has(t.type)}let je=null;const Bn=new Set;let gt=new Map,Ge=!1,Hn=!1;const Sa={Tab:!0,Escape:!0};function Bt(t,e){for(let n of Bn)n(t,e)}function $a(t){return!(t.metaKey||!He()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ht(t){Ge=!0,!Ie.isOpening&&$a(t)&&(je="keyboard",Bt("keyboard",t))}function me(t){je="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Ge=!0,Bt("pointer",t))}function xi(t){!Ie.isOpening&&Nn(t)&&(Ge=!0,je="virtual")}function wi(t){K(t)===window||K(t)===document||Ot||!t.isTrusted||(!Ge&&!Hn&&(je="virtual",Bt("virtual",t)),Ge=!1,Hn=!1)}function Ei(){Ot||(Ge=!1,Hn=!0)}function Un(t){if(typeof window>"u"||typeof document>"u"||gt.get(de(t)))return;const e=de(t),n=Y(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ge=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ht,!0),n.addEventListener("keyup",Ht,!0),n.addEventListener("click",xi,!0),e.addEventListener("focus",wi,!0),e.addEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",me,!0),n.addEventListener("pointermove",me,!0),n.addEventListener("pointerup",me,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",me,!0),n.addEventListener("mousemove",me,!0),n.addEventListener("mouseup",me,!0)),e.addEventListener("beforeunload",()=>{Ci(t)},{once:!0}),gt.set(e,{focus:r})}const Ci=(t,e)=>{const n=de(t),r=Y(t);e&&r.removeEventListener("DOMContentLoaded",e),gt.has(n)&&(n.HTMLElement.prototype.focus=gt.get(n).focus,r.removeEventListener("keydown",Ht,!0),r.removeEventListener("keyup",Ht,!0),r.removeEventListener("click",xi,!0),n.removeEventListener("focus",wi,!0),n.removeEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",me,!0),r.removeEventListener("pointermove",me,!0),r.removeEventListener("pointerup",me,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",me,!0),r.removeEventListener("mousemove",me,!0),r.removeEventListener("mouseup",me,!0)),gt.delete(n))};function La(t){const e=Y(t);let n;return e.readyState!=="loading"?Un(t):(n=()=>{Un(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ci(t,n)}typeof document<"u"&&La();function Wn(){return je!=="pointer"}function Ut(){return je}function Fa(t){je=t,Bt(t,null)}const Oa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Aa(t,e,n){let r=Y(n?K(n):void 0),i=n?K(n):void 0;const o=typeof window<"u"?de(i).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?de(i).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?de(i).HTMLElement:HTMLElement,d=typeof window<"u"?de(i).KeyboardEvent:KeyboardEvent;let c=ie(r);return t=t||c instanceof o&&!Oa.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(t&&e==="keyboard"&&n instanceof d&&!Sa[n.key])}function za(t,e,n){Un(),a.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,o)=>{Aa(!!(n!=null&&n.isTextInput),i,o)&&t(Wn())};return Bn.add(r),()=>{Bn.delete(r)}},e)}function qe(t){if(!t.isConnected)return;const e=Y(t);if(Ut()==="virtual"){let n=ie(e);Vr(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&De(t)})}else De(t)}function Pi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=a.useCallback(d=>{if(K(d)===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),l=ai(o),s=a.useCallback(d=>{let c=K(d);const u=Y(c),f=u?ie(u):ie();c===d.currentTarget&&c===f&&(n&&n(d),i&&i(!0),l(d))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?s:void 0,onBlur:!e&&(r||i)?o:void 0}}}function ki(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 Va(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:ki(t.onKeyDown),onKeyUp:ki(t.onKeyUp)}}}let jn=a.createContext(null);function Ba(t){let e=a.useContext(jn)||{};Hr(e,t);let{ref:n,...r}=e;return r}function Wt(t,e){let{focusProps:n}=Pi(t),{keyboardProps:r}=Va(t),i=G(n,r),o=Ba(e),l=t.isDisabled?{}:o,s=a.useRef(t.autoFocus);a.useEffect(()=>{s.current&&e.current&&qe(e.current),s.current=!1},[e]);let d=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(d=void 0),{focusableProps:G({...i,tabIndex:d},l)}}function Ha({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(An.Provider,{value:e},t)}function Gn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=Kt(),d=a.useCallback(f=>{U(f.currentTarget,K(f))&&o.current.isFocusWithin&&!U(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(f),i&&i(!1))},[n,i,o,s]),c=ai(d),u=a.useCallback(f=>{if(!U(f.currentTarget,K(f)))return;let m=K(f);const v=Y(m),y=ie(v);if(!o.current.isFocusWithin&&y===m){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let g=f.currentTarget;l(v,"focus",w=>{let x=K(w);if(o.current.isFocusWithin&&!U(g,x)){let E=new v.defaultView.FocusEvent("blur",{relatedTarget:x});si(E,g);let C=Ln(E);d(C)}},{capture:!0})}},[r,i,c,l,d]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:d}}}let jt=!1,Gt=0;function qn(){jt=!0,setTimeout(()=>{jt=!1},50)}function Ni(t){t.pointerType==="touch"&&qn()}function Ua(){if(!(typeof document>"u"))return Gt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ni):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qn)),Gt++,()=>{Gt--,!(Gt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ni):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",qn))}}function bt(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Ua,[]);let{addGlobalListener:d,removeAllGlobalListeners:c}=Kt(),{hoverProps:u,triggerHoverEnd:f}=a.useMemo(()=>{let m=(g,w)=>{if(s.pointerType=w,i||w==="touch"||s.isHovered||!U(g.currentTarget,K(g)))return;s.isHovered=!0;let x=g.currentTarget;s.target=x,d(Y(K(g)),"pointerover",E=>{s.isHovered&&s.target&&!U(s.target,K(E))&&v(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:x,pointerType:w}),n&&n(!0),l(!0)},v=(g,w)=>{let x=s.target;s.pointerType="",s.target=null,!(w==="touch"||!s.isHovered||!x)&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:x,pointerType:w}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=g=>{jt&&g.pointerType==="mouse"||m(g,g.pointerType)},y.onPointerLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=g=>{!s.ignoreEmulatedMouseEvents&&!jt&&m(g,"mouse"),s.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,"mouse")}),{hoverProps:y,triggerHoverEnd:v}},[e,n,r,i,s,d,c]);return a.useEffect(()=>{i&&f({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}function Wa(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ye(d=>{n&&qt(d,e)&&(i&&i(d),o.current.isPointerDown=!0)}),s=ye(d=>{n&&n(d)});a.useEffect(()=>{let d=o.current;if(r)return;const c=e.current,u=Y(c);if(typeof PointerEvent<"u"){let f=m=>{d.isPointerDown&&qt(m,e)&&s(m),d.isPointerDown=!1};return u.addEventListener("pointerdown",l,!0),u.addEventListener("click",f,!0),()=>{u.removeEventListener("pointerdown",l,!0),u.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1},m=v=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1};return u.addEventListener("mousedown",l,!0),u.addEventListener("mouseup",f,!0),u.addEventListener("touchstart",l,!0),u.addEventListener("touchend",m,!0),()=>{u.removeEventListener("mousedown",l,!0),u.removeEventListener("mouseup",f,!0),u.removeEventListener("touchstart",l,!0),u.removeEventListener("touchend",m,!0)}}},[e,r])}function qt(t,e){if(t.button>0)return!1;let n=K(t);if(n){const r=n.ownerDocument;if(!r||!U(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ja=500;function Ga(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ja,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:d,removeGlobalListener:c}=Kt(),{pressProps:u}=it({isDisabled:e,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),s.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Y(m.target).activeElement!==m.target&&De(m.target),i&&i({...m,type:"longpress"}),s.current=void 0},o),m.pointerType==="touch")){let v=y=>{y.preventDefault()};d(m.target,"contextmenu",v,{once:!0}),d(window,"pointerup",()=>{setTimeout(()=>{c(m.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(m){s.current&&clearTimeout(s.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),f=Xs(i&&!e?l:void 0);return{longPressProps:G(u,f)}}const Ti=a.createContext(null),Zn="react-aria-focus-scope-restore";let te=null;function qa(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:d}=a.useContext(Ti)||{},c=a.useMemo(()=>new Jn({scopeRef:s}),[s]);R(()=>{let m=d||oe.root;if(oe.getTreeNode(m.scopeRef)&&te&&!Zt(te,m.scopeRef)){let v=oe.getTreeNode(te);v&&(m=v)}m.addChild(c),oe.addNode(c)},[c,d]),R(()=>{let m=oe.getTreeNode(s);m&&(m.contain=!!n)},[n]),R(()=>{var m;let v=(m=o.current)===null||m===void 0?void 0:m.nextSibling,y=[],g=w=>w.stopPropagation();for(;v&&v!==l.current;)y.push(v),v.addEventListener(Zn,g),v=v.nextSibling;return s.current=y,()=>{for(let w of y)w.removeEventListener(Zn,g)}},[e]),ed(s,r,n),Ja(s,n),td(s,r,n),Ra(s,i),a.useEffect(()=>{const m=ie(Y(s.current?s.current[0]:void 0));let v=null;if(ve(m,s.current)){for(let y of oe.traverse())y.scopeRef&&ve(m,y.scopeRef.current)&&(v=y);v===oe.getTreeNode(s)&&(te=v.scopeRef)}},[s]),R(()=>()=>{var m,v,y;let g=(y=(v=oe.getTreeNode(s))===null||v===void 0||(m=v.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(s===te||Zt(s,te))&&(!g||oe.getTreeNode(g))&&(te=g),oe.removeTreeNode(s)},[s]);let u=a.useMemo(()=>Za(s),[]),f=a.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return a.createElement(Ti.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Za(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[0].previousElementSibling,u=Ze(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ve(d,n)?d:c;let m=f.nextNode();return!m&&o&&(f.currentNode=c,m=f.nextNode()),m&&Ke(m,!0),m},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[n.length-1].nextElementSibling,u=Ze(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ve(d,n)?d:c;let m=f.previousNode();return!m&&o&&(f.currentNode=c,m=f.previousNode()),m&&Ke(m,!0),m},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Ke(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Ke(s,!0),s}}}function Ze(t){return t[0].parentElement}function yt(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Ya(t){if(!t.form)return Array.from(Y(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=de(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function Xa(t){if(t.checked)return!0;const e=Ya(t);return e.length>0&&!e.some(n=>n.checked)}function Ja(t,e){let n=a.useRef(void 0),r=a.useRef(void 0);R(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Y(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!yt(t)||c.isComposing)return;let u=ie(o),f=t.current;if(!f||!ve(u,f))return;let m=Ze(f),v=Ce(m,{tabbable:!0},f);if(!u)return;v.currentNode=u;let y=c.shiftKey?v.previousNode():v.nextNode();y||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),y&&Ke(y,!0)},s=c=>{(!te||Zt(te,t))&&ve(K(c),t.current)?(te=t,n.current=K(c)):yt(t)&&!Fe(K(c),t)?n.current?n.current.focus():te&&te.current&&Yn(te.current):yt(t)&&(n.current=K(c))},d=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Ut(),f=(u==="virtual"||u===null)&&yn()&&bn(),m=ie(o);if(!f&&m&&yt(t)&&!Fe(m,t)){te=t;let y=K(c);if(y&&y.isConnected){var v;n.current=y,(v=n.current)===null||v===void 0||v.focus()}else te.current&&Yn(te.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",s,!1),i==null||i.forEach(c=>c.addEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",d,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",s,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",d,!1))}},[t,e]),R(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Di(t){return Fe(t)}function ve(t,e){return!t||!e?!1:e.some(n=>U(n,t))}function Fe(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of oe.traverse(oe.getTreeNode(e)))if(n&&ve(t,n.current))return!0;return!1}function Qa(t){return Fe(t,te)}function Zt(t,e){var n;let r=(n=oe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Ke(t,e=!1){if(t!=null&&!e)try{qe(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Mi(t,e=!0){let n=t[0].previousElementSibling,r=Ze(t),i=Ce(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ze(t),i=Ce(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Yn(t,e=!0){Ke(Mi(t,e))}function Ra(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){te=t;const r=Y(t.current?t.current[0]:void 0);!ve(ie(r),te.current)&&t.current&&Yn(t.current)}n.current=!1},[t])}function ed(t,e,n){R(()=>{if(e||n)return;let r=t.current;const i=Y(r?r[0]:void 0);let o=l=>{let s=K(l);ve(s,t.current)?te=t:Di(s)||(te=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ii(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function td(t,e,n){const r=a.useRef(typeof document<"u"?ie(Y(t.current?t.current[0]:void 0)):null);R(()=>{let i=t.current;const o=Y(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!te||Zt(te,t))&&ve(ie(o),t.current)&&(te=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,n]),R(()=>{const i=Y(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!yt(t)||l.isComposing)return;let s=i.activeElement;if(!Fe(s,t)||!Ii(t))return;let d=oe.getTreeNode(t);if(!d)return;let c=d.nodeToRestore,u=Ce(i.body,{tabbable:!0});u.currentNode=s;let f=l.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,d.nodeToRestore=void 0),(!f||!Fe(f,t))&&c){u.currentNode=c;do f=l.shiftKey?u.previousNode():u.nextNode();while(Fe(f,t));l.preventDefault(),l.stopPropagation(),f?Ke(f,!0):Di(c)?Ke(c,!0):s.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),R(()=>{const i=Y(t.current?t.current[0]:void 0);if(!e)return;let o=oe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=oe.getTreeNode(t);if(!s)return;let d=s.nodeToRestore,c=ie(i);if(e&&d&&(c&&Fe(c,t)||c===i.body&&Ii(t))){let u=oe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=u.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Ki(f.nodeToRestore);return}f=f.parent}for(f=u.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&oe.getTreeNode(f.scopeRef)){let m=Mi(f.scopeRef.current,!0);Ki(m);return}f=f.parent}}})}}}},[t,e])}function Ki(t){t.dispatchEvent(new CustomEvent(Zn,{bubbles:!0,cancelable:!0}))&&Ke(t)}function Ce(t,e,n){let r=e!=null&&e.tabbable?Xr:Yr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=Y(i),l=$r(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return U(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!Xa(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ve(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Xn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Jn({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.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 o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ve(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),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 Xn;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Jn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Jn{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 oe=new Xn;function Ye(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=a.useRef({isFocused:!1,isFocusVisible:e||Wn()}),[o,l]=a.useState(!1),[s,d]=a.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=a.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),u=a.useCallback(v=>{i.current.isFocused=v,i.current.isFocusVisible=Wn(),l(v),c()},[c]);za(v=>{i.current.isFocusVisible=v,c()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=Pi({isDisabled:r,onFocusChange:u}),{focusWithinProps:m}=Gn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?m:f}}function nd(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=a.useState(!1);return R(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let s=Ce(t.current,{tabbable:!0});i(!!s.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function _i(t){let e=id(Y(t));e!==t&&(e&&rd(e,t),t&&Si(t,e))}function rd(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Si(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function id(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Pe=[];function od(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,d=a.useRef(void 0);a.useEffect(()=>{if(i&&!Pe.includes(e))return Pe.push(e),()=>{let g=Pe.indexOf(e);g>=0&&Pe.splice(g,1)}},[i,e]);let c=()=>{Pe[Pe.length-1]===e&&n&&n()},u=g=>{const w=Pe[Pe.length-1];d.current=w,(!s||s(K(g)))&&w===e&&(g.stopPropagation(),g.preventDefault())},f=g=>{(!s||s(K(g)))&&(Pe[Pe.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d.current===e&&c()),d.current=void 0},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),c())};Wa({ref:e,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=Gn({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||Qa(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),y=g=>{K(g)===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...v},underlayProps:{onPointerDown:y}}}const xt=typeof document<"u"&&window.visualViewport;let Yt=0,Qn;function ld(t={}){let{isDisabled:e}=t;R(()=>{if(!e)return Yt++,Yt===1&&(Ue()?Qn=ad():Qn=sd()),()=>{Yt--,Yt===0&&Qn()}},[e])}function sd(){let t=window.innerWidth-document.documentElement.clientWidth;return ut(t>0&&("scrollbarGutter"in document.documentElement.style?Xt(document.documentElement,"scrollbarGutter","stable"):Xt(document.documentElement,"paddingRight",`${t}px`)),Xt(document.documentElement,"overflow","hidden"))}function ad(){let t=Xt(document.documentElement,"overflow","hidden"),e,n=!1,r=c=>{let u=K(c);e=ft(u)?u:Ur(u,!0),n=!1;let f=u.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(u,!0)&&(n=!0),c.composedPath().some(m=>m instanceof HTMLInputElement&&m.type==="range")&&(n=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(n=!0)},i=document.createElement("style");i.textContent=`
|
|
8
8
|
@layer {
|
|
9
9
|
* {
|
|
10
10
|
overscroll-behavior: contain;
|
|
11
11
|
}
|
|
12
|
-
}`.trim(),document.head.prepend(i);let o=d=>{if(!(d.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()}},l=d=>{let u=I(d),p=d.relatedTarget;if(p&&ft(p))p.focus({preventScroll:!0}),Mi(p,ft(u));else if(!p){var b;let v=(b=u.parentElement)===null||b===void 0?void 0:b.closest("[tabindex]");v==null||v.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=ie(),p=u!=null&&ft(u);a.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Mi(this,p)};let s=dt(Jn(document,"touchstart",r,{passive:!1,capture:!0}),Jn(document,"touchmove",o,{passive:!1,capture:!0}),Jn(document,"blur",l,!0));return()=>{t(),s(),i.remove(),HTMLElement.prototype.focus=a}}function Xt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Jn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Mi(t,e){e||!yt?Ki(t):yt.addEventListener("resize",()=>Ki(t),{once:!0})}function Ki(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Hr(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;yt&&(l=Math.min(l,yt.offsetTop+yt.height));let a=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+a)),behavior:"smooth"})}}n=r.parentElement}}const dc=c.createContext({});function uc(){var t;return(t=c.useContext(dc))!==null&&t!==void 0?t:{}}var Li={};Li={dismiss:"تجاهل"};var Fi={};Fi={dismiss:"Отхвърляне"};var Ai={};Ai={dismiss:"Odstranit"};var Oi={};Oi={dismiss:"Luk"};var Bi={};Bi={dismiss:"Schließen"};var zi={};zi={dismiss:"Απόρριψη"};var Vi={};Vi={dismiss:"Dismiss"};var Hi={};Hi={dismiss:"Descartar"};var Ri={};Ri={dismiss:"Lõpeta"};var Wi={};Wi={dismiss:"Hylkää"};var Ui={};Ui={dismiss:"Rejeter"};var ji={};ji={dismiss:"התעלם"};var Gi={};Gi={dismiss:"Odbaci"};var qi={};qi={dismiss:"Elutasítás"};var Yi={};Yi={dismiss:"Ignora"};var Xi={};Xi={dismiss:"閉じる"};var Zi={};Zi={dismiss:"무시"};var Ji={};Ji={dismiss:"Atmesti"};var Qi={};Qi={dismiss:"Nerādīt"};var eo={};eo={dismiss:"Lukk"};var to={};to={dismiss:"Negeren"};var no={};no={dismiss:"Zignoruj"};var ro={};ro={dismiss:"Descartar"};var io={};io={dismiss:"Dispensar"};var oo={};oo={dismiss:"Revocare"};var lo={};lo={dismiss:"Пропустить"};var ao={};ao={dismiss:"Zrušiť"};var so={};so={dismiss:"Opusti"};var co={};co={dismiss:"Odbaci"};var uo={};uo={dismiss:"Avvisa"};var fo={};fo={dismiss:"Kapat"};var po={};po={dismiss:"Скасувати"};var ho={};ho={dismiss:"取消"};var bo={};bo={dismiss:"關閉"};var vo={};vo={"ar-AE":Li,"bg-BG":Fi,"cs-CZ":Ai,"da-DK":Oi,"de-DE":Bi,"el-GR":zi,"en-US":Vi,"es-ES":Hi,"et-EE":Ri,"fi-FI":Wi,"fr-FR":Ui,"he-IL":ji,"hr-HR":Gi,"hu-HU":qi,"it-IT":Yi,"ja-JP":Xi,"ko-KR":Zi,"lt-LT":Ji,"lv-LV":Qi,"nb-NO":eo,"nl-NL":to,"pl-PL":no,"pt-BR":ro,"pt-PT":io,"ro-RO":oo,"ru-RU":lo,"sk-SK":ao,"sl-SI":so,"sr-SP":co,"sv-SE":uo,"tr-TR":fo,"uk-UA":po,"zh-CN":ho,"zh-TW":bo};const mo={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 fc(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=Un({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...mo,...e}:mo,[r]);return{visuallyHiddenProps:{...o,style:l}}}function Qn(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=fc(t);return c.createElement(n,G(o,l),e)}function pc(t){return t&&t.__esModule?t.default:t}function hc(t){let{onDismiss:e,...n}=t,r=ws(pc(vo),"@react-aria/overlays"),i=It(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(Qn,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const bc=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let $t=new WeakMap,me=[];function vc(t,e){let n=ce(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let o=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,l=(r==null?void 0:r.shouldUseInert)&&bc,a=new Set(t),s=new Set,d=$=>l&&$ instanceof n.HTMLElement?$.inert:$.getAttribute("aria-hidden")==="true",u=($,w)=>{l&&$ instanceof n.HTMLElement?$.inert=w:w?$.setAttribute("aria-hidden","true"):($.removeAttribute("aria-hidden"),$ instanceof n.HTMLElement&&($.inert=!1))},p=new Set;if(Pe())for(let $ of t){let w=$;for(;w&&w!==o;){let E=w.getRootNode();"shadowRoot"in E&&p.add(E.shadowRoot),w=E.parentNode}}let b=$=>{for(let N of $.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(N);let w=N=>{if(s.has(N)||a.has(N)||N.parentElement&&s.has(N.parentElement)&&N.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let V of a)if(H(N,V))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},E=Mr(X($),$,NodeFilter.SHOW_ELEMENT,{acceptNode:w}),C=w($);if(C===NodeFilter.FILTER_ACCEPT&&v($),C!==NodeFilter.FILTER_REJECT){let N=E.nextNode();for(;N!=null;)v(N),N=E.nextNode()}},v=$=>{var w;let E=(w=$t.get($))!==null&&w!==void 0?w:0;d($)&&E===0||(E===0&&u($,!0),s.add($),$t.set($,E+1))};me.length&&me[me.length-1].disconnect(),b(o);let g=new MutationObserver($=>{for(let w of $)if(w.type==="childList"){if(w.target.isConnected&&![...a,...s].some(E=>H(E,w.target)))for(let E of w.addedNodes)(E instanceof HTMLElement||E instanceof SVGElement)&&(E.dataset.liveAnnouncer==="true"||E.dataset.reactAriaTopLayer==="true")?a.add(E):E instanceof Element&&b(E);if(Pe()){for(let E of p)if(!E.isConnected){g.disconnect();break}}}});g.observe(o,{childList:!0,subtree:!0});let m=new Set;if(Pe())for(let $ of p){let w=new MutationObserver(E=>{for(let C of E)if(C.type==="childList"){if(C.target.isConnected&&![...a,...s].some(N=>H(N,C.target)))for(let N of C.addedNodes)(N instanceof HTMLElement||N instanceof SVGElement)&&(N.dataset.liveAnnouncer==="true"||N.dataset.reactAriaTopLayer==="true")?a.add(N):N instanceof Element&&b(N);if(Pe()){for(let N of p)if(!N.isConnected){g.disconnect();break}}}});w.observe($,{childList:!0,subtree:!0}),m.add(w)}let y={visibleNodes:a,hiddenNodes:s,observe(){g.observe(o,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return me.push(y),()=>{if(g.disconnect(),Pe())for(let $ of m)$.disconnect();for(let $ of s){let w=$t.get($);w!=null&&(w===1?(u($,!1),$t.delete($)):$t.set($,w-1))}y===me[me.length-1]?(me.pop(),me.length&&me[me.length-1].observe()):me.splice(me.indexOf(y),1)}}const go=c.createContext(null);function mc(t){let e=ze(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=uc();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(qs,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=c.createElement(go.Provider,{value:l},c.createElement(Rs,null,s)),st.createPortal(s,n)}function yo(){let t=c.useContext(go),e=t==null?void 0:t.setContain;Q(()=>{e==null||e(!0)},[e])}function gc(t,e,n){let{overlayProps:r,underlayProps:i}=lc({...t,isOpen:e.isOpen,onClose:e.close},n);return ac({isDisabled:!e.isOpen}),yo(),c.useEffect(()=>{if(e.isOpen&&n.current)return vc([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:G(r),underlayProps:i}}function yc(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=ke(e);let l=ke(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&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 s=It({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function $c(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=yc(t),a=hn([!!e,!!n,r,i]),s=hn([!!e,!!n,r,i]);return l=G(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}function er(t){return Ba()?t.altKey:t.ctrlKey}function tr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const $o=new WeakMap;function xc(t){let e=ke();return $o.set(t,e),e}function wc(t){return $o.get(t)}const Ec=1e3;function Sc(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=Cc(l.key);if(!(!a||l.ctrlKey||l.metaKey||!H(l.currentTarget,I(l))||i.search.length===0&&a===" ")){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ec)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Cc(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function kc(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:d=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:p,allowsTabNavigation:b=!1,scrollRef:v=r,linkBehavior:g="action"}=t,{direction:m}=Mn(),y=yn(),$=P=>{if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!r.current||!H(r.current,I(P)))return;const O=(B,Z)=>{if(B!=null){if(e.isLink(B)&&g==="selection"&&d&&!er(P)){st.flushSync(()=>{e.setFocusedKey(B,Z)});let fe=tr(r,B),Ce=e.getItemProps(B);fe&&y.open(fe,P,Ce.href,Ce.routerOptions);return}if(e.setFocusedKey(B,Z),e.isLink(B)&&g==="override")return;P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&!er(P)&&e.replaceSelection(B)}};switch(P.key){case"ArrowDown":if(n.getKeyBelow){var j,Y,J;let B=e.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,e.focusedKey):(Y=n.getFirstKey)===null||Y===void 0?void 0:Y.call(n);B==null&&o&&(B=(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,e.focusedKey)),B!=null&&(P.preventDefault(),O(B))}break;case"ArrowUp":if(n.getKeyAbove){var re,f,T;let B=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(f=n.getLastKey)===null||f===void 0?void 0:f.call(n);B==null&&o&&(B=(T=n.getLastKey)===null||T===void 0?void 0:T.call(n,e.focusedKey)),B!=null&&(P.preventDefault(),O(B))}break;case"ArrowLeft":if(n.getKeyLeftOf){var x,k,D;let B=e.focusedKey!=null?(x=n.getKeyLeftOf)===null||x===void 0?void 0:x.call(n,e.focusedKey):null;B==null&&o&&(B=m==="rtl"?(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n,e.focusedKey):(D=n.getLastKey)===null||D===void 0?void 0:D.call(n,e.focusedKey)),B!=null&&(P.preventDefault(),O(B,m==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var _,R,se;let B=e.focusedKey!=null?(_=n.getKeyRightOf)===null||_===void 0?void 0:_.call(n,e.focusedKey):null;B==null&&o&&(B=m==="rtl"?(R=n.getLastKey)===null||R===void 0?void 0:R.call(n,e.focusedKey):(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n,e.focusedKey)),B!=null&&(P.preventDefault(),O(B,m==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&P.shiftKey)return;P.preventDefault();let B=n.getFirstKey(e.focusedKey,tt(P));e.setFocusedKey(B),B!=null&&(tt(P)&&P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&e.replaceSelection(B))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&P.shiftKey)return;P.preventDefault();let B=n.getLastKey(e.focusedKey,tt(P));e.setFocusedKey(B),B!=null&&(tt(P)&&P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&e.replaceSelection(B))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let B=n.getKeyPageBelow(e.focusedKey);B!=null&&(P.preventDefault(),O(B))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let B=n.getKeyPageAbove(e.focusedKey);B!=null&&(P.preventDefault(),O(B))}break;case"a":tt(P)&&e.selectionMode==="multiple"&&a!==!0&&(P.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(P.stopPropagation(),P.preventDefault(),e.clearSelection());break;case"Tab":if(!b){if(P.shiftKey)r.current.focus();else{let B=Ee(r.current,{tabbable:!0}),Z,fe;do fe=B.lastChild(),fe&&(Z=fe);while(fe);let Ce=ie();Z&&(!bn(Z)||Ce&&!Yr(Ce))&&Ne(Z)}break}}},w=c.useRef({top:0,left:0});Mt(v,"scroll",()=>{var P,O,j,Y;w.current={top:(j=(P=v.current)===null||P===void 0?void 0:P.scrollTop)!==null&&j!==void 0?j:0,left:(Y=(O=v.current)===null||O===void 0?void 0:O.scrollLeft)!==null&&Y!==void 0?Y:0}});let E=P=>{if(e.isFocused){H(P.currentTarget,I(P))||e.setFocused(!1);return}if(H(P.currentTarget,I(P))){if(e.setFocused(!0),e.focusedKey==null){var O,j;let re=T=>{T!=null&&(e.setFocusedKey(T),d&&!e.isSelected(T)&&e.replaceSelection(T))},f=P.relatedTarget;var Y,J;f&&P.currentTarget.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?re((Y=e.lastSelectedKey)!==null&&Y!==void 0?Y:(O=n.getLastKey)===null||O===void 0?void 0:O.call(n)):re((J=e.firstSelectedKey)!==null&&J!==void 0?J:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else v.current&&(v.current.scrollTop=w.current.top,v.current.scrollLeft=w.current.left);if(e.focusedKey!=null&&v.current){let re=tr(r,e.focusedKey);re instanceof HTMLElement&&(!bn(re)&&!p&&Ne(re),Rt()==="keyboard"&&Wr(re,{containingElement:r.current}))}}},C=P=>{H(P.currentTarget,P.relatedTarget)||e.setFocused(!1)},N=c.useRef(!1);Mt(r,es,p?P=>{let{detail:O}=P;P.stopPropagation(),e.setFocused(!0),(O==null?void 0:O.focusStrategy)==="first"&&(N.current=!0)}:void 0),zr(()=>{if(N.current){var P,O;let j=(O=(P=n.getFirstKey)===null||P===void 0?void 0:P.call(n))!==null&&O!==void 0?O:null;if(j==null){let Y=ie();_i(r.current),Ii(Y,null),e.collection.size>0&&(N.current=!1)}else e.setFocusedKey(j),N.current=!1}},[e.collection]),zr(()=>{e.collection.size>0&&(N.current=!1)},[e.focusedKey]),Mt(r,Qa,p?P=>{var O;P.stopPropagation(),e.setFocused(!1),!((O=P.detail)===null||O===void 0)&&O.clearFocusKey&&e.setFocusedKey(null)}:void 0);const V=c.useRef(i),F=c.useRef(!1);c.useEffect(()=>{if(V.current){var P,O;let J=null;var j;i==="first"&&(J=(j=(P=n.getFirstKey)===null||P===void 0?void 0:P.call(n))!==null&&j!==void 0?j:null);var Y;i==="last"&&(J=(Y=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n))!==null&&Y!==void 0?Y:null);let re=e.selectedKeys;if(re.size){for(let f of re)if(e.canSelectItem(f)){J=f;break}}e.setFocused(!0),e.setFocusedKey(J),J==null&&!p&&r.current&&je(r.current),e.collection.size>0&&(V.current=!1,F.current=!0)}});let S=c.useRef(e.focusedKey),L=c.useRef(null);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==S.current||F.current)&&v.current&&r.current){let P=Rt(),O=tr(r,e.focusedKey);if(!(O instanceof HTMLElement))return;(P==="keyboard"||F.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{v.current&&(Sn(v.current,O),P!=="virtual"&&Wr(O,{containingElement:r.current}))}))}!p&&e.isFocused&&e.focusedKey==null&&S.current!=null&&r.current&&je(r.current),S.current=e.focusedKey,F.current=!1}),c.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),Mt(r,"react-aria-focus-scope-restore",P=>{P.preventDefault(),e.setFocused(!0)});let z={onKeyDown:$,onFocus:E,onBlur:C,onMouseDown(P){v.current===I(P)&&P.preventDefault()}},{typeSelectProps:ee}=Sc({keyboardDelegate:n,selectionManager:e});u||(z=G(ee,z));let ne;p||(ne=e.focusedKey==null?0:-1);let q=xc(e.collection);return{collectionProps:G(z,{tabIndex:ne,"data-collection":q})}}function Pc(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:d,allowsDifferentPressOrigin:u,linkBehavior:p="action"}=t,b=yn();e=ke(e);let v=f=>{if(f.pointerType==="keyboard"&&er(f))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(p==="selection"&&i.current){let T=n.getItemProps(r);b.open(i.current,f,T.href,T.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(p==="override"||p==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):f&&f.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||f&&(tt(f)||f.pointerType==="touch"||f.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?_i(i.current):a?a():ie()!==i.current&&i.current&&je(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let g={};!l&&!s?g={tabIndex:r===n.focusedKey?0:-1,onFocus(f){I(f)===i.current&&n.setFocusedKey(r)}}:s&&(g.onMouseDown=f=>{f.preventDefault()}),c.useEffect(()=>{s&&n.focusedKey===r&&n.setFocusedKey(null)},[n,s,r]);let m=n.isLink(r)&&p==="override",y=d&&t.UNSTABLE_itemBehavior==="action",$=n.isLink(r)&&p!=="selection"&&p!=="none",w=!s&&n.canSelectItem(r)&&!m&&!y,E=(d||$)&&!s,C=E&&(n.selectionBehavior==="replace"?!w:!w||n.isEmpty),N=E&&w&&n.selectionBehavior==="replace",V=C||N,F=c.useRef(null),S=V&&w,L=c.useRef(!1),z=c.useRef(!1),ee=n.getItemProps(r),ne=f=>{if(d){var T;d(),(T=i.current)===null||T===void 0||T.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}$&&i.current&&b.open(i.current,f,ee.href,ee.routerOptions)},q={ref:i};if(o?(q.onPressStart=f=>{F.current=f.pointerType,L.current=S,f.pointerType==="keyboard"&&(!V||wo(f.key))&&v(f)},u?(q.onPressUp=C?void 0:f=>{f.pointerType==="mouse"&&w&&v(f)},q.onPress=C?ne:f=>{f.pointerType!=="keyboard"&&f.pointerType!=="mouse"&&w&&v(f)}):q.onPress=f=>{if(C||N&&f.pointerType!=="mouse"){if(f.pointerType==="keyboard"&&!xo(f.key))return;ne(f)}else f.pointerType!=="keyboard"&&w&&v(f)}):(q.onPressStart=f=>{F.current=f.pointerType,L.current=S,z.current=C,w&&(f.pointerType==="mouse"&&!C||f.pointerType==="keyboard"&&(!E||wo(f.key)))&&v(f)},q.onPress=f=>{(f.pointerType==="touch"||f.pointerType==="pen"||f.pointerType==="virtual"||f.pointerType==="keyboard"&&V&&xo(f.key)||f.pointerType==="mouse"&&z.current)&&(V?ne(f):w&&v(f))}),g["data-collection"]=wc(n.collection),g["data-key"]=r,q.preventFocusOnPress=l,l&&(q=G(q,{onPressStart(f){f.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(f){f.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ee)for(let f of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ee[f]&&(q[f]=dt(q[f],ee[f]));let{pressProps:P,isPressed:O}=it(q),j=N?f=>{F.current==="mouse"&&(f.stopPropagation(),f.preventDefault(),ne(f))}:void 0,{longPressProps:Y}=Gs({isDisabled:!S,onLongPress(f){f.pointerType==="touch"&&(v(f),n.setSelectionBehavior("toggle"))}}),J=f=>{F.current==="touch"&&L.current&&f.preventDefault()},re=p!=="none"&&n.isLink(r)?f=>{De.isOpening||f.preventDefault()}:void 0;return{itemProps:G(g,w||C||l&&!s?P:{},S?Y:{},{onDoubleClick:j,onDragStartCapture:J,onClick:re,id:e},l?{onMouseDown:f=>f.preventDefault()}:void 0),isPressed:O,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:w,hasAction:V}}function xo(t){return t==="Enter"}function wo(t){return t===" "}class Nc{build(e,n){return this.context=n,Eo(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.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 i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];c.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(c.isValidElement(e.element)&&e.element.type===c.Fragment){let y=[];c.Children.forEach(e.element.props.children,w=>{y.push(w)});var o;let $=(o=e.index)!==null&&o!==void 0?o:0;for(const w of y)yield*this.getFullNode({element:w,index:$++},n,r,i);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=i?i.key:null,yield y;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let y=l.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let C=l.type;throw new Error(`Unknown element <${C}> in collection.`)}let $=y.getCollectionNode(l.props,this.context);var a;let w=(a=e.index)!==null&&a!==void 0?a:0,E=$.next();for(;!E.done&&E.value;){let C=E.value;e.index=w;var s;let N=(s=C.key)!==null&&s!==void 0?s:null;N==null&&(N=C.element?null:this.getKey(l,e,n,r));let F=[...this.getFullNode({...C,key:N,index:w,wrapper:Tc(e.wrapper,C.wrapper)},this.getChildState(n,C),r?`${r}${l.key}`:l.key,i)];for(let S of F){var d,u;S.value=(u=(d=C.value)!==null&&d!==void 0?d:e.value)!==null&&u!==void 0?u:null,S.value&&this.cache.set(S.value,S);var p;if(e.type&&S.type!==e.type)throw new Error(`Unsupported type <${nr(S.type)}> in <${nr((p=i==null?void 0:i.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${nr(e.type)}> is supported.`);w++,yield S}E=$.next(F)}return}if(e.key==null||e.type==null)return;let b=this;var v,g;let m={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Eo(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let $ of e.childNodes()){$.key!=null&&($.key=`${m.key}${$.key}`);let w=b.getFullNode({...$,index:y},b.getChildState(n,$),m.key,m);for(let E of w)y++,yield E}})};yield m}constructor(){this.cache=new WeakMap}}function Eo(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 Tc(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function nr(t){return t[0].toUpperCase()+t.slice(1)}function Dc(t,e,n){let r=c.useMemo(()=>new Nc,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function _c(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Ic(t){return Mc(t)}function Mc(t,e){for(let n of t)return n}function rr(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...So(t,e),e],i=[...So(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function So(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 Co={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ko={...Co,customError:!0,valid:!1},ot={isInvalid:!1,validationDetails:Co,validationErrors:[]},Kc=c.createContext({}),Zt="__formValidationState"+Date.now();function ir(t){if(t[Zt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Zt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return Lc(t)}function Lc(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:ko}:null,d=c.useMemo(()=>{if(!l||i==null)return null;let z=Fc(l,i);return Po(z)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=c.useContext(Kc),p=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(z=>or(u[z])):or(u[r]):[],[u,r]),[b,v]=c.useState(u),[g,m]=c.useState(!1);u!==b&&(v(u),m(!1));let y=c.useMemo(()=>Po(g?[]:p),[g,p]),$=c.useRef(ot),[w,E]=c.useState(ot),C=c.useRef(ot),N=()=>{if(!V)return;F(!1);let z=d||o||$.current;lr(z,C.current)||(C.current=z,E(z))},[V,F]=c.useState(!1);return c.useEffect(N),{realtimeValidation:s||y||d||o||ot,displayValidation:a==="native"?s||y||w:s||y||d||o||w,updateValidation(z){a==="aria"&&!lr(w,z)?E(z):$.current=z},resetValidation(){let z=ot;lr(z,C.current)||(C.current=z,E(z)),a==="native"&&F(!1),m(!0)},commitValidation(){a==="native"&&F(!0),m(!0)}}}function or(t){return t?Array.isArray(t)?t:[t]:[]}function Fc(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return or(n)}return[]}function Po(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:ko}:null}function lr(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 No(t,e,n){let{validationBehavior:r,focus:i}=t;Q(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let d=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Oc(n.current))}});let o=c.useRef(!1),l=ye(()=>{o.current||e.resetValidation()}),a=ye(d=>{var u;e.displayValidation.isInvalid||e.commitValidation();let p=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!d.defaultPrevented&&n&&p&&Bc(p)===n.current){var b;i?i():(b=n.current)===null||b===void 0||b.focus(),As("keyboard")}d.preventDefault()}),s=ye(()=>{e.commitValidation()});c.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let u=d.form,p=u==null?void 0:u.reset;return u&&(u.reset=()=>{o.current=!window.event||window.event.type==="message"&&I(window.event)instanceof MessagePort,p==null||p.call(u),o.current=!1}),d.addEventListener("invalid",a),d.addEventListener("change",s),u==null||u.addEventListener("reset",l),()=>{d.removeEventListener("invalid",a),d.removeEventListener("change",s),u==null||u.removeEventListener("reset",l),u&&(u.reset=p)}},[n,r])}function Ac(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 Oc(t){return{isInvalid:!t.validity.valid,validationDetails:Ac(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Bc(t){for(let n=0;n<t.elements.length;n++){var e;let r=t.elements[n];if(((e=r.validity)===null||e===void 0?void 0:e.valid)===!1)return r}return null}function zc(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:a="aria"}=t,[s,d]=pt(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=Wt(t,e),p=ir({...t,value:s}),{isInvalid:b,validationErrors:v,validationDetails:g}=p.displayValidation,{labelProps:m,fieldProps:y,descriptionProps:$,errorMessageProps:w}=$c({...t,isInvalid:b,errorMessage:t.errorMessage||v}),E=de(t,{labelable:!0});const C={type:l,pattern:t.pattern};let[N]=c.useState(s);var V;return Ur(e,(V=t.defaultValue)!==null&&V!==void 0?V:N,d),No(t,p,e),{labelProps:m,inputProps:G(E,n==="input"?C:void 0,{disabled:r,readOnly:o,required:i&&a==="native","aria-required":i&&a==="aria"||void 0,"aria-invalid":b||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:s,onChange:F=>d(I(F).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(c.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,...u,...y}),descriptionProps:$,errorMessageProps:w,isInvalid:b,validationErrors:v,validationDetails:g}}class xt{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(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}filter(e,n,r){let i=this.clone();return n.addDescendants(i,e),i}constructor(e){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=this.constructor.type,this.key=e}}class To extends xt{filter(e,n,r){let[i,o]=Do(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}class Vc extends xt{}Vc.type="header";class Hc extends xt{}Hc.type="loader";class Rc extends To{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}Rc.type="item";class Wc extends To{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}}Wc.type="section";class Uc{get size(){return this.itemCount}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),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.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.itemCount=this.itemCount,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,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}filter(e){let n=new this.constructor,[r,i]=Do(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Do(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let d=l.filter(t,e,r);d!=null&&(d.nextKey=null,o&&(d.prevKey=o.key,o.nextKey=d.key),i==null&&(i=d),e.addNode(d),o=d),l=l.nextKey?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let d=o.prevKey;e.removeNode(o.key),d?(o=e.getItem(d),o.nextKey=null):o=null}var a,s;return[(a=i==null?void 0:i.key)!==null&&a!==void 0?a:null,(s=o==null?void 0:o.key)!==null&&s!==void 0?s:null]}class _o{*[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||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}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.isConnected&&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-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),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.isConnected&&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 lt extends _o{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof lt?this.parentNode.level+(((e=this.parentNode.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,n,r,i,o,l,a,s;let d=this.nextVisibleSibling,u=this.getMutableNode();if(u!=null){u.index=this.index,u.level=this.level;var p;u.parentKey=this.parentNode instanceof lt&&(p=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&p!==void 0?p:null;var b;u.prevKey=(b=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&b!==void 0?b:null;var v;u.nextKey=(v=d==null||(i=d.node)===null||i===void 0?void 0:i.key)!==null&&v!==void 0?v:null,u.hasChildNodes=!!this.firstChild;var g;u.firstChildKey=(g=(l=this.firstVisibleChild)===null||l===void 0||(o=l.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null;var m;if(u.lastChildKey=(m=(s=this.lastVisibleChild)===null||s===void 0||(a=s.node)===null||a===void 0?void 0:a.key)!==null&&m!==void 0?m:null,(u.colSpan!=null||u.colIndex!=null)&&d){var y,$;let w=((y=u.colIndex)!==null&&y!==void 0?y:u.index)+(($=u.colSpan)!==null&&$!==void 0?$:1);if(d.node!=null&&w!==d.node.colIndex){let E=d.getMutableNode();E.colIndex=w}}}}setProps(e,n,r,i,o){let l,{value:a,textValue:s,id:d,...u}=e;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=n,l.props=u,l.rendered=i,l.render=o,l.value=a,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=s||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");u.colSpan!=null&&(l.colSpan=u.colSpan),this.isConnected&&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 i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.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.isHidden=!1,this.node=null}}class jc extends _o{get isConnected(){return!0}createElement(e){return new lt(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)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 n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof lt&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof lt?(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.node&&this.dirtyNodes.delete(a),a.isMutated=!1):this.dirtyNodes.delete(a);if(this.nextCollection){var e,n,r,i,o,l;this.nextCollection.commit((o=(n=this.firstVisibleChild)===null||n===void 0||(e=n.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(l=(i=this.lastVisibleChild)===null||i===void 0||(r=i.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l: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,this.isSSR||(this.collection=this.collection.clone());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.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function Io(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(n&&typeof e=="function"){let d=[];for(let u of n){let p=l.get(u);if(!p){p=e(u);var a,s;let b=(s=(a=p.props.id)!==null&&a!==void 0?a:u.key)!==null&&s!==void 0?s:u.id;if(b==null)throw new Error("Could not determine key for item");r!=null&&(b=r+":"+b),p=c.cloneElement(p,i?{key:b,id:b,value:u}:{key:b}),l.set(u,p)}d.push(p)}return d}else if(typeof e!="function")return e},[e,n,l,r,i])}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const ar=c.createContext(!1);function Gc(t){if(c.useContext(ar))return c.createElement(c.Fragment,null,t.children);let n=c.createElement(ar.Provider,{value:!0},t.children);return c.createElement("template",null,n)}function wt(t){let e=(n,r)=>c.useContext(ar)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}var Jt={exports:{}},sr={};/**
|
|
12
|
+
}`.trim(),document.head.prepend(i);let o=c=>{if(!(c.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},l=c=>{let u=K(c),f=c.relatedTarget;if(f&&ht(f))f.focus({preventScroll:!0}),$i(f,ht(u));else if(!f){var m;let v=(m=u.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");v==null||v.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let u=ie(),f=u!=null&&ht(u);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&$i(this,f)};let d=ut(Rn(document,"touchstart",r,{passive:!1,capture:!0}),Rn(document,"touchmove",o,{passive:!1,capture:!0}),Rn(document,"blur",l,!0));return()=>{t(),d(),i.remove(),HTMLElement.prototype.focus=s}}function Xt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Rn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function $i(t,e){e||!xt?Li(t):xt.addEventListener("resize",()=>Li(t),{once:!0})}function Li(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Ur(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;xt&&(l=Math.min(l,xt.offsetTop+xt.height));let s=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const dd=a.createContext({});function cd(){var t;return(t=a.useContext(dd))!==null&&t!==void 0?t:{}}var Fi={};Fi={dismiss:"تجاهل"};var Oi={};Oi={dismiss:"Отхвърляне"};var Ai={};Ai={dismiss:"Odstranit"};var zi={};zi={dismiss:"Luk"};var Vi={};Vi={dismiss:"Schließen"};var Bi={};Bi={dismiss:"Απόρριψη"};var Hi={};Hi={dismiss:"Dismiss"};var Ui={};Ui={dismiss:"Descartar"};var Wi={};Wi={dismiss:"Lõpeta"};var ji={};ji={dismiss:"Hylkää"};var Gi={};Gi={dismiss:"Rejeter"};var qi={};qi={dismiss:"התעלם"};var Zi={};Zi={dismiss:"Odbaci"};var Yi={};Yi={dismiss:"Elutasítás"};var Xi={};Xi={dismiss:"Ignora"};var Ji={};Ji={dismiss:"閉じる"};var Qi={};Qi={dismiss:"무시"};var Ri={};Ri={dismiss:"Atmesti"};var eo={};eo={dismiss:"Nerādīt"};var to={};to={dismiss:"Lukk"};var no={};no={dismiss:"Negeren"};var ro={};ro={dismiss:"Zignoruj"};var io={};io={dismiss:"Descartar"};var oo={};oo={dismiss:"Dispensar"};var lo={};lo={dismiss:"Revocare"};var so={};so={dismiss:"Пропустить"};var ao={};ao={dismiss:"Zrušiť"};var co={};co={dismiss:"Opusti"};var uo={};uo={dismiss:"Odbaci"};var fo={};fo={dismiss:"Avvisa"};var ho={};ho={dismiss:"Kapat"};var po={};po={dismiss:"Скасувати"};var mo={};mo={dismiss:"取消"};var vo={};vo={dismiss:"關閉"};var go={};go={"ar-AE":Fi,"bg-BG":Oi,"cs-CZ":Ai,"da-DK":zi,"de-DE":Vi,"el-GR":Bi,"en-US":Hi,"es-ES":Ui,"et-EE":Wi,"fi-FI":ji,"fr-FR":Gi,"he-IL":qi,"hr-HR":Zi,"hu-HU":Yi,"it-IT":Xi,"ja-JP":Ji,"ko-KR":Qi,"lt-LT":Ri,"lv-LV":eo,"nb-NO":to,"nl-NL":no,"pl-PL":ro,"pt-BR":io,"pt-PT":oo,"ro-RO":lo,"ru-RU":so,"sk-SK":ao,"sl-SI":co,"sr-SP":uo,"sv-SE":fo,"tr-TR":ho,"uk-UA":po,"zh-CN":mo,"zh-TW":vo};const bo={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 ud(t={}){let{style:e,isFocusable:n}=t,[r,i]=a.useState(!1),{focusWithinProps:o}=Gn({isDisabled:!n,onFocusWithinChange:s=>i(s)}),l=a.useMemo(()=>r?e:e?{...bo,...e}:bo,[r]);return{visuallyHiddenProps:{...o,style:l}}}function er(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=ud(t);return a.createElement(n,G(o,l),e)}function fd(t){return t&&t.__esModule?t.default:t}function hd(t){let{onDismiss:e,...n}=t,r=wa(fd(go),"@react-aria/overlays"),i=_t(n,r.format("dismiss")),o=()=>{e&&e()};return a.createElement(er,null,a.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const pd=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let wt=new WeakMap,ge=[];function md(t,e){let n=de(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let o=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,l=(r==null?void 0:r.shouldUseInert)&&pd,s=new Set(t),d=new Set,c=x=>l&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",u=(x,E)=>{l&&x instanceof n.HTMLElement?x.inert=E:E?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},f=new Set;if(Te())for(let x of t){let E=x;for(;E&&E!==o;){let C=E.getRootNode();"shadowRoot"in C&&f.add(C.shadowRoot),E=C.parentNode}}let m=x=>{for(let N of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(N);let E=N=>{if(d.has(N)||s.has(N)||N.parentElement&&d.has(N.parentElement)&&N.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let H of s)if(U(N,H))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=$r(Y(x),x,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),k=E(x);if(k===NodeFilter.FILTER_ACCEPT&&v(x),k!==NodeFilter.FILTER_REJECT){let N=C.nextNode();for(;N!=null;)v(N),N=C.nextNode()}},v=x=>{var E;let C=(E=wt.get(x))!==null&&E!==void 0?E:0;c(x)&&C===0||(C===0&&u(x,!0),d.add(x),wt.set(x,C+1))};ge.length&&ge[ge.length-1].disconnect(),m(o);let y=new MutationObserver(x=>{for(let E of x)if(E.type==="childList"){if(E.target.isConnected&&![...s,...d].some(C=>U(C,E.target)))for(let C of E.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?s.add(C):C instanceof Element&&m(C);if(Te()){for(let C of f)if(!C.isConnected){y.disconnect();break}}}});y.observe(o,{childList:!0,subtree:!0});let g=new Set;if(Te())for(let x of f){let E=new MutationObserver(C=>{for(let k of C)if(k.type==="childList"){if(k.target.isConnected&&![...s,...d].some(N=>U(N,k.target)))for(let N of k.addedNodes)(N instanceof HTMLElement||N instanceof SVGElement)&&(N.dataset.liveAnnouncer==="true"||N.dataset.reactAriaTopLayer==="true")?s.add(N):N instanceof Element&&m(N);if(Te()){for(let N of f)if(!N.isConnected){y.disconnect();break}}}});E.observe(x,{childList:!0,subtree:!0}),g.add(E)}let w={visibleNodes:s,hiddenNodes:d,observe(){y.observe(o,{childList:!0,subtree:!0})},disconnect(){y.disconnect()}};return ge.push(w),()=>{if(y.disconnect(),Te())for(let x of g)x.disconnect();for(let x of d){let E=wt.get(x);E!=null&&(E===1?(u(x,!1),wt.delete(x)):wt.set(x,E-1))}w===ge[ge.length-1]?(ge.pop(),ge.length&&ge[ge.length-1].observe()):ge.splice(ge.indexOf(w),1)}}const yo=a.createContext(null);function vd(t){let e=Be(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=a.useState(!1),l=a.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:s}=cd();if(!t.portalContainer&&s&&(n=s()),!n)return null;let d=t.children;return t.disableFocusManagement||(d=a.createElement(qa,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},d)),d=a.createElement(yo.Provider,{value:l},a.createElement(Ha,null,d)),dt.createPortal(d,n)}function xo(){let t=a.useContext(yo),e=t==null?void 0:t.setContain;R(()=>{e==null||e(!0)},[e])}function gd(t,e,n){let{overlayProps:r,underlayProps:i}=od({...t,isOpen:e.isOpen,onClose:e.close},n);return ld({isDisabled:!e.isOpen}),xo(),a.useEffect(()=>{if(e.isOpen&&n.current)return md([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:G(r),underlayProps:i}}function bd(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Ne(e);let l=Ne(),s={};n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&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 d=_t({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:d}}function yd(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=bd(t),s=mn([!!e,!!n,r,i]),d=mn([!!e,!!n,r,i]);return l=G(l,{"aria-describedby":[s,d,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:d}}}function tr(t){return As()?t.altKey:t.ctrlKey}function nr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const wo=new WeakMap;function xd(t){let e=Ne();return wo.set(t,e),e}function wd(t){return wo.get(t)}const Ed=1e3;function Cd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=a.useRef({search:"",timeout:void 0}).current,o=l=>{let s=Pd(l.key);if(!(!s||l.ctrlKey||l.metaKey||!U(l.currentTarget,K(l))||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=s,e.getKeyForSearch!=null){let d=e.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=e.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ed)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Pd(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function kd(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:v=r,linkBehavior:y="action"}=t,{direction:g}=$n(),w=xn(),x=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current||!U(r.current,K(T)))return;const V=(B,J)=>{if(B!=null){if(e.isLink(B)&&y==="selection"&&c&&!tr(T)){dt.flushSync(()=>{e.setFocusedKey(B,J)});let fe=nr(r,B),ke=e.getItemProps(B);fe&&w.open(fe,T,ke.href,ke.routerOptions);return}if(e.setFocusedKey(B,J),e.isLink(B)&&y==="override")return;T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&!tr(T)&&e.replaceSelection(B)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var j,Z,Q;let B=e.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,e.focusedKey):(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n);B==null&&o&&(B=(Q=n.getFirstKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowUp":if(n.getKeyAbove){var re,h,M;let B=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(h=n.getLastKey)===null||h===void 0?void 0:h.call(n);B==null&&o&&(B=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowLeft":if(n.getKeyLeftOf){var b,D,S;let B=e.focusedKey!=null?(b=n.getKeyLeftOf)===null||b===void 0?void 0:b.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n,e.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var L,X,ae;let B=e.focusedKey!=null?(L=n.getKeyRightOf)===null||L===void 0?void 0:L.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(X=n.getLastKey)===null||X===void 0?void 0:X.call(n,e.focusedKey):(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getFirstKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getLastKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let B=n.getKeyPageBelow(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let B=n.getKeyPageAbove(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"a":tt(T)&&e.selectionMode==="multiple"&&s!==!0&&(T.preventDefault(),e.selectAll());break;case"Escape":d==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(T.shiftKey)r.current.focus();else{let B=Ce(r.current,{tabbable:!0}),J,fe;do fe=B.lastChild(),fe&&(J=fe);while(fe);let ke=ie();J&&(!vn(J)||ke&&!Xr(ke))&&De(J)}break}}},E=a.useRef({top:0,left:0});St(v,"scroll",()=>{var T,V,j,Z;E.current={top:(j=(T=v.current)===null||T===void 0?void 0:T.scrollTop)!==null&&j!==void 0?j:0,left:(Z=(V=v.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&Z!==void 0?Z:0}});let C=T=>{if(e.isFocused){U(T.currentTarget,K(T))||e.setFocused(!1);return}if(U(T.currentTarget,K(T))){if(e.setFocused(!0),e.focusedKey==null){var V,j;let re=M=>{M!=null&&(e.setFocusedKey(M),c&&!e.isSelected(M)&&e.replaceSelection(M))},h=T.relatedTarget;var Z,Q;h&&T.currentTarget.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?re((Z=e.lastSelectedKey)!==null&&Z!==void 0?Z:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):re((Q=e.firstSelectedKey)!==null&&Q!==void 0?Q:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else v.current&&(v.current.scrollTop=E.current.top,v.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&v.current){let re=nr(r,e.focusedKey);re instanceof HTMLElement&&(!vn(re)&&!f&&De(re),Ut()==="keyboard"&&jr(re,{containingElement:r.current}))}}},k=T=>{U(T.currentTarget,T.relatedTarget)||e.setFocused(!1)},N=a.useRef(!1);St(r,Rs,f?T=>{let{detail:V}=T;T.stopPropagation(),e.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(N.current=!0)}:void 0),Br(()=>{if(N.current){var T,V;let j=(V=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&V!==void 0?V:null;if(j==null){let Z=ie();_i(r.current),Si(Z,null),e.collection.size>0&&(N.current=!1)}else e.setFocusedKey(j),N.current=!1}},[e.collection]),Br(()=>{e.collection.size>0&&(N.current=!1)},[e.focusedKey]),St(r,Qs,f?T=>{var V;T.stopPropagation(),e.setFocused(!1),!((V=T.detail)===null||V===void 0)&&V.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=a.useRef(i),F=a.useRef(!1);a.useEffect(()=>{if(H.current){var T,V;let Q=null;var j;i==="first"&&(Q=(j=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&j!==void 0?j:null);var Z;i==="last"&&(Q=(Z=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&Z!==void 0?Z:null);let re=e.selectedKeys;if(re.size){for(let h of re)if(e.canSelectItem(h)){Q=h;break}}e.setFocused(!0),e.setFocusedKey(Q),Q==null&&!f&&r.current&&qe(r.current),e.collection.size>0&&(H.current=!1,F.current=!0)}});let P=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||F.current)&&v.current&&r.current){let T=Ut(),V=nr(r,e.focusedKey);if(!(V instanceof HTMLElement))return;(T==="keyboard"||F.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{v.current&&(kn(v.current,V),T!=="virtual"&&jr(V,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&P.current!=null&&r.current&&qe(r.current),P.current=e.focusedKey,F.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),St(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),e.setFocused(!0)});let z={onKeyDown:x,onFocus:C,onBlur:k,onMouseDown(T){v.current===K(T)&&T.preventDefault()}},{typeSelectProps:ee}=Cd({keyboardDelegate:n,selectionManager:e});u||(z=G(ee,z));let ne;f||(ne=e.focusedKey==null?0:-1);let q=xd(e.collection);return{collectionProps:G(z,{tabIndex:ne,"data-collection":q})}}function Nd(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:s,isDisabled:d,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:f="action"}=t,m=xn();e=Ne(e);let v=h=>{if(h.pointerType==="keyboard"&&tr(h))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let M=n.getItemProps(r);m.open(i.current,h,M.href,M.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):h&&h.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||h&&(tt(h)||h.pointerType==="touch"||h.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?_i(i.current):s?s():ie()!==i.current&&i.current&&qe(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),d=d||n.isDisabled(r);let y={};!l&&!d?y={tabIndex:r===n.focusedKey?0:-1,onFocus(h){K(h)===i.current&&n.setFocusedKey(r)}}:d&&(y.onMouseDown=h=>{h.preventDefault()}),a.useEffect(()=>{d&&n.focusedKey===r&&n.setFocusedKey(null)},[n,d,r]);let g=n.isLink(r)&&f==="override",w=c&&t.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&f!=="selection"&&f!=="none",E=!d&&n.canSelectItem(r)&&!g&&!w,C=(c||x)&&!d,k=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),N=C&&E&&n.selectionBehavior==="replace",H=k||N,F=a.useRef(null),P=H&&E,I=a.useRef(!1),z=a.useRef(!1),ee=n.getItemProps(r),ne=h=>{if(c){var M;c(),(M=i.current)===null||M===void 0||M.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&m.open(i.current,h,ee.href,ee.routerOptions)},q={ref:i};if(o?(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,h.pointerType==="keyboard"&&(!H||Co(h.key))&&v(h)},u?(q.onPressUp=k?void 0:h=>{h.pointerType==="mouse"&&E&&v(h)},q.onPress=k?ne:h=>{h.pointerType!=="keyboard"&&h.pointerType!=="mouse"&&E&&v(h)}):q.onPress=h=>{if(k||N&&h.pointerType!=="mouse"){if(h.pointerType==="keyboard"&&!Eo(h.key))return;ne(h)}else h.pointerType!=="keyboard"&&E&&v(h)}):(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,z.current=k,E&&(h.pointerType==="mouse"&&!k||h.pointerType==="keyboard"&&(!C||Co(h.key)))&&v(h)},q.onPress=h=>{(h.pointerType==="touch"||h.pointerType==="pen"||h.pointerType==="virtual"||h.pointerType==="keyboard"&&H&&Eo(h.key)||h.pointerType==="mouse"&&z.current)&&(H?ne(h):E&&v(h))}),y["data-collection"]=wd(n.collection),y["data-key"]=r,q.preventFocusOnPress=l,l&&(q=G(q,{onPressStart(h){h.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(h){h.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ee)for(let h of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ee[h]&&(q[h]=ut(q[h],ee[h]));let{pressProps:T,isPressed:V}=it(q),j=N?h=>{F.current==="mouse"&&(h.stopPropagation(),h.preventDefault(),ne(h))}:void 0,{longPressProps:Z}=Ga({isDisabled:!P,onLongPress(h){h.pointerType==="touch"&&(v(h),n.setSelectionBehavior("toggle"))}}),Q=h=>{F.current==="touch"&&I.current&&h.preventDefault()},re=f!=="none"&&n.isLink(r)?h=>{Ie.isOpening||h.preventDefault()}:void 0;return{itemProps:G(y,E||k||l&&!d?T:{},P?Z:{},{onDoubleClick:j,onDragStartCapture:Q,onClick:re,id:e},l?{onMouseDown:h=>h.preventDefault()}:void 0),isPressed:V,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:d,allowsSelection:E,hasAction:H}}function Eo(t){return t==="Enter"}function Co(t){return t===" "}class Td{build(e,n){return this.context=n,Po(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(a.isValidElement(n)&&n.type===a.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 i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];a.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let s=this.getFullNode({element:l,index:o},{});for(let d of s)o++,yield d}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let s=(l=o.key)!==null&&l!==void 0?l:o.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let w=[];a.Children.forEach(e.element.props.children,E=>{w.push(E)});var o;let x=(o=e.index)!==null&&o!==void 0?o:0;for(const E of w)yield*this.getFullNode({element:E,index:x++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let w=this.cache.get(e.value);if(w&&(!w.shouldInvalidate||!w.shouldInvalidate(this.context))){w.index=e.index,w.parentKey=i?i.key:null,yield w;return}l=n.renderer(e.value)}if(a.isValidElement(l)){let w=l.type;if(typeof w!="function"&&typeof w.getCollectionNode!="function"){let k=l.type;throw new Error(`Unknown element <${k}> in collection.`)}let x=w.getCollectionNode(l.props,this.context);var s;let E=(s=e.index)!==null&&s!==void 0?s:0,C=x.next();for(;!C.done&&C.value;){let k=C.value;e.index=E;var d;let N=(d=k.key)!==null&&d!==void 0?d:null;N==null&&(N=k.element?null:this.getKey(l,e,n,r));let F=[...this.getFullNode({...k,key:N,index:E,wrapper:Dd(e.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${l.key}`:l.key,i)];for(let P of F){var c,u;P.value=(u=(c=k.value)!==null&&c!==void 0?c:e.value)!==null&&u!==void 0?u:null,P.value&&this.cache.set(P.value,P);var f;if(e.type&&P.type!==e.type)throw new Error(`Unsupported type <${rr(P.type)}> in <${rr((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${rr(e.type)}> is supported.`);E++,yield P}C=x.next(F)}return}if(e.key==null||e.type==null)return;let m=this;var v,y;let g={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Po(function*(){if(!e.hasChildNodes||!e.childNodes)return;let w=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${g.key}${x.key}`);let E=m.getFullNode({...x,index:w},m.getChildState(n,x),g.key,g);for(let C of E)w++,yield C}})};yield g}constructor(){this.cache=new WeakMap}}function Po(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 Dd(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function rr(t){return t[0].toUpperCase()+t.slice(1)}function Md(t,e,n){let r=a.useMemo(()=>new Td,[]),{children:i,items:o,collection:l}=t;return a.useMemo(()=>{if(l)return l;let d=r.build({children:i,items:o},n);return e(d)},[r,i,o,l,n,e])}function Id(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Kd(t){return _d(t)}function _d(t,e){for(let n of t)return n}function ir(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ko(t,e),e],i=[...ko(t,n),n],o=r.slice(0,i.length).findIndex((l,s)=>l!==i[s]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function ko(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 No={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},To={...No,customError:!0,valid:!1},ot={isInvalid:!1,validationDetails:No,validationErrors:[]},Sd=a.createContext({}),Jt="__formValidationState"+Date.now();function or(t){if(t[Jt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Jt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return $d(t)}function $d(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:s="aria"}=t;n&&(e||(e=n==="invalid"));let d=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:To}:null,c=a.useMemo(()=>{if(!l||i==null)return null;let z=Ld(l,i);return Do(z)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=a.useContext(Sd),f=a.useMemo(()=>r?Array.isArray(r)?r.flatMap(z=>lr(u[z])):lr(u[r]):[],[u,r]),[m,v]=a.useState(u),[y,g]=a.useState(!1);u!==m&&(v(u),g(!1));let w=a.useMemo(()=>Do(y?[]:f),[y,f]),x=a.useRef(ot),[E,C]=a.useState(ot),k=a.useRef(ot),N=()=>{if(!H)return;F(!1);let z=c||o||x.current;sr(z,k.current)||(k.current=z,C(z))},[H,F]=a.useState(!1);return a.useEffect(N),{realtimeValidation:d||w||c||o||ot,displayValidation:s==="native"?d||w||E:d||w||c||o||E,updateValidation(z){s==="aria"&&!sr(E,z)?C(z):x.current=z},resetValidation(){let z=ot;sr(z,k.current)||(k.current=z,C(z)),s==="native"&&F(!1),g(!0)},commitValidation(){s==="native"&&F(!0),g(!0)}}}function lr(t){return t?Array.isArray(t)?t:[t]:[]}function Ld(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:To}:null}function sr(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 Mo(t,e,n){let{validationBehavior:r,focus:i}=t;R(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let c=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Od(n.current))}});let o=a.useRef(!1),l=ye(()=>{o.current||e.resetValidation()}),s=ye(c=>{var u;e.displayValidation.isInvalid||e.commitValidation();let f=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&n&&f&&Ad(f)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),Fa("keyboard")}c.preventDefault()}),d=ye(()=>{e.commitValidation()});a.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let u=c.form,f=u==null?void 0:u.reset;return u&&(u.reset=()=>{o.current=!window.event||window.event.type==="message"&&K(window.event)instanceof MessagePort,f==null||f.call(u),o.current=!1}),c.addEventListener("invalid",s),c.addEventListener("change",d),u==null||u.addEventListener("reset",l),()=>{c.removeEventListener("invalid",s),c.removeEventListener("change",d),u==null||u.removeEventListener("reset",l),u&&(u.reset=f)}},[n,r])}function Fd(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 Od(t){return{isInvalid:!t.validity.valid,validationDetails:Fd(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Ad(t){for(let n=0;n<t.elements.length;n++){var e;let r=t.elements[n];if(((e=r.validity)===null||e===void 0?void 0:e.valid)===!1)return r}return null}function zd(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:s="aria"}=t,[d,c]=pt(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=Wt(t,e),f=or({...t,value:d}),{isInvalid:m,validationErrors:v,validationDetails:y}=f.displayValidation,{labelProps:g,fieldProps:w,descriptionProps:x,errorMessageProps:E}=yd({...t,isInvalid:m,errorMessage:t.errorMessage||v}),C=ce(t,{labelable:!0});const k={type:l,pattern:t.pattern};let[N]=a.useState(d);var H;return Gr(e,(H=t.defaultValue)!==null&&H!==void 0?H:N,c),Mo(t,f,e),{labelProps:g,inputProps:G(C,n==="input"?k:void 0,{disabled:r,readOnly:o,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":m||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:d,onChange:F=>c(K(F).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(a.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,...u,...w}),descriptionProps:x,errorMessageProps:E,isInvalid:m,validationErrors:v,validationDetails:y}}class Et{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(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}filter(e,n,r){let i=this.clone();return n.addDescendants(i,e),i}constructor(e){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=this.constructor.type,this.key=e}}class Io extends Et{filter(e,n,r){let[i,o]=Ko(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}class Vd extends Et{}Vd.type="header";class Bd extends Et{}Bd.type="loader";class Hd extends Io{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}Hd.type="item";class Ud extends Io{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}}Ud.type="section";class Wd{get size(){return this.itemCount}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),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.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.itemCount=this.itemCount,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,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}filter(e){let n=new this.constructor,[r,i]=Ko(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Ko(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let c=l.filter(t,e,r);c!=null&&(c.nextKey=null,o&&(c.prevKey=o.key,o.nextKey=c.key),i==null&&(i=c),e.addNode(c),o=c),l=l.nextKey?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let c=o.prevKey;e.removeNode(o.key),c?(o=e.getItem(c),o.nextKey=null):o=null}var s,d;return[(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null,(d=o==null?void 0:o.key)!==null&&d!==void 0?d:null]}class _o{*[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||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}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.isConnected&&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-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),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.isConnected&&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 lt extends _o{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof lt?this.parentNode.level+(((e=this.parentNode.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,n,r,i,o,l,s,d;let c=this.nextVisibleSibling,u=this.getMutableNode();if(u!=null){u.index=this.index,u.level=this.level;var f;u.parentKey=this.parentNode instanceof lt&&(f=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&f!==void 0?f:null;var m;u.prevKey=(m=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&m!==void 0?m:null;var v;u.nextKey=(v=c==null||(i=c.node)===null||i===void 0?void 0:i.key)!==null&&v!==void 0?v:null,u.hasChildNodes=!!this.firstChild;var y;u.firstChildKey=(y=(l=this.firstVisibleChild)===null||l===void 0||(o=l.node)===null||o===void 0?void 0:o.key)!==null&&y!==void 0?y:null;var g;if(u.lastChildKey=(g=(d=this.lastVisibleChild)===null||d===void 0||(s=d.node)===null||s===void 0?void 0:s.key)!==null&&g!==void 0?g:null,(u.colSpan!=null||u.colIndex!=null)&&c){var w,x;let E=((w=u.colIndex)!==null&&w!==void 0?w:u.index)+((x=u.colSpan)!==null&&x!==void 0?x:1);if(c.node!=null&&E!==c.node.colIndex){let C=c.getMutableNode();C.colIndex=E}}}}setProps(e,n,r,i,o){let l,{value:s,textValue:d,id:c,...u}=e;if(this.node==null?(l=new r(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=n,l.props=u,l.rendered=i,l.render=o,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=d||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",c!=null&&c!==l.key)throw new Error("Cannot change the id of an item");u.colSpan!=null&&(l.colSpan=u.colSpan),this.isConnected&&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 i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),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.isHidden=!1,this.node=null}}class jd extends _o{get isConnected(){return!0}createElement(e){return new lt(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)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 n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof lt&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof lt?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var e,n,r,i,o,l;this.nextCollection.commit((o=(n=this.firstVisibleChild)===null||n===void 0||(e=n.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(l=(i=this.lastVisibleChild)===null||i===void 0||(r=i.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l: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,this.isSSR||(this.collection=this.collection.clone());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.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function So(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=a.useMemo(()=>new WeakMap,o);return a.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let u of n){let f=l.get(u);if(!f){f=e(u);var s,d;let m=(d=(s=f.props.id)!==null&&s!==void 0?s:u.key)!==null&&d!==void 0?d:u.id;if(m==null)throw new Error("Could not determine key for item");r!=null&&(m=r+":"+m),f=a.cloneElement(f,i?{key:m,id:m,value:u}:{key:m}),l.set(u,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,i])}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const ar=a.createContext(!1);function Gd(t){if(a.useContext(ar))return a.createElement(a.Fragment,null,t.children);let n=a.createElement(ar.Provider,{value:!0},t.children);return a.createElement("template",null,n)}function Ct(t){let e=(n,r)=>a.useContext(ar)?null:t(n,r);return e.displayName=t.displayName||t.name,a.forwardRef(e)}var Qt={exports:{}},dr={};/**
|
|
13
13
|
* @license React
|
|
14
14
|
* use-sync-external-store-shim.production.js
|
|
15
15
|
*
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var
|
|
20
|
+
*/var $o;function qd(){if($o)return dr;$o=1;var t=a;function e(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function s(f,m){var v=m(),y=r({inst:{value:v,getSnapshot:m}}),g=y[0].inst,w=y[1];return o(function(){g.value=v,g.getSnapshot=m,d(g)&&w({inst:g})},[f,v,m]),i(function(){return d(g)&&w({inst:g}),f(function(){d(g)&&w({inst:g})})},[f]),l(v),v}function d(f){var m=f.getSnapshot;f=f.value;try{var v=m();return!n(f,v)}catch{return!0}}function c(f,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return dr.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,dr}var cr={};/**
|
|
21
21
|
* @license React
|
|
22
22
|
* use-sync-external-store-shim.development.js
|
|
23
23
|
*
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var Ko;function Yc(){return Ko||(Ko=1,process.env.NODE_ENV!=="production"&&(function(){function t(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function e(v,g){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!p){var y=g();o(m,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}y=l({inst:{value:m,getSnapshot:g}});var $=y[0].inst,w=y[1];return s(function(){$.value=m,$.getSnapshot=g,n($)&&w({inst:$})},[v,m,g]),a(function(){return n($)&&w({inst:$}),v(function(){n($)&&w({inst:$})})},[v]),d(m),m}function n(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!o(v,m)}catch{return!0}}function r(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,d=i.useDebugValue,u=!1,p=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;cr.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cr}var Lo;function Xc(){return Lo||(Lo=1,process.env.NODE_ENV==="production"?Jt.exports=qc():Jt.exports=Yc()),Jt.exports}var Zc=Xc();const Fo=c.createContext(!1),Et=c.createContext(null);function Jc(t){if(c.useContext(Et))return t.content;let{collection:n,document:r}=nd(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(Gc,null,c.createElement(Et.Provider,{value:r},t.content)),c.createElement(Qc,{render:t.children,collection:n}))}function Qc({collection:t,render:e}){return e(t)}function ed(t,e,n){let r=ze(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return Zc.useSyncExternalStore(t,o)}const td=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:ed;function nd(t){let[e]=c.useState(()=>new jc((t==null?void 0:t())||new Uc)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:td(n,r,i),document:e}}const dr=c.createContext(null);function rd(t){var e;return e=class extends xt{},e.type=t,e}function id(t,e,n,r,i,o){typeof t=="string"&&(t=rd(t));let l=c.useCallback(s=>{s==null||s.setProps(e,n,t,r,o)},[e,n,r,o,t]),a=c.useContext(dr);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t.type),s.setProps(e,n,t,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?c.createElement(dr.Provider,{value:s},i):null}return c.createElement(t.type,{ref:l},i)}function od(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let l=c.useContext(Wn);if(!c.useContext(Fo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return id(t,i,o,"children"in i?i.children:null,null,s=>c.createElement(Wn.Provider,{value:l},c.createElement(n,{node:s})))});return r.displayName=e.name,r}function ld(t){return Io({...t,addIdAndValue:!0})}const Ao=c.createContext(null);function ad(t){let e=c.useContext(Ao),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies);var r;let i=(r=t.idScope)!==null&&r!==void 0?r:e==null?void 0:e.idScope,o=ld({...t,idScope:i,dependencies:n});return c.useContext(Et)&&(o=c.createElement(sd,null,o)),e=c.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),c.createElement(Ao.Provider,{value:e},o)}function sd({children:t}){let e=c.useContext(Et),n=c.useMemo(()=>c.createElement(Et.Provider,{value:null},c.createElement(Fo.Provider,{value:!0},t)),[t]);return ze()?c.createElement(dr.Provider,{value:e},n):st.createPortal(n,e)}const Oo={CollectionRoot({collection:t,renderDropIndicator:e}){return Bo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Bo(t,e,n)}};function Bo(t,e,n){return Io({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return c.createElement(c.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:c.createElement(c.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,cd(t,r,n))}})}function cd(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let a=[];if(l==null){let s=e;for(;(s==null?void 0:s.type)==="item"&&(!o||s.parentKey!==o.parentKey&&o.level<s.level);){let d=n({type:"item",key:s.key,dropPosition:"after"});c.isValidElement(d)&&a.push(c.cloneElement(d,{key:`${s.key}-after`})),s=s.parentKey!=null?t.getItem(s.parentKey):null}}return a}const zo=c.createContext(Oo);function dd(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}function ud(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:d,allowFocusWhenDisabled:u,onClick:p,href:b,target:v,rel:g,type:m="button"}=t,y;n==="button"?y={type:m,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:y={role:"button",href:n==="a"&&!r?b:void 0,target:n==="a"?v:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:$,isPressed:w}=it({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:p,isDisabled:r,preventFocusOnPress:d,ref:e}),{focusableProps:E}=Wt(t,e);u&&(E.tabIndex=r?-1:E.tabIndex);let C=G(E,$,de(t,{labelable:!0}));return{isPressed:w,buttonProps:G(y,C,{"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"],"aria-disabled":t["aria-disabled"]})}}function Vo(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:o,name:l,form:a,children:s,"aria-label":d,"aria-labelledby":u,validationState:p="valid",isInvalid:b,onPressStart:v,onPressEnd:g,onPressChange:m,onPress:y,onPressUp:$,onClick:w}=t,E=q=>{q.stopPropagation(),e.setSelected(I(q).checked)},C=s!=null,N=d!=null||u!=null;!C&&!N&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:V,isPressed:F}=it({onPressStart:v,onPressEnd:g,onPressChange:m,onPress:y,onPressUp:$,onClick:w,isDisabled:r}),{pressProps:S,isPressed:L}=it({onPressStart:v,onPressEnd:g,onPressChange:m,onPressUp:$,onClick:w,onPress(q){var P;y==null||y(q),e.toggle(),(P=n.current)===null||P===void 0||P.focus()},isDisabled:r||i}),{focusableProps:z}=Wt(t,n),ee=G(V,z),ne=de(t,{labelable:!0});return Ur(n,e.defaultSelected,e.setSelected),{labelProps:G(S,{onClick:q=>q.preventDefault()}),inputProps:G(ne,{"aria-invalid":b||p==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:E,disabled:r,...o==null?{}:{value:o},name:l,form:a,type:"checkbox",...ee}),isSelected:e.isSelected,isPressed:F||L,isDisabled:r,isReadOnly:i,isInvalid:b||p==="invalid"}}function Ho(t,e,n){let r=ir({...t,value:e.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:l}=r.displayValidation,{labelProps:a,inputProps:s,isSelected:d,isPressed:u,isDisabled:p,isReadOnly:b}=Vo({...t,isInvalid:i},e,n);No(t,r,n);let{isIndeterminate:v,isRequired:g,validationBehavior:m="aria"}=t;c.useEffect(()=>{n.current&&(n.current.indeterminate=!!v)});let{pressProps:y}=it({isDisabled:p||b,onPress(){let{[Zt]:$}=t,{commitValidation:w}=$||r;w()}});return{labelProps:G(a,y,c.useMemo(()=>({onMouseDown:$=>$.preventDefault()}),[])),inputProps:{...s,checked:d,"aria-required":g&&m==="aria"||void 0,required:g&&m==="native"},isSelected:d,isPressed:u,isDisabled:p,isReadOnly:b,isInvalid:i,validationErrors:o,validationDetails:l}}const fd=new WeakMap;function ur(t={}){let{isReadOnly:e}=t,[n,r]=pt(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=c.useState(n);function o(s){e||r(s)}function l(){e||r(!n)}var a;return{isSelected:n,defaultSelected:(a=t.defaultSelected)!==null&&a!==void 0?a:i,setSelected:o,toggle:l}}function pd(t,e,n){const r=ur({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange($){$?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange($)}});let{name:i,form:o,descriptionId:l,errorMessageId:a,validationBehavior:s}=fd.get(e);var d;s=(d=t.validationBehavior)!==null&&d!==void 0?d:s;let{realtimeValidation:u}=ir({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),p=c.useRef(ot),b=()=>{e.setInvalid(t.value,u.isInvalid?u:p.current)};c.useEffect(b);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:u,g=s==="native"?e.displayValidation:v;var m;let y=Ho({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||o,isRequired:(m=t.isRequired)!==null&&m!==void 0?m:e.isRequired,validationBehavior:s,[Zt]:{realtimeValidation:v,displayValidation:g,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation($){p.current=$,b()}}},r,n);return{...y,inputProps:{...y.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?a:null,l].filter(Boolean).join(" ")||void 0}}}function hd(t,e){let{role:n="dialog"}=t,r=hn();r=t["aria-label"]?void 0:r;let i=c.useRef(!1);return c.useEffect(()=>{if(e.current&&!bn(e.current)){je(e.current);let o=setTimeout(()=>{(ie()===e.current||ie()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),je(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),yo(),{dialogProps:{...de(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function bd(t,e,n){let{labelProps:r,inputProps:i,isSelected:o,isPressed:l,isDisabled:a,isReadOnly:s}=Vo(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:o},isSelected:o,isPressed:l,isDisabled:a,isReadOnly:s}}const Ro=new WeakMap;function Qt(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=Ro.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function vd(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,d=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:p}=Pc({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:o,linkBehavior:"selection"}),b=Qt(e,r,"tab"),v=Qt(e,r,"tabpanel"),{tabIndex:g}=u,m=e.collection.getItem(r),y=de(m==null?void 0:m.props,{labelable:!0});delete y.id;let $=Ua(m==null?void 0:m.props),{focusableProps:w}=Wt({...m==null?void 0:m.props,isDisabled:d},n);return{tabProps:G(y,w,$,u,{id:b,"aria-selected":s,"aria-disabled":d||void 0,"aria-controls":s?v:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:s,isDisabled:d,isPressed:p}}function md(t,e,n){let r=rc(n)?void 0:0;var i;const o=Qt(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=It({...t,id:o,"aria-labelledby":Qt(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:G(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class gd{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function yd(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Mn(),d=c.useMemo(()=>new gd(o,s,r,a),[o,a,r,s]),{collectionProps:u}=kc({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),p=ke();Ro.set(e,p);let b=It({...t,id:p});return{tabListProps:{...G(u,b),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const Wo=c.createContext({}),$d=wt(function(e,n){[e,n]=$e(e,n,Wo);let{elementType:r="label",...i}=e,o=ue[r];return c.createElement(o,{className:"react-aria-Label",...i,ref:n})}),xd=c.createContext(null),Uo=c.createContext({}),fr=wt(function(e,n){[e,n]=$e(e,n,Uo);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=ud(e,n);o=Ed(o,i);let{focusProps:a,isFocused:s,isFocusVisible:d}=qe(e),{hoverProps:u,isHovered:p}=mt({...e,isDisabled:e.isDisabled||i}),b={isHovered:p,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:d,isDisabled:e.isDisabled||!1,isPending:i??!1},v=he({...e,values:b,defaultClassName:"react-aria-Button"}),g=ke(o.id),m=ke(),y=o["aria-labelledby"];i&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${g} ${m}`));let $=c.useRef(i);c.useEffect(()=>{let E={"aria-labelledby":y||g};(!$.current&&s&&i||$.current&&s&&!i)&&Qr(E,"assertive"),$.current=i},[i,s,y,g]);let w=de(e,{global:!0});return delete w.onClick,c.createElement(ue.button,{...G(w,v,o,a,u),type:o.type==="submit"&&i?"button":o.type,id:g,ref:n,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":b.isPressed||void 0,"data-hovered":p||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},c.createElement(xd.Provider,{value:{id:m}},v.children))}),wd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ed(t,e){if(e){for(const n in t)n.startsWith("on")&&!wd.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const jo=c.createContext({}),Go=c.forwardRef(function(e,n){[e,n]=$e(e,n,jo);let{elementType:r="span",...i}=e,o=ue[r];return c.createElement(o,{className:"react-aria-Text",...i,ref:n})});class qo{*[Symbol.iterator](){yield*this.iterable}get size(){return this._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=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)n(s)};for(let a of e)n(a);let r=null,i=0,o=0;for(let[a,s]of this.keyMap)r?(r.nextKey=a,s.prevKey=r.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),(s.type==="section"||s.type==="item")&&o++,r=s,r.nextKey=void 0;this._size=o;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class xe extends Set{constructor(e,n,r){super(e),e instanceof xe?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Sd(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Cd(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),d=c.useRef(null),[,u]=c.useState(null),p=c.useMemo(()=>Yo(t.selectedKeys),[t.selectedKeys]),b=c.useMemo(()=>Yo(t.defaultSelectedKeys,new xe),[t.defaultSelectedKeys]),[v,g]=pt(p,b,t.onSelectionChange),m=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,$]=c.useState(i);i==="replace"&&y==="toggle"&&typeof v=="object"&&v.size===0&&$("replace");let w=c.useRef(i);return c.useEffect(()=>{i!==w.current&&($(i),w.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(E){l.current=E,a(E)},get focusedKey(){return s.current},get childFocusStrategy(){return d.current},setFocusedKey(E,C="first"){s.current=E,d.current=C,u(E)},selectedKeys:v,setSelectedKeys(E){(r||!Sd(E,v))&&g(E)},disabledKeys:m,disabledBehavior:o}}function Yo(t,e){return t?t==="all"?"all":new xe(t):e}class pr{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 i=this.collection.getItem(r);(!e||i&&rr(this.collection,i,e)<0)&&(e=i)}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 i=this.collection.getItem(r);(!e||i&&rr(this.collection,i,e)>0)&&(e=i)}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 xe([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new xe(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?rr(this.collection,r,i)<=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 i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}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 xe(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 xe([n],n,n):new xe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new xe;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Ic(_c(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o: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 xe)}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 pr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function kd(t){let{filter:e,layoutDelegate:n}=t,r=Cd(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(d=>e?new qo(e(d)):new qo(d),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=Dc(t,o,l),s=c.useMemo(()=>new pr(a,r,{layoutDelegate:n}),[a,r,n]);return Pd(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function Pd(t,e){const n=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),p=[...n.current.getKeys()].map($=>{const w=n.current.getItem($);return(w==null?void 0:w.type)==="item"?w:null}).filter($=>$!==null),b=[...t.getKeys()].map($=>{const w=t.getItem($);return(w==null?void 0:w.type)==="item"?w:null}).filter($=>$!==null);var r,i;const v=((r=p==null?void 0:p.length)!==null&&r!==void 0?r:0)-((i=b==null?void 0:b.length)!==null&&i!==void 0?i:0);var o,l,a;let g=Math.min(v>1?Math.max(((o=u==null?void 0:u.index)!==null&&o!==void 0?o:0)-v+1,0):(l=u==null?void 0:u.index)!==null&&l!==void 0?l:0,((a=b==null?void 0:b.length)!==null&&a!==void 0?a:0)-1),m=null,y=!1;for(;g>=0;){if(!e.isDisabled(b[g].key)){m=b[g];break}if(g<b.length-1&&!y)g++;else{y=!0;var s,d;g>((s=u==null?void 0:u.index)!==null&&s!==void 0?s:0)&&(g=(d=u==null?void 0:u.index)!==null&&d!==void 0?d:0),g--}}e.setFocusedKey(m?m.key:null)}n.current=t},[t,e])}function Nd(t){var e;let[n,r]=pt(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=kd({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var u;let p=(u=d.values().next().value)!==null&&u!==void 0?u:null;p===n&&t.onSelectionChange&&t.onSelectionChange(p),r(p)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Td(t){let[e,n]=pt(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Dd(t){var e,n;let r=Nd({...t,onSelectionChange:t.onSelectionChange?s=>{var d;s!=null&&((d=t.onSelectionChange)===null||d===void 0||d.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Xo(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=c.useRef(l);return c.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=Xo(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function Xo(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const _d=c.createContext(null),Zo=c.createContext(null),Id=c.createContext(null),Md=c.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=$e(i,n,da);let{validationBehavior:o}=Kt(Zo)||{};var l,a;let s=(a=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&a!==void 0?a:"native",d=c.useContext(Id),u=Ke(c.useMemo(()=>et(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:p,inputProps:b,isSelected:v,isDisabled:g,isReadOnly:m,isPressed:y,isInvalid:$}=d?pd({...Lt(e),value:e.value,children:typeof e.children=="function"?!0:e.children},d,u):Ho({...Lt(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:s},ur(e),u),{isFocused:w,isFocusVisible:E,focusProps:C}=qe(),N=g||m,{hoverProps:V,isHovered:F}=mt({...e,isDisabled:N}),S=he({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:y,isHovered:F,isFocused:w,isFocusVisible:E,isDisabled:g,isReadOnly:m,isInvalid:$,isRequired:e.isRequired||!1}}),L=de(e,{global:!0});return delete L.id,delete L.onClick,c.createElement(ue.label,{...G(L,p,V,S),ref:n,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":y||void 0,"data-hovered":F||void 0,"data-focused":w||void 0,"data-focus-visible":E||void 0,"data-disabled":g||void 0,"data-readonly":m||void 0,"data-invalid":$||void 0,"data-required":e.isRequired||void 0},c.createElement(Qn,{elementType:"span"},c.createElement("input",{...G(b,C),ref:u})),S.children)}),Kd=c.createContext({}),Jo=c.createContext({});let Ld=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Fd=wt(function(e,n){[e,n]=$e(e,n,Jo);let{hoverProps:r,isHovered:i}=mt({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:a}=qe({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",d=he({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return c.createElement(ue.input,{...G(Ld(e),a,r),...d,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),Ad=c.createContext(null);function Od(t){let e=c.useRef({});return c.createElement(Ad.Provider,{value:e},t.children)}const Bd=c.createContext({isSelected:!1}),zd=c.createContext(null),en=c.createContext(null),Vd=c.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=$e(e,n,zd);let{dialogProps:i,titleProps:o}=hd({...e,"aria-labelledby":r},n),l=c.useContext(en);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["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=he({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),s=de(e,{global:!0});return c.createElement(ue.section,{...G(s,a,i),render:e.render,ref:n,slot:e.slot||void 0},c.createElement(ht,{values:[[ua,{slots:{[_n]:{},title:{...o,level:2}}}],[Uo,{slots:{[_n]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))}),Hd=c.createContext(null),hr=c.createContext(null),Rd=c.forwardRef(function(e,n){if(c.useContext(hr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const m=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(e).filter($=>m.has($));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return c.createElement(el,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:a,onOpenChange:s,children:d,isEntering:u,isExiting:p,UNSTABLE_portalContainer:b,shouldCloseOnInteractOutside:v,...g}=e;return c.createElement(Qo,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:a,onOpenChange:s,isEntering:u,isExiting:p,UNSTABLE_portalContainer:b,shouldCloseOnInteractOutside:v},c.createElement(el,{...g,modalRef:n},d))});function Wd(t,e){[t,e]=$e(t,e,Hd);let n=c.useContext(en),r=Td(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=Ke(e),l=c.useRef(null),a=Pn(o,i.isOpen),s=Pn(l,i.isOpen),d=a||s||t.isExiting||!1,u=ze();return!i.isOpen&&!d||u?null:c.createElement(Ud,{...t,state:i,isExiting:d,overlayRef:o,modalRef:l})}const Qo=c.forwardRef(Wd);function Ud({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=gc(e,r,n),l=kn(e.overlayRef)||e.isEntering||!1,a=he({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),s=Ya(),d;if(typeof document<"u"){let p=ut(document.body)?document.body:document.scrollingElement||document.documentElement,b=p.getBoundingClientRect().height%1;d=p.scrollHeight-b}let u={...a.style,"--visual-viewport-height":s.height+"px","--page-height":d!==void 0?d+"px":void 0};return c.createElement(mc,{isExiting:e.isExiting,portalContainer:t},c.createElement(ue.div,{...G(de(e,{global:!0}),o),...a,style:u,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},c.createElement(ht,{values:[[hr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[en,r]]},a.children)))}function el(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=c.useContext(hr),o=c.useContext(en),l=c.useMemo(()=>et(t.modalRef,n),[t.modalRef,n]),a=Ke(l),s=kn(a),d=he({...t,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:o}});return c.createElement(ue.div,{...G(de(t,{global:!0}),e),...d,ref:a,"data-entering":s||void 0,"data-exiting":r||void 0},i&&c.createElement(hc,{onDismiss:o.close}),d.children)}const jd=c.createContext(null),Gd=c.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=$e(i,n,jd);let o=Ke(et(r,e.inputRef!==void 0?e.inputRef:null)),l=ur(e),{labelProps:a,inputProps:s,isSelected:d,isDisabled:u,isReadOnly:p,isPressed:b}=bd({...Lt(e),children:typeof e.children=="function"?!0:e.children},l,o),{isFocused:v,isFocusVisible:g,focusProps:m}=qe(),y=e.isDisabled||e.isReadOnly,{hoverProps:$,isHovered:w}=mt({...e,isDisabled:y}),E=he({...e,defaultClassName:"react-aria-Switch",values:{isSelected:d,isPressed:b,isHovered:w,isFocused:v,isFocusVisible:g,isDisabled:u,isReadOnly:p,state:l}}),C=de(e,{global:!0});return delete C.id,delete C.onClick,c.createElement(ue.label,{...G(C,a,$,E),ref:n,slot:e.slot||void 0,"data-selected":d||void 0,"data-pressed":b||void 0,"data-hovered":w||void 0,"data-focused":v||void 0,"data-focus-visible":g||void 0,"data-disabled":u||void 0,"data-readonly":p||void 0},c.createElement(Qn,{elementType:"span"},c.createElement("input",{...G(s,m),ref:o})),E.children)}),tn=c.createContext(null),Ye=c.createContext(null),qd=c.forwardRef(function(e,n){[e,n]=$e(e,n,tn);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(Jc,{content:r},o=>c.createElement(Yd,{props:e,collection:o,tabsRef:n}))});function Yd({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Dd({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=qe({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),d=he({...t,defaultClassName:"react-aria-Tabs",values:s}),u=de(t,{global:!0});return c.createElement(ue.div,{...G(u,d,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},c.createElement(ht,{values:[[tn,t],[Ye,i]]},d.children))}const Xd=c.forwardRef(function(e,n){return c.useContext(Ye)?c.createElement(Zd,{props:e,forwardedRef:n}):c.createElement(ad,e)});function Zd({props:t,forwardedRef:e}){let n=c.useContext(Ye),{CollectionRoot:r}=c.useContext(zo),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Kt(tn),l=Ke(e),{tabListProps:a}=yd({...t,orientation:i,keyboardActivation:o},n,l),s=he({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=de(t,{global:!0});return delete d.id,c.createElement(ue.div,{...G(d,s,a),ref:l,"data-orientation":i||void 0},c.createElement(Od,null,c.createElement(r,{collection:n.collection,persistedKeys:dd(n.selectionManager.focusedKey)})))}class tl extends xt{}tl.type="item";const Jd=od(tl,(t,e,n)=>{let r=c.useContext(Ye),i=Ke(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=vd({key:n.key,...t},r,i),{focusProps:d,isFocused:u,isFocusVisible:p}=qe(),{hoverProps:b,isHovered:v}=mt({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),g=he({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:u,isFocusVisible:p,isPressed:s,isHovered:v}}),m=n.props.href?ue.a:ue.div,y=de(t,{global:!0});return delete y.id,delete y.onClick,c.createElement(m,{...G(y,g,o,d,b),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":u||void 0,"data-focus-visible":p||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0},c.createElement(Bd.Provider,{value:{isSelected:l}},g.children))}),Qd=wt(function(e,n){const r=c.useContext(Ye);let i=Ke(n),o=r.selectedKey===e.id,[l,a]=c.useState(r.selectedKey!=null?o:null);l==null&&r.selectedKey!=null?a(o):!o&&l&&a(!1);let s=Pn(i,o);return!o&&!e.shouldForceMount&&!s?null:c.createElement(eu,{...e,tabPanelRef:i,isInitiallySelected:l||!1,isExiting:s})});function eu(t){let e=c.useContext(Ye),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:o,...l}=t,{tabPanelProps:a}=md(t,e,r),{focusProps:s,isFocused:d,isFocusVisible:u}=qe(),p=e.selectedKey===t.id,b=kn(r)&&!i,v=he({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:d,isFocusVisible:u,isInert:jr(!p),isEntering:b,isExiting:o,state:e}}),g=de(l,{global:!0});delete g.id;let m=p?G(g,a,s,v):G(g,v);return c.createElement(ue.div,{...m,ref:r,"data-focused":d||void 0,"data-focus-visible":u||void 0,inert:jr(!p||t.inert),"data-inert":p?void 0:"true","data-entering":b||void 0,"data-exiting":o||void 0},c.createElement(ht,{values:[[tn,null],[Ye,null]]},c.createElement(zo.Provider,{value:Oo},v.children)))}const tu=c.createContext({}),nu=c.createContext(null),ru=wt(function(e,n){[e,n]=$e(e,n,nu);let{validationBehavior:r}=Kt(Zo)||{};var i,o;let l=(o=(i=e.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=c.useRef(null);[e,a]=$e(e,a,fa);let[s,d]=as(!e["aria-label"]&&!e["aria-labelledby"]),[u,p]=c.useState("input"),{labelProps:b,inputProps:v,descriptionProps:g,errorMessageProps:m,...y}=zc({...Lt(e),inputElementType:u,label:d,validationBehavior:l},a),$=c.useCallback(C=>{a.current=C,C&&p(C instanceof HTMLTextAreaElement?"textarea":"input")},[a]),w=he({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),E=de(e,{global:!0});return delete E.id,c.createElement(ue.div,{...E,...w,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},c.createElement(ht,{values:[[Wo,{...b,ref:s}],[Jo,{...v,ref:$}],[tu,{...v,ref:$}],[Kd,{role:"presentation",isInvalid:y.isInvalid,isDisabled:e.isDisabled||!1}],[jo,{slots:{description:g,errorMessage:m}}],[_d,y]]},w.children))}),iu=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},ou=(t,e)=>({classGroupId:t,validator:e}),nl=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),nn="-",rl=[],lu="arbitrary..",au=t=>{const e=cu(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return su(l);const a=l.split(nn),s=a[0]===""&&a.length>1?1:0;return il(a,s,e)},getConflictingClassGroupIds:(l,a)=>{if(a){const s=r[l],d=n[l];return s?d?iu(d,s):s:d||rl}return n[l]||rl}}},il=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const d=il(t,e+1,o);if(d)return d}const l=n.validators;if(l===null)return;const a=e===0?t.join(nn):t.slice(e).join(nn),s=l.length;for(let d=0;d<s;d++){const u=l[d];if(u.validator(a))return u.classGroupId}},su=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?lu+r:void 0})(),cu=t=>{const{theme:e,classGroups:n}=t;return du(n,e)},du=(t,e)=>{const n=nl();for(const r in t){const i=t[r];br(i,n,r,e)}return n},br=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];uu(l,e,n,r)}},uu=(t,e,n,r)=>{if(typeof t=="string"){fu(t,e,n);return}if(typeof t=="function"){pu(t,e,n,r);return}hu(t,e,n,r)},fu=(t,e,n)=>{const r=t===""?e:ol(e,t);r.classGroupId=n},pu=(t,e,n,r)=>{if(bu(t)){br(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(ou(n,t))},hu=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[a,s]=i[l];br(s,ol(e,a),n,r)}},ol=(t,e)=>{let n=t;const r=e.split(nn),i=r.length;for(let o=0;o<i;o++){const l=r[o];let a=n.nextPart.get(l);a||(a=nl(),n.nextPart.set(l,a)),n=a}return n},bu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,vu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},vr="!",ll=":",mu=[],al=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gu=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,a=0,s=0,d;const u=i.length;for(let m=0;m<u;m++){const y=i[m];if(l===0&&a===0){if(y===ll){o.push(i.slice(s,m)),s=m+1;continue}if(y==="/"){d=m;continue}}y==="["?l++:y==="]"?l--:y==="("?a++:y===")"&&a--}const p=o.length===0?i:i.slice(s);let b=p,v=!1;p.endsWith(vr)?(b=p.slice(0,-1),v=!0):p.startsWith(vr)&&(b=p.slice(1),v=!0);const g=d&&d>s?d-s:void 0;return al(o,v,b,g)};if(e){const i=e+ll,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):al(mu,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},yu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],a=l[0]==="[",s=e.has(l);a||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},$u=t=>({cache:vu(t.cacheSize),parseClassName:gu(t),sortModifiers:yu(t),...au(t)}),xu=/\s+/,wu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=e,l=[],a=t.trim().split(xu);let s="";for(let d=a.length-1;d>=0;d-=1){const u=a[d],{isExternal:p,modifiers:b,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=n(u);if(p){s=u+(s.length>0?" "+s:s);continue}let y=!!m,$=r(y?g.substring(0,m):g);if(!$){if(!y){s=u+(s.length>0?" "+s:s);continue}if($=r(g),!$){s=u+(s.length>0?" "+s:s);continue}y=!1}const w=b.length===0?"":b.length===1?b[0]:o(b).join(":"),E=v?w+vr:w,C=E+$;if(l.indexOf(C)>-1)continue;l.push(C);const N=i($,y);for(let V=0;V<N.length;++V){const F=N[V];l.push(E+F)}s=u+(s.length>0?" "+s:s)}return s},Eu=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=sl(n))&&(i&&(i+=" "),i+=r);return i},sl=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=sl(t[r]))&&(n&&(n+=" "),n+=e);return n},Su=(t,...e)=>{let n,r,i,o;const l=s=>{const d=e.reduce((u,p)=>p(u),t());return n=$u(d),r=n.cache.get,i=n.cache.set,o=a,a(s)},a=s=>{const d=r(s);if(d)return d;const u=wu(s,n);return i(s,u),u};return o=l,(...s)=>o(Eu(...s))},Cu=[],ae=t=>{const e=n=>n[t]||Cu;return e.isThemeGetter=!0,e},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ku=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Pu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Du=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_u=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=t=>ku.test(t),U=t=>!!t&&!Number.isNaN(Number(t)),Oe=t=>!!t&&Number.isInteger(Number(t)),mr=t=>t.endsWith("%")&&U(t.slice(0,-1)),Ie=t=>Pu.test(t),ul=()=>!0,Iu=t=>Nu.test(t)&&!Tu.test(t),gr=()=>!1,Mu=t=>Du.test(t),Ku=t=>_u.test(t),Lu=t=>!M(t)&&!K(t),Fu=t=>Be(t,ml,gr),M=t=>cl.test(t),Xe=t=>Be(t,gl,Iu),fl=t=>Be(t,Wu,U),Au=t=>Be(t,$l,ul),Ou=t=>Be(t,yl,gr),pl=t=>Be(t,bl,gr),Bu=t=>Be(t,vl,Ku),rn=t=>Be(t,xl,Mu),K=t=>dl.test(t),St=t=>Ze(t,gl),zu=t=>Ze(t,yl),hl=t=>Ze(t,bl),Vu=t=>Ze(t,ml),Hu=t=>Ze(t,vl),on=t=>Ze(t,xl,!0),Ru=t=>Ze(t,$l,!0),Be=(t,e,n)=>{const r=cl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Ze=(t,e,n=!1)=>{const r=dl.exec(t);return r?r[1]?e(r[1]):n:!1},bl=t=>t==="position"||t==="percentage",vl=t=>t==="image"||t==="url",ml=t=>t==="length"||t==="size"||t==="bg-size",gl=t=>t==="length",Wu=t=>t==="number",yl=t=>t==="family-name",$l=t=>t==="number"||t==="weight",xl=t=>t==="shadow",Uu=Su(()=>{const t=ae("color"),e=ae("font"),n=ae("text"),r=ae("font-weight"),i=ae("tracking"),o=ae("leading"),l=ae("breakpoint"),a=ae("container"),s=ae("spacing"),d=ae("radius"),u=ae("shadow"),p=ae("inset-shadow"),b=ae("text-shadow"),v=ae("drop-shadow"),g=ae("blur"),m=ae("perspective"),y=ae("aspect"),$=ae("ease"),w=ae("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...C(),K,M],V=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],S=()=>[K,M,s],L=()=>[Ae,"full","auto",...S()],z=()=>[Oe,"none","subgrid",K,M],ee=()=>["auto",{span:["full",Oe,K,M]},Oe,K,M],ne=()=>[Oe,"auto",K,M],q=()=>["auto","min","max","fr",K,M],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...S()],Y=()=>[Ae,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],J=()=>[Ae,"screen","full","dvw","lvw","svw","min","max","fit",...S()],re=()=>[Ae,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],f=()=>[t,K,M],T=()=>[...C(),hl,pl,{position:[K,M]}],x=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",Vu,Fu,{size:[K,M]}],D=()=>[mr,St,Xe],_=()=>["","none","full",d,K,M],R=()=>["",U,St,Xe],se=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[U,mr,hl,pl],fe=()=>["","none",g,K,M],Ce=()=>["none",U,K,M],un=()=>["none",U,K,M],_r=()=>[U,K,M],fn=()=>[Ae,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[ul],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[Lu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",U],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ae,M,K,y]}],container:["container"],columns:[{columns:[U,M,K,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Oe,"auto",K,M]}],basis:[{basis:[Ae,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,Ae,"auto","initial","none",M]}],grow:[{grow:["",U,K,M]}],shrink:[{shrink:["",U,K,M]}],order:[{order:[Oe,"first","last","none",K,M]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[a,"screen",...Y()]}],"min-w":[{"min-w":[a,"screen","none",...Y()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,St,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ru,Au]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mr,M]}],"font-family":[{font:[zu,Ou,e]}],"font-features":[{"font-features":[M]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,K,M]}],"line-clamp":[{"line-clamp":[U,"none",K,fl]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",K,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",K,Xe]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[U,"auto",K,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:x()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oe,K,M],radial:["",K,M],conic:[Oe,K,M]},Hu,Bu]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,K,M]}],"outline-w":[{outline:["",U,St,Xe]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",u,on,rn]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",p,on,rn]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[U,Xe]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",b,on,rn]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[U,K,M]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[K,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:x()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,M]}],filter:[{filter:["","none",K,M]}],blur:[{blur:fe()}],brightness:[{brightness:[U,K,M]}],contrast:[{contrast:[U,K,M]}],"drop-shadow":[{"drop-shadow":["","none",v,on,rn]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",U,K,M]}],"hue-rotate":[{"hue-rotate":[U,K,M]}],invert:[{invert:["",U,K,M]}],saturate:[{saturate:[U,K,M]}],sepia:[{sepia:["",U,K,M]}],"backdrop-filter":[{"backdrop-filter":["","none",K,M]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[U,K,M]}],"backdrop-contrast":[{"backdrop-contrast":[U,K,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,K,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,K,M]}],"backdrop-invert":[{"backdrop-invert":["",U,K,M]}],"backdrop-opacity":[{"backdrop-opacity":[U,K,M]}],"backdrop-saturate":[{"backdrop-saturate":[U,K,M]}],"backdrop-sepia":[{"backdrop-sepia":["",U,K,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",K,M]}],ease:[{ease:["linear","initial",$,K,M]}],delay:[{delay:[U,K,M]}],animate:[{animate:["none",w,K,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,K,M]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:un()}],"scale-x":[{"scale-x":un()}],"scale-y":[{"scale-y":un()}],"scale-z":[{"scale-z":un()}],"scale-3d":["scale-3d"],skew:[{skew:_r()}],"skew-x":[{"skew-x":_r()}],"skew-y":[{"skew-y":_r()}],transform:[{transform:[K,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fn()}],"translate-x":[{"translate-x":fn()}],"translate-y":[{"translate-y":fn()}],"translate-z":[{"translate-z":fn()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,M]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[U,St,Xe,fl]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function W(...t){return Uu(t.filter(Boolean))}const wl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));wl.displayName="AlertCircle";const El=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));El.displayName="AlertTriangle";const yr=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));yr.displayName="CheckCircle";const Sl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));Sl.displayName="ChevronDown";const Cl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"m18 15-6-6-6 6",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));Cl.displayName="ChevronUp";const kl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));kl.displayName="InfoCircle";const Pl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));Pl.displayName="Maximize01";const Nl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"M5 12h14",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));Nl.displayName="Minus";const Tl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));Tl.displayName="Monitor01";const Dl=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"M12 5v14m-7-7h14",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));Dl.displayName="Plus";const _l=({size:t=24,color:e="currentColor",...n})=>oe.createElement("svg",{viewBox:"0 0 24 24",fill:"none",width:t,height:t,color:e,"aria-hidden":"true",...n},oe.createElement("path",{d:"M17 7 7 17M7 7l10 10",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round"}));_l.displayName="X";const ju={Info:kl,Warning:El,Error:wl,Done:yr,Close:_l,Check:yr,"Chevron Up":Cl,"Chevron Down":Sl,App:Tl,Cancel:Nl,Fullscreen:Pl,Add:Dl},Gu={L:56,S:24},ge=({name:t,size:e="L",className:n="",onClick:r,color:i,role:o,"aria-label":l})=>{const a=ju[t];return a?h.jsx("span",{className:W("icon",o&&"icon--button",n),onClick:r,role:o,"aria-label":l||`${t} icon`,style:i?{color:i}:void 0,children:h.jsx(a,{size:Gu[e],className:"icon__svg"})}):null};function $r(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function xr(t,e){const[n,r]=c.useState(!1),i=c.useRef(!1),o=c.useCallback(()=>{if(!(i.current||!e)){if($r()){e();return}i.current=!0,r(!0)}},[e]),l=c.useCallback(a=>{a.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:o,handleAnimationEnd:l}}const qu={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},Yu={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function Xu(t,e){return t||qu[e||"info"]||"default"}function Zu(t){return t==="full-width"?"full-width":"floating"}const Ju=({color:t,size:e="floating",type:n,title:r,children:i,actions:o,onClose:l,onClickHere:a,className:s})=>{const d=Xu(t,n),u=Zu(e),{isClosing:p,triggerClose:b,handleAnimationEnd:v}=xr("alert-exit",l),g=[...o||[],...a?[{label:"Click here",onClick:a}]:[]];return h.jsxs("div",{className:W("relative w-full flex flex-col gap-4 p-4","font-dos text-dos-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-alert",`eidotter-alert--${d}`,u==="floating"&&"max-w-[1216px]",u==="full-width"&&"eidotter-alert--full-width max-w-none",p&&"eidotter-alert--closing",s),onAnimationEnd:v,role:"alert","data-color":d,"data-size":u,children:[h.jsx("div",{className:"eidotter-alert__icon",children:h.jsx(ge,{name:Yu[d]||"Info",size:"S","aria-label":`${d} alert`})}),h.jsxs("div",{className:W("flex-1 flex flex-col gap-3 min-w-0",l&&"pr-6"),children:[(r||i)&&h.jsxs("div",{className:"flex flex-col gap-1",children:[r&&h.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&h.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),g.length>0&&h.jsx("div",{className:"flex flex-row gap-3",children:g.map((m,y)=>h.jsxs("button",{type:"button",className:"eidotter-alert__action",onClick:m.onClick,children:[m.label,m.icon]},y))})]}),l&&h.jsx(fr,{className:"eidotter-alert__close",onPress:b,"aria-label":"Close alert",children:h.jsx(ge,{name:"Close",size:"S"})})]})},Il=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:o})=>{const[l,a]=c.useState(n);c.useEffect(()=>{a(n)},[n]);const s=()=>{const d=!l;a(d),o==null||o(d)};return h.jsxs("div",{className:W("w-full border border-dos-border-default bg-dos-bg-primary text-cga-amber font-dos","eidotter-section",l&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[h.jsxs("button",{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onClick:s,"aria-expanded":l,children:[h.jsx("div",{className:"flex-1 text-base leading-6",children:t}),h.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:h.jsx(ge,{name:l?"Chevron Up":"Chevron Down",size:"S"})})]}),h.jsx("div",{className:"eidotter-section__content",inert:l?void 0:!0,children:e})]})},Qu=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=c.useState(e),i=(o,l)=>{r(l?o:-1)};return h.jsx("div",{className:W("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((o,l)=>h.jsx(Il,{title:o.title,defaultExpanded:l===e,onToggle:a=>i(l,a),children:o.content},l))})},Ml={xs:"text-[12px] px-2 py-1 min-h-6 gap-1",sm:"text-[14px] px-2 py-1 min-h-7 gap-1",md:"text-[14px] px-3 py-2 min-h-8 gap-1.5",lg:"text-[16px] px-4 py-2.5 min-h-10 gap-1.5",xl:"text-[16px] px-5 py-3 min-h-11 gap-2",small:"text-[14px] px-2 py-1 min-h-6 gap-1",medium:"text-[14px] px-3 py-2 min-h-8 gap-1.5",large:"text-[16px] px-4 py-2.5 min-h-10 gap-1.5"},Kl={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},wr=({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:o,onClick:l,className:a,fullWidth:s=!1,iconOnly:d=!1,...u})=>{const p=r||i;return h.jsxs(fr,{type:n,isDisabled:p,onPress:b=>{if(l&&!p){const v={type:"press",target:b.target,currentTarget:b.target,preventDefault:()=>{},stopPropagation:()=>{}};l(v)}},className:W("inline-flex items-center justify-center relative","border-2 border-solid","font-dos font-dos-bold leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",Ml[e]||Ml.md,Kl[t]||Kl.primary,p&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",s&&"w-full",d&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",a),"data-loading":i||void 0,"data-variant":t,...u,children:[i&&h.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),h.jsx("span",{className:W("inline-flex items-center justify-center",i&&"opacity-70"),children:o})]})},ef=({title:t,children:e,footer:n,variant:r="default",className:i="",...o})=>{const l=["card",`card--${r}`,i].filter(Boolean).join(" ");return h.jsxs("div",{className:l,...o,children:[t&&h.jsx("div",{className:"card__header",children:h.jsx("span",{className:"card__title",children:t})}),h.jsx("div",{className:"card__body",children:e}),n&&h.jsx("div",{className:"card__footer",children:n})]})},tf=({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:o=!1,size:l="md",name:a,value:s,className:d,"aria-label":u,...p})=>h.jsx(Md,{isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:o,name:a,value:s,"aria-label":u||i,className:W("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",l==="sm"?"text-[14px]":"text-[16px]","eidotter-checkbox",o&&"opacity-60 cursor-not-allowed",d),"data-size":l,...p,children:({isSelected:b,isIndeterminate:v})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:W("eidotter-checkbox__box",b&&"eidotter-checkbox__box--checked",v&&"eidotter-checkbox__box--indeterminate"),children:v?"[-]":b?"[X]":"[ ]"}),i&&h.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}),nf=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:o=!1})=>{const[l,a]=c.useState(""),s=c.useRef(null);c.useEffect(()=>{n&&s.current&&s.current.focus()},[n]);const d=p=>{p.key==="Enter"&&l.trim()&&!o&&(e(l.trim()),a(""))},u=()=>{!o&&s.current&&s.current.focus()};return h.jsxs("div",{className:`command-prompt ${o?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[h.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),h.jsxs("div",{className:"command-prompt__input-wrapper",children:[h.jsx("input",{ref:s,className:"command-prompt__input",value:l,onChange:p=>a(p.target.value),onKeyDown:d,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:o,"aria-label":"Command input",size:l.length||1}),h.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},ln="█",an="░",Er="▓",rf="▒",Ll={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},Fl={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function of(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),o=r-i,l=(i>=1?Er:"")+(i>=2?rf:"");return{filled:ln.repeat(t),transition:l,empty:an.repeat(o)}}return{filled:ln.repeat(t),transition:"",empty:an.repeat(r)}}const Al=({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:o="block",blocks:l=20,showLabel:a=!1,fullWidth:s=!1,glow:d=!1,valueText:u,className:p,"aria-label":b,...v})=>{const g=Math.min(80,Math.max(3,Math.floor(l))),m=Math.min(100,Math.max(0,t/e*100)),y=Math.round(m/100*g),$=W("inline-flex items-center gap-2 font-dos","eidotter-progress",Ll[i]||Ll.md,Fl[r]||Fl.default,d&&"eidotter-progress--glow",s&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",o==="bordered"&&"eidotter-progress--bordered",p),w={"aria-label":b||`Progress: ${n?"loading":`${Math.round(m)}%`}`};n||(w["aria-valuenow"]=t,w["aria-valuemin"]=0,w["aria-valuemax"]=e),u&&(w["aria-valuetext"]=u);const E=o==="bordered",C=W("eidotter-progress__track",E&&"eidotter-progress__track--borderless");if(n){const S=an.repeat(g);return h.jsxs("div",{className:$,role:"progressbar",...w,...v,children:[h.jsxs("span",{className:C,children:[E&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:S}),h.jsxs("span",{className:"eidotter-progress__scanner",children:[Er,ln,Er]})]}),E&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),a&&h.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const N=ln.repeat(g),V=an.repeat(g),{transition:F}=of(y,g,o);return h.jsxs("div",{className:$,role:"progressbar",...w,...v,children:[h.jsxs("span",{className:C,children:[E&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:V}),h.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(m)},children:N}),F&&h.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(m)},children:F})]}),E&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),a&&h.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(m),"%"]})]})},Ol={default:"eidotter-input--default",error:"eidotter-input--error"},Bl=c.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:o,onChange:l,isRequired:a,...s},d)=>{const u=t==="error";return h.jsxs(ru,{isDisabled:i,isInvalid:u,isRequired:a,className:W("eidotter-text-field","flex flex-col gap-1",o),children:[e&&h.jsx($d,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),h.jsx(Fd,{ref:d,className:W("w-full bg-dos-bg-primary text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",Ol[t]||Ol.default,i&&"eidotter-input--disabled"),onChange:l,...s}),n&&!u&&h.jsx(Go,{slot:"description",className:"text-cga-brown font-dos text-xs",children:n}),r&&u&&h.jsx(Go,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});Bl.displayName="Input";const lf=({size:t="medium",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:o=!1,closeable:l=!1,children:a,onMinimize:s,onMaximize:d,onClose:u,onFocus:p,className:b="",autoFocus:v=!1})=>{const[g,m]=c.useState(n),[y,$]=c.useState(!1),w=c.useRef(null);c.useEffect(()=>{v&&w.current&&w.current.focus()},[v]);const E=()=>{m("minimized"),s==null||s()},C=()=>{$(!y),d==null||d()},N=()=>{u==null||u()},V=()=>{m("active"),p==null||p()},F=S=>{S.altKey&&S.key==="F4"&&l&&(S.preventDefault(),N())};return g==="minimized"?h.jsx("div",{className:`terminal terminal--minimized ${b}`.trim(),onClick:V,role:"button",tabIndex:0,"aria-label":`Restore ${e} window`,onKeyDown:S=>S.key==="Enter"&&V(),children:h.jsxs("div",{className:"terminal__taskbar-item",children:[h.jsx(ge,{name:"App",size:"S"}),h.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):h.jsxs("div",{ref:w,className:`terminal terminal--${t} terminal--${g} ${y?"terminal--maximized":""} ${b}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:V,onKeyDown:F,children:[h.jsxs("div",{className:"terminal__title-bar",children:[h.jsxs("div",{className:"terminal__title",children:[h.jsx(ge,{name:"App",size:"S","aria-hidden":"true"}),h.jsx("span",{className:"terminal__title-text",children:e})]}),(i||o||l)&&h.jsxs("div",{className:"terminal__controls",children:[i&&h.jsx("button",{className:"terminal__control terminal__control--minimize",onClick:E,"aria-label":"Minimize window",title:"Minimize",children:h.jsx(ge,{name:"Cancel",size:"S"})}),o&&h.jsx("button",{className:"terminal__control terminal__control--maximize",onClick:C,"aria-label":y?"Restore window":"Maximize window",title:y?"Restore":"Maximize",children:h.jsx(ge,{name:y?"Fullscreen":"Add",size:"S"})}),l&&h.jsx("button",{className:"terminal__control terminal__control--close",onClick:N,"aria-label":"Close window",title:"Close",children:h.jsx(ge,{name:"Close",size:"S"})})]})]}),h.jsx("div",{className:"terminal__content",role:"main",children:a||h.jsx("div",{className:"terminal__default-content",children:h.jsxs("div",{className:"terminal__prompt",children:[h.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),h.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&h.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},zl={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},af={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},sf=({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onTabChange:o,className:l,...a})=>{var v,g,m;const s=c.useRef(null),d=c.useRef(r??i??((v=t[0])==null?void 0:v.id)??""),[u,p]=c.useState(r??i??((g=t[0])==null?void 0:g.id)??""),b=c.useCallback(y=>{const $=String(y),w=r??d.current;d.current=$,p($),o==null||o($,w)},[r,o]);return c.useLayoutEffect(()=>{const y=s.current;if(!y||e!=="underline")return;const $=()=>{const E=y.querySelector('[aria-selected="true"]');E&&(y.style.setProperty("--indicator-left",`${E.offsetLeft}px`),y.style.setProperty("--indicator-width",`${E.offsetWidth}px`))};$();const w=new ResizeObserver($);return w.observe(y),()=>w.disconnect()},[r,u,e]),h.jsxs(qd,{selectedKey:r,defaultSelectedKey:i??((m=t[0])==null?void 0:m.id),onSelectionChange:b,className:W("eidotter-tabs",af[e],zl[n]||zl.md,l),children:[h.jsxs("div",{ref:s,className:"relative",children:[h.jsx(Xd,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":a["aria-label"],children:t.map(y=>h.jsx(Jd,{id:y.id,isDisabled:y.disabled,className:({isSelected:$,isDisabled:w})=>W("eidotter-tabs__tab",$&&"eidotter-tabs__tab--active",w&&"eidotter-tabs__tab--disabled"),children:y.label},y.id))}),e==="underline"&&h.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(y=>h.jsx(Qd,{id:y.id,className:"hidden"},y.id))]})},Vl={sm:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",md:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5",lg:"text-[14px] px-2.5 py-1 min-h-[26px] gap-1.5",small:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",medium:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5"},Hl={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},Ct=({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...o})=>h.jsxs("span",{className:W("inline-flex items-center justify-center","font-dos font-dos-regular leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",Vl[e]||Vl.md,Hl[t]||Hl.default,i),"data-variant":t,...o,children:[n&&h.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),h.jsx("span",{className:"eidotter-badge__content",children:r})]}),cf=({checked:t,defaultChecked:e=!1,onCheckedChange:n,disabled:r=!1,size:i="md",type:o="default",label:l,name:a,value:s,className:d,...u})=>h.jsx(Gd,{isSelected:t,defaultSelected:e,onChange:n,isDisabled:r,name:a,value:s,className:W("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",r&&"opacity-50 cursor-not-allowed",d),"data-size":i,"data-type":o,...u,children:({isSelected:p})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:W("eidotter-switch__track",p&&"eidotter-switch__track--checked",o==="slim"&&"eidotter-switch__track--slim",i==="sm"&&"eidotter-switch__track--sm"),children:h.jsx("span",{className:"eidotter-switch__thumb"})}),l&&h.jsx("span",{className:"text-[var(--color-cga-amber)]",children:l})]})}),sn="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",Rl=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:o})=>{const l=(a,s)=>{const d=h.jsxs(h.Fragment,{children:[n&&s&&h.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),h.jsx("span",{children:a.label})]});return a.onClick?h.jsx("button",{type:"button",className:W(sn,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onClick:a.onClick,children:d}):a.href?i?h.jsx(i,{href:a.href,className:sn,children:d}):h.jsx("a",{href:a.href,className:sn,children:d}):h.jsx("span",{className:sn,children:d})};return h.jsx("nav",{"aria-label":"Breadcrumb",className:W("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",o),children:h.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((a,s)=>{const d=s===t.length-1,u=s<t.length-1;return h.jsxs("li",{className:"flex items-center gap-2",children:[l(a,d),u&&h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${a.href??a.label}-${s}`)}),t.length>0&&h.jsx("li",{className:"flex items-center gap-2",children:h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),h.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:h.jsx("span",{className:"text-cga-amber",children:e})})]})})},df=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:o=1,className:l="",onPowerStateChange:a,onPowerOn:s,onPowerOff:d})=>{const u=c.useRef(i),[p,b]=c.useState(i?"on":"off");c.useEffect(()=>{const E=u.current;if(u.current=i,E!==i){const C=i?"powering-on":"powering-off";b(C),a==null||a(C)}},[i,a]);const v=()=>{p==="powering-on"?(b("on"),a==null||a("on"),s==null||s()):p==="powering-off"&&(b("off"),a==null||a("off"),d==null||d())},g=E=>{E.animationName!=="retro-power-on"&&E.animationName!=="retro-power-off"||v()},m=E=>{E.propertyName==="opacity"&&(p!=="powering-on"&&p!=="powering-off"||v())},y=["retro-effects",p==="powering-off"&&"retro-effects--powering-off",p==="powering-on"&&"retro-effects--powering-on",p==="off"&&"retro-effects--off",l].filter(Boolean).join(" "),$={"--retro-intensity":o},w=p!=="off";return h.jsx("div",{className:y,style:$,"aria-hidden":"true",onAnimationEnd:g,onTransitionEnd:m,children:w&&h.jsxs(h.Fragment,{children:[t&&h.jsx("div",{className:"retro-effects__scanlines"}),e&&h.jsx("div",{className:"retro-effects__glow"}),n&&h.jsx("div",{className:"retro-effects__flicker"}),r&&h.jsx("div",{className:"retro-effects__bloom"})]})})},Je=({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:o="medium",className:l="",onClick:a,...s})=>{const d=["timeline-node",`timeline-node--${t}`,`timeline-node--${e}`,`timeline-node--${o}`,`timeline-node--label-${i}`,n&&"timeline-node--active",a&&"timeline-node--interactive",l].filter(Boolean).join(" "),u=()=>{a&&a()},p=b=>{a&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),a())};return h.jsxs("div",{className:d,onClick:u,onKeyDown:p,role:a?"button":void 0,tabIndex:a?0:void 0,"aria-pressed":a?n:void 0,...s,children:[r&&i==="left"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--left",children:r}),r&&i==="top"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--top",children:r}),h.jsx("span",{className:"timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--right",children:r}),r&&i==="bottom"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--bottom",children:r})]})},kt=["year","month","day","hour"];function uf({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,o]=c.useState(e),[l,a]=c.useState([]),s=c.useRef(r);c.useEffect(()=>{s.current&&!r&&a([]),s.current=r},[r]);const d=t??i,u=kt.indexOf(d),p=u<kt.length-1,b=u>0,v=l.length>0?l[l.length-1].periodStart:null,g=c.useRef(r),m=c.useRef(p),y=c.useRef(u),$=c.useRef(l),w=c.useRef(n);c.useEffect(()=>{g.current=r,m.current=p,y.current=u,$.current=l,w.current=n});const E=c.useCallback(F=>{var S;g.current&&o(F),(S=w.current)==null||S.call(w,F)},[]),C=c.useCallback((F,S)=>{if(!g.current||!m.current)return;const L=kt[y.current+1];L!==void 0&&(a(z=>[...z,{periodStart:F,label:S}]),E(L))},[E]),N=c.useCallback(()=>{if(!g.current||$.current.length===0)return;const F=kt[y.current-1];F!==void 0&&(a(S=>S.slice(0,-1)),E(F))},[E]),V=c.useCallback(()=>{g.current&&(a([]),E("year"))},[E]);return{zoomLevel:d,canZoomIn:p,canZoomOut:b,breadcrumbs:l,currentPeriod:v,isDrillDownEnabled:r,drillDown:C,drillUp:N,reset:V}}function ff({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=c.useState(e),o=t!==void 0,l=t!==void 0?t:r,a=c.useRef(l),s=c.useRef(o),d=c.useRef(n);c.useEffect(()=>{a.current=l,s.current=o,d.current=n});const u=c.useCallback(g=>{var m;s.current||i(g),(m=d.current)==null||m.call(d,g)},[]),p=c.useCallback(g=>{u(g)},[u]),b=c.useCallback(()=>{u(null)},[u]),v=c.useCallback(g=>{var m;s.current?(m=d.current)==null||m.call(d,a.current===g?null:g):i(y=>{var w;const $=y===g?null:g;return(w=d.current)==null||w.call(d,$),$})},[]);return{selectedEntryId:l,select:p,deselect:b,toggle:v}}const pf=["January","February","March","April","May","June","July","August","September","October","November","December"],Sr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cn(t){return new Date(t).getUTCFullYear()}function Cr(t){return new Date(t).getUTCMonth()}function Wl(t){return new Date(t).getUTCDate()}function hf(t){return new Date(t).getUTCHours()}function bf(t){return String(t)}function vf(t,e){return`${pf[e]} ${t}`}function mf(t,e,n){return`${Sr[e]} ${n}`}function gf(t,e,n,r){const i=r>=12?"pm":"am",o=r===0?12:r>12?r-12:r;return`${Sr[e]} ${n}, ${o}${i}`}function yf(t){const e=new Date(t),n=Sr[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),o=e.getUTCHours(),l=e.getUTCMinutes(),a=o>=12?"pm":"am",s=o===0?12:o>12?o-12:o,d=l>0?`:${String(l).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${s}${d}${a}`}function $f(t){return new Date(Date.UTC(t,0,1)).toISOString()}function xf(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function wf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function Ef(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function dn(t,e,n,r,i){const o=new Map,l=[];for(const a of t){const s=e(a),d=o.get(s);d?d.push(a):(o.set(s,[a]),l.push(s))}l.sort((a,s)=>i==="asc"?a.localeCompare(s):s.localeCompare(a));for(const[,a]of o)a.sort((s,d)=>{const u=s.date.localeCompare(d.date);return i==="asc"?u:-u});return l.map(a=>({label:n(a),periodStart:r(a),entries:o.get(a)??[]}))}function Sf(t){return String(cn(t.date))}function Cf(t){const e=cn(t.date),n=Cr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function kf(t){const e=cn(t.date),n=Cr(t.date),r=Wl(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function Pf(t){const e=cn(t.date),n=Cr(t.date),r=Wl(t.date),i=hf(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Ul(t){return{year:parseInt(t)}}function jl(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function Gl(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function ql(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const Nf={year:4,month:7,day:10};function Tf(t,e,n){if(e===null||n==="hour")return t;const r=Nf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(o=>o.periodStart.slice(0,r)===i)}function Df(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return dn(r,Sf,i=>{const{year:o}=Ul(i);return bf(o)},i=>{const{year:o}=Ul(i);return $f(o)},n);case"month":return dn(r,Cf,i=>{const{year:o,month:l}=jl(i);return vf(o,l)},i=>{const{year:o,month:l}=jl(i);return xf(o,l)},n);case"day":return dn(r,kf,i=>{const{year:o,month:l,day:a}=Gl(i);return mf(o,l,a)},i=>{const{year:o,month:l,day:a}=Gl(i);return wf(o,l,a)},n);case"hour":return dn(r,Pf,i=>{const{year:o,month:l,day:a,hour:s}=ql(i);return gf(o,l,a,s)},i=>{const{year:o,month:l,day:a,hour:s}=ql(i);return Ef(o,l,a,s)},n)}}const _f=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:o,breadcrumbs:l=[],onBreadcrumbClick:a})=>{const s=l.length>0;return h.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[h.jsx(wr,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),s?h.jsx(Rl,{trail:[{label:"ALL",onClick:o},...l.slice(0,-1).map((d,u)=>({label:d.label,onClick:()=>a==null?void 0:a(u)}))],currentLabel:l[l.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):h.jsx("button",{type:"button",className:"timeline-zoom-controls__level",onClick:o,"aria-label":`Current zoom: ${t}. Click to reset.`,children:h.jsx(Ct,{variant:"accent",size:"medium",children:t.toUpperCase()})}),h.jsx(wr,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},kr=({children:t})=>h.jsxs("div",{className:"timeline-axis",children:[h.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),h.jsx("div",{className:"timeline-axis__content",children:t})]}),Yl=c.memo(({buckets:t,onBucketClick:e})=>h.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>h.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?h.jsxs("button",{type:"button",className:"timeline-view__bucket-button",onClick:()=>e(n),children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(Ct,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(Ct,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Yl.displayName="YearView";const Pt=c.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:o})=>{const l=["timeline-card",e&&"timeline-card--selected",n&&"timeline-card--expanded"].filter(Boolean).join(" "),a=typeof t.content=="string",s=t.content!=null;return h.jsxs("div",{className:l,children:[h.jsxs("button",{type:"button",className:"timeline-card__trigger",onClick:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[h.jsxs("div",{className:"timeline-card__header",children:[t.type&&h.jsx("span",{className:"timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&h.jsx("span",{className:"timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),h.jsx("p",{className:"timeline-card__title",children:t.title}),!n&&a&&(()=>{const d=String(t.content);return h.jsxs("p",{className:"timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),o]}),s&&h.jsx("div",{className:"timeline-card__body",children:h.jsx("div",{className:"timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&h.jsx("div",{className:"timeline-card__footer",children:i})]})});Pt.displayName="TimelineEntryCard";const Xl=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>h.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),h.jsx("div",{className:"timeline-view__content",children:i.entries.map(o=>h.jsx(Pt,{entry:o,isSelected:e===o.id,isExpanded:e===o.id,onSelect:n},o.id))})]},i.periodStart))}));Xl.displayName="MonthView";const Zl={sm:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",md:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5",lg:"text-[14px] px-2.5 py-1 min-h-[26px] gap-1.5",small:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",medium:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5"},Pr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:o=!1,disabled:l=!1,onClick:a,onClose:s,className:d,"aria-label":u,...p})=>{const b=!!a&&!l,{isClosing:v,triggerClose:g,handleAnimationEnd:m}=xr("tag-exit",s),y=E=>{l||((E.key==="Enter"||E.key===" ")&&a&&(E.preventDefault(),a(E)),(E.key==="Delete"||E.key==="Backspace")&&o&&s&&(E.preventDefault(),g()))},$=E=>{E.stopPropagation(),l||g()},w=r?{"--tag-color":"var("+r+")"}:void 0;return h.jsxs("span",{className:W("inline-flex items-center justify-center","font-dos font-dos-regular leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Zl[n]||Zl.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",l&&"opacity-50 cursor-not-allowed",v&&"eidotter-tag--closing",b&&"cursor-pointer",d),style:w,onClick:b?E=>!l&&(a==null?void 0:a(E)):void 0,onKeyDown:y,onAnimationEnd:m,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":l||void 0,"data-variant":e,...b?{role:"button",tabIndex:0}:{},...p,children:[h.jsx("span",{className:"eidotter-tag__content",children:t}),o&&h.jsx("button",{className:"eidotter-tag__close",type:"button","aria-label":"Remove "+(typeof t=="string"?t:"tag"),tabIndex:-1,onClick:$,disabled:l,children:"[x]"})]})},Nr=({children:t,gap:e="normal",wrap:n=!0,className:r="","aria-label":i,...o})=>{const l=["tag-group",`tag-group--${e}`,!n&&"tag-group--nowrap",r].filter(Boolean).join(" ");return h.jsx("div",{className:l,role:"group","aria-label":i,...o,children:t})},Jl=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsx(Pt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?h.jsx(Nr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>h.jsx(Pr,{size:"small",variant:"outlined",children:o},o))}):void 0},i.id))})]},r.periodStart))}));Jl.displayName="DayView";const Ql=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsxs(Pt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:h.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&h.jsx(Nr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>h.jsx(Pr,{size:"small",variant:"outlined",children:o},o))}),i.type&&h.jsx(Ct,{variant:"default",size:"small",children:i.type})]}),children:[h.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:yf(i.date)}),h.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));Ql.displayName="HourView";const If=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return h.jsx(Yl,{buckets:e,onBucketClick:i});case"month":return h.jsx(Xl,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return h.jsx(Jl,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return h.jsx(Ql,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},Mf=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:a,sortOrder:s="desc",scrollToZoom:d=!0,keyboardShortcuts:u=!0,...p})=>{var x;const b=e==="static",v=c.useRef(null),g=c.useRef(null),[m,y]=c.useState(""),{zoomLevel:$,canZoomIn:w,canZoomOut:E,breadcrumbs:C,currentPeriod:N,isDrillDownEnabled:V,drillDown:F,drillUp:S,reset:L}=uf({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:z,toggle:ee,deselect:ne}=ff({selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:a}),q=c.useMemo(()=>Df(t,$,s),[t,$,s]),P=C.length>0?["year","month","day","hour"][C.length-1]:null,O=c.useMemo(()=>N&&P?Tf(q,N,P):q,[q,N,P]);c.useEffect(()=>{if(b||!d)return;const k=v.current;if(!k)return;let D=null;const _=R=>{!R.ctrlKey&&!R.metaKey||(R.preventDefault(),D===null&&(D=requestAnimationFrame(()=>{R.deltaY>0&&S(),D=null})))};return k.addEventListener("wheel",_,{passive:!1}),()=>{k.removeEventListener("wheel",_),D!==null&&cancelAnimationFrame(D)}},[b,d,V,w,S]),c.useEffect(()=>{if(b||!u)return;const k=D=>{var R;if(!((R=v.current)!=null&&R.contains(document.activeElement))&&document.activeElement!==v.current)return;const _=D.ctrlKey||D.metaKey;_&&D.key==="-"?(D.preventDefault(),S()):_&&D.key==="0"?(D.preventDefault(),L(),y("Showing all years")):D.key==="Escape"&&(D.preventDefault(),ne())};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[b,u,S,L,ne]);const j=c.useCallback(k=>{w&&(F(k.periodStart,k.label),y(`Showing ${$==="year"?"months":$==="month"?"days":"hours"} in ${k.label}`))},[w,F,$]),Y=c.useRef(C.length);c.useEffect(()=>{var k;if(C.length!==Y.current){Y.current=C.length;const D=(k=g.current)==null?void 0:k.querySelector('.timeline-card__trigger, .timeline-view__bucket-button, .timeline-node[role="button"]');D&&requestAnimationFrame(()=>D.focus())}},[C.length]);const J=["timeline-container",b&&"timeline-container--static",p.className].filter(Boolean).join(" "),re=c.useMemo(()=>b?[...t].sort((k,D)=>{const _=k.date.localeCompare(D.date);return s==="desc"?-_:_}):t,[b,t,s]),f=c.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),T=k=>{try{return f.format(new Date(k))}catch{return k}};return h.jsxs("div",{ref:v,...p,className:J,role:"region","aria-label":p["aria-label"]??"Timeline",tabIndex:b?void 0:0,children:[h.jsx("div",{className:"timeline-container__announcer",role:"status","aria-live":"polite","aria-atomic":"true",children:m}),!b&&h.jsx(_f,{zoomLevel:$,canZoomIn:w,canZoomOut:E,onZoomIn:()=>{},onZoomOut:S,onReset:L,breadcrumbs:V?C:[],onBreadcrumbClick:k=>{const D=C.length-1-k;for(let _=0;_<D;_++)S()}}),h.jsx("div",{ref:g,children:t.length===0?h.jsxs("div",{className:"timeline-container__empty",role:"status",children:[h.jsx("p",{children:"C:\\TIMELINE> No entries found."}),h.jsx("p",{children:"_"})]}):b?h.jsx(kr,{children:h.jsx("div",{className:"timeline-container__static",role:"list","aria-label":"Timeline",children:re.map(k=>h.jsxs("div",{className:"timeline-container__static-entry",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:T(k.date),labelPosition:"right"})}),h.jsx(Pt,{entry:k,isSelected:!1,isExpanded:!0})]},k.id))})}):O.length===0&&N?h.jsx(kr,{children:h.jsxs("div",{className:"timeline-container__empty",role:"status",children:[h.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((x=C[C.length-1])==null?void 0:x.label)??"this period","."]}),h.jsx("p",{children:"_"})]})}):h.jsx(kr,{children:h.jsx(If,{zoomLevel:$,buckets:O,selectedEntryId:z,onEntrySelect:ee,onBucketClick:j})})})]})},Kf=({isOpen:t,onClose:e,onOpenChange:n,title:r,children:i,footer:o,className:l})=>{const a=c.useRef(t);c.useEffect(()=>{t!==a.current&&(a.current=t,n==null||n(t))},[t,n]);const s=d=>{d||e()};return h.jsx(Qo,{isOpen:t,onOpenChange:s,isDismissable:!0,className:({isEntering:d,isExiting:u})=>W("eidotter-modal-overlay",d&&"eidotter-modal-overlay--entering",u&&"eidotter-modal-overlay--exiting"),children:h.jsx(Rd,{className:({isEntering:d,isExiting:u})=>W("eidotter-modal",d&&"eidotter-modal--entering",u&&"eidotter-modal--exiting"),children:h.jsxs(Vd,{"aria-label":r,className:W("eidotter-modal__container outline-none",l),children:[h.jsxs("header",{className:"eidotter-modal__header",children:[h.jsx("h2",{className:"eidotter-modal__title",children:r}),h.jsx("button",{type:"button",className:"eidotter-modal__close",onClick:e,"aria-label":"Close modal",children:h.jsx(ge,{name:"Close",size:"S"})})]}),h.jsx("div",{className:"eidotter-modal__body",children:i}),o&&h.jsx("footer",{className:"eidotter-modal__footer",children:o})]})})})},Lf="░▒▓█│┤┐└┴┬├─┼",Ff=4;function Tr(t,e){const{speed:n=40,characters:r=Lf,enabled:i=!0,delay:o=0}=e??{},[l,a]=c.useState(()=>{if(!i||$r())return t;let p="";for(let b=0;b<t.length;b++)t[b]===" "?p+=" ":p+=r[Math.floor(Math.random()*r.length)];return p}),[s,d]=c.useState(!1),u=c.useRef(0);return c.useEffect(()=>{if(!i||$r()){a(t),d(!1);return}let p=0,b=0,v=0,g=o;d(!0);const m=y=>{v||(v=y);const $=y-v;if(g>0){g-=$,v=y,u.current=requestAnimationFrame(m);return}if($>=n){if(v=y,b++,b>=Ff&&(p++,b=0),p>=t.length){a(t),d(!1);return}let w="";for(let E=0;E<t.length;E++)E<p?w+=t[E]:t[E]===" "?w+=" ":w+=r[Math.floor(Math.random()*r.length)];a(w)}u.current=requestAnimationFrame(m)};return u.current=requestAnimationFrame(m),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,o]),{text:l,isScrambling:s}}const ea={sm:{root:"gap-0.5",label:"text-[10px]",value:"text-lg",trend:"text-[10px]"},md:{root:"gap-1",label:"text-[10px]",value:"text-2xl",trend:"text-[10px]"},lg:{root:"gap-1.5",label:"text-xs",value:"text-4xl",trend:"text-xs"},small:{root:"gap-0.5",label:"text-[10px]",value:"text-lg",trend:"text-[10px]"},medium:{root:"gap-1",label:"text-[10px]",value:"text-2xl",trend:"text-[10px]"},large:{root:"gap-1.5",label:"text-xs",value:"text-4xl",trend:"text-xs"}},Af={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Of={up:"▲",down:"▼",neutral:"►"},Bf={up:"increasing",down:"decreasing",neutral:"unchanged"},zf=({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:o=!1,className:l,...a})=>{const{text:s}=Tr(String(e),{speed:30,enabled:o}),d=o?s:String(e),u=ea[i]||ea.md;return h.jsxs("div",{className:W("flex flex-col font-dos","eidotter-stat",u.root,l),...a,children:[h.jsx("span",{className:W("text-cga-amber uppercase tracking-wider leading-tight",u.label),children:t}),h.jsx("span",{className:W("text-dos-text-accent font-bold leading-none tabular-nums",u.value),children:d}),n&&h.jsxs("span",{className:W("inline-flex items-center gap-1 leading-none",Af[n],u.trend),"aria-label":`Trend: ${Bf[n]}${r?`, ${r}`:""}`,children:[h.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Of[n]}),r&&h.jsx("span",{className:"tabular-nums",children:r})]})]})},ta={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Vf=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:o="All",size:l="md",onChange:a,className:s,...d})=>{const[u,p]=c.useState(n),b=c.useRef(null),v=e!==void 0,g=v?e:u,m=t.filter(S=>!S.disabled).map(S=>S.id),y=g.length===0,$=c.useCallback(S=>{v||p(S),a==null||a(S)},[v,a]),w=c.useCallback(S=>{if(r==="single"){const L=g.includes(S)?[]:[S];$(L)}else{const L=g.includes(S)?g.filter(z=>z!==S):[...g,S];$(L)}},[r,g,$]),E=c.useCallback(()=>{$([])},[$]),C=c.useCallback(()=>b.current?Array.from(b.current.querySelectorAll("button:not([disabled])")):[],[]),N=c.useCallback(S=>{const L=C(),z=L.indexOf(S.target);if(z===-1)return;let ee=null;switch(S.key){case"ArrowLeft":case"ArrowUp":S.preventDefault(),ee=z>0?z-1:L.length-1;break;case"ArrowRight":case"ArrowDown":S.preventDefault(),ee=z<L.length-1?z+1:0;break;case"Home":S.preventDefault(),ee=0;break;case"End":S.preventDefault(),ee=L.length-1;break}ee!==null&&L[ee].focus()},[C]),F=i&&y?"__all__":g.length>0?g[0]:i?"__all__":m[0]||null;return h.jsxs("div",{ref:b,className:W("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",ta[l]||ta.md,s),role:"toolbar",onKeyDown:N,...d,children:[i&&h.jsx("button",{type:"button",className:W("eidotter-filter-bar__item","eidotter-filter-bar__item--all",y&&"eidotter-filter-bar__item--active"),"aria-pressed":y,tabIndex:F==="__all__"?0:-1,onClick:E,children:h.jsx("span",{className:"eidotter-filter-bar__label",children:o})}),t.map(S=>{const L=g.includes(S.id),z=L&&S.color?{"--filter-bar-item-color":`var(${S.color})`}:void 0;return h.jsxs("button",{type:"button",className:W("eidotter-filter-bar__item",L&&"eidotter-filter-bar__item--active",S.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":L,tabIndex:F===S.id?0:-1,disabled:S.disabled,onClick:()=>w(S.id),style:z,children:[h.jsx("span",{className:"eidotter-filter-bar__label",children:S.label}),S.count!==void 0&&h.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${S.count} items`,children:S.count})]},S.id)})]})},Dr=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Hf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:o=[],className:l="",...a})=>{const[s,d]=c.useState(n),[u,p]=c.useState(new Set),b=c.useRef(n),v=c.useId(),g=c.useRef(null),m=r!==void 0,y=m?r:s;y&&(b.current=!0);const $=()=>{const C=!y;m||d(C),i==null||i(C)},w=C=>{var N;C.key==="Escape"&&y&&(C.stopPropagation(),$(),(N=g.current)==null||N.focus())},E=["inline-expand",y&&"inline-expand--expanded",l].filter(Boolean).join(" ");return h.jsxs("span",{className:E,onKeyDown:w,...a,children:[h.jsxs("button",{ref:g,type:"button",className:"inline-expand__trigger","aria-expanded":y,"aria-controls":v,onClick:$,children:[t,h.jsx("span",{className:"inline-expand__indicator","aria-hidden":"true",children:y?"[-]":"[+]"})]}),h.jsxs("span",{id:v,className:"inline-expand__content",role:"region",inert:!y,children:[h.jsx("span",{className:"inline-expand__inner",children:e}),o.length>0&&h.jsx("span",{className:"inline-expand__sources",role:"list",children:o.map(C=>h.jsx("span",{className:"inline-expand__source-item",role:"listitem",children:h.jsxs("a",{href:Dr(C.url)?C.url:void 0,className:"inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${C.title} (opens external website)`,children:[b.current&&C.favicon&&Dr(C.favicon)&&!u.has(C.url)?h.jsx("img",{className:"inline-expand__source-favicon",src:C.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>p(N=>new Set(N).add(C.url))}):h.jsx("span",{className:"inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),h.jsx("span",{className:"inline-expand__source-title",children:C.title})]})},C.url))})]})]})},Rf={horizontal:"h-px w-full",vertical:"w-px h-full"},Wf=({orientation:t="horizontal",className:e})=>h.jsx("div",{role:"separator","aria-orientation":t,className:W("shrink-0 bg-dos-border-default","eidotter-separator",Rf[t],e)}),Uf=({children:t,speed:e,characters:n,delay:r,className:i="",...o})=>{const{text:l,isScrambling:a}=Tr(t,{speed:e,characters:n,delay:r}),s=["text-scramble",a&&"text-scramble--scrambling",i].filter(Boolean).join(" ");return h.jsx("span",{className:s,...o,children:l})},na={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},ra=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const o=r||"a";return h.jsx("nav",{className:W("eidotter-nav eidotter-nav--desktop",na[n],i),"aria-label":"Main navigation",children:h.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(l=>h.jsx("li",{className:"eidotter-nav__desktop-item",children:h.jsx(o,{href:l.href,className:W("eidotter-nav__link",e===l.href&&"eidotter-nav__link--active"),children:l.label})},l.href))})})},ia=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[o,l]=c.useState(!1),a=r||"a",s=c.useCallback(()=>l(u=>!u),[]),d=c.useCallback(()=>l(!1),[]);return h.jsxs("div",{className:W("eidotter-nav eidotter-nav--mobile",na[n],i),children:[h.jsx("button",{onClick:s,className:"eidotter-nav__hamburger","aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:h.jsx("span",{className:"eidotter-nav__hamburger-icon","aria-hidden":"true",children:o?"✕":"☰"})}),o&&h.jsx("div",{className:"eidotter-nav__overlay",onClick:d,"aria-hidden":"true"}),h.jsxs("nav",{className:W("eidotter-nav__panel",o&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[h.jsx("div",{className:"eidotter-nav__panel-header",children:h.jsx("button",{onClick:d,className:"eidotter-nav__close","aria-label":"Close menu",children:"✕"})}),h.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>h.jsx("li",{className:"eidotter-nav__item",children:h.jsx(a,{href:u.href,className:W("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:d,children:u.label})},u.href))})]})]})},jf=t=>h.jsxs(h.Fragment,{children:[h.jsx(ia,{...t}),h.jsx(ra,{...t})]}),oa=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:o="",...l})=>{const a=t==="user"?r:t==="assistant"?i:"",s=["chat-message",`chat-message--${t}`,n&&"chat-message--streaming",o].filter(Boolean).join(" ");return h.jsxs("div",{className:s,...l,children:[a&&h.jsx("span",{className:"chat-message__prefix","aria-hidden":"true",children:a}),h.jsx("span",{className:"chat-message__content",children:e}),n&&h.jsx("span",{className:"chat-message__cursor","aria-hidden":"true",children:"█"})]})},la=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i="",...o})=>{const l=c.useRef(null);c.useEffect(()=>{var s,d;(d=(s=l.current)==null?void 0:s.scrollIntoView)==null||d.call(s,{behavior:"smooth"})},[t.length,e]);const a=["chat-history",i].filter(Boolean).join(" ");return t.length===0?h.jsx("div",{className:a,role:"log","aria-live":"polite",...o,children:h.jsx("div",{className:"chat-history__empty",children:h.jsx("span",{className:"chat-history__empty-text",children:"Awaiting input..."})})}):h.jsx("div",{className:a,role:"log","aria-live":"polite",...o,children:h.jsxs("div",{className:"chat-history__messages",children:[t.map((s,d)=>{const u=e&&s.role==="assistant"&&d===t.length-1;return h.jsx(oa,{role:s.role,content:s.content,isStreaming:u,userPrefix:n,assistantPrefix:r},s.id)}),h.jsx("div",{ref:l})]})})},aa=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i="",...o})=>{const[l,a]=c.useState(""),s=c.useRef(null);c.useLayoutEffect(()=>{const b=s.current;b&&(b.style.height="auto",b.style.height=`${b.scrollHeight}px`)},[l]);const d=b=>{if(b.key==="Enter"&&!b.shiftKey&&!r){b.preventDefault();const v=l.trim();v&&(t(v),a(""))}},u=()=>{!r&&s.current&&s.current.focus()},p=["chat-input",r&&"chat-input--disabled",i].filter(Boolean).join(" ");return h.jsxs("div",{className:p,onClick:u,...o,children:[h.jsx("span",{className:"chat-input__prompt","aria-hidden":"true",children:e}),h.jsxs("div",{className:"chat-input__input-wrapper",children:[h.jsx("textarea",{ref:s,className:"chat-input__textarea",value:l,onChange:b=>a(b.target.value),onKeyDown:d,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),h.jsx("span",{className:"chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},Gf=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:o,placeholder:l,disabled:a=!1,className:s="",...d})=>{const u=["chat-container",s].filter(Boolean).join(" ");return h.jsxs("div",{className:u,...d,children:[h.jsx(la,{className:"chat-container__history",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:o}),h.jsx(aa,{className:"chat-container__input",onSend:e,prompt:r,placeholder:l,disabled:a})]})},sa=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],qf=({copyright:t,links:e,children:n,className:r,...i})=>{const o=e??sa;return h.jsxs("footer",{className:W("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[h.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&h.jsx("div",{className:"mb-3",children:n}),o.length>0&&h.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:o.map((l,a)=>h.jsxs(c.Fragment,{children:[a>0&&h.jsx("span",{className:"text-cga-brown select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),h.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:l.href,...l.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:l.label})]},l.href))}),t&&h.jsxs("p",{className:"text-cga-brown m-0",children:["© ",t]})]})},Yf={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},Xf=({type:t="primary",title:e,children:n,actions:r,onClose:i,avatar:o,image:l,progress:a,progressLabel:s,duration:d,showIcon:u=!0,className:p})=>{const{isClosing:b,triggerClose:v,handleAnimationEnd:g}=xr("notification-exit",i);c.useEffect(()=>{if(d==null||!i)return;const $=setTimeout(()=>v(),d);return()=>clearTimeout($)},[d,i,v]);const m=u&&!o,y=a!=null;return h.jsxs("div",{className:W("w-full max-w-[400px]","font-dos text-dos-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-notification",`eidotter-notification--${t}`,b&&"eidotter-notification--closing",p),onAnimationEnd:g,role:t==="error"?"alert":"status","data-type":t,children:[l&&h.jsx("div",{className:"eidotter-notification__image",children:l}),h.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[o&&h.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:o}),m&&h.jsx("div",{className:"eidotter-notification__icon",children:h.jsx(ge,{name:Yf[t]||"Info",size:"S","aria-label":`${t} notification`})}),h.jsxs("div",{className:W("flex-1 flex flex-col gap-3 min-w-0",i&&!m&&!o&&"pr-8"),children:[(e||n)&&h.jsxs("div",{className:"flex flex-col gap-1",children:[e&&h.jsx("div",{className:"eidotter-notification__title font-dos font-dos-semibold leading-[140%]",children:e}),n&&h.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),y&&h.jsxs("div",{className:"flex flex-col gap-1",children:[h.jsx(Al,{value:a,max:100,size:"sm",fullWidth:!0,showLabel:!1}),s&&h.jsx("div",{className:"eidotter-notification__text font-dos text-dos-xs",children:s})]}),r&&r.length>0&&h.jsx("div",{className:"flex flex-row gap-3",children:r.map(($,w)=>h.jsxs("button",{type:"button",className:"eidotter-notification__action",onClick:$.onClick,children:[$.label,$.icon]},w))})]}),i&&h.jsx(fr,{className:"eidotter-notification__close",onPress:v,"aria-label":"Close notification",children:h.jsx(ge,{name:"Close",size:"S"})})]})]})},Zf={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},at={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"}};function Jf(t){return at[t]}function Qf(t){return Object.entries(at).filter(([,e])=>e.origin===t).map(([e])=>e)}function ep(t){return Object.entries(at).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function tp(t,e){const n=at[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function np(t){const e=at[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const rp="0.17.2";A.AccordionFill=Qu,A.Alert=Ju,A.Badge=Ct,A.Breadcrumb=Rl,A.Button=wr,A.Card=ef,A.ChatContainer=Gf,A.ChatHistory=la,A.ChatInput=aa,A.ChatMessage=oa,A.Checkbox=tf,A.CommandPrompt=nf,A.DesktopNav=ra,A.FilterBar=Vf,A.Footer=qf,A.Icon=ge,A.InlineExpand=Hf,A.Input=Bl,A.MobileNav=ia,A.Modal=Kf,A.Nav=jf,A.Notification=Xf,A.Progress=Al,A.RetroEffects=df,A.Section=Il,A.Separator=Wf,A.Stat=zf,A.Switch=cf,A.Tabs=sf,A.Tag=Pr,A.TagGroup=Nr,A.Terminal=lf,A.TextScramble=Uf,A.TimelineContainer=Mf,A.TimelineNode=Je,A.ZOOM_LEVELS=kt,A.componentRegistry=at,A.defaultLegalLinks=sa,A.getComponentMeta=Jf,A.getComponentsByConsumer=ep,A.getComponentsByOrigin=Qf,A.getVariantConsumerMap=np,A.getVariantsUsedBy=tp,A.isSafeUrl=Dr,A.projects=Zf,A.useTextScramble=Tr,A.version=rp,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
28
|
+
*/var Lo;function Zd(){return Lo||(Lo=1,process.env.NODE_ENV!=="production"&&(function(){function t(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}function e(v,y){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!f){var w=y();o(g,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=l({inst:{value:g,getSnapshot:y}});var x=w[0].inst,E=w[1];return d(function(){x.value=g,x.getSnapshot=y,n(x)&&E({inst:x})},[v,g,y]),s(function(){return n(x)&&E({inst:x}),v(function(){n(x)&&E({inst:x})})},[v]),c(g),g}function n(v){var y=v.getSnapshot;v=v.value;try{var g=y();return!o(v,g)}catch{return!0}}function r(v,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=a,o=typeof Object.is=="function"?Object.is:t,l=i.useState,s=i.useEffect,d=i.useLayoutEffect,c=i.useDebugValue,u=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;cr.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cr}var Fo;function Yd(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Qt.exports=qd():Qt.exports=Zd()),Qt.exports}var Xd=Yd();const Oo=a.createContext(!1),Pt=a.createContext(null);function Jd(t){if(a.useContext(Pt))return t.content;let{collection:n,document:r}=tc(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(Gd,null,a.createElement(Pt.Provider,{value:r},t.content)),a.createElement(Qd,{render:t.children,collection:n}))}function Qd({collection:t,render:e}){return e(t)}function Rd(t,e,n){let r=Be(),i=a.useRef(r);i.current=r;let o=a.useCallback(()=>i.current?n():e(),[e,n]);return Xd.useSyncExternalStore(t,o)}const ec=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Rd;function tc(t){let[e]=a.useState(()=>new jd((t==null?void 0:t())||new Wd)),n=a.useCallback(l=>e.subscribe(l),[e]),r=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:ec(n,r,i),document:e}}const ur=a.createContext(null);function nc(t){var e;return e=class extends Et{},e.type=t,e}function rc(t,e,n,r,i,o){typeof t=="string"&&(t=nc(t));let l=a.useCallback(d=>{d==null||d.setProps(e,n,t,r,o)},[e,n,r,o,t]),s=a.useContext(ur);if(s){let d=s.ownerDocument.nodesByProps.get(e);return d||(d=s.ownerDocument.createElement(t.type),d.setProps(e,n,t,r,o),s.appendChild(d),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,d)),i?a.createElement(ur.Provider,{value:d},i):null}return a.createElement(t.type,{ref:l},i)}function ic(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=a.forwardRef((i,o)=>{let l=a.useContext(jn);if(!a.useContext(Oo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return rc(t,i,o,"children"in i?i.children:null,null,d=>a.createElement(jn.Provider,{value:l},a.createElement(n,{node:d})))});return r.displayName=e.name,r}function oc(t){return So({...t,addIdAndValue:!0})}const Ao=a.createContext(null);function lc(t){let e=a.useContext(Ao),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies);var r;let i=(r=t.idScope)!==null&&r!==void 0?r:e==null?void 0:e.idScope,o=oc({...t,idScope:i,dependencies:n});return a.useContext(Pt)&&(o=a.createElement(sc,null,o)),e=a.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),a.createElement(Ao.Provider,{value:e},o)}function sc({children:t}){let e=a.useContext(Pt),n=a.useMemo(()=>a.createElement(Pt.Provider,{value:null},a.createElement(Oo.Provider,{value:!0},t)),[t]);return Be()?a.createElement(ur.Provider,{value:e},n):dt.createPortal(n,e)}const zo={CollectionRoot({collection:t,renderDropIndicator:e}){return Vo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Vo(t,e,n)}};function Vo(t,e,n){return So({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return a.createElement(a.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:a.createElement(a.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,ac(t,r,n))}})}function ac(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let d=e;for(;(d==null?void 0:d.type)==="item"&&(!o||d.parentKey!==o.parentKey&&o.level<d.level);){let c=n({type:"item",key:d.key,dropPosition:"after"});a.isValidElement(c)&&s.push(a.cloneElement(c,{key:`${d.key}-after`})),d=d.parentKey!=null?t.getItem(d.parentKey):null}}return s}const Bo=a.createContext(zo);function dc(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function cc(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:f,href:m,target:v,rel:y,type:g="button"}=t,w;n==="button"?w={type:g,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:w={role:"button",href:n==="a"&&!r?m: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"?y:void 0};let{pressProps:x,isPressed:E}=it({onPressStart:o,onPressEnd:l,onPressChange:d,onPress:i,onPressUp:s,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:C}=Wt(t,e);u&&(C.tabIndex=r?-1:C.tabIndex);let k=G(C,x,ce(t,{labelable:!0}));return{isPressed:E,buttonProps:G(w,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"],"aria-disabled":t["aria-disabled"]})}}function Ho(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:o,name:l,form:s,children:d,"aria-label":c,"aria-labelledby":u,validationState:f="valid",isInvalid:m,onPressStart:v,onPressEnd:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E}=t,C=q=>{q.stopPropagation(),e.setSelected(K(q).checked)},k=d!=null,N=c!=null||u!=null;!k&&!N&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:H,isPressed:F}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E,isDisabled:r}),{pressProps:P,isPressed:I}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPressUp:x,onClick:E,onPress(q){var T;w==null||w(q),e.toggle(),(T=n.current)===null||T===void 0||T.focus()},isDisabled:r||i}),{focusableProps:z}=Wt(t,n),ee=G(H,z),ne=ce(t,{labelable:!0});return Gr(n,e.defaultSelected,e.setSelected),{labelProps:G(P,{onClick:q=>q.preventDefault()}),inputProps:G(ne,{"aria-invalid":m||f==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:C,disabled:r,...o==null?{}:{value:o},name:l,form:s,type:"checkbox",...ee}),isSelected:e.isSelected,isPressed:F||I,isDisabled:r,isReadOnly:i,isInvalid:m||f==="invalid"}}function Uo(t,e,n){let r=or({...t,value:e.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:d,isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m}=Ho({...t,isInvalid:i},e,n);Mo(t,r,n);let{isIndeterminate:v,isRequired:y,validationBehavior:g="aria"}=t;a.useEffect(()=>{n.current&&(n.current.indeterminate=!!v)});let{pressProps:w}=it({isDisabled:f||m,onPress(){let{[Jt]:x}=t,{commitValidation:E}=x||r;E()}});return{labelProps:G(s,w,a.useMemo(()=>({onMouseDown:x=>x.preventDefault()}),[])),inputProps:{...d,checked:c,"aria-required":y&&g==="aria"||void 0,required:y&&g==="native"},isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m,isInvalid:i,validationErrors:o,validationDetails:l}}const uc=new WeakMap;function fr(t={}){let{isReadOnly:e}=t,[n,r]=pt(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=a.useState(n);function o(d){e||r(d)}function l(){e||r(!n)}var s;return{isSelected:n,defaultSelected:(s=t.defaultSelected)!==null&&s!==void 0?s:i,setSelected:o,toggle:l}}function fc(t,e,n){const r=fr({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(x){x?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(x)}});let{name:i,form:o,descriptionId:l,errorMessageId:s,validationBehavior:d}=uc.get(e);var c;d=(c=t.validationBehavior)!==null&&c!==void 0?c:d;let{realtimeValidation:u}=or({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),f=a.useRef(ot),m=()=>{e.setInvalid(t.value,u.isInvalid?u:f.current)};a.useEffect(m);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:u,y=d==="native"?e.displayValidation:v;var g;let w=Uo({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||o,isRequired:(g=t.isRequired)!==null&&g!==void 0?g:e.isRequired,validationBehavior:d,[Jt]:{realtimeValidation:v,displayValidation:y,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(x){f.current=x,m()}}},r,n);return{...w,inputProps:{...w.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}function hc(t,e){let{role:n="dialog"}=t,r=mn();r=t["aria-label"]?void 0:r;let i=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!vn(e.current)){qe(e.current);let o=setTimeout(()=>{(ie()===e.current||ie()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),qe(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),xo(),{dialogProps:{...ce(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function pc(t,e,n){let{labelProps:r,inputProps:i,isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}=Ho(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:o},isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}}const Wo=new WeakMap;function Rt(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=Wo.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function mc(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:s}=e,d=r===s,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:f}=Nd({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),m=Rt(e,r,"tab"),v=Rt(e,r,"tabpanel"),{tabIndex:y}=u,g=e.collection.getItem(r),w=ce(g==null?void 0:g.props,{labelable:!0});delete w.id;let x=Ws(g==null?void 0:g.props),{focusableProps:E}=Wt({...g==null?void 0:g.props,isDisabled:c},n);return{tabProps:G(w,E,x,u,{id:m,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?v:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:d,isDisabled:c,isPressed:f}}function vc(t,e,n){let r=nd(n)?void 0:0;var i;const o=Rt(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=_t({...t,id:o,"aria-labelledby":Rt(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:G(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class gc{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function bc(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:s}=e,{direction:d}=$n(),c=a.useMemo(()=>new gc(o,d,r,s),[o,s,r,d]),{collectionProps:u}=kd({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ne();Wo.set(e,f);let m=_t({...t,id:f});return{tabListProps:{...G(u,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const jo=a.createContext({}),yc=Ct(function(e,n){[e,n]=xe(e,n,jo);let{elementType:r="label",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Label",...i,ref:n})}),xc=a.createContext(null),Go=a.createContext({}),le=Ct(function(e,n){[e,n]=xe(e,n,Go);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=cc(e,n);o=Ec(o,i);let{focusProps:s,isFocused:d,isFocusVisible:c}=Ye(e),{hoverProps:u,isHovered:f}=bt({...e,isDisabled:e.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:d,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=pe({...e,values:m,defaultClassName:"react-aria-Button"}),y=Ne(o.id),g=Ne(),w=o["aria-labelledby"];i&&(w?w=`${w} ${g}`:o["aria-label"]&&(w=`${y} ${g}`));let x=a.useRef(i);a.useEffect(()=>{let C={"aria-labelledby":w||y};(!x.current&&d&&i||x.current&&d&&!i)&&ei(C,"assertive"),x.current=i},[i,d,w,y]);let E=ce(e,{global:!0});return delete E.onClick,a.createElement(ue.button,{...G(E,v,o,s,u),type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":w,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":d||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},a.createElement(xc.Provider,{value:{id:g}},v.children))}),wc=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ec(t,e){if(e){for(const n in t)n.startsWith("on")&&!wc.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const qo=a.createContext({}),Zo=a.forwardRef(function(e,n){[e,n]=xe(e,n,qo);let{elementType:r="span",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Text",...i,ref:n})});class Yo{*[Symbol.iterator](){yield*this.iterable}get size(){return this._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=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let d of s.childNodes)n(d)};for(let s of e)n(s);let r=null,i=0,o=0;for(let[s,d]of this.keyMap)r?(r.nextKey=s,d.prevKey=r.key):(this.firstKey=s,d.prevKey=void 0),d.type==="item"&&(d.index=i++),(d.type==="section"||d.type==="item")&&o++,r=d,r.nextKey=void 0;this._size=o;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class we extends Set{constructor(e,n,r){super(e),e instanceof we?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Cc(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Pc(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),d=a.useRef(null),c=a.useRef(null),[,u]=a.useState(null),f=a.useMemo(()=>Xo(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Xo(t.defaultSelectedKeys,new we),[t.defaultSelectedKeys]),[v,y]=pt(f,m,t.onSelectionChange),g=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[w,x]=a.useState(i);i==="replace"&&w==="toggle"&&typeof v=="object"&&v.size===0&&x("replace");let E=a.useRef(i);return a.useEffect(()=>{i!==E.current&&(x(i),E.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return l.current},setFocused(C){l.current=C,s(C)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(C,k="first"){d.current=C,c.current=k,u(C)},selectedKeys:v,setSelectedKeys(C){(r||!Cc(C,v))&&y(C)},disabledKeys:g,disabledBehavior:o}}function Xo(t,e){return t?t==="all"?"all":new we(t):e}class hr{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 i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)<0)&&(e=i)}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 i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)>0)&&(e=i)}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 we([n],n,n);else{let l=this.state.selectedKeys;var i;let s=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new we(l,s,n);var o;for(let d of this.getKeyRange(s,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(d);for(let d of this.getKeyRange(n,s))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?ir(this.collection,r,i)<=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 i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}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 we(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 we([n],n,n):new we;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new we;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Kd(Id(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o: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 we)}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 hr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function kc(t){let{filter:e,layoutDelegate:n}=t,r=Pc(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=a.useCallback(c=>e?new Yo(e(c)):new Yo(c),[e]),l=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=Md(t,o,l),d=a.useMemo(()=>new hr(s,r,{layoutDelegate:n}),[s,r,n]);return Nc(s,d),{collection:s,disabledKeys:i,selectionManager:d}}function Nc(t,e){const n=a.useRef(null);a.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(x=>{const E=n.current.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null),m=[...t.getKeys()].map(x=>{const E=t.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=m==null?void 0:m.length)!==null&&i!==void 0?i:0);var o,l,s;let y=Math.min(v>1?Math.max(((o=u==null?void 0:u.index)!==null&&o!==void 0?o:0)-v+1,0):(l=u==null?void 0:u.index)!==null&&l!==void 0?l:0,((s=m==null?void 0:m.length)!==null&&s!==void 0?s:0)-1),g=null,w=!1;for(;y>=0;){if(!e.isDisabled(m[y].key)){g=m[y];break}if(y<m.length-1&&!w)y++;else{w=!0;var d,c;y>((d=u==null?void 0:u.index)!==null&&d!==void 0?d:0)&&(y=(c=u==null?void 0:u.index)!==null&&c!==void 0?c:0),y--}}e.setFocusedKey(g?g.key:null)}n.current=t},[t,e])}function Tc(t){var e;let[n,r]=pt(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=a.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:s}=kc({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var u;let f=(u=c.values().next().value)!==null&&u!==void 0?u:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),d=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:d}}function Dc(t){let[e,n]=pt(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=a.useCallback(()=>{n(!0)},[n]),i=a.useCallback(()=>{n(!1)},[n]),o=a.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Mc(t){var e,n;let r=Tc({...t,onSelectionChange:t.onSelectionChange?d=>{var c;d!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,d))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Jo(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,s=a.useRef(l);return a.useEffect(()=>{let d=l;t.selectedKey==null&&(i.isEmpty||d==null||!o.getItem(d))&&(d=Jo(o,r.disabledKeys),d!=null&&i.setSelectedKeys([d])),(d!=null&&i.focusedKey==null||!i.isFocused&&d!==s.current)&&i.setFocusedKey(d),s.current=d}),{...r,isDisabled:t.isDisabled||!1}}function Jo(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const Ic=a.createContext(null),Qo=a.createContext(null),Kc=a.createContext(null),_c=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,ds);let{validationBehavior:o}=$t(Qo)||{};var l,s;let d=(s=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&s!==void 0?s:"native",c=a.useContext(Kc),u=$e(a.useMemo(()=>et(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:f,inputProps:m,isSelected:v,isDisabled:y,isReadOnly:g,isPressed:w,isInvalid:x}=c?fc({...Lt(e),value:e.value,children:typeof e.children=="function"?!0:e.children},c,u):Uo({...Lt(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:d},fr(e),u),{isFocused:E,isFocusVisible:C,focusProps:k}=Ye(),N=y||g,{hoverProps:H,isHovered:F}=bt({...e,isDisabled:N}),P=pe({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:w,isHovered:F,isFocused:E,isFocusVisible:C,isDisabled:y,isReadOnly:g,isInvalid:x,isRequired:e.isRequired||!1}}),I=ce(e,{global:!0});return delete I.id,delete I.onClick,a.createElement(ue.label,{...G(I,f,H,P),ref:n,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":w||void 0,"data-hovered":F||void 0,"data-focused":E||void 0,"data-focus-visible":C||void 0,"data-disabled":y||void 0,"data-readonly":g||void 0,"data-invalid":x||void 0,"data-required":e.isRequired||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(m,k),ref:u})),P.children)}),Sc=a.createContext({}),Ro=a.createContext({});let $c=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Lc=Ct(function(e,n){[e,n]=xe(e,n,Ro);let{hoverProps:r,isHovered:i}=bt({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:s}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),d=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=pe({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:d},defaultClassName:"react-aria-Input"});return a.createElement(ue.input,{...G($c(e),s,r),...c,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":d||void 0})}),Fc=a.createContext(null);function Oc(t){let e=a.useRef({});return a.createElement(Fc.Provider,{value:e},t.children)}const Ac=a.createContext({isSelected:!1}),zc=a.createContext(null),en=a.createContext(null),Vc=a.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=xe(e,n,zc);let{dialogProps:i,titleProps:o}=hc({...e,"aria-labelledby":r},n),l=a.useContext(en);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["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 s=pe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),d=ce(e,{global:!0});return a.createElement(ue.section,{...G(d,s,i),render:e.render,ref:n,slot:e.slot||void 0},a.createElement(mt,{values:[[cs,{slots:{[_n]:{},title:{...o,level:2}}}],[Go,{slots:{[_n]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))}),Bc=a.createContext(null),pr=a.createContext(null),Hc=a.forwardRef(function(e,n){if(a.useContext(pr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),w=Object.keys(e).filter(x=>g.has(x));console.warn(`This modal is already wrapped in a ModalOverlay, props [${w.join(", ")}] should be placed on the ModalOverlay instead.`)}return a.createElement(tl,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,children:c,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v,...y}=e;return a.createElement(el,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v},a.createElement(tl,{...y,modalRef:n},c))});function Uc(t,e){[t,e]=xe(t,e,Bc);let n=a.useContext(en),r=Dc(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=$e(e),l=a.useRef(null),s=Dn(o,i.isOpen),d=Dn(l,i.isOpen),c=s||d||t.isExiting||!1,u=Be();return!i.isOpen&&!c||u?null:a.createElement(Wc,{...t,state:i,isExiting:c,overlayRef:o,modalRef:l})}const el=a.forwardRef(Uc);function Wc({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=gd(e,r,n),l=Tn(e.overlayRef)||e.isEntering||!1,s=pe({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),d=Zs(),c;if(typeof document<"u"){let f=ft(document.body)?document.body:document.scrollingElement||document.documentElement,m=f.getBoundingClientRect().height%1;c=f.scrollHeight-m}let u={...s.style,"--visual-viewport-height":d.height+"px","--page-height":c!==void 0?c+"px":void 0};return a.createElement(vd,{isExiting:e.isExiting,portalContainer:t},a.createElement(ue.div,{...G(ce(e,{global:!0}),o),...s,style:u,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},a.createElement(mt,{values:[[pr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[en,r]]},s.children)))}function tl(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=a.useContext(pr),o=a.useContext(en),l=a.useMemo(()=>et(t.modalRef,n),[t.modalRef,n]),s=$e(l),d=Tn(s),c=pe({...t,defaultClassName:"react-aria-Modal",values:{isEntering:d,isExiting:r,state:o}});return a.createElement(ue.div,{...G(ce(t,{global:!0}),e),...c,ref:s,"data-entering":d||void 0,"data-exiting":r||void 0},i&&a.createElement(hd,{onDismiss:o.close}),c.children)}const jc=a.createContext(null),Gc=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,jc);let o=$e(et(r,e.inputRef!==void 0?e.inputRef:null)),l=fr(e),{labelProps:s,inputProps:d,isSelected:c,isDisabled:u,isReadOnly:f,isPressed:m}=pc({...Lt(e),children:typeof e.children=="function"?!0:e.children},l,o),{isFocused:v,isFocusVisible:y,focusProps:g}=Ye(),w=e.isDisabled||e.isReadOnly,{hoverProps:x,isHovered:E}=bt({...e,isDisabled:w}),C=pe({...e,defaultClassName:"react-aria-Switch",values:{isSelected:c,isPressed:m,isHovered:E,isFocused:v,isFocusVisible:y,isDisabled:u,isReadOnly:f,state:l}}),k=ce(e,{global:!0});return delete k.id,delete k.onClick,a.createElement(ue.label,{...G(k,s,x,C),ref:n,slot:e.slot||void 0,"data-selected":c||void 0,"data-pressed":m||void 0,"data-hovered":E||void 0,"data-focused":v||void 0,"data-focus-visible":y||void 0,"data-disabled":u||void 0,"data-readonly":f||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(d,g),ref:o})),C.children)}),tn=a.createContext(null),Xe=a.createContext(null),qc=a.forwardRef(function(e,n){[e,n]=xe(e,n,tn);let{children:r,orientation:i="horizontal"}=e;return r=a.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),a.createElement(Jd,{content:r},o=>a.createElement(Zc,{props:e,collection:o,tabsRef:n}))});function Zc({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Mc({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:s}=Ye({within:!0}),d=a.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:s}),[r,l,s]),c=pe({...t,defaultClassName:"react-aria-Tabs",values:d}),u=ce(t,{global:!0});return a.createElement(ue.div,{...G(u,c,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},a.createElement(mt,{values:[[tn,t],[Xe,i]]},c.children))}const Yc=a.forwardRef(function(e,n){return a.useContext(Xe)?a.createElement(Xc,{props:e,forwardedRef:n}):a.createElement(lc,e)});function Xc({props:t,forwardedRef:e}){let n=a.useContext(Xe),{CollectionRoot:r}=a.useContext(Bo),{orientation:i="horizontal",keyboardActivation:o="automatic"}=$t(tn),l=$e(e),{tabListProps:s}=bc({...t,orientation:i,keyboardActivation:o},n,l),d=pe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=ce(t,{global:!0});return delete c.id,a.createElement(ue.div,{...G(c,d,s),ref:l,"data-orientation":i||void 0},a.createElement(Oc,null,a.createElement(r,{collection:n.collection,persistedKeys:dc(n.selectionManager.focusedKey)})))}class nl extends Et{}nl.type="item";const Jc=ic(nl,(t,e,n)=>{let r=a.useContext(Xe),i=$e(e),{tabProps:o,isSelected:l,isDisabled:s,isPressed:d}=mc({key:n.key,...t},r,i),{focusProps:c,isFocused:u,isFocusVisible:f}=Ye(),{hoverProps:m,isHovered:v}=bt({isDisabled:s,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=pe({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:s,isFocused:u,isFocusVisible:f,isPressed:d,isHovered:v}}),g=n.props.href?ue.a:ue.div,w=ce(t,{global:!0});return delete w.id,delete w.onClick,a.createElement(g,{...G(w,y,o,c,m),ref:i,"data-selected":l||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":d||void 0,"data-hovered":v||void 0},a.createElement(Ac.Provider,{value:{isSelected:l}},y.children))}),Qc=Ct(function(e,n){const r=a.useContext(Xe);let i=$e(n),o=r.selectedKey===e.id,[l,s]=a.useState(r.selectedKey!=null?o:null);l==null&&r.selectedKey!=null?s(o):!o&&l&&s(!1);let d=Dn(i,o);return!o&&!e.shouldForceMount&&!d?null:a.createElement(Rc,{...e,tabPanelRef:i,isInitiallySelected:l||!1,isExiting:d})});function Rc(t){let e=a.useContext(Xe),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:o,...l}=t,{tabPanelProps:s}=vc(t,e,r),{focusProps:d,isFocused:c,isFocusVisible:u}=Ye(),f=e.selectedKey===t.id,m=Tn(r)&&!i,v=pe({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:u,isInert:qr(!f),isEntering:m,isExiting:o,state:e}}),y=ce(l,{global:!0});delete y.id;let g=f?G(y,s,d,v):G(y,v);return a.createElement(ue.div,{...g,ref:r,"data-focused":c||void 0,"data-focus-visible":u||void 0,inert:qr(!f||t.inert),"data-inert":f?void 0:"true","data-entering":m||void 0,"data-exiting":o||void 0},a.createElement(mt,{values:[[tn,null],[Xe,null]]},a.createElement(Bo.Provider,{value:zo},v.children)))}const eu=a.createContext({}),tu=a.createContext(null),nu=Ct(function(e,n){[e,n]=xe(e,n,tu);let{validationBehavior:r}=$t(Qo)||{};var i,o;let l=(o=(i=e.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",s=a.useRef(null);[e,s]=xe(e,s,us);let[d,c]=la(!e["aria-label"]&&!e["aria-labelledby"]),[u,f]=a.useState("input"),{labelProps:m,inputProps:v,descriptionProps:y,errorMessageProps:g,...w}=zd({...Lt(e),inputElementType:u,label:c,validationBehavior:l},s),x=a.useCallback(k=>{s.current=k,k&&f(k instanceof HTMLTextAreaElement?"textarea":"input")},[s]),E=pe({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:w.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),C=ce(e,{global:!0});return delete C.id,a.createElement(ue.div,{...C,...E,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(mt,{values:[[jo,{...m,ref:d}],[Ro,{...v,ref:x}],[eu,{...v,ref:x}],[Sc,{role:"presentation",isInvalid:w.isInvalid,isDisabled:e.isDisabled||!1}],[qo,{slots:{description:y,errorMessage:g}}],[Ic,w]]},E.children))}),ru=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},iu=(t,e)=>({classGroupId:t,validator:e}),rl=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),nn="-",il=[],ou="arbitrary..",lu=t=>{const e=au(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return su(l);const s=l.split(nn),d=s[0]===""&&s.length>1?1:0;return ol(s,d,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const d=r[l],c=n[l];return d?c?ru(c,d):d:c||il}return n[l]||il}}},ol=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const c=ol(t,e+1,o);if(c)return c}const l=n.validators;if(l===null)return;const s=e===0?t.join(nn):t.slice(e).join(nn),d=l.length;for(let c=0;c<d;c++){const u=l[c];if(u.validator(s))return u.classGroupId}},su=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?ou+r:void 0})(),au=t=>{const{theme:e,classGroups:n}=t;return du(n,e)},du=(t,e)=>{const n=rl();for(const r in t){const i=t[r];mr(i,n,r,e)}return n},mr=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];cu(l,e,n,r)}},cu=(t,e,n,r)=>{if(typeof t=="string"){uu(t,e,n);return}if(typeof t=="function"){fu(t,e,n,r);return}hu(t,e,n,r)},uu=(t,e,n)=>{const r=t===""?e:ll(e,t);r.classGroupId=n},fu=(t,e,n,r)=>{if(pu(t)){mr(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(iu(n,t))},hu=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[s,d]=i[l];mr(d,ll(e,s),n,r)}},ll=(t,e)=>{let n=t;const r=e.split(nn),i=r.length;for(let o=0;o<i;o++){const l=r[o];let s=n.nextPart.get(l);s||(s=rl(),n.nextPart.set(l,s)),n=s}return n},pu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,mu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},vr="!",sl=":",vu=[],al=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gu=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,s=0,d=0,c;const u=i.length;for(let g=0;g<u;g++){const w=i[g];if(l===0&&s===0){if(w===sl){o.push(i.slice(d,g)),d=g+1;continue}if(w==="/"){c=g;continue}}w==="["?l++:w==="]"?l--:w==="("?s++:w===")"&&s--}const f=o.length===0?i:i.slice(d);let m=f,v=!1;f.endsWith(vr)?(m=f.slice(0,-1),v=!0):f.startsWith(vr)&&(m=f.slice(1),v=!0);const y=c&&c>d?c-d:void 0;return al(o,v,m,y)};if(e){const i=e+sl,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):al(vu,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},bu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],s=l[0]==="[",d=e.has(l);s||d?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},yu=t=>({cache:mu(t.cacheSize),parseClassName:gu(t),sortModifiers:bu(t),...lu(t)}),xu=/\s+/,wu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=e,l=[],s=t.trim().split(xu);let d="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:f,modifiers:m,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}=n(u);if(f){d=u+(d.length>0?" "+d:d);continue}let w=!!g,x=r(w?y.substring(0,g):y);if(!x){if(!w){d=u+(d.length>0?" "+d:d);continue}if(x=r(y),!x){d=u+(d.length>0?" "+d:d);continue}w=!1}const E=m.length===0?"":m.length===1?m[0]:o(m).join(":"),C=v?E+vr:E,k=C+x;if(l.indexOf(k)>-1)continue;l.push(k);const N=i(x,w);for(let H=0;H<N.length;++H){const F=N[H];l.push(C+F)}d=u+(d.length>0?" "+d:d)}return d},Eu=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=dl(n))&&(i&&(i+=" "),i+=r);return i},dl=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=dl(t[r]))&&(n&&(n+=" "),n+=e);return n},Cu=(t,...e)=>{let n,r,i,o;const l=d=>{const c=e.reduce((u,f)=>f(u),t());return n=yu(c),r=n.cache.get,i=n.cache.set,o=s,s(d)},s=d=>{const c=r(d);if(c)return c;const u=wu(d,n);return i(d,u),u};return o=l,(...d)=>o(Eu(...d))},Pu=[],se=t=>{const e=n=>n[t]||Pu;return e.isThemeGetter=!0,e},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ku=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Du=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=t=>ku.test(t),W=t=>!!t&&!Number.isNaN(Number(t)),Ae=t=>!!t&&Number.isInteger(Number(t)),gr=t=>t.endsWith("%")&&W(t.slice(0,-1)),_e=t=>Nu.test(t),fl=()=>!0,Ku=t=>Tu.test(t)&&!Du.test(t),br=()=>!1,_u=t=>Mu.test(t),Su=t=>Iu.test(t),$u=t=>!_(t)&&!$(t),Lu=t=>ze(t,bl,br),_=t=>cl.test(t),Je=t=>ze(t,yl,Ku),hl=t=>ze(t,Uu,W),Fu=t=>ze(t,wl,fl),Ou=t=>ze(t,xl,br),pl=t=>ze(t,vl,br),Au=t=>ze(t,gl,Su),rn=t=>ze(t,El,_u),$=t=>ul.test(t),kt=t=>Qe(t,yl),zu=t=>Qe(t,xl),ml=t=>Qe(t,vl),Vu=t=>Qe(t,bl),Bu=t=>Qe(t,gl),on=t=>Qe(t,El,!0),Hu=t=>Qe(t,wl,!0),ze=(t,e,n)=>{const r=cl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Qe=(t,e,n=!1)=>{const r=ul.exec(t);return r?r[1]?e(r[1]):n:!1},vl=t=>t==="position"||t==="percentage",gl=t=>t==="image"||t==="url",bl=t=>t==="length"||t==="size"||t==="bg-size",yl=t=>t==="length",Uu=t=>t==="number",xl=t=>t==="family-name",wl=t=>t==="number"||t==="weight",El=t=>t==="shadow",Wu=Cu(()=>{const t=se("color"),e=se("font"),n=se("text"),r=se("font-weight"),i=se("tracking"),o=se("leading"),l=se("breakpoint"),s=se("container"),d=se("spacing"),c=se("radius"),u=se("shadow"),f=se("inset-shadow"),m=se("text-shadow"),v=se("drop-shadow"),y=se("blur"),g=se("perspective"),w=se("aspect"),x=se("ease"),E=se("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...k(),$,_],H=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[$,_,d],I=()=>[Oe,"full","auto",...P()],z=()=>[Ae,"none","subgrid",$,_],ee=()=>["auto",{span:["full",Ae,$,_]},Ae,$,_],ne=()=>[Ae,"auto",$,_],q=()=>["auto","min","max","fr",$,_],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],Z=()=>[Oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[Oe,"screen","full","dvw","lvw","svw","min","max","fit",...P()],re=()=>[Oe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],h=()=>[t,$,_],M=()=>[...k(),ml,pl,{position:[$,_]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Vu,Lu,{size:[$,_]}],S=()=>[gr,kt,Je],L=()=>["","none","full",c,$,_],X=()=>["",W,kt,Je],ae=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[W,gr,ml,pl],fe=()=>["","none",y,$,_],ke=()=>["none",W,$,_],fn=()=>["none",W,$,_],_r=()=>[W,$,_],hn=()=>[Oe,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[fl],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[$u],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",W],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oe,_,$,w]}],container:["container"],columns:[{columns:[W,_,$,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",$,_]}],basis:[{basis:[Oe,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Oe,"auto","initial","none",_]}],grow:[{grow:["",W,$,_]}],shrink:[{shrink:["",W,$,_]}],order:[{order:[Ae,"first","last","none",$,_]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[s,"screen",...Z()]}],"min-w":[{"min-w":[s,"screen","none",...Z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,kt,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Hu,Fu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,_]}],"font-family":[{font:[zu,Ou,e]}],"font-features":[{"font-features":[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,$,_]}],"line-clamp":[{"line-clamp":[W,"none",$,hl]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",$,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",$,Je]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[W,"auto",$,_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,$,_],radial:["",$,_],conic:[Ae,$,_]},Bu,Au]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,$,_]}],"outline-w":[{outline:["",W,kt,Je]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",u,on,rn]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",f,on,rn]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[W,Je]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",m,on,rn]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[W,$,_]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[$,_]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,_]}],filter:[{filter:["","none",$,_]}],blur:[{blur:fe()}],brightness:[{brightness:[W,$,_]}],contrast:[{contrast:[W,$,_]}],"drop-shadow":[{"drop-shadow":["","none",v,on,rn]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",W,$,_]}],"hue-rotate":[{"hue-rotate":[W,$,_]}],invert:[{invert:["",W,$,_]}],saturate:[{saturate:[W,$,_]}],sepia:[{sepia:["",W,$,_]}],"backdrop-filter":[{"backdrop-filter":["","none",$,_]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[W,$,_]}],"backdrop-contrast":[{"backdrop-contrast":[W,$,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,$,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,$,_]}],"backdrop-invert":[{"backdrop-invert":["",W,$,_]}],"backdrop-opacity":[{"backdrop-opacity":[W,$,_]}],"backdrop-saturate":[{"backdrop-saturate":[W,$,_]}],"backdrop-sepia":[{"backdrop-sepia":["",W,$,_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",$,_]}],ease:[{ease:["linear","initial",x,$,_]}],delay:[{delay:[W,$,_]}],animate:[{animate:["none",E,$,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,$,_]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:fn()}],"scale-x":[{"scale-x":fn()}],"scale-y":[{"scale-y":fn()}],"scale-z":[{"scale-z":fn()}],"scale-3d":["scale-3d"],skew:[{skew:_r()}],"skew-x":[{"skew-x":_r()}],"skew-y":[{"skew-y":_r()}],transform:[{transform:[$,_,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:hn()}],"translate-x":[{"translate-x":hn()}],"translate-y":[{"translate-y":hn()}],"translate-z":[{"translate-z":hn()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,_]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[W,kt,Je,hl]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function A(...t){return Wu(t.filter(Boolean))}const ju=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z"})),Gu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z"})),qu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM20 4h2v16h-2zM2 4h2v16H2zm9 2h2v8h-2zm0 10h2v2h-2z"})),Cl=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z"})),Zu={Info:ju,Warning:Gu,Error:qu,Done:Cl,Check:Cl,Close:t=>p.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:p.jsx("path",{d:"M5 5h2v2H5zM7 7h2v2H7zM9 9h2v2H9zM11 11h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM17 17h2v2h-2zM17 5h2v2h-2zM15 7h2v2h-2zM13 9h2v2h-2zM9 13h2v2H9zM7 15h2v2H7zM5 17h2v2H5z"})}),"Chevron Up":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 8h-2v2h2V8Zm-2 2H9v2h2v-2Zm4 0h-2v2h2v-2Zm-6 2H7v2h2v-2Zm8 0h-2v2h2v-2ZM7 14H5v2h2v-2Zm12 0h-2v2h2v-2Z"})),"Chevron Down":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 16h-2v-2h2v2Zm-2-2H9v-2h2v2Zm4 0h-2v-2h2v2Zm-6-2H7v-2h2v2Zm8 0h-2v-2h2v2ZM7 10H5V8h2v2Zm12 0h-2V8h2v2Z"})),App:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 6h16v2H4zm0 12h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM5 5h2v2H5zm3 0h2v2H8z"})),Cancel:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 11h16v2H4z"})),Fullscreen:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 13h16v-2H4zm7-8h2V3h-2zM9 7h4V5H9zm4 0h2V5h-2zm2 2h2V7h-2zM7 9h8V7H7zm4 10h2v2h-2zm-2-2h4v2H9zm4 0h2v2h-2zm2-2h2v2h-2zm-8 0h8v2H7z"})),Add:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 11h7v2h-7v7h-2v-7H4v-2h7V4h2v7Z"}))},Yu={L:56,S:24},be=({name:t,size:e="L",className:n="",onClick:r,color:i,role:o,"aria-label":l})=>{const s=Zu[t];if(!s)return null;const d=Yu[e];return p.jsx("span",{className:A("icon",o&&"icon--button",n),onClick:r,role:o,"aria-label":l||`${t} icon`,style:i?{color:i}:void 0,children:p.jsx(s,{width:d,height:d,className:"icon__svg"})})};function yr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function xr(t,e){const[n,r]=a.useState(!1),i=a.useRef(!1),o=a.useCallback(()=>{if(!(i.current||!e)){if(yr()){e();return}i.current=!0,r(!0)}},[e]),l=a.useCallback(s=>{s.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:o,handleAnimationEnd:l}}const Xu={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},Ju={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function Qu(t,e){return t||Xu[e||"info"]||"default"}function Ru(t){return t==="full-width"?"full-width":"floating"}const Pl=a.forwardRef(({color:t,size:e="floating",type:n,title:r,children:i,actions:o,onClose:l,onClickHere:s,className:d},c)=>{const u=Qu(t,n),f=Ru(e),{isClosing:m,triggerClose:v,handleAnimationEnd:y}=xr("alert-exit",l),g=[...o||[],...s?[{label:"Click here",onClick:s}]:[]];return p.jsxs("div",{ref:c,className:A("relative w-full flex flex-col gap-4 p-4","font-dos text-dos-text-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-alert",`eidotter-alert--${u}`,f==="floating"&&"max-w-[1216px]",f==="full-width"&&"eidotter-alert--full-width max-w-none",m&&"eidotter-alert--closing",d),onAnimationEnd:y,role:"alert","data-color":u,"data-size":f,children:[p.jsx("div",{className:"eidotter-alert__icon",children:p.jsx(be,{name:Ju[u]||"Info",size:"S","aria-label":`${u} alert`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",l&&"pr-6"),children:[(r||i)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[r&&p.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&p.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),g.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:g.map((w,x)=>p.jsxs(le,{className:"eidotter-alert__action",onPress:w.onClick,children:[w.label,w.icon]},x))})]}),l&&p.jsx(le,{className:"eidotter-alert__close",onPress:v,"aria-label":"Close alert",children:p.jsx(be,{name:"Close",size:"S"})})]})});Pl.displayName="Alert";const kl=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:o})=>{const[l,s]=a.useState(n);a.useEffect(()=>{s(n)},[n]);const d=()=>{const c=!l;s(c),o==null||o(c)};return p.jsxs("div",{className:A("w-full border border-dos-border-default bg-dos-bg-primary text-cga-amber font-dos","eidotter-section",l&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[p.jsxs(le,{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onPress:d,"aria-expanded":l,children:[p.jsx("div",{className:"flex-1 text-base leading-6",children:t}),p.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:p.jsx(be,{name:l?"Chevron Up":"Chevron Down",size:"S"})})]}),p.jsx("div",{className:"eidotter-section__content",inert:l?void 0:!0,children:e})]})},ef=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=a.useState(e),i=(o,l)=>{r(l?o:-1)};return p.jsx("div",{className:A("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((o,l)=>p.jsx(kl,{title:o.title,defaultExpanded:l===e,onToggle:s=>i(l,s),children:o.content},l))})},Nl={xs:"text-dos-text-xs px-2 py-1 min-h-6 gap-1",sm:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",md:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",lg:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2",xl:"text-dos-text-xl px-5 py-3 min-h-11 gap-2",small:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",medium:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",large:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2"},Tl={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},ln=a.forwardRef(({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:o,onPress:l,onClick:s,className:d,fullWidth:c=!1,iconOnly:u=!1,...f},m)=>{const v=r||i;return p.jsxs(le,{ref:m,type:n,isDisabled:v,isPending:i||void 0,onPress:y=>{if(l)l(y);else if(s){const g={type:"press",target:y.target,currentTarget:y.target,preventDefault:()=>{},stopPropagation:()=>{}};s(g)}},className:A("inline-flex items-center justify-center relative","border-2 border-solid","font-dos leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",Nl[e]||Nl.md,Tl[t]||Tl.primary,v&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",c&&"w-full",u&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",d),"data-loading":i||void 0,"data-variant":t,...f,children:[i&&p.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),p.jsx("span",{className:A("inline-flex items-center justify-center",i&&"opacity-70"),children:o})]})});ln.displayName="Button";const Dl={default:"eidotter-card--default",elevated:"eidotter-card--elevated",bordered:"eidotter-card--bordered",glow:"eidotter-card--glow",interactive:"eidotter-card--interactive",minimal:"eidotter-card--minimal",callout:"eidotter-card--callout"},Ml=a.forwardRef(({title:t,children:e,footer:n,variant:r="default",className:i,...o},l)=>p.jsxs("div",{ref:l,className:A("border-2 border-solid border-dos-border-default","bg-dos-bg-primary font-dos text-cga-amber","eidotter-card",Dl[r]||Dl.default,i),...o,children:[t&&p.jsx("div",{className:"eidotter-card__header px-3 py-2 border-b border-dos-text-disabled bg-cga-amber-dim",children:p.jsx("span",{className:"text-dos-text-secondary text-dos-text-md uppercase",children:t})}),p.jsx("div",{className:"p-3",children:e}),n&&p.jsx("div",{className:"eidotter-card__footer px-3 py-2 border-t border-dos-text-disabled bg-dos-bg-secondary",children:n})]}));Ml.displayName="Card";const Il=a.forwardRef(({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:o=!1,size:l="md",name:s,value:d,className:c,"aria-label":u,...f},m)=>p.jsx(_c,{ref:m,isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:o,name:s,value:d,"aria-label":u||i,className:A("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",l==="sm"?"text-dos-text-xs":"text-dos-text-sm","eidotter-checkbox",o&&"opacity-60 cursor-not-allowed",c),"data-size":l,...f,children:({isSelected:v,isIndeterminate:y})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-checkbox__box",v&&"eidotter-checkbox__box--checked",y&&"eidotter-checkbox__box--indeterminate"),children:y?"[-]":v?"[X]":"[ ]"}),i&&p.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}));Il.displayName="Checkbox";const tf=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:o=!1})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useEffect(()=>{n&&d.current&&d.current.focus()},[n]);const c=f=>{f.key==="Enter"&&l.trim()&&!o&&(e(l.trim()),s(""))},u=()=>{!o&&d.current&&d.current.focus()};return p.jsxs("div",{className:`command-prompt ${o?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[p.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),p.jsxs("div",{className:"command-prompt__input-wrapper",children:[p.jsx("input",{ref:d,className:"command-prompt__input",value:l,onChange:f=>s(f.target.value),onKeyDown:c,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:o,"aria-label":"Command input",size:l.length||1}),p.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},sn="█",an="░",wr="▓",nf="▒",Kl={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},_l={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function rf(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),o=r-i,l=(i>=1?wr:"")+(i>=2?nf:"");return{filled:sn.repeat(t),transition:l,empty:an.repeat(o)}}return{filled:sn.repeat(t),transition:"",empty:an.repeat(r)}}const Er=a.forwardRef(({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:o="block",blocks:l=20,showLabel:s=!1,fullWidth:d=!1,glow:c=!1,valueText:u,className:f,"aria-label":m,...v},y)=>{const g=Math.min(80,Math.max(3,Math.floor(l))),w=Math.min(100,Math.max(0,t/e*100)),x=Math.round(w/100*g),E=A("inline-flex items-center gap-2 font-dos","eidotter-progress",Kl[i]||Kl.md,_l[r]||_l.default,c&&"eidotter-progress--glow",d&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",o==="bordered"&&"eidotter-progress--bordered",f),C={"aria-label":m||`Progress: ${n?"loading":`${Math.round(w)}%`}`};n||(C["aria-valuenow"]=t,C["aria-valuemin"]=0,C["aria-valuemax"]=e),u&&(C["aria-valuetext"]=u);const k=o==="bordered",N=A("eidotter-progress__track",k&&"eidotter-progress__track--borderless");if(n){const I=an.repeat(g);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:I}),p.jsxs("span",{className:"eidotter-progress__scanner",children:[wr,sn,wr]})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const H=sn.repeat(g),F=an.repeat(g),{transition:P}=rf(x,g,o);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:F}),p.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(w)},children:H}),P&&p.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(w)},children:P})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(w),"%"]})]})});Er.displayName="Progress";const Sl={default:"eidotter-input--default",error:"eidotter-input--error"},$l=a.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:o,onChange:l,isRequired:s,...d},c)=>{const u=t==="error";return p.jsxs(nu,{isDisabled:i,isInvalid:u,isRequired:s,className:A("eidotter-text-field","flex flex-col gap-1",o),children:[e&&p.jsx(yc,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),p.jsx(Lc,{ref:c,className:A("w-full bg-dos-bg-primary text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",Sl[t]||Sl.default,i&&"eidotter-input--disabled"),onChange:l,...d}),n&&!u&&p.jsx(Zo,{slot:"description",className:"text-cga-brown font-dos text-xs",children:n}),r&&u&&p.jsx(Zo,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});$l.displayName="Input";const of=({size:t="md",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:o=!1,closeable:l=!1,children:s,onMinimize:d,onMaximize:c,onClose:u,onFocus:f,className:m="",autoFocus:v=!1})=>{const g={sm:"small",md:"medium",lg:"large"}[t]??t,[w,x]=a.useState(n),[E,C]=a.useState(!1),k=a.useRef(null);a.useEffect(()=>{v&&k.current&&k.current.focus()},[v]);const N=()=>{x("minimized"),d==null||d()},H=()=>{C(!E),c==null||c()},F=()=>{u==null||u()},P=()=>{x("active"),f==null||f()},I=z=>{z.altKey&&z.key==="F4"&&l&&(z.preventDefault(),F())};return w==="minimized"?p.jsx(le,{className:`terminal terminal--minimized ${m}`.trim(),onPress:P,"aria-label":`Restore ${e} window`,children:p.jsxs("div",{className:"terminal__taskbar-item",children:[p.jsx(be,{name:"App",size:"S"}),p.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):p.jsxs("div",{ref:k,className:`terminal terminal--${g} terminal--${w} ${E?"terminal--maximized":""} ${m}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:P,onKeyDown:I,children:[p.jsxs("div",{className:"terminal__title-bar",children:[p.jsxs("div",{className:"terminal__title",children:[p.jsx(be,{name:"App",size:"S","aria-hidden":"true"}),p.jsx("span",{className:"terminal__title-text",children:e})]}),(i||o||l)&&p.jsxs("div",{className:"terminal__controls",children:[i&&p.jsx(le,{className:"terminal__control terminal__control--minimize",onPress:N,"aria-label":"Minimize window",children:p.jsx(be,{name:"Cancel",size:"S"})}),o&&p.jsx(le,{className:"terminal__control terminal__control--maximize",onPress:H,"aria-label":E?"Restore window":"Maximize window",children:p.jsx(be,{name:E?"Fullscreen":"Add",size:"S"})}),l&&p.jsx(le,{className:"terminal__control terminal__control--close",onPress:F,"aria-label":"Close window",children:p.jsx(be,{name:"Close",size:"S"})})]})]}),p.jsx("div",{className:"terminal__content",role:"main",children:s||p.jsx("div",{className:"terminal__default-content",children:p.jsxs("div",{className:"terminal__prompt",children:[p.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),p.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&p.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},Ll={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},lf={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Fl=a.forwardRef(({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onSelectionChange:o,onTabChange:l,className:s,...d},c)=>{var w,x,E;const u=a.useRef(null),f=a.useRef(r??i??((w=t[0])==null?void 0:w.id)??""),[m,v]=a.useState(r??i??((x=t[0])==null?void 0:x.id)??""),y=o??l,g=a.useCallback(C=>{const k=String(C),N=r??f.current;f.current=k,v(k),y==null||y(k,N)},[r,y]);return a.useLayoutEffect(()=>{const C=u.current;if(!C||e!=="underline")return;const k=()=>{const H=C.querySelector('[aria-selected="true"]');H&&(C.style.setProperty("--indicator-left",`${H.offsetLeft}px`),C.style.setProperty("--indicator-width",`${H.offsetWidth}px`))};k();const N=new ResizeObserver(k);return N.observe(C),()=>N.disconnect()},[r,m,e]),p.jsxs(qc,{ref:c,selectedKey:r,defaultSelectedKey:i??((E=t[0])==null?void 0:E.id),onSelectionChange:g,className:A("eidotter-tabs",lf[e],Ll[n]||Ll.md,s),children:[p.jsxs("div",{ref:u,className:"relative",children:[p.jsx(Yc,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":d["aria-label"],children:t.map(C=>p.jsx(Jc,{id:C.id,isDisabled:C.disabled,className:({isSelected:k,isDisabled:N})=>A("eidotter-tabs__tab",k&&"eidotter-tabs__tab--active",N&&"eidotter-tabs__tab--disabled"),children:C.label},C.id))}),e==="underline"&&p.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(C=>p.jsx(Qc,{id:C.id,className:"hidden"},C.id))]})});Fl.displayName="Tabs";const Ol={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Al={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},st=a.forwardRef(({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...o},l)=>p.jsxs("span",{ref:l,className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",Ol[e]||Ol.md,Al[t]||Al.default,i),"data-variant":t,...o,children:[n&&p.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),p.jsx("span",{className:"eidotter-badge__content",children:r})]}));st.displayName="Badge";const zl=a.forwardRef(({checked:t,defaultChecked:e=!1,onChange:n,onCheckedChange:r,disabled:i=!1,size:o="md",type:l="default",label:s,name:d,value:c,className:u,...f},m)=>p.jsx(Gc,{ref:m,isSelected:t,defaultSelected:e,onChange:n??r,isDisabled:i,name:d,value:c,className:A("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",i&&"opacity-50 cursor-not-allowed",u),"data-size":o,"data-type":l,...f,children:({isSelected:v})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-switch__track",v&&"eidotter-switch__track--checked",l==="slim"&&"eidotter-switch__track--slim",o==="sm"&&"eidotter-switch__track--sm"),children:p.jsx("span",{className:"eidotter-switch__thumb"})}),s&&p.jsx("span",{className:"text-[var(--color-cga-amber)]",children:s})]})}));zl.displayName="Switch";const dn="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",Vl=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:o})=>{const l=(s,d)=>{const c=p.jsxs(p.Fragment,{children:[n&&d&&p.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),p.jsx("span",{children:s.label})]});return s.onClick?p.jsx(le,{className:A(dn,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onPress:s.onClick,children:c}):s.href?i?p.jsx(i,{href:s.href,className:dn,children:c}):p.jsx("a",{href:s.href,className:dn,children:c}):p.jsx("span",{className:dn,children:c})};return p.jsx("nav",{"aria-label":"Breadcrumb",className:A("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",o),children:p.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((s,d)=>{const c=d===t.length-1,u=d<t.length-1;return p.jsxs("li",{className:"flex items-center gap-2",children:[l(s,c),u&&p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${s.href??s.label}-${d}`)}),t.length>0&&p.jsx("li",{className:"flex items-center gap-2",children:p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),p.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:p.jsx("span",{className:"text-cga-amber",children:e})})]})})},sf=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:o=1,className:l,onPowerStateChange:s,onPowerOn:d,onPowerOff:c})=>{const u=a.useRef(i),[f,m]=a.useState(i?"on":"off");a.useEffect(()=>{const E=u.current;if(u.current=i,E!==i){const C=i?"powering-on":"powering-off";m(C),s==null||s(C)}},[i,s]);const v=()=>{f==="powering-on"?(m("on"),s==null||s("on"),d==null||d()):f==="powering-off"&&(m("off"),s==null||s("off"),c==null||c())},y=E=>{E.animationName!=="retro-power-on"&&E.animationName!=="retro-power-off"||v()},g=E=>{E.propertyName==="opacity"&&(f!=="powering-on"&&f!=="powering-off"||v())},w={"--retro-intensity":o},x=f!=="off";return p.jsx("div",{className:A("fixed inset-0 pointer-events-none z-[9999]","eidotter-retro-effects",f==="powering-off"&&"eidotter-retro-effects--powering-off",f==="powering-on"&&"eidotter-retro-effects--powering-on",f==="off"&&"eidotter-retro-effects--off",l),style:w,"aria-hidden":"true",onAnimationEnd:y,onTransitionEnd:g,children:x&&p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{className:"eidotter-retro-effects__scanlines"}),e&&p.jsx("div",{className:"eidotter-retro-effects__glow"}),n&&p.jsx("div",{className:"eidotter-retro-effects__flicker"}),r&&p.jsx("div",{className:"eidotter-retro-effects__bloom"})]})})},af={sm:"small",md:"medium",lg:"large",small:"small",medium:"medium",large:"large"},df={circle:"eidotter-timeline-node--circle",square:"eidotter-timeline-node--square",diamond:"eidotter-timeline-node--diamond"},cf={default:"eidotter-timeline-node--default",primary:"eidotter-timeline-node--primary",secondary:"eidotter-timeline-node--secondary",accent:"eidotter-timeline-node--accent"},uf={left:"eidotter-timeline-node--label-left",right:"eidotter-timeline-node--label-right",top:"eidotter-timeline-node--label-top",bottom:"eidotter-timeline-node--label-bottom"},Ve=a.forwardRef(({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:o="md",className:l,onClick:s,...d},c)=>{const u=af[o]??"medium",f=()=>{s&&s()},m=v=>{s&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())};return p.jsxs("div",{ref:c,className:A("inline-flex items-center gap-2 font-dos","eidotter-timeline-node",df[t],cf[e],`eidotter-timeline-node--${u}`,uf[i],n&&"eidotter-timeline-node--active",s&&"eidotter-timeline-node--interactive",l),onClick:f,onKeyDown:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-pressed":s?n:void 0,...d,children:[r&&i==="left"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--left",children:r}),r&&i==="top"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--top",children:r}),p.jsx("span",{className:"eidotter-timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--right",children:r}),r&&i==="bottom"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--bottom",children:r})]})});Ve.displayName="TimelineNode";const Nt=["year","month","day","hour"];function ff({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,o]=a.useState(e),[l,s]=a.useState([]),d=a.useRef(r);a.useEffect(()=>{d.current&&!r&&s([]),d.current=r},[r]);const c=t??i,u=Nt.indexOf(c),f=u<Nt.length-1,m=u>0,v=l.length>0?l[l.length-1].periodStart:null,y=a.useRef(r),g=a.useRef(f),w=a.useRef(u),x=a.useRef(l),E=a.useRef(n);a.useEffect(()=>{y.current=r,g.current=f,w.current=u,x.current=l,E.current=n});const C=a.useCallback(F=>{var P;y.current&&o(F),(P=E.current)==null||P.call(E,F)},[]),k=a.useCallback((F,P)=>{if(!y.current||!g.current)return;const I=Nt[w.current+1];I!==void 0&&(s(z=>[...z,{periodStart:F,label:P}]),C(I))},[C]),N=a.useCallback(()=>{if(!y.current||x.current.length===0)return;const F=Nt[w.current-1];F!==void 0&&(s(P=>P.slice(0,-1)),C(F))},[C]),H=a.useCallback(()=>{y.current&&(s([]),C("year"))},[C]);return{zoomLevel:c,canZoomIn:f,canZoomOut:m,breadcrumbs:l,currentPeriod:v,isDrillDownEnabled:r,drillDown:k,drillUp:N,reset:H}}function hf({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=a.useState(e),o=t!==void 0,l=t!==void 0?t:r,s=a.useRef(l),d=a.useRef(o),c=a.useRef(n);a.useEffect(()=>{s.current=l,d.current=o,c.current=n});const u=a.useCallback(y=>{var g;d.current||i(y),(g=c.current)==null||g.call(c,y)},[]),f=a.useCallback(y=>{u(y)},[u]),m=a.useCallback(()=>{u(null)},[u]),v=a.useCallback(y=>{var g;d.current?(g=c.current)==null||g.call(c,s.current===y?null:y):i(w=>{var E;const x=w===y?null:y;return(E=c.current)==null||E.call(c,x),x})},[]);return{selectedEntryId:l,select:f,deselect:m,toggle:v}}const pf=["January","February","March","April","May","June","July","August","September","October","November","December"],Cr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cn(t){return new Date(t).getUTCFullYear()}function Pr(t){return new Date(t).getUTCMonth()}function Bl(t){return new Date(t).getUTCDate()}function mf(t){return new Date(t).getUTCHours()}function vf(t){return String(t)}function gf(t,e){return`${pf[e]} ${t}`}function bf(t,e,n){return`${Cr[e]} ${n}`}function yf(t,e,n,r){const i=r>=12?"pm":"am",o=r===0?12:r>12?r-12:r;return`${Cr[e]} ${n}, ${o}${i}`}function xf(t){const e=new Date(t),n=Cr[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),o=e.getUTCHours(),l=e.getUTCMinutes(),s=o>=12?"pm":"am",d=o===0?12:o>12?o-12:o,c=l>0?`:${String(l).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${d}${c}${s}`}function wf(t){return new Date(Date.UTC(t,0,1)).toISOString()}function Ef(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function Cf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function Pf(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function un(t,e,n,r,i){const o=new Map,l=[];for(const s of t){const d=e(s),c=o.get(d);c?c.push(s):(o.set(d,[s]),l.push(d))}l.sort((s,d)=>i==="asc"?s.localeCompare(d):d.localeCompare(s));for(const[,s]of o)s.sort((d,c)=>{const u=d.date.localeCompare(c.date);return i==="asc"?u:-u});return l.map(s=>({label:n(s),periodStart:r(s),entries:o.get(s)??[]}))}function kf(t){return String(cn(t.date))}function Nf(t){const e=cn(t.date),n=Pr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function Tf(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function Df(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date),i=mf(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Hl(t){return{year:parseInt(t)}}function Ul(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function Wl(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function jl(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const Mf={year:4,month:7,day:10};function If(t,e,n){if(e===null||n==="hour")return t;const r=Mf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(o=>o.periodStart.slice(0,r)===i)}function Kf(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return un(r,kf,i=>{const{year:o}=Hl(i);return vf(o)},i=>{const{year:o}=Hl(i);return wf(o)},n);case"month":return un(r,Nf,i=>{const{year:o,month:l}=Ul(i);return gf(o,l)},i=>{const{year:o,month:l}=Ul(i);return Ef(o,l)},n);case"day":return un(r,Tf,i=>{const{year:o,month:l,day:s}=Wl(i);return bf(o,l,s)},i=>{const{year:o,month:l,day:s}=Wl(i);return Cf(o,l,s)},n);case"hour":return un(r,Df,i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return yf(o,l,s,d)},i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return Pf(o,l,s,d)},n)}}const _f=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:o,breadcrumbs:l=[],onBreadcrumbClick:s})=>{const d=l.length>0;return p.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[p.jsx(ln,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),d?p.jsx(Vl,{trail:[{label:"ALL",onClick:o},...l.slice(0,-1).map((c,u)=>({label:c.label,onClick:()=>s==null?void 0:s(u)}))],currentLabel:l[l.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):p.jsx(le,{className:"timeline-zoom-controls__level",onPress:o,"aria-label":`Current zoom: ${t}. Click to reset.`,children:p.jsx(st,{variant:"accent",size:"medium",children:t.toUpperCase()})}),p.jsx(ln,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},kr=({children:t})=>p.jsxs("div",{className:"timeline-axis",children:[p.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),p.jsx("div",{className:"timeline-axis__content",children:t})]}),Gl=a.memo(({buckets:t,onBucketClick:e})=>p.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>p.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?p.jsxs(le,{className:"timeline-view__bucket-button",onPress:()=>e(n),children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Gl.displayName="YearView";const Tt=a.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:o})=>{const l=typeof t.content=="string",s=t.content!=null;return p.jsxs("div",{className:A("eidotter-timeline-card",e&&"eidotter-timeline-card--selected",n&&"eidotter-timeline-card--expanded"),children:[p.jsxs(le,{className:"eidotter-timeline-card__trigger",onPress:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[p.jsxs("div",{className:"eidotter-timeline-card__header",children:[t.type&&p.jsx("span",{className:"eidotter-timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&p.jsx("span",{className:"eidotter-timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),p.jsx("p",{className:"eidotter-timeline-card__title",children:t.title}),!n&&l&&(()=>{const d=String(t.content);return p.jsxs("p",{className:"eidotter-timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),o]}),s&&p.jsx("div",{className:"eidotter-timeline-card__body",children:p.jsx("div",{className:"eidotter-timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&p.jsx("div",{className:"eidotter-timeline-card__footer",children:i})]})});Tt.displayName="TimelineEntryCard";const ql=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>p.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),p.jsx("div",{className:"timeline-view__content",children:i.entries.map(o=>p.jsx(Tt,{entry:o,isSelected:e===o.id,isExpanded:e===o.id,onSelect:n},o.id))})]},i.periodStart))}));ql.displayName="MonthView";const Zl={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Nr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:o=!1,disabled:l=!1,onClick:s,onClose:d,className:c,"aria-label":u,...f})=>{const m=!!s&&!l,{isClosing:v,triggerClose:y,handleAnimationEnd:g}=xr("tag-exit",d),w=C=>{l||((C.key==="Enter"||C.key===" ")&&s&&(C.preventDefault(),s(C)),(C.key==="Delete"||C.key==="Backspace")&&o&&d&&(C.preventDefault(),y()))},x=()=>{l||y()},E=r?{"--tag-color":"var("+r+")"}:void 0;return p.jsxs("span",{className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Zl[n]||Zl.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",l&&"opacity-50 cursor-not-allowed",v&&"eidotter-tag--closing",m&&"cursor-pointer",c),style:E,onClick:m?C=>!l&&(s==null?void 0:s(C)):void 0,onKeyDown:w,onAnimationEnd:g,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":l||void 0,"data-variant":e,...m?{role:"button",tabIndex:0}:{},...f,children:[p.jsx("span",{className:"eidotter-tag__content",children:t}),o&&p.jsx(le,{className:"eidotter-tag__close","aria-label":"Remove "+(typeof t=="string"?t:"tag"),excludeFromTabOrder:!0,onPress:x,isDisabled:l,children:"[x]"})]})},Yl={tight:"gap-1",normal:"gap-2",loose:"gap-3"},Tr=({children:t,gap:e="normal",wrap:n=!0,className:r,"aria-label":i,...o})=>p.jsx("div",{className:A("flex",n?"flex-wrap":"flex-nowrap",Yl[e]||Yl.normal,r),role:"group","aria-label":i,...o,children:t}),Xl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsx(Tt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}):void 0},i.id))})]},r.periodStart))}));Xl.displayName="DayView";const Jl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsxs(Tt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:p.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}),i.type&&p.jsx(st,{variant:"default",size:"small",children:i.type})]}),children:[p.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:xf(i.date)}),p.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));Jl.displayName="HourView";const Sf=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return p.jsx(Gl,{buckets:e,onBucketClick:i});case"month":return p.jsx(ql,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return p.jsx(Xl,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return p.jsx(Jl,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},$f=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s,sortOrder:d="desc",scrollToZoom:c=!0,keyboardShortcuts:u=!0,...f})=>{var M;const m=e==="static",v=a.useRef(null),y=a.useRef(null),[g,w]=a.useState(""),{zoomLevel:x,canZoomIn:E,canZoomOut:C,breadcrumbs:k,currentPeriod:N,isDrillDownEnabled:H,drillDown:F,drillUp:P,reset:I}=ff({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:z,toggle:ee,deselect:ne}=hf({selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s}),q=a.useMemo(()=>Kf(t,x,d),[t,x,d]),T=k.length>0?["year","month","day","hour"][k.length-1]:null,V=a.useMemo(()=>N&&T?If(q,N,T):q,[q,N,T]);a.useEffect(()=>{if(m||!c)return;const b=v.current;if(!b)return;let D=null;const S=L=>{!L.ctrlKey&&!L.metaKey||(L.preventDefault(),D===null&&(D=requestAnimationFrame(()=>{L.deltaY>0&&P(),D=null})))};return b.addEventListener("wheel",S,{passive:!1}),()=>{b.removeEventListener("wheel",S),D!==null&&cancelAnimationFrame(D)}},[m,c,H,E,P]),a.useEffect(()=>{if(m||!u)return;const b=D=>{var L;if(!((L=v.current)!=null&&L.contains(document.activeElement))&&document.activeElement!==v.current)return;const S=D.ctrlKey||D.metaKey;S&&D.key==="-"?(D.preventDefault(),P()):S&&D.key==="0"?(D.preventDefault(),I(),w("Showing all years")):D.key==="Escape"&&(D.preventDefault(),ne())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[m,u,P,I,ne]);const j=a.useCallback(b=>{E&&(F(b.periodStart,b.label),w(`Showing ${x==="year"?"months":x==="month"?"days":"hours"} in ${b.label}`))},[E,F,x]),Z=a.useRef(k.length);a.useEffect(()=>{var b;if(k.length!==Z.current){Z.current=k.length;const D=(b=y.current)==null?void 0:b.querySelector('.eidotter-timeline-card__trigger, .timeline-view__bucket-button, .eidotter-timeline-node[role="button"]');D&&requestAnimationFrame(()=>D.focus())}},[k.length]);const Q=a.useMemo(()=>m?[...t].sort((b,D)=>{const S=b.date.localeCompare(D.date);return d==="desc"?-S:S}):t,[m,t,d]),re=a.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),h=b=>{try{return re.format(new Date(b))}catch{return b}};return p.jsxs("div",{ref:v,...f,className:A("font-dos text-cga-amber bg-dos-bg-primary p-4 min-h-[200px]","eidotter-timeline-container",m&&"eidotter-timeline-container--static",f.className),role:"region","aria-label":f["aria-label"]??"Timeline",tabIndex:m?void 0:0,children:[p.jsx("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:g}),!m&&p.jsx(_f,{zoomLevel:x,canZoomIn:E,canZoomOut:C,onZoomIn:()=>{},onZoomOut:P,onReset:I,breadcrumbs:H?k:[],onBreadcrumbClick:b=>{const D=k.length-1-b;for(let S=0;S<D;S++)P()}}),p.jsx("div",{ref:y,children:t.length===0?p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsx("p",{children:"C:\\TIMELINE> No entries found."}),p.jsx("p",{children:"_"})]}):m?p.jsx(kr,{children:p.jsx("div",{className:"eidotter-timeline-container__static",role:"list","aria-label":"Timeline",children:Q.map(b=>p.jsxs("div",{className:"eidotter-timeline-container__static-entry",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:h(b.date),labelPosition:"right"})}),p.jsx(Tt,{entry:b,isSelected:!1,isExpanded:!0})]},b.id))})}):V.length===0&&N?p.jsx(kr,{children:p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((M=k[k.length-1])==null?void 0:M.label)??"this period","."]}),p.jsx("p",{children:"_"})]})}):p.jsx(kr,{children:p.jsx(Sf,{zoomLevel:x,buckets:V,selectedEntryId:z,onEntrySelect:ee,onBucketClick:j})})})]})},Ql=a.forwardRef(({isOpen:t,onOpenChange:e,onClose:n,title:r,children:i,footer:o,className:l},s)=>{const d=a.useRef(t),c=a.useRef(!1);a.useEffect(()=>{t!==d.current&&(d.current=t,c.current||(e==null||e(t),t||n==null||n()),c.current=!1)},[t,e,n]);const u=f=>{c.current=!0,e==null||e(f),f||n==null||n()};return p.jsx(el,{isOpen:t,onOpenChange:u,isDismissable:!0,className:({isEntering:f,isExiting:m})=>A("eidotter-modal-overlay",f&&"eidotter-modal-overlay--entering",m&&"eidotter-modal-overlay--exiting"),children:p.jsx(Hc,{className:({isEntering:f,isExiting:m})=>A("eidotter-modal",f&&"eidotter-modal--entering",m&&"eidotter-modal--exiting"),children:p.jsxs(Vc,{ref:s,"aria-label":r,className:A("eidotter-modal__container outline-none",l),children:[p.jsxs("header",{className:"eidotter-modal__header",children:[p.jsx("h2",{className:"eidotter-modal__title",children:r}),p.jsx(le,{className:"eidotter-modal__close",onPress:()=>u(!1),"aria-label":"Close modal",children:p.jsx(be,{name:"Close",size:"S"})})]}),p.jsx("div",{className:"eidotter-modal__body",children:i}),o&&p.jsx("footer",{className:"eidotter-modal__footer",children:o})]})})})});Ql.displayName="Modal";const Lf="░▒▓█│┤┐└┴┬├─┼",Ff=4;function Dr(t,e){const{speed:n=40,characters:r=Lf,enabled:i=!0,delay:o=0}=e??{},[l,s]=a.useState(()=>{if(!i||yr())return t;let f="";for(let m=0;m<t.length;m++)t[m]===" "?f+=" ":f+=r[Math.floor(Math.random()*r.length)];return f}),[d,c]=a.useState(!1),u=a.useRef(0);return a.useEffect(()=>{if(!i||yr()){s(t),c(!1);return}let f=0,m=0,v=0,y=o;c(!0);const g=w=>{v||(v=w);const x=w-v;if(y>0){y-=x,v=w,u.current=requestAnimationFrame(g);return}if(x>=n){if(v=w,m++,m>=Ff&&(f++,m=0),f>=t.length){s(t),c(!1);return}let E="";for(let C=0;C<t.length;C++)C<f?E+=t[C]:t[C]===" "?E+=" ":E+=r[Math.floor(Math.random()*r.length)];s(E)}u.current=requestAnimationFrame(g)};return u.current=requestAnimationFrame(g),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,o]),{text:l,isScrambling:d}}const Rl={sm:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},md:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},lg:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"},small:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},medium:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},large:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"}},Of={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Af={up:"▲",down:"▼",neutral:"►"},zf={up:"increasing",down:"decreasing",neutral:"unchanged"},es=a.forwardRef(({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:o=!1,className:l,...s},d)=>{const{text:c}=Dr(String(e),{speed:30,enabled:o}),u=o?c:String(e),f=Rl[i]||Rl.md;return p.jsxs("div",{ref:d,className:A("flex flex-col font-dos","eidotter-stat",f.root,l),...s,children:[p.jsx("span",{className:A("text-cga-amber uppercase tracking-wider leading-tight",f.label),children:t}),p.jsx("span",{className:A("text-dos-text-accent font-bold leading-none tabular-nums",f.value),children:u}),n&&p.jsxs("span",{className:A("inline-flex items-center gap-1 leading-none",Of[n],f.trend),"aria-label":`Trend: ${zf[n]}${r?`, ${r}`:""}`,children:[p.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Af[n]}),r&&p.jsx("span",{className:"tabular-nums",children:r})]})]})});es.displayName="Stat";const ts={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Vf=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:o="All",size:l="md",onChange:s,className:d,...c})=>{const[u,f]=a.useState(n),m=a.useRef(null),v=e!==void 0,y=v?e:u,g=t.filter(P=>!P.disabled).map(P=>P.id),w=y.length===0,x=a.useCallback(P=>{v||f(P),s==null||s(P)},[v,s]),E=a.useCallback(P=>{if(r==="single"){const I=y.includes(P)?[]:[P];x(I)}else{const I=y.includes(P)?y.filter(z=>z!==P):[...y,P];x(I)}},[r,y,x]),C=a.useCallback(()=>{x([])},[x]),k=a.useCallback(()=>m.current?Array.from(m.current.querySelectorAll("button:not([disabled])")):[],[]),N=a.useCallback(P=>{const I=k(),z=I.indexOf(P.target);if(z===-1)return;let ee=null;switch(P.key){case"ArrowLeft":case"ArrowUp":P.preventDefault(),ee=z>0?z-1:I.length-1;break;case"ArrowRight":case"ArrowDown":P.preventDefault(),ee=z<I.length-1?z+1:0;break;case"Home":P.preventDefault(),ee=0;break;case"End":P.preventDefault(),ee=I.length-1;break}ee!==null&&I[ee].focus()},[k]),F=i&&w?"__all__":y.length>0?y[0]:i?"__all__":g[0]||null;return p.jsxs("div",{ref:m,className:A("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",ts[l]||ts.md,d),role:"toolbar",onKeyDown:N,...c,children:[i&&p.jsx(le,{className:A("eidotter-filter-bar__item","eidotter-filter-bar__item--all",w&&"eidotter-filter-bar__item--active"),"aria-pressed":w,excludeFromTabOrder:F!=="__all__",onPress:C,children:p.jsx("span",{className:"eidotter-filter-bar__label",children:o})}),t.map(P=>{const I=y.includes(P.id),z=I&&P.color?{"--filter-bar-item-color":`var(${P.color})`}:void 0;return p.jsxs(le,{className:A("eidotter-filter-bar__item",I&&"eidotter-filter-bar__item--active",P.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":I,excludeFromTabOrder:F!==P.id,isDisabled:P.disabled,onPress:()=>E(P.id),style:z,children:[p.jsx("span",{className:"eidotter-filter-bar__label",children:P.label}),P.count!==void 0&&p.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${P.count} items`,children:P.count})]},P.id)})]})},Mr=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Bf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:o=[],className:l,...s})=>{const[d,c]=a.useState(n),[u,f]=a.useState(new Set),m=a.useRef(n),v=a.useId(),y=a.useRef(null),g=r!==void 0,w=g?r:d;w&&(m.current=!0);const x=()=>{const C=!w;g||c(C),i==null||i(C)},E=C=>{var k;C.key==="Escape"&&w&&(C.stopPropagation(),x(),(k=y.current)==null||k.focus())};return p.jsxs("span",{className:A("eidotter-inline-expand",w&&"eidotter-inline-expand--expanded",l),onKeyDown:E,...s,children:[p.jsxs(le,{ref:y,className:"eidotter-inline-expand__trigger","aria-expanded":w,"aria-controls":v,onPress:x,children:[t,p.jsx("span",{className:"eidotter-inline-expand__indicator","aria-hidden":"true",children:w?"[-]":"[+]"})]}),p.jsxs("span",{id:v,className:"eidotter-inline-expand__content",role:"region",inert:!w,children:[p.jsx("span",{className:"eidotter-inline-expand__inner",children:e}),o.length>0&&p.jsx("span",{className:"eidotter-inline-expand__sources",role:"list",children:o.map(C=>p.jsx("span",{className:"eidotter-inline-expand__source-item",role:"listitem",children:p.jsxs("a",{href:Mr(C.url)?C.url:void 0,className:"eidotter-inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${C.title} (opens external website)`,children:[m.current&&C.favicon&&Mr(C.favicon)&&!u.has(C.url)?p.jsx("img",{className:"eidotter-inline-expand__source-favicon",src:C.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>f(k=>new Set(k).add(C.url))}):p.jsx("span",{className:"eidotter-inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),p.jsx("span",{className:"eidotter-inline-expand__source-title",children:C.title})]})},C.url))})]})]})},Hf={horizontal:"h-px w-full",vertical:"w-px h-full"},Uf=({orientation:t="horizontal",className:e})=>p.jsx("div",{role:"separator","aria-orientation":t,className:A("shrink-0 bg-dos-border-default","eidotter-separator",Hf[t],e)}),ns=a.forwardRef(({children:t,speed:e,characters:n,delay:r,className:i,...o},l)=>{const{text:s,isScrambling:d}=Dr(t,{speed:e,characters:n,delay:r});return p.jsx("span",{ref:l,className:A("eidotter-text-scramble",d&&"eidotter-text-scramble--scrambling",i),...o,children:s})});ns.displayName="TextScramble";const rs={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},Ir=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const o=r||"a";return p.jsx("nav",{className:A("eidotter-nav eidotter-nav--desktop",rs[n],i),"aria-label":"Main navigation",children:p.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(l=>p.jsx("li",{className:"eidotter-nav__desktop-item",children:p.jsx(o,{href:l.href,className:A("eidotter-nav__link",e===l.href&&"eidotter-nav__link--active"),children:l.label})},l.href))})})},Kr=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[o,l]=a.useState(!1),s=r||"a",d=a.useCallback(()=>l(u=>!u),[]),c=a.useCallback(()=>l(!1),[]);return p.jsxs("div",{className:A("eidotter-nav eidotter-nav--mobile",rs[n],i),children:[p.jsx("button",{onClick:d,className:"eidotter-nav__hamburger","aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:p.jsx("span",{className:"eidotter-nav__hamburger-icon","aria-hidden":"true",children:o?"✕":"☰"})}),o&&p.jsx("div",{className:"eidotter-nav__overlay",onClick:c,"aria-hidden":"true"}),p.jsxs("nav",{className:A("eidotter-nav__panel",o&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[p.jsx("div",{className:"eidotter-nav__panel-header",children:p.jsx("button",{onClick:c,className:"eidotter-nav__close","aria-label":"Close menu",children:"✕"})}),p.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>p.jsx("li",{className:"eidotter-nav__item",children:p.jsx(s,{href:u.href,className:A("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:c,children:u.label})},u.href))})]})]})},Wf=t=>p.jsxs(p.Fragment,{children:[p.jsx(Kr,{...t}),p.jsx(Ir,{...t})]}),jf={user:"eidotter-chat-message--user",assistant:"eidotter-chat-message--assistant",system:"eidotter-chat-message--system"},is=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:o,...l})=>{const s=t==="user"?r:t==="assistant"?i:"";return p.jsxs("div",{className:A("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",jf[t],n&&"eidotter-chat-message--streaming",o),...l,children:[s&&p.jsx("span",{className:"shrink-0 select-none","aria-hidden":"true",children:s}),p.jsx("span",{className:"min-w-0",children:e}),n&&p.jsx("span",{className:"eidotter-chat-message__cursor","aria-hidden":"true",children:"█"})]})},os=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i,...o})=>{const l=a.useRef(null);a.useEffect(()=>{var d,c;(c=(d=l.current)==null?void 0:d.scrollIntoView)==null||c.call(d,{behavior:"smooth"})},[t.length,e]);const s=A("flex-1 overflow-y-auto font-dos p-2 min-h-0","eidotter-chat-history",i);return t.length===0?p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsx("div",{className:"flex items-center justify-center h-full min-h-16",children:p.jsx("span",{className:"text-cga-brown font-dos text-dos-text-md",children:"Awaiting input..."})})}):p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsxs("div",{className:"flex flex-col",children:[t.map((d,c)=>{const u=e&&d.role==="assistant"&&c===t.length-1;return p.jsx(is,{role:d.role,content:d.content,isStreaming:u,userPrefix:n,assistantPrefix:r},d.id)}),p.jsx("div",{ref:l})]})})},ls=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i,...o})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useLayoutEffect(()=>{const f=d.current;f&&(f.style.height="auto",f.style.height=`${f.scrollHeight}px`)},[l]);const c=f=>{if(f.key==="Enter"&&!f.shiftKey&&!r){f.preventDefault();const m=l.trim();m&&(t(m),s(""))}},u=()=>{!r&&d.current&&d.current.focus()};return p.jsxs("div",{className:A("flex items-start font-dos text-dos-text-md p-2 cursor-text","bg-dos-bg-primary text-cga-amber","eidotter-chat-input",r&&"eidotter-chat-input--disabled",i),onClick:u,...o,children:[p.jsx("span",{className:"text-cga-amber mr-2 mt-0.5 whitespace-nowrap select-none","aria-hidden":"true",children:e}),p.jsxs("div",{className:"flex items-start flex-1 min-w-0",children:[p.jsx("textarea",{ref:d,className:"eidotter-chat-input__textarea",value:l,onChange:f=>s(f.target.value),onKeyDown:c,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),p.jsx("span",{className:"eidotter-chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},Gf=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:o,placeholder:l,disabled:s=!1,className:d,...c})=>p.jsxs("div",{className:A("flex flex-col h-full min-h-0 bg-dos-bg-primary",d),...c,children:[p.jsx(os,{className:"flex-1 min-h-0",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:o}),p.jsx(ls,{className:"shrink-0",onSend:e,prompt:r,placeholder:l,disabled:s})]}),ss=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],qf=({copyright:t,links:e,children:n,className:r,...i})=>{const o=e??ss;return p.jsxs("footer",{className:A("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[p.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&p.jsx("div",{className:"mb-3",children:n}),o.length>0&&p.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:o.map((l,s)=>p.jsxs(a.Fragment,{children:[s>0&&p.jsx("span",{className:"text-cga-brown select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),p.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:l.href,...l.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:l.label})]},l.href))}),t&&p.jsxs("p",{className:"text-cga-brown m-0",children:["© ",t]})]})},Zf={retro:"eidotter-header--retro",modern:"eidotter-header--modern"},as=a.forwardRef(({brandName:t,brandHref:e="/",items:n,activeHref:r,variant:i="retro",sticky:o=!0,linkComponent:l,children:s,className:d,...c},u)=>{const f=l??"a";return p.jsxs("header",{ref:u,className:A("flex items-center justify-between px-4 py-3 font-dos","eidotter-header",Zf[i],o&&"sticky top-0 z-50",d),...c,children:[p.jsx(f,{href:e,className:A("no-underline text-base font-bold tracking-wide","eidotter-header__branding"),children:s||t}),p.jsx(Ir,{items:n,activeHref:r,variant:i,linkComponent:l}),p.jsx(Kr,{items:n,activeHref:r,variant:i,linkComponent:l})]})});as.displayName="Header";const Yf={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},Xf=({type:t="primary",title:e,children:n,actions:r,onClose:i,avatar:o,image:l,progress:s,progressLabel:d,duration:c,showIcon:u=!0,className:f})=>{const{isClosing:m,triggerClose:v,handleAnimationEnd:y}=xr("notification-exit",i);a.useEffect(()=>{if(c==null||!i)return;const x=setTimeout(()=>v(),c);return()=>clearTimeout(x)},[c,i,v]);const g=u&&!o,w=s!=null;return p.jsxs("div",{className:A("w-full max-w-[400px]","font-dos text-dos-text-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-notification",`eidotter-notification--${t}`,m&&"eidotter-notification--closing",f),onAnimationEnd:y,role:t==="error"?"alert":"status","data-type":t,children:[l&&p.jsx("div",{className:"eidotter-notification__image",children:l}),p.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[o&&p.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:o}),g&&p.jsx("div",{className:"eidotter-notification__icon",children:p.jsx(be,{name:Yf[t]||"Info",size:"S","aria-label":`${t} notification`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",i&&!g&&!o&&"pr-8"),children:[(e||n)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("div",{className:"eidotter-notification__title font-dos leading-[140%]",children:e}),n&&p.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),w&&p.jsxs("div",{className:"flex flex-col gap-1",children:[p.jsx(Er,{value:s,max:100,size:"sm",fullWidth:!0,showLabel:!1}),d&&p.jsx("div",{className:"eidotter-notification__text font-dos text-dos-text-xs",children:d})]}),r&&r.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:r.map((x,E)=>p.jsxs(le,{className:"eidotter-notification__action",onPress:x.onClick,children:[x.label,x.icon]},E))})]}),i&&p.jsx(le,{className:"eidotter-notification__close",onPress:v,"aria-label":"Close notification",children:p.jsx(be,{name:"Close",size:"S"})})]})]})},Jf={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},at={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Header:{origin:"eidotter",consumers:[],originNote:"Sticky site header composing branding link + Nav — retro/modern variants"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"}};function Qf(t){return at[t]}function Rf(t){return Object.entries(at).filter(([,e])=>e.origin===t).map(([e])=>e)}function eh(t){return Object.entries(at).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function th(t,e){const n=at[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function nh(t){const e=at[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const rh="0.19.0";O.AccordionFill=ef,O.Alert=Pl,O.Badge=st,O.Breadcrumb=Vl,O.Button=ln,O.Card=Ml,O.ChatContainer=Gf,O.ChatHistory=os,O.ChatInput=ls,O.ChatMessage=is,O.Checkbox=Il,O.CommandPrompt=tf,O.DesktopNav=Ir,O.FilterBar=Vf,O.Footer=qf,O.Header=as,O.Icon=be,O.InlineExpand=Bf,O.Input=$l,O.MobileNav=Kr,O.Modal=Ql,O.Nav=Wf,O.Notification=Xf,O.Progress=Er,O.RetroEffects=sf,O.Section=kl,O.Separator=Uf,O.Stat=es,O.Switch=zl,O.Tabs=Fl,O.Tag=Nr,O.TagGroup=Tr,O.Terminal=of,O.TextScramble=ns,O.TimelineContainer=$f,O.TimelineNode=Ve,O.ZOOM_LEVELS=Nt,O.componentRegistry=at,O.defaultLegalLinks=ss,O.getComponentMeta=Qf,O.getComponentsByConsumer=eh,O.getComponentsByOrigin=Rf,O.getVariantConsumerMap=nh,O.getVariantsUsedBy=th,O.isSafeUrl=Mr,O.projects=Jf,O.useTextScramble=Dr,O.version=rh,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|