1try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`437f0629-c815-4857-a703-15a8f7a200c1`,e._sentryDebugIdIdentifier=`sentry-dbid-437f0629-c815-4857-a703-15a8f7a200c1`)}catch{}import{o as e}from"./_sentry-release-injection-file-BIr0W1zm.js";import{n as t,t as n}from"./jsx-runtime-zj0ecbIi.js";import{t as r}from"./react-dom-N1YDPjtR.js";import{o as i}from"./icon-0N4IT-9A-C9RTZSFF.js";var a=e(t(),1),o=e(r(),1);function s(){return typeof window<`u`}function c(e){return d(e)?(e.nodeName||``).toLowerCase():`#document`}function l(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function u(e){return((d(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function d(e){return s()?e instanceof Node||e instanceof l(e).Node:!1}function f(e){return s()?e instanceof Element||e instanceof l(e).Element:!1}function p(e){return s()?e instanceof HTMLElement||e instanceof l(e).HTMLElement:!1}function m(e){return!s()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof l(e).ShadowRoot}function h(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=E(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function g(e){return/^(table|td|th)$/.test(c(e))}function _(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var v=/transform|translate|scale|rotate|perspective|filter/,y=/paint|layout|strict|content/,b=e=>!!e&&e!==`none`,x;function S(e){let t=f(e)?E(e):e;return b(t.transform)||b(t.translate)||b(t.scale)||b(t.rotate)||b(t.perspective)||!w()&&(b(t.backdropFilter)||b(t.filter))||v.test(t.willChange||``)||y.test(t.contain||``)}function C(e){let t=O(e);for(;p(t)&&!T(t);){if(S(t))return t;if(_(t))return null;t=O(t)}return null}function w(){return x??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),x}function T(e){return/^(html|body|#document)$/.test(c(e))}function E(e){return l(e).getComputedStyle(e)}function D(e){return f(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function O(e){if(c(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||m(e)&&e.host||u(e);return m(t)?t.host:t}function k(e){let t=O(e);return T(t)?e.ownerDocument?e.ownerDocument.body:e.body:p(t)&&h(t)?t:k(t)}function A(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=k(e),i=r===e.ownerDocument?.body,a=l(r);if(i){let e=j(a);return t.concat(a,a.visualViewport||[],h(r)?r:[],e&&n?A(e):[])}else return t.concat(r,A(r,[],n))}function j(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function M(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function N(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&m(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function P(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function F(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function ee(e){return e.mozInputSource===0&&e.isTrusted?!0:I()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function te(e){return L()?!1:!I()&&e.width===0&&e.height===0||I()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function ne(){return/apple/i.test(navigator.vendor)}function I(){let e=/android/i;return e.test(P())||e.test(F())}function re(){return P().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function L(){return F().includes(`jsdom/`)}function R(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function z(e){return`nativeEvent`in e}function ie(e){return e.matches(`html,body`)}function B(e){return e?.ownerDocument||document}function ae(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function V(e){return`composedPath`in e?e.composedPath()[0]:e.target}function oe(e){return p(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function H(e){e.preventDefault(),e.stopPropagation()}function se(e){return e?e.getAttribute(`role`)===`combobox`&&oe(e):!1}var ce=[`top`,`right`,`bottom`,`left`],le=[`start`,`end`],ue=ce.reduce((e,t)=>
1e.concat(t,t+`-`+le[0],t+`-`+le[1]),[]),U=Math.min,W=Math.max,de=Math.round,fe=Math.floor,G=e=>({x:e,y:e}),pe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function me(e,t,n){return W(e,U(t,n))}function K(e,t){return typeof e==`function`?e(t):e}function q(e){return e.split(`-`)[0]}function J(e){return e.split(`-`)[1]}function he(e){return e===`x`?`y`:`x`}function ge(e){return e===`y`?`height`:`width`}function _e(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ve(e){return he(_e(e))}function ye(e,t,n){n===void 0&&(n=!1);let r=J(e),i=ve(e),a=ge(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Oe(o)),[o,Oe(o)]}function be(e){let t=Oe(e);return[xe(e),t,xe(t)]}function xe(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Se=[`left`,`right`],Ce=[`right`,`left`],we=[`top`,`bottom`],Te=[`bottom`,`top`];function Ee(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ce:Se:t?Se:Ce;case`left`:case`right`:return t?we:Te;default:return[]}}function De(e,t,n,r){let i=J(e),a=Ee(q(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(xe)))),a}function Oe(e){let t=q(e);return pe[t]+e.slice(t.length)}function ke(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ae(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ke(e)}function je(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var Me=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`].join(`,`),Ne=typeof Element>`u`,Pe=Ne?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fe=!Ne&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},Ie=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Ie(e.parentNode))},Le=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Re=function(e,t,n){if(Ie(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Me));return t&&Pe.call(e,Me)&&r.unshift(e),r=r.filter(n),r},ze=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Ie(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=ze(o.length?o:a.children,!0,n);
1n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Pe.call(a,Me)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Ie(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=ze(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},Be=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Ve=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Le(e))&&!Be(e)?0:e.tabIndex},He=function(e,t){var n=Ve(e);return n<0&&t&&!Be(e)?0:n},Ue=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},We=function(e){return e.tagName===`INPUT`},Ge=function(e){return We(e)&&e.type===`hidden`},Ke=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},qe=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Je=function(e){if(!e.name)return!0;var t=e.form||Fe(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(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 i=qe(r,e.form);return!i||i===e},Ye=function(e){return We(e)&&e.type===`radio`},Xe=function(e){return Ye(e)&&!Je(e)},Ze=function(e){var t=e&&Fe(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Fe(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Qe=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},$e=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=Pe.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Pe.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=Fe(e);if(o&&!o.shadowRoot&&r(o)===!0)return Qe(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Ze(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Qe(e);return!1},et=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Pe.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},tt=function(e,t){return!(t.disabled||Ge(t)||$e(t,e)||Ke(t)||et(t))},nt=function(e,t){return!(Xe(t)||Ve(t)<0||!tt(e,t))},rt=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},it=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=He(a,i),s=i?it(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Ue).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},at=function(e,t){return t||={},it(t.getShadowRoot?ze([e],t.includeContainer,{filter:nt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:rt}):Re(e,t.includeContainer,nt.bind(null,t)))},ot=function(e,t){return t||={},t.getShadowRoot?ze([e],t.includeContainer,{filter:tt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Re(e,t.includeContainer,tt.bind(null,t))},st=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Pe.call(e,Me)===!1?!1:nt(t,e)};function ct(e,t,n){let{reference:r,floating:i}
1=e,a=_e(t),o=ve(t),s=ge(o),c=q(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(J(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function lt(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=K(t,e),p=Ae(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=je(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=je(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ut=50,dt=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:lt},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ct(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<ut&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ct(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ft=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=K(e,t)||{};if(l==null)return{};let d=Ae(u),f={x:n,y:r},p=ve(i),m=ge(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=U(d[_],T),D=U(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=me(O,A,k),M=!c.arrow&&J(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}});function pt(e,t,n){return(e?[...n.filter(t=>J(t)===e),...n.filter(t=>J(t)!==e)]:n.filter(e=>q(e)===e)).filter(n=>e?J(n)===e||(t?xe(n)!==n:!1):!0)}var mt=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=ue,autoAlignment:u=!0,...d}=K(e,t),f=c!==void 0||l===ue?pt(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=ye(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[q(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=J(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,J(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},ht=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=K(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=q(r),_=_e(o),v=q(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Oe(o)]:be(o)),x=p!==`none`;!d&&x&&b.push(...De(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ye(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==_e(t))||T.every(e=>_e(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>
vendor: 4,386 bytes, line 1
1e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=_e(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function gt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _t(e){return ce.some(t=>e[t]>=0)}var vt=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=K(e,t);switch(i){case`referenceHidden`:{let e=gt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_t(e)}}}case`escaped`:{let e=gt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_t(e)}}}default:return{}}}}},yt=new Set([`left`,`top`]);async function bt(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=q(n),s=J(n),c=_e(n)===`y`,l=yt.has(o)?-1:1,u=a&&c?-1:1,d=K(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var xt=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await bt(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},St=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=K(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=_e(q(i)),p=he(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=me(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=me(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ct=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=K(e,t),u={x:n,y:r},d=_e(i),f=he(d),p=u[f],m=u[d],h=K(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=yt.has(q(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},wt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=K(e,t),u=await o.detectOverflow(t,l),d=q(i),f=J(i),p=_e(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=U(h-u[g],v),x=U(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=W(u.left,0),t=W(u.right,0),n=W(u.top,0),r=W(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:W(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:W(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Tt(e){let t=E(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=p(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=de(n)!==a||de(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Et(e){return f(e)?e:e.contextElement}function Dt(e){let t=Et(e);if(!p(t))return G(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Tt(t),o=(a?de(n.width):n.width)/r,s=(a?de(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ot=G(0);function kt(e){let t=l(e);
vendor: 5,685 bytes, line 1
1return!w()||!t.visualViewport?Ot:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function At(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==l(e)?!1:t}function jt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Et(e),o=G(1);t&&(r?f(r)&&(o=Dt(r)):o=Dt(e));let s=At(a,n,r)?kt(a):G(0),c=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,d=i.width/o.x,p=i.height/o.y;if(a){let e=l(a),t=r&&f(r)?l(r):r,n=e,i=j(n);for(;i&&r&&t!==n;){let e=Dt(i),t=i.getBoundingClientRect(),r=E(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=a,u+=o,n=l(i),i=j(n)}}return je({width:d,height:p,x:c,y:u})}function Mt(e,t){let n=D(e).scrollLeft;return t?t.left+n:jt(u(e)).left+n}function Nt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Mt(e,n),y:n.top+t.scrollTop}}function Pt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=u(r),s=t?_(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},d=G(1),f=G(0),m=p(r);if((m||!m&&!a)&&((c(r)!==`body`||h(o))&&(l=D(r)),m)){let e=jt(r);d=Dt(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let g=o&&!m&&!a?Nt(o,l):G(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+g.x,y:n.y*d.y-l.scrollTop*d.y+f.y+g.y}}function Ft(e){return Array.from(e.getClientRects())}function It(e){let t=u(e),n=D(e),r=e.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Mt(e),s=-n.scrollTop;return E(r).direction===`rtl`&&(o+=W(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Lt=25;function Rt(e,t){let n=l(e),r=u(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=w();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let d=Mt(r);if(d<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Lt&&(a-=o)}else d<=Lt&&(a+=d);return{width:a,height:o,x:s,y:c}}function zt(e,t){let n=jt(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=p(e)?Dt(e):G(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Bt(e,t,n){let r;if(t===`viewport`)r=Rt(e,n);else if(t===`document`)r=It(u(e));else if(f(t))r=zt(t,n);else{let n=kt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return je(r)}function Vt(e,t){let n=O(e);return n===t||!f(n)||T(n)?!1:E(n).position===`fixed`||Vt(n,t)}function Ht(e,t){let n=t.get(e);if(n)return n;let r=A(e,[],!1).filter(e=>f(e)&&c(e)!==`body`),i=null,a=E(e).position===`fixed`,o=a?O(e):e;for(;f(o)&&!T(o);){let t=E(o),n=S(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||h(o)&&!n&&Vt(e,o))?r=r.filter(e=>e!==o):i=t,o=O(o)}return t.set(e,r),r}function Ut(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?_(t)?[]:Ht(t,this._c):[].concat(n),r],o=Bt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Bt(t,a[e],i);s=W(n.top,s),c=U(n.right,c),l=U(n.bottom,l),u=W(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Wt(e){let{width:t,height:n}=Tt(e);return{width:t,height:n}}function Gt(e,t,n){let r=p(t),i=u(t),a=n===`fixed`,o=jt(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=G(0);function d(){l.x=Mt(i)}if(r||!r&&!a)if((c(t)!==`body`||h(i))&&(s=D(t)),r){let e=jt(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&d();a&&!r&&i&&d();let f=i&&!r&&!a?Nt(i,s):G(0);return{x:o.left+s.scrollLeft-l.x-f.x,y:o.top+s.scrollTop-l.y-f.y,width:o.width,height:o.height}}function Kt(e){return E(e).position===`static`}function qt(e,t){if(!p(e)||E(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return u(e)===n&&(n=n.ownerDocument.body),n}function Jt(e,t){let n=l(e);if(_(e))return n;if(!p(e)){let t=O(e);for(;t&&!T(t);){if(f(t)&&!Kt(t))return t;t=O(t)}return n}let r=qt(e,t);for(;r&&g(r)&&Kt(r);)r=qt(r,t);return r&&T(r)&&Kt(r)&&!S(r)?n:r||C(e)||n}var Yt=async function(e){let t=this.getOffsetParent||Jt,n=this.getDimensions,r=await n(e.floating);return{reference:Gt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xt(e){return E(e).direction===`rtl`}var Zt={convertOffsetParentRelativeRectToViewportRelativeRect:Pt,getDocumentElement:u,getClippingRect:Ut,getOffsetParent:Jt,getElementRects:Yt,getClientRects:Ft,getDimensions:Wt,getScale:Dt,isElement:f,isRTL:Xt};function Qt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $t(e,t){let n=null,r,i=u(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=fe(d),h=fe(i.clientWidth-(u+f)),g=fe(i.clientHeight-(d+p)),_=fe(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:W(0,U(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Qt(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function en(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Et(e),u=i||a?[...l?A(l):[],...t?A(t):[]]:[];
1u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?$t(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?jt(e):null;c&&g();function g(){let t=jt(e);h&&!Qt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var tn=xt,nn=mt,rn=St,an=ht,on=wt,sn=vt,cn=ft,ln=Ct,un=(e,t,n)=>{let r=new Map,i={platform:Zt,...n},a={...i.platform,_c:r};return dt(e,t,{...i,platform:a})},dn=typeof document<`u`?a.useLayoutEffect:function(){};function fn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!fn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mn(e,t){let n=pn(e);return Math.round(t*n)/n}function hn(e){let t=a.useRef(e);return dn(()=>{t.current=e}),t}function gn(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:s,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=a.useState(r);fn(m,r)||h(r);let[g,_]=a.useState(null),[v,y]=a.useState(null),b=a.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=s||g,C=c||v,w=a.useRef(null),T=a.useRef(null),E=a.useRef(f),D=u!=null,O=hn(u),k=hn(i),A=hn(d),j=a.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),un(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!fn(E.current,t)&&(E.current=t,o.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);dn(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=a.useRef(!1);dn(()=>(M.current=!0,()=>{M.current=!1}),[]),dn(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=a.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=a.useMemo(()=>({reference:S,floating:C}),[S,C]),F=a.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=mn(P.floating,f.x),r=mn(P.floating,f.y);return l?{...e,transform:`translate(`+t+`px, `+r+`px)`,...pn(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,l,P.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:F}),[f,j,N,P,F])}var _n=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:cn({element:r.current,padding:i}).fn(n):r?cn({element:r,padding:i}).fn(n):{}}}},vn=(e,t)=>{let n=tn(e);return{name:n.name,fn:n.fn,options:[e,t]}},yn=(e,t)=>{let n=rn(e);return{name:n.name,fn:n.fn,options:[e,t]}},bn=(e,t)=>({fn:ln(e).fn,options:[e,t]}),xn=(e,t)=>{let n=an(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sn=(e,t)=>{let n=on(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cn=(e,t)=>{let n=nn(e);return{name:n.name,fn:n.fn,options:[e,t]}},wn=(e,t)=>{let n=sn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tn=(e,t)=>{let n=_n(e);return{name:n.name,fn:n.fn,options:[e,t]}};function En(e){return a.useMemo(()=>e.every(e=>e==null)?null:t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})},e)}var Dn={...a},On=Dn.useInsertionEffect||(e=>e());function Y(e){let t=a.useRef(()=>{});return On(()=>{t.current=e}),a.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}var kn=`ArrowUp`,An=`ArrowDown`,jn=`ArrowLeft`,Mn=`ArrowRight`;function Nn(e,t,n){return Math.floor(e/t)!==n}function Pn(e,t){return t<0||t>=e.current.length}function Fn(e,t){return X(e,{disabledIndices:t})}function In(e,t){return X(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function X(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:a=1}=t===void 0?{}:t,o=e.current,s=n;do s+=r?-a:a;while(s>=0&&s<=o.length-1&&Vn(o,s,i));return s}function Ln(e,t){let{event:n,orientation:r,loop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}
1=t,f=u;if(n.key===kn){if(d&&H(n),u===-1)f=l;else if(f=X(e,{startingIndex:f,amount:o,decrement:!0,disabledIndices:s}),i&&(u-o<c||f<0)){let e=u%o,t=l%o,n=l-(t-e);f=t===e?l:t>e?n:n-o}Pn(e,f)&&(f=u)}if(n.key===An&&(d&&H(n),u===-1?f=c:(f=X(e,{startingIndex:u,amount:o,disabledIndices:s}),i&&u+o>l&&(f=X(e,{startingIndex:u%o-o,amount:o,disabledIndices:s}))),Pn(e,f)&&(f=u)),r===`both`){let t=fe(u/o);n.key===(a?jn:Mn)&&(d&&H(n),u%o===o-1?i&&(f=X(e,{startingIndex:u-u%o-1,disabledIndices:s})):(f=X(e,{startingIndex:u,disabledIndices:s}),i&&Nn(f,o,t)&&(f=X(e,{startingIndex:u-u%o-1,disabledIndices:s}))),Nn(f,o,t)&&(f=u)),n.key===(a?Mn:jn)&&(d&&H(n),u%o===0?i&&(f=X(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s})):(f=X(e,{startingIndex:u,decrement:!0,disabledIndices:s}),i&&Nn(f,o,t)&&(f=X(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}))),Nn(f,o,t)&&(f=u));let r=fe(l/o)===t;Pn(e,f)&&(f=i&&r?n.key===(a?Mn:jn)?l:X(e,{startingIndex:u-u%o-1,disabledIndices:s}):u)}return f}function Rn(e,t,n){let r=[],i=0;return e.forEach((e,a)=>{let{width:o,height:s}=e,c=!1;for(n&&(i=0);!c;){let e=[];for(let n=0;n<o;n++)for(let r=0;r<s;r++)e.push(i+n+r*t);i%t+o<=t&&e.every(e=>r[e]==null)?(e.forEach(e=>{r[e]=a}),c=!0):i++}}),[...r]}function zn(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e)}}function Bn(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Vn(e,t,n){if(n)return n.includes(t);let r=e[t];return r==null||r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`}var Z=typeof document<`u`?a.useLayoutEffect:a.useEffect;function Hn(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Un(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}var Wn=a.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Gn(e){let{children:t,elementsRef:n,labelsRef:r}=e,[i,o]=a.useState(()=>new Map),s=a.useCallback(e=>{o(t=>new Map(t).set(e,null))},[]),c=a.useCallback(e=>{o(t=>{let n=new Map(t);return n.delete(e),n})},[]);return Z(()=>{let e=new Map(i);Array.from(e.keys()).sort(Hn).forEach((t,n)=>{e.set(t,n)}),Un(i,e)||o(e)},[i]),a.createElement(Wn.Provider,{value:a.useMemo(()=>({register:s,unregister:c,map:i,elementsRef:n,labelsRef:r}),[s,c,i,n,r])},t)}function Kn(e){e===void 0&&(e={});let{label:t}=e,{register:n,unregister:r,map:i,elementsRef:o,labelsRef:s}=a.useContext(Wn),[c,l]=a.useState(null),u=a.useRef(null),d=a.useCallback(e=>{if(u.current=e,c!==null&&(o.current[c]=e,s)){let n=t!==void 0;s.current[c]=n?t:e?.textContent??null}},[c,o,s,t]);return Z(()=>{let e=u.current;if(e)return n(e),()=>{r(e)}},[n,r]),Z(()=>{let e=u.current?i.get(u.current):null;e!=null&&l(e)},[i]),a.useMemo(()=>({ref:d,index:c??-1}),[c,d])}var qn=[jn,Mn],Jn=[kn,An];[...qn,...Jn];function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yn.apply(this,arguments)}var Xn=!1,Zn=0,Qn=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+ Zn++;function $n(){let[e,t]=a.useState(()=>Xn?Qn():void 0);return Z(()=>{e??t(Qn())},[]),a.useEffect(()=>{Xn=!0},[]),e}var er=Dn.useId||$n,tr=a.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:o}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:p,style:{transform:m,...h}={},...g}=e,_=er(),[v,y]=a.useState(!1);if(Z(()=>{r&&E(r).direction===`rtl`&&y(!0)},[r]),!r)return null;let[b,x]=n.split(`-`),S=b===`top`||b===`bottom`,C=d;(S&&o!=null&&o.x||!S&&o!=null&&o.y)&&(C=null);let w=u*2,T=w/2,D=s/2*(l/-8+1),O=c/2*l/4,k=!!p,A=C&&x===`end`?`bottom`:`top`,j=C&&x===`end`?`right`:`left`;C&&v&&(j=x===`end`?`left`:`right`);let M=i?.x==null?``:C||i.x,N=i?.y==null?``:C||i.y,P=p||`M0,0`+(` H`+s)+(` L`+(s-D)+`,`+(c-O))+(` Q`+s/2+`,`+c+` `+D+`,`+(c-O))+` Z`,F={top:k?`rotate(180deg)`:``,left:k?`rotate(90deg)`:`rotate(-90deg)`,bottom:k?``:`rotate(180deg)`,right:k?`rotate(-90deg)`:`rotate(90deg)`}[b];return a.createElement(`svg`,Yn({},g,{"aria-hidden":!0,ref:t,width:k?s:s+w,height:s,viewBox:`0 0 `+s+` `+(c>s?c:s),style:{position:`absolute`,pointerEvents:`none`,[j]:M,[A]:N,[b]:S||k?`100%`:`calc(100% - `+w/2+`px)`,transform:[F,m].filter(e=>!!e).join(` `),...h}}),w>0&&a.createElement(`path`,{clipPath:`url(#`+_+`)`,fill:`none`,stroke:f,strokeWidth:w+ +!p,d:P}),a.createElement(`path`,{stroke:w&&!p?g.fill:`none`,d:P}),a.createElement(`clipPath`,{id:_},a.createElement(`rect`,{x:-T,y:T*(k?-1:1),width:s+w,height:s})))});function nr(){let e=new Map;return{emit(t,n){var r;
1(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,e.get(t)?.filter(e=>e!==n)||[])}}}var rr=a.createContext(null),ir=a.createContext(null),ar=()=>a.useContext(rr)?.id||null,or=()=>a.useContext(ir);function sr(e){let t=er(),n=or(),r=ar(),i=e||r;return Z(()=>{let e={id:t,parentId:i};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,i]),t}function cr(e){let{children:t,id:n}=e,r=ar();return a.createElement(rr.Provider,{value:a.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function lr(e){let{children:t}=e,n=a.useRef([]),r=a.useCallback(e=>{n.current=[...n.current,e]},[]),i=a.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),o=a.useState(()=>nr())[0];return a.createElement(ir.Provider,{value:a.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o])},t)}function ur(e){return`data-floating-ui-`+e}function Q(e){let t=(0,a.useRef)(e);return Z(()=>{t.current=e}),t}var dr=ur(`safe-polygon`);function fr(e,t,n){return n&&!R(n)?0:typeof e==`number`?e:e?.[t]}function pr(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:o,elements:s}=e,{enabled:c=!0,delay:l=0,handleClose:u=null,mouseOnly:d=!1,restMs:p=0,move:m=!0}=t,h=or(),g=ar(),_=Q(u),v=Q(l),y=Q(n),b=a.useRef(),x=a.useRef(-1),S=a.useRef(),C=a.useRef(-1),w=a.useRef(!0),T=a.useRef(!1),E=a.useRef(()=>{}),D=a.useRef(!1),O=a.useCallback(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`},[i]);a.useEffect(()=>{if(!c)return;function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(C.current),w.current=!0,D.current=!1)}return o.on(`openchange`,e),()=>{o.off(`openchange`,e)}},[c,o]),a.useEffect(()=>{if(!c||!_.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=B(s.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[s.floating,n,r,c,_,O]);let k=a.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=fr(v.current,`close`,b.current);i&&!S.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(clearTimeout(x.current),r(!1,e,n))},[v,r]),A=Y(()=>{E.current(),S.current=void 0}),j=Y(()=>{if(T.current){let e=B(s.floating).body;e.style.pointerEvents=``,e.removeAttribute(dr),T.current=!1}}),M=Y(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);a.useEffect(()=>{if(!c)return;function e(e){if(clearTimeout(x.current),w.current=!1,d&&!R(b.current)||p>0&&!fr(v.current,`open`))return;let t=fr(v.current,`open`,b.current);t?x.current=window.setTimeout(()=>{y.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M())return;E.current();let t=B(s.floating);if(clearTimeout(C.current),D.current=!1,_.current&&i.current.floatingContext){n||clearTimeout(x.current),S.current=_.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e,!0,`safe-polygon`)}});let r=S.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)};return}(b.current!==`touch`||!N(s.floating,e.relatedTarget))&&k(e)}function a(e){M()||i.current.floatingContext&&(_.current==null||_.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e)}})(e))}if(f(s.domReference)){var o;let r=s.domReference;return n&&r.addEventListener(`mouseleave`,a),(o=s.floating)==null||o.addEventListener(`mouseleave`,a),m&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),()=>{var i;n&&r.removeEventListener(`mouseleave`,a),(i=s.floating)==null||i.removeEventListener(`mouseleave`,a),m&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t)}}},[s,c,e,d,p,m,k,A,j,r,n,y,h,v,_,i,M]),Z(()=>{var e;if(c&&n&&(e=_.current)!=null&&e.__options.blockPointerEvents&&O()){T.current=!0;let e=s.floating;if(f(s.domReference)&&e){var t;let n=B(s.floating).body;n.setAttribute(dr,``);let r=s.domReference,i=h==null||(t=h.nodesRef.current.find(e=>e.id===g))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[c,n,g,s,h,_,O]),Z(()=>{n||(b.current=void 0,D.current=!1,A(),j())},[n,A,j]),a.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(C.current),j()},[c,s.domReference,A,j]);let P=a.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!w.current&&!y.current&&r(!0,t,`hover`)}d&&!R(b.current)||n||p===0||D.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(C.current),b.current===`touch`?i():(D.current=!0,C.current=window.setTimeout(i,p)))}}},[d,r,n,y,p]),F=a.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){M()||k(e.nativeEvent,!1)}}),[k,M]);return a.useMemo(()=>c?{reference:P,floating:F}:{},[c,P,F])}var mr=()=>{},hr=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:mr,setState:mr,isInstantPhase:!1}),gr=()=>a.useContext(hr);function _r(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=a.useReducer((e,t)=>
1({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=a.useRef(null),c=a.useCallback(e=>{o({currentId:e})},[]);return Z(()=>{i.currentId?s.current===null?s.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),a.createElement(hr.Provider,{value:a.useMemo(()=>({...i,setState:o,setCurrentId:c}),[i,c])},t)}function vr(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=gr(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return Z(()=>{o&&l&&(f({delay:{open:1,close:fr(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),Z(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),Z(()=>{o&&(u===mr||!n||u(s))},[o,n,u,s]),c}var yr=0;function br(e,t){t===void 0&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(yr);let a=()=>e?.focus({preventScroll:n});i?a():yr=requestAnimationFrame(a)}function xr(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Sr(e,t){let n=e.filter(e=>e.parentId===t&&e.context?.open),r=n;for(;r.length;)r=e.filter(e=>r?.some(t=>e.parentId===t.id&&e.context?.open)),n=n.concat(r);return n}function Cr(e,t){let n,r=-1;function i(t,a){a>r&&(n=t,r=a),Sr(e,t).forEach(e=>{i(e.id,a+1)})}return i(t,0),e.find(e=>e.id===n)}var wr=new WeakMap,Tr=new WeakSet,Er={},Dr=0,Or=()=>typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,kr=e=>e&&(e.host||kr(e.parentNode)),Ar=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=kr(t);return e.contains(n)?n:null}).filter(e=>e!=null);function jr(e,t,n,r){let i=`data-floating-ui-inert`,a=r?`inert`:n?`aria-hidden`:null,o=Ar(t,e),s=new Set,l=new Set(o),u=[];Er[i]||(Er[i]=new WeakMap);let d=Er[i];o.forEach(f),p(t),s.clear();function f(e){!e||s.has(e)||(s.add(e),e.parentNode&&f(e.parentNode))}function p(e){!e||l.has(e)||[].forEach.call(e.children,e=>{if(c(e)!==`script`)if(s.has(e))p(e);else{let t=a?e.getAttribute(a):null,n=t!==null&&t!==`false`,r=(wr.get(e)||0)+1,o=(d.get(e)||0)+1;wr.set(e,r),d.set(e,o),u.push(e),r===1&&n&&Tr.add(e),o===1&&e.setAttribute(i,``),!n&&a&&e.setAttribute(a,`true`)}})}return Dr++,()=>{u.forEach(e=>{let t=(wr.get(e)||0)-1,n=(d.get(e)||0)-1;wr.set(e,t),d.set(e,n),t||(!Tr.has(e)&&a&&e.removeAttribute(a),Tr.delete(e)),n||e.removeAttribute(i)}),Dr--,Dr||(wr=new WeakMap,wr=new WeakMap,Tr=new WeakSet,Er={})}}function Mr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);let r=B(e[0]).body;return jr(e.concat(Array.from(r.querySelectorAll(`[aria-live]`))),r,t,n)}var Nr=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`});function Pr(e,t){let n=at(e,Nr());t===`prev`&&n.reverse();let r=n.indexOf(M(B(e)));return n.slice(r+1)[0]}function Fr(){return Pr(document.body,`next`)}function Ir(){return Pr(document.body,`prev`)}function Lr(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!N(n,r)}function Rr(e){at(e,Nr()).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function zr(e){e.querySelectorAll(`[data-tabindex]`).forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Br={border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`fixed`,whiteSpace:`nowrap`,width:`1px`,top:0,left:0},Vr;function Hr(e){e.key===`Tab`&&(e.target,clearTimeout(Vr))}var Ur=a.forwardRef(function(e,t){let[n,r]=a.useState();Z(()=>(ne()&&r(`button`),document.addEventListener(`keydown`,Hr),()=>{document.removeEventListener(`keydown`,Hr)}),[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[ur(`focus-guard`)]:``,style:Br};return a.createElement(`span`,Yn({},e,i))}),Wr=a.createContext(null),Gr=ur(`portal`);function Kr(e){e===void 0&&(e={});let{id:t,root:n}=e,r=er(),i=Jr(),[o,s]=a.useState(null),c=a.useRef(null);return Z(()=>()=>{o?.remove(),queueMicrotask(()=>{c.current=null})},[o]),Z(()=>
vendor: 4,690 bytes, line 1
1{if(!r||c.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement(`div`);n.id=r,n.setAttribute(Gr,``),e.appendChild(n),c.current=n,s(n)},[t,r]),Z(()=>{if(n===null||!r||c.current)return;let e=n||i?.portalNode;e&&!f(e)&&(e=e.current),e||=document.body;let a=null;t&&(a=document.createElement(`div`),a.id=t,e.appendChild(a));let o=document.createElement(`div`);o.id=r,o.setAttribute(Gr,``),e=a||e,e.appendChild(o),c.current=o,s(o)},[t,n,r,i]),o}function qr(e){let{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,s=Kr({id:n,root:r}),[c,l]=a.useState(null),u=a.useRef(null),d=a.useRef(null),f=a.useRef(null),p=a.useRef(null),m=c?.modal,h=c?.open,g=!!c&&!c.modal&&c.open&&i&&!!(r||s);return a.useEffect(()=>{if(!s||!i||m)return;function e(e){s&&Lr(e)&&(e.type===`focusin`?zr:Rr)(s)}return s.addEventListener(`focusin`,e,!0),s.addEventListener(`focusout`,e,!0),()=>{s.removeEventListener(`focusin`,e,!0),s.removeEventListener(`focusout`,e,!0)}},[s,i,m]),a.useEffect(()=>{s&&(h||zr(s))},[h,s]),a.createElement(Wr.Provider,{value:a.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:s,setFocusManagerState:l}),[i,s])},g&&s&&a.createElement(Ur,{"data-type":`outside`,ref:u,onFocus:e=>{if(Lr(e,s)){var t;(t=f.current)==null||t.focus()}else (Ir()||c?.refs.domReference.current)?.focus()}}),g&&s&&a.createElement(`span`,{"aria-owns":s.id,style:Br}),s&&o.createPortal(t,s),g&&s&&a.createElement(Ur,{"data-type":`outside`,ref:d,onFocus:e=>{if(Lr(e,s)){var t;(t=p.current)==null||t.focus()}else (Fr()||c?.refs.domReference.current)?.focus(),c!=null&&c.closeOnFocusOut&&c?.onOpenChange(!1,e.nativeEvent,`focus-out`)}}))}var Jr=()=>a.useContext(Wr),Yr=`data-floating-ui-focusable`;function Xr(e){return e?e.hasAttribute(Yr)?e:e.querySelector(`[data-floating-ui-focusable]`)||e:null}var Zr=20,Qr=[];function $r(e){Qr=Qr.filter(e=>e.isConnected);let t=e;if(!(!t||c(t)===`body`)){if(!st(t,Nr())){let e=at(t,Nr())[0];e&&(t=e)}Qr.push(t),Qr.length>Zr&&(Qr=Qr.slice(-20))}}function ei(){return Qr.slice().reverse().find(e=>e.isConnected)}var ti=a.forwardRef(function(e,t){return a.createElement(`button`,Yn({},e,{type:`button`,ref:t,tabIndex:-1,style:Br}))});function ni(e){let{context:t,children:n,disabled:r=!1,order:i=[`content`],guards:o=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:m,refs:h,nodeId:g,onOpenChange:_,events:v,dataRef:y,floatingId:b,elements:{domReference:x,floating:S}}=t,C=typeof s==`number`&&s<0,w=se(x)&&C,T=Or()?o:!0,E=Q(i),D=Q(s),O=Q(c),k=or(),A=Jr(),j=a.useRef(null),P=a.useRef(null),F=a.useRef(!1),ne=a.useRef(!1),I=a.useRef(-1),re=A!=null,L=Xr(S),R=Y(function(e){return e===void 0&&(e=L),e?at(e,Nr()):[]}),z=Y(e=>{let t=R(e);return E.current.map(e=>x&&e===`reference`?x:L&&e===`floating`?L:t).filter(Boolean).flat()});a.useEffect(()=>{if(r||!u)return;function e(e){if(e.key===`Tab`){N(L,M(B(L)))&&R().length===0&&!w&&H(e);let t=z(),n=V(e);E.current[0]===`reference`&&n===x&&(H(e),e.shiftKey?br(t[t.length-1]):br(t[1])),E.current[1]===`floating`&&n===L&&e.shiftKey&&(H(e),br(t[0]))}}let t=B(L);return t.addEventListener(`keydown`,e),()=>{t.removeEventListener(`keydown`,e)}},[r,x,L,u,E,w,R,z]),a.useEffect(()=>{if(r||!S)return;function e(e){let t=V(e),n=R().indexOf(t);n!==-1&&(I.current=n)}return S.addEventListener(`focusin`,e),()=>{S.removeEventListener(`focusin`,e)}},[r,S,R]),a.useEffect(()=>{if(r||!f)return;function e(){ne.current=!0,setTimeout(()=>{ne.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!(N(x,t)||N(S,t)||N(t,S)||N(A?.portalNode,t)||t!=null&&t.hasAttribute(ur(`focus-guard`))||k&&(Sr(k.nodesRef.current,g).find(e=>N(e.context?.elements.floating,t)||N(e.context?.elements.domReference,t))||xr(k.nodesRef.current,g).find(e=>e.context?.elements.floating===t||e.context?.elements.domReference===t)));if(l&&n&&M(B(L))===B(L).body){p(L)&&L.focus();let e=I.current,t=R(),n=t[e]||t[t.length-1]||L;p(n)&&n.focus()}(w||!u)&&t&&n&&!ne.current&&t!==ei()&&(F.current=!0,_(!1,e,`focus-out`))})}if(S&&p(x))return x.addEventListener(`focusout`,t),x.addEventListener(`pointerdown`,e),S.addEventListener(`focusout`,t),()=>{x.removeEventListener(`focusout`,t),x.removeEventListener(`pointerdown`,e),S.removeEventListener(`focusout`,t)}},[r,x,S,L,u,g,k,A,_,f,l,R,w]),a.useEffect(()=>{var e;if(r)return;let t=Array.from((A==null||(e=A.portalNode)==null?void 0:e.querySelectorAll(`[`+ur(`portal`)+`]`))||[]);if(S){let e=[S,...t,j.current,P.current,E.current.includes(`reference`)||w?x:null].filter(e=>e!=null),n=u||w?Mr(e,T,!T):Mr(e);return()=>{n()}}},[r,x,S,u,E,A,w,T]),Z(()=>
1{if(r||!p(L))return;let e=M(B(L));queueMicrotask(()=>{let t=z(L),n=D.current,r=(typeof n==`number`?t[n]:n.current)||L,i=N(L,e);!C&&!i&&m&&br(r,{preventScroll:r===L})})},[r,m,L,C,z,D]),Z(()=>{if(r||!L)return;let e=!1,t=B(L),n=M(t),i=y.current.openEvent;$r(n);function a(t){let{open:n,reason:r,event:a,nested:o}=t;n&&(i=a),r===`escape-key`&&h.domReference.current&&$r(h.domReference.current),r===`hover`&&a.type===`mouseleave`&&(F.current=!0),r===`outside-press`&&(o?(F.current=!1,e=!0):F.current=!(ee(a)||te(a)))}v.on(`openchange`,a);let o=t.createElement(`span`);o.setAttribute(`tabindex`,`-1`),o.setAttribute(`aria-hidden`,`true`),Object.assign(o.style,Br),re&&x&&x.insertAdjacentElement(`afterend`,o);function s(){return typeof O.current==`boolean`?ei()||o:O.current.current||o}return()=>{v.off(`openchange`,a);let n=M(t),r=N(S,n)||k&&Sr(k.nodesRef.current,g).some(e=>N(e.context?.elements.floating,n));(r||i&&[`click`,`mousedown`].includes(i.type))&&h.domReference.current&&$r(h.domReference.current);let c=s();queueMicrotask(()=>{O.current&&!F.current&&p(c)&&(!(c!==n&&n!==t.body)||r)&&c.focus({preventScroll:e}),o.remove()})}},[r,S,L,O,y,h,v,k,g,re,x]),a.useEffect(()=>{queueMicrotask(()=>{F.current=!1})},[r]),Z(()=>
vendor: 4,710 bytes, line 1
1{if(!r&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:f,open:m,onOpenChange:_,refs:h}),()=>{A.setFocusManagerState(null)}},[r,A,u,m,_,h,f]),Z(()=>{if(r||!L||typeof MutationObserver!=`function`||C)return;let e=()=>{let e=L.getAttribute(`tabindex`),t=R(),n=M(B(S)),r=t.indexOf(n);r!==-1&&(I.current=r),E.current.includes(`floating`)||n!==h.domReference.current&&t.length===0?e!==`0`&&L.setAttribute(`tabindex`,`0`):e!==`-1`&&L.setAttribute(`tabindex`,`-1`)};e();let t=new MutationObserver(e);return t.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,S,L,h,E,R,C]);function ie(e){return r||!d||!u?null:a.createElement(ti,{ref:e===`start`?j:P,onClick:e=>_(!1,e.nativeEvent)},typeof d==`string`?d:`Dismiss`)}let ae=!r&&T&&(u?!w:!0)&&(re||u);return a.createElement(a.Fragment,null,ae&&a.createElement(Ur,{"data-type":`inside`,ref:A?.beforeInsideRef,onFocus:e=>{if(u){let e=z();br(i[0]===`reference`?e[0]:e[e.length-1])}else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(F.current=!1,Lr(e,A.portalNode))(Fr()||x)?.focus();else{var t;(t=A.beforeOutsideRef.current)==null||t.focus()}}}),!w&&ie(`start`),n,ie(`end`),ae&&a.createElement(Ur,{"data-type":`inside`,ref:A?.afterInsideRef,onFocus:e=>{if(u)br(z()[0]);else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(f&&(F.current=!0),Lr(e,A.portalNode))(Ir()||x)?.focus();else{var t;(t=A.afterOutsideRef.current)==null||t.focus()}}}))}var ri=0;function ii(){let e=/iP(hone|ad|od)|iOS/.test(P()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?`paddingLeft`:`paddingRight`,r=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,a=t.top?parseFloat(t.top):window.scrollY;if(t.overflow=`hidden`,r&&(t[n]=r+`px`),e){let e=window.visualViewport?.offsetLeft||0,n=window.visualViewport?.offsetTop||0;Object.assign(t,{position:`fixed`,top:-(a-Math.floor(n))+`px`,left:-(i-Math.floor(e))+`px`,right:`0`})}return()=>{Object.assign(t,{overflow:``,[n]:``}),e&&(Object.assign(t,{position:``,top:``,left:``,right:``}),window.scrollTo(i,a))}}var ai=()=>{},oi=a.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e;return Z(()=>{if(n)return ri++,ri===1&&(ai=ii()),()=>{ri--,ri===0&&ai()}},[n]),a.createElement(`div`,Yn({ref:t},r,{style:{position:`fixed`,overflow:`auto`,top:0,right:0,bottom:0,left:0,...r.style}}))});function si(e){return p(e.target)&&e.target.tagName===`BUTTON`}function ci(e){return oe(e)}function li(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:c=`click`,toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=t,p=a.useRef(),m=a.useRef(!1),h=a.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){let t=p.current;e.button===0&&c!==`click`&&(R(t,!0)&&u||(n&&l&&(!(i.current.openEvent&&f)||i.current.openEvent.type===`mousedown`)?r(!1,e.nativeEvent,`click`):(e.preventDefault(),r(!0,e.nativeEvent,`click`))))},onClick(e){let t=p.current;if(c===`mousedown`&&p.current){p.current=void 0;return}R(t,!0)&&u||(n&&l&&(!(i.current.openEvent&&f)||i.current.openEvent.type===`click`)?r(!1,e.nativeEvent,`click`):r(!0,e.nativeEvent,`click`))},onKeyDown(e){p.current=void 0,!(e.defaultPrevented||!d||si(e))&&(e.key===` `&&!ci(o)&&(e.preventDefault(),m.current=!0),e.key===`Enter`&&r(!(n&&l),e.nativeEvent,`click`))},onKeyUp(e){e.defaultPrevented||!d||si(e)||ci(o)||e.key===` `&&m.current&&(m.current=!1,r(!(n&&l),e.nativeEvent,`click`))}}),[i,o,c,u,d,r,n,f,l]);return a.useMemo(()=>s?{reference:h}:{},[s,h])}var ui={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},di={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},fi=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function pi(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:u=`pointerdown`,referencePress:d=!1,referencePressEvent:m=`pointerdown`,ancestorScroll:h=!1,bubbles:g,capture:_}=t,v=or(),y=Y(typeof l==`function`?l:()=>!1),b=typeof l==`function`?y:l,x=a.useRef(!1),S=a.useRef(!1),{escapeKey:C,outsidePress:D}=fi(g),{escapeKey:k,outsidePress:j}=fi(_),M=a.useRef(!1),P=Y(e=>{if(!n||!s||!c||e.key!==`Escape`||M.current)return;let t=o.current.floatingContext?.nodeId,i=v?Sr(v.nodesRef.current,t):[];if(!C&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,z(e)?e.nativeEvent:e,`escape-key`)}),F=Y(e=>{var t;let n=()=>{var t;
vendor: 4,168 bytes, line 1
1P(e),(t=V(e))==null||t.removeEventListener(`keydown`,n)};(t=V(e))==null||t.addEventListener(`keydown`,n)}),ee=Y(e=>{let t=x.current;x.current=!1;let n=S.current;if(S.current=!1,u===`click`&&n||t||typeof b==`function`&&!b(e))return;let a=V(e),s=`[`+ur(`inert`)+`]`,c=B(i.floating).querySelectorAll(s),l=f(a)?a:null;for(;l&&!T(l);){let e=O(l);if(T(e)||!f(e))break;l=e}if(c.length&&f(a)&&!ie(a)&&!N(a,i.floating)&&Array.from(c).every(e=>!N(l,e)))return;if(p(a)&&I){let t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight,r=n&&e.offsetX>a.clientWidth;if(n&&E(a).direction===`rtl`&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}let d=o.current.floatingContext?.nodeId,m=v&&Sr(v.nodesRef.current,d).some(t=>ae(e,t.context?.elements.floating));if(ae(e,i.floating)||ae(e,i.domReference)||m)return;let h=v?Sr(v.nodesRef.current,d):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),te=Y(e=>{var t;let n=()=>{var t;ee(e),(t=V(e))==null||t.removeEventListener(u,n)};(t=V(e))==null||t.addEventListener(u,n)});a.useEffect(()=>{if(!n||!s)return;o.current.__escapeKeyBubbles=C,o.current.__outsidePressBubbles=D;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function a(){window.clearTimeout(e),M.current=!0}function l(){e=window.setTimeout(()=>{M.current=!1},w()?5:0)}let d=B(i.floating);c&&(d.addEventListener(`keydown`,k?F:P,k),d.addEventListener(`compositionstart`,a),d.addEventListener(`compositionend`,l)),b&&d.addEventListener(u,j?te:ee,j);let p=[];return h&&(f(i.domReference)&&(p=A(i.domReference)),f(i.floating)&&(p=p.concat(A(i.floating))),!f(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(A(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t,{passive:!0})}),()=>{c&&(d.removeEventListener(`keydown`,k?F:P,k),d.removeEventListener(`compositionstart`,a),d.removeEventListener(`compositionend`,l)),b&&d.removeEventListener(u,j?te:ee,j),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[o,i,c,b,u,n,r,h,s,C,D,P,k,F,ee,j,te]),a.useEffect(()=>{x.current=!1},[b,u]);let ne=a.useMemo(()=>({onKeyDown:P,[ui[m]]:e=>{d&&r(!1,e.nativeEvent,`reference-press`)}}),[P,r,d,m]),I=a.useMemo(()=>({onKeyDown:P,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[di[u]]:()=>{x.current=!0}}),[P,u]);return a.useMemo(()=>s?{reference:ne,floating:I}:{},[s,ne,I])}function mi(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=er(),o=a.useRef({}),[s]=a.useState(()=>nr()),c=ar()!=null,[l,u]=a.useState(r.reference),d=Y((e,t,r)=>{o.current.openEvent=e?t:void 0,s.emit(`openchange`,{open:e,event:t,reason:r,nested:c}),n?.(e,t,r)}),f=a.useMemo(()=>({setPositionReference:u}),[]),p=a.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return a.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f}),[t,d,p,s,i,f])}function hi(e){e===void 0&&(e={});let{nodeId:t}=e,n=mi({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=a.useState(null),[c,l]=a.useState(null),u=i?.domReference||o,d=a.useRef(null),p=or();Z(()=>{u&&(d.current=u)},[u]);let m=gn({...e,elements:{...i,...c&&{reference:c}}}),h=a.useCallback(e=>{let t=f(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),m.refs.setReference(t)},[m.refs]),g=a.useCallback(e=>{(f(e)||e===null)&&(d.current=e,s(e)),(f(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!f(e))&&m.refs.setReference(e)},[m.refs]),_=a.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:d}),[m.refs,g,h]),v=a.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),y=a.useMemo(()=>({...m,...r,refs:_,elements:v,nodeId:t}),[m,_,v,t,r]);return Z(()=>{r.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),a.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}
1function gi(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:o,elements:s}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=a.useRef(!1),m=a.useRef(),h=a.useRef(!0);a.useEffect(()=>{if(!c)return;let e=l(s.domReference);function t(){!n&&p(s.domReference)&&s.domReference===M(B(s.domReference))&&(d.current=!0)}function r(){h.current=!0}return e.addEventListener(`blur`,t),e.addEventListener(`keydown`,r,!0),()=>{e.removeEventListener(`blur`,t),e.removeEventListener(`keydown`,r,!0)}},[s.domReference,n,c]),a.useEffect(()=>{if(!c)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(d.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,c]),a.useEffect(()=>()=>{clearTimeout(m.current)},[]);let g=a.useMemo(()=>({onPointerDown(e){te(e.nativeEvent)||(h.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;let t=V(e.nativeEvent);if(u&&f(t))try{if(ne()&&re())throw Error();if(!t.matches(`:focus-visible`))return}catch{if(!h.current&&!oe(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){d.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=f(t)&&t.hasAttribute(ur(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;m.current=window.setTimeout(()=>{let e=M(s.domReference?s.domReference.ownerDocument:document);!t&&e===s.domReference||N(o.current.floatingContext?.refs.floating.current,e)||N(s.domReference,e)||i||r(!1,n,`focus`)})}}),[o,s.domReference,r,u]);return a.useMemo(()=>c?{reference:g}:{},[c,g])}var _i=`active`,vi=`selected`;function yi(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[_i]:t,[vi]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[Yr]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[_i,vi].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function bi(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=a.useCallback(t=>yi(t,e,`reference`),t),o=a.useCallback(t=>yi(t,e,`floating`),n),s=a.useCallback(t=>yi(t,e,`item`),r);return a.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}var xi=!1;function Si(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Ci(e,t){return Si(t,e===kn||e===An,e===jn||e===Mn)}function wi(e,t,n){return Si(t,e===An,n?e===jn:e===Mn)||e===`Enter`||e===` `||e===``}function Ti(e,t,n){return Si(t,n?e===jn:e===Mn,e===An)}function Ei(e,t,n){return Si(t,n?e===Mn:e===jn,e===kn)}function Di(e,t){let{open:n,onOpenChange:r,elements:i}=e,{listRef:o,activeIndex:s,onNavigate:c=()=>{},enabled:l=!0,selectedIndex:u=null,allowEscape:d=!1,loop:f=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:_=`auto`,focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b=void 0,orientation:x=`vertical`,cols:S=1,scrollItemIntoView:C=!0,virtualItemRef:w,itemSizes:T,dense:E=!1}=t,D=Q(Xr(i.floating)),O=ar(),k=or(),A=Y(c),j=se(i.domReference),P=a.useRef(_),F=a.useRef(u??-1),I=a.useRef(null),L=a.useRef(!0),R=a.useRef(A),z=a.useRef(!!i.floating),ie=a.useRef(n),ae=a.useRef(!1),V=a.useRef(!1),oe=Q(b),ce=Q(n),le=Q(C),ue=Q(u),[U,W]=a.useState(),[de,fe]=a.useState(),G=Y(function(e,t,n){n===void 0&&(n=!1);function r(e){g?(W(e.id),k?.events.emit(`virtualfocus`,e),w&&(w.current=e)):br(e,{preventScroll:!0,sync:re()&&ne()?xi||ae.current:!1})}let i=e.current[t.current];i&&r(i),requestAnimationFrame(()=>{let a=e.current[t.current]||i;if(!a)return;i||r(a);let o=le.current;o&&me&&(n||!L.current)&&(a.scrollIntoView==null||a.scrollIntoView(typeof o==`boolean`?{block:`nearest`,inline:`nearest`}:o))})});Z(()=>{document.createElement(`div`).focus({get preventScroll(){return xi=!0,!1}})},[]),Z(()=>{l&&(n&&i.floating?P.current&&u!=null&&(V.current=!0,F.current=u,A(u)):z.current&&(F.current=-1,R.current(null)))},[l,n,i.floating,u,A]),Z(()=>
1{if(l&&n&&i.floating)if(s==null){if(ae.current=!1,ue.current!=null)return;if(z.current&&(F.current=-1,G(o,F)),(!ie.current||!z.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{o.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(F.current=I.current==null||wi(I.current,x,h)||m?Fn(o,oe.current):In(o,oe.current),I.current=null,A(F.current))};t()}}else Pn(o,s)||(F.current=s,G(o,F,V.current),V.current=!1)},[l,n,i.floating,s,ue,m,o,x,h,A,G,oe]),Z(()=>{var e;if(!l||i.floating||!k||g||!z.current)return;let t=k.nodesRef.current,n=(e=t.find(e=>e.id===O))==null||(e=e.context)==null?void 0:e.elements.floating,r=M(B(i.floating)),a=t.some(e=>e.context&&N(e.context.elements.floating,r));n&&!a&&L.current&&n.focus({preventScroll:!0})},[l,i.floating,k,O,g]),Z(()=>{if(!l||!k||!g||O)return;function e(e){fe(e.id),w&&(w.current=e)}return k.events.on(`virtualfocus`,e),()=>{k.events.off(`virtualfocus`,e)}},[l,k,g,O,w]),Z(()=>{R.current=A,z.current=!!i.floating}),Z(()=>{n||(I.current=null)},[n]),Z(()=>{ie.current=n},[n]);let pe=s!=null,me=a.useMemo(()=>{function e(e){if(!n)return;let t=o.current.indexOf(e);t!==-1&&A(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;!L.current||t===`touch`||(F.current=-1,G(o,F),A(null),g||br(D.current,{preventScroll:!0}))}}}},[n,D,G,v,o,A,g]),K=Y(e=>{if(L.current=!1,ae.current=!0,e.which===229||!ce.current&&e.currentTarget===D.current)return;if(m&&Ei(e.key,x,h)){H(e),r(!1,e.nativeEvent,`list-navigation`),p(i.domReference)&&(g?k?.events.emit(`virtualfocus`,i.domReference):i.domReference.focus());return}let t=F.current,a=Fn(o,b),s=In(o,b);if(j||(e.key===`Home`&&(H(e),F.current=a,A(F.current)),e.key===`End`&&(H(e),F.current=s,A(F.current))),S>1){let t=T||Array.from({length:o.current.length},()=>({width:1,height:1})),n=Rn(t,S,E),r=n.findIndex(e=>e!=null&&!Vn(o.current,e,b)),i=n.reduce((e,t,n)=>t!=null&&!Vn(o.current,t,b)?n:e,-1),c=n[Ln({current:n.map(e=>e==null?null:o.current[e])},{event:e,orientation:x,loop:f,rtl:h,cols:S,disabledIndices:Bn([...b||o.current.map((e,t)=>Vn(o.current,t)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:zn(F.current>s?a:F.current,t,n,S,e.key===An?`bl`:e.key===(h?jn:Mn)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(F.current=c,A(F.current)),x===`both`)return}if(Ci(e.key,x)){if(H(e),n&&!g&&M(e.currentTarget.ownerDocument)===e.currentTarget){F.current=wi(e.key,x,h)?a:s,A(F.current);return}wi(e.key,x,h)?f?F.current=t>=s?d&&t!==o.current.length?-1:a:X(o,{startingIndex:t,disabledIndices:b}):F.current=Math.min(s,X(o,{startingIndex:t,disabledIndices:b})):f?F.current=t<=a?d&&t!==-1?o.current.length:s:X(o,{startingIndex:t,decrement:!0,disabledIndices:b}):F.current=Math.max(a,X(o,{startingIndex:t,decrement:!0,disabledIndices:b})),Pn(o,F.current)?A(null):A(F.current)}}),q=a.useMemo(()=>g&&n&&pe&&{"aria-activedescendant":de||U},[g,n,pe,de,U]),J=a.useMemo(()=>({"aria-orientation":x===`both`?void 0:x,...!se(i.domReference)&&q,onKeyDown:K,onPointerMove(){L.current=!0}}),[q,K,i.domReference,x]),he=a.useMemo(()=>{function e(e){_===`auto`&&ee(e.nativeEvent)&&(P.current=!0)}function t(e){P.current=_,_===`auto`&&te(e.nativeEvent)&&(P.current=!0)}return{...q,onKeyDown(e){L.current=!1;let t=e.key.startsWith(`Arrow`),i=[`Home`,`End`].includes(e.key),a=t||i,s=Ti(e.key,x,h),c=Ei(e.key,x,h),l=Ci(e.key,x),d=(m?s:l)||e.key===`Enter`||e.key.trim()===``;if(g&&n){let t=k?.nodesRef.current.find(e=>e.parentId==null),n=k&&t?Cr(k.nodesRef.current,t.id):null;if(a&&n&&w){let t=new KeyboardEvent(`keydown`,{key:e.key,bubbles:!0});if(s||c){let r=n.context?.elements.domReference===e.currentTarget,i=c&&!r?n.context?.elements.domReference:s?o.current.find(e=>e?.id===U):null;i&&(H(e),i.dispatchEvent(t),fe(void 0))}if((l||i)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference){var f;H(e),(f=n.context.elements.domReference)==null||f.dispatchEvent(t);return}}return K(e)}if(!(!n&&!y&&t)){if(d&&(I.current=m&&l?null:e.key),m){s&&(H(e),n?(F.current=Fn(o,oe.current),A(F.current)):r(!0,e.nativeEvent,`list-navigation`));return}l&&(u!=null&&(F.current=u),H(e),!n&&y?r(!0,e.nativeEvent,`list-navigation`):K(e),n&&A(F.current))}},onFocus(){n&&!g&&A(null)},onPointerDown:t,onMouseDown:e,onClick:e}}
1,[U,q,K,oe,_,o,m,A,r,n,y,x,h,u,k,g,w]);return a.useMemo(()=>l?{reference:he,floating:J,item:me}:{},[l,he,J,me])}var Oi=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function ki(e,t){t===void 0&&(t={});let{open:n,floatingId:r}=e,{enabled:i=!0,role:o=`dialog`}=t,s=Oi.get(o)??o,c=er(),l=ar()!=null,u=a.useMemo(()=>s===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?r:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":s===`alertdialog`?`dialog`:s,"aria-controls":n?r:void 0,...s===`listbox`&&{role:`combobox`},...s===`menu`&&{id:c},...s===`menu`&&l&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[s,r,l,n,c,o]),d=a.useMemo(()=>{let e={id:r,...s&&{role:s}};return s===`tooltip`||o===`label`?e:{...e,...s===`menu`&&{"aria-labelledby":c}}},[s,r,c,o]),f=a.useCallback(e=>{let{active:t,selected:n}=e,i={role:`option`,...t&&{id:r+`-option`}};switch(o){case`select`:return{...i,"aria-selected":t&&n};case`combobox`:return{...i,...t&&{"aria-selected":!0}}}return{}},[r,o]);return a.useMemo(()=>i?{reference:u,floating:d,item:f}:{},[i,u,d,f])}function Ai(e,t){let[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}function ji(e,t){t===void 0&&(t={});let{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i==`number`?i:i.close)||0,[s,c]=a.useState(`unmounted`),l=Ai(n,o);return!l&&s===`close`&&c(`unmounted`),Z(()=>{if(r){if(n){c(`initial`);let e=requestAnimationFrame(()=>{c(`open`)});return()=>{cancelAnimationFrame(e)}}c(`close`)}},[n,r]),{isMounted:l,status:s}}function Mi(e,t){let{open:n,dataRef:r}=e,{listRef:i,activeIndex:o,onMatch:s,onTypingChange:c,enabled:l=!0,findMatch:u=null,resetMs:d=750,ignoreKeys:f=[],selectedIndex:p=null}=t,m=a.useRef(),h=a.useRef(``),g=a.useRef(p??o??-1),_=a.useRef(null),v=Y(s),y=Y(c),b=Q(u),x=Q(f);Z(()=>{n&&(clearTimeout(m.current),_.current=null,h.current=``)},[n]),Z(()=>{n&&h.current===``&&(g.current=p??o??-1)},[n,p,o]);let S=Y(e=>{e?r.current.typing||(r.current.typing=e,y(e)):r.current.typing&&(r.current.typing=e,y(e))}),C=Y(e=>{function t(e,t,n){let r=b.current?b.current(t,n):t.find(e=>e?.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())===0);return r?e.indexOf(r):-1}let r=i.current;if(h.current.length>0&&h.current[0]!==` `&&(t(r,r,h.current)===-1?S(!1):e.key===` `&&H(e)),r==null||x.current.includes(e.key)||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;n&&e.key!==` `&&(H(e),S(!0)),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&h.current===e.key&&(h.current=``,g.current=_.current),h.current+=e.key,clearTimeout(m.current),m.current=setTimeout(()=>{h.current=``,g.current=_.current,S(!1)},d);let a=g.current,o=t(r,[...r.slice((a||0)+1),...r.slice(0,(a||0)+1)],h.current);o===-1?e.key!==` `&&(h.current=``,S(!1)):(v(o),_.current=o)}),w=a.useMemo(()=>({onKeyDown:C}),[C]),T=a.useMemo(()=>({onKeyDown:C,onKeyUp(e){e.key===` `&&S(!1)}}),[C,S]);return a.useMemo(()=>l?{reference:w,floating:T}:{},[l,w,T])}function Ni(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]||[0,0],[c,l]=t[o]||[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Pi(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Fi(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i,a=!1,o=null,s=null,c=performance.now();function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:p}=e;return function(e){function m(){clearTimeout(i),u()}if(clearTimeout(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:h,clientY:g}=e,_=[h,g],v=V(e),y=e.type===`mouseleave`,b=N(c.floating,v),x=N(c.domReference,v),S=c.domReference.getBoundingClientRect(),C=c.floating.getBoundingClientRect(),w=s.split(`-`)[0],T=n>C.right-C.width/2,E=o>C.bottom-C.height/2,D=Pi(_,S),O=C.width>S.width,k=C.height>S.height,A=(O?S:C).left,j=(O?S:C).right,M=(k?S:C).top,P=(k?S:C).bottom;if(b&&(a=!0,!y))return;if(x&&(a=!1),x&&!y){a=!0;return}if(y&&f(e.relatedTarget)&&N(c.floating,e.relatedTarget)||p&&Sr(p.nodesRef.current,d).some(e=>{let{context:t}=e;return t?.open}))return;if(w===`top`&&o>=S.bottom-1||w===`bottom`&&o<=S.top+1||w===`left`&&n>=S.right-1||w===`right`&&n<=S.left+1)return m();let F=[];switch(w){case`top`:F=[[A,S.top+1],[A,C.bottom-1],[j,C.bottom-1],[j,S.top+1]];break;case`bottom`:F=[[A,C.top+1],[A,S.bottom-1],[j,S.bottom-1],[j,C.top+1]];break;case`left`:F=[[C.right-1,P],[C.right-1,M],[S.left+1,M],[S.left+1,P]];break;case`right`:F=[[S.right-1,P],[S.right-1,M],[C.left+1,M],[C.left+1,P]];break}function ee(e){let[n,r]=e;switch(w){case`top`:return[[O?n+t/2:T?n+t*4:n-t*4,r+t+1],[O?n-t/2:T?n+t*4:n-t*4,r+t+1],[C.left,T||O?C.bottom-t:C.top],[C.right,T?O?C.bottom-t:C.top:C.bottom-t]];case`bottom`:return[[O?n+t/2:T?n+t*4:n-t*4,r-t],[O?n-t/2:T?n+t*4:n-t*4,r-t],[C.left,T||O?C.top+t:C.bottom],[C.right,T?O?C.top+t:C.bottom:C.top+t]];case`left`:{let e=[n+t+1,k?r+t/2:E?r+t*4:r-t*4],i=[n+t+1,k?r-t/2:E?r+t*4:r-t*4];return[[E||k?C.right-t:C.left,C.top],[E?k?C.right-t:C.left:C.right-t,C.bottom],e,i]}case`right`:return[[n-t,k?r+t/2:E?r+t*4:r-t*4],[n-t,k?r-t/2:E?r+t*4:r-t*4],[E||k?C.left+t:C.right,C.top],[E?k?C.left+t:C.right:C.left+t,C.bottom]]}}if(!Ni([h,g],F)){if(a&&!D)return m();if(!y&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return m()}Ni([h,g],ee([n,o]))?!a&&r&&(i=window.setTimeout(m,40)):m()}}};return u.__options={blockPointerEvents:n},u}var $=n(),Ii=(0,a.createContext)(null);function Li(){return(0,a.useContext)(Ii)}var Ri=(0,a.createContext)([]);function zi(e){if(typeof e==`string`)try{return document.querySelector(e)}catch{return null}else if(typeof e==`function`)try{return e()}catch{return null}else return e}
1function Bi(e){let{id:t,shouldAddThemeClass:n,children:r,...i}=e,a=Li();return(0,$.jsx)(`div`,{className:n?a?.className:void 0,"data-pluma-color-scheme":n?a?.colorScheme:void 0,id:t,...i,children:r})}function Vi(e){let{children:t,container:n,shouldUseFloatingPortal:r=!1,isolate:s=!1,shouldRenderPortalContainer:c=!1}=e,l=(0,a.useContext)(Ri),u=(0,a.useId)(),d=i(),[f,p]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{p(!0)},[]),typeof document>`u`||!f)return null;let m=r?l.some(e=>e.isFloatingPortal):l.some(e=>!e.isFloatingPortal),h=n==null?null:zi(n),g=null;if(h!=null&&(g=h),g==null)if(m){let e=l[l.length-1];e!=null&&(g=document.getElementById(e.id))}else{let e=d.portalContainer;e!=null&&(g=zi(e))}g??=document.body;let _=s?{isolation:`isolate`}:{},v=r&&m?l:[...l,{id:u,isFloatingPortal:r}];return r?(0,$.jsx)(Ri.Provider,{value:v,children:m?(0,$.jsx)(qr,{children:(0,$.jsx)(`div`,{style:_,children:t})}):(0,$.jsxs)($.Fragment,{children:[(0,o.createPortal)((0,$.jsx)(Bi,{id:u,shouldAddThemeClass:!m}),g),(0,$.jsx)(qr,{id:u,children:(0,$.jsx)(`div`,{style:_,children:t})})]})}):h!=null&&c!==!0?(0,o.createPortal)((0,$.jsx)($.Fragment,{children:t}),g):(0,$.jsx)(Ri.Provider,{value:v,children:(0,o.createPortal)((0,$.jsx)(Bi,{id:u,shouldAddThemeClass:!m,children:(0,$.jsx)(`div`,{style:_,children:t})}),g)})}Vi.displayName=`PlumaPortal`;export{Cn as A,an as B,Kn as C,ji as D,ki as E,yn as F,ot as H,Sn as I,gn as L,wn as M,bn as N,Mi as O,vn as P,en as R,bi as S,En as T,fe as U,tn as V,sr as _,tr as a,gi as b,Gn as c,lr as d,Fi as f,hi as g,pi as h,Li as i,xn as j,Tn as k,cr as l,vr as m,Vi as n,_r as o,li as p,zi as r,ni as s,Ii as t,oi as u,ar as v,Di as w,pr as x,or as y,un as z}; 2//# sourceMappingURL=portal-kQkfG3hE-D3Mki3Dc.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.