!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="429c98c2-8f9b-4b97-9f66-633de1f2448e",e._sentryDebugIdIdentifier="sentry-dbid-429c98c2-8f9b-4b97-9f66-633de1f2448e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1984],{69229:(e,t,l)=>{l.d(t,{s:()=>s});var n=l(56606),i=l(5987),o=l(58382),r=l(22512);function s(e,t){let l,{elementType:s="button",isDisabled:u,onPress:a,onPressStart:d,onPressEnd:c,onPressUp:p,onPressChange:f,preventFocusOnPress:h,allowFocusWhenDisabled:v,onClick:g,href:y,target:m,rel:b,type:E="button"}=e;l="button"===s?{type:E,disabled:u}:{role:"button",tabIndex:u?void 0:0,href:"a"!==s||u?void 0:y,target:"a"===s?m:void 0,type:"input"===s?E:void 0,disabled:"input"===s?u:void 0,"aria-disabled":u&&"input"!==s?u:void 0,rel:"a"===s?b:void 0};let{pressProps:C,isPressed:w}=(0,r.d)({onPressStart:d,onPressEnd:c,onPressChange:f,onPress:a,onPressUp:p,isDisabled:u,preventFocusOnPress:h,ref:t}),{focusableProps:S}=(0,o.W)(e,t);v&&(S.tabIndex=u?-1:S.tabIndex);let D=(0,n.v)(S,C,(0,i.$)(e,{labelable:!0}));return{isPressed:w,buttonProps:(0,n.v)(l,D,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{g&&(g(e),console.warn("onClick is deprecated, please use onPress"))}})}}},68623:(e,t,l)=>{l.d(t,{pM:()=>x,GQ:()=>y,yq:()=>S,KU:()=>w});class n{get childNodes(){throw Error("childNodes is not supported")}clone(){let e=new n(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=t}}class i{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let l=t.get(e),n=(null==l?void 0:l.firstChildKey)!=null?t.get(l.firstChildKey):null;for(;n;)yield n,n=null!=n.nextKey?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){var l;for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);return null!==(l=null==t?void 0:t.key)&&void 0!==l?l:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null!=t.parentKey)t=this.keyMap.get(t.parentKey);else break}return null}getFirstKey(){return this.firstKey}getLastKey(){var e;let t=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;(null==t?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(){throw Error("Not implemented")}clone(){let e=new this.constructor;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e}addNode(e){if(this.frozen)throw Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,l=!1){if(this.frozen)throw Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!l}filter(e){let t=new i,l=null;for(let n of this)if("section"===n.type&&n.hasChildNodes){let i=n.clone(),o=null;for(let l of this.getChildren(n.key))if(e(l.textValue)||"header"===l.type){let e=l.clone();null==o&&(i.firstChildKey=e.key),null==t.firstKey&&(t.firstKey=i.key),o&&o.parentKey===e.parentKey?(o.nextKey=e.key,e.prevKey=o.key):e.prevKey=null,e.nextKey=null,t.addNode(e),o=e}o&&("header"!==o.type?(i.lastChildKey=o.key,null==l?i.prevKey=null:("section"===l.type||"separator"===l.type)&&(l.nextKey=i.key,i.prevKey=l.key),i.nextKey=null,l=i,t.addNode(i)):(t.firstKey===i.key&&(t.firstKey=null),t.removeNode(o.key)))}else if("separator"===n.type){let e=n.clone();e.nextKey=null,(null==l?void 0:l.type)==="section"&&(l.nextKey=e.key,e.prevKey=l.key,l=e,t.addNode(e))}else if(e(n.textValue)){let e=n.clone();null==t.firstKey&&(t.firstKey=e.key),null!=l&&"section"!==l.type&&"separator"!==l.type&&l.parentKey===e.parentKey?(l.nextKey=e.key,e.prevKey=l.key):e.prevKey=null,e.nextKey=null,t.addNode(e),l=e}if((null==l?void 0:l.type)==="separator"&&null===l.nextKey){let e;null!=l.prevKey&&((e=t.getItem(l.prevKey)).nextKey=null),t.removeNode(l.key),l=e}return t.lastKey=(null==l?void 0:l.key)||null,t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class o{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let l=t;for(;l;)l.index++,l=l.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class r extends o{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof r?this.parentNode.level+("item"===this.node.type?1:0):0}updateNode(){var e,t,l,n,i,o,s,u;let a=this.ownerDocument.getMutableNode(this);a.index=this.index,a.level=this.level,a.parentKey=this.parentNode instanceof r?this.parentNode.node.key:null,a.prevKey=null!==(i=null===(e=this.previousSibling)||void 0===e?void 0:e.node.key)&&void 0!==i?i:null,a.nextKey=null!==(o=null===(t=this.nextSibling)||void 0===t?void 0:t.node.key)&&void 0!==o?o:null,a.hasChildNodes=!!this.firstChild,a.firstChildKey=null!==(s=null===(l=this.firstChild)||void 0===l?void 0:l.node.key)&&void 0!==s?s:null,a.lastChildKey=null!==(u=null===(n=this.lastChild)||void 0===n?void 0:n.node.key)&&void 0!==u?u:null}setProps(e,t,l,n){let i=this.ownerDocument.getMutableNode(this),{value:o,textValue:r,id:s,...u}=e;if(u.ref=t,i.props=u,i.rendered=l,i.render=n,i.value=o,i.textValue=r||("string"==typeof u.children?u.children:"")||e["aria-label"]||"",null!=s&&s!==i.key){if(this.hasSetProps)throw Error("Cannot change the id of an item");i.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new n(e,`react-aria-${++t.nodeId}`),this.ownerDocument.startTransaction()}}class s extends o{get isConnected(){return this.isMounted}createElement(e){return new r(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return this.isSSR||this.collectionMutated||(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let l of(t.addNode(e.node),e))this.addNode(l);this.markDirty(e)}removeNode(e){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0||this.updateCollection(),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof r&&e.isConnected&&e.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t,l,n;let i=this.getMutableCollection();for(let e of this.mutatedNodes)e.isConnected&&i.addNode(e.node);i.commit(null!==(l=null===(e=this.firstChild)||void 0===e?void 0:e.node.key)&&void 0!==l?l:null,null!==(n=null===(t=this.lastChild)||void 0===t?void 0:t.node.key)&&void 0!==n?n:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(0!==this.dirtyNodes.size&&!(this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}var u=l(64367),a=l(75127),d=l(40961),c=l(96540),p=l(60415),f=l(49953),h=l(19888);let v=(0,c.createContext)(!1),g=(0,c.createContext)(null);function y(e){if((0,c.useContext)(g))return e.content;let{collection:t,document:l}=function(e){let[t]=(0,c.useState)(()=>new s((null==e?void 0:e())||new i)),l=b((0,c.useCallback)(e=>t.subscribe(e),[t]),(0,c.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,c.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return(0,f.N)(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:l,document:t}}(e.createCollection);return c.createElement(c.Fragment,null,c.createElement(a.jZ,null,c.createElement(g.Provider,{value:l},e.content)),c.createElement(m,{render:e.children,collection:t}))}function m({collection:e,render:t}){return t(e)}let b="function"==typeof c.useSyncExternalStore?c.useSyncExternalStore:function(e,t,l){let n=(0,p.wR)(),i=(0,c.useRef)(n);i.current=n;let o=(0,c.useCallback)(()=>i.current?l():t(),[t,l]);return(0,h.useSyncExternalStore)(e,o)},E=(0,c.createContext)(null);function C(e,t,l,n,i,o){let r=(0,c.useCallback)(e=>{null==e||e.setProps(t,l,n,o)},[t,l,n,o]),s=(0,c.useContext)(E);if(s){let r=s.ownerDocument.nodesByProps.get(t);return r||((r=s.ownerDocument.createElement(e)).setProps(t,l,n,o),s.appendChild(r),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,r)),i?c.createElement(E.Provider,{value:r},i):null}return c.createElement(e,{ref:r},i)}function w(e,t){let l=({node:e})=>t(e.props,e.props.ref,e),n=(0,c.forwardRef)((n,i)=>{if(!(0,c.useContext)(v)){if(t.length>=3)throw Error(t.name+" cannot be rendered outside a collection.");return t(n,i)}return C(e,n,i,"children"in n?n.children:null,null,e=>c.createElement(l,{node:e}))});return n.displayName=t.name,n}function S(e,t,l=D){let n=({node:e})=>t(e.props,e.props.ref,e),i=(0,c.forwardRef)((t,i)=>{var o;let r=l(t);return null!==(o=C(e,t,i,null,r,e=>c.createElement(n,{node:e})))&&void 0!==o?o:c.createElement(c.Fragment,null)});return i.displayName=t.name,i}function D(e){return(0,u.p)({...e,addIdAndValue:!0})}let K=(0,c.createContext)(null);function x(e){let t=(0,c.useContext)(K),l=((null==t?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(null==t?void 0:t.idScope),i=D({...e,idScope:n,dependencies:l});return(0,c.useContext)(g)&&(i=c.createElement(P,null,i)),t=(0,c.useMemo)(()=>({dependencies:l,idScope:n}),[n,...l]),c.createElement(K.Provider,{value:t},i)}function P({children:e}){let t=(0,c.useContext)(g),l=(0,c.useMemo)(()=>c.createElement(g.Provider,{value:null},c.createElement(v.Provider,{value:!0},e)),[e]);return(0,p.wR)()?c.createElement(E.Provider,{value:t},l):(0,d.createPortal)(l,t)}},64367:(e,t,l)=>{l.d(t,{p:()=>i});var n=l(96540);function i(e){let{children:t,items:l,idScope:i,addIdAndValue:o,dependencies:r=[]}=e,s=(0,n.useMemo)(()=>new WeakMap,r);return(0,n.useMemo)(()=>{if(l&&"function"==typeof t){let u=[];for(let a of l){let l=s.get(a);if(!l){var e,r;let u=null!==(r=null!==(e=(l=t(a)).props.id)&&void 0!==e?e:a.key)&&void 0!==r?r:a.id;if(null==u)throw Error("Could not determine key for item");i&&(u=i+":"+u),l=(0,n.cloneElement)(l,o?{key:u,id:u,value:a}:{key:u}),s.set(a,l)}u.push(l)}return u}if("function"!=typeof t)return t},[t,l,s,i,o])}},68305:(e,t,l)=>{l.d(t,{n1:()=>p,N$:()=>P,Pu:()=>E});var n=l(58374),i=l(24836),o=l(95562),r=l(49953),s=l(69202),u=l(96540);let a=u.createContext(null),d="react-aria-focus-scope-restore",c=null;function p(e){let t,l,{children:n,contain:p,restoreFocus:f,autoFocus:h}=e,v=(0,u.useRef)(null),E=(0,u.useRef)(null),k=(0,u.useRef)([]),{parentNode:B}=(0,u.useContext)(a)||{},M=(0,u.useMemo)(()=>new R({scopeRef:k}),[k]);(0,r.N)(()=>{let e=B||N.root;if(N.getTreeNode(e.scopeRef)&&c&&!C(c,e.scopeRef)){let t=N.getTreeNode(c);t&&(e=t)}e.addChild(M),N.addNode(M)},[M,B]),(0,r.N)(()=>{let e=N.getTreeNode(k);e&&(e.contain=!!p)},[p]),(0,r.N)(()=>{var e;let t=null===(e=v.current)||void 0===e?void 0:e.nextSibling,l=[],n=e=>e.stopPropagation();for(;t&&t!==E.current;)l.push(t),t.addEventListener(d,n),t=t.nextSibling;return k.current=l,()=>{for(let e of l)e.removeEventListener(d,n)}},[n]),(0,r.N)(()=>{if(f||p)return;let e=k.current,t=(0,i.T)(e?e[0]:void 0),l=e=>{let t=e.target;m(t,k.current)?c=k:b(t)||(c=null)};return t.addEventListener("focusin",l,!1),null==e||e.forEach(e=>e.addEventListener("focusin",l,!1)),()=>{t.removeEventListener("focusin",l,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",l,!1))}},[k,f,p]),t=(0,u.useRef)(void 0),l=(0,u.useRef)(void 0),(0,r.N)(()=>{let e=k.current;if(!p){l.current&&(cancelAnimationFrame(l.current),l.current=void 0);return}let n=(0,i.T)(e?e[0]:void 0),r=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!y(k)||e.isComposing)return;let t=n.activeElement,l=k.current;if(!l||!m(t,l))return;let i=P(g(l),{tabbable:!0},l);if(!t)return;i.currentNode=t;let o=e.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=e.shiftKey?l[l.length-1].nextElementSibling:l[0].previousElementSibling,o=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),o&&w(o,!0)},u=e=>{(!c||C(c,k))&&m(e.target,k.current)?(c=k,t.current=e.target):y(k)&&!b(e.target,k)?t.current?t.current.focus():c&&c.current&&D(c.current):y(k)&&(t.current=e.target)},a=e=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{let l=(0,o.ME)();if(!(("virtual"===l||null===l)&&(0,s.m0)()&&(0,s.H8)())&&n.activeElement&&y(k)&&!b(n.activeElement,k)){if(c=k,n.body.contains(e.target)){var i;t.current=e.target,null===(i=t.current)||void 0===i||i.focus()}else c.current&&D(c.current)}})};return n.addEventListener("keydown",r,!1),n.addEventListener("focusin",u,!1),null==e||e.forEach(e=>e.addEventListener("focusin",u,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",a,!1)),()=>{n.removeEventListener("keydown",r,!1),n.removeEventListener("focusin",u,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",u,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",a,!1))}},[k,p]),(0,r.N)(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[l]),function(e,t,l){let n=(0,u.useRef)("undefined"!=typeof document?(0,i.T)(e.current?e.current[0]:void 0).activeElement:null);(0,r.N)(()=>{let n=e.current,o=(0,i.T)(n?n[0]:void 0);if(!t||l)return;let r=()=>{(!c||C(c,e))&&m(o.activeElement,e.current)&&(c=e)};return o.addEventListener("focusin",r,!1),null==n||n.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{o.removeEventListener("focusin",r,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",r,!1))}},[e,l]),(0,r.N)(()=>{let n=(0,i.T)(e.current?e.current[0]:void 0);if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!y(e)||t.isComposing)return;let l=n.activeElement;if(!b(l,e)||!K(e))return;let i=N.getTreeNode(e);if(!i)return;let o=i.nodeToRestore,r=P(n.body,{tabbable:!0});r.currentNode=l;let s=t.shiftKey?r.previousNode():r.nextNode();if(o&&n.body.contains(o)&&o!==n.body||(o=void 0,i.nodeToRestore=void 0),(!s||!b(s,e))&&o){r.currentNode=o;do s=t.shiftKey?r.previousNode():r.nextNode();while(b(s,e));(t.preventDefault(),t.stopPropagation(),s)?w(s,!0):b(o)?w(o,!0):l.blur()}};return l||n.addEventListener("keydown",o,!0),()=>{l||n.removeEventListener("keydown",o,!0)}},[e,t,l]),(0,r.N)(()=>{var l;let o=(0,i.T)(e.current?e.current[0]:void 0);if(!t)return;let r=N.getTreeNode(e);if(r)return r.nodeToRestore=null!==(l=n.current)&&void 0!==l?l:void 0,()=>{let l=N.getTreeNode(e);if(!l)return;let n=l.nodeToRestore;if(t&&n&&(o.activeElement&&b(o.activeElement,e)||o.activeElement===o.body&&K(e))){let t=N.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let l=t.getTreeNode(e);for(;l;){if(l.nodeToRestore&&l.nodeToRestore.isConnected){x(l.nodeToRestore);return}l=l.parent}for(l=t.getTreeNode(e);l;){if(l.scopeRef&&l.scopeRef.current&&N.getTreeNode(l.scopeRef)){x(S(l.scopeRef.current,!0));return}l=l.parent}}})}}},[e,t])}(k,f,p),function(e,t){let l=u.useRef(t);(0,u.useEffect)(()=>{l.current&&(c=e,!m((0,i.T)(e.current?e.current[0]:void 0).activeElement,c.current)&&e.current&&D(e.current)),l.current=!1},[e])}(k,h),(0,u.useEffect)(()=>{let e=(0,i.T)(k.current?k.current[0]:void 0).activeElement,t=null;if(m(e,k.current)){for(let l of N.traverse())l.scopeRef&&m(e,l.scopeRef.current)&&(t=l);t===N.getTreeNode(k)&&(c=t.scopeRef)}},[k]),(0,r.N)(()=>()=>{var e,t,l;let n=null!==(l=null===(t=N.getTreeNode(k))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==l?l:null;(k===c||C(k,c))&&(!n||N.getTreeNode(n))&&(c=n),N.removeTreeNode(k)},[k]);let T=(0,u.useMemo)(()=>({focusNext(e={}){let t=k.current,{from:l,tabbable:n,wrap:o,accept:r}=e,s=l||(0,i.T)(t[0]).activeElement,u=t[0].previousElementSibling,a=P(g(t),{tabbable:n,accept:r},t);a.currentNode=m(s,t)?s:u;let d=a.nextNode();return!d&&o&&(a.currentNode=u,d=a.nextNode()),d&&w(d,!0),d},focusPrevious(e={}){let t=k.current,{from:l,tabbable:n,wrap:o,accept:r}=e,s=l||(0,i.T)(t[0]).activeElement,u=t[t.length-1].nextElementSibling,a=P(g(t),{tabbable:n,accept:r},t);a.currentNode=m(s,t)?s:u;let d=a.previousNode();return!d&&o&&(a.currentNode=u,d=a.previousNode()),d&&w(d,!0),d},focusFirst(e={}){let t=k.current,{tabbable:l,accept:n}=e,i=P(g(t),{tabbable:l,accept:n},t);i.currentNode=t[0].previousElementSibling;let o=i.nextNode();return o&&w(o,!0),o},focusLast(e={}){let t=k.current,{tabbable:l,accept:n}=e,i=P(g(t),{tabbable:l,accept:n},t);i.currentNode=t[t.length-1].nextElementSibling;let o=i.previousNode();return o&&w(o,!0),o}}),[]),F=(0,u.useMemo)(()=>({focusManager:T,parentNode:M}),[M,T]);return u.createElement(a.Provider,{value:F},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:v}),n,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:E}))}let f=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],h=f.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";f.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let v=f.join(':not([hidden]):not([tabindex="-1"]),');function g(e){return e[0].parentElement}function y(e){let t=N.getTreeNode(c);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function b(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:l}of N.traverse(N.getTreeNode(t)))if(l&&m(e,l.current))return!0;return!1}function E(e){return b(e,c)}function C(e,t){var l;let n=null===(l=N.getTreeNode(t))||void 0===l?void 0:l.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function w(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,n.l)(e)}catch{}}function S(e,t=!0){let l=e[0].previousElementSibling,n=g(e),i=P(n,{tabbable:t},e);i.currentNode=l;let o=i.nextNode();return t&&!o&&((i=P(n=g(e),{tabbable:!1},e)).currentNode=l,o=i.nextNode()),o}function D(e,t=!0){w(S(e,t))}function K(e){let t=N.getTreeNode(c);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function x(e){e.dispatchEvent(new CustomEvent(d,{bubbles:!0,cancelable:!0}))&&w(e)}function P(e,t,l){let n=(null==t?void 0:t.tabbable)?v:h,o=(0,i.T)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(n)&&function e(t,l){return"#comment"!==t.nodeName&&function(e){let t=(0,i.m)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:l,visibility:n}=e.style,o="none"!==l&&"hidden"!==n&&"collapse"!==n;if(o){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:l,visibility:n}=t(e);o="none"!==l&&"hidden"!==n&&"collapse"!==n}return o}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!l||"SUMMARY"===l.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!l||m(e,l))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class k{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,l){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let i=new R({scopeRef:e});n.addChild(i),i.parent=n,this.fastMap.set(e,i),l&&(i.nodeToRestore=l)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let l=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;l&&(l.removeChild(t),n.size>0&&n.forEach(e=>l&&l.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let l=new k;for(let n of this.traverse())l.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return l}constructor(){this.fastMap=new Map,this.root=new R({scopeRef:null}),this.fastMap.set(null,this.root)}}class R{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 N=new k},39892:(e,t,l)=>{l.d(t,{Y:()=>f});let n=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var o=l(96540),r=l(60415);let s=Symbol.for("react-aria.i18n.locale");function u(){let e="undefined"!=typeof window&&window[s]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),l="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(l)return"rtl"===l.direction;if(t.script)return n.has(t.script)}let t=e.split("-")[0];return i.has(t)}(e)?"ltr":"rtl"}}let a=u(),d=new Set;function c(){for(let e of(a=u(),d))e(a)}let p=o.createContext(null);function f(){let e=function(){let e=(0,r.wR)(),[t,l]=(0,o.useState)(a);return((0,o.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",c),d.add(l),()=>{d.delete(l),0===d.size&&window.removeEventListener("languagechange",c)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}();return(0,o.useContext)(p)||e}},82627:(e,t,l)=>{l.d(t,{Q:()=>o});var n=l(39892);let i=new Map;function o(e){let{locale:t}=(0,n.Y)(),l=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(i.has(l))return i.get(l);let o=new Intl.Collator(t,e);return i.set(l,o),o}},46246:(e,t,l)=>{let n;l.d(t,{o:()=>f});var i=l(39892);let o=Symbol.for("react-aria.i18n.locale"),r=Symbol.for("react-aria.i18n.strings");class s{getStringForLocale(e,t){let l=this.getStringsForLocale(t)[e];if(!l)throw Error(`Could not find intl message ${e} in ${t} locale`);return l}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,l="en-US"){if(t[e])return t[e];let n=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[l]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[o];if(void 0===n){let e=window[r];if(!e)return null;for(let l in n={},e)n[l]=new s({[t]:e[l]},t)}let l=null==n?void 0:n[e];if(!l)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return l}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let u=new Map,a=new Map;class d{format(e,t){let l=this.strings.getStringForLocale(e,this.locale);return"function"==typeof l?l(t,this):l}plural(e,t,l="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let i=this.locale+":"+l,o=u.get(i);return o||(o=new Intl.PluralRules(this.locale,{type:l}),u.set(i,o)),"function"==typeof(n=t[o.select(e)]||t.other)?n():n}number(e){let t=a.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),a.set(this.locale,t)),t.format(e)}select(e,t){let l=e[t]||e.other;return"function"==typeof l?l():l}constructor(e,t){this.locale=e,this.strings=t}}var c=l(96540);let p=new WeakMap;function f(e,t){let l,{locale:n}=(0,i.Y)(),o=t&&s.getGlobalDictionaryForPackage(t)||((l=p.get(e))||(l=new s(e),p.set(e,l)),l);return(0,c.useMemo)(()=>new d(n,o),[n,o])}},89274:(e,t,l)=>{l.d(t,{H:()=>d});var n=l(22512),i=l(76948),o=l(49953),r=l(96540);let s=0,u=new Map;var a=l(56606);function d(e){let{isDisabled:t,onLongPressStart:l,onLongPressEnd:d,onLongPress:c,threshold:p=500,accessibilityDescription:f}=e,h=(0,r.useRef)(void 0),{addGlobalListener:v,removeGlobalListener:g}=(0,i.A)(),{pressProps:y}=(0,n.d)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(l&&l({...e,type:"longpressstart"}),h.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),c&&c({...e,type:"longpress"}),h.current=void 0},p),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};v(e.target,"contextmenu",t,{once:!0}),v(window,"pointerup",()=>{setTimeout(()=>{g(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){h.current&&clearTimeout(h.current),d&&("mouse"===e.pointerType||"touch"===e.pointerType)&&d({...e,type:"longpressend"})}}),m=function(e){let[t,l]=(0,r.useState)();return(0,o.N)(()=>{if(!e)return;let t=u.get(e);if(t)l(t.element.id);else{let n=`react-aria-description-${s++}`;l(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},u.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),u.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}(c&&!t?f:void 0);return{longPressProps:(0,a.v)(y,m)}}},44815:(e,t,l)=>{l.d(t,{X:()=>f});var n=l(97918),i=l(5987),o=l(84137),r=l(56606),s=l(59461),u=l(64887),a=l(13850),d=l(97275),c=l(82627),p=l(96540);function f(e,t,l){let f=(0,i.$)(e,{labelable:!0}),h=e.selectionBehavior||"toggle",v=e.linkBehavior||("replace"===h?"action":"override");"toggle"===h&&"action"===v&&(v="override");let{listProps:g}=function(e){let{selectionManager:t,collection:l,disabledKeys:n,ref:i,keyboardDelegate:o,layoutDelegate:r}=e,s=(0,c.Q)({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,f=(0,p.useMemo)(()=>o||new d.n({collection:l,disabledKeys:n,disabledBehavior:u,ref:i,collator:s,layoutDelegate:r}),[o,r,l,n,i,s,u]),{collectionProps:h}=(0,a.y)({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:h}}({...e,ref:l,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:v}),{focusWithinProps:y}=(0,s.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),m=(0,o.Bi)(e.id);(0,n.b).set(t,{id:m,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:v});let{labelProps:b,fieldProps:E}=(0,u.M)({...e,id:m,labelElementType:"span"});return{labelProps:b,listBoxProps:(0,r.v)(f,y,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,r.v)(E,g)})}}},27474:(e,t,l)=>{l.d(t,{x:()=>w});var n=l(97918),i=l(84137),o=l(69202),r=l(72166),s=l(5987),u=l(43831),a=l(56606),d=l(70732),c=l(16638),p=l(95562),f=l(4345),h=l(58374),v=l(3704),g=l(44178),y=l(22512),m=l(89274),b=l(96540);function E(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function C(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}function w(e,t,l){var w,S,D,K,x,P,k,R;let{key:N}=e,B=(0,n.b).get(t),M=null!==(D=e.isDisabled)&&void 0!==D?D:t.selectionManager.isDisabled(N),T=null!==(K=e.isSelected)&&void 0!==K?K:t.selectionManager.isSelected(N),F=null!==(x=e.shouldSelectOnPressUp)&&void 0!==x?x:null==B?void 0:B.shouldSelectOnPressUp,A=null!==(P=e.shouldFocusOnHover)&&void 0!==P?P:null==B?void 0:B.shouldFocusOnHover,L=null!==(k=e.shouldUseVirtualFocus)&&void 0!==k?k:null==B?void 0:B.shouldUseVirtualFocus,z=null!==(R=e.isVirtualized)&&void 0!==R?R:null==B?void 0:B.isVirtualized,I=(0,i.X1)(),O=(0,i.X1)(),V={role:"option","aria-disabled":M||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?T:void 0};(0,o.cX)()&&(0,o.Tc)()||(V["aria-label"]=e["aria-label"],V["aria-labelledby"]=I,V["aria-describedby"]=O);let H=t.collection.getItem(N);if(z){let e=Number(null==H?void 0:H.index);V["aria-posinset"]=Number.isNaN(e)?void 0:e+1,V["aria-setsize"]=(0,d.v)(t.collection)}let U=(null==B?void 0:B.onAction)?()=>{var e;return null==B?void 0:null===(e=B.onAction)||void 0===e?void 0:e.call(B,N)}:void 0,_=(0,n.H)(t,N),{itemProps:W,isPressed:$,isFocused:j,hasAction:q,allowsSelection:Z}=function(e){let{id:t,selectionManager:l,key:n,ref:o,shouldSelectOnPressUp:r,shouldUseVirtualFocus:s,focus:d,isDisabled:c,onAction:p,allowsDifferentPressOrigin:w,linkBehavior:S="action"}=e,D=(0,u.rd)();t=(0,i.Bi)(t);let K=e=>{if("keyboard"===e.pointerType&&(0,f.N)(e))l.toggleSelection(n);else{if("none"===l.selectionMode)return;if(l.isLink(n)){if("selection"===S&&o.current){let t=l.getItemProps(n);D.open(o.current,e,t.href,t.routerOptions),l.setSelectedKeys(l.selectedKeys);return}if("override"===S||"none"===S)return}"single"===l.selectionMode?l.isSelected(n)&&!l.disallowEmptySelection?l.toggleSelection(n):l.replaceSelection(n):e&&e.shiftKey?l.extendSelection(n):"toggle"===l.selectionBehavior||e&&((0,v.B)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?l.toggleSelection(n):l.replaceSelection(n)}};(0,b.useEffect)(()=>{if(n===l.focusedKey&&l.isFocused){if(s){var e;let t=new CustomEvent(g.yI,{cancelable:!0,bubbles:!0});null===(e=o.current)||void 0===e||e.dispatchEvent(t)}else d?d():document.activeElement!==o.current&&o.current&&(0,h.l)(o.current)}},[o,n,l.focusedKey,l.childFocusStrategy,l.isFocused,s]),c=c||l.isDisabled(n);let x={};s||c?c&&(x.onMouseDown=e=>{e.preventDefault()}):x={tabIndex:n===l.focusedKey?0:-1,onFocus(e){e.target===o.current&&l.setFocusedKey(n)}};let P=l.isLink(n)&&"override"===S,k=l.isLink(n)&&"selection"!==S&&"none"!==S,R=!c&&l.canSelectItem(n)&&!P,N=(p||k)&&!c,B=N&&("replace"===l.selectionBehavior?!R:!R||l.isEmpty),M=N&&R&&"replace"===l.selectionBehavior,T=B||M,F=(0,b.useRef)(null),A=T&&R,L=(0,b.useRef)(!1),z=(0,b.useRef)(!1),I=e=>{if(p&&p(),k&&o.current){let t=l.getItemProps(n);D.open(o.current,e,t.href,t.routerOptions)}},O={};r?(O.onPressStart=e=>{F.current=e.pointerType,L.current=A,"keyboard"===e.pointerType&&(!T||C())&&K(e)},w?(O.onPressUp=B?void 0:e=>{"mouse"===e.pointerType&&R&&K(e)},O.onPress=B?I:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&R&&K(e)}):O.onPress=e=>{B||M&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||E())&&I(e):"keyboard"!==e.pointerType&&R&&K(e)}):(O.onPressStart=e=>{F.current=e.pointerType,L.current=A,z.current=B,R&&("mouse"===e.pointerType&&!B||"keyboard"===e.pointerType&&(!N||C()))&&K(e)},O.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&T&&E()||"mouse"===e.pointerType&&z.current)&&(T?I(e):R&&K(e))}),x["data-key"]=n,O.preventFocusOnPress=s;let{pressProps:V,isPressed:H}=(0,y.d)(O),U=M?e=>{"mouse"===F.current&&(e.stopPropagation(),e.preventDefault(),I(e))}:void 0,{longPressProps:_}=(0,m.H)({isDisabled:!A,onLongPress(e){"touch"===e.pointerType&&(K(e),l.setSelectionBehavior("toggle"))}}),W=l.isLink(n)?e=>{u.Fe.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,a.v)(x,R||B?V:{},A?_:{},{onDoubleClick:U,onDragStartCapture:e=>{"touch"===F.current&&L.current&&e.preventDefault()},onClick:W,id:t}),isPressed:H,isSelected:l.isSelected(n),isFocused:l.isFocused&&l.focusedKey===n,isDisabled:c,allowsSelection:R,hasAction:T}}({selectionManager:t.selectionManager,key:N,ref:l,shouldSelectOnPressUp:F,allowsDifferentPressOrigin:F&&A,isVirtualized:z,shouldUseVirtualFocus:L,isDisabled:M,onAction:U||(null==H?void 0:null===(w=H.props)||void 0===w?void 0:w.onAction)?(0,r.c)(null==H?void 0:null===(S=H.props)||void 0===S?void 0:S.onAction,U):void 0,linkBehavior:null==B?void 0:B.linkBehavior,id:_}),{hoverProps:J}=(0,c.M)({isDisabled:M||!A,onHoverStart(){(0,p.pP)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(N))}}),G=(0,s.$)(null==H?void 0:H.props);delete G.id;let Y=(0,u._h)(null==H?void 0:H.props);return{optionProps:{...V,...(0,a.v)(G,W,J,Y),id:_},labelProps:{id:I},descriptionProps:{id:O},isFocused:j,isFocusVisible:j&&(0,p.pP)(),isSelected:T,isDisabled:M,isPressed:$,allowsSelection:Z,hasAction:q}}},97918:(e,t,l)=>{l.d(t,{H:()=>i,b:()=>n});let n=new WeakMap;function i(e,t){let l=n.get(e);if(!l)throw Error("Unknown list");return`${l.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}},60771:(e,t,l)=>{l.d(t,{iP:()=>i});let n=null;function i(e,t="assertive",l=7e3){n?n.announce(e,t,l):(n=new o,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?n.announce(e,t,l):setTimeout(()=>{(null==n?void 0:n.isAttached())&&(null==n||n.announce(e,t,l))},100))}class o{isAttached(){var e;return null===(e=this.node)||void 0===e?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",l=7e3){var n,i;if(!this.node)return;let o=document.createElement("div");"object"==typeof e?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,"assertive"===t?null===(n=this.assertiveLog)||void 0===n||n.appendChild(o):null===(i=this.politeLog)||void 0===i||i.appendChild(o),""!==e&&setTimeout(()=>{o.remove()},l)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}},74400:(e,t,l)=>{l.d(t,{V:()=>a});var n={};n={"ar-AE":{longPressMessage:`\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{627}\u{64B} \u{623}\u{648} \u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Alt + \u{627}\u{644}\u{633}\u{647}\u{645} \u{644}\u{623}\u{633}\u{641}\u{644} \u{644}\u{641}\u{62A}\u{62D} \u{627}\u{644}\u{642}\u{627}\u{626}\u{645}\u{629}`},"bg-BG":{longPressMessage:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt+ \u{441}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{43D}\u{430}\u{434}\u{43E}\u{43B}\u{443}, \u{437}\u{430} \u{434}\u{430} \u{43E}\u{442}\u{432}\u{43E}\u{440}\u{438}\u{442}\u{435} \u{43C}\u{435}\u{43D}\u{44E}\u{442}\u{43E}`},"cs-CZ":{longPressMessage:`Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + \u{161}ipka dol\u{16F} otev\u{159}ete nab\xeddku`},"da-DK":{longPressMessage:`Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen`},"de-DE":{longPressMessage:`Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen`},"el-GR":{longPressMessage:`\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}`},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa`},"et-EE":{longPressMessage:`Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool`},"fi-FI":{longPressMessage:`Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli`},"fr-FR":{longPressMessage:`Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`},"he-IL":{longPressMessage:`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5D0}\u{5D5} \u{5D4}\u{5E7}\u{5E9} Alt + ArrowDown \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E4}\u{5EA}\u{5D5}\u{5D7} \u{5D0}\u{5EA} \u{5D4}\u{5EA}\u{5E4}\u{5E8}\u{5D9}\u{5D8}`},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz`},"it-IT":{longPressMessage:`Premere a lungo o premere Alt + Freccia gi\xf9 per aprire il menu`},"ja-JP":{longPressMessage:`\u{9577}\u{62BC}\u{3057}\u{307E}\u{305F}\u{306F} Alt+\u{4E0B}\u{77E2}\u{5370}\u{30AD}\u{30FC}\u{3067}\u{30E1}\u{30CB}\u{30E5}\u{30FC}\u{3092}\u{958B}\u{304F}`},"ko-KR":{longPressMessage:`\u{AE38}\u{AC8C} \u{B204}\u{B974}\u{AC70}\u{B098} Alt + \u{C544}\u{B798}\u{CABD} \u{D654}\u{C0B4}\u{D45C}\u{B97C} \u{B20C}\u{B7EC} \u{BA54}\u{B274} \u{C5F4}\u{AE30}`},"lt-LT":{longPressMessage:`Nor\u{117}dami atidaryti meniu, nuspaud\u{119} palaikykite arba paspauskite \u{201E}Alt + ArrowDown\u{201C}.`},"lv-LV":{longPressMessage:`Lai atv\u{113}rtu izv\u{113}lni, turiet nospiestu vai nospiediet tausti\u{146}u kombin\u{101}ciju Alt + lejupv\u{113}rst\u{101} bulti\u{146}a`},"nb-NO":{longPressMessage:`Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen`},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:`Naci\u{15B}nij i przytrzymaj lub naci\u{15B}nij klawisze Alt + Strza\u{142}ka w d\xf3\u{142}, aby otworzy\u{107} menu`},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:`Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul`},"ru-RU":{longPressMessage:`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + \u{421}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43E}\u{442}\u{43A}\u{440}\u{44B}\u{442}\u{44C} \u{43C}\u{435}\u{43D}\u{44E}`},"sk-SK":{longPressMessage:`Ponuku otvor\xedte dlh\xfdm stla\u{10D}en\xedm alebo stla\u{10D}en\xedm kl\xe1vesu Alt + kl\xe1vesu so \u{161}\xedpkou nadol`},"sl-SI":{longPressMessage:`Za odprtje menija pritisnite in dr\u{17E}ite gumb ali pritisnite Alt+pu\u{161}\u{10D}ica navzdol`},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`},"tr-TR":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun bas\u{131}n veya Alt + A\u{15F}a\u{11F}\u{131} Ok tu\u{15F}una bas\u{131}n`},"uk-UA":{longPressMessage:`\u{414}\u{43E}\u{432}\u{433}\u{43E} \u{430}\u{431}\u{43E} \u{437}\u{432}\u{438}\u{447}\u{430}\u{439}\u{43D}\u{43E} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} \u{43A}\u{43E}\u{43C}\u{431}\u{456}\u{43D}\u{430}\u{446}\u{456}\u{44E} \u{43A}\u{43B}\u{430}\u{432}\u{456}\u{448} Alt \u{456} \u{441}\u{442}\u{440}\u{456}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{449}\u{43E}\u{431} \u{432}\u{456}\u{434}\u{43A}\u{440}\u{438}\u{442}\u{438} \u{43C}\u{435}\u{43D}\u{44E}`},"zh-CN":{longPressMessage:`\u{957F}\u{6309}\u{6216}\u{6309} Alt + \u{5411}\u{4E0B}\u{65B9}\u{5411}\u{952E}\u{4EE5}\u{6253}\u{5F00}\u{83DC}\u{5355}`},"zh-TW":{longPressMessage:`\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}`}};var i=l(84137),o=l(46246),r=l(89274),s=l(4960),u=l(96540);function a(e,t,l){var a;let{type:d="menu",isDisabled:c,trigger:p="press"}=e,f=(0,i.Bi)(),{triggerProps:h,overlayProps:v}=function(e,t,l){let n,{type:o}=e,{isOpen:r}=t;(0,u.useEffect)(()=>{l&&l.current&&(0,s.a).set(l.current,t.close)}),"menu"===o?n=!0:"listbox"===o&&(n="listbox");let a=(0,i.Bi)();return{triggerProps:{"aria-haspopup":n,"aria-expanded":r,"aria-controls":r?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}({type:d},t,l),g=(0,o.o)((a=n)&&a.__esModule?a.default:a,"@react-aria/menu"),{longPressProps:y}=(0,r.H)({isDisabled:c||"longPress"!==p,accessibilityDescription:g.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete h.onPress,{menuTriggerProps:{...h,..."press"===p?{onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||c||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||c||t.toggle()}}:y,id:f,onKeyDown:e=>{if(!c&&("longPress"!==p||e.altKey)&&l&&l.current)switch(e.key){case"Enter":case" ":if("longPress"===p)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...v,"aria-labelledby":f,autoFocus:t.focusStrategy||!0,onClose:t.close}}}},91821:(e,t,l)=>{l.d(t,{R:()=>u});var n={};n={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var i=l(96540),o=l(37061),r=l(46246),s=l(87979);function u(e){var t;let{onDismiss:l,...u}=e,a=(0,r.o)((t=n)&&t.__esModule?t.default:t,"@react-aria/overlays"),d=(0,o.b)(u,a.format("dismiss"));return i.createElement(s.s,null,i.createElement("button",{...d,tabIndex:-1,onClick:()=>{l&&l()},style:{width:1,height:1}}))}},56179:(e,t,l)=>{l.d(t,{hJ:()=>p,Se:()=>f});var n=l(96540);let i=(0,n.createContext)({});var o=l(48084);function r({children:e}){let t=(0,n.useMemo)(()=>({register:()=>{}}),[]);return n.createElement(o.F.Provider,{value:t},e)}var s=l(68305),u=l(40961),a=l(60415),d=l(49953);let c=n.createContext(null);function p(e){var t;let l=(0,a.wR)(),{portalContainer:o=l?null:document.body,isExiting:d}=e,[p,f]=(0,n.useState)(!1),h=(0,n.useMemo)(()=>({contain:p,setContain:f}),[p,f]),{getContainer:v}=null!==(t=(0,n.useContext)(i))&&void 0!==t?t:{};if(!e.portalContainer&&v&&(o=v()),!o)return null;let g=e.children;return e.disableFocusManagement||(g=n.createElement(s.n1,{restoreFocus:!0,contain:p&&!d},g)),g=n.createElement(c.Provider,{value:h},n.createElement(r,null,g)),u.createPortal(g,o)}function f(){let e=(0,n.useContext)(c),t=null==e?void 0:e.setContain;(0,d.N)(()=>{null==t||t(!0)},[t])}},2269:(e,t,l)=>{l.d(t,{h:()=>o});let n=new WeakMap,i=[];function o(e,t=document.body){let l=new Set(e),r=new Set,s=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(l.has(e)||e.parentElement&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),i=t(e);if(i===NodeFilter.FILTER_ACCEPT&&u(e),i!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)u(e),e=n.nextNode()}},u=e=>{var t;let l=null!==(t=n.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==l)&&(0===l&&e.setAttribute("aria-hidden","true"),r.add(e),n.set(e,l+1))};i.length&&i[i.length-1].disconnect(),s(t);let a=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...l,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(l.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&s(e)}});a.observe(t,{childList:!0,subtree:!0});let d={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return i.push(d),()=>{for(let e of(a.disconnect(),r)){let t=n.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),n.delete(e)):n.set(e,t-1))}d===i[i.length-1]?(i.pop(),i.length&&i[i.length-1].observe()):i.splice(i.indexOf(d),1)}}},4960:(e,t,l)=>{l.d(t,{a:()=>i,o:()=>o});var n=l(96540);let i=new WeakMap;function o(e){let{triggerRef:t,isOpen:l,onClose:o}=e;(0,n.useEffect)(()=>{if(!l||null===o)return;let e=e=>{let l=e.target;if(!t.current||l instanceof Node&&!l.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let n=o||i.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[l,o,t])}},90757:(e,t,l)=>{l.d(t,{e:()=>d});var n=l(68305),i=l(96540),o=l(7049),r=l(24836);function s(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}var u=l(59461);let a=[];function d(e,t){let{onClose:l,shouldCloseOnBlur:d,isOpen:c,isDismissable:p=!1,isKeyboardDismissDisabled:f=!1,shouldCloseOnInteractOutside:h}=e;(0,i.useEffect)(()=>(c&&a.push(t),()=>{let e=a.indexOf(t);e>=0&&a.splice(e,1)}),[c,t]);let v=()=>{a[a.length-1]===t&&l&&l()};!function(e){let{ref:t,onInteractOutside:l,isDisabled:n,onInteractOutsideStart:u}=e,a=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),d=(0,o.J)(e=>{l&&s(e,t)&&(u&&u(e),a.current.isPointerDown=!0)}),c=(0,o.J)(e=>{l&&l(e)});(0,i.useEffect)(()=>{let e=a.current;if(n)return;let l=t.current,i=(0,r.T)(l);if("undefined"!=typeof PointerEvent){let l=l=>{e.isPointerDown&&s(l,t)&&c(l),e.isPointerDown=!1};return i.addEventListener("pointerdown",d,!0),i.addEventListener("pointerup",l,!0),()=>{i.removeEventListener("pointerdown",d,!0),i.removeEventListener("pointerup",l,!0)}}{let l=l=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&s(l,t)&&c(l),e.isPointerDown=!1},n=l=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&s(l,t)&&c(l),e.isPointerDown=!1};return i.addEventListener("mousedown",d,!0),i.addEventListener("mouseup",l,!0),i.addEventListener("touchstart",d,!0),i.addEventListener("touchend",n,!0),()=>{i.removeEventListener("mousedown",d,!0),i.removeEventListener("mouseup",l,!0),i.removeEventListener("touchstart",d,!0),i.removeEventListener("touchend",n,!0)}}},[t,n,d,c])}({ref:t,onInteractOutside:p&&c?e=>{(!h||h(e.target))&&(a[a.length-1]===t&&(e.stopPropagation(),e.preventDefault()),v())}:void 0,onInteractOutsideStart:e=>{(!h||h(e.target))&&a[a.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:g}=(0,u.R)({isDisabled:!d,onBlurWithin:e=>{!(!e.relatedTarget||(0,n.Pu)(e.relatedTarget))&&(!h||h(e.relatedTarget))&&(null==l||l())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||f||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),v())},...g},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},31364:(e,t,l)=>{l.d(t,{v:()=>x});var n=l(69202),i=l(91945);let o={top:"top",bottom:"top",left:"left",right:"left"},r={top:"bottom",bottom:"top",left:"right",right:"left"},s={top:"left",left:"top"},u={top:"height",left:"width"},a={width:"totalWidth",height:"totalHeight"},d={},c="undefined"!=typeof document?window.visualViewport:null;function p(e){var t,l,i,o,r;let s=0,u=0,a=0,d=0,p=0,f=0,h={},v=(null!==(t=null==c?void 0:c.scale)&&void 0!==t?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;a=t.clientWidth,d=t.clientHeight,s=null!==(l=null==c?void 0:c.width)&&void 0!==l?l:a,u=null!==(i=null==c?void 0:c.height)&&void 0!==i?i:d,h.top=t.scrollTop||e.scrollTop,h.left=t.scrollLeft||e.scrollLeft,c&&(p=c.offsetTop,f=c.offsetLeft)}else({width:s,height:u,top:p,left:f}=y(e)),h.top=e.scrollTop,h.left=e.scrollLeft,a=s,d=u;return(0,n.Tc)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&v&&(h.top=0,h.left=0,p=null!==(o=null==c?void 0:c.pageTop)&&void 0!==o?o:0,f=null!==(r=null==c?void 0:c.pageLeft)&&void 0!==r?r:0),{width:s,height:u,totalWidth:a,totalHeight:d,scroll:h,top:p,left:f}}function f(e,t,l,n,i,r,s){var a;let d=null!==(a=i.scroll[e])&&void 0!==a?a:0,c=n[u[e]],p=n.scroll[o[e]]+r,f=c+n.scroll[o[e]]-r,h=t-d+s[e]-n[o[e]],v=t-d+l+s[e]-n[o[e]];return h<p?p-h:v>f?Math.max(f-v,p-h):0}function h(e){if(d[e])return d[e];let[t,l]=e.split(" "),n=o[t]||"right",i=s[n];o[l]||(l="center");let r=u[n],a=u[i];return d[e]={placement:t,crossPlacement:l,axis:n,crossAxis:i,size:r,crossSize:a},d[e]}function v(e,t,l,n,o,s,u,d,c,p){var f,h,v,g,y;let{placement:m,crossPlacement:b,axis:E,crossAxis:C,size:w,crossSize:S}=n,D={};D[C]=null!==(f=e[C])&&void 0!==f?f:0,"center"===b?D[C]+=((null!==(h=e[S])&&void 0!==h?h:0)-(null!==(v=l[S])&&void 0!==v?v:0))/2:b!==C&&(D[C]+=(null!==(g=e[S])&&void 0!==g?g:0)-(null!==(y=l[S])&&void 0!==y?y:0)),D[C]+=s;let K=e[C]-l[S]+c+p,x=e[C]+e[S]-c-p;if(D[C]=(0,i.qE)(D[C],K,x),m===E){let l=d?u[w]:t[a[w]];D[r[E]]=Math.floor(l-e[E]+o)}else D[E]=Math.floor(e[E]+e[w]+o);return D}function g(e,t,l,n,i,o){var s,u,a;let{placement:d,axis:c,size:p}=o;return d===c?Math.max(0,l[c]-e[c]-(null!==(s=e.scroll[c])&&void 0!==s?s:0)+t[c]-(null!==(u=n[c])&&void 0!==u?u:0)-n[r[c]]-i):Math.max(0,e[p]+e[c]+e.scroll[c]-t[c]-l[c]-l[p]-(null!==(a=n[c])&&void 0!==a?a:0)-n[r[c]]-i)}function y(e){let{top:t,left:l,width:n,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:r,clientTop:s,clientLeft:u}=document.documentElement;return{top:t+o-s,left:l+r-u,width:n,height:i}}function m(e,t){let l,n=window.getComputedStyle(e);if("fixed"===n.position){let{top:t,left:n,width:i,height:o}=e.getBoundingClientRect();l={top:t,left:n,width:i,height:o}}else{l=y(e);let n=y(t),i=window.getComputedStyle(t);n.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,n.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,l.top-=n.top,l.left-=n.left}return l.top-=parseInt(n.marginTop,10)||0,l.left-=parseInt(n.marginLeft,10)||0,l}function b(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var E=l(4960),C=l(96540),w=l(49953),S=l(77366),D=l(39892);let K="undefined"!=typeof document?window.visualViewport:null;function x(e){var t,l;let{direction:n}=(0,D.Y)(),{arrowSize:s=0,targetRef:u,overlayRef:d,scrollRef:c=d,placement:x="bottom",containerPadding:P=12,shouldFlip:k=!0,boundaryElement:R="undefined"!=typeof document?document.body:null,offset:N=0,crossOffset:B=0,shouldUpdatePosition:M=!0,isOpen:T=!0,onClose:F,maxHeight:A,arrowBoundaryOffset:L=0}=e,[z,I]=(0,C.useState)(null),O=[M,x,d.current,u.current,c.current,P,k,R,N,B,T,n,A,L,s],V=(0,C.useRef)(null==K?void 0:K.scale);(0,C.useEffect)(()=>{T&&(V.current=null==K?void 0:K.scale)},[T]);let H=(0,C.useCallback)(()=>{var e,t,l,E,C;if(!1===M||!T||!d.current||!u.current||!R||(null==K?void 0:K.scale)!==V.current)return;let w=null;if(c.current&&c.current.contains(document.activeElement)){let n=null===(e=document.activeElement)||void 0===e?void 0:e.getBoundingClientRect(),i=c.current.getBoundingClientRect();(w={type:"top",offset:(null!==(t=null==n?void 0:n.top)&&void 0!==t?t:0)-i.top}).offset>i.height/2&&(w.type="bottom",w.offset=(null!==(l=null==n?void 0:n.bottom)&&void 0!==l?l:0)-i.bottom)}let S=d.current;!A&&d.current&&(S.style.top="0px",S.style.bottom="",S.style.maxHeight=(null!==(C=null===(E=window.visualViewport)||void 0===E?void 0:E.height)&&void 0!==C?C:window.innerHeight)+"px");let D=function(e){var t,l,n,s;let u;let{placement:d,targetNode:c,overlayNode:E,scrollNode:C,padding:w,shouldFlip:S,boundaryElement:D,offset:K,crossOffset:x,maxHeight:P,arrowSize:k=0,arrowBoundaryOffset:R=0}=e,N=E instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!b(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!b(t);)t=t.parentElement;return t||document.documentElement}(E):document.documentElement,B=N===document.documentElement,M=window.getComputedStyle(N).position,T=B?y(c):m(c,N);if(!B){let{marginTop:e,marginLeft:t}=window.getComputedStyle(c);T.top+=parseInt(e,10)||0,T.left+=parseInt(t,10)||0}let F=y(E),A={top:parseInt((u=window.getComputedStyle(E)).marginTop,10)||0,bottom:parseInt(u.marginBottom,10)||0,left:parseInt(u.marginLeft,10)||0,right:parseInt(u.marginRight,10)||0};F.width+=(null!==(t=A.left)&&void 0!==t?t:0)+(null!==(l=A.right)&&void 0!==l?l:0),F.height+=(null!==(n=A.top)&&void 0!==n?n:0)+(null!==(s=A.bottom)&&void 0!==s?s:0);let L={top:C.scrollTop,left:C.scrollLeft,width:C.scrollWidth,height:C.scrollHeight},z=p(D),I=p(N),O="BODY"===D.tagName?y(N):m(N,D);return"HTML"===N.tagName&&"BODY"===D.tagName&&(I.scroll.top=0,I.scroll.left=0),function(e,t,l,n,s,u,d,c,p,y,m,b,E,C,w,S){var D,K,x,P;let k=h(e),{size:R,crossAxis:N,crossSize:B,placement:M,crossPlacement:T}=k,F=v(t,c,l,k,m,b,y,E,w,S),A=m,L=g(c,y,t,s,u+m,k);if(d&&n[R]>L){let e=h(`${r[M]} ${T}`),n=v(t,c,l,e,m,b,y,E,w,S);g(c,y,t,s,u+m,e)>L&&(k=e,F=n,A=m)}let z="bottom";"top"===k.axis?"top"===k.placement?z="top":"bottom"===k.placement&&(z="bottom"):"top"===k.crossAxis&&("top"===k.crossPlacement?z="bottom":"bottom"===k.crossPlacement&&(z="top"));let I=f(N,F[N],l[B],c,p,u,y);F[N]+=I;let O=function(e,t,l,n,i,o,r,s){var u,d,c,p,f,h,v;let g=n?l.height:t[a.height],y=null!=e.top?l.top+e.top:l.top+(g-(null!==(u=e.bottom)&&void 0!==u?u:0)-r),m="top"!==s?Math.max(0,t.height+t.top+(null!==(d=t.scroll.top)&&void 0!==d?d:0)-y-((null!==(c=i.top)&&void 0!==c?c:0)+(null!==(p=i.bottom)&&void 0!==p?p:0)+o)):Math.max(0,y+r-(t.top+(null!==(f=t.scroll.top)&&void 0!==f?f:0))-((null!==(h=i.top)&&void 0!==h?h:0)+(null!==(v=i.bottom)&&void 0!==v?v:0)+o));return Math.min(t.height-2*o,m)}(F,c,y,E,s,u,l.height,z);C&&C<O&&(O=C),l.height=Math.min(l.height,O),I=f(N,(F=v(t,c,l,k,A,b,y,E,w,S))[N],l[B],c,p,u,y),F[N]+=I;let V={},H=t[N]+.5*t[B]-F[N]-s[o[N]],U=w/2+S,_="left"===o[N]?(null!==(D=s.left)&&void 0!==D?D:0)+(null!==(K=s.right)&&void 0!==K?K:0):(null!==(x=s.top)&&void 0!==x?x:0)+(null!==(P=s.bottom)&&void 0!==P?P:0),W=l[B]-_-w/2-S,$=t[N]+w/2-(F[N]+s[o[N]]),j=t[N]+t[B]-w/2-(F[N]+s[o[N]]),q=(0,i.qE)(H,$,j);return V[N]=(0,i.qE)(q,U,W),{position:F,maxHeight:O,arrowOffsetLeft:V.left,arrowOffsetTop:V.top,placement:k.placement}}(d,T,F,L,A,w,S,z,I,O,K,x,!!M&&"static"!==M,P,k,R)}({placement:"rtl"===n?x.replace("start","right").replace("end","left"):x.replace("start","left").replace("end","right"),overlayNode:d.current,targetNode:u.current,scrollNode:c.current||d.current,padding:P,shouldFlip:k,boundaryElement:R,offset:N,crossOffset:B,maxHeight:A,arrowSize:s,arrowBoundaryOffset:L});if(D.position){if(S.style.top="",S.style.bottom="",S.style.left="",S.style.right="",Object.keys(D.position).forEach(e=>S.style[e]=D.position[e]+"px"),S.style.maxHeight=null!=D.maxHeight?D.maxHeight+"px":"",w&&document.activeElement&&c.current){let e=document.activeElement.getBoundingClientRect(),t=c.current.getBoundingClientRect(),l=e[w.type]-t[w.type];c.current.scrollTop+=l-w.offset}I(D)}},O);(0,w.N)(H,O),(0,w.N)(()=>(window.addEventListener("resize",H,!1),()=>{window.removeEventListener("resize",H,!1)}),[H]),(0,S.w)({ref:d,onResize:H}),(0,S.w)({ref:u,onResize:H});let U=(0,C.useRef)(!1);(0,w.N)(()=>{let e;let t=()=>{U.current=!0,clearTimeout(e),e=setTimeout(()=>{U.current=!1},500),H()},l=()=>{U.current&&t()};return null==K||K.addEventListener("resize",t),null==K||K.addEventListener("scroll",l),()=>{null==K||K.removeEventListener("resize",t),null==K||K.removeEventListener("scroll",l)}},[H]);let _=(0,C.useCallback)(()=>{U.current||null==F||F()},[F,U]);return(0,E.o)({triggerRef:u,isOpen:T,onClose:F&&_}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...null==z?void 0:z.position,maxHeight:null!==(t=null==z?void 0:z.maxHeight)&&void 0!==t?t:"100vh"}},placement:null!==(l=null==z?void 0:z.placement)&&void 0!==l?l:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==z?void 0:z.arrowOffsetLeft,top:null==z?void 0:z.arrowOffsetTop}},updatePosition:H}}},16123:(e,t,l)=>{l.d(t,{f:()=>a});var n=l(2269),i=l(31364),o=l(90757),r=l(68492),s=l(49953),u=l(56606);function a(e,t){let{triggerRef:l,popoverRef:a,isNonModal:d,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:p,...f}=e,{overlayProps:h,underlayProps:v}=(0,o.e)({isOpen:t.isOpen&&!f["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!d,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:p},a),{overlayProps:g,arrowProps:y,placement:m}=(0,i.v)({...f,targetRef:l,overlayRef:a,isOpen:t.isOpen,onClose:d?t.close:null});return(0,r.H)({isDisabled:d||!t.isOpen}),(0,s.N)(()=>{if(t.isOpen&&!d&&a.current)return(0,n.h)([a.current])},[d,t.isOpen,a]),{popoverProps:(0,u.v)(h,g),arrowProps:y,underlayProps:v,placement:m}}},68492:(e,t,l)=>{let n;l.d(t,{H:()=>p});var i=l(49953),o=l(69202),r=l(72166),s=l(47912);function u(e,t){let l=e;for((0,s.o)(l,t)&&(l=l.parentElement);l&&!(0,s.o)(l,t);)l=l.parentElement;return l||document.scrollingElement||document.documentElement}let a="undefined"!=typeof document&&window.visualViewport,d=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),c=0;function p(e={}){let{isDisabled:t}=e;(0,i.N)(()=>{if(!t){let e,t,l,i,s;return 1==++c&&(n=(0,o.un)()?(l=null,i=()=>{if(l)return;let e=window.pageXOffset,t=window.pageYOffset;l=(0,r.c)(h(window,"scroll",()=>{window.scrollTo(0,0)}),f(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),f(document.documentElement,"overflow","hidden"),f(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},s=(0,r.c)(h(document,"touchstart",l=>{((e=u(l.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=f(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),h(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),h(document,"touchend",()=>{t&&t()},{passive:!1,capture:!0}),h(document,"focus",e=>{let t=e.target;(t instanceof HTMLInputElement&&!d.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable)&&(i(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",a&&(a.height<window.innerHeight?requestAnimationFrame(()=>{v(t)}):a.addEventListener("resize",()=>v(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==l||l(),s()}):(0,r.c)(f(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),f(document.documentElement,"overflow","hidden"))),()=>{0==--c&&n()}}},[t])}function f(e,t,l){let n=e.style[t];return e.style[t]=l,()=>{e.style[t]=n}}function h(e,t,l,n){return e.addEventListener(t,l,n),()=>{e.removeEventListener(t,l,n)}}function v(e){let t=document.scrollingElement||document.documentElement,l=e;for(;l&&l!==t;){let e=u(l);if(e!==document.documentElement&&e!==document.body&&e!==l){let t=e.getBoundingClientRect().top,n=l.getBoundingClientRect().top;n>t+l.clientHeight&&(e.scrollTop+=n-t)}l=e.parentElement}}},97275:(e,t,l)=>{l.d(t,{n:()=>o});class n{getItemRect(e){let t=this.ref.current;if(!t)return null;let l=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!l)return null;let n=t.getBoundingClientRect(),i=l.getBoundingClientRect();return{x:i.left-n.left+t.scrollLeft,y:i.top-n.top+t.scrollTop,width:i.width,height:i.height}}getContentSize(){var e,t;let l=this.ref.current;return{width:null!==(e=null==l?void 0:l.scrollWidth)&&void 0!==e?e:0,height:null!==(t=null==l?void 0:l.scrollHeight)&&void 0!==t?t:0}}getVisibleRect(){var e,t,l,n;let i=this.ref.current;return{x:null!==(e=null==i?void 0:i.scrollLeft)&&void 0!==e?e:0,y:null!==(t=null==i?void 0:i.scrollTop)&&void 0!==t?t:0,width:null!==(l=null==i?void 0:i.offsetWidth)&&void 0!==l?l:0,height:null!==(n=null==i?void 0:i.offsetHeight)&&void 0!==n?n:0}}constructor(e){this.ref=e}}var i=l(47912);class o{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let l=e;for(;null!=l;){let e=this.collection.getItem(l);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return l;l=t(l)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,l){let n=e,i=this.layoutDelegate.getItemRect(n);if(!i||null==n)return null;let o=i;do{if(null==(n=t(n)))break;i=this.layoutDelegate.getItemRect(n)}while(i&&l(o,i)&&null!=n);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,i.o)(t))return this.getFirstKey();let n=e;if("horizontal"===this.orientation){let e=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>e&&null!=n;)l=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>e&&null!=n;)l=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}return null!=n?n:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,i.o)(t))return this.getLastKey();let n=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,l.y-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.x<e&&null!=n;)l=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<e&&null!=n;)l=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}return null!=n?n:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,n=t||this.getFirstKey();for(;null!=n;){let t=l.getItem(n);if(!t)break;let i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return n;n=this.getNextKey(n)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new n(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new n(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}},13850:(e,t,l)=>{l.d(t,{y:()=>D});var n=l(4345),i=l(18399),o=l(43831),r=l(3704),s=l(32268),u=l(7049),a=l(96540);function d(e,t,l,n){let i=(0,u.J)(l),o=null==l;(0,a.useEffect)(()=>{if(o||!e.current)return;let l=e.current;return l.addEventListener(t,i,n),()=>{l.removeEventListener(t,i,n)}},[e,t,n,o,i])}var c=l(47912);function p(e,t){let l=f(e,t,"left"),n=f(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,r=e.scrollLeft,s=e.scrollTop,{borderTopWidth:u,borderLeftWidth:a,scrollPaddingTop:d,scrollPaddingRight:c,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),v=r+parseInt(a,10),g=s+parseInt(u,10),y=v+e.clientWidth,m=g+e.clientHeight,b=parseInt(d,10)||0,E=parseInt(p,10)||0,C=parseInt(c,10)||0,w=parseInt(h,10)||0;l<=r+w?r=l-parseInt(a,10)-w:l+i>y-C&&(r+=l+i-y+C),n<=g+b?s=n-parseInt(u,10)-b:n+o>m-E&&(s+=n+o-m+E),e.scrollLeft=r,e.scrollTop=s}function f(e,t,l){let n="left"===l?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}function h(e,t){if(e&&document.contains(e)){let r=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(r).overflow)for(let t of function(e,t){let l=[];for(;e&&e!==document.documentElement;)(0,c.o)(e,void 0)&&l.push(e),e=e.parentElement;return l}(e))p(t,e);else{var l,n,i,o;let{left:r,top:s}=e.getBoundingClientRect();null==e||null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"nearest"});let{left:u,top:a}=e.getBoundingClientRect();(Math.abs(r-u)>1||Math.abs(s-a)>1)&&(null==t||null===(i=t.containingElement)||void 0===i||null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"center",inline:"center"}),null===(o=e.scrollIntoView)||void 0===o||o.call(e,{block:"nearest"}))}}}var v=l(44178),g=l(49953);function y(e,t){let l=(0,a.useRef)(!0),n=(0,a.useRef)(null);(0,g.N)(()=>(l.current=!0,()=>{l.current=!1}),[]),(0,g.N)(()=>{l.current?l.current=!1:(!n.current||t.some((e,t)=>!Object.is(e,n[t])))&&e(),n.current=t},t)}var m=l(56606),b=l(40961),E=l(68305),C=l(58374),w=l(95562),S=l(39892);function D(e){let t,{selectionManager:l,keyboardDelegate:c,ref:f,autoFocus:g=!1,shouldFocusWrap:D=!1,disallowEmptySelection:K=!1,disallowSelectAll:x=!1,selectOnFocus:P="replace"===l.selectionBehavior,disallowTypeAhead:k=!1,shouldUseVirtualFocus:R,allowsTabNavigation:N=!1,isVirtualized:B,scrollRef:M=f,linkBehavior:T="action"}=e,{direction:F}=(0,S.Y)(),A=(0,o.rd)(),L=(0,a.useRef)({top:0,left:0});d(M,"scroll",B?void 0:()=>{var e,t,l,n;L.current={top:null!==(l=null===(e=M.current)||void 0===e?void 0:e.scrollTop)&&void 0!==l?l:0,left:null!==(n=null===(t=M.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==n?n:0}});let z=(0,a.useRef)(!1);d(f,v.CC,R?e=>{let{detail:t}=e;e.stopPropagation(),l.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&(z.current=!0)}:void 0);let I=(0,u.J)(()=>{var e,t,n;let i=null!==(t=null===(e=c.getFirstKey)||void 0===e?void 0:e.call(c))&&void 0!==t?t:null;null==i?(null===(n=f.current)||void 0===n||n.dispatchEvent(new CustomEvent(v.yI,{cancelable:!0,bubbles:!0})),l.collection.size>0&&(z.current=!1)):(l.setFocusedKey(i),z.current=!1)});y(()=>{z.current&&I()},[l.collection,I]);let O=(0,u.J)(()=>{l.collection.size>0&&(z.current=!1)});y(()=>{O()},[l.focusedKey,O]),d(f,v.m9,R?e=>{e.stopPropagation(),l.setFocused(!1),l.setFocusedKey(null)}:void 0);let V=(0,a.useRef)(g);(0,a.useEffect)(()=>{if(V.current){var e,t,n,i;let o=null;"first"===g&&(o=null!==(n=null===(e=c.getFirstKey)||void 0===e?void 0:e.call(c))&&void 0!==n?n:null),"last"===g&&(o=null!==(i=null===(t=c.getLastKey)||void 0===t?void 0:t.call(c))&&void 0!==i?i:null);let r=l.selectedKeys;if(r.size){for(let e of r)if(l.canSelectItem(e)){o=e;break}}l.setFocused(!0),l.setFocusedKey(o),null==o&&!R&&f.current&&(0,C.l)(f.current)}},[]);let H=(0,a.useRef)(l.focusedKey);(0,a.useEffect)(()=>{if(l.isFocused&&null!=l.focusedKey&&(l.focusedKey!==H.current||V.current)&&M.current&&f.current){let e=(0,w.ME)(),t=f.current.querySelector(`[data-key="${CSS.escape(l.focusedKey.toString())}"]`);if(!t)return;("keyboard"===e||V.current)&&(p(M.current,t),"virtual"!==e&&h(t,{containingElement:f.current}))}!R&&l.isFocused&&null==l.focusedKey&&null!=H.current&&f.current&&(0,C.l)(f.current),H.current=l.focusedKey,V.current=!1}),d(f,"react-aria-focus-scope-restore",e=>{e.preventDefault(),l.setFocused(!0)});let U={onKeyDown:e=>{var t,i,o,u,a,d,p,h,v,g,y,m,C;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(t=f.current)||void 0===t?void 0:t.contains(e.target)))return;let w=(t,i)=>{if(null!=t){if(l.isLink(t)&&"selection"===T&&P&&!(0,n.N)(e)){var o;(0,b.flushSync)(()=>{l.setFocusedKey(t,i)});let n=null===(o=M.current)||void 0===o?void 0:o.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),r=l.getItemProps(t);n&&A.open(n,e,r.href,r.routerOptions);return}l.setFocusedKey(t,i),l.isLink(t)&&"override"===T||(e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):P&&!(0,n.N)(e)&&l.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(c.getKeyBelow){let t=null!=l.focusedKey?null===(i=c.getKeyBelow)||void 0===i?void 0:i.call(c,l.focusedKey):null===(o=c.getFirstKey)||void 0===o?void 0:o.call(c);null==t&&D&&(t=null===(u=c.getFirstKey)||void 0===u?void 0:u.call(c,l.focusedKey)),null!=t&&(e.preventDefault(),w(t))}break;case"ArrowUp":if(c.getKeyAbove){let t=null!=l.focusedKey?null===(a=c.getKeyAbove)||void 0===a?void 0:a.call(c,l.focusedKey):null===(d=c.getLastKey)||void 0===d?void 0:d.call(c);null==t&&D&&(t=null===(p=c.getLastKey)||void 0===p?void 0:p.call(c,l.focusedKey)),null!=t&&(e.preventDefault(),w(t))}break;case"ArrowLeft":if(c.getKeyLeftOf){let t=null!=l.focusedKey?null===(h=c.getKeyLeftOf)||void 0===h?void 0:h.call(c,l.focusedKey):null;null==t&&D&&(t="rtl"===F?null===(v=c.getFirstKey)||void 0===v?void 0:v.call(c,l.focusedKey):null===(g=c.getLastKey)||void 0===g?void 0:g.call(c,l.focusedKey)),null!=t&&(e.preventDefault(),w(t,"rtl"===F?"first":"last"))}break;case"ArrowRight":if(c.getKeyRightOf){let t=null!=l.focusedKey?null===(y=c.getKeyRightOf)||void 0===y?void 0:y.call(c,l.focusedKey):null;null==t&&D&&(t="rtl"===F?null===(m=c.getLastKey)||void 0===m?void 0:m.call(c,l.focusedKey):null===(C=c.getFirstKey)||void 0===C?void 0:C.call(c,l.focusedKey)),null!=t&&(e.preventDefault(),w(t,"rtl"===F?"last":"first"))}break;case"Home":if(c.getFirstKey){if(null===l.focusedKey&&e.shiftKey)return;e.preventDefault();let t=c.getFirstKey(l.focusedKey,(0,r.B)(e));l.setFocusedKey(t),null!=t&&((0,r.B)(e)&&e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):P&&l.replaceSelection(t))}break;case"End":if(c.getLastKey){if(null===l.focusedKey&&e.shiftKey)return;e.preventDefault();let t=c.getLastKey(l.focusedKey,(0,r.B)(e));l.setFocusedKey(t),null!=t&&((0,r.B)(e)&&e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):P&&l.replaceSelection(t))}break;case"PageDown":if(c.getKeyPageBelow&&null!=l.focusedKey){let t=c.getKeyPageBelow(l.focusedKey);null!=t&&(e.preventDefault(),w(t))}break;case"PageUp":if(c.getKeyPageAbove&&null!=l.focusedKey){let t=c.getKeyPageAbove(l.focusedKey);null!=t&&(e.preventDefault(),w(t))}break;case"a":(0,r.B)(e)&&"multiple"===l.selectionMode&&!0!==x&&(e.preventDefault(),l.selectAll());break;case"Escape":K||0===l.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),l.clearSelection());break;case"Tab":if(!N){if(e.shiftKey)f.current.focus();else{let e,t,l=(0,E.N$)(f.current,{tabbable:!0});do(t=l.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,s.e)(e)}}}},onFocus:e=>{if(l.isFocused){e.currentTarget.contains(e.target)||l.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(l.setFocused(!0),null==l.focusedKey){var t,n,i,o;let r=e=>{null!=e&&(l.setFocusedKey(e),P&&l.replaceSelection(e))},s=e.relatedTarget;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?r(null!==(i=l.lastSelectedKey)&&void 0!==i?i:null===(t=c.getLastKey)||void 0===t?void 0:t.call(c)):r(null!==(o=l.firstSelectedKey)&&void 0!==o?o:null===(n=c.getFirstKey)||void 0===n?void 0:n.call(c))}else!B&&M.current&&(M.current.scrollTop=L.current.top,M.current.scrollLeft=L.current.left);if(null!=l.focusedKey&&M.current){let e=M.current.querySelector(`[data-key="${CSS.escape(l.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,s.e)(e),"keyboard"===(0,w.ME)()&&h(e,{containingElement:f.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||l.setFocused(!1)},onMouseDown(e){M.current===e.target&&e.preventDefault()}},{typeSelectProps:_}=(0,i.I)({keyboardDelegate:c,selectionManager:l});return k||(U=(0,m.v)(_,U)),t=R?-1:null==l.focusedKey?0:-1,{collectionProps:{...U,tabIndex:t}}}},18399:(e,t,l)=>{l.d(t,{I:()=>i});var n=l(96540);function i(e){let{keyboardDelegate:t,selectionManager:l,onTypeSelect:i}=e,o=(0,n.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var n;let r=1!==(n=e.key).length&&/^[A-Z]/i.test(n)?"":n;if(r&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)){if(" "!==r||!(o.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=r,null!=t.getKeyForSearch){let e=t.getKeyForSearch(o.search,l.focusedKey);null==e&&(e=t.getKeyForSearch(o.search)),null!=e&&(l.setFocusedKey(e),i&&i(e))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},1e3)}}:void 0}}}},4345:(e,t,l)=>{l.d(t,{N:()=>i});var n=l(69202);function i(e){return(0,n.lg)()?e.altKey:e.ctrlKey}},13807:(e,t,l)=>{l.d(t,{O:()=>s,_:()=>r});var n=l(49953),i=l(40961),o=l(96540);function r(e,t=!0){let[l,i]=(0,o.useState)(!0),s=l&&t;return(0,n.N)(()=>{if(s&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,s]),u(e,s,(0,o.useCallback)(()=>i(!1),[])),s}function s(e,t){let[l,n]=(0,o.useState)(t?"open":"closed");switch(l){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open")}let i="exiting"===l;return u(e,i,(0,o.useCallback)(()=>{n(e=>"exiting"===e?"closed":e)},[])),i}function u(e,t,l){(0,n.N)(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){l();return}let t=e.current.getAnimations();if(0===t.length){l();return}let n=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{n||(0,i.flushSync)(()=>{l()})}).catch(()=>{}),()=>{n=!0}}},[e,t,l])}},44178:(e,t,l)=>{l.d(t,{CC:()=>i,m9:()=>n,yI:()=>o});let n="react-aria-clear-focus",i="react-aria-focus",o="react-aria-update-activedescendant"},47912:(e,t,l)=>{l.d(t,{o:()=>n});function n(e,t){if(!e)return!1;let l=window.getComputedStyle(e),n=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}},3704:(e,t,l)=>{l.d(t,{B:()=>i});var n=l(69202);function i(e){return(0,n.cX)()?e.metaKey:e.ctrlKey}},77366:(e,t,l)=>{l.d(t,{w:()=>i});var n=l(96540);function i(e){let{ref:t,box:l,onResize:i}=e;(0,n.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)};{let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:l}),()=>{e&&t.unobserve(e)}}}},[i,t,l])}},80423:(e,t,l)=>{function n(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function i(e){return function(e,t){let l=0;for(let t of e){if(0===l)return t;l++}}(e,0)}function o(e,t,l){if(t.parentKey===l.parentKey)return t.index-l.index;let n=[...r(e,t),t],i=[...r(e,l),l],o=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==o?(t=n[o],l=i[o],t.index-l.index):n.findIndex(e=>e===l)>=0?1:(i.findIndex(e=>e===t),-1)}function r(e,t){let l=[],n=t;for(;(null==n?void 0:n.parentKey)!=null;)(n=e.getItem(n.parentKey))&&l.unshift(n);return l}l.d(t,{iQ:()=>n,o3:()=>o,ue:()=>i})},70732:(e,t,l)=>{l.d(t,{v:()=>o});var n=l(80423);let i=new WeakMap;function o(e){let t=i.get(e);if(null!=t)return t;let l=0,o=t=>{for(let i of t)"section"===i.type?o((0,n.iQ)(i,e)):l++};return o(e),i.set(e,l),l}},7471:(e,t,l)=>{l.d(t,{J:()=>n});class n{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let l=this.keyMap.get(e);return l&&null!==(t=l.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let l=this.keyMap.get(e);return l&&null!==(t=l.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let l=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)l(t)};for(let t of e)l(t);let n=null,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(n=t).nextKey=void 0;this.lastKey=null!==(t=null==n?void 0:n.key)&&void 0!==t?t:null}}},68586:(e,t,l)=>{l.d(t,{p:()=>f});var n=l(7471);class i extends Set{constructor(e,t,l){super(e),e instanceof i?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=l?l:e.currentKey):(this.anchorKey=null!=t?t:null,this.currentKey=null!=l?l:null)}}var o=l(8356),r=l(96540);function s(e,t){return e?"all"===e?"all":new i(e):t}var u=l(80423);class a{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let l=this.collection.getItem(e);(!t||l&&0>(0,u.o3)(this.collection,l,t))&&(t=l)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let l=this.collection.getItem(e);(!t||l&&(0,u.o3)(this.collection,l,t)>0)&&(t=l)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode){this.replaceSelection(e);return}let l=this.getKey(e);if(null!=l){if("all"===this.state.selectedKeys)t=new i([l],l,l);else{var n,o;let e=this.state.selectedKeys,r=null!==(n=e.anchorKey)&&void 0!==n?n:l;for(let n of(t=new i(e,r,l),this.getKeyRange(r,null!==(o=e.currentKey)&&void 0!==o?o:l)))t.delete(n);for(let e of this.getKeyRange(l,r))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?0>=(0,u.o3)(this.collection,l,n)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(null===(l=this.layoutDelegate)||void 0===l?void 0:l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(i),i===t)return n;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(null==t)return;let l=new i("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),this.disallowEmptySelection&&0===l.size||this.state.setSelectedKeys(l)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let l=this.canSelectItem(t)?new i([t],t,t):new i;this.state.setSelectedKeys(l)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new i;for(let l of e){let e=this.getKey(l);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;null!=l;){if(this.canSelectItem(l)){var n,i;let o=this.collection.getItem(l);(null==o?void 0:o.type)==="item"&&e.push(l),(null==o?void 0:o.hasChildNodes)&&(this.allowsCellSelection||"item"!==o.type)&&t(null!==(i=null===(n=(0,u.ue)((0,u.iQ)(o,this.collection)))||void 0===n?void 0:n.key)&&void 0!==i?i:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new i)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!!l&&(null==l||null===(t=l.props)||void 0===t||!t.isDisabled)&&("cell"!==l.type||!!this.allowsCellSelection)}isDisabled(e){var t,l;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(l=this.collection.getItem(e))||void 0===l?void 0:null===(t=l.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,l;return!!(null===(l=this.collection.getItem(e))||void 0===l?void 0:null===(t=l.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,l){var n;this.collection=e,this.state=t,this.allowsCellSelection=null!==(n=null==l?void 0:l.allowsCellSelection)&&void 0!==n&&n,this._isSelectAll=null,this.layoutDelegate=(null==l?void 0:l.layoutDelegate)||null}}class d{build(e,t){return this.context=t,c(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(r.isValidElement(t)&&t.type===r.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if("function"==typeof t){if(!l)throw Error("props.children was a function but props.items is missing");let e=0;for(let n of l)yield*this.getFullNode({value:n,index:e},{renderer:t}),e++}else{let e=[];r.Children.forEach(t,t=>{t&&e.push(t)});let l=0;for(let t of e)for(let e of this.getFullNode({element:t,index:l},{}))l++,yield e}}getKey(e,t,l,n){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${n}${t.key}`;let i=t.value;if(null!=i){var o;let e=null!==(o=i.key)&&void 0!==o?o:i.id;if(null==e)throw Error("No key found for item");return e}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,n){var i,o,s,u,a,d,f,h;if(r.isValidElement(e.element)&&e.element.type===r.Fragment){let o=[];r.Children.forEach(e.element.props.children,e=>{o.push(e)});let s=null!==(i=e.index)&&void 0!==i?i:0;for(let e of o)yield*this.getFullNode({element:e,index:s++},t,l,n);return}let v=e.element;if(!v&&e.value&&t&&t.renderer){let l=this.cache.get(e.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=e.index,l.parentKey=n?n.key:null,yield l;return}v=t.renderer(e.value)}if(r.isValidElement(v)){let i=v.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e=v.type;throw Error(`Unknown element <${e}> in collection.`)}let r=i.getCollectionNode(v.props,this.context),c=null!==(o=e.index)&&void 0!==o?o:0,f=r.next();for(;!f.done&&f.value;){let i=f.value;e.index=c;let o=null!==(s=i.key)&&void 0!==s?s:null;null==o&&(o=i.element?null:this.getKey(v,e,t,l));let h=[...this.getFullNode({...i,key:o,index:c,wrapper:function(e,t){return e&&t?l=>e(t(l)):e||t||void 0}(e.wrapper,i.wrapper)},this.getChildState(t,i),l?`${l}${v.key}`:v.key,n)];for(let t of h){if(t.value=null!==(a=null!==(u=i.value)&&void 0!==u?u:e.value)&&void 0!==a?a:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${p(t.type)}> in <${p(null!==(d=null==n?void 0:n.type)&&void 0!==d?d:"unknown parent type")}>. Only <${p(e.type)}> is supported.`);c++,yield t}f=r.next(h)}return}if(null==e.key||null==e.type)return;let g=this,y={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:null!==(f=e.value)&&void 0!==f?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:null!==(h=e.textValue)&&void 0!==h?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:c(function*(){if(!e.hasChildNodes||!e.childNodes)return;let l=0;for(let n of e.childNodes())for(let e of(null!=n.key&&(n.key=`${y.key}${n.key}`),g.getFullNode({...n,index:l},g.getChildState(t,n),y.key,y)))l++,yield e})};yield y}constructor(){this.cache=new WeakMap}}function c(e){let t=[],l=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let n of(l||(l=e()),l))t.push(n),yield n}}}function p(e){return e[0].toUpperCase()+e.slice(1)}function f(e){let{filter:t,layoutDelegate:l}=e,u=function(e){let{selectionMode:t="none",disallowEmptySelection:l=!1,allowDuplicateSelectionEvents:n,selectionBehavior:u="toggle",disabledBehavior:a="all"}=e,d=(0,r.useRef)(!1),[,c]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useRef)(null),[,h]=(0,r.useState)(null),v=(0,r.useMemo)(()=>s(e.selectedKeys),[e.selectedKeys]),g=(0,r.useMemo)(()=>s(e.defaultSelectedKeys,new i),[e.defaultSelectedKeys]),[y,m]=(0,o.P)(v,g,e.onSelectionChange),b=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[E,C]=(0,r.useState)(u);"replace"===u&&"toggle"===E&&"object"==typeof y&&0===y.size&&C("replace");let w=(0,r.useRef)(u);return(0,r.useEffect)(()=>{u!==w.current&&(C(u),w.current=u)},[u]),{selectionMode:t,disallowEmptySelection:l,selectionBehavior:E,setSelectionBehavior:C,get isFocused(){return d.current},setFocused(e){d.current=e,c(e)},get focusedKey(){return p.current},get childFocusStrategy(){return f.current},setFocusedKey(e,t="first"){p.current=e,f.current=t,h(e)},selectedKeys:y,setSelectedKeys(e){(n||!function(e,t){if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;return!0}(e,y))&&m(e)},disabledKeys:b,disabledBehavior:a}}(e),c=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),p=(0,r.useCallback)(e=>new n.J(t?t(e):e),[t]),f=(0,r.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),h=function(e,t,l){let n=(0,r.useMemo)(()=>new d,[]),{children:i,items:o,collection:s}=e;return(0,r.useMemo)(()=>s||t(n.build({children:i,items:o},l)),[n,i,o,s,l,t])}(e,p,f),v=(0,r.useMemo)(()=>new a(h,u,{layoutDelegate:l}),[h,u,l]),g=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(null!=u.focusedKey&&!h.getItem(u.focusedKey)&&g.current){var e,t,l,n,i,o,r;let s=g.current.getItem(u.focusedKey),a=[...g.current.getKeys()].map(e=>{let t=g.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),d=[...h.getKeys()].map(e=>{let t=h.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),c=(null!==(e=null==a?void 0:a.length)&&void 0!==e?e:0)-(null!==(t=null==d?void 0:d.length)&&void 0!==t?t:0),p=Math.min(c>1?Math.max((null!==(l=null==s?void 0:s.index)&&void 0!==l?l:0)-c+1,0):null!==(n=null==s?void 0:s.index)&&void 0!==n?n:0,(null!==(i=null==d?void 0:d.length)&&void 0!==i?i:0)-1),f=null,y=!1;for(;p>=0;){if(!v.isDisabled(d[p].key)){f=d[p];break}p<d.length-1&&!y?p++:(y=!0,p>(null!==(o=null==s?void 0:s.index)&&void 0!==o?o:0)&&(p=null!==(r=null==s?void 0:s.index)&&void 0!==r?r:0),p--)}u.setFocusedKey(f?f.key:null)}g.current=h},[h,v,u,u.focusedKey]),{collection:h,disabledKeys:c,selectionManager:v}}},319:(e,t,l)=>{l.d(t,{V:()=>r});var n=l(68586),i=l(8356),o=l(96540);function r(e){var t;let[l,r]=(0,i.P)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),s=(0,o.useMemo)(()=>null!=l?[l]:[],[l]),{collection:u,disabledKeys:a,selectionManager:d}=(0,n.p)({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:t=>{var n;if("all"===t)return;let i=null!==(n=t.values().next().value)&&void 0!==n?n:null;i===l&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}}),c=null!=l?u.getItem(l):null;return{collection:u,disabledKeys:a,selectionManager:d,selectedKey:l,setSelectedKey:r,selectedItem:c}}},71732:(e,t,l)=>{l.d(t,{T:()=>o});var n=l(96540),i=l(8356);function o(e){let[t,l]=(0,i.P)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),o=(0,n.useCallback)(()=>{l(!0)},[l]),r=(0,n.useCallback)(()=>{l(!1)},[l]),s=(0,n.useCallback)(()=>{l(!t)},[l,t]);return{isOpen:t,setOpen:l,open:o,close:r,toggle:s}}},91945:(e,t,l)=>{function n(e,t=-1/0,l=1/0){return Math.min(Math.max(e,t),l)}l.d(t,{qE:()=>n})},65014:(e,t,l)=>{l.d(t,{$:()=>g,k:()=>v});var n=l(5933),i=l(38521),o=l(60771),r=l(69229),s=l(16133),u=l(16638),a=l(84137),d=l(56606),c=l(75127),p=l(5987),f=l(96540);let h=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),v=(0,f.createContext)({}),g=(0,c.U7)(function(e,t){var l;[e,t]=(0,n.JT)(e,t,v);let c=((l=e).isPending&&(l.onPress=void 0,l.onPressStart=void 0,l.onPressEnd=void 0,l.onPressChange=void 0,l.onPressUp=void 0,l.onKeyDown=void 0,l.onKeyUp=void 0,l.onClick=void 0,l.href=void 0),e=l),{isPending:g}=c,{buttonProps:y,isPressed:m}=(0,r.s)(e,t),{focusProps:b,isFocused:E,isFocusVisible:C}=(0,s.o)(e),{hoverProps:w,isHovered:S}=(0,u.M)({...e,isDisabled:e.isDisabled||g}),D={isHovered:S,isPressed:(c.isPressed||m)&&!g,isFocused:E,isFocusVisible:C,isDisabled:e.isDisabled||!1,isPending:null!=g&&g},K=(0,n.Sl)({...e,values:D,defaultClassName:"react-aria-Button"}),x=(0,a.Bi)(y.id),P=(0,a.Bi)(),k=y["aria-labelledby"];g&&(k?k=`${k} ${P}`:y["aria-label"]&&(k=`${x} ${P}`));let R=(0,f.useRef)(g);return(0,f.useEffect)(()=>{let e={"aria-labelledby":k||x};!R.current&&E&&g?(0,o.iP)(e,"assertive"):R.current&&E&&!g&&(0,o.iP)(e,"assertive"),R.current=g},[g,E,k,x]),f.createElement("button",{...(0,p.$)(e,{propNames:h}),...(0,d.v)(y,b,w),...K,type:"submit"===y.type&&g?"button":y.type,id:x,ref:t,"aria-labelledby":k,slot:e.slot||void 0,"aria-disabled":g?"true":y["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":D.isPressed||void 0,"data-hovered":S||void 0,"data-focused":E||void 0,"data-pending":g||void 0,"data-focus-visible":C||void 0},f.createElement(i.K.Provider,{value:{id:P}},K.children))})},64606:(e,t,l)=>{l.d(t,{P2:()=>r,wn:()=>s,zL:()=>a});var n=l(68623),i=l(64367),o=l(96540);let r=(0,o.createContext)(null),s=(0,n.yq)("section",(e,t,l)=>{let{name:n,render:i}=(0,o.useContext)(r);return console.warn(`<Section> is deprecated. Please use <${n}> instead.`),i(e,t,l,"react-aria-Section")});function u(e,t,l){return(0,i.p)({items:t?e.getChildren(t.key):e,dependencies:[l],children(t){var n;let i=t.render(t);if(!l||"item"!==t.type)return i;let r=t.key,s=e.getKeyAfter(r);return o.createElement(o.Fragment,null,l({type:"item",key:r,dropPosition:"before"}),i,(null==s||(null===(n=e.getItem(s))||void 0===n?void 0:n.type)!=="item")&&l({type:"item",key:r,dropPosition:"after"}))}})}let a=(0,o.createContext)({CollectionRoot:({collection:e,renderDropIndicator:t})=>u(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:l})=>u(e,t,l)})},54194:(e,t,l)=>{l.d(t,{RG:()=>n});let n=(0,l(96540).createContext)(null)},83181:(e,t,l)=>{l.d(t,{B:()=>r,Y:()=>s});var n=l(5933),i=l(68623),o=l(96540);let r=(0,o.createContext)({}),s=(0,i.KU)("header",function(e,t){return[e,t]=(0,n.JT)(e,t,r),o.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)})},26021:(e,t,l)=>{l.d(t,{qF:()=>B,JC:()=>R,nh:()=>A,DN:()=>N});var n=l(64606),i=l(5933),o=l(96540);let r=(0,o.createContext)({}),s=(0,o.createContext)(null),u=(0,o.forwardRef)(function(e,t){let{render:l}=(0,o.useContext)(s);return o.createElement(o.Fragment,null,l(e,t))});function a(e,t){var l;let n=null==e?void 0:e.renderDropIndicator,i=null==e?void 0:null===(l=e.isVirtualDragging)||void 0===l?void 0:l.call(e),r=(0,o.useCallback)(e=>{if(i||(null==t?void 0:t.isDropTarget(e)))return n?n(e):o.createElement(u,{target:e})},[null==t?void 0:t.target,i,n]);return(null==e?void 0:e.useDropIndicator)?r:void 0}var d=l(83181);let c=(0,o.createContext)({});var p=l(27279);let f=(0,o.createContext)(null);var h=l(39892),v=l(82627),g=l(97275),y=l(44815),m=l(16133),b=l(68305),E=l(56606),C=l(84137),w=l(27474),S=l(16638),D=l(68623),K=l(68586),x=l(83908),P=l(17099),k=l(5987);let R=(0,o.createContext)(null),N=(0,o.createContext)(null),B=(0,o.forwardRef)(function(e,t){[e,t]=(0,i.JT)(e,t,R);let l=(0,o.useContext)(N);return l?o.createElement(T,{state:l,props:e,listBoxRef:t}):o.createElement(D.GQ,{content:o.createElement(D.pM,e)},l=>o.createElement(M,{props:e,listBoxRef:t,collection:l}))});function M({props:e,listBoxRef:t,collection:l}){e={...e,collection:l,children:null,items:null};let{layoutDelegate:i}=(0,o.useContext)(n.zL),{filterFn:r,collectionProps:s,collectionRef:u}=(0,o.useContext)(f)||{};t=(0,x.U)((0,o.useMemo)(()=>(0,P.P)(t,void 0!==u?u:null),[u,t]));let a=(0,o.useMemo)(()=>r?l.filter(r):l,[l,r]),d=(0,K.p)({...e,collection:a,layoutDelegate:i});return o.createElement(T,{state:d,props:{...e,...s},listBoxRef:t})}function T({state:e,props:t,listBoxRef:l}){var u,d,p,f;let C,w,S,D,K,{dragAndDropHooks:x,layout:P="stack",orientation:B="vertical"}=t,{collection:M,selectionManager:T}=e,A=!!(null==x?void 0:x.useDraggableCollectionState),z=!!(null==x?void 0:x.useDroppableCollectionState),{direction:I}=(0,h.Y)(),{disabledBehavior:O,disabledKeys:V}=T,H=(0,v.Q)({usage:"search",sensitivity:"base"}),{isVirtualized:U,layoutDelegate:_,dropTargetDelegate:W,CollectionRoot:$}=(0,o.useContext)(n.zL),j=(0,o.useMemo)(()=>t.keyboardDelegate||new g.n({collection:M,collator:H,ref:l,disabledKeys:V,disabledBehavior:O,layout:P,orientation:B,direction:I,layoutDelegate:_}),[M,H,l,O,V,B,I,t.keyboardDelegate,P,_]),{listBoxProps:q}=(0,y.X)({...t,shouldSelectOnPressUp:A||t.shouldSelectOnPressUp,keyboardDelegate:j,isVirtualized:U},e,l),Z=(0,o.useRef)(A),J=(0,o.useRef)(z);(0,o.useEffect)(()=>{Z.current!==A&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),J.current!==z&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[A,z]);let G=!1,Y=null,Q=(0,o.useRef)(null);if(A&&x){C=x.useDraggableCollectionState({collection:M,selectionManager:T,preview:x.renderDragPreview?Q:void 0}),x.useDraggableCollection({},C,l);let e=x.DragPreview;Y=x.renderDragPreview?o.createElement(e,{ref:Q},x.renderDragPreview):null}if(z&&x){w=x.useDroppableCollectionState({collection:M,selectionManager:T});let e=x.dropTargetDelegate||W||new x.ListDropTargetDelegate(M,l,{orientation:B,layout:P,direction:I});S=x.useDroppableCollection({keyboardDelegate:j,dropTargetDelegate:e},w,l),G=w.isDropTarget({type:"root"})}let{focusProps:X,isFocused:ee,isFocusVisible:et}=(0,m.o)(),el={isDropTarget:G,isEmpty:0===e.collection.size,isFocused:ee,isFocusVisible:et,layout:t.layout||"stack",state:e},en=(0,i.Sl)({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:el}),ei=null;return 0===e.collection.size&&t.renderEmptyState&&(ei=o.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(el))),o.createElement(b.n1,null,o.createElement("div",{...(0,k.$)(t),...(0,E.v)(q,X,null==S?void 0:S.collectionProps),...en,ref:l,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":G||void 0,"data-empty":0===e.collection.size||void 0,"data-focused":ee||void 0,"data-focus-visible":et||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},o.createElement(i.Kq,{values:[[R,t],[N,e],[r,{dragAndDropHooks:x,dragState:C,dropState:w}],[c,{elementType:"div"}],[s,{render:L}],[n.P2,{name:"ListBoxSection",render:F}]]},o.createElement($,{collection:M,scrollRef:l,persistedKeys:(u=w,D=T.focusedKey,K=null,(null==x?void 0:null===(d=x.isVirtualDragging)||void 0===d?void 0:d.call(x))&&(null==u?void 0:null===(p=u.target)||void 0===p?void 0:p.type)==="item"&&(K=u.target.key,"after"===u.target.dropPosition&&(K=null!==(f=u.collection.getKeyAfter(K))&&void 0!==f?f:K)),(0,o.useMemo)(()=>new Set([D,K].filter(e=>null!=e)),[D,K])),renderDropIndicator:a(x,w)})),ei,Y))}function F(e,t,l,s="react-aria-ListBoxSection"){var u;let c=(0,o.useContext)(N),{dragAndDropHooks:p,dropState:f}=(0,o.useContext)(r),{CollectionBranch:h}=(0,o.useContext)(n.zL),[v,g]=(0,i._E)(),{headingProps:y,groupProps:m}=function(e){let{heading:t,"aria-label":l}=e,n=(0,C.Bi)();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":l,"aria-labelledby":t?n:void 0}}}({heading:g,"aria-label":null!==(u=e["aria-label"])&&void 0!==u?u:void 0}),b=(0,i.Sl)({defaultClassName:s,className:e.className,style:e.style,values:{}});return o.createElement("section",{...(0,k.$)(e),...m,...b,ref:t},o.createElement(d.B.Provider,{value:{...y,ref:v}},o.createElement(h,{collection:c.collection,parent:l,renderDropIndicator:a(p,f)})))}let A=(0,D.KU)("item",function(e,t,l){let n=(0,x.U)(t),s=(0,o.useContext)(N),{dragAndDropHooks:u,dragState:a,dropState:d}=(0,o.useContext)(r),{optionProps:c,labelProps:f,descriptionProps:h,...v}=(0,w.x)({key:l.key,"aria-label":null==e?void 0:e["aria-label"]},s,n),{hoverProps:g,isHovered:y}=(0,S.M)({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:l.props.onHoverStart,onHoverChange:l.props.onHoverChange,onHoverEnd:l.props.onHoverEnd}),m=null;a&&u&&(m=u.useDraggableItem({key:l.key},a));let b=null;d&&u&&(b=u.useDroppableItem({target:{type:"item",key:l.key,dropPosition:"on"}},d,n));let C=a&&a.isDragging(l.key),D=(0,i.Sl)({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...v,isHovered:y,selectionMode:s.selectionManager.selectionMode,selectionBehavior:s.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:C,isDropTarget:null==b?void 0:b.isDropTarget}});(0,o.useEffect)(()=>{l.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[l.textValue]);let K=e.href?"a":"div";return o.createElement(K,{...(0,E.v)(c,g,null==m?void 0:m.dragProps,null==b?void 0:b.dropProps),...D,ref:n,"data-allows-dragging":!!a||void 0,"data-selected":v.isSelected||void 0,"data-disabled":v.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":(null==b?void 0:b.isDropTarget)||void 0,"data-selection-mode":"none"===s.selectionManager.selectionMode?void 0:s.selectionManager.selectionMode},o.createElement(i.Kq,{values:[[p.h,{slots:{label:f,description:h}}]]},D.children))});function L(e,t){t=(0,x.U)(t);let{dragAndDropHooks:l,dropState:n}=(0,o.useContext)(r),{dropIndicatorProps:i,isHidden:s,isDropTarget:u}=l.useDropIndicator(e,n,t);return s?null:o.createElement(z,{...e,dropIndicatorProps:i,isDropTarget:u,ref:t})}let z=(0,o.forwardRef)(function(e,t){let{dropIndicatorProps:l,isDropTarget:n,...r}=e,s=(0,i.Sl)({...r,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return o.createElement("div",{...l,...s,role:"option",ref:t,"data-drop-target":n||void 0})})},4477:(e,t,l)=>{l.d(t,{aF:()=>w,mH:()=>S});var n=l(5933),i=l(54194),o=l(60415),r=l(2269),s=l(90757),u=l(56179),a=l(68492),d=l(56606),c=l(96540),p=l(91821),f=l(83908),h=l(13807);let v="undefined"!=typeof document&&window.visualViewport;function g(){return{width:v&&(null==v?void 0:v.width)||window.innerWidth,height:v&&(null==v?void 0:v.height)||window.innerHeight}}var y=l(5987),m=l(17099),b=l(71732);let E=(0,c.createContext)(null),C=(0,c.createContext)(null),w=(0,c.forwardRef)(function(e,t){if((0,c.useContext)(C))return c.createElement(K,{...e,modalRef:t},e.children);let{isDismissable:l,isKeyboardDismissDisabled:n,isOpen:i,defaultOpen:o,onOpenChange:r,children:s,isEntering:u,isExiting:a,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:p,...f}=e;return c.createElement(S,{isDismissable:l,isKeyboardDismissDisabled:n,isOpen:i,defaultOpen:o,onOpenChange:r,isEntering:u,isExiting:a,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:p},c.createElement(K,{...f,modalRef:t},s))}),S=(0,c.forwardRef)(function(e,t){[e,t]=(0,n.JT)(e,t,E);let l=(0,c.useContext)(i.RG),r=(0,b.T)(e),s=null==e.isOpen&&null==e.defaultOpen&&l?l:r,u=(0,f.U)(t),a=(0,c.useRef)(null),d=(0,h.O)(u,s.isOpen),p=(0,h.O)(a,s.isOpen),v=d||p||e.isExiting||!1,g=(0,o.wR)();return(s.isOpen||v)&&!g?c.createElement(D,{...e,state:s,isExiting:v,overlayRef:u,modalRef:a}):null});function D({UNSTABLE_portalContainer:e,...t}){let l=t.modalRef,{state:p}=t,{modalProps:f,underlayProps:m}=function(e,t,l){let{overlayProps:n,underlayProps:i}=(0,s.e)({...e,isOpen:t.isOpen,onClose:t.close},l);return(0,a.H)({isDisabled:!t.isOpen}),(0,u.Se)(),(0,c.useEffect)(()=>{if(t.isOpen&&l.current)return(0,r.h)([l.current])},[t.isOpen,l]),{modalProps:(0,d.v)(n),underlayProps:i}}(t,p,l),b=(0,h._)(t.overlayRef)||t.isEntering||!1,E=(0,n.Sl)({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:b,isExiting:t.isExiting,state:p}}),w=function(){let e=(0,o.wR)(),[t,l]=(0,c.useState)(()=>e?{width:0,height:0}:g());return(0,c.useEffect)(()=>{let e=()=>{l(e=>{let t=g();return t.width===e.width&&t.height===e.height?e:t})};return v?v.addEventListener("resize",e):window.addEventListener("resize",e),()=>{v?v.removeEventListener("resize",e):window.removeEventListener("resize",e)}},[]),t}(),S={...E.style,"--visual-viewport-height":w.height+"px"};return c.createElement(u.hJ,{isExiting:t.isExiting,portalContainer:e},c.createElement("div",{...(0,d.v)((0,y.$)(t),m),...E,style:S,ref:t.overlayRef,"data-entering":b||void 0,"data-exiting":t.isExiting||void 0},c.createElement(n.Kq,{values:[[C,{modalProps:f,modalRef:l,isExiting:t.isExiting,isDismissable:t.isDismissable}],[i.RG,p]]},E.children)))}function K(e){let{modalProps:t,modalRef:l,isExiting:o,isDismissable:r}=(0,c.useContext)(C),s=(0,c.useContext)(i.RG),u=(0,c.useMemo)(()=>(0,m.P)(e.modalRef,l),[e.modalRef,l]),a=(0,f.U)(u),v=(0,h._)(a),g=(0,n.Sl)({...e,defaultClassName:"react-aria-Modal",values:{isEntering:v,isExiting:o,state:s}});return c.createElement("div",{...(0,d.v)((0,y.$)(e),t),...g,ref:a,"data-entering":v||void 0,"data-exiting":o||void 0},r&&c.createElement(p.R,{onDismiss:s.close}),g.children)}},45745:(e,t,l)=>{l.d(t,{J:()=>n});let n=(0,l(96540).createContext)({placement:"bottom"})},30421:(e,t,l)=>{l.d(t,{A:()=>y,n:()=>g});var n=l(5933),i=l(45745),o=l(54194),r=l(16123),s=l(56179),u=l(91821),a=l(13807),d=l(49953),c=l(56606),p=l(5987),f=l(71732),h=l(96540),v=l(75127);let g=(0,h.createContext)(null),y=(0,h.forwardRef)(function(e,t){[e,t]=(0,n.JT)(e,t,g);let l=(0,h.useContext)(o.RG),i=(0,f.T)(e),r=null==e.isOpen&&null==e.defaultOpen&&l?l:i,s=(0,a.O)(t,r.isOpen)||e.isExiting||!1;if((0,v.m_)()){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),h.createElement(h.Fragment,null,t)}return!r||r.isOpen||s?h.createElement(m,{...e,triggerRef:e.triggerRef,state:r,popoverRef:t,isExiting:s}):null});function m({state:e,isExiting:t,UNSTABLE_portalContainer:l,...o}){var f;let v=(0,h.useRef)(null),[g,y]=(0,h.useState)(0);(0,d.N)(()=>{v.current&&e.isOpen&&y(v.current.getBoundingClientRect().width)},[e.isOpen,v]);let{popoverProps:m,underlayProps:b,arrowProps:E,placement:C}=(0,r.f)({...o,offset:null!==(f=o.offset)&&void 0!==f?f:8,arrowSize:g},e),w=o.popoverRef,S=(0,a._)(w,!!C)||o.isEntering||!1,D=(0,n.Sl)({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:C,isEntering:S,isExiting:t}}),K={...m.style,...D.style};return h.createElement(s.hJ,{...o,isExiting:t,portalContainer:l},!o.isNonModal&&e.isOpen&&h.createElement("div",{"data-testid":"underlay",...b,style:{position:"fixed",inset:0}}),h.createElement("div",{...(0,c.v)((0,p.$)(o),m),...D,ref:w,slot:o.slot||void 0,style:K,"data-trigger":o.trigger,"data-placement":C,"data-entering":S||void 0,"data-exiting":t||void 0},!o.isNonModal&&h.createElement(u.R,{onDismiss:e.close}),h.createElement(i.J.Provider,{value:{...E,placement:C,ref:v}},D.children),h.createElement(u.R,{onDismiss:e.close})))}},38521:(e,t,l)=>{l.d(t,{z:()=>y,K:()=>g});var n=l(5933),i=l(21704),o=l(5987),r=l(91945),s=l(56606),u=l(64887),a=l(39892);let d=new Map,c=!1;try{c="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let p=!1;try{p="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let f={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class h{format(e){let t="";if(t=c||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,l){if("auto"===t)return e.format(l);{if("never"===t)return e.format(Math.abs(l));let n=!1;if("always"===t?n=l>0||Object.is(l,0):"exceptZero"===t&&(Object.is(l,-0)||Object.is(l,0)?l=Math.abs(l):n=l>0),!n)return e.format(l);{let t=e.format(-l),n=e.format(l),i=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(i,"+").replace("!!!",n)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!p){var l;let{unit:e,unitDisplay:n="short",locale:i}=this.resolvedOptions();if(!e)return t;let o=null===(l=f[e])||void 0===l?void 0:l[n];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let l=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...l.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return c||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),p||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:l}=t;if(l&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${l}`),"unit"===t.style&&!p){var n;let{unit:e,unitDisplay:l="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null===(n=f[e])||void 0===n?void 0:n[l]))throw Error(`Unsupported unit ${e} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(d.has(i))return d.get(i);let o=new Intl.NumberFormat(e,t);return d.set(i,o),o}(e,t),this.options=t}}var v=l(96540);let g=(0,v.createContext)(null),y=(0,v.forwardRef)(function(e,t){[e,t]=(0,n.JT)(e,t,g);let{value:l=0,minValue:d=0,maxValue:c=100,isIndeterminate:p=!1}=e;l=(0,r.qE)(l,d,c);let[f,y]=(0,n._E)(),{progressBarProps:m,labelProps:b}=function(e){let{value:t=0,minValue:l=0,maxValue:n=100,valueLabel:i,isIndeterminate:d,formatOptions:c={style:"percent"}}=e,p=(0,o.$)(e,{labelable:!0}),{labelProps:f,fieldProps:g}=(0,u.M)({...e,labelElementType:"span"}),y=((t=(0,r.qE)(t,l,n))-l)/(n-l),m=function(e={}){let{locale:t}=(0,a.Y)();return(0,v.useMemo)(()=>new h(t,e),[t,e])}(c);if(!d&&!i){let e="percent"===c.style?y:t;i=m.format(e)}return{progressBarProps:(0,s.v)(p,{...g,"aria-valuenow":d?void 0:t,"aria-valuemin":l,"aria-valuemax":n,"aria-valuetext":d?void 0:i,role:"progressbar"}),labelProps:f}}({...e,label:y}),E=p?void 0:(l-d)/(c-d)*100,C=(0,n.Sl)({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:E,valueText:m["aria-valuetext"],isIndeterminate:p}});return v.createElement("div",{...m,...C,ref:t,slot:e.slot||void 0},v.createElement(i.I.Provider,{value:{...b,ref:f,elementType:"span"}},C.children))})},26364:(e,t,l)=>{l.d(t,{l6:()=>I,nT:()=>z,yv:()=>H});var n=l(65014),i=l(5933),o=l(44300),r=l(23128),s={};s={"ar-AE":{colorSwatchPicker:`\u{62A}\u{63A}\u{64A}\u{64A}\u{631}\u{627}\u{62A} \u{627}\u{644}\u{623}\u{644}\u{648}\u{627}\u{646}`,dropzoneLabel:"DropZone",selectPlaceholder:`\u{62D}\u{62F}\u{62F} \u{639}\u{646}\u{635}\u{631}\u{64B}\u{627}`,tableResizer:`\u{623}\u{62F}\u{627}\u{629} \u{62A}\u{63A}\u{64A}\u{64A}\u{631} \u{627}\u{644}\u{62D}\u{62C}\u{645}`},"bg-BG":{colorSwatchPicker:`\u{426}\u{432}\u{435}\u{442}\u{43E}\u{432}\u{438} \u{43C}\u{43E}\u{441}\u{442}\u{440}\u{438}`,dropzoneLabel:"DropZone",selectPlaceholder:`\u{418}\u{437}\u{431}\u{435}\u{440}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{435}\u{434}\u{43C}\u{435}\u{442}`,tableResizer:`\u{41F}\u{440}\u{435}\u{43E}\u{440}\u{430}\u{437}\u{43C}\u{435}\u{440}\u{438}\u{442}\u{435}\u{43B}`},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:`M\xedsto pro p\u{159}eta\u{17E}en\xed`,selectPlaceholder:`Vyberte polo\u{17E}ku`,tableResizer:`Zm\u{11B}na velikosti`},"da-DK":{colorSwatchPicker:`Farvepr\xf8ver`,dropzoneLabel:"DropZone",selectPlaceholder:`V\xe6lg et element`,tableResizer:`St\xf8rrelses\xe6ndring`},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:`Element w\xe4hlen`,tableResizer:`Gr\xf6\xdfenanpassung`},"el-GR":{colorSwatchPicker:`\u{3A7}\u{3C1}\u{3C9}\u{3BC}\u{3B1}\u{3C4}\u{3B9}\u{3BA}\u{3AC} \u{3B4}\u{3B5}\u{3AF}\u{3B3}\u{3BC}\u{3B1}\u{3C4}\u{3B1}`,dropzoneLabel:"DropZone",selectPlaceholder:`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3BE}\u{3C4}\u{3B5} \u{3AD}\u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3C4}\u{3B9}\u{3BA}\u{3B5}\u{3AF}\u{3BC}\u{3B5}\u{3BD}\u{3BF}`,tableResizer:`\u{391}\u{3BB}\u{3BB}\u{3B1}\u{3B3}\u{3AE} \u{3BC}\u{3B5}\u{3B3}\u{3AD}\u{3B8}\u{3BF}\u{3C5}\u{3C2}`},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:`Seleccionar un art\xedculo`,tableResizer:`Cambiador de tama\xf1o`},"et-EE":{colorSwatchPicker:`V\xe4rvin\xe4idised`,dropzoneLabel:"DropZone",selectPlaceholder:`Valige \xfcksus`,tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:`V\xe4rimallit`,dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:`\xc9chantillons de couleurs`,dropzoneLabel:"DropZone",selectPlaceholder:`S\xe9lectionner un \xe9l\xe9ment`,tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:`\u{5D3}\u{5D5}\u{5D2}\u{5DE}\u{5D9}\u{5D5}\u{5EA} \u{5E6}\u{5D1}\u{5E2}`,dropzoneLabel:"DropZone",selectPlaceholder:`\u{5D1}\u{5D7}\u{5E8} \u{5E4}\u{5E8}\u{5D9}\u{5D8}`,tableResizer:`\u{5E9}\u{5D9}\u{5E0}\u{5D5}\u{5D9} \u{5D2}\u{5D5}\u{5D3}\u{5DC}`},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:`Zona spu\u{161}tanja`,selectPlaceholder:"Odaberite stavku",tableResizer:`Promjena veli\u{10D}ine`},"hu-HU":{colorSwatchPicker:`Sz\xednt\xe1rak`,dropzoneLabel:"DropZone",selectPlaceholder:`V\xe1lasszon ki egy elemet`,tableResizer:`\xc1tm\xe9retez\u{151}`},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:`\u{30AB}\u{30E9}\u{30FC}\u{30B9}\u{30A6}\u{30A9}\u{30C3}\u{30C1}`,dropzoneLabel:`\u{30C9}\u{30ED}\u{30C3}\u{30D7}\u{30BE}\u{30FC}\u{30F3}`,selectPlaceholder:`\u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}`,tableResizer:`\u{30B5}\u{30A4}\u{30BA}\u{5909}\u{66F4}\u{30C4}\u{30FC}\u{30EB}`},"ko-KR":{colorSwatchPicker:`\u{C0C9}\u{C0C1} \u{ACAC}\u{BCF8}`,dropzoneLabel:`\u{B4DC}\u{B86D} \u{C601}\u{C5ED}`,selectPlaceholder:`\u{D56D}\u{BAA9} \u{C120}\u{D0DD}`,tableResizer:`\u{D06C}\u{AE30} \u{C870}\u{C815}\u{AE30}`},"lt-LT":{colorSwatchPicker:`Spalv\u{173} pavyzd\u{17E}iai`,dropzoneLabel:`\u{201E}DropZone\u{201C}`,selectPlaceholder:`Pasirinkite element\u{105}`,tableResizer:`Dyd\u{17E}io keitiklis`},"lv-LV":{colorSwatchPicker:`Kr\u{101}su paraugi`,dropzoneLabel:"DropZone",selectPlaceholder:`Izv\u{113}l\u{113}ties vienumu`,tableResizer:`Izm\u{113}ra main\u{12B}t\u{101}js`},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:`St\xf8rrelsesendrer`},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:`Pr\xf3bki kolor\xf3w`,dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:`Zon\u{103} de plasare`,selectPlaceholder:`Selecta\u{21B}i un element`,tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:`\u{426}\u{432}\u{435}\u{442}\u{43E}\u{432}\u{44B}\u{435} \u{43E}\u{431}\u{440}\u{430}\u{437}\u{446}\u{44B}`,dropzoneLabel:"DropZone",selectPlaceholder:`\u{412}\u{44B}\u{431}\u{435}\u{440}\u{438}\u{442}\u{435} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,tableResizer:`\u{421}\u{440}\u{435}\u{434}\u{441}\u{442}\u{432}\u{43E} \u{438}\u{437}\u{43C}\u{435}\u{43D}\u{435}\u{43D}\u{438}\u{44F} \u{440}\u{430}\u{437}\u{43C}\u{435}\u{440}\u{430}`},"sk-SK":{colorSwatchPicker:`Vzorkovn\xedky farieb`,dropzoneLabel:"DropZone",selectPlaceholder:`Vyberte polo\u{17E}ku`,tableResizer:`N\xe1stroj na zmenu ve\u{13E}kosti`},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:`Promena veli\u{10D}ine`},"sv-SE":{colorSwatchPicker:`F\xe4rgrutor`,dropzoneLabel:"DropZone",selectPlaceholder:`V\xe4lj en artikel`,tableResizer:`Storleks\xe4ndrare`},"tr-TR":{colorSwatchPicker:`Renk \xf6rnekleri`,dropzoneLabel:`B\u{131}rakma B\xf6lgesi`,selectPlaceholder:`Bir \xf6\u{11F}e se\xe7in`,tableResizer:`Yeniden boyutland\u{131}r\u{131}c\u{131}`},"uk-UA":{colorSwatchPicker:`\u{417}\u{440}\u{430}\u{437}\u{43A}\u{438} \u{43A}\u{43E}\u{43B}\u{44C}\u{43E}\u{440}\u{456}\u{432}`,dropzoneLabel:"DropZone",selectPlaceholder:`\u{412}\u{438}\u{431}\u{435}\u{440}\u{456}\u{442}\u{44C} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,tableResizer:`\u{417}\u{430}\u{441}\u{456}\u{431} \u{437}\u{43C}\u{456}\u{43D}\u{435}\u{43D}\u{43D}\u{44F} \u{440}\u{43E}\u{437}\u{43C}\u{456}\u{440}\u{443}`},"zh-CN":{colorSwatchPicker:`\u{989C}\u{8272}\u{8272}\u{677F}`,dropzoneLabel:`\u{653E}\u{7F6E}\u{533A}\u{57DF}`,selectPlaceholder:`\u{9009}\u{62E9}\u{4E00}\u{4E2A}\u{9879}\u{76EE}`,tableResizer:`\u{5C3A}\u{5BF8}\u{8C03}\u{6574}\u{5668}`},"zh-TW":{colorSwatchPicker:`\u{8272}\u{7968}`,dropzoneLabel:`\u{653E}\u{7F6E}\u{5340}`,selectPlaceholder:`\u{9078}\u{53D6}\u{9805}\u{76EE}`,tableResizer:`\u{5927}\u{5C0F}\u{8ABF}\u{6574}\u{5668}`}};var u=l(21704),a=l(26021),d=l(54194),c=l(30421),p=l(27279),f=l(16133),h=l(5987),v=l(56606),g=l(84137),y=l(72166),m=l(96540),b=l(97275),E=l(18399),C=l(95562),w=l(82627),S=l(85441),D=l(74400);let K=new WeakMap;var x=l(8343),P=l(48868),k=l(87979);function R(e){var t;let{state:l,triggerRef:n,label:i,name:o,isDisabled:r}=e,s=(0,m.useRef)(null),{containerProps:u,selectProps:a}=function(e,t,l){var n;let i=K.get(t)||{},{autoComplete:o,name:r=i.name,isDisabled:s=i.isDisabled}=e,{validationBehavior:u,isRequired:a}=i,{visuallyHiddenProps:d}=(0,k.B)();return(0,x.F)(e.selectRef,t.selectedKey,t.setSelectedKey),(0,P.X)({validationBehavior:u,focus:()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.focus()}},t,e.selectRef),{containerProps:{...d,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:s,required:"native"===u&&a,name:r,value:null!==(n=t.selectedKey)&&void 0!==n?n:"",onChange:e=>t.setSelectedKey(e.target.value)}}}({...e,selectRef:s},l,n);return l.collection.size<=300?m.createElement("div",{...u,"data-testid":"hidden-select-container"},m.createElement("label",null,i,m.createElement("select",{...a,ref:s},m.createElement("option",null),[...l.collection.getKeys()].map(e=>{let t=l.collection.getItem(e);if(t&&"item"===t.type)return m.createElement("option",{key:t.key,value:t.key},t.textValue)})))):o?m.createElement("input",{type:"hidden",autoComplete:a.autoComplete,name:o,disabled:r,value:null!==(t=l.selectedKey)&&void 0!==t?t:""}):null}var N=l(46246),B=l(71144),M=l(71732),T=l(319),F=l(68623),A=l(77366);let L=(0,m.createContext)(null),z=(0,m.createContext)(null),I=(0,m.forwardRef)(function(e,t){[e,t]=(0,i.JT)(e,t,L);let{children:l,isDisabled:n=!1,isInvalid:o=!1,isRequired:r=!1}=e,s=(0,m.useMemo)(()=>"function"==typeof l?l({isOpen:!1,isDisabled:n,isInvalid:o,isRequired:r,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):l,[l,n,o,r]);return m.createElement(F.GQ,{content:s},l=>m.createElement(O,{props:e,collection:l,selectRef:t}))});function O({props:e,selectRef:t,collection:l}){var s,x;let{validationBehavior:P}=(0,i.CC)(r.c)||{},k=null!==(x=null!==(s=e.validationBehavior)&&void 0!==s?s:P)&&void 0!==x?x:"native",N=function(e){let t=(0,M.T)(e),[l,n]=(0,m.useState)(null),i=(0,T.V)({...e,onSelectionChange:l=>{null!=e.onSelectionChange&&e.onSelectionChange(l),t.close(),o.commitValidation()}}),o=(0,B.KZ)({...e,value:i.selectedKey}),[r,s]=(0,m.useState)(!1);return{...o,...i,...t,focusStrategy:l,open(e=null){0!==i.collection.size&&(n(e),t.open())},toggle(e=null){0!==i.collection.size&&(n(e),t.toggle())},isFocused:r,setFocused:s}}({...e,collection:l,children:void 0,validationBehavior:k}),{isFocusVisible:F,focusProps:I}=(0,f.o)({within:!0}),O=(0,m.useRef)(null),[H,U]=(0,i._E)(),{labelProps:_,triggerProps:W,valueProps:$,menuProps:j,descriptionProps:q,errorMessageProps:Z,...J}=function(e,t,l){let{keyboardDelegate:n,isDisabled:i,isRequired:o,name:r,validationBehavior:s="aria"}=e,u=(0,w.Q)({usage:"search",sensitivity:"base"}),a=(0,m.useMemo)(()=>n||new b.n(t.collection,t.disabledKeys,l,u),[n,t.collection,t.disabledKeys,u]),{menuTriggerProps:d,menuProps:c}=(0,D.V)({isDisabled:i,type:"listbox"},t,l),{typeSelectProps:p}=(0,E.I)({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:f,validationErrors:x,validationDetails:P}=t.displayValidation,{labelProps:k,fieldProps:R,descriptionProps:N,errorMessageProps:B}=(0,S.M)({...e,labelElementType:"span",isInvalid:f,errorMessage:e.errorMessage||x});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let M=(0,h.$)(e,{labelable:!0}),T=(0,v.v)(p,d,R),F=(0,g.Bi)();return K.set(t,{isDisabled:i,isRequired:o,name:r,validationBehavior:s}),{labelProps:{...k,onClick:()=>{if(!e.isDisabled){var t;null===(t=l.current)||void 0===t||t.focus(),(0,C.Cl)("keyboard")}}},triggerProps:(0,v.v)(M,{...T,isDisabled:i,onKeyDown:(0,y.c)(T.onKeyDown,e=>{var l,n,i,o;switch(e.key){case"ArrowLeft":{e.preventDefault();let i=null!=t.selectedKey?null===(l=a.getKeyAbove)||void 0===l?void 0:l.call(a,t.selectedKey):null===(n=a.getFirstKey)||void 0===n?void 0:n.call(a);i&&t.setSelectedKey(i);break}case"ArrowRight":{e.preventDefault();let l=null!=t.selectedKey?null===(i=a.getKeyBelow)||void 0===i?void 0:i.call(a,t.selectedKey):null===(o=a.getFirstKey)||void 0===o?void 0:o.call(a);l&&t.setSelectedKey(l)}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[F,T["aria-labelledby"],T["aria-label"]&&!T["aria-labelledby"]?T.id:null].filter(Boolean).join(" "),onFocus(l){t.isFocused||(e.onFocus&&e.onFocus(l),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(l){t.isOpen||(e.onBlur&&e.onBlur(l),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:F},menuProps:{...c,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:l=>{l.currentTarget.contains(l.relatedTarget)||(e.onBlur&&e.onBlur(l),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[R["aria-labelledby"],T["aria-label"]&&!R["aria-labelledby"]?T.id:null].filter(Boolean).join(" ")},descriptionProps:N,errorMessageProps:B,isInvalid:f,validationErrors:x,validationDetails:P}}({...(0,i.SK)(e),label:U,validationBehavior:k},N,O),[G,Y]=(0,m.useState)(null),Q=(0,m.useCallback)(()=>{O.current&&Y(O.current.offsetWidth+"px")},[O]);(0,A.w)({ref:O,onResize:Q});let X=(0,m.useMemo)(()=>({isOpen:N.isOpen,isFocused:N.isFocused,isFocusVisible:F,isDisabled:e.isDisabled||!1,isInvalid:J.isInvalid||!1,isRequired:e.isRequired||!1}),[N.isOpen,N.isFocused,F,e.isDisabled,J.isInvalid,e.isRequired]),ee=(0,i.Sl)({...e,values:X,defaultClassName:"react-aria-Select"}),et=(0,h.$)(e);delete et.id;let el=(0,m.useRef)(null);return m.createElement(i.Kq,{values:[[L,e],[z,N],[V,$],[u.I,{..._,ref:H,elementType:"span"}],[n.k,{...W,ref:O,isPressed:N.isOpen}],[d.RG,N],[c.n,{trigger:"Select",triggerRef:O,scrollRef:el,placement:"bottom start",style:{"--trigger-width":G}}],[a.JC,{...j,ref:el}],[a.DN,N],[p.h,{slots:{description:q,errorMessage:Z}}],[o.C,J]]},m.createElement("div",{...et,...ee,...I,ref:t,slot:e.slot||void 0,"data-focused":N.isFocused||void 0,"data-focus-visible":F||void 0,"data-open":N.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":J.isInvalid||void 0,"data-required":e.isRequired||void 0}),m.createElement(R,{autoComplete:e.autoComplete,state:N,triggerRef:O,label:U,name:e.name,isDisabled:e.isDisabled}))}let V=(0,m.createContext)(null),H=(0,m.forwardRef)(function(e,t){var l,n,o,r,u,a;[e,t]=(0,i.JT)(e,t,V);let d=(0,m.useContext)(z),{placeholder:c}=(0,i.CC)(L),f=null!=d.selectedKey?d.collection.getItem(d.selectedKey):null,v=null==f?void 0:f.props.children;"function"==typeof v&&(v=v({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let g=(0,N.o)((a=s)&&a.__esModule?a.default:a,"react-aria-components"),y=(0,i.Sl)({...e,defaultChildren:null!==(o=null!=v?v:c)&&void 0!==o?o:g.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:null!==(r=null===(l=d.selectedItem)||void 0===l?void 0:l.value)&&void 0!==r?r:null,selectedText:null!==(u=null===(n=d.selectedItem)||void 0===n?void 0:n.textValue)&&void 0!==u?u:null,isPlaceholder:!f}}),b=(0,h.$)(e);return m.createElement("span",{ref:t,...b,...y,"data-placeholder":!f||void 0},m.createElement(p.h.Provider,{value:void 0},y.children))})}}]);