"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4034],{36959:function(e,t,n){n.d(t,{v:function(){return V}});/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=r.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},s=function e(t,n){void 0===n&&(n=!0);var r,o=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},l=function(e,t,n){if(s(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r=r.filter(n)},d=function e(t,n,r){for(var i=[],u=Array.from(t);u.length;){var c=u.shift();if(!s(c,!1)){if("SLOT"===c.tagName){var l=c.assignedElements(),d=e(l.length?l:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.push(c);var f=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),v=!s(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&v){var p=e(!0===f?c.children:f.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:c,candidates:p})}else u.unshift.apply(u,c.children)}}}return i},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},v=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||c(e))&&!f(e)?0:e.tabIndex},p=function(e,t){var n=v(e);return n<0&&t&&!f(e)?0:n},b=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},y=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},m=function(e){if(!e.name)return!0;var t,n=e.form||u(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=y(t,e.form);return!o||o===e},g=function(e){var t,n,r,o,i,a,s,c=e&&u(e),l=null===(t=c)||void 0===t?void 0:t.host,d=!1;if(c&&c!==e)for(d=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!d&&l;)d=!!(null!==(a=l=null===(i=c=u(l))||void 0===i?void 0:i.host)&&void 0!==a&&null!==(s=a.ownerDocument)&&void 0!==s&&s.contains(l));return d},E=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},w=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return E(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,c=u(e);if(s&&!s.shadowRoot&&!0===r(s))return E(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=i}if(g(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},N=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},O=function(e,t){return!(t.disabled||s(t)||h(t)&&"hidden"===t.type||w(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||N(t))},k=function(e,t){var n;return!(h(n=t)&&"radio"===n.type&&!m(n)||0>v(t))&&!!O(e,t)},L=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},P=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,u=p(a,i),s=i?e(t.candidates):a;0===u?i?n.push.apply(n,s):n.push(a):r.push({documentOrder:o,tabIndex:u,item:t,isScope:i,content:s})}),r.sort(b).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},T=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,o)&&k(t,e)},F=r.concat("iframe").join(","),x=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,F)&&O(t,e)};function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var I={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},R=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},A=function(e){return R(e)&&!e.shiftKey},B=function(e){return R(e)&&e.shiftKey},C=function(e){return setTimeout(e,0)},G=function(e,t){var n=-1;return e.every(function(e,r){return!t(e)||(n=r,!1)}),n},j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},M=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},K=[],V=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||K,i=D({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:A,isKeyBackward:B},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},u=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},s=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,o=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||o.find(function(t){return t===e})})},c=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=t;if("string"==typeof t&&!(u=r.querySelector(t)))throw Error("`".concat(e,"` as selector refers to no known node"));return u},f=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e||!x(e,i.tabbableOptions)){if(s(r.activeElement)>=0)e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}}if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(a.containerGroups=a.containers.map(function(e){var t,n,r,o,a=(t=e,P((n=(n=i.tabbableOptions)||{}).getShadowRoot?d([t],n.includeContainer,{filter:k.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:L}):l(t,n.includeContainer,k.bind(null,n)))),u=(r=e,(o=(o=i.tabbableOptions)||{}).getShadowRoot?d([r],o.includeContainer,{filter:O.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):l(r,o.includeContainer,O.bind(null,o))),s=a.length>0?a[0]:void 0,c=a.length>0?a[a.length-1]:void 0,f=u.find(function(e){return T(e)}),p=u.slice().reverse().find(function(e){return T(e)}),b=!!a.find(function(e){return v(e)>0});return{container:e,tabbableNodes:a,focusableNodes:u,posTabIndexesFound:b,firstTabbableNode:s,lastTabbableNode:c,firstDomTabbableNode:f,lastDomTabbableNode:p,nextTabbableNode:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=a.indexOf(e);return n<0?t?u.slice(u.indexOf(e)+1).find(function(e){return T(e)}):u.slice(0,u.indexOf(e)).reverse().find(function(e){return T(e)}):a[n+(t?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!c("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(e){var t=e.activeElement;return t?t.shadowRoot&&null!==t.shadowRoot.activeElement?b(t.shadowRoot):t:void 0},h=function(e){if(!1!==e&&e!==b(document)){if(!e||!e.focus){h(f());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},y=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},m=function(e){var t=e.target,n=e.event,r=e.isBackward,o=void 0!==r&&r;t=t||M(n),p();var u=null;if(a.tabbableGroups.length>0){var l=s(t,n),d=l>=0?a.containerGroups[l]:void 0;if(l<0)u=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var f=G(a.tabbableGroups,function(e){var n=e.firstTabbableNode;return t===n});if(f<0&&(d.container===t||x(t,i.tabbableOptions)&&!T(t,i.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(f=l),f>=0){var b=0===f?a.tabbableGroups.length-1:f-1,h=a.tabbableGroups[b];u=v(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else R(n)||(u=d.nextTabbableNode(t,!1))}else{var y=G(a.tabbableGroups,function(e){var n=e.lastTabbableNode;return t===n});if(y<0&&(d.container===t||x(t,i.tabbableOptions)&&!T(t,i.tabbableOptions)&&!d.nextTabbableNode(t))&&(y=l),y>=0){var m=y===a.tabbableGroups.length-1?0:y+1,g=a.tabbableGroups[m];u=v(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else R(n)||(u=d.nextTabbableNode(t))}}else u=c("fallbackFocus");return u},g=function(e){if(!(s(M(e),e)>=0)){if(j(i.clickOutsideDeactivates,e)){n.deactivate({returnFocus:i.returnFocusOnDeactivate});return}j(i.allowOutsideClick,e)||e.preventDefault()}},E=function(e){var t=M(e),n=s(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(v(a.mostRecentlyFocusedNode)>0){var u=s(a.mostRecentlyFocusedNode),c=a.containerGroups[u].tabbableNodes;if(c.length>0){var l=c.findIndex(function(e){return e===a.mostRecentlyFocusedNode});l>=0&&(i.isKeyForward(a.recentNavEvent)?l+1<c.length&&(r=c[l+1],o=!1):l-1>=0&&(r=c[l-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return v(e)>0})})||(o=!1)}else o=!1;o&&(r=m({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),r?h(r):h(a.mostRecentlyFocusedNode||f())}a.recentNavEvent=void 0},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var n=m({event:e,isBackward:t});n&&(R(e)&&e.preventDefault(),h(n))},N=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&w(e,i.isKeyBackward(e))},F=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==j(i.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},S=function(e){s(M(e),e)>=0||j(i.clickOutsideDeactivates,e)||j(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},V=function(){if(a.active)return I.activateTrap(o,n),a.delayInitialFocusTimer=i.delayInitialFocus?C(function(){h(f())}):h(f()),r.addEventListener("focusin",E,!0),r.addEventListener("mousedown",g,{capture:!0,passive:!1}),r.addEventListener("touchstart",g,{capture:!0,passive:!1}),r.addEventListener("click",S,{capture:!0,passive:!1}),r.addEventListener("keydown",N,{capture:!0,passive:!1}),r.addEventListener("keydown",F),n},W=function(){if(a.active)return r.removeEventListener("focusin",E,!0),r.removeEventListener("mousedown",g,!0),r.removeEventListener("touchstart",g,!0),r.removeEventListener("click",S,!0),r.removeEventListener("keydown",N,!0),r.removeEventListener("keydown",F),n},$="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&h(f())}):void 0,q=function(){$&&($.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){$.observe(e,{subtree:!0,childList:!0})}))};return(n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=u(e,"onActivate"),n=u(e,"onPostActivate"),o=u(e,"checkCanFocusTrap");o||p(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,null==t||t();var i=function(){o&&p(),V(),q(),null==n||n()};return o?o(a.containers.concat()).then(i,i):i(),this},deactivate:function(e){if(!a.active)return this;var t=D({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,W(),a.active=!1,a.paused=!1,q(),I.deactivateTrap(o,n);var r=u(t,"onDeactivate"),s=u(t,"onPostDeactivate"),c=u(t,"checkCanReturnFocus"),l=u(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var d=function(){C(function(){l&&h(y(a.nodeFocusedBeforeActivation)),null==s||s()})};return l&&c?c(y(a.nodeFocusedBeforeActivation)).then(d,d):d(),this},pause:function(e){if(a.paused||!a.active)return this;var t=u(e,"onPause"),n=u(e,"onPostPause");return a.paused=!0,null==t||t(),W(),q(),null==n||n(),this},unpause:function(e){if(!a.paused||!a.active)return this;var t=u(e,"onUnpause"),n=u(e,"onPostUnpause");return a.paused=!1,null==t||t(),p(),V(),q(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map(function(e){return"string"==typeof e?r.querySelector(e):e}),a.active&&p(),q(),this}}).updateContainerElements(e),n}},40865:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(23541),o=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function i(e,t={}){let{defer:n=!0}=t,i=[];return i.push((n?o:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&i.push((0,r.Ry)(t))})),()=>{i.forEach(e=>e?.())}}},88366:function(e,t,n){n.d(t,{A:function(){return v}});var r,o=n(75973),i=n(90607),a=n(78061),u="pointerdown.outside",s="focus.outside",c=e=>"clientY"in e;function l(e,t){if(!t||!c(e))return!1;let n=t.scrollHeight>t.clientHeight&&e.clientX>t.clientWidth,r=t.scrollWidth>t.clientWidth&&e.clientY>t.clientHeight;return n||r}var d={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1)},isTopMost(e){let t=this.layers[this.count()-1];return t?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(e=>(0,o.r3)(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>(0,o.r3)(t,e))},add(e){let t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(e=>e.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}};function f(){d.layers.forEach(({node:e})=>{e.style.pointerEvents=d.isBelowPointerBlockingLayer(e)?"none":"auto"})}function v(e,t){let{defer:n}=t,v=n?o.Wn:e=>e(),p=[];return p.push(v(()=>{let n=(0,a.mf)(e)?e():e;p.push(function(e,t){var n;if(!e){(0,a.ZK)("[@zag-js/dismissable] node is `null` or `undefined`");return}let{onDismiss:v,pointerBlocking:p,exclude:b,debug:h}=t;d.add({dismiss:v,node:e,pointerBlocking:p}),f();let y=[p?function(e,t){let n=(0,o.Me)(e),i=[];if(d.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(r=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t){let e=(0,o.Sn)(t,e=>{i.push((0,o.A_)(e,{pointerEvents:"auto"}))});i.push(e)}return()=>{d.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=r,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")}),i.forEach(e=>e()))}}(e,t.persistentElements):void 0,(n=function(n){d.isTopMost(e)&&(t.onEscapeKeyDown?.(n),!n.defaultPrevented&&v&&(n.preventDefault(),v()))},(0,i.EV)((0,o.Me)(e),"keydown",e=>{"Escape"===e.key&&(e.isComposing||n?.(e))},{capture:!0})),function(e,t){let{defer:n}=t,r=n?o.Wn:e=>e(),d=[];return d.push(r(()=>{let n="function"==typeof e?e():e;d.push(function(e,t){let{exclude:n,onFocusOutside:r,onPointerDownOutside:d,onInteractOutside:f,defer:v}=t;if(!e)return;let p=(0,o.Me)(e),b=(0,o.Jj)(e),h=function(e){let t={each(t){for(let n=0;n<e.frames?.length;n+=1){let r=e.frames[n];r&&t(r)}},addEventListener:(e,n,r)=>(t.each(t=>{try{t.document.addEventListener(e,n,r)}catch{}}),()=>{try{t.removeEventListener(e,n,r)}catch{}}),removeEventListener(e,n,r){t.each(t=>{try{t.document.removeEventListener(e,n,r)}catch{}})}};return t}(b),y=function(e){let t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,n,r)=>{try{t?.addEventListener(e,n,r)}catch{}return()=>{try{t?.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{t?.removeEventListener(e,n,r)}catch{}}}}(b);function m(t){let r=(0,o.NI)(t);return!(!(0,o.DV)(r)||(0,o.r3)(e,r)||function(e,t){if(!c(t)||!e)return!1;let n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,t)||l(t,r)||l(t,(0,o.uM)(e)))&&!n?.(r)}let g=new Set;function E(t){function n(){let n=v?o.Wn:e=>e(),r=t.composedPath?.()??[t.target];n(()=>{if(e&&m(t)){if(d||f){let t=(0,a.PP)(d,f);e.addEventListener(u,t,{once:!0})}(0,i.LI)(e,u,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:(0,i.v$)(t),focusable:function(e){for(let t of e)if((0,o.DV)(t)&&(0,o.EB)(t))return!0;return!1}(r)}})}})}"touch"===t.pointerType?(g.forEach(e=>e()),g.add((0,i.EV)(p,"click",n,{once:!0})),g.add(y.addEventListener("click",n,{once:!0})),g.add(h.addEventListener("click",n,{once:!0}))):n()}let w=new Set,N=setTimeout(()=>{w.add((0,i.EV)(p,"pointerdown",E,!0)),w.add(y.addEventListener("pointerdown",E,!0)),w.add(h.addEventListener("pointerdown",E,!0))},0);function O(t){(v?o.Wn:e=>e())(()=>{if(e&&m(t)){if(r||f){let t=(0,a.PP)(r,f);e.addEventListener(s,t,{once:!0})}(0,i.LI)(e,s,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:(0,o.EB)((0,o.NI)(t))}})}})}return w.add((0,i.EV)(p,"focusin",O,!0)),w.add(y.addEventListener("focusin",O,!0)),w.add(h.addEventListener("focusin",O,!0)),()=>{clearTimeout(N),g.forEach(e=>e()),w.forEach(e=>e())}}(n,t))})),()=>{d.forEach(e=>e?.())}}(e,{exclude:function(n){if(!e)return!1;let r="function"==typeof b?b():b,i=Array.isArray(r)?r:[r],a=t.persistentElements?.map(e=>e()).filter(o.DV);return a&&i.push(...a),i.some(e=>(0,o.r3)(e,n))||d.isInNestedLayer(e,n)},onFocusOutside:function(e){let n=(0,o.NI)(e.detail.originalEvent);!d.isInBranch(n)&&(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(h&&console.log("onFocusOutside:",e.detail.originalEvent),v?.()))},onPointerDownOutside:function(n){let r=(0,o.NI)(n.detail.originalEvent);!(d.isBelowPointerBlockingLayer(e)||d.isInBranch(r))&&(t.onPointerDownOutside?.(n),t.onInteractOutside?.(n),n.defaultPrevented||(h&&console.log("onPointerDownOutside:",n.detail.originalEvent),v?.()))},defer:t.defer})];return()=>{d.remove(e),f(),e.style.pointerEvents="",y.forEach(e=>e?.())}}(n,t))})),()=>{p.forEach(e=>e?.())}}},46490:function(e,t,n){n.d(t,{M:function(){return a}});var r=n(75973),o="data-scroll-lock";function i(e,t){if(!e)return;let n=Object.keys(t).reduce((t,n)=>(t[n]=e.style.getPropertyValue(n),t),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n)}}function a(e){let t=e??document,n=t.defaultView??window,{documentElement:a,body:u}=t;if(u.hasAttribute(o))return;u.setAttribute(o,"");let s=n.innerWidth-a.clientWidth,c=Math.round(a.getBoundingClientRect().left)+a.scrollLeft?"paddingLeft":"paddingRight",l=[function(e,t,n){if(!e)return;let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{r?e.style.setProperty(t,r):e.style.removeProperty(t)}}(a,"--scrollbar-width",`${s}px`),(0,r.s)()?(()=>{let{scrollX:e,scrollY:t,visualViewport:r}=n,o=r?.offsetLeft??0,a=r?.offsetTop??0,l=i(u,{position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(a))}px`,left:`${-(e-Math.floor(o))}px`,right:"0",[c]:`${s}px`});return()=>{l?.(),n.scrollTo({left:e,top:t,behavior:"instant"})}})():i(u,{overflow:"hidden",[c]:`${s}px`})];return()=>{l.forEach(e=>e?.()),u.removeAttribute(o)}}}}]);