"use strict";!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]="33b2991b-47e7-4647-bfe4-f939a2f3a2ca",e._sentryDebugIdIdentifier="sentry-dbid-33b2991b-47e7-4647-bfe4-f939a2f3a2ca")}catch(e){}}(),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]="33b2991b-47e7-4647-bfe4-f939a2f3a2ca",e._sentryDebugIdIdentifier="sentry-dbid-33b2991b-47e7-4647-bfe4-f939a2f3a2ca")}catch(e){}}(),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]="33b2991b-47e7-4647-bfe4-f939a2f3a2ca",e._sentryDebugIdIdentifier="sentry-dbid-33b2991b-47e7-4647-bfe4-f939a2f3a2ca")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4834],{57123:function(e,t,n){n.d(t,{g:function(){return E}});var l=n(17945),o=n(2265),r=n(54887),i=n(16874);let s=["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]"],c=s.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";s.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let u=s.join(':not([hidden]):not([tabindex="-1"]),');class a{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let l=this.fastMap.get(null!=t?t:null);if(!l)return;let o=new d({scopeRef:e});l.addChild(o),o.parent=l,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&function(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let l=t.children;n&&(n.removeChild(t),l.size>0&&l.forEach(e=>n&&n.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 n=new a;for(let l of this.traverse())n.addTreeNode(l.scopeRef,null!==(t=null===(e=l.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,l.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new d({scopeRef:null}),this.fastMap.set(null,this.root)}}class d{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}}new a;var f=n(56099),y=n(51219),h=n(29804),p=n(89935),g=n(30029);function v(e,t){let n=m(e,t,"left"),l=m(e,t,"top"),o=t.offsetWidth,r=t.offsetHeight,i=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:u}=getComputedStyle(e),a=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(c,10),f=a+e.clientWidth,y=d+e.clientHeight;n<=i?i=n-parseInt(u,10):n+o>f&&(i+=n+o-f),l<=d?s=l-parseInt(c,10):l+r>y&&(s+=l+r-y),e.scrollLeft=i,e.scrollTop=s}function m(e,t,n){let l="left"===n?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[l],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[l];break}t=t.offsetParent}return o}function K(e,t){if(document.contains(e)){let i=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(i).overflow)for(let t of function(e,t){let n=[];for(;e&&e!==document.documentElement;)(0,g.a)(e,void 0)&&n.push(e),e=e.parentElement;return n}(e))v(t,e);else{var n,l,o,r;let{left:i,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:c,top:u}=e.getBoundingClientRect();(Math.abs(i-c)>1||Math.abs(s-u)>1)&&(null==t||null===(o=t.containingElement)||void 0===o||null===(l=o.scrollIntoView)||void 0===l||l.call(o,{block:"center",inline:"center"}),null===(r=e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest"}))}}}var b=n(65553),w=n(79763),S=n(2058);function E(e){var t,n,s;let a,d,g,{selectionManager:m,keyboardDelegate:E,ref:k,autoFocus:L=!1,shouldFocusWrap:I=!1,disallowEmptySelection:C=!1,disallowSelectAll:A=!1,selectOnFocus:T="replace"===m.selectionBehavior,disallowTypeAhead:M=!1,shouldUseVirtualFocus:F,allowsTabNavigation:N=!1,isVirtualized:x,scrollRef:D=k,linkBehavior:R="action"}=e,{direction:P}=(0,S.j)(),_=(0,y.tv)(),z=(0,o.useRef)({top:0,left:0});t="scroll",n=x?null:()=>{z.current={top:D.current.scrollTop,left:D.current.scrollLeft}},a=(0,p.i)(n),d=null==n,(0,o.useEffect)(()=>{if(d||!D.current)return;let e=D.current;return e.addEventListener(t,a,void 0),()=>{e.removeEventListener(t,a,s)}},[D,t,s,d,a]);let B=(0,o.useRef)(L);(0,o.useEffect)(()=>{if(B.current){let e=null;"first"===L&&(e=E.getFirstKey()),"last"===L&&(e=E.getLastKey());let t=m.selectedKeys;if(t.size){for(let n of t)if(m.canSelectItem(n)){e=n;break}}m.setFocused(!0),m.setFocusedKey(e),null!=e||F||(0,f.e)(k.current)}},[]);let O=(0,o.useRef)(m.focusedKey);(0,o.useEffect)(()=>{let e=(0,w.Jz)();if(m.isFocused&&null!=m.focusedKey&&(null==D?void 0:D.current)){let t=D.current.querySelector(`[data-key="${CSS.escape(m.focusedKey.toString())}"]`);t&&("keyboard"===e||B.current)&&(x||v(D.current,t),"virtual"!==e&&K(t,{containingElement:k.current}))}m.isFocused&&null==m.focusedKey&&null!=O.current&&(0,f.e)(k.current),O.current=m.focusedKey,B.current=!1},[x,D,m.focusedKey,m.isFocused,k]);let V={onKeyDown:e=>{var t,n,o,s,a,d,f,y,p,g;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!k.current.contains(e.target))return;let v=(t,n)=>{if(null!=t){if(m.isLink(t)&&"selection"===R&&T&&!(0,l.F)(e)){(0,r.flushSync)(()=>{m.setFocusedKey(t,n)});let l=D.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),o=m.getItemProps(t);_.open(l,e,o.href,o.routerOptions);return}m.setFocusedKey(t,n),m.isLink(t)&&"override"===R||(e.shiftKey&&"multiple"===m.selectionMode?m.extendSelection(t):T&&!(0,l.F)(e)&&m.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(E.getKeyBelow){e.preventDefault();let l=null!=m.focusedKey?E.getKeyBelow(m.focusedKey):null===(t=E.getFirstKey)||void 0===t?void 0:t.call(E);null==l&&I&&(l=null===(n=E.getFirstKey)||void 0===n?void 0:n.call(E,m.focusedKey)),v(l)}break;case"ArrowUp":if(E.getKeyAbove){e.preventDefault();let t=null!=m.focusedKey?E.getKeyAbove(m.focusedKey):null===(o=E.getLastKey)||void 0===o?void 0:o.call(E);null==t&&I&&(t=null===(s=E.getLastKey)||void 0===s?void 0:s.call(E,m.focusedKey)),v(t)}break;case"ArrowLeft":if(E.getKeyLeftOf){e.preventDefault();let t=E.getKeyLeftOf(m.focusedKey);null==t&&I&&(t="rtl"===P?null===(a=E.getFirstKey)||void 0===a?void 0:a.call(E,m.focusedKey):null===(d=E.getLastKey)||void 0===d?void 0:d.call(E,m.focusedKey)),v(t,"rtl"===P?"first":"last")}break;case"ArrowRight":if(E.getKeyRightOf){e.preventDefault();let t=E.getKeyRightOf(m.focusedKey);null==t&&I&&(t="rtl"===P?null===(f=E.getLastKey)||void 0===f?void 0:f.call(E,m.focusedKey):null===(y=E.getFirstKey)||void 0===y?void 0:y.call(E,m.focusedKey)),v(t,"rtl"===P?"last":"first")}break;case"Home":if(E.getFirstKey){e.preventDefault();let t=E.getFirstKey(m.focusedKey,(0,l.y)(e));m.setFocusedKey(t),(0,l.y)(e)&&e.shiftKey&&"multiple"===m.selectionMode?m.extendSelection(t):T&&m.replaceSelection(t)}break;case"End":if(E.getLastKey){e.preventDefault();let t=E.getLastKey(m.focusedKey,(0,l.y)(e));m.setFocusedKey(t),(0,l.y)(e)&&e.shiftKey&&"multiple"===m.selectionMode?m.extendSelection(t):T&&m.replaceSelection(t)}break;case"PageDown":E.getKeyPageBelow&&(e.preventDefault(),v(E.getKeyPageBelow(m.focusedKey)));break;case"PageUp":E.getKeyPageAbove&&(e.preventDefault(),v(E.getKeyPageAbove(m.focusedKey)));break;case"a":(0,l.y)(e)&&"multiple"===m.selectionMode&&!0!==A&&(e.preventDefault(),m.selectAll());break;case"Escape":C||0===m.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),m.clearSelection());break;case"Tab":if(!N){if(e.shiftKey)k.current.focus();else{let e,t;let n,l,o=(p=k.current,e=(g={tabbable:!0}).tabbable?u:c,t=(0,i.r)(p).createTreeWalker(p,NodeFilter.SHOW_ELEMENT,{acceptNode(t){var n;return(null==g?void 0:null===(n=g.from)||void 0===n?void 0:n.contains(t))?NodeFilter.FILTER_REJECT:t.matches(e)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){let t=(0,i.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:l}=e.style,o="none"!==n&&"hidden"!==l&&"collapse"!==l;if(o){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:l}=t(e);o="none"!==n&&"hidden"!==l&&"collapse"!==l}return o}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(t)&&(!(null==g?void 0:g.accept)||g.accept(t))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),(null==g?void 0:g.from)&&(t.currentNode=g.from),t);do(l=o.lastChild())&&(n=l);while(l);n&&!n.contains(document.activeElement)&&(0,h.A)(n)}}}},onFocus:e=>{if(m.isFocused){e.currentTarget.contains(e.target)||m.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(m.setFocused(!0),null==m.focusedKey){var t,n;let l=e=>{null!=e&&(m.setFocusedKey(e),T&&m.replaceSelection(e))},o=e.relatedTarget;o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?l(null!==(t=m.lastSelectedKey)&&void 0!==t?t:E.getLastKey()):l(null!==(n=m.firstSelectedKey)&&void 0!==n?n:E.getFirstKey())}else x||(D.current.scrollTop=z.current.top,D.current.scrollLeft=z.current.left);if(!x&&null!=m.focusedKey){let e=D.current.querySelector(`[data-key="${CSS.escape(m.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,h.A)(e),"keyboard"===(0,w.Jz)()&&K(e,{containingElement:k.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||m.setFocused(!1)},onMouseDown(e){D.current===e.target&&e.preventDefault()}},{typeSelectProps:$}=function(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:l}=e,r=(0,o.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var o;let i=1!==(o=e.key).length&&/^[A-Z]/i.test(o)?"":o;if(!i||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "!==i||!(r.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),r.search+=i;let s=t.getKeyForSearch(r.search,n.focusedKey);null==s&&(s=t.getKeyForSearch(r.search)),null!=s&&(n.setFocusedKey(s),l&&l(s)),clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},1e3)}:null}}}({keyboardDelegate:E,selectionManager:m});return M||(V=(0,b.d)($,V)),F||(g=null==m.focusedKey?0:-1),{collectionProps:{...V,tabIndex:g}}}},17945:function(e,t,n){n.d(t,{F:function(){return o},y:function(){return r}});var l=n(97835);function o(e){return(0,l.ad)()?e.altKey:e.ctrlKey}function r(e){return(0,l.V5)()?e.metaKey:e.ctrlKey}},56099:function(e,t,n){n.d(t,{e:function(){return s}});var l=n(16874),o=n(33635),r=n(29804),i=n(79763);function s(e){let t=(0,l.r)(e);if("virtual"===(0,i.Jz)()){let n=t.activeElement;(0,o.Q)(()=>{t.activeElement===n&&e.isConnected&&(0,r.A)(e)})}else(0,r.A)(e)}},2058:function(e,t,n){n.d(t,{j:function(){return y}});let l=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var r=n(2265),i=n(10666);let s=Symbol.for("react-aria.i18n.locale");function c(){let e="undefined"!=typeof window&&window[s]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return l.has(t.script)}let t=e.split("-")[0];return o.has(t)}(e)?"ltr":"rtl"}}let u=c(),a=new Set;function d(){for(let e of(u=c(),a))e(u)}let f=r.createContext(null);function y(){let e=function(){let e=(0,i.Av)(),[t,n]=(0,r.useState)(u);return((0,r.useEffect)(()=>(0===a.size&&window.addEventListener("languagechange",d),a.add(n),()=>{a.delete(n),0===a.size&&window.removeEventListener("languagechange",d)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(f)||e}},79763:function(e,t,n){n.d(t,{Jz:function(){return K}});var l=n(97835),o=n(14465),r=n(16874);n(2265);let i=null,s=new Set,c=new Map,u=!1,a=!1;function d(e,t){for(let n of s)n(e,t)}function f(e){u=!0,e.metaKey||!(0,l.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(i="keyboard",d("keyboard",e))}function y(e){i="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(u=!0,d("pointer",e))}function h(e){(0,o.Z)(e)&&(u=!0,i="virtual")}function p(e){e.target!==window&&e.target!==document&&(u||a||(i="virtual",d("virtual",e)),u=!1,a=!1)}function g(){u=!1,a=!0}function v(e){if("undefined"==typeof window||c.get((0,r.k)(e)))return;let t=(0,r.k)(e),n=(0,r.r)(e),l=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){u=!0,l.apply(this,arguments)},n.addEventListener("keydown",f,!0),n.addEventListener("keyup",f,!0),n.addEventListener("click",h,!0),t.addEventListener("focus",p,!0),t.addEventListener("blur",g,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",y,!0),n.addEventListener("pointermove",y,!0),n.addEventListener("pointerup",y,!0)):(n.addEventListener("mousedown",y,!0),n.addEventListener("mousemove",y,!0),n.addEventListener("mouseup",y,!0)),t.addEventListener("beforeunload",()=>{m(e)},{once:!0}),c.set(t,{focus:l})}let m=(e,t)=>{let n=(0,r.k)(e),l=(0,r.r)(e);t&&l.removeEventListener("DOMContentLoaded",t),c.has(n)&&(n.HTMLElement.prototype.focus=c.get(n).focus,l.removeEventListener("keydown",f,!0),l.removeEventListener("keyup",f,!0),l.removeEventListener("click",h,!0),n.removeEventListener("focus",p,!0),n.removeEventListener("blur",g,!1),"undefined"!=typeof PointerEvent?(l.removeEventListener("pointerdown",y,!0),l.removeEventListener("pointermove",y,!0),l.removeEventListener("pointerup",y,!0)):(l.removeEventListener("mousedown",y,!0),l.removeEventListener("mousemove",y,!0),l.removeEventListener("mouseup",y,!0)),c.delete(n))};function K(){return i}"undefined"!=typeof document&&function(e){let t;let n=(0,r.r)(void 0);"loading"!==n.readyState?v(void 0):(t=()=>{v(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>m(e,t)}()},49319:function(e,t,n){n.d(t,{t:function(){return l}});function l(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}},16874:function(e,t,n){n.d(t,{k:function(){return o},r:function(){return l}});let l=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},o=e=>e&&"window"in e&&e.window===e?e:l(e).defaultView||window},29804:function(e,t,n){function l(e){if(function(){if(null==o){o=!1;try{document.createElement("div").focus({get preventScroll(){return o=!0,!0}})}catch(e){}}return o}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],l=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==l;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return l instanceof HTMLElement&&n.push({element:l,scrollTop:l.scrollTop,scrollLeft:l.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:l}of e)t.scrollTop=n,t.scrollLeft=l}(t)}}n.d(t,{A:function(){return l}});let o=null},30029:function(e,t,n){n.d(t,{a:function(){return l}});function l(e,t){let n=window.getComputedStyle(e),l=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return l&&t&&(l=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),l}},14465:function(e,t,n){n.d(t,{Z:function(){return o},c:function(){return r}});var l=n(97835);function o(e){return 0===e.mozInputSource&&!!e.isTrusted||((0,l.Dt)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function r(e){return!(0,l.Dt)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},65553:function(e,t,n){n.d(t,{d:function(){return i}});var l=n(49319);n(2265),"undefined"!=typeof window&&window.document&&window.document.createElement;let o=new Map;var r=n(98099);function i(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let i=e[n];for(let e in i){let n=t[e],s=i[e];"function"==typeof n&&"function"==typeof s&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=(0,l.t)(n,s):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof s?t[e]=(0,r.Z)(n,s):"id"===e&&n&&s?t.id=function(e,t){if(e===t)return e;let n=o.get(e);if(n)return n(t),t;let l=o.get(t);return l?(l(e),e):t}(n,s):t[e]=void 0!==s?s:n}}return t}},51219:function(e,t,n){n.d(t,{nG:function(){return c},tv:function(){return s}});var l=n(29804),o=n(97835),r=n(2265);let i=(0,r.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,e=>c(e,t))},useHref:e=>e});function s(){return(0,r.useContext)(i)}function c(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:u,altKey:a,shiftKey:d}=t;(0,o.vU)()&&(null===(i=window.event)||void 0===i?void 0:null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&((0,o.V5)()?s=!0:u=!0);let f=(0,o.Pf)()&&(0,o.V5)()&&!(0,o.zc)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:u,altKey:a,shiftKey:d}):new MouseEvent("click",{metaKey:s,ctrlKey:u,altKey:a,shiftKey:d,bubbles:!0,cancelable:!0});c.isOpening=n,(0,l.A)(e),e.dispatchEvent(f),c.isOpening=!1}c.isOpening=!1},97835:function(e,t,n){function l(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function o(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function r(){return o(/^Mac/i)}function i(){return o(/^iPad/i)||r()&&navigator.maxTouchPoints>1}function s(){return o(/^iPhone/i)||i()}function c(){return r()||s()}function u(){return l(/AppleWebKit/i)&&!l(/Chrome/i)}function a(){return l(/Android/i)}function d(){return l(/Firefox/i)}n.d(t,{Dt:function(){return a},Pf:function(){return u},V5:function(){return r},ad:function(){return c},gn:function(){return s},vU:function(){return d},zc:function(){return i}})},33635:function(e,t,n){n.d(t,{Q:function(){return i}});let l=new Map,o=new Set;function r(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=l.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),l.delete(n.target)),0===l.size)){for(let e of o)e();o.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let o=l.get(n.target);o||(o=new Set,l.set(n.target,o),n.target.addEventListener("transitioncancel",t,{once:!0})),o.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function i(e){requestAnimationFrame(()=>{0===l.size?e():o.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r))},89935:function(e,t,n){n.d(t,{i:function(){return r}});var l=n(31538),o=n(2265);function r(e){let t=(0,o.useRef)(null);return(0,l.b)(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}},31538:function(e,t,n){n.d(t,{b:function(){return o}});var l=n(2265);let o="undefined"!=typeof document?l.useLayoutEffect:()=>{}},87551:function(e,t,n){n.d(t,{$0:function(){return s},Em:function(){return h},Kx:function(){return d},_P:function(){return f},ck:function(){return r},is:function(){return v},l8:function(){return y},s:function(){return p}});var l=n(2265);function o(e){return null}o.getCollectionNode=function*(e,t){let{childItems:n,title:o,children:r}=e,i=e.title||e.children,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";s||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:s,"aria-label":e["aria-label"],hasChildNodes:null!=e.hasChildItems?e.hasChildItems:!!(e.childItems||e.title&&l.Children.count(e.children)>0),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(o){let e=[];l.Children.forEach(r,t=>{e.push({type:"item",element:t})}),yield*e}}}};let r=o;function i(e){return null}i.getCollectionNode=function*(e){let{children:t,title:n,items:o}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:n,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];l.Children.forEach(t,t=>{e.push({type:"item",element:t})}),yield*e}}}};let s=i;class c{build(e,t){return this.context=t,u(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if("function"==typeof t){if(!n)throw Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];l.Children.forEach(t,t=>{e.push(t)});let n=0;for(let t of e)for(let e of this.getFullNode({element:t,index:n},{}))n++,yield e}}getKey(e,t,n,l){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${l}${t.key}`;let o=t.value;if(null!=o){var r;let e=null!==(r=o.key)&&void 0!==r?r:o.id;if(null==e)throw Error("No key found for item");return e}return l?`${l}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,o){let r=e.element;if(!r&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=o?o.key:null,yield n;return}r=t.renderer(e.value)}if(l.isValidElement(r)){let l=r.type;if("function"!=typeof l&&"function"!=typeof l.getCollectionNode){let e="function"==typeof r.type?r.type.name:r.type;throw Error(`Unknown element <${e}> in collection.`)}let i=l.getCollectionNode(r.props,this.context),s=e.index,c=i.next();for(;!c.done&&c.value;){let l=c.value;e.index=s;let u=l.key;u||(u=l.element?null:this.getKey(r,e,t,n));let d=[...this.getFullNode({...l,key:u,index:s,wrapper:function(e,t){return e&&t?n=>e(t(n)):e||t||void 0}(e.wrapper,l.wrapper)},this.getChildState(t,l),n?`${n}${r.key}`:r.key,o)];for(let t of d){if(t.value=l.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${a(t.type)}> in <${a(o.type)}>. Only <${a(e.type)}> is supported.`);s++,yield t}c=i.next(d)}return}if(null==e.key)return;let i=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:u(function*(){if(!e.hasChildNodes)return;let n=0;for(let l of e.childNodes())for(let e of(null!=l.key&&(l.key=`${s.key}${l.key}`),l.index=n,i.getFullNode(l,i.getChildState(t,l),s.key,s)))n++,yield e})};yield s}constructor(){this.cache=new WeakMap}}function u(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let l of(n||(n=e()),n))t.push(l),yield l}}}function a(e){return e[0].toUpperCase()+e.slice(1)}function d(e,t,n){let o=(0,l.useMemo)(()=>new c,[]),{children:r,items:i,collection:s}=e;return(0,l.useMemo)(()=>s||t(o.build({children:r,items:i},n)),[o,r,i,s,n,t])}function f(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function y(e){return h(e,0)}function h(e,t){if(t<0)return;let n=0;for(let l of e){if(n===t)return l;n++}}function p(e){let t;for(let n of e)t=n;return t}let g=new WeakMap;function v(e){let t=g.get(e);if(null!=t)return t;t=0;let n=l=>{for(let o of l)"section"===o.type?n(f(o,e)):t++};return n(e),g.set(e,t),t}},46425:function(e,t,n){n.d(t,{Y:function(){return l}});class l extends Set{constructor(e,t,n){super(e),e instanceof l?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}},93281:function(e,t,n){n.d(t,{Z:function(){return i}});var l=n(46425);function o(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let l=[...r(e,t),t],o=[...r(e,n),n],i=l.slice(0,o.length).findIndex((e,t)=>e!==o[t]);return -1!==i?(t=l[i],n=o[i],t.index-n.index):l.findIndex(e=>e===n)>=0?1:(o.findIndex(e=>e===t),-1)}function r(e,t){let n=[];for(;(null==t?void 0:t.parentKey)!=null;)n.unshift(t=e.getItem(t.parentKey));return n}class i{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){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}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(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&0>o(this.collection,n,e))&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&o(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"!==this.selectionMode){if("single"===this.selectionMode){this.replaceSelection(e);return}if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new l.Y([e],e,e);else{let n=this.state.selectedKeys,o=n.anchorKey||e;for(let r of(t=new l.Y(n,o,e),this.getKeyRange(o,n.currentKey||e)))t.delete(r);for(let n of this.getKeyRange(e,o))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let n=this.collection.getItem(e),l=this.collection.getItem(t);return n&&l?0>=o(this.collection,n,l)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],l=e;for(;l;){let e=this.collection.getItem(l);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(l),l===t)return n;l=this.collection.getKeyAfter(l)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;"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}if(null==(e=this.getKey(e)))return;let t=new l.Y("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode||null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new l.Y([e],e,e):new l.Y;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new l.Y;for(let n of e)if(null!=(n=this.getKey(n))&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(this.canSelectItem(n)){let o=this.collection.getItem(n);if("item"===o.type&&e.push(n),o.hasChildNodes&&(this.allowsCellSelection||"item"!==o.type)){var l;t(function(e,t){let n=0;for(let t of e){if(0===n)return t;n++}}("function"==typeof(l=this.collection).getChildren?l.getChildren(o.key):o.childNodes,0).key)}}n=this.collection.getKeyAfter(n)}};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 l.Y)}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 n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!!n&&(null==n||null===(t=n.props)||void 0===t||!t.isDisabled)&&("cell"!==n.type||!!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.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,n){var l;this.collection=e,this.state=t,this.allowsCellSelection=null!==(l=null==n?void 0:n.allowsCellSelection)&&void 0!==l&&l,this._isSelectAll=null}}},82695:function(e,t,n){n.d(t,{q:function(){return r}});var l=n(46425),o=n(2265);function r(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:s="toggle",disabledBehavior:c="all"}=e,u=(0,o.useRef)(!1),[,a]=(0,o.useState)(!1),d=(0,o.useRef)(null),f=(0,o.useRef)(null),[,y]=(0,o.useState)(null),[h,p]=function(e,t,n){let[l,r]=(0,o.useState)(e||t),i=(0,o.useRef)(void 0!==e),s=void 0!==e;(0,o.useEffect)(()=>{let e=i.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let c=s?e:l,u=(0,o.useCallback)((e,...t)=>{let l=(e,...t)=>{n&&!Object.is(c,e)&&n(e,...t),s||(c=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),r((n,...o)=>{let r=e(s?c:n,...o);return(l(r,...t),s)?n:r})):(s||r(e),l(e,...t))},[s,c,n]);return[c,u]}((0,o.useMemo)(()=>i(e.selectedKeys),[e.selectedKeys]),(0,o.useMemo)(()=>i(e.defaultSelectedKeys,new l.Y),[e.defaultSelectedKeys]),e.onSelectionChange),g=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,m]=(0,o.useState)(s);"replace"===s&&"toggle"===v&&"object"==typeof h&&0===h.size&&m("replace");let K=(0,o.useRef)(s);return(0,o.useEffect)(()=>{s!==K.current&&(m(s),K.current=s)},[s]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return u.current},setFocused(e){u.current=e,a(e)},get focusedKey(){return d.current},get childFocusStrategy(){return f.current},setFocusedKey(e,t="first"){d.current=e,f.current=t,y(e)},selectedKeys:h,setSelectedKeys(e){(r||!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h))&&p(e)},disabledKeys:g,disabledBehavior:c}}function i(e,t){return e?"all"===e?"all":new l.Y(e):t}}}]);