PageSourceSearch

https://iconited.com/assets/Dialog-Cbo2mfOd.js

js iconited.com collected 2026-10-10 02:34:07 UTC 116,131 bytes, 15 lines download raw bytes

1import{J as Ai,K as xt,t as De,q as z,L as lt,l as Zt,e as q,M as Ti,N as O,O as Fi,b as dt,P as Z,Q as fe,R as Yt,S as Ii,D as se,w as nt,j as Ni,r as ae,p as ft,T as Mi,u as ht,d as re,A as Ie,g as Xt,x as Ct,U as Ri,I as Li,V as Et,W as zi,F as Oi,X as Vi,f as Pe,Y as ji,i as we,y as pe,k as Hi,H as it,C as Ui,G as Wi}from"./cx-JWMrrZN5.js";import{r as d,$ as m,g as _i}from"./chunk-OIYGIGL5-gwPc8tBz.js";import{h as ze,n as qi,m as Qt,P as Gi,j as Ji,Q as Zi,R as Yi,d as el,v as tl,G as Xi,J as Qi,V as eu,w as ll,q as tu,u as St,o as lu,W as nu}from"./tooltip-BIt4K4VP.js";import{R as iu,a as nl}from"./index-BnGtwJ93.js";import{j as uu,g as Ke,f as ru,m as ou,h as su,n as au,$ as bt,i as cu,a as du,b as fu}from"./bundle-mjs-BWt8Cp2A.js";import{b as hu}from"./checkbox-COISbaUw.js";class bu{get currentNode(){return this._currentNode}set currentNode(e){if(!xt(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const l=[];let n=e,i=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=n,o=this._doc.createTreeWalker(r,this.whatToShow,{acceptNode:this._acceptNode});l.push(o),o.currentNode=i,this._currentSetFor.add(o),n=i=r.host}else n=n.parentNode;const u=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});l.push(u),u.currentNode=i,this._currentSetFor.add(u),this._walkerStack=l}get doc(){return this._doc}firstChild(){let e=this.currentNode,l=this.nextNode();return xt(e,l)?(l&&(this.currentNode=l),l):(this.currentNode=e,null)}lastChild(){let l=this._walkerStack[0].lastChild();return l&&(this.currentNode=l),l}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var l;let i;if(typeof this.filter=="function"?i=this.filter(e):!((l=this.filter)===null||l===void 0)&&l.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let u=this.nextNode();return u&&(this.currentNode=u),u}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const l=e.previousNode();if(l){if(l.shadowRoot){var n;let u;if(typeof this.filter=="function"?u=this.filter(l):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(u=this.filter.acceptNode(l)),u===NodeFilter.FILTER_ACCEPT)return l&&(this.currentNode=l),l;let r=this.lastChild();return r&&(this.currentNode=r),r}return l&&(this.currentNode=l),l}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,l,n,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=r=>{if(r.nodeType===Node.ELEMENT_NODE){const s=r.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(a),NodeFilter.FILTER_ACCEPT}else{var o;if(typeof this.filter=="function")return this.filter(r);if(!((o=this.filter)===null||o===void 0)&&o.acceptNode)return this.filter.acceptNode(r);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=l,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=l,this._walkerStack.unshift(e.createTreeWalker(l,n,this._acceptNode));const u=l.shadowRoot;if(u){const r=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(r)}}}function vu(t,e,l,n){return Ai()?new bu(t,e,l,n):t.createTreeWalker(e,l,n)}function pu(t,e){const l=d.useRef(!0),n=d.useRef(null);let i=De(t);d.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]),d.useEffect(()=>{let u=n.current;l.current?l.current=!1:(!u||e.some((r,o)=>!Object.is(r,u[o])))&&i(),n.current=e},e)}function Dt(t,e){const l=d.useRef(!0),n=d.useRef(null);z(()=>(l.current=!0,()=>{l.current=!1}),[]),z(()=>{l.current?l.current=!1:(!n.current||e.some((i,u)=>!Object.is(i,n[u])))&&t(),n.current=e},e)}function ve(t,e){if(!t)return!1;let l=window.getComputedStyle(t),n=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function vt(t,e){let l=t;for(ve(l,e)&&(l=l.parentElement);l&&!ve(l,e);)l=l.parentElement;return l||document.scrollingElement||document.documentElement}function $u(t,e){const l=[];for(;t&&t!==document.documentElement;)ve(t,e)&&l.push(t),t=t.parentElement;return l}function he(t){return uu()?t.metaKey:t.ctrlKey}const mu=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function We(t){return t instanceof HTMLInputElement&&!mu.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let yu=0;const _e=new Map;function il(t){let[e,l]=d.useState();return z(()=>{if(!t)return;let n=_e.get(t);
1if(n)l(n.element.id);else{let i=`react-aria-description-${yu++}`;l(i);let u=document.createElement("div");u.id=i,u.style.display="none",u.textContent=t,document.body.appendChild(u),n={refCount:0,element:u},_e.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),_e.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Te(t,e,l,n){let i=De(l),u=l==null;d.useEffect(()=>{if(u||!t.current)return;let r=t.current;return r.addEventListener(e,i,n),()=>{r.removeEventListener(e,i,n)}},[t,e,n,u])}function ul(t,e){let l=Kt(t,e,"left"),n=Kt(t,e,"top"),i=e.offsetWidth,u=e.offsetHeight,r=t.scrollLeft,o=t.scrollTop,{borderTopWidth:s,borderLeftWidth:a,scrollPaddingTop:f,scrollPaddingRight:c,scrollPaddingBottom:h,scrollPaddingLeft:b}=getComputedStyle(t),v=r+parseInt(a,10),$=o+parseInt(s,10),y=v+t.clientWidth,x=$+t.clientHeight,S=parseInt(f,10)||0,C=parseInt(h,10)||0,K=parseInt(c,10)||0,V=parseInt(b,10)||0;l<=r+V?r=l-parseInt(a,10)-V:l+i>y-K&&(r+=l+i-y+K),n<=$+S?o=n-parseInt(s,10)-S:n+u>x-C&&(o+=n+u-x+C),t.scrollLeft=r,t.scrollTop=o}function Kt(t,e,l){const n=l==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[n];break}e=e.offsetParent}return i}function kt(t,e){if(t&&document.contains(t)){let r=document.scrollingElement||document.documentElement,o=window.getComputedStyle(r).overflow==="hidden";if(o){let s=$u(t);o||s.push(r);for(let a of s)ul(a,t)}else{var l;let{left:s,top:a}=t.getBoundingClientRect();t==null||(l=t.scrollIntoView)===null||l===void 0||l.call(t,{block:"nearest"});let{left:f,top:c}=t.getBoundingClientRect();if(Math.abs(s-f)>1||Math.abs(a-c)>1){var n,i,u;e==null||(i=e.containingElement)===null||i===void 0||(n=i.scrollIntoView)===null||n===void 0||n.call(i,{block:"center",inline:"center"}),(u=t.scrollIntoView)===null||u===void 0||u.call(t,{block:"nearest"})}}}}function so(t,e){let{collection:l,onLoadMore:n,scrollOffset:i=1}=t,u=d.useRef(null),r=De(o=>{for(let s of o)s.isIntersecting&&n&&n()});z(()=>(e.current&&(u.current=new IntersectionObserver(r,{root:vt(e?.current),rootMargin:`0px ${100*i}% ${100*i}% ${100*i}%`}),u.current.observe(e.current)),()=>{u.current&&u.current.disconnect()}),[l,e,i])}function ao(t){const e=d.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const gu="react-aria-clear-focus",xu="react-aria-focus",Pt=new WeakMap;function Cu(t){let e=Pt.get(t);return e||(e=new Qt(t),Pt.set(t,e)),e}function Eu(t,e){return e&&Qt.getGlobalDictionaryForPackage(e)||Cu(t)}function Be(t,e){let{locale:l}=ze(),n=Eu(t,e);return d.useMemo(()=>new qi(l,n),[l,n])}let qe=new Map;function Su(t){let{locale:e}=ze(),l=e+(t?Object.entries(t).sort((i,u)=>i[0]<u[0]?-1:1).join():"");if(qe.has(l))return qe.get(l);let n=new Intl.Collator(e,t);return qe.set(l,n),n}const rl=m.forwardRef(({children:t,...e},l)=>{let n=d.useRef(!1),i=d.useContext(lt);l=Zt(l||i?.ref);let u=q(i||{},{...e,ref:l,register(){n.current=!0,i&&i.register()}});return Ti(i,l),d.useEffect(()=>{n.current||(n.current=!0)},[]),m.createElement(lt.Provider,{value:u},t)});function Du({children:t}){let e=d.useMemo(()=>({register:()=>{}}),[]);return m.createElement(lt.Provider,{value:e},t)}function Ku(t){let{ref:e,onInteractOutside:l,isDisabled:n,onInteractOutsideStart:i}=t,u=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),r=De(s=>{l&&wt(s,e)&&(i&&i(s),u.current.isPointerDown=!0)}),o=De(s=>{l&&l(s)});d.useEffect(()=>{let s=u.current;if(n)return;const a=e.current,f=O(a);if(typeof PointerEvent<"u"){let c=h=>{s.isPointerDown&&wt(h,e)&&o(h),s.isPointerDown=!1};return f.addEventListener("pointerdown",r,!0),f.addEventListener("click",c,!0),()=>{f.removeEventListener("pointerdown",r,!0),f.removeEventListener("click",c,!0)}}},[e,n])}function wt(t,e){if(t.button>0)return!1;if(t.target){const l=t.target.ownerDocument;if(!l||!l.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ku=500;function ol(t){let{isDisabled:e,onLongPressStart:l,onLongPressEnd:n,onLongPress:i,threshold:u=ku,accessibilityDescription:r}=t;const o=d.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:a}=Fi(),{pressProps:f}=dt({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(l&&l({...h,type:"longpressstart"}),o.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),O(h.target).activeElement!==h.target&&Ke(h.target),i&&i({...h,type:"longpress"}),o.current=void 0},u),h.pointerType==="touch")){let b=v=>{v.preventDefault()};s(h.target,"contextmenu",b,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{a(h.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(h){o.current&&clearTimeout(o.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),c=il(i&&!e?r:void 0);return{longPressProps:q(f,c)}}const Bt=m.createContext(null),ut="react-aria-focus-scope-restore";let w=null;function sl(t){let{children:e,contain:l,restoreFocus:n,autoFocus:i}=t,u=d.useRef(null),r=d.useRef(null),o=d.useRef([]),{parentNode:s}=d.useContext(Bt)||{},a=d.useMemo(()=>new ot({scopeRef:o}),[o]);z(()=>{let h=s||R.root;if(R.getTreeNode(h.scopeRef)&&w&&!Me(w,h.scopeRef)){let b=R.getTreeNode(w);b&&(h=b)}h.addChild(a),R.addNode(a)},[a,s]),z(()=>{let h=R.getTreeNode(o);h&&(h.contain=!!l)},[l]),z(()=>{var h;let b=(h=u.current)===null||h===void 0?void 0:h.nextSibling,v=[],$=y=>y.stopPropagation();for(;b&&b!==r.current;)v.push(b),b.addEventListener(ut,$),b=b.nextSibling;return o.current=v,()=>{for(let y of v)y.removeEventListener(ut,$)}},[e]),Fu(o,n,l),Bu(o,l),Iu(o,n,l),Tu(o,i),d.useEffect(()=>{const h=Z(O(o.current?o.current[0]:void 0));let b=null;if(Y(h,o.current)){for(let v of R.traverse())v.scopeRef&&Y(h,v.scopeRef.current)&&(b=v);b===R.getTreeNode(o)&&(w=b.scopeRef)}},[o]),z(()=>()=>{var h,b,v;let $=(v=(b=R.getTreeNode(o))===null||b===void 0||(h=b.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&v!==void 0?v:null;(o===w||Me(o,w))&&(!$||R.getTreeNode($))&&(w=$),R.removeTreeNode(o)},[o]);let f=d.useMemo(()=>Pu(o),[]),c=d.useMemo(()=>({focusManager:f,parentNode:a}),[a,f]);return m.createElement(Bt.Provider,{value:c},m.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:u}),e,m.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:r}))}function Pu(t){return{focusNext(e={}){let l=t.current,{from:n,tabbable:i,wrap:u,accept:r}=e;var o;let s=n||Z(O((o=l[0])!==null&&o!==void 0?o:void 0)),a=l[0].previousElementSibling,f=oe(l),c=_(f,{tabbable:i,accept:r},l);c.currentNode=Y(s,l)?s:a;let h=c.nextNode();return!h&&u&&(c.currentNode=a,h=c.nextNode()),h&&W(h,!0),h},focusPrevious(e={}){let l=t.current,{from:n,tabbable:i,wrap:u,accept:r}=e;var o;let s=n||Z(O((o=l[0])!==null&&o!==void 0?o:void 0)),a=l[l.length-1].nextElementSibling,f=oe(l),c=_(f,{tabbable:i,accept:r},l);c.currentNode=Y(s,l)?s:a;let h=c.previousNode();return!h&&u&&(c.currentNode=a,h=c.previousNode()),h&&W(h,!0),h},focusFirst(e={}){let l=t.current,{tabbable:n,accept:i}=e,u=oe(l),r=_(u,{tabbable:n,accept:i},l);r.currentNode=l[0].previousElementSibling;let o=r.nextNode();return o&&W(o,!0),o},focusLast(e={}){let l=t.current,{tabbable:n,accept:i}=e,u=oe(l),r=_(u,{tabbable:n,accept:i},l);r.currentNode=l[l.length-1].nextElementSibling;let o=r.previousNode();return o&&W(o,!0),o}}}function oe(t){return t[0].parentElement}function Ee(t){let e=R.getTreeNode(w);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function wu(t){if(t.checked)return!0;let e=[];
1if(!t.form)e=[...O(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)].filter(u=>!u.form);else{var l,n;let u=(n=t.form)===null||n===void 0||(l=n.elements)===null||l===void 0?void 0:l.namedItem(t.name);e=[...u??[]]}return e?!e.some(u=>u.checked):!1}function Bu(t,e){let l=d.useRef(void 0),n=d.useRef(void 0);z(()=>{let i=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const u=O(i?i[0]:void 0);let r=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ee(t)||a.isComposing)return;let f=Z(u),c=t.current;if(!c||!Y(f,c))return;let h=oe(c),b=_(h,{tabbable:!0},c);if(!f)return;b.currentNode=f;let v=a.shiftKey?b.previousNode():b.nextNode();v||(b.currentNode=a.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,v=a.shiftKey?b.previousNode():b.nextNode()),a.preventDefault(),v&&W(v,!0)},o=a=>{(!w||Me(w,t))&&Y(fe(a),t.current)?(w=t,l.current=fe(a)):Ee(t)&&!ue(fe(a),t)?l.current?l.current.focus():w&&w.current&&rt(w.current):Ee(t)&&(l.current=fe(a))},s=a=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let f=nt(),c=(f==="virtual"||f===null)&&ru()&&ou(),h=Z(u);if(u.hasFocus()&&!c&&h&&Ee(t)&&!ue(h,t)){w=t;let v=fe(a);if(v&&v.isConnected){var b;l.current=v,(b=l.current)===null||b===void 0||b.focus()}else w.current&&rt(w.current)}})};return u.addEventListener("keydown",r,!1),u.addEventListener("focusin",o,!1),i?.forEach(a=>a.addEventListener("focusin",o,!1)),i?.forEach(a=>a.addEventListener("focusout",s,!1)),()=>{u.removeEventListener("keydown",r,!1),u.removeEventListener("focusin",o,!1),i?.forEach(a=>a.removeEventListener("focusin",o,!1)),i?.forEach(a=>a.removeEventListener("focusout",s,!1))}},[t,e]),z(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function al(t){return ue(t)}function Y(t,e){return!t||!e?!1:e.some(l=>l.contains(t))}function ue(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:l}of R.traverse(R.getTreeNode(e)))if(l&&Y(t,l.current))return!0;return!1}function Au(t){return ue(t,w)}function Me(t,e){var l;let n=(l=R.getTreeNode(e))===null||l===void 0?void 0:l.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function W(t,e=!1){if(t!=null&&!e)try{se(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function cl(t,e=!0){let l=t[0].previousElementSibling,n=oe(t),i=_(n,{tabbable:e},t);i.currentNode=l;let u=i.nextNode();return e&&!u&&(n=oe(t),i=_(n,{tabbable:!1},t),i.currentNode=l,u=i.nextNode()),u}function rt(t,e=!0){W(cl(t,e))}function Tu(t,e){const l=m.useRef(e);d.useEffect(()=>{if(l.current){w=t;const n=O(t.current?t.current[0]:void 0);!Y(Z(n),w.current)&&t.current&&rt(t.current)}l.current=!1},[t])}function Fu(t,e,l){z(()=>{if(e||l)return;let n=t.current;const i=O(n?n[0]:void 0);let u=r=>{let o=fe(r);Y(o,t.current)?w=t:al(o)||(w=null)};return i.addEventListener("focusin",u,!1),n?.forEach(r=>r.addEventListener("focusin",u,!1)),()=>{i.removeEventListener("focusin",u,!1),n?.forEach(r=>r.removeEventListener("focusin",u,!1))}},[t,e,l])}function At(t){let e=R.getTreeNode(w);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return e?.scopeRef===t}function Iu(t,e,l){const n=d.useRef(typeof document<"u"?Z(O(t.current?t.current[0]:void 0)):null);z(()=>{let i=t.current;const u=O(i?i[0]:void 0);if(!e||l)return;let r=()=>{(!w||Me(w,t))&&Y(Z(u),t.current)&&(w=t)};return u.addEventListener("focusin",r,!1),i?.forEach(o=>o.addEventListener("focusin",r,!1)),()=>{u.removeEventListener("focusin",r,!1),i?.forEach(o=>o.removeEventListener("focusin",r,!1))}},[t,l]),z(()=>{const i=O(t.current?t.current[0]:void 0);if(!e)return;let u=r=>{if(r.key!=="Tab"||r.altKey||r.ctrlKey||r.metaKey||!Ee(t)||r.isComposing)return;let o=i.activeElement;if(!ue(o,t)||!At(t))return;let s=R.getTreeNode(t);if(!s)return;let a=s.nodeToRestore,f=_(i.body,{tabbable:!0});f.currentNode=o;let c=r.shiftKey?f.previousNode():f.nextNode();if((!a||!a.isConnected||a===i.body)&&(a=void 0,s.nodeToRestore=void 0),(!c||!ue(c,t))&&a){f.currentNode=a;do c=r.shiftKey?f.previousNode():f.nextNode();while(ue(c,t));r.preventDefault(),r.stopPropagation(),c?W(c,!0):al(a)?W(a,!0):o.blur()}};return l||i.addEventListener("keydown",u,!0),()=>{l||i.removeEventListener("keydown",u,!0)}},[t,e,l]),z(()=>{const i=O(t.current?t.current[0]:void 0);if(!e)return;let u=R.getTreeNode(t);if(u){var r;return u.nodeToRestore=(r=n.current)!==null&&r!==void 0?r:void 0,()=>{let o=R.getTreeNode(t);if(!o)return;let s=o.nodeToRestore,a=Z(i);if(e&&s&&(a&&ue(a,t)||a===i.body&&At(t))){let f=R.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=f.getTreeNode(t);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Tt(c.nodeToRestore);return}c=c.parent}for(c=f.getTreeNode(t);c;){if(c.scopeRef&&c.scopeRef.current&&R.getTreeNode(c.scopeRef)){let h=cl(c.scopeRef.current,!0);Tt(h);return}c=c.parent}}})}}}},[t,e])}function Tt(t){t.dispatchEvent(new CustomEvent(ut,{bubbles:!0,cancelable:!0}))&&W(t)}function _(t,e,l){let n=e?.tabbable?Yt:Ii,i=t?.nodeType===Node.ELEMENT_NODE?t:null,u=O(i),r=vu(u,t||u,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(o)||e?.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!wu(o)||r.currentNode.tagName==="INPUT"&&r.currentNode.type==="radio"&&r.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:n(o)&&(!l||Y(o,l))&&(!e?.accept||e.accept(o))?No
1deFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e?.from&&(r.currentNode=e.from),r}function co(t,e={}){return{focusNext(l={}){let n=t.current;if(!n)return null;let{from:i,tabbable:u=e.tabbable,wrap:r=e.wrap,accept:o=e.accept}=l,s=i||Z(O(n)),a=_(n,{tabbable:u,accept:o});n.contains(s)&&(a.currentNode=s);let f=a.nextNode();return!f&&r&&(a.currentNode=n,f=a.nextNode()),f&&W(f,!0),f},focusPrevious(l=e){let n=t.current;if(!n)return null;let{from:i,tabbable:u=e.tabbable,wrap:r=e.wrap,accept:o=e.accept}=l,s=i||Z(O(n)),a=_(n,{tabbable:u,accept:o});if(n.contains(s))a.currentNode=s;else{let c=Ge(a);return c&&W(c,!0),c??null}let f=a.previousNode();if(!f&&r){a.currentNode=n;let c=Ge(a);if(!c)return null;f=c}return f&&W(f,!0),f??null},focusFirst(l=e){let n=t.current;if(!n)return null;let{tabbable:i=e.tabbable,accept:u=e.accept}=l,o=_(n,{tabbable:i,accept:u}).nextNode();return o&&W(o,!0),o},focusLast(l=e){let n=t.current;if(!n)return null;let{tabbable:i=e.tabbable,accept:u=e.accept}=l,r=_(n,{tabbable:i,accept:u}),o=Ge(r);return o&&W(o,!0),o??null}}}function Ge(t){let e,l;do l=t.lastChild(),l&&(e=l);while(l);return e}class pt{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,l,n){let i=this.fastMap.get(l??null);if(!i)return;let u=new ot({scopeRef:e});i.addChild(u),u.parent=i,this.fastMap.set(e,u),n&&(u.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let l=this.fastMap.get(e);if(!l)return;let n=l.parent;for(let u of this.traverse())u!==l&&l.nodeToRestore&&u.nodeToRestore&&l.scopeRef&&l.scopeRef.current&&Y(u.nodeToRestore,l.scopeRef.current)&&(u.nodeToRestore=l.nodeToRestore);let i=l.children;n&&(n.removeChild(l),i.size>0&&i.forEach(u=>n&&n.addChild(u))),this.fastMap.delete(l.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let l of e.children)yield*this.traverse(l)}clone(){var e;let l=new pt;var n;for(let i of this.traverse())l.addTreeNode(i.scopeRef,(n=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,i.nodeToRestore);return l}constructor(){this.fastMap=new Map,this.root=new ot({scopeRef:null}),this.fastMap.set(null,this.root)}}class ot{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 R=new pt;function fo(t,e){let l=e?.isDisabled,[n,i]=d.useState(!1);return z(()=>{if(t?.current&&!l){let u=()=>{if(t.current){let o=_(t.current,{tabbable:!0});i(!!o.nextNode())}};u();let r=new MutationObserver(u);return r.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{r.disconnect()}}}),l?!1:n}function dl(t){let e=Mu(O(t));e!==t&&(e&&Nu(e,t),t&&fl(t,e))}function Nu(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function fl(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Mu(t){let e=Z(t),l=e?.getAttribute("aria-activedescendant");return l&&t.getElementById(l)||e}const te=[];function Ru(t,e){let{onClose:l,shouldCloseOnBlur:n,isOpen:i,isDismissable:u=!1,isKeyboardDismissDisabled:r=!1,shouldCloseOnInteractOutside:o}=t;d.useEffect(()=>{if(i&&!te.includes(e))return te.push(e),()=>{let v=te.indexOf(e);v>=0&&te.splice(v,1)}},[i,e]);let s=()=>{te[te.length-1]===e&&l&&l()},a=v=>{(!o||o(v.target))&&te[te.length-1]===e&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!o||o(v.target))&&(te[te.length-1]===e&&(v.stopPropagation(),v.preventDefault()),s())},c=v=>{v.key==="Escape"&&!r&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),s())};Ku({ref:e,onInteractOutside:u&&i?f:void 0,onInteractOutsideStart:a});let{focusWithinProps:h}=Ni({isDisabled:!n,onBlurWithin:v=>{!v.relatedTarget||Au(v.relatedTarget)||(!o||o(v.relatedTarget))&&l?.()}}),b=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:c,...h},underlayProps:{onPointerDown:b}}}function hl(t,e,l){let{type:n}=t,{isOpen:i}=e;d.useEffect(()=>{l&&l.current&&Gi.set(l.current,e.close)});let u;n==="menu"?u=!0:n==="listbox"&&(u="listbox");let r=ae();return{triggerProps:{"aria-haspopup":u,"aria-expanded":i,"aria-controls":i?r:void 0,onPress:e.toggle},overlayProps:{id:r}}}
1const Se=typeof document<"u"&&window.visualViewport;let Fe=0,Je;function Lu(t={}){let{isDisabled:e}=t;z(()=>{if(!e)return Fe++,Fe===1&&(su()?Je=Ou():Je=zu()),()=>{Fe--,Fe===0&&Je()}},[e])}function zu(){let t=window.innerWidth-document.documentElement.clientWidth;return ft(t>0&&("scrollbarGutter"in document.documentElement.style?Ze(document.documentElement,"scrollbarGutter","stable"):Ze(document.documentElement,"paddingRight",`${t}px`)),Ze(document.documentElement,"overflow","hidden"))}function Ou(){let t,e=!1,l=s=>{let a=s.target;t=ve(a)?a:vt(a,!0),e=!1;let f=a.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(a,!0)&&(e=!0),"selectionStart"in a&&"selectionEnd"in a&&a.selectionStart<a.selectionEnd&&a.ownerDocument.activeElement===a&&(e=!0)},n=document.createElement("style");n.textContent=`
2@layer {
3  * {
4    overscroll-behavior: contain;
5  }
6}`.trim(),document.head.prepend(n);let i=s=>{if(!(s.touches.length===2||e)){if(!t||t===document.documentElement||t===document.body){s.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&s.preventDefault()}},u=s=>{let a=s.target,f=s.relatedTarget;if(f&&We(f))f.focus({preventScroll:!0}),Ft(f,We(a));else if(!f){var c;let h=(c=a.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");h?.focus({preventScroll:!0})}},r=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let a=document.activeElement!=null&&We(document.activeElement);r.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&Ft(this,a)};let o=ft(Ye(document,"touchstart",l,{passive:!1,capture:!0}),Ye(document,"touchmove",i,{passive:!1,capture:!0}),Ye(document,"blur",u,!0));return()=>{o(),n.remove(),HTMLElement.prototype.focus=r}}function Ze(t,e,l){let n=t.style[e];return t.style[e]=l,()=>{t.style[e]=n}}function Ye(t,e,l,n){return t.addEventListener(e,l,n),()=>{t.removeEventListener(e,l,n)}}function Ft(t,e){e||!Se?It(t):Se.addEventListener("resize",()=>It(t),{once:!0})}function It(t){let e=document.scrollingElement||document.documentElement,l=t;for(;l&&l!==e;){let n=vt(l);if(n!==document.documentElement&&n!==document.body&&n!==l){let i=n.getBoundingClientRect(),u=l.getBoundingClientRect();if(u.top<i.top||u.bottom>i.top+l.clientHeight){let r=i.bottom;Se&&(r=Math.min(r,Se.offsetTop+Se.height));let o=u.top-i.top-((r-i.top)/2-u.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+o)),behavior:"smooth"})}}l=n.parentElement}}var bl={};bl={dismiss:"تجاهل"};var vl={};vl={dismiss:"Отхвърляне"};var pl={};pl={dismiss:"Odstranit"};var $l={};$l={dismiss:"Luk"};var ml={};ml={dismiss:"Schließen"};var yl={};yl={dismiss:"Απόρριψη"};var gl={};gl={dismiss:"Dismiss"};var xl={};xl={dismiss:"Descartar"};var Cl={};Cl={dismiss:"Lõpeta"};var El={};El={dismiss:"Hylkää"};var Sl={};Sl={dismiss:"Rejeter"};var Dl={};Dl={dismiss:"התעלם"};var Kl={};Kl={dismiss:"Odbaci"};var kl={};kl={dismiss:"Elutasítás"};var Pl={};Pl={dismiss:"Ignora"};var wl={};wl={dismiss:"閉じる"};var Bl={};Bl={dismiss:"무시"};var Al={};Al={dismiss:"Atmesti"};var Tl={};Tl={dismiss:"Nerādīt"};var Fl={};Fl={dismiss:"Lukk"};var Il={};Il={dismiss:"Negeren"};var Nl={};Nl={dismiss:"Zignoruj"};var Ml={};Ml={dismiss:"Descartar"};var Rl={};Rl={dismiss:"Dispensar"};var Ll={};Ll={dismiss:"Revocare"};var zl={};zl={dismiss:"Пропустить"};var Ol={};Ol={dismiss:"Zrušiť"};var Vl={};Vl={dismiss:"Opusti"};var jl={};jl={dismiss:"Odbaci"};var Hl={};Hl={dismiss:"Avvisa"};var Ul={};Ul={dismiss:"Kapat"};var Wl={};Wl={dismiss:"Скасувати"};var _l={};_l={dismiss:"取消"};var ql={};ql={dismiss:"關閉"};var Gl={};Gl={"ar-AE":bl,"bg-BG":vl,"cs-CZ":pl,"da-DK":$l,"de-DE":ml,"el-GR":yl,"en-US":gl,"es-ES":xl,"et-EE":Cl,"fi-FI":El,"fr-FR":Sl,"he-IL":Dl,"hr-HR":Kl,"hu-HU":kl,"it-IT":Pl,"ja-JP":wl,"ko-KR":Bl,"lt-LT":Al,"lv-LV":Tl,"nb-NO":Fl,"nl-NL":Il,"pl-PL":Nl,"pt-BR":Ml,"pt-PT":Rl,"ro-RO":Ll,"ru-RU":zl,"sk-SK":Ol,"sl-SI":Vl,"sr-SP":jl,"sv-SE":Hl,"tr-TR":Ul,"uk-UA":Wl,"zh-CN":_l,"zh-TW":ql};function Vu(t){return t&&t.__esModule?t.default:t}function Nt(t){let{onDismiss:e,...l}=t,n=Be(Vu(Gl),"@react-aria/overlays"),i=Ji(l,n.format("dismiss")),u=()=>{e&&e()};return m.createElement(hu,null,m.createElement("button",{...i,tabIndex:-1,onClick:u,style:{width:1,height:1}}))}const ju=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Ce=new WeakMap,U=[];function Hu(t,e){let l=Mi(t?.[0]),n=e instanceof l.Element?{root:e}:e;var i;let u=(i=n?.root)!==null&&i!==void 0?i:document.body,r=n?.shouldUseInert&&ju,o=new Set(t),s=new Set,a=$=>r&&$ instanceof l.HTMLElement?$.inert:$.getAttribute("aria-hidden")==="true",f=($,y)=>{r&&$ instanceof l.HTMLElement?$.inert=y:y?$.setAttribute("aria-hidden","true"):($.removeAttribute("aria-hidden"),$ instanceof l.HTMLElement&&($.inert=!1))},c=$=>{for(let C of $.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(C);let y=C=>{if(s.has(C)||o.has(C)||C.parentElement&&s.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let K of o)if(C.contains(K))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:y}),S=y($);if(S===NodeFilter.FILTER_ACCEPT&&h($),S!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)h(C),C=x.nextNode()}},h=$=>{var y;let x=(y=Ce.get($))!==null&&y!==void 0?y:0;a($)&&x===0||(x===0&&f($,!0),s.add($),Ce.set($,x+1))};U.length&&U[U.length-1].disconnect(),c(u);let b=new MutationObserver($=>{for(let y of $)if(y.type==="childList"&&![...o,...s].some(x=>x.contains(y.target)))for(let x of y.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&(x.dataset.liveAnnouncer==="true"||x.dataset.reactAriaTopLayer==="true")?o.add(x):x instanceof Element&&c(x)});b.observe(u,{childList:!0,subtree:!0});let v={visibleNodes:o,hiddenNodes:s,observe(){b.observe(u,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return U.push(v),()=>{b.disconnect();for(let $ of s){let y=Ce.get($);y!=null&&(y===1?(f($,!1),Ce.delete($)):Ce.set($,y-1))}v===U[U.length-1]?(U.pop(),U.length&&U[U.length-1].observe()):U.splice(U.indexOf(v),1)}}function Uu(t){let e=U[U.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function Wu(t,e){let{triggerRef:l,popoverRef:n,groupRef:i,isNonModal:u,isKeyboardDismissDisabled:r,shouldCloseOnInteractOutside:o,...s}=t,a=s.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:c}=Ru({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!u||a,isKeyboardDismissDisabled:r,shouldCloseOnInteractOutside:o},i??n),{overlayProps:h,arrowProps:b,placement:v,triggerAnchorPoint:$}
6=Zi({...s,targetRef:l,overlayRef:n,isOpen:e.isOpen,onClose:u&&!a?e.close:null});return Lu({isDisabled:u||!e.isOpen}),d.useEffect(()=>{if(e.isOpen&&n.current){var y,x;return u?Uu((y=i?.current)!==null&&y!==void 0?y:n.current):Hu([(x=i?.current)!==null&&x!==void 0?x:n.current],{shouldUseInert:!0})}},[u,e.isOpen,n,i]),{popoverProps:q(f,h),arrowProps:b,underlayProps:c,placement:v,triggerAnchorPoint:$}}const Jl=m.createContext(null);function Mt(t){let e=ht(),{portalContainer:l=e?null:document.body,isExiting:n}=t,[i,u]=d.useState(!1),r=d.useMemo(()=>({contain:i,setContain:u}),[i,u]),{getContainer:o}=Yi();if(!t.portalContainer&&o&&(l=o()),!l)return null;let s=t.children;return t.disableFocusManagement||(s=m.createElement(sl,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!n},s)),s=m.createElement(Jl.Provider,{value:r},m.createElement(Du,null,s)),iu.createPortal(s,l)}function _u(){let t=d.useContext(Jl),e=t?.setContain;z(()=>{e?.(!0)},[e])}function st(t){return au()?t.altKey:t.ctrlKey}function Ne(t,e){var l,n;let i=`[data-key="${CSS.escape(String(e))}"]`,u=(l=t.current)===null||l===void 0?void 0:l.dataset.collection;return u&&(i=`[data-collection="${CSS.escape(u)}"]${i}`),(n=t.current)===null||n===void 0?void 0:n.querySelector(i)}const Zl=new WeakMap;function qu(t){let e=ae();return Zl.set(t,e),e}function Gu(t){return Zl.get(t)}const Ju=1e3;function Zu(t){let{keyboardDelegate:e,selectionManager:l,onTypeSelect:n}=t,i=d.useRef({search:"",timeout:void 0}).current,u=r=>{let o=Yu(r.key);if(!(!o||r.ctrlKey||r.metaKey||!r.currentTarget.contains(r.target)||i.search.length===0&&o===" ")){if(o===" "&&i.search.trim().length>0&&(r.preventDefault(),"continuePropagation"in r||r.stopPropagation()),i.search+=o,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,l.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(l.setFocusedKey(s),n&&n(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ju)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?u:void 0}}}function Yu(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Xu(t){let{selectionManager:e,keyboardDelegate:l,ref:n,autoFocus:i=!1,shouldFocusWrap:u=!1,disallowEmptySelection:r=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:a=e.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:c,allowsTabNavigation:h=!1,isVirtualized:b,scrollRef:v=n,linkBehavior:$="action"}=t,{direction:y}=ze(),x=bt(),S=g=>{var D;if(g.altKey&&g.key==="Tab"&&g.preventDefault(),!(!((D=n.current)===null||D===void 0)&&D.contains(g.target)))return;const A=(E,ne)=>{if(E!=null){if(e.isLink(E)&&$==="selection"&&a&&!st(g)){nl.flushSync(()=>{e.setFocusedKey(E,ne)});let ie=Ne(n,E),Ae=e.getItemProps(E);ie&&x.open(ie,g,Ae.href,Ae.routerOptions);return}if(e.setFocusedKey(E,ne),e.isLink(E)&&$==="override")return;g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(E):a&&!st(g)&&e.replaceSelection(E)}};switch(g.key){case"ArrowDown":if(l.getKeyBelow){var T,L,p;let E=e.focusedKey!=null?(T=l.getKeyBelow)===null||T===void 0?void 0:T.call(l,e.focusedKey):(L=l.getFirstKey)===null||L===void 0?void 0:L.call(l);E==null&&u&&(E=(p=l.getFirstKey)===null||p===void 0?void 0:p.call(l,e.focusedKey)),E!=null&&(g.preventDefault(),A(E))}break;case"ArrowUp":if(l.getKeyAbove){var M,J,ce;let E=e.focusedKey!=null?(M=l.getKeyAbove)===null||M===void 0?void 0:M.call(l,e.focusedKey):(J=l.getLastKey)===null||J===void 0?void 0:J.call(l);E==null&&u&&(E=(ce=l.getLastKey)===null||ce===void 0?void 0:ce.call(l,e.focusedKey)),E!=null&&(g.preventDefault(),A(E))}break;case"ArrowLeft":if(l.getKeyLeftOf){var me,Q,ye;let E=e.focusedKey!=null?(me=l.getKeyLeftOf)===null||me===void 0?void 0:me.call(l,e.focusedKey):null;E==null&&u&&(E=y==="rtl"?(Q=l.getFirstKey)===null||Q===void 0?void 0:Q.call(l,e.focusedKey):(ye=l.getLastKey)===null||ye===void 0?void 0:ye.call(l,e.focusedKey)),E!=null&&(g.preventDefault(),A(E,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(l.getKeyRightOf){var ge,ee,de;let E=e.focusedKey!=null?(ge=l.getKeyRightOf)===null||ge===void 0?void 0:ge.call(l,e.focusedKey):null;E==null&&u&&(E=y==="rtl"?(ee=l.getLastKey)===null||ee===void 0?void 0:ee.call(l,e.focusedKey):(de=l.getFirstKey)===null||de===void 0?void 0:de.call(l,e.focusedKey)),E!=null&&(g.preventDefault(),A(E,y==="rtl"?"last":"first"))}break;case"Home":if(l.getFirstKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let E=l.getFirstKey(e.focusedKey,he(g));e.setFocusedKey(E),E!=null&&(he(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(E):a&&e.replaceSelection(E))}break;case"End":if(l.getLastKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let E=l.getLastKey(e.focusedKey,he(g));e.setFocusedKey(E),E!=null&&(he(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(E):a&&e.replaceSelection(E))}break;case"PageDown":if(l.getKeyPageBelow&&e.focusedKey!=null){let E=l.getKeyPageBelow(e.focusedKey);E!=null&&(g.preventDefault(),A(E))}break;case"PageUp":if(l.getKeyPageAbove&&e.focusedKey!=null){let E=l.getKeyPageAbove(e.focusedKey);E!=null&&(g.preventDefault(),A(E))}break;case"a":he(g)&&e.selectionMode==="multiple"&&o!==!0&&(g.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!r&&e.selectedKeys.size!==0&&(g.stopPropagation(),g.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(g.shiftKey)n.current.focus();else{let E=_(n.current,{tabbable:!0}),ne,ie;do ie=E.lastChild(),ie&&(ne=ie);while(ie);ne&&(!ne.contains(document.activeElement)||document.activeElement&&!Yt(document.activeElement))&&Ke(ne)}break}}},C=d.useRef({top:0,left:0});Te(v,"scroll",b?void 0:()=>{var g,D,A,T;C.current={top:(A=(g=v.current)===null||g===void 0?void 0:g.scrollTop)!==null&&A!==void 0?A:0,left:(T=(D=v.current)===null||D===void 0?void 0:D.scrollLeft)!==null&&T!==void 0?T:0}});let K=g=>{if(e.isFocused){g.currentTarget.contains(g.target)||e.setFocused(!1);return}if(g.currentTarget.contains(g.target)){if(e.setFocused(!0),e.focusedKey==null){var D,A;let p=J=>{J!=null&&(e.setFocusedKey(J),a&&!e.isSelected(J)&&e.replaceSelection(J))},M=g.relatedTarget;var T,L;M&&g.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?p((T=e.lastSelectedKey)!==null&&T!==void 0?T:(D=l.getLastKey)===null||D===void 0?void 0:D.call(l)):p((L=e.firstSelectedKey)!==null&&L!==void 0?L:(A=l.getFirstKey)===null||A===void 0?void 0:A.call(l))}else!b&&v.current&&(v.current.scrollTop=C.current.top,v.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&v.current){let p=Ne(n,e.focusedKey);p instanceof HTMLElement&&(!p.contains(document.activeElement)&&!c&&Ke(p),nt()==="keyboard"&&kt(p,{containingElement:n.current}))}}},V=g=>{g.currentTarget.contains(g.relatedTarget)||e.setFocused(!1)},k=d.useRef(!1);Te(n,xu,c?g=>{let{detail:D}=g;g.stopPropagation(),e.setFocused(!0),D?.focusStrategy==="first"&&(k.current=!0)}:void 0),Dt(()=>{if(k.current){var g,D;let A=(D=(g=l.getFirstKey)===null||g===void 0?void 0:g.call(l))!==null&&D!==void 0?D:null;if(A==null){let T=Z();dl(n.current),fl(T,null),e.collection.size>
60&&(k.current=!1)}else e.setFocusedKey(A),k.current=!1}},[e.collection]),Dt(()=>{e.collection.size>0&&(k.current=!1)},[e.focusedKey]),Te(n,gu,c?g=>{var D;g.stopPropagation(),e.setFocused(!1),!((D=g.detail)===null||D===void 0)&&D.clearFocusKey&&e.setFocusedKey(null)}:void 0);const F=d.useRef(i),B=d.useRef(!1);d.useEffect(()=>{if(F.current){var g,D;let L=null;var A;i==="first"&&(L=(A=(g=l.getFirstKey)===null||g===void 0?void 0:g.call(l))!==null&&A!==void 0?A:null);var T;i==="last"&&(L=(T=(D=l.getLastKey)===null||D===void 0?void 0:D.call(l))!==null&&T!==void 0?T:null);let p=e.selectedKeys;if(p.size){for(let M of p)if(e.canSelectItem(M)){L=M;break}}e.setFocused(!0),e.setFocusedKey(L),L==null&&!c&&n.current&&se(n.current),e.collection.size>0&&(F.current=!1,B.current=!0)}});let H=d.useRef(e.focusedKey),j=d.useRef(null);d.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==H.current||B.current)&&v.current&&n.current){let g=nt(),D=Ne(n,e.focusedKey);if(!(D instanceof HTMLElement))return;(g==="keyboard"||B.current)&&(j.current&&cancelAnimationFrame(j.current),j.current=requestAnimationFrame(()=>{v.current&&(ul(v.current,D),g!=="virtual"&&kt(D,{containingElement:n.current}))}))}!c&&e.isFocused&&e.focusedKey==null&&H.current!=null&&n.current&&se(n.current),H.current=e.focusedKey,B.current=!1}),d.useEffect(()=>()=>{j.current&&cancelAnimationFrame(j.current)},[]),Te(n,"react-aria-focus-scope-restore",g=>{g.preventDefault(),e.setFocused(!0)});let G={onKeyDown:S,onFocus:K,onBlur:V,onMouseDown(g){v.current===g.target&&g.preventDefault()}},{typeSelectProps:le}=Zu({keyboardDelegate:l,selectionManager:e});f||(G=q(le,G));let I;c||(I=e.focusedKey==null?0:-1);let N=qu(e.collection);return{collectionProps:q(G,{tabIndex:I,"data-collection":N})}}function Qu(t){let{id:e,selectionManager:l,key:n,ref:i,shouldSelectOnPressUp:u,shouldUseVirtualFocus:r,focus:o,isDisabled:s,onAction:a,allowsDifferentPressOrigin:f,linkBehavior:c="action"}=t,h=bt();e=ae(e);let b=p=>{if(p.pointerType==="keyboard"&&st(p))l.toggleSelection(n);else{if(l.selectionMode==="none")return;if(l.isLink(n)){if(c==="selection"&&i.current){let M=l.getItemProps(n);h.open(i.current,p,M.href,M.routerOptions),l.setSelectedKeys(l.selectedKeys);return}else if(c==="override"||c==="none")return}l.selectionMode==="single"?l.isSelected(n)&&!l.disallowEmptySelection?l.toggleSelection(n):l.replaceSelection(n):p&&p.shiftKey?l.extendSelection(n):l.selectionBehavior==="toggle"||p&&(he(p)||p.pointerType==="touch"||p.pointerType==="virtual")?l.toggleSelection(n):l.replaceSelection(n)}};d.useEffect(()=>{n===l.focusedKey&&l.isFocused&&(r?dl(i.current):o?o():document.activeElement!==i.current&&i.current&&se(i.current))},[i,n,l.focusedKey,l.childFocusStrategy,l.isFocused,r]),s=s||l.isDisabled(n);let v={};!r&&!s?v={tabIndex:n===l.focusedKey?0:-1,onFocus(p){p.target===i.current&&l.setFocusedKey(n)}}:s&&(v.onMouseDown=p=>{p.preventDefault()});let $=l.isLink(n)&&c==="override",y=a&&t.UNSTABLE_itemBehavior==="action",x=l.isLink(n)&&c!=="selection"&&c!=="none",S=!s&&l.canSelectItem(n)&&!$&&!y,C=(a||x)&&!s,K=C&&(l.selectionBehavior==="replace"?!S:!S||l.isEmpty),V=C&&S&&l.selectionBehavior==="replace",k=K||V,F=d.useRef(null),B=k&&S,H=d.useRef(!1),j=d.useRef(!1),G=l.getItemProps(n),le=p=>{if(a){var M;a(),(M=i.current)===null||M===void 0||M.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&h.open(i.current,p,G.href,G.routerOptions)},I={ref:i};if(u?(I.onPressStart=p=>{F.current=p.pointerType,H.current=B,p.pointerType==="keyboard"&&(!k||Lt())&&b(p)},f?(I.onPressUp=K?void 0:p=>{p.pointerType==="mouse"&&S&&b(p)},I.onPress=K?le:p=>{p.pointerType!=="keyboard"&&p.pointerType!=="mouse"&&S&&b(p)}):I.onPress=p=>{if(K||V&&p.pointerType!=="mouse"){if(p.pointerType==="keyboard"&&!Rt())return;le(p)}else p.pointerType!=="keyboard"&&S&&b(p)}):(I.onPressStart=p=>{F.current=p.pointerType,H.current=B,j.current=K,S&&(p.pointerType==="mouse"&&!K||p.pointerType==="keyboard"&&(!C||Lt()))&&b(p)},I.onPress=p=>{(p.pointerType==="touch"||p.pointerType==="pen"||p.pointerType==="virtual"||p.pointerType==="keyboard"&&k&&Rt()||p.pointerType==="mouse"&&j.current)&&(k?le(p):S&&b(p))}),v["data-collection"]=Gu(l.collection),v["data-key"]=n,I.preventFocusOnPress=r,r&&(I=q(I,{onPressStart(p){p.pointerType!=="touch"&&(l.setFocused(!0),l.setFocusedKey(n))},onPress(p){p.pointerType==="touch"&&(l.setFocused(!0),l.setFocusedKey(n))}})),G)for(let p of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])G[p]&&(I[p]=ft(I[p
6],G[p]));let{pressProps:N,isPressed:g}=dt(I),D=V?p=>{F.current==="mouse"&&(p.stopPropagation(),p.preventDefault(),le(p))}:void 0,{longPressProps:A}=ol({isDisabled:!B,onLongPress(p){p.pointerType==="touch"&&(b(p),l.setSelectionBehavior("toggle"))}}),T=p=>{F.current==="touch"&&H.current&&p.preventDefault()},L=c!=="none"&&l.isLink(n)?p=>{cu.isOpening||p.preventDefault()}:void 0;return{itemProps:q(v,S||K||r&&!s?N:{},B?A:{},{onDoubleClick:D,onDragStartCapture:T,onClick:L,id:e},r?{onMouseDown:p=>p.preventDefault()}:void 0),isPressed:g,isSelected:l.isSelected(n),isFocused:l.isFocused&&l.focusedKey===n,isDisabled:s,allowsSelection:S,hasAction:k}}function Rt(){let t=window.event;return t?.key==="Enter"}function Lt(){let t=window.event;return t?.key===" "||t?.code==="Space"}class zt{getItemRect(e){let l=this.ref.current;if(!l)return null;let n=e!=null?Ne(this.ref,e):null;if(!n)return null;let i=l.getBoundingClientRect(),u=n.getBoundingClientRect();return{x:u.left-i.left-l.clientLeft+l.scrollLeft,y:u.top-i.top-l.clientTop+l.scrollTop,width:u.width,height:u.height}}getContentSize(){let e=this.ref.current;var l,n;return{width:(l=e?.scrollWidth)!==null&&l!==void 0?l:0,height:(n=e?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let e=this.ref.current;var l,n,i,u;return{x:(l=e?.scrollLeft)!==null&&l!==void 0?l:0,y:(n=e?.scrollTop)!==null&&n!==void 0?n:0,width:(i=e?.clientWidth)!==null&&i!==void 0?i:0,height:(u=e?.clientHeight)!==null&&u!==void 0?u:0}}constructor(e){this.ref=e}}class er{isDisabled(e){var l;return this.disabledBehavior==="all"&&(((l=e.props)===null||l===void 0?void 0:l.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,l){let n=e;for(;n!=null;){let i=this.collection.getItem(n);if(i?.type==="item"&&!this.isDisabled(i))return n;n=l(n)}return null}getNextKey(e){let l=e;return l=this.collection.getKeyAfter(l),this.findNextNonDisabled(l,n=>this.collection.getKeyAfter(n))}getPreviousKey(e){let l=e;return l=this.collection.getKeyBefore(l),this.findNextNonDisabled(l,n=>this.collection.getKeyBefore(n))}findKey(e,l,n){let i=e,u=this.layoutDelegate.getItemRect(i);if(!u||i==null)return null;let r=u;do{if(i=l(i),i==null)break;u=this.layoutDelegate.getItemRect(i)}while(u&&n(r,u)&&i!=null);return i}isSameRow(e,l){return e.y===l.y||e.x!==l.x}isSameColumn(e,l){return e.x===l.x||e.y!==l.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,l=>this.getNextKey(l),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,l=>this.getPreviousKey(l),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,l){return l?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let l=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[l]?(e=this.layoutDelegate[l](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[l](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let l=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[l]?(e=this.layoutDelegate[l](e),this.findNextNonDisabled(e,n=>this.layoutDelegate[l](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,l=>this.collection.getKeyAfter(l))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,l=>this.collection.getKeyBefore(l))}getKeyPageAbove(e){let l=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(l&&!ve(l))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let u=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>u&&i!=null;
6)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let u=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>u&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let l=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(l&&!ve(l))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let u=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<u&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let u=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<u&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,l){if(!this.collator)return null;let n=this.collection,i=l||this.getFirstKey();for(;i!=null;){let u=n.getItem(i);if(!u)return null;let r=u.textValue.slice(0,e.length);if(u.textValue&&this.collator.compare(r,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let l=e[0];this.collection=l.collection,this.ref=l.ref,this.collator=l.collator,this.disabledKeys=l.disabledKeys||new Set,this.disabledBehavior=l.disabledBehavior||"all",this.orientation=l.orientation||"vertical",this.direction=l.direction,this.layout=l.layout||"stack",this.layoutDelegate=l.layoutDelegate||new zt(l.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new zt(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function tr(t){let{selectionManager:e,collection:l,disabledKeys:n,ref:i,keyboardDelegate:u,layoutDelegate:r}=t,o=Su({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,a=d.useMemo(()=>u||new er({collection:l,disabledKeys:n,disabledBehavior:s,ref:i,collator:o,layoutDelegate:r}),[u,r,l,n,i,o,s]),{collectionProps:f}=Xu({...t,ref:i,selectionManager:e,keyboardDelegate:a});return{listProps:f}}class lr{build(e,l){return this.context=l,Ot(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:l,items:n}=e;if(m.isValidElement(l)&&l.type===m.Fragment)yield*this.iterateCollection({children:l.props.children,items:n});else if(typeof l=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let i=0;for(let u of n)yield*this.getFullNode({value:u,index:i},{renderer:l}),i++}else{let i=[];m.Children.forEach(l,r=>{r&&i.push(r)});let u=0;for(let r of i){let o=this.getFullNode({element:r,index:u},{});for(let s of o)u++,yield s}}}getKey(e,l,n,i){if(e.key!=null)return e.key;if(l.type==="cell"&&l.key!=null)return`${i}${l.key}`;let u=l.value;if(u!=null){var r;let o=(r=u.key)!==null&&r!==void 0?r:u.id;if(o==null)throw new Error("No key found for item");return o}return i?`${i}.${l.index}`:`$.${l.index}`}getChildState(e,l){return{renderer:l.renderer||e.renderer}}*getFullNode(e,l,n,i){if(m.isValidElement(e.element)&&e.element.type===m.Fragment){let y=[];m.Children.forEach(e.element.props.children,S=>{y.push(S)});var u;let x=(u=e.index)!==null&&u!==void 0?u:0;for(const S of y)yield*this.getFullNode({element:S,index:x++},l,n,i);return}let r=e.element;if(!r&&e.value&&l&&l.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}r=l.renderer(e.value)}if(m.isValidElement(r)){let y=r.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let K=r.type;throw new Error(`Unknown element <${K}> in collection.`)}let x=y.getCollectionNode(r.props,this.context);var o;let S=(o=e.index)!==null&&o!==void 0?o:0,C=x.next();for(;!C.done&&C.value;){let K=C.value;e.index=S;var s;let V=(s=K.key)!==null&&s!==void 0?s:null;V==null&&(V=K.element?null:this.getKey(r,e,l,n));let F=[...this.getFullNode({...K,key:V,index:S,wrapper:nr(e.wrapper,K.wrapper)},this.getChildState(l,K),n?`${n}${r.key}`:r.key,i)];for(let B of F){var a,f;B.value=(f=(a=K.value)!==null&&a!==void 0?a:e.value)!==null&&f!==void 0?f:null,B.value&&this.cache.set(B.value,B);var c;if(e.type&&B.type!==e.type)throw new Error(`Unsupported type <${Xe(B.type)}> in <${Xe((c=i?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Xe(e.type)}> is supported.`);S++,yield B}C=x.next(F)}return}if(e.key==null||e.type==null)return;let h=this;var b,v;let $={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(b=e.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(v=e.textValue)!==null&&v!==void 0?v:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Ot(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let S=h.getFullNode({...x,index:y},h.getChildState(l,x),$.key,$);for(let C of S)y++,yield C}})};yield $}constructor(){this.cache=new WeakMap}}function Ot(t){let e=[],l=null;return{*[Symbol.iterator](){for(let n of e)yield n;l||(l=t());for(let n of l)e.push(n),yield n}}}function nr(t,e){if(t&&e)return l=>t(e(l));if(t)return t;if(e)return e}function Xe(t){return t[0].toUpperCase()+t.slice(1)}function ir(t,e,l){let n=d.useMemo(()=>new lr,[]),{children:i,items:u,collection:r}=t;return d.useMemo(()=>
6{if(r)return r;let s=n.build({children:i,items:u},l);return e(s)},[n,i,u,r,l,e])}function Yl(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function ur(t){return rr(t,0)}function rr(t,e){if(e<0)return;let l=0;for(let n of t){if(l===e)return n;l++}}function ho(t){let e;for(let l of t)e=l;return e}function Qe(t,e,l){if(e.parentKey===l.parentKey)return e.index-l.index;let n=[...Vt(t,e),e],i=[...Vt(t,l),l],u=n.slice(0,i.length).findIndex((r,o)=>r!==i[o]);return u!==-1?(e=n[u],l=i[u],e.index-l.index):n.findIndex(r=>r===l)>=0?1:(i.findIndex(r=>r===e)>=0,-1)}function Vt(t,e){let l=[],n=e;for(;n?.parentKey!=null;)n=t.getItem(n.parentKey),n&&l.unshift(n);return l}const jt=new WeakMap;function or(t){let e=jt.get(t);if(e!=null)return e;let l=0,n=i=>{for(let u of i)u.type==="section"?n(Yl(u,t)):u.type==="item"&&l++};return n(t),jt.set(t,l),l}var Xl={};Xl={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ql={};Ql={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var en={};en={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var tn={};tn={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var ln={};ln={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var nn={};nn={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var un={};un={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var rn={};rn={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var on={};on={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var sn={};sn={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var an={};an={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var cn={};cn={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var dn={};dn={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var fn={};fn={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var hn={};hn={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var bn={};bn={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var vn={};vn={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var pn={};pn={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var $n={};$n={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var mn={};mn={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var yn={};yn={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var gn={};gn={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var xn={};xn={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Cn={};Cn={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var En={};En={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Sn={};Sn={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Dn={};Dn={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Kn={};Kn={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var kn={};kn={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Pn={};Pn={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var wn={};wn={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Bn={};Bn={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var An={};An={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Tn={};Tn={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Fn={};Fn={"ar-AE":Xl,"bg-BG":Ql,"cs-CZ":en,"da-DK":tn,"de-DE":ln,"el-GR":nn,"en-US":un,"es-ES":rn,"et-EE":on,"fi-FI":sn,"fr-FR":an,"he-IL":cn,"hr-HR":dn,"hu-HU":fn,"it-IT":hn,"ja-JP":bn,"ko-KR":vn,"lt-LT":pn,"lv-LV":$n,"nb-NO":mn,"nl-NL":yn,"pl-PL":gn,"pt-BR":xn,"pt-PT":Cn,"ro-RO":En,"ru-RU":Sn,"sk-SK":Dn,"sl-SI":Kn,"sr-SP":kn,"sv-SE":Pn,"tr-TR":wn,"uk-UA":Bn,"zh-CN":An,"zh-TW":Tn};function sr(t){return t&&t.__esModule?t.default:t}function ar(t,e,l){let{type:n="menu",isDisabled:i,trigger:u="press"}=t,r=ae(),{triggerProps:o,overlayProps:s}=hl({type:n},e,l),a=b=>{if(!i&&!(u==="longPress"&&!b.altKey)&&l&&l.current)switch(b.key){case"Enter":case" ":if(u==="longPress"||b.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),e.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},f=Be(sr(Fn),"@react-aria/menu"),{longPressProps:c}=ol({isDisabled:i||u!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(Ke(b.target),e.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(Ke(b.target),e.toggle(
6))}};return delete o.onPress,{menuTriggerProps:{...o,...u==="press"?h:c,id:r,onKeyDown:a},menuProps:{...s,"aria-labelledby":r,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const In=new WeakMap;function cr(t,e,l){let{shouldFocusWrap:n=!0,onKeyDown:i,onKeyUp:u,...r}=t;!t["aria-label"]&&t["aria-labelledby"];let o=re(t,{labelable:!0}),{listProps:s}=tr({...r,ref:l,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return In.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:q(o,{onKeyDown:i,onKeyUp:u},{role:"menu",...s,onKeyDown:a=>{var f;(a.key!=="Escape"||t.shouldUseVirtualFocus)&&((f=s.onKeyDown)===null||f===void 0||f.call(s,a))}})}}function dr(t,e,l){let{id:n,key:i,closeOnSelect:u,isVirtualized:r,"aria-haspopup":o,onPressStart:s,onPressUp:a,onPress:f,onPressChange:c,onPressEnd:h,onClick:b,onHoverStart:v,onHoverChange:$,onHoverEnd:y,onKeyDown:x,onKeyUp:S,onFocus:C,onFocusChange:K,onBlur:V,selectionManager:k=e.selectionManager}=t,F=!!o,B=F&&t["aria-expanded"]==="true";var H;let j=(H=t.isDisabled)!==null&&H!==void 0?H:k.isDisabled(i);var G;let le=(G=t.isSelected)!==null&&G!==void 0?G:k.isSelected(i),I=In.get(e),N=e.collection.getItem(i),g=t.onClose||I.onClose,D=bt(),A=()=>{var P;if(!F&&(!(N==null||(P=N.props)===null||P===void 0)&&P.onAction?N.props.onAction():t.onAction&&t.onAction(i),I.onAction)){let xe=I.onAction;xe(i)}},T="menuitem";F||(k.selectionMode==="single"?T="menuitemradio":k.selectionMode==="multiple"&&(T="menuitemcheckbox"));let L=Ie(),p=Ie(),M=Ie(),J={id:n,"aria-disabled":j||void 0,role:T,"aria-label":t["aria-label"],"aria-labelledby":L,"aria-describedby":[p,M].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":o,"aria-expanded":t["aria-expanded"]};k.selectionMode!=="none"&&!F&&(J["aria-checked"]=le),r&&(J["aria-posinset"]=N?.index,J["aria-setsize"]=or(e.collection));let ce=d.useRef(!1),me=P=>{c?.(P),ce.current=P},Q=d.useRef(null),ye=P=>{P.pointerType!=="keyboard"&&(Q.current={pointerType:P.pointerType}),P.pointerType==="mouse"&&(ce.current||P.target.click()),a?.(P)},ge=P=>{var xe,He;b?.(P),A(),fu(P,D,N.props.href,N?.props.routerOptions);let Ue=((xe=Q.current)===null||xe===void 0?void 0:xe.pointerType)==="keyboard"?((He=Q.current)===null||He===void 0?void 0:He.key)==="Enter"||k.selectionMode==="none"||k.isLink(i):k.selectionMode!=="multiple"||k.isLink(i);Ue=u??Ue,g&&!F&&Ue&&g(),Q.current=null},{itemProps:ee,isFocused:de}=Qu({id:n,selectionManager:k,key:i,ref:l,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:E,isPressed:ne}=dt({onPressStart:s,onPress:f,onPressUp:ye,onPressChange:me,onPressEnd:h,isDisabled:j}),{hoverProps:ie}=Xt({isDisabled:j,onHoverStart(P){!Ct()&&!(B&&o)&&(k.setFocused(!0),k.setFocusedKey(i)),v?.(P)},onHoverChange:$,onHoverEnd:y}),{keyboardProps:Ae}=Ri({onKeyDown:P=>{if(P.repeat){P.continuePropagation();return}switch(P.key){case" ":Q.current={pointerType:"keyboard",key:" "},P.target.click();break;case"Enter":Q.current={pointerType:"keyboard",key:"Enter"},P.target.tagName!=="A"&&P.target.click();break;default:F||P.continuePropagation(),x?.(P);break}},onKeyUp:S}),{focusProps:wi}=Li({onBlur:V,onFocus:C,onFocusChange:K}),gt=re(N?.props);delete gt.id;let Bi=du(N?.props);return{menuItemProps:{...J,...q(gt,Bi,F?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,E,ie,Ae,wi,I.shouldUseVirtualFocus||F?{onMouseDown:P=>P.preventDefault()}:void 0,j?void 0:{onClick:ge}),tabIndex:ee.tabIndex!=null&&B&&!I.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:L},descriptionProps:{id:p},keyboardShortcutProps:{id:M},isFocused:de,isFocusVisible:de&&k.isFocused&&Ct()&&!B,isSelected:le,isPressed:ne,isDisabled:j}}function fr(t){let{heading:e,"aria-label":l}=t,n=ae();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":l,"aria-labelledby":e?n:void 0}}}class $e{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,l,n){let i=this.clone();return l.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 Nn extends $e{filter(e,l,n){let[i,u]=Ln(e,l,this.firstChildKey,n),r=this.clone();return r.firstChildKey=i,r.lastChildKey=u,r}}class hr extends $e{}hr.type="header";class br extends $e{}br.type="loader";class Mn extends Nn{filter(e,l,n){if(n(this.textValue,this)){let i=this.clone();return l.addDescendants(i,e),i}return null}}Mn.type="item";class Rn extends Nn{filter(e,l,n){let i=super.filter(e,l,n);if(i&&i.lastChildKey!==null){let u=e.getItem(i.lastChildKey);if(u&&u.type!=="header")return i}return null}}Rn.type="section";class vr{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 l=this.keyMap;return{*[Symbol.iterator](){let n=l.get(e),i=n?.firstChildKey!=null?l.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?l.get(i.nextKey):void 0}}}getKeyBefore(e){let l=this.keyMap.get(e);if(!l)return null;if(l.prevKey!=null){for(l=this.keyMap.get(l.prevKey);l&&l.type!=="item"&&l.lastChildKey!=null;)l=this.keyMap.get(l.lastChildKey);var n;return(n=l?.key)!==null&&n!==void 0?n:null}return l.parentKey}getKeyAfter(e){let l=this.keyMap.get(e);if(!l)return null;if(l.type!=="item"&&l.firstChildKey!=null)return l.firstChildKey;for(;l;){if(l.nextKey!=null)return l.nextKey;if(l.parentKey!=null)l=this.keyMap.get(l.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var l;return(l=e?.key)!==null&&l!==void 0?l:null}getItem(e){var l;return(l=this.keyMap.get(e))!==null&&l!==void 0?l:null}at(){throw new Error("Not implemented")}
6clone(){let e=this.constructor,l=new e;return l.keyMap=new Map(this.keyMap),l.firstKey=this.firstKey,l.lastKey=this.lastKey,l.itemCount=this.itemCount,l}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,l){this.addNode(e);let n=l.getChildren(e.key);for(let i of n)this.addDescendants(i,l)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let l=this.keyMap.get(e);l!=null&&l.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,l,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=l,this.frozen=!n}filter(e){let l=new this.constructor,[n,i]=Ln(this,l,this.firstKey,e);return l?.commit(n,i),l}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Ln(t,e,l,n){if(l==null)return[null,null];let i=null,u=null,r=t.getItem(l);for(;r!=null;){let a=r.filter(t,e,n);a!=null&&(a.nextKey=null,u&&(a.prevKey=u.key,u.nextKey=a.key),i==null&&(i=a),e.addNode(a),u=a),r=r.nextKey?t.getItem(r.nextKey):null}if(u&&u.type==="separator"){let a=u.prevKey;e.removeNode(u.key),a?(u=e.getItem(a),u.nextKey=null):u=null}var o,s;return[(o=i?.key)!==null&&o!==void 0?o:null,(s=u?.key)!==null&&s!==void 0?s:null]}class zn{*[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,l){if(l==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=l,e.previousSibling=l.previousSibling,e.index=l.index-1,this.firstChild===l?this.firstChild=e:l.previousSibling&&(l.previousSibling.nextSibling=e),l.previousSibling=e,e.parentNode=l.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 be extends zn{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof be?this.parentNode.level+(((e=this.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}
6getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,l,n,i,u,r,o,s;let a=this.nextVisibleSibling,f=this.getMutableNode();if(f!=null){f.index=this.index,f.level=this.level;var c;f.parentKey=this.parentNode instanceof be&&(c=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&c!==void 0?c:null;var h;f.prevKey=(h=(n=this.previousVisibleSibling)===null||n===void 0||(l=n.node)===null||l===void 0?void 0:l.key)!==null&&h!==void 0?h:null;var b;f.nextKey=(b=a==null||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&b!==void 0?b:null,f.hasChildNodes=!!this.firstChild;var v;f.firstChildKey=(v=(r=this.firstVisibleChild)===null||r===void 0||(u=r.node)===null||u===void 0?void 0:u.key)!==null&&v!==void 0?v:null;var $;if(f.lastChildKey=($=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&$!==void 0?$:null,(f.colSpan!=null||f.colIndex!=null)&&a){var y,x;let S=((y=f.colIndex)!==null&&y!==void 0?y:f.index)+((x=f.colSpan)!==null&&x!==void 0?x:1);if(a.node!=null&&S!==a.node.colIndex){let C=a.getMutableNode();C.colIndex=S}}}}setProps(e,l,n,i,u){let r,{value:o,textValue:s,id:a,...f}=e;if(this.node==null?(r=new n(a??`react-aria-${++this.ownerDocument.nodeId}`),this.node=r):r=this.getMutableNode(),f.ref=l,r.props=f,r.rendered=i,r.render=u,r.value=o,e["aria-label"]&&(r["aria-label"]=e["aria-label"]),r.textValue=s||(typeof f.children=="string"?f.children:"")||e["aria-label"]||"",a!=null&&a!==r.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(r.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(l){let n=l==="none";if(e.isHidden!==n){var i,u;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((u=e.parentNode)===null||u===void 0?void 0:u.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let r=e.previousVisibleSibling,o=e.nextVisibleSibling;r&&e.ownerDocument.markDirty(r),o&&e.ownerDocument.markDirty(o),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,l){super(l),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class pr extends zn{get isConnected(){return!0}createElement(e){return new be(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 l=this.getMutableCollection();if(!l.getItem(e.node.key))for(let n of e)this.addNode(n);l.addNode(e.node)}removeNode(e){for(let l of e)this.removeNode(l);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof be&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof be?(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.node&&this.dirtyNodes.delete(o),o.isMutated=!1):this.dirtyNodes.delete(o);if(this.nextCollection){var e,l,n,i,u,r;this.nextCollection.commit((u=(l=this.firstVisibleChild)===null||l===void 0||(e=l.node)===null||e===void 0?void 0:e.key)!==null&&u!==void 0?u:null,(r=(i=this.lastVisibleChild)===null||i===void 0||(n=i.node)===null||n===void 0?void 0:n.key)!==null&&r!==void 0?r:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function On(t){let{children:e,items:l,idScope:n,addIdAndValue:i,dependencies:u=[]}=t,r=d.useMemo(()=>new WeakMap,u);return d.useMemo(()=>
6{if(l&&typeof e=="function"){let a=[];for(let f of l){let c=r.get(f);if(!c){c=e(f);var o,s;let h=(s=(o=c.props.id)!==null&&o!==void 0?o:f.key)!==null&&s!==void 0?s:f.id;if(h==null)throw new Error("Could not determine key for item");n!=null&&(h=n+":"+h),c=d.cloneElement(c,i?{key:h,id:h,value:f}:{key:h}),r.set(f,c)}a.push(c)}return a}else if(typeof e!="function")return e},[e,l,r,n,i])}var et={exports:{}},tt={};/**
7 * @license React
8 * use-sync-external-store-shim.production.js
9 *
10 * Copyright (c) Meta Platforms, Inc. and affiliates.
11 *
12 * This source code is licensed under the MIT license found in the
13 * LICENSE file in the root directory of this source tree.
14 */var Ht;function $r(){if(Ht)return tt;Ht=1;var t=_i();function e(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var l=typeof Object.is=="function"?Object.is:e,n=t.useState,i=t.useEffect,u=t.useLayoutEffect,r=t.useDebugValue;function o(c,h){var b=h(),v=n({inst:{value:b,getSnapshot:h}}),$=v[0].inst,y=v[1];return u(function(){$.value=b,$.getSnapshot=h,s($)&&y({inst:$})},[c,b,h]),i(function(){return s($)&&y({inst:$}),c(function(){s($)&&y({inst:$})})},[c]),r(b),b}function s(c){var h=c.getSnapshot;c=c.value;try{var b=h();return!l(c,b)}catch{return!0}}function a(c,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:o;return tt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:f,tt}var Ut;function mr(){return Ut||(Ut=1,et.exports=$r()),et.exports}var yr=mr();const Vn=d.createContext(!1),ke=d.createContext(null);function gr(t){if(d.useContext(ke))return t.content;let{collection:l,document:n}=Sr(t.createCollection);return m.createElement(m.Fragment,null,m.createElement(zi,null,m.createElement(ke.Provider,{value:n},t.content)),m.createElement(xr,{render:t.children,collection:l}))}function xr({collection:t,render:e}){return e(t)}function Cr(t,e,l){let n=ht(),i=d.useRef(n);i.current=n;let u=d.useCallback(()=>i.current?l():e(),[e,l]);return yr.useSyncExternalStore(t,u)}const Er=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:Cr;function Sr(t){let[e]=d.useState(()=>new pr(t?.()||new vr)),l=d.useCallback(r=>e.subscribe(r),[e]),n=d.useCallback(()=>{let r=e.getCollection();return e.isSSR&&e.resetAfterSSR(),r},[e]),i=d.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:Er(l,n,i),document:e}}const at=d.createContext(null);function Dr(t){var e;return e=class extends $e{},e.type=t,e}function jn(t,e,l,n,i,u){typeof t=="string"&&(t=Dr(t));let r=d.useCallback(s=>{s?.setProps(e,l,t,n,u)},[e,l,n,u,t]),o=d.useContext(at);if(o){let s=o.ownerDocument.nodesByProps.get(e);return s||(s=o.ownerDocument.createElement(t.type),s.setProps(e,l,t,n,u),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(e,s)),i?m.createElement(at.Provider,{value:s},i):null}return m.createElement(t.type,{ref:r},i)}function Kr(t,e){let l=({node:i})=>e(i.props,i.props.ref,i),n=d.forwardRef((i,u)=>{let r=d.useContext(Et);if(!d.useContext(Vn)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,u)}return jn(t,i,u,"children"in i?i.children:null,null,s=>m.createElement(Et.Provider,{value:r},m.createElement(l,{node:s})))});return n.displayName=e.name,n}function kr(t,e,l=Hn){let n=({node:u})=>e(u.props,u.props.ref,u),i=d.forwardRef((u,r)=>{let o=l(u);var s;return(s=jn(t,u,r,null,o,a=>m.createElement(n,{node:a})))!==null&&s!==void 0?s:m.createElement(m.Fragment,null)});return i.displayName=e.name,i}function Hn(t){return On({...t,addIdAndValue:!0})}const Wt=d.createContext(null);function Pr(t){let e=d.useContext(Wt),l=(e?.dependencies||[]).concat(t.dependencies);var n;let i=(n=t.idScope)!==null&&n!==void 0?n:e?.idScope,u=Hn({...t,idScope:i,dependencies:l});return d.useContext(ke)&&(u=m.createElement(wr,null,u)),e=d.useMemo(()=>({dependencies:l,idScope:i}),[i,...l]),m.createElement(Wt.Provider,{value:e},u)}function wr({children:t}){let e=d.useContext(ke),l=d.useMemo(()=>m.createElement(ke.Provider,{value:null},m.createElement(Vn.Provider,{value:!0},t)),[t]);return ht()?m.createElement(at.Provider,{value:e},l):nl.createPortal(l,e)}const Br=d.createContext(null),Ar={CollectionRoot({collection:t,renderDropIndicator:e}){return _t(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:l}){return _t(t,e,l)}};function _t(t,e,l){return On({items:e?t.getChildren(e.key):t,dependencies:[l],children(n){let i=n.render(n);return!l||n.type!=="item"?i:m.createElement(m.Fragment,null,l({type:"item",key:n.key,dropPosition:"before"}),i,Tr(t,n,l))}})}function Tr(t,e,l){let n=e.key,i=t.getKeyAfter(n),u=i!=null?t.getItem(i):null;for(;u!=null&&u.type!=="item";)i=t.getKeyAfter(u.key),u=i!=null?t.getItem(i):null;let r=e.nextKey!=null?t.getItem(e.nextKey):null;for(;r!=null&&r.type!=="item";)r=r.nextKey!=null?t.getItem(r.nextKey):null;let o=[];if(r==null){let s=e;for(;s?.type==="item"&&(!u||s.parentKey!==u.parentKey&&u.level<s.level);){let a=l({type:"item",key:s.key,dropPosition:"after"});d.isValidElement(a)&&o.push(d.cloneElement(a,{key:`${s.key}-after`})),s=s.parentKey!=null?t.getItem(s.parentKey):null}}return o}const Un=d.createContext(Ar);function Fr(t){return d.useMemo(()=>t!=null?new Set([t]):null,[t])}function Ir(t,e){let{role:l="dialog"}=t,n=Ie();n=t["aria-label"]?void 0:n;let i=d.useRef(!1);return d.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){se(e.current);let u=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(i.current=!0,e.current&&(e.current.blur(),se(e.current)),i.current=!1)},500);return()=>{clearTimeout(u)}}},[e]),_u(),{dialogProps:{...re(t,{labelable:!0}),role:l,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||n,onBlur:u=>{i.current&&u.stopPropagation()}},titleProps:{id:n}}}var Wn={};Wn={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var _n={};_n={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var qn={};qn={deselectedItem:t=>`Položka ${t.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var Gn={};Gn={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var Jn={};Jn={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var Zn={};Zn={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var Yn={};Yn={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var Xn={};Xn={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var Qn={};Qn={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)}
14 üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var ei={};ei={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var ti={};ti={deselectedItem:t=>`${t.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var li={};li={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var ni={};ni={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var ii={};ii={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var ui={};ui={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var ri={};ri={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var oi={};oi={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var si={};si={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var ai={};ai={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var ci={};ci={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var di={};di={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>
14`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var fi={};fi={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var hi={};hi={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var bi={};bi={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var vi={};vi={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var pi={};pi={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var $i={};$i={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var mi={};mi={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var yi={};yi={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var gi={};gi={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var xi={};xi={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var Ci={};Ci={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var Ei={};Ei={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var Si={};Si={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>
14`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`};var Oe={};Oe={"ar-AE":Wn,"bg-BG":_n,"cs-CZ":qn,"da-DK":Gn,"de-DE":Jn,"el-GR":Zn,"en-US":Yn,"es-ES":Xn,"et-EE":Qn,"fi-FI":ei,"fr-FR":ti,"he-IL":li,"hr-HR":ni,"hu-HU":ii,"it-IT":ui,"ja-JP":ri,"ko-KR":oi,"lt-LT":si,"lv-LV":ai,"nb-NO":ci,"nl-NL":di,"pl-PL":fi,"pt-BR":hi,"pt-PT":bi,"ro-RO":vi,"ru-RU":pi,"sk-SK":$i,"sl-SI":mi,"sr-SP":yi,"sv-SE":gi,"tr-TR":xi,"uk-UA":Ci,"zh-CN":Ei,"zh-TW":Si};function Nr(t){return t&&t.__esModule?t.default:t}function bo(t,e){let{getRowText:l=o=>{var s,a,f,c;return(c=(s=(a=e.collection).getTextValue)===null||s===void 0?void 0:s.call(a,o))!==null&&c!==void 0?c:(f=e.collection.getItem(o))===null||f===void 0?void 0:f.textValue}}=t,n=Be(Nr(Oe),"@react-aria/grid"),i=e.selectionManager.rawSelection,u=d.useRef(i),r=d.useCallback(()=>{var o;if(!e.selectionManager.isFocused||i===u.current){u.current=i;return}let s=qt(i,u.current),a=qt(u.current,i),f=e.selectionManager.selectionBehavior==="replace",c=[];if(e.selectionManager.selectedKeys.size===1&&f){let h=e.selectionManager.selectedKeys.keys().next().value;if(h!=null&&e.collection.getItem(h)){let b=l(h);b&&c.push(n.format("selectedItem",{item:b}))}}else if(s.size===1&&a.size===0){let h=s.keys().next().value;if(h!=null){let b=l(h);b&&c.push(n.format("selectedItem",{item:b}))}}else if(a.size===1&&s.size===0){let h=a.keys().next().value;if(h!=null&&e.collection.getItem(h)){let b=l(h);b&&c.push(n.format("deselectedItem",{item:b}))}}e.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||u.current==="all"||((o=u.current)===null||o===void 0?void 0:o.size)>1)&&c.push(i==="all"?n.format("selectedAll"):n.format("selectedCount",{count:i.size})),c.length>0&&Oi(c.join(" ")),u.current=i},[i,e.selectionManager.selectedKeys,e.selectionManager.isFocused,e.selectionManager.selectionBehavior,e.selectionManager.selectionMode,e.collection,l,n]);pu(()=>{if(e.selectionManager.isFocused)r();else{let o=requestAnimationFrame(r);return()=>cancelAnimationFrame(o)}},[i,e.selectionManager.isFocused])}function qt(t,e){let l=new Set;if(t==="all"||e==="all")return l;for(let n of t.keys())e.has(n)||l.add(n);return l}function Mr(t){return t&&t.__esModule?t.default:t}function vo(t){let e=Be(Mr(Oe),"@react-aria/grid"),l=Vi(),n=(l==="pointer"||l==="virtual"||l==null)&&typeof window<"u"&&"ontouchstart"in window,i=d.useMemo(()=>{let r=t.selectionManager.selectionMode,o=t.selectionManager.selectionBehavior,s;return n&&(s=e.format("longPressToSelect")),o==="replace"&&r!=="none"&&t.hasItemActions?s:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,n]);return il(i)}function Rr(t){return t&&t.__esModule?t.default:t}function po(t,e){let{key:l}=t,n=e.selectionManager,i=ae(),u=!e.selectionManager.canSelectItem(l),r=e.selectionManager.isSelected(l),o=()=>n.toggleSelection(l);const s=Be(Rr(Oe),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":s.format("select"),isSelected:r,isDisabled:u,onChange:o}}}class X extends Set{constructor(e,l,n){super(e),e instanceof X?(this.anchorKey=l??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=l??null,this.currentKey=n??null)}}function Lr(t,e){if(t.size!==e.size)return!1;for(let l of t)if(!e.has(l))return!1;return!0}function Di(t){let{selectionMode:e="none",disallowEmptySelection:l=!1,allowDuplicateSelectionEvents:n,selectionBehavior:i="toggle",disabledBehavior:u="all"}=t,r=d.useRef(!1),[,o]=d.useState(!1),s=d.useRef(null),a=d.useRef(null),[,f]=d.useState(null),c=d.useMemo(()=>Gt(t.selectedKeys),[t.selectedKeys]),h=d.useMemo(()=>Gt(t.defaultSelectedKeys,new X),[t.defaultSelectedKeys]),[b,v]=el(c,h,t.onSelectionChange),$=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,x]=d.useState(i);i==="replace"&&y==="toggle"&&typeof b=="object"&&b.size===0&&x("replace");let S=d.useRef(i);return d.useEffect(()=>{i!==S.current&&(x(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:l,selectionBehavior:y,setSelectionBehavior:x,get isFocused(){return r.current},setFocused(C){r.current=C,o(C)},get focusedKey(){return s.current},get childFocusStrategy(){return a.current},setFocusedKey(C,K="first"){s.current=C,a.current=K,f(C)},selectedKeys:b,setSelectedKeys(C){(n||!Lr(C,b))&&v(C)},disabledKeys:$,disabledBehavior:u}}function Gt(t,e){return t?t==="all"?"all":new X(t):e}class Ve{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,l){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,l)}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 l=this.getKey(e);return l==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(l):this.state.selectedKeys.has(l)}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;
14if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),l=this.state.selectedKeys;return this._isSelectAll=e.every(n=>l.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&Qe(this.collection,i,e)<0)&&(e=i)}var l;return(l=e?.key)!==null&&l!==void 0?l:null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&Qe(this.collection,i,e)>0)&&(e=i)}var l;return(l=e?.key)!==null&&l!==void 0?l: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 l=this.getKey(e);if(l==null)return;let n;if(this.state.selectedKeys==="all")n=new X([l],l,l);else{let r=this.state.selectedKeys;var i;let o=(i=r.anchorKey)!==null&&i!==void 0?i:l;n=new X(r,o,l);var u;for(let s of this.getKeyRange(o,(u=r.currentKey)!==null&&u!==void 0?u:l))n.delete(s);for(let s of this.getKeyRange(l,o))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(e,l){let n=this.collection.getItem(e),i=this.collection.getItem(l);return n&&i?Qe(this.collection,n,i)<=0?this.getKeyRangeInternal(e,l):this.getKeyRangeInternal(l,e):[]}getKeyRangeInternal(e,l){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,l);let i=[],u=e;for(;u!=null;){let r=this.collection.getItem(u);if(r&&(r.type==="item"||r.type==="cell"&&this.allowsCellSelection)&&i.push(u),u===l)return i;u=this.collection.getKeyAfter(u)}return[]}getKey(e){let l=this.collection.getItem(e);if(!l||l.type==="cell"&&this.allowsCellSelection)return e;for(;l&&l.type!=="item"&&l.parentKey!=null;)l=this.collection.getItem(l.parentKey);return!l||l.type!=="item"?null:l.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let l=this.getKey(e);if(l==null)return;let n=new X(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(l)?n.delete(l):this.canSelectItem(l)&&(n.add(l),n.anchorKey=l,n.currentKey=l),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let l=this.getKey(e);if(l==null)return;let n=this.canSelectItem(l)?new X([l],l,l):new X;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let l=new X;for(let n of e){let i=this.getKey(n);if(i!=null&&(l.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(l)}getSelectAllKeys(){let e=[],l=n=>{for(;n!=null;){if(this.canSelectItem(n)){var i;let r=this.collection.getItem(n);r?.type==="item"&&e.push(n);var u;r?.hasChildNodes&&(this.allowsCellSelection||r.type!=="item")&&l((u=(i=ur(Yl(r,this.collection)))===null||i===void 0?void 0:i.key)!==null&&u!==void 0?u:null)}n=this.collection.getKeyAfter(n)}};return l(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 X)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,l){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||l&&(l.pointerType==="touch"||l.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let l=this.selectedKeys;if(e.size!==l.size)return!1;for(let n of e)if(!l.has(n))return!1;for(let n of l)if(!e.has(n))return!1;return!0}canSelectItem(e){var l;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(l=n.props)===null||l===void 0)&&l.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var l,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(l=n.props)===null||l===void 0)&&l.isDisabled))}isLink(e){var l,n;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(l=n.props)===null||l===void 0)&&l.href)}getItemProps(e){var l;return(l=this.collection.getItem(e))===null||l===void 0?void 0:l.props}withCollection(e){return new Ve(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,l,n){this.collection=e,this.state=l;var i;this.allowsCellSelection=(i=n?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}
14function $t(t){let e=tl(t),[l,n]=d.useState(null),[i,u]=d.useState([]),r=()=>{u([]),e.close()};return{focusStrategy:l,...e,open(a=null){n(a),e.open()},toggle(a=null){n(a),e.toggle()},close(){r()},expandedKeysStack:i,openSubmenu:(a,f)=>{u(c=>f>c.length?c:[...c.slice(0,f),a])},closeSubmenu:(a,f)=>{u(c=>c[f]===a?c.slice(0,f):c)}}}class zr{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let l=this.keyMap.get(e);var n;return l&&(n=l.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(e){let l=this.keyMap.get(e);var n;return l&&(n=l.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var l;return(l=this.keyMap.get(e))!==null&&l!==void 0?l:null}at(e){const l=[...this.getKeys()];return this.getItem(l[e])}constructor(e,{expandedKeys:l}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,l=l||new Set;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||l.has(o.key)))for(let s of o.childNodes)n(s)};for(let o of e)n(o);let i=null,u=0;for(let[o,s]of this.keyMap)i?(i.nextKey=o,s.prevKey=i.key):(this.firstKey=o,s.prevKey=void 0),s.type==="item"&&(s.index=u++),i=s,i.nextKey=void 0;var r;this.lastKey=(r=i?.key)!==null&&r!==void 0?r:null}}function Or(t){let{onExpandedChange:e}=t,[l,n]=el(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Di(t),u=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),r=ir(t,d.useCallback(s=>new zr(s,{expandedKeys:l}),[l]),null);return d.useEffect(()=>{i.focusedKey!=null&&!r.getItem(i.focusedKey)&&i.setFocusedKey(null)},[r,i.focusedKey]),{collection:r,expandedKeys:l,disabledKeys:u,toggleKey:s=>{n(Vr(l,s))},setExpandedKeys:n,selectionManager:new Ve(r,i)}}function Vr(t,e){let l=new Set(t);return l.has(e)?l.delete(e):l.add(e),l}const $o=d.createContext({}),jr=d.createContext(null),Hr=d.forwardRef(function(e,l){let{render:n}=d.useContext(jr);return m.createElement(m.Fragment,null,n(e,l))});function mo(t,e){var l;let n=t?.renderDropIndicator,i=t==null||(l=t.isVirtualDragging)===null||l===void 0?void 0:l.call(t),u=d.useCallback(r=>{if(i||e?.isDropTarget(r))return n?n(r):m.createElement(Hr,{target:r})},[e?.target,i,n]);return t?.useDropIndicator?u:void 0}function yo(t,e,l){var n,i;let u=t.focusedKey,r=null;if(!(e==null||(n=e.isVirtualDragging)===null||n===void 0)&&n.call(e)&&(l==null||(i=l.target)===null||i===void 0?void 0:i.type)==="item"&&(r=l.target.key,l.target.dropPosition==="after")){let c=l.collection.getKeyAfter(r),h=null;if(c!=null){var o,s;let b=(s=(o=l.collection.getItem(r))===null||o===void 0?void 0:o.level)!==null&&s!==void 0?s:0;for(;c;){let v=l.collection.getItem(c);if(!v)break;if(v.type!=="item"){c=l.collection.getKeyAfter(c);continue}var a;if(((a=v.level)!==null&&a!==void 0?a:0)<=b)break;h=c,c=l.collection.getKeyAfter(c)}}var f;r=(f=c??h)!==null&&f!==void 0?f:r}return d.useMemo(()=>new Set([u,r].filter(c=>c!=null)),[u,r])}const Ur=d.createContext({}),Wr=d.createContext(null);function _r(t){let e=d.useRef({});return m.createElement(Wr.Provider,{value:e},t.children)}const qr=d.createContext({isSelected:!1}),Gr=d.createContext({});class Jr extends $e{filter(e,l){let n=l.getItem(this.prevKey);if(n&&n.type!=="separator"){let i=this.clone();return l.addDescendants(i,e),i}return null}}Jr.type="separator";const mt=d.createContext(null),Jt=d.createContext(null),go=d.forwardRef(function(e,l){[e,l]=Pe(e,l,mt);let n=d.useContext(je),i=tl(e),u=e.isOpen!=null||e.defaultOpen!=null||!n?i:n,r=Xi(l,u.isOpen)||e.isExiting||!1,o=ji(),{direction:s}=ze();if(o){let a=e.children;return typeof a=="function"&&(a=a({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),m.createElement(m.Fragment,null,a)}return u&&!u.isOpen&&!r?null:m.createElement(Zr,{...e,triggerRef:e.triggerRef,state:u,popoverRef:l,isExiting:r,dir:s})});function Zr({state:t,isExiting:e,UNSTABLE_portalContainer:l,clearContexts:n,...i}){let u=d.useRef(null),r=d.useRef(null),o=d.useContext(Jt),s=o&&i.trigger==="SubmenuTrigger";var a;let{popoverProps:f,underlayProps:c,arrowProps:h,placement:b,triggerAnchorPoint:v}=Wu({...i,offset:(a=i.offset)!==null&&a!==void 0?a:8,arrowRef:u,groupRef:s?o:r},t),$=i.popoverRef,y=Qi($,!!b)||i.isEntering||!1,x=we({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:b,isEntering:y,isExiting:e}}
14),S=!i.isNonModal||i.trigger==="SubmenuTrigger",[C,K]=d.useState(!1);z(()=>{$.current&&K(S&&!$.current.querySelector("[role=dialog]"))},[$,S]),d.useEffect(()=>{C&&i.trigger!=="SubmenuTrigger"&&$.current&&!$.current.contains(document.activeElement)&&se($.current)},[C,$,i.trigger]);let V=d.useMemo(()=>{let H=x.children;if(n)for(let j of n)H=m.createElement(j.Provider,{value:null},H);return H},[x.children,n]),k={...f.style,"--trigger-anchor-point":v?`${v.x}px ${v.y}px`:void 0,...x.style},F=m.createElement("div",{...q(re(i,{global:!0}),f),...x,role:C?"dialog":void 0,tabIndex:C?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:$,slot:i.slot||void 0,style:k,dir:i.dir,"data-trigger":i.trigger,"data-placement":b,"data-entering":y||void 0,"data-exiting":e||void 0},!i.isNonModal&&m.createElement(Nt,{onDismiss:t.close}),m.createElement(eu.Provider,{value:{...h,placement:b,ref:u}},V),m.createElement(Nt,{onDismiss:t.close}));if(!s)return m.createElement(Mt,{...i,shouldContainFocus:C,isExiting:e,portalContainer:l},!i.isNonModal&&t.isOpen&&m.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),m.createElement("div",{ref:r,style:{display:"contents"}},m.createElement(Jt.Provider,{value:r},F)));var B;return m.createElement(Mt,{...i,shouldContainFocus:C,isExiting:e,portalContainer:(B=l??o?.current)!==null&&B!==void 0?B:void 0},F)}const Yr=d.createContext({}
14),Ki=d.createContext(null),yt=d.createContext(null),Re=d.createContext(null),Le=d.createContext(null);function xo(t){let e=$t(t),l=d.useRef(null),{menuTriggerProps:n,menuProps:i}=ar({...t,type:"menu"},e,l),[u,r]=d.useState(null),o=d.useCallback(()=>{l.current&&r(l.current.offsetWidth+"px")},[l]);ll({ref:l,onResize:o});let s=d.useRef(null);return m.createElement(pe,{values:[[Ki,{...i,ref:s}],[je,e],[Re,e],[mt,{trigger:"MenuTrigger",triggerRef:l,scrollRef:s,placement:"bottom start",style:{"--trigger-width":u},"aria-labelledby":i["aria-labelledby"]}]]},m.createElement(rl,{...n,ref:l,isPressed:e.isOpen},t.children))}const Xr=d.createContext(null);class Qr extends $e{filter(e,l,n){let i=e.getItem(this.firstChildKey);if(i&&n(i.textValue,this)){let u=this.clone();return l.addDescendants(u,e),u}return null}}Qr.type="submenutrigger";const Co=d.forwardRef(function(e,l){return[e,l]=Pe(e,l,Ki),m.createElement(gr,{content:m.createElement(Pr,e)},n=>m.createElement(eo,{props:e,collection:n,menuRef:l}))});function eo({props:t,collection:e,menuRef:l}){[t,l]=Pe(t,l,St);let{filter:n,...i}=t,u=d.useMemo(()=>n?e.filter(n):e,[e,n]),r=Or({...t,collection:u,children:void 0}),o=d.useContext(Re),{isVirtualized:s,CollectionRoot:a}=d.useContext(Un),{menuProps:f}=cr({...t,isVirtualized:s,onClose:t.onClose||o?.close},r,l),c=we({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:r.collection.size===0}}),h=null;r.collection.size===0&&t.renderEmptyState&&(h=m.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState()));let b=re(t,{global:!0});return m.createElement(sl,null,m.createElement("div",{...q(b,c,f),ref:l,slot:t.slot||void 0,"data-empty":r.collection.size===0||void 0,onScroll:t.onScroll},m.createElement(pe,{values:[[yt,r],[Gr,{elementType:"div"}],[Br,{name:"MenuSection",render:ki}],[Xr,{parentMenuRef:l,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[ct,null],[St,null],[lu,null],[Le,r.selectionManager],[Re,o??$t({})]]},m.createElement(_r,null,m.createElement(a,{collection:r.collection,persistedKeys:Fr(r.selectionManager.focusedKey),scrollRef:l}))),h))}class to extends Ve{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,l){return this.parent.setFocusedKey(e,l)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,l){super(e.collection,l),this.parent=e}}function ki(t,e,l,n="react-aria-MenuSection"){var i,u;let r=d.useContext(yt),{CollectionBranch:o}=d.useContext(Un),[s,a]=Ui();var f;let{headingProps:c,groupProps:h}=fr({heading:a,"aria-label":(f=l.props["aria-label"])!==null&&f!==void 0?f:void 0}),b=we({defaultClassName:n,className:(i=l.props)===null||i===void 0?void 0:i.className,style:(u=l.props)===null||u===void 0?void 0:u.style,values:{}}),v=d.useContext(Le),$=Di(t),y=t.selectionMode!=null?new to(v,$):v,x=re(t,{global:!0});return delete x.id,m.createElement("section",{...q(x,b,h),ref:e},m.createElement(pe,{values:[[Ur,{...c,ref:s}],[Le,y]]},m.createElement(o,{collection:r.collection,parent:l})))}const Eo=kr(Rn,ki),ct=d.createContext(null),So=Kr(Mn,function(e,l,n){var i;[e,l]=Pe(e,l,ct);let u=(i=Hi(ct))===null||i===void 0?void 0:i.id,r=d.useContext(yt),o=Zt(l),s=d.useContext(Le),{menuItemProps:a,labelProps:f,descriptionProps:c,keyboardShortcutProps:h,...b}=dr({...e,id:u,key:n.key,selectionManager:s},r,o),{hoverProps:v,isHovered:$}=Xt({isDisabled:b.isDisabled}),y=we({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...b,isHovered:$,isFocusVisible:b.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),x=e.href?"a":"div",S=re(e,{global:!0});return delete S.id,delete S.onClick,m.createElement(x,{...q(S,y,a,v),ref:o,"data-disabled":b.isDisabled||void 0,"data-hovered":$||void 0,"data-focused":b.isFocused||void 0,"data-focus-visible":b.isFocusVisible||void 0,"data-pressed":b.isPressed||void 0,"data-selected":b.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},m.createElement(pe,{values:[[tu,{slots:{[it]:f,label:f,description:c}}],[Yr,h],[qr,{isSelected:b.isSelected}]]},y.children))}),Pi=d.createContext(null),je=d.createContext(null);function Do(t){let e=$t(t),l=d.useRef(null),{triggerProps:n,overlayProps:i}=hl({type:"dialog"},e,l),[u,r]=d.useState(null),o=d.useCallback(()=>{l.current&&r(l.current.offsetWidth+"px")},[l]);return ll({ref:l,onResize:o}),n.id=ae(),i["aria-labelledby"]=n.id,m.createElement(pe,{values:[[je,e],[Re,e],[Pi,i],[mt,{trigger:"DialogTrigger",triggerRef:l,"aria-labelledby":i["aria-labelledby"],style:{"--trigger-width":u}}]]},m.createElement(rl,{...n,ref:l,isPressed:e.isOpen},t.children))}const Ko=d.forwardRef(function(e,l){let n=e["aria-labelledby"];[e,l]=Pe(e,l,Pi);let{dialogProps:i,titleProps:u}=Ir({...e,"aria-labelledby":n},l),r=d.useContext(je);!i["aria-label"]&&!i["aria-labelledby"]&&e["aria-labelledby"]&&(i["aria-labelledby"]=e["aria-labelledby"]);let o=we({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:r?.close||(()=>{})}}),s=re(e,{global:!0});return m.createElement("section",{...q(s,o,i),ref:l,slot:e.slot||void 0},m.createElement(pe,{values:[[nu,{slots:{[it]:{},title:{...u,level:2}}}],[Wi,{slots:{[it]:{},close:{onPress:()=>r?.close()}}}]]},o.children))});
14export{co as $,Ve as A,ir as B,kr as C,Un as D,$o as E,mo as F,Pr as G,gr as H,Nn as I,vr as J,er as K,jr as L,sl as M,yo as N,$e as O,Kr as P,br as Q,so as R,ao as S,Ar as T,On as U,tr as V,or as W,ar as X,Zu as Y,Gr as Z,Br as _,_r as a,Ur as a0,Mn as a1,je as a2,mt as a3,We as a4,Ru as a5,Lu as a6,_u as a7,Hu as a8,Nt as a9,ve as aa,Mt as ab,Or as ac,Te as ad,Tr as ae,Do as af,Ko as ag,Hr as ah,qr as b,xo as c,go as d,Co as e,So as f,Eo as g,Yl as h,ho as i,ur as j,rr as k,zt as l,Su as m,Xu as n,vo as o,fo as p,bo as q,Qu as r,_ as s,kt as t,vt as u,Be as v,il as w,pu as x,po as y,Di as z};
15//# sourceMappingURL=Dialog-Cbo2mfOd.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.