PageSourceSearch

https://incarail.com/_next/static/chunks/npm.floating-ui-64cd28191c43c246.js

js incarail.com collected 2026-10-03 20:52:05 UTC 84,754 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97],{50274:(e,t,n)=>{let r;n.r(t),n.d(t,{Composite:()=>tD,CompositeItem:()=>tF,FloatingArrow:()=>tK,FloatingDelayGroup:()=>t7,FloatingFocusManager:()=>nE,FloatingList:()=>tb,FloatingNode:()=>tU,FloatingOverlay:()=>nL,FloatingPortal:()=>np,FloatingTree:()=>tG,NextFloatingDelayGroup:()=>t8,arrow:()=>tg,autoPlacement:()=>tv,autoUpdate:()=>te,computePosition:()=>tr,detectOverflow:()=>tt,flip:()=>td,getOverflowAncestors:()=>C,hide:()=>tp,inline:()=>th,inner:()=>n2,limitShift:()=>ts,offset:()=>ta,platform:()=>e8,safePolygon:()=>n7,shift:()=>tf,size:()=>tm,useClick:()=>nA,useClientPoint:()=>nI,useDelayGroup:()=>t9,useDelayGroupContext:()=>t5,useDismiss:()=>nF,useFloating:()=>nj,useFloatingNodeId:()=>tY,useFloatingParentNodeId:()=>tz,useFloatingPortalNode:()=>nv,useFloatingRootContext:()=>nN,useFloatingTree:()=>tX,useFocus:()=>nW,useHover:()=>t1,useId:()=>t_,useInnerOffset:()=>n4,useInteractions:()=>nK,useListItem:()=>tR,useListNavigation:()=>nY,useMergeRefs:()=>ty,useNextDelayGroup:()=>t6,useRole:()=>nG,useTransitionStatus:()=>nQ,useTransitionStyles:()=>nJ,useTypeahead:()=>n0});var o=n(14232),l=n.t(o,2);function i(){return"undefined"!=typeof window}function u(e){return f(e)?(e.nodeName||"").toLowerCase():"#document"}function c(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(f(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function f(e){return!!i()&&(e instanceof Node||e instanceof c(e).Node)}function s(e){return!!i()&&(e instanceof Element||e instanceof c(e).Element)}function d(e){return!!i()&&(e instanceof HTMLElement||e instanceof c(e).HTMLElement)}function m(e){return!!i()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof c(e).ShadowRoot)}function v(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function p(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let h=/transform|translate|scale|rotate|perspective|filter/,g=/paint|layout|strict|content/,y=e=>!!e&&"none"!==e;function w(e){let t=s(e)?R(e):e;return y(t.transform)||y(t.translate)||y(t.scale)||y(t.rotate)||y(t.perspective)||!x()&&(y(t.backdropFilter)||y(t.filter))||h.test(t.willChange||"")||g.test(t.contain||"")}function x(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function b(e){return/^(html|body|#document)$/.test(u(e))}function R(e){return c(e).getComputedStyle(e)}function E(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k(e){if("html"===u(e))return e;let t=e.assignedSlot||e.parentNode||m(e)&&e.host||a(e);return m(t)?t.host:t}function C(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=k(t);return b(n)?t.ownerDocument?t.ownerDocument.body:t.body:d(n)&&v(n)?n:e(n)}(e),l=o===(null==(r=e.ownerDocument)?void 0:r.body),i=c(o);if(!l)return t.concat(o,C(o,[],n));{let e=M(i);return t.concat(i,i.visualViewport||[],v(o)?o:[],e&&n?C(e):[])}}function M(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}let L=["top","right","bottom","left"],T=L.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),A=Math.min,P=Math.max,I=Math.round,S=Math.floor,O=e=>({x:e,y:e}),D={left:"right",right:"left",bottom:"top",top:"bottom"};function F(e,t){return"function"==typeof e?e(t):e}function N(e){return e.split("-")[0]}function j(e){return e.split("-")[1]}function H(e){return"x"===e?"y":"x"}function W(e){return"y"===e?"height":"width"}function _(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function K(e,t,n){void 0===n&&(n=!1);let r=j(e),o=H(_(e)),l=W(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Y(i)),[i,Y(i)]}function B(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let q=["left","right"],V=["right","left"],z=["top","bottom"],X=["bottom","top"];function Y(e){let t=N(e);return D[t]+e.slice(t.length)}function U(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function G(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var $=n(19130);function Z(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Q(){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 J(){return/apple/i.test(navigator.vendor)}function ee(){let e=/android/i;return e.test(Z())||e.test(Q())}function et(){return Q().includes("jsdom/")}let en="data-floating-ui-focusable",er="ArrowLeft",eo="ArrowRight";function el(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ei(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
vendor: 4,354 bytes, line 1
1if(n&&m(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function eu(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ec(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function ea(e){return(null==e?void 0:e.ownerDocument)||document}function ef(e){return d(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function es(e){return!!e&&"combobox"===e.getAttribute("role")&&ef(e)}function ed(e){return e?e.hasAttribute(en)?e:e.querySelector("["+en+"]")||e:null}function em(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...em(e,t.id,n)])}function ev(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function ep(e){e.preventDefault(),e.stopPropagation()}function eh(e){return 0===e.mozInputSource&&!!e.isTrusted||(ee()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function eg(e){return!et()&&(!ee()&&0===e.width&&0===e.height||ee()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function ey(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var ew="undefined"!=typeof document?o.useLayoutEffect:function(){};function ex(e){let t=o.useRef(e);return ew(()=>{t.current=e}),t}let eb={...l}.useInsertionEffect||(e=>e());function eR(e){let t=o.useRef(()=>{});return eb(()=>{t.current=e}),o.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function eE(e,t,n){return Math.floor(e/t)!==n}function ek(e,t){return t<0||t>=e.current.length}function eC(e,t){return eL(e,{disabledIndices:t})}function eM(e,t){return eL(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function eL(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:l=1}=void 0===t?{}:t,i=n;do i+=r?-l:l;while(i>=0&&i<=e.current.length-1&&eS(e,i,o));return i}function eT(e,t){let{event:n,orientation:r,loop:o,rtl:l,cols:i,disabledIndices:u,minIndex:c,maxIndex:a,prevIndex:f,stopEvent:s=!1}=t,d=f;if("ArrowUp"===n.key){if(s&&ep(n),-1===f)d=a;else if(d=eL(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:u}),o&&(f-i<c||d<0)){let e=f%i,t=a%i,n=a-(t-e);d=t===e?a:t>e?n:n-i}ek(e,d)&&(d=f)}if("ArrowDown"===n.key&&(s&&ep(n),-1===f?d=c:(d=eL(e,{startingIndex:f,amount:i,disabledIndices:u}),o&&f+i>a&&(d=eL(e,{startingIndex:f%i-i,amount:i,disabledIndices:u}))),ek(e,d)&&(d=f)),"both"===r){let t=S(f/i);n.key===(l?er:eo)&&(s&&ep(n),f%i!=i-1?(d=eL(e,{startingIndex:f,disabledIndices:u}),o&&eE(d,i,t)&&(d=eL(e,{startingIndex:f-f%i-1,disabledIndices:u}))):o&&(d=eL(e,{startingIndex:f-f%i-1,disabledIndices:u})),eE(d,i,t)&&(d=f)),n.key===(l?eo:er)&&(s&&ep(n),f%i!=0?(d=eL(e,{startingIndex:f,decrement:!0,disabledIndices:u}),o&&eE(d,i,t)&&(d=eL(e,{startingIndex:f+(i-f%i),decrement:!0,disabledIndices:u}))):o&&(d=eL(e,{startingIndex:f+(i-f%i),decrement:!0,disabledIndices:u})),eE(d,i,t)&&(d=f));let r=S(a/i)===t;ek(e,d)&&(d=o&&r?n.key===(l?eo:er)?a:eL(e,{startingIndex:f-f%i-1,disabledIndices:u}):f)}return d}function eA(e,t,n){let r=[],o=0;return e.forEach((e,l)=>{let{width:i,height:u}=e,c=!1;for(n&&(o=0);!c;){let e=[];for(let n=0;n<i;n++)for(let r=0;r<u;r++)e.push(o+n+r*t);o%t+i<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=l}),c=!0):o++}}),[...r]}function eP(e,t,n,r,o){if(-1===e)return -1;let l=n.indexOf(e),i=t[e];switch(o){case"tl":return l;case"tr":if(!i)return l;return l+i.width-1;case"bl":if(!i)return l;return l+(i.height-1)*r;case"br":return n.lastIndexOf(e)}}function eI(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function eS(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);let r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let eO=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eD(e,t){let n=(0,$.Kr)(e,eO()),r=n.length;if(0===r)return;
1let o=el(ea(e)),l=n.indexOf(o);return n[-1===l?1===t?0:r-1:l+t]}function eF(e){return eD(ea(e).body,1)||e}function eN(e){return eD(ea(e).body,-1)||e}function ej(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!ei(n,r)}function eH(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 eW=n(37876),e_=n(98477);function eK(e,t,n){let r,{reference:o,floating:l}=e,i=_(t),u=H(_(t)),c=W(u),a=N(t),f="y"===i,s=o.x+o.width/2-l.width/2,d=o.y+o.height/2-l.height/2,m=o[c]/2-l[c]/2;switch(a){case"top":r={x:s,y:o.y-l.height};break;case"bottom":r={x:s,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-l.width,y:d};break;default:r={x:o.x,y:o.y}}switch(j(t)){case"start":r[u]-=m*(n&&f?-1:1);break;case"end":r[u]+=m*(n&&f?-1:1)}return r}async function eB(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:l,rects:i,elements:u,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:s="floating",altBoundary:d=!1,padding:m=0}=F(t,e),v=U(m),p=u[d?"floating"===s?"reference":"floating":s],h=G(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(p)))||n?p:p.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(u.floating)),boundary:a,rootBoundary:f,strategy:c})),g="floating"===s?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u.floating)),w=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},x=G(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:g,offsetParent:y,strategy:c}):g);return{top:(h.top-x.top+v.top)/w.y,bottom:(x.bottom-h.bottom+v.bottom)/w.y,left:(h.left-x.left+v.left)/w.x,right:(x.right-h.right+v.right)/w.x}}let eq=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,u=i.detectOverflow?i:{...i,detectOverflow:eB},c=await (null==i.isRTL?void 0:i.isRTL(t)),a=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:s}=eK(a,r,c),d=r,m=0,v={};for(let n=0;n<l.length;n++){let p=l[n];if(!p)continue;let{name:h,fn:g}=p,{x:y,y:w,data:x,reset:b}=await g({x:f,y:s,initialPlacement:r,placement:d,strategy:o,middlewareData:v,rects:a,platform:u,elements:{reference:e,floating:t}});f=null!=y?y:f,s=null!=w?w:s,v[h]={...v[h],...x},b&&m<50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(a=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:f,y:s}=eK(a,d,c)),n=-1)}return{x:f,y:s,placement:d,strategy:o,middlewareData:v}};function eV(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ez(e){return L.some(t=>e[t]>=0)}function eX(e){let t=A(...e.map(e=>e.left)),n=A(...e.map(e=>e.top));return{x:t,y:n,width:P(...e.map(e=>e.right))-t,height:P(...e.map(e=>e.bottom))-n}}let eY=new Set(["left","top"]);async function eU(e,t){let{placement:n,platform:r,elements:o}=e,l=await (null==r.isRTL?void 0:r.isRTL(o.floating)),i=N(n),u=j(n),c="y"===_(n),a=eY.has(i)?-1:1,f=l&&c?-1:1,s=F(t,e),{mainAxis:d,crossAxis:m,alignmentAxis:v}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:s.mainAxis||0,crossAxis:s.crossAxis||0,alignmentAxis:s.alignmentAxis};return u&&"number"==typeof v&&(m="end"===u?-1*v:v),c?{x:m*f,y:d*a}:{x:d*a,y:m*f}}function eG(e){let t=R(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=d(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,u=I(n)!==l||I(r)!==i;return u&&(n=l,r=i),{width:n,height:r,$:u}}function e$(e){return s(e)?e:e.contextElement}function eZ(e){let t=e$(e);if(!d(t))return O(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:l}=eG(t),i=(l?I(n.width):n.width)/r,u=(l?I(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),u&&Number.isFinite(u)||(u=1),{x:i,y:u}}let eQ=O(0);function eJ(e){let t=c(e);
1return x()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eQ}function e0(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),i=e$(e),u=O(1);t&&(r?s(r)&&(u=eZ(r)):u=eZ(e));let a=(void 0===(o=n)&&(o=!1),r&&(!o||r===c(i))&&o)?eJ(i):O(0),f=(l.left+a.x)/u.x,d=(l.top+a.y)/u.y,m=l.width/u.x,v=l.height/u.y;if(i){let e=c(i),t=r&&s(r)?c(r):r,n=e,o=M(n);for(;o&&r&&t!==n;){let e=eZ(o),t=o.getBoundingClientRect(),r=R(o),l=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,d*=e.y,m*=e.x,v*=e.y,f+=l,d+=i,o=M(n=c(o))}}return G({width:m,height:v,x:f,y:d})}function e1(e,t){let n=E(e).scrollLeft;return t?t.left+n:e0(a(e)).left+n}function e2(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-e1(e,n),y:n.top+t.scrollTop}}function e4(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=c(e),r=a(e),o=n.visualViewport,l=r.clientWidth,i=r.clientHeight,u=0,f=0;if(o){l=o.width,i=o.height;let e=x();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,f=o.offsetTop)}let s=e1(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(l-=i)}else s<=25&&(l+=s);return{width:l,height:i,x:u,y:f}}(e,n);else if("document"===t)r=function(e){let t=a(e),n=E(e),r=e.ownerDocument.body,o=P(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=P(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+e1(e),u=-n.scrollTop;return"rtl"===R(r).direction&&(i+=P(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:i,y:u}}(a(e));else if(s(t))r=function(e,t){let n=e0(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=d(e)?eZ(e):O(1),i=e.clientWidth*l.x,u=e.clientHeight*l.y;return{width:i,height:u,x:o*l.x,y:r*l.y}}(t,n);else{let n=eJ(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return G(r)}function e5(e){return"static"===R(e).position}function e7(e,t){if(!d(e)||"fixed"===R(e).position)return null;if(t)return t(e);let n=e.offsetParent;return a(e)===n&&(n=n.ownerDocument.body),n}function e9(e,t){var n;let r=c(e);if(p(e))return r;if(!d(e)){let t=k(e);for(;t&&!b(t);){if(s(t)&&!e5(t))return t;t=k(t)}return r}let o=e7(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(u(n)))&&e5(o);)o=e7(o,t);return o&&b(o)&&e5(o)&&!w(o)?r:o||function(e){let t=k(e);for(;d(t)&&!b(t);){if(w(t))return t;if(p(t))break;t=k(t)}return null}(e)||r}let e3=async function(e){let t=this.getOffsetParent||e9,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=d(t),o=a(t),l="fixed"===n,i=e0(e,!0,l,t),c={scrollLeft:0,scrollTop:0},f=O(0);if(r||!r&&!l)if(("body"!==u(t)||v(o))&&(c=E(t)),r){let e=e0(t,!0,l,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else o&&(f.x=e1(o));l&&!r&&o&&(f.x=e1(o));let s=!o||r||l?O(0):e2(o,c);return{x:i.left+c.scrollLeft-f.x-s.x,y:i.top+c.scrollTop-f.y-s.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},e8={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,l="fixed"===o,i=a(r),c=!!t&&p(t.floating);if(r===i||c&&l)return n;let f={scrollLeft:0,scrollTop:0},s=O(1),m=O(0),h=d(r);if((h||!h&&!l)&&(("body"!==u(r)||v(i))&&(f=E(r)),h)){let e=e0(r);s=eZ(r),m.x=e.x+r.clientLeft,m.y=e.y+r.clientTop}let g=!i||h||l?O(0):e2(i,f);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-f.scrollLeft*s.x+m.x+g.x,y:n.y*s.y-f.scrollTop*s.y+m.y+g.y}},getDocumentElement:a,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,l=[..."clippingAncestors"===n?p(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=C(e,[],!1).filter(e=>s(e)&&"body"!==u(e)),o=null,l="fixed"===R(e).position,i=l?k(e):e;for(;s(i)&&!b(i);){let t=R(i),n=w(i);n||"fixed"!==t.position||(o=null),(l?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||v(i)&&!n&&function e(t,n){let r=k(t);return!(r===n||!s(r)||b(r))&&("fixed"===R(r).position||e(r,n))}(e,i)))?o=t:r=r.filter(e=>e!==i),i=k(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=e4(t,l[0],o),c=i.top,a=i.right,f=i.bottom,d=i.left;for(let e=1;e<l.length;e++){let n=e4(t,l[e],o);c=P(n.top,c),a=A(n.right,a),f=A(n.bottom,f),d=P(n.left,d)}return{width:a-d,height:f-c,x:d,y:c}},getOffsetParent:e9,getElementRects:e3,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eG(e);return{width:t,height:n}},getScale:eZ,isElement:s,isRTL:function(e){return"rtl"===R(e).direction}};function e6(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function te(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:i=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,s=e$(e),d=l||i?[...s?C(s):[],...t?C(t):[]]:[];
1d.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let m=s&&c?function(e,t){let n,r=null,o=a(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),l();let a=e.getBoundingClientRect(),{left:f,top:s,width:d,height:m}=a;if(u||t(),!d||!m)return;let v=S(s),p=S(o.clientWidth-(f+d)),h={rootMargin:-v+"px "+-p+"px "+-S(o.clientHeight-(s+m))+"px "+-S(f)+"px",threshold:P(0,A(1,c))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==c){if(!g)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||e6(a,e.getBoundingClientRect())||i(),g=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),l}(s,n):null,v=-1,p=null;u&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&p&&t&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),s&&!f&&p.observe(s),t&&p.observe(t));let h=f?e0(e):null;return f&&function t(){let r=e0(e);h&&!e6(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=p)||e.disconnect(),p=null,f&&cancelAnimationFrame(o)}}let tt=eB,tn=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:l,platform:i,elements:u,middlewareData:c}=t,{element:a,padding:f=0}=F(e,t)||{};if(null==a)return{};let s=U(f),d={x:n,y:r},m=H(_(o)),v=W(m),p=await i.getDimensions(a),h="y"===m,g=h?"clientHeight":"clientWidth",y=l.reference[v]+l.reference[m]-d[m]-l.floating[v],w=d[m]-l.reference[m],x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a)),b=x?x[g]:0;b&&await (null==i.isElement?void 0:i.isElement(x))||(b=u.floating[g]||l.floating[v]);let R=b/2-p[v]/2-1,E=A(s[h?"top":"left"],R),k=A(s[h?"bottom":"right"],R),C=b-p[v]-k,M=b/2-p[v]/2+(y/2-w/2),L=P(E,A(M,C)),T=!c.arrow&&null!=j(o)&&M!==L&&l.reference[v]/2-(M<E?E:k)-p[v]/2<0,I=T?M<E?M-E:M-C:0;return{[m]:d[m]+I,data:{[m]:L,centerOffset:M-L-I,...T&&{alignmentOffset:I}},reset:T}}}),tr=(e,t,n)=>{let r=new Map,o={platform:e8,...n},l={...o.platform,_c:r};return eq(e,t,{...o,platform:l})};var to="undefined"!=typeof document?o.useLayoutEffect:function(){};function tl(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tl(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!tl(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ti(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tu(e,t){let n=ti(e);return Math.round(t*n)/n}function tc(e){let t=o.useRef(e);return to(()=>{t.current=e}),t}let ta=(e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:l,placement:i,middlewareData:u}=t,c=await eU(t,e);return i===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:l+c.y,data:{...c,placement:i}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},tf=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:l}=t,{mainAxis:i=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=F(e,t),f={x:n,y:r},s=await l.detectOverflow(t,a),d=_(N(o)),m=H(d),v=f[m],p=f[d];if(i){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=v+s[e],r=v-s[t];v=P(n,A(v,r))}if(u){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+s[e],r=p-s[t];p=P(n,A(p,r))}let h=c.fn({...t,[m]:v,[d]:p});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:i,[d]:u}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},ts=(e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:l,middlewareData:i}=t,{offset:u=0,mainAxis:c=!0,crossAxis:a=!0}=F(e,t),f={x:n,y:r}
1,s=_(o),d=H(s),m=f[d],v=f[s],p=F(u,t),h="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){let e="y"===d?"height":"width",t=l.reference[d]-l.floating[e]+h.mainAxis,n=l.reference[d]+l.reference[e]-h.mainAxis;m<t?m=t:m>n&&(m=n)}if(a){var g,y;let e="y"===d?"width":"height",t=eY.has(N(o)),n=l.reference[s]-l.floating[e]+(t&&(null==(g=i.offset)?void 0:g[s])||0)+(t?0:h.crossAxis),r=l.reference[s]+l.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[s])||0)-(t?h.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[d]:m,[s]:v}}}}(e).fn,options:[e,t]}),td=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,l,i;let{placement:u,middlewareData:c,rects:a,initialPlacement:f,platform:s,elements:d}=t,{mainAxis:m=!0,crossAxis:v=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=F(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let x=N(u),b=_(f),R=N(f)===f,E=await (null==s.isRTL?void 0:s.isRTL(d.floating)),k=p||(R||!y?[Y(f)]:function(e){let t=Y(e);return[B(e),t,B(t)]}(f)),C="none"!==g;!p&&C&&k.push(...function(e,t,n,r){let o=j(e),l=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?V:q;return t?q:V;case"left":case"right":return t?z:X;default:return[]}}(N(e),"start"===n,r);return o&&(l=l.map(e=>e+"-"+o),t&&(l=l.concat(l.map(B)))),l}(f,y,g,E));let M=[f,...k],L=await s.detectOverflow(t,w),T=[],A=(null==(r=c.flip)?void 0:r.overflows)||[];if(m&&T.push(L[x]),v){let e=K(u,a,E);T.push(L[e[0]],L[e[1]])}if(A=[...A,{placement:u,overflows:T}],!T.every(e=>e<=0)){let e=((null==(o=c.flip)?void 0:o.index)||0)+1,t=M[e];if(t&&("alignment"!==v||b===_(t)||A.every(e=>_(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(l=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(h){case"bestFit":{let e=null==(i=A.filter(e=>{if(C){let t=_(e.placement);return t===b||"y"===t}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])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=f}if(u!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},tm=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,l,{placement:i,rects:u,platform:c,elements:a}=t,{apply:f=()=>{},...s}=F(e,t),d=await c.detectOverflow(t,s),m=N(i),v=j(i),p="y"===_(i),{width:h,height:g}=u.floating;"top"===m||"bottom"===m?(o=m,l=v===(await (null==c.isRTL?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(l=m,o="end"===v?"top":"bottom");let y=g-d.top-d.bottom,w=h-d.left-d.right,x=A(g-d[o],y),b=A(h-d[l],w),R=!t.middlewareData.shift,E=x,k=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),R&&!v){let e=P(d.left,0),t=P(d.right,0),n=P(d.top,0),r=P(d.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:P(d.left,d.right)):E=g-2*(0!==n||0!==r?n+r:P(d.top,d.bottom))}await f({...t,availableWidth:k,availableHeight:E});let C=await c.getDimensions(a.floating);return h!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},tv=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o,l;let{rects:i,middlewareData:u,placement:c,platform:a,elements:f}=t,{crossAxis:s=!1,alignment:d,allowedPlacements:m=T,autoAlignment:v=!0,...p}=F(e,t),h=void 0!==d||m===T?((l=d||null)?[...m.filter(e=>j(e)===l),...m.filter(e=>j(e)!==l)]:m.filter(e=>N(e)===e)).filter(e=>!l||j(e)===l||!!v&&B(e)!==e):m,g=await a.detectOverflow(t,p),y=(null==(n=u.autoPlacement)?void 0:n.index)||0,w=h[y];if(null==w)return{};let x=K(w,i,await (null==a.isRTL?void 0:a.isRTL(f.floating)));if(c!==w)return{reset:{placement:h[0]}};let b=[g[N(w)],g[x[0]],g[x[1]]],R=[...(null==(r=u.autoPlacement)?void 0:r.overflows)||[],{placement:w,overflows:b}],E=h[y+1];if(E)return{data:{index:y+1,overflows:R},reset:{placement:E}};let k=R.map(e=>{let t=j(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(o=k.filter(e=>e[2].slice(0,j(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||k[0][0];return C!==c?{data:{index:y+1,overflows:R},reset:{placement:C}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},tp=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...l}=F(e,t);switch(o){case"referenceHidden":{let e=eV(await r.detectOverflow(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ez(e)}}}case"escaped":{let e=eV(await r.detectOverflow(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ez(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},th=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:o,platform:l,strategy:i}=t,{padding:u=2,x:c,y:a}=F(e,t),f=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(r.reference))||[]),s=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>G(eX(e)))}(f),d=G(eX(f)),m=U(u),v=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===s.length&&s[0].left>s[1].right&&null!=c&&null!=a)return s.find(e=>c>e.left-m.left&&c<e.right+m.right&&a>e.top-m.top&&a<e.bottom+m.bottom)||d;if(s.length>=2){if("y"===_(n)){let e=s[0],t=s[s.length-1],r="top"===N(n),o=e.top,l=t.bottom,i=r?e.left:t.left,u=r?e.right:t.right;return{top:o,bottom:l,left:i,right:u,width:u-i,height:l-o,x:i,y:o}}let e="left"===N(n),t=P(...s.map(e=>e.right)),r=A(...s.map(e=>e.left)),o=s.filter(n=>e?n.left===r:n.right===t),l=o[0].top,i=o[o.length-1].bottom;return{top:l,bottom:i,left:r,right:t,width:t-r,height:i-l,x:r,y:l}}return d}},floating:r.floating,strategy:i});return o.reference.x!==v.reference.x||o.reference.y!==v.reference.y||o.reference.width!==v.reference.width||o.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},tg=(e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tn({element:n.current,padding:r}).fn(t):{}:n?tn({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function ty(e){let t=o.useRef(void 0),n=o.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return o.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function tw(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}let tx=o.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function tb(e){let{children:t,elementsRef:n,labelsRef:r}=e,[l,i]=o.useState(()=>new Set),u=o.useCallback(e=>{i(t=>new Set(t).add(e))},[]),c=o.useCallback(e=>{i(t=>{let n=new Set(t);return n.delete(e),n})},[]),a=o.useMemo(()=>{let e=new Map;return Array.from(l.keys()).sort(tw).forEach((t,n)=>{e.set(t,n)}),e},[l]);return(0,eW.jsx)(tx.Provider,{value:o.useMemo(()=>({register:u,unregister:c,map:a,elementsRef:n,labelsRef:r}),[u,c,a,n,r]),children:t})}function tR(e){void 0===e&&(e={});let{label:t}=e,{register:n,unregister:r,map:l,elementsRef:i,labelsRef:u}=o.useContext(tx),[c,a]=o.useState(null),f=o.useRef(null),s=o.useCallback(e=>{if(f.current=e,null!==c&&(i.current[c]=e,u)){var n;let r=void 0!==t;u.current[c]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[c,i,u,t]);return ew(()=>{let e=f.current;if(e)return n(e),()=>{r(e)}},[n,r]),ew(()=>{let e=f.current?l.get(f.current):null;null!=e&&a(e)},[l]),o.useMemo(()=>({ref:s,index:null==c?-1:c}),[c,s])}let tE="active",tk="selected",tC="ArrowLeft",tM="ArrowRight",tL="ArrowUp",tT="ArrowDown";function tA(e,t){return"function"==typeof e?e(t):e?o.cloneElement(e,t):(0,eW.jsx)("div",{...t})}let tP=o.createContext({activeIndex:0,onNavigate:()=>{}}),tI=[tC,tM],tS=[tL,tT],tO=[...tI,...tS],tD=o.forwardRef(function(e,t){let{render:n,orientation:r="both",loop:l=!0,rtl:i=!1,cols:u=1,disabledIndices:c,activeIndex:a,onNavigate:f,itemSizes:s,dense:d=!1,...m}
1=e,[v,p]=o.useState(0),h=null!=a?a:v,g=eR(null!=f?f:p),y=o.useRef([]),w=n&&"function"!=typeof n?n.props:{},x=o.useMemo(()=>({activeIndex:h,onNavigate:g}),[h,g]),b=u>1,R={...m,...w,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==m.onKeyDown||m.onKeyDown(e),null==w.onKeyDown||w.onKeyDown(e),function(e){if(!tO.includes(e.key))return;let t=h,n=eC(y,c),o=eM(y,c),a=i?tC:tM,f=i?tM:tC;if(b){let f=s||Array.from({length:y.current.length},()=>({width:1,height:1})),m=eA(f,u,d),v=m.findIndex(e=>null!=e&&!eS(y,e,c)),p=m.reduce((e,t,n)=>null==t||eS(y,t,c)?e:n,-1),g=m[eT({current:m.map(e=>e?y.current[e]:null)},{event:e,orientation:r,loop:l,rtl:i,cols:u,disabledIndices:eI([...("function"!=typeof c?c:null)||y.current.map((e,t)=>eS(y,t,c)?t:void 0),void 0],m),minIndex:v,maxIndex:p,prevIndex:eP(h>o?n:h,f,m,u,e.key===tT?"bl":e.key===a?"tr":"tl")})];null!=g&&(t=g)}let m={horizontal:[a],vertical:[tT],both:[a,tT]}[r],v={horizontal:[f],vertical:[tL],both:[f,tL]}[r],p=b?tO:({horizontal:tI,vertical:tS,both:tO})[r];if(t===h&&[...m,...v].includes(e.key)&&(t=l&&t===o&&m.includes(e.key)?n:l&&t===n&&v.includes(e.key)?o:eL(y,{startingIndex:t,decrement:v.includes(e.key),disabledIndices:c})),t!==h&&!ek(y,t)){var w;e.stopPropagation(),p.includes(e.key)&&e.preventDefault(),g(t),null==(w=y.current[t])||w.focus()}}(e)}};return(0,eW.jsx)(tP.Provider,{value:x,children:(0,eW.jsx)(tb,{elementsRef:y,children:tA(n,R)})})}),tF=o.forwardRef(function(e,t){let{render:n,...r}=e,l=n&&"function"!=typeof n?n.props:{},{activeIndex:i,onNavigate:u}=o.useContext(tP),{ref:c,index:a}=tR(),f=ty([c,t,l.ref]),s=i===a;return tA(n,{...r,...l,ref:f,tabIndex:s?0:-1,"data-active":s?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==l.onFocus||l.onFocus(e),u(a)}})}),tN={...l},tj=!1,tH=0,tW=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tH++,t_=tN.useId||function(){let[e,t]=o.useState(()=>tj?tW():void 0);return ew(()=>{null==e&&t(tW())},[]),o.useEffect(()=>{tj=!0},[]),e},tK=o.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:l,shift:i}},width:u=14,height:c=7,tipRadius:a=0,strokeWidth:f=0,staticOffset:s,stroke:d,d:m,style:{transform:v,...p}={},...h}=e,g=t_(),[y,w]=o.useState(!1);if(ew(()=>{r&&"rtl"===R(r).direction&&w(!0)},[r]),!r)return null;let[x,b]=n.split("-"),E="top"===x||"bottom"===x,k=s;(E&&null!=i&&i.x||!E&&null!=i&&i.y)&&(k=null);let C=2*f,M=C/2,L=u/2*(-(a/8)+1),T=c/2*a/4,A=!!m,P=k&&"end"===b?"bottom":"top",I=k&&"end"===b?"right":"left";k&&y&&(I="end"===b?"left":"right");let S=(null==l?void 0:l.x)!=null?k||l.x:"",O=(null==l?void 0:l.y)!=null?k||l.y:"",D=m||"M0,0 H"+u+(" L"+(u-L))+","+(c-T)+(" Q"+u/2+","+c+" "+L)+","+(c-T)+" Z",F={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[x];return(0,eW.jsxs)("svg",{...h,"aria-hidden":!0,ref:t,width:A?u:u+C,height:u,viewBox:"0 0 "+u+" "+(c>u?c:u),style:{position:"absolute",pointerEvents:"none",[I]:S,[P]:O,[x]:E||A?"100%":"calc(100% - "+C/2+"px)",transform:[F,v].filter(e=>!!e).join(" "),...p},children:[C>0&&(0,eW.jsx)("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:C+ +!m,d:D}),(0,eW.jsx)("path",{stroke:C&&!m?h.fill:"none",d:D}),(0,eW.jsx)("clipPath",{id:g,children:(0,eW.jsx)("rect",{x:-M,y:M*(A?-1:1),width:u+C,height:u})})]})});function tB(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}let tq=o.createContext(null),tV=o.createContext(null),tz=()=>{var e;return(null==(e=o.useContext(tq))?void 0:e.id)||null},tX=()=>o.useContext(tV);function tY(e){let t=t_(),n=tX(),r=tz(),o=e||r;return ew(()=>{if(!t)return;let e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,o]),t}function tU(e){let{children:t,id:n}=e,r=tz();return(0,eW.jsx)(tq.Provider,{value:o.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function tG(e){let{children:t}=e,n=o.useRef([]),r=o.useCallback(e=>{n.current=[...n.current,e]},[]),l=o.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[i]=o.useState(()=>tB());return(0,eW.jsx)(tV.Provider,{value:o.useMemo(()=>({nodesRef:n,addNode:r,removeNode:l,events:i}),[r,l,i]),children:t})}function t$(e){return"data-floating-ui-"+e}function tZ(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let tQ=t$("safe-polygon");function tJ(e,t,n){if(n&&!ey(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function t0(e){return"function"==typeof e?e():e}function t1(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:l,events:i,elements:u}=e,{enabled:c=!0,delay:a=0,handleClose:f=null,mouseOnly:d=!1,restMs:m=0,move:v=!0}=t,p=tX(),h=tz(),g=ex(f),y=ex(a),w=ex(n),x=ex(m),b=o.useRef(),R=o.useRef(-1),E=o.useRef(),k=o.useRef(-1),C=o.useRef(!0),M=o.useRef(!1),L=o.useRef(()=>{}),T=o.useRef(!1),A=eR(()=>{var e;let t=null==(e=l.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});o.useEffect(()=>{if(c)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(tZ(R),tZ(k),C.current=!0,T.current=!1)}},[c,i]),o.useEffect(()=>{if(!c||!g.current||!n)return;function e(e){A()&&r(!1,e,"hover")}let t=ea(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,n,r,c,g,A]);let P=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let o=tJ(y.current,"close",b.current);o&&!E.current?(tZ(R),R.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(tZ(R),r(!1,e,n))},[y,r]),I=eR(()=>{L.current(),E.current=void 0}),S=eR(()=>
1{if(M.current){let e=ea(u.floating).body;e.style.pointerEvents="",e.removeAttribute(tQ),M.current=!1}}),O=eR(()=>!!l.current.openEvent&&["click","mousedown"].includes(l.current.openEvent.type));o.useEffect(()=>{if(c&&s(u.domReference)){let r=u.domReference,l=u.floating;return n&&r.addEventListener("mouseleave",o),v&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),l&&(l.addEventListener("mouseleave",o),l.addEventListener("mouseenter",i),l.addEventListener("mouseleave",a)),()=>{n&&r.removeEventListener("mouseleave",o),v&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),l&&(l.removeEventListener("mouseleave",o),l.removeEventListener("mouseenter",i),l.removeEventListener("mouseleave",a))}}function e(e){if(tZ(R),C.current=!1,d&&!ey(b.current)||t0(x.current)>0&&!tJ(y.current,"open"))return;let t=tJ(y.current,"open",b.current);t?R.current=window.setTimeout(()=>{w.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(O())return void S();L.current();let t=ea(u.floating);if(tZ(k),T.current=!1,g.current&&l.current.floatingContext){n||tZ(R),E.current=g.current({...l.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){S(),I(),O()||P(e,!0,"safe-polygon")}});let r=E.current;t.addEventListener("mousemove",r),L.current=()=>{t.removeEventListener("mousemove",r)};return}"touch"===b.current&&ei(u.floating,e.relatedTarget)||P(e)}function o(e){!O()&&l.current.floatingContext&&(null==g.current||g.current({...l.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){S(),I(),O()||P(e)}})(e))}function i(){tZ(R)}function a(e){O()||P(e,!1)}},[u,c,e,d,v,P,I,S,r,n,w,p,y,g,l,O,x]),ew(()=>{var e,t;if(c&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&A()){M.current=!0;let e=u.floating;if(s(u.domReference)&&e){let n=ea(u.floating).body;n.setAttribute(tQ,"");let r=u.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.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,h,u,p,g,A]),ew(()=>{n||(b.current=void 0,T.current=!1,I(),S())},[n,I,S]),o.useEffect(()=>()=>{I(),tZ(R),tZ(k),S()},[c,u.domReference,I,S]);let D=o.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function o(){C.current||w.current||r(!0,t,"hover")}(!d||ey(b.current))&&!n&&0!==t0(x.current)&&(T.current&&e.movementX**2+e.movementY**2<2||(tZ(k),"touch"===b.current?o():(T.current=!0,k.current=window.setTimeout(o,t0(x.current)))))}}},[d,r,n,w,x]);return o.useMemo(()=>c?{reference:D}:{},[c,D])}let t2=()=>{},t4=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:t2,setState:t2,isInstantPhase:!1}),t5=()=>o.useContext(t4);function t7(e){let{children:t,delay:n,timeoutMs:r=0}=e,[l,i]=o.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),u=o.useRef(null),c=o.useCallback(e=>{i({currentId:e})},[]);return ew(()=>{l.currentId?null===u.current?u.current=l.currentId:l.isInstantPhase||i({isInstantPhase:!0}):(l.isInstantPhase&&i({isInstantPhase:!1}),u.current=null)},[l.currentId,l.isInstantPhase]),(0,eW.jsx)(t4.Provider,{value:o.useMemo(()=>({...l,setState:i,setCurrentId:c}),[l,c]),children:t})}function t9(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:o}=e,{id:l,enabled:i=!0}=t,u=null!=l?l:o,c=t5(),{currentId:a,setCurrentId:f,initialDelay:s,setState:d,timeoutMs:m}=c;return ew(()=>{i&&a&&(d({delay:{open:1,close:tJ(s,"close")}}),a!==u&&r(!1))},[i,u,r,d,a,s]),ew(()=>{function e(){r(!1),d({delay:s,currentId:null})}if(i&&a&&!n&&a===u){if(m){let t=window.setTimeout(e,m);return()=>{clearTimeout(t)}}e()}},[i,n,d,a,u,r,s,m]),ew(()=>{i&&f!==t2&&n&&f(u)},[i,n,f,u]),c}let t3=o.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function t8(e){let{children:t,delay:n,timeoutMs:r=0}=e,l=o.useRef(n),i=o.useRef(n),u=o.useRef(null),c=o.useRef(null),a=o.useRef(-1);return(0,eW.jsx)(t3.Provider,{value:o.useMemo(()=>({hasProvider:!0,delayRef:l,initialDelayRef:i,currentIdRef:u,timeoutMs:r,currentContextRef:c,timeoutIdRef:a}),[r]),children:t})}function t6(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:l}=e,{enabled:i=!0}=t,{currentIdRef:u,delayRef:c,timeoutMs:a,initialDelayRef:f,currentContextRef:s,hasProvider:d,timeoutIdRef:m}
1=o.useContext(t3),[v,p]=o.useState(!1);return ew(()=>{function e(){var e;p(!1),null==(e=s.current)||e.setIsInstantPhase(!1),u.current=null,s.current=null,c.current=f.current}if(i&&u.current&&!n&&u.current===l){if(p(!1),a)return m.current=window.setTimeout(e,a),()=>{clearTimeout(m.current)};e()}},[i,n,l,u,c,a,f,s,m]),ew(()=>{if(!i||!n)return;let e=s.current,t=u.current;s.current={onOpenChange:r,setIsInstantPhase:p},u.current=l,c.current={open:0,close:tJ(f.current,"close")},null!==t&&t!==l?(tZ(m),p(!0),null==e||e.setIsInstantPhase(!0),null==e||e.onOpenChange(!1)):(p(!1),null==e||e.setIsInstantPhase(!1))},[i,n,l,r,u,c,a,f,s,m]),ew(()=>()=>{s.current=null},[s]),o.useMemo(()=>({hasProvider:d,delayRef:c,isInstantPhase:v}),[d,c,v])}let ne=0;function nt(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ne);let l=()=>null==e?void 0:e.focus({preventScroll:n});o?l():ne=requestAnimationFrame(l)}function nn(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?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}let nr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function no(e){return"inert"===e?nr.inert:"aria-hidden"===e?nr["aria-hidden"]:nr.none}let nl=new WeakSet,ni={},nu=0;function nc(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=((null==(r=e[0])?void 0:r.ownerDocument)||document).body;return function(e,t,n,r){let o="data-floating-ui-inert",l=r?"inert":n?"aria-hidden":null,i=e.map(e=>{if(t.contains(e))return e;let n=function e(t){return t?m(t)?t.host:e(t.parentNode):null}(e);return t.contains(n)?n:null}).filter(e=>null!=e),c=new Set,a=new Set(i),f=[];ni[o]||(ni[o]=new WeakMap);let s=ni[o];return i.forEach(function e(t){!(!t||c.has(t))&&(c.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||a.has(t)||[].forEach.call(t.children,t=>{if("script"!==u(t))if(c.has(t))e(t);else{let e=l?t.getAttribute(l):null,n=null!==e&&"false"!==e,r=no(l),i=(r.get(t)||0)+1,u=(s.get(t)||0)+1;r.set(t,i),s.set(t,u),f.push(t),1===i&&n&&nl.add(t),1===u&&t.setAttribute(o,""),!n&&l&&t.setAttribute(l,"inert"===l?"":"true")}})}
1(t),c.clear(),nu++,()=>{f.forEach(e=>{let t=no(l),n=(t.get(e)||0)-1,r=(s.get(e)||0)-1;t.set(e,n),s.set(e,r),n||(!nl.has(e)&&l&&e.removeAttribute(l),nl.delete(e)),r||e.removeAttribute(o)}),--nu||(nr.inert=new WeakMap,nr["aria-hidden"]=new WeakMap,nr.none=new WeakMap,nl=new WeakSet,ni={})}}(e.concat(Array.from(o.querySelectorAll('[aria-live],[role="status"],output'))),o,t,n)}let na={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},nf=o.forwardRef(function(e,t){let[n,r]=o.useState();ew(()=>{J()&&r("button")},[]);let l={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[t$("focus-guard")]:"",style:na};return(0,eW.jsx)("span",{...e,...l})}),ns={clipPath:"inset(50%)",position:"fixed",top:0,left:0},nd=o.createContext(null),nm=t$("portal");function nv(e){void 0===e&&(e={});let{id:t,root:n}=e,r=t_(),l=nh(),[i,u]=o.useState(null),c=o.useRef(null);return ew(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{c.current=null})},[i]),ew(()=>{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(nm,""),e.appendChild(n),c.current=n,u(n)},[t,r]),ew(()=>{if(null===n||!r||c.current)return;let e=n||(null==l?void 0:l.portalNode);e&&!f(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let i=document.createElement("div");i.id=r,i.setAttribute(nm,""),(e=o||e).appendChild(i),c.current=i,u(i)},[t,n,r,l]),i}function np(e){let{children:t,id:n,root:r,preserveTabOrder:l=!0}=e,i=nv({id:n,root:r}),[u,c]=o.useState(null),a=o.useRef(null),f=o.useRef(null),s=o.useRef(null),d=o.useRef(null),m=null==u?void 0:u.modal,v=null==u?void 0:u.open,p=!!u&&!u.modal&&u.open&&l&&!!(r||i);return o.useEffect(()=>{if(i&&l&&!m)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&ej(e)&&("focusin"===e.type?eH:function(e){(0,$.Kr)(e,eO()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(i)}},[i,l,m]),o.useEffect(()=>{i&&(v||eH(i))},[v,i]),(0,eW.jsxs)(nd.Provider,{value:o.useMemo(()=>({preserveTabOrder:l,beforeOutsideRef:a,afterOutsideRef:f,beforeInsideRef:s,afterInsideRef:d,portalNode:i,setFocusManagerState:c}),[l,i]),children:[p&&i&&(0,eW.jsx)(nf,{"data-type":"outside",ref:a,onFocus:e=>{if(ej(e,i)){var t;null==(t=s.current)||t.focus()}else{let e=eN(u?u.domReference:null);null==e||e.focus()}}}),p&&i&&(0,eW.jsx)("span",{"aria-owns":i.id,style:ns}),i&&e_.createPortal(t,i),p&&i&&(0,eW.jsx)(nf,{"data-type":"outside",ref:f,onFocus:e=>{if(ej(e,i)){var t;null==(t=d.current)||t.focus()}else{let t=eF(u?u.domReference:null);null==t||t.focus(),(null==u?void 0:u.closeOnFocusOut)&&(null==u||u.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let nh=()=>o.useContext(nd);function ng(e){return o.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let ny=[];function nw(){ny=ny.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function nx(){nw();let e=ny[ny.length-1];return null==e?void 0:e.deref()}function nb(e,t){var n;if(!t.current.includes("floating")&&!(null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;let r=eO(),o=(0,$.nq)(e,r).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,$.AO)(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===o.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}let nR=o.forwardRef(function(e,t){return(0,eW.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:na})});function nE(e){let{context:t,children:n,disabled:r=!1,order:l=["content"],guards:i=!0,initialFocus:c=0,returnFocus:a=!0,restoreFocus:f=!1,modal:s=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:v=!0,outsideElementsInert:p=!1,getInsideElements:h=()=>[]}=e,{open:g,onOpenChange:y,events:w,dataRef:x,elements:{domReference:b,floating:R}}=t,E=eR(()=>{var e;return null==(e=x.current.floatingContext)?void 0:e.nodeId}),k=eR(h),C="number"==typeof c&&c<0,M=es(b)&&C,L="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,T=!L||i,A=!T||L&&p,P=ex(l),I=ex(c),S=ex(a),O=tX(),D=nh(),F=o.useRef(null),N=o.useRef(null),j=o.useRef(!1),H=o.useRef(!1),W=o.useRef(-1),_=o.useRef(-1),K=null!=D,B=ed(R),q=eR(function(e){return void 0===e&&(e=B),e?(0,$.Kr)(e,eO()):[]}),V=eR(e=>{let t=q(e);return P.current.map(e=>
1b&&"reference"===e?b:B&&"floating"===e?B:t).filter(Boolean).flat()});o.useEffect(()=>{if(r||!s)return;function e(e){if("Tab"===e.key){ei(B,el(ea(B)))&&0===q().length&&!M&&ep(e);let t=V(),n=eu(e);"reference"===P.current[0]&&n===b&&(ep(e),e.shiftKey?nt(t[t.length-1]):nt(t[1])),"floating"===P.current[1]&&n===B&&e.shiftKey&&(ep(e),nt(t[0]))}}let t=ea(B);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,b,B,s,P,M,q,V]),o.useEffect(()=>{if(!r&&R)return R.addEventListener("focusin",e),()=>{R.removeEventListener("focusin",e)};function e(e){let t=eu(e),n=q().indexOf(t);-1!==n&&(W.current=n)}},[r,R,q]),o.useEffect(()=>{if(r||!v)return;function e(){H.current=!0,setTimeout(()=>{H.current=!1})}function t(e){let t=e.relatedTarget,n=e.currentTarget,r=eu(e);queueMicrotask(()=>{let o=E(),l=!(ei(b,t)||ei(R,t)||ei(t,R)||ei(null==D?void 0:D.portalNode,t)||null!=t&&t.hasAttribute(t$("focus-guard"))||O&&(em(O.nodesRef.current,o).find(e=>{var n,r;return ei(null==(n=e.context)?void 0:n.elements.floating,t)||ei(null==(r=e.context)?void 0:r.elements.domReference,t)})||ev(O.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,ed(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===b&&B&&nb(B,P),f&&n!==b&&!(null!=r&&r.isConnected)&&el(ea(B))===ea(B).body){d(B)&&B.focus();let e=W.current,t=q(),n=t[e]||t[t.length-1]||B;d(n)&&n.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(M||!s)&&t&&l&&!H.current&&t!==nx()&&(j.current=!0,y(!1,e,"focus-out"))})}let n=!!(!O&&D);function o(){tZ(_),x.current.insideReactTree=!0,_.current=window.setTimeout(()=>{x.current.insideReactTree=!1})}if(R&&d(b))return b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),R.addEventListener("focusout",t),n&&R.addEventListener("focusout",o,!0),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),R.removeEventListener("focusout",t),n&&R.removeEventListener("focusout",o,!0)}},[r,b,R,B,s,O,D,y,v,f,q,M,E,P,x]);let z=o.useRef(null),X=o.useRef(null),Y=ng([z,null==D?void 0:D.beforeInsideRef]),U=ng([X,null==D?void 0:D.afterInsideRef]);function G(e){return!r&&m&&s?(0,eW.jsx)(nR,{ref:"start"===e?F:N,onClick:e=>y(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}o.useEffect(()=>{var e,t;if(r||!R)return;let n=Array.from((null==D||null==(e=D.portalNode)?void 0:e.querySelectorAll("["+t$("portal")+"]"))||[]),o=[R,null==(t=(O?ev(O.nodesRef.current,E()):[]).find(e=>{var t;return es((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,...n,...k(),F.current,N.current,z.current,X.current,null==D?void 0:D.beforeOutsideRef.current,null==D?void 0:D.afterOutsideRef.current,P.current.includes("reference")||M?b:null].filter(e=>null!=e),l=s||M?nc(o,!A,A):nc(o);return()=>{l()}},[r,b,R,s,P,D,M,T,A,O,E,k]),ew(()=>{if(r||!d(B))return;let e=el(ea(B));queueMicrotask(()=>{let t=V(B),n=I.current,r=("number"==typeof n?t[n]:n.current)||B,o=ei(B,e);C||o||!g||nt(r,{preventScroll:r===B})})},[r,g,B,C,V,I]),ew(()=>{var e;if(r||!B)return;let t=ea(B);function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(j.current=!0),"outside-press"===t)if(r)j.current=!1;else if(eh(n)||eg(n))j.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}e=el(t),nw(),e&&"body"!==u(e)&&(ny.push(new WeakRef(e)),ny.length>20&&(ny=ny.slice(-20))),w.on("openchange",n);let o=t.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,na),K&&b&&b.insertAdjacentElement("afterend",o),()=>{w.off("openchange",n);let e=el(t),r=ei(R,e)||O&&em(O.nodesRef.current,E(),!1).some(t=>{var n;return ei(null==(n=t.context)?void 0:n.elements.floating,e)}),l=function(){if("boolean"==typeof S.current){let e=b||nx();return e&&e.isConnected?e:o}return S.current.current||o}();queueMicrotask(()=>{let n=function(e){let t=eO();return(0,$.AO)(e,t)?e:(0,$.Kr)(e,t)[0]||e}(l);S.current&&!j.current&&d(n)&&(n===e||e===t.body||r)&&n.focus({preventScroll:!0}),o.remove()})}},[r,R,B,S,x,w,O,K,b,E]),o.useEffect(()=>(queueMicrotask(()=>{j.current=!1}),()=>{queueMicrotask(nw)}),[r]),ew(()=>
1{if(!r&&D)return D.setFocusManagerState({modal:s,closeOnFocusOut:v,open:g,onOpenChange:y,domReference:b}),()=>{D.setFocusManagerState(null)}},[r,D,s,g,y,v,b]),ew(()=>{!r&&B&&nb(B,P)},[r,B,P]);let Z=!r&&T&&(!s||!M)&&(K||s);return(0,eW.jsxs)(eW.Fragment,{children:[Z&&(0,eW.jsx)(nf,{"data-type":"inside",ref:Y,onFocus:e=>{if(s){let e=V();nt("reference"===l[0]?e[0]:e[e.length-1])}else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(j.current=!1,ej(e,D.portalNode)){let e=eF(b);null==e||e.focus()}else{var t;null==(t=D.beforeOutsideRef.current)||t.focus()}}}),!M&&G("start"),n,G("end"),Z&&(0,eW.jsx)(nf,{"data-type":"inside",ref:U,onFocus:e=>{if(s)nt(V()[0]);else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(v&&(j.current=!0),ej(e,D.portalNode)){let e=eN(b);null==e||e.focus()}else{var t;null==(t=D.afterOutsideRef.current)||t.focus()}}})]})}let nk=0,nC="--floating-ui-scrollbar-width",nM=()=>{},nL=o.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e;return ew(()=>{if(n)return 1==++nk&&(nM=function(){let e=Z(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,l=n.left?parseFloat(n.left):window.scrollX,i=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(nC,o+"px"),o&&(n[r]=o+"px"),t){var u,c;let e=(null==(u=window.visualViewport)?void 0:u.offsetLeft)||0;Object.assign(n,{position:"fixed",top:-(i-Math.floor((null==(c=window.visualViewport)?void 0:c.offsetTop)||0))+"px",left:-(l-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[r]:""}),n.removeProperty(nC),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(l,i))}}()),()=>{0==--nk&&nM()}},[n]),(0,eW.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})});function nT(e){return d(e.target)&&"BUTTON"===e.target.tagName}function nA(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:l,elements:{domReference:i}}=e,{enabled:u=!0,event:c="click",toggle:a=!0,ignoreMouse:f=!1,keyboardHandlers:s=!0,stickIfOpen:m=!0}=t,v=o.useRef(),p=o.useRef(!1),h=o.useMemo(()=>({onPointerDown(e){v.current=e.pointerType},onMouseDown(e){let t=v.current;0===e.button&&"click"!==c&&(ey(t,!0)&&f||(n&&a&&(!l.current.openEvent||!m||"mousedown"===l.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click"))))},onClick(e){let t=v.current;if("mousedown"===c&&v.current){v.current=void 0;return}ey(t,!0)&&f||(n&&a&&(!l.current.openEvent||!m||"click"===l.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){v.current=void 0,!(e.defaultPrevented||!s||nT(e))&&(" "!==e.key||ef(i)||(e.preventDefault(),p.current=!0),d(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(n&&a?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!s||nT(e)||ef(i))&&" "===e.key&&p.current&&(p.current=!1,n&&a?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}),[l,i,c,f,s,r,n,m,a]);return o.useMemo(()=>u?{reference:h}:{},[u,h])}function nP(e){return null!=e&&null!=e.clientX}function nI(e,t){void 0===t&&(t={});let{open:n,dataRef:r,elements:{floating:l,domReference:i},refs:u}=e,{enabled:a=!0,axis:f="both",x:s=null,y:d=null}=t,m=o.useRef(!1),v=o.useRef(null),[p,h]=o.useState(),[g,y]=o.useState([]),w=eR((e,t)=>{if(!m.current&&(!r.current.openEvent||nP(r.current.openEvent))){var n;let o,l,c;u.setPositionReference((n={x:e,y:t,axis:f,dataRef:r,pointerType:p},o=null,l=null,c=!1,{contextElement:i||void 0,getBoundingClientRect(){var e;let t=(null==i?void 0:i.getBoundingClientRect())||{width:0,height:0,x:0,y:0},r="x"===n.axis||"both"===n.axis,u="y"===n.axis||"both"===n.axis,a=["mouseenter","mousemove"].includes((null==(e=n.dataRef.current.openEvent)?void 0:e.type)||"")&&"touch"!==n.pointerType,f=t.width,s=t.height,d=t.x,m=t.y;return null==o&&n.x&&r&&(o=t.x-n.x),null==l&&n.y&&u&&(l=t.y-n.y),d-=o||0,m-=l||0,f=0,s=0,!c||a?(f="y"===n.axis?t.width:0,s="x"===n.axis?t.height:0,d=r&&null!=n.x?n.x:d,m=u&&null!=n.y?n.y:m):c&&!a&&(s="x"===n.axis?t.height:s,f="y"===n.axis?t.width:f),c=!0,{width:f,height:s,x:d,y:m,top:m,right:d+f,bottom:m+s,left:d}}}))}}),x=eR(e=>{null==s&&null==d&&(n?v.current||y([]):w(e.clientX,e.clientY))}),b=ey(p)?l:n,R=o.useCallback(()=>
1{if(!b||!a||null!=s||null!=d)return;let e=c(l);function t(n){ei(l,eu(n))?(e.removeEventListener("mousemove",t),v.current=null):w(n.clientX,n.clientY)}if(!r.current.openEvent||nP(r.current.openEvent)){e.addEventListener("mousemove",t);let n=()=>{e.removeEventListener("mousemove",t),v.current=null};return v.current=n,n}u.setPositionReference(i)},[b,a,s,d,l,r,u,i,w]);o.useEffect(()=>R(),[R,g]),o.useEffect(()=>{a&&!l&&(m.current=!1)},[a,l]),o.useEffect(()=>{!a&&n&&(m.current=!0)},[a,n]),ew(()=>{a&&(null!=s||null!=d)&&(m.current=!1,w(s,d))},[a,s,d,w]);let E=o.useMemo(()=>{function e(e){let{pointerType:t}=e;h(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:x,onMouseEnter:x}},[x]);return o.useMemo(()=>a?{reference:E}:{},[a,E])}let nS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nO={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nD=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function nF(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:l,dataRef:i}=e,{enabled:u=!0,escapeKey:c=!0,outsidePress:a=!0,outsidePressEvent:f="pointerdown",referencePress:m=!1,referencePressEvent:v="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:g}=t,y=tX(),w=eR("function"==typeof a?a:()=>!1),E="function"==typeof a?w:a,M=o.useRef(!1),{escapeKey:L,outsidePress:T}=nD(h),{escapeKey:A,outsidePress:P}=nD(g),I=o.useRef(!1),S=eR(e=>{var t;if(!n||!u||!c||"Escape"!==e.key||I.current)return;let o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=y?em(y.nodesRef.current,o):[];if(!L&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),O=eR(e=>{var t;let n=()=>{var t;S(e),null==(t=eu(e))||t.removeEventListener("keydown",n)};null==(t=eu(e))||t.addEventListener("keydown",n)}),D=eR(e=>{var t;let n=i.current.insideReactTree;i.current.insideReactTree=!1;let o=M.current;if(M.current=!1,"click"===f&&o||n||"function"==typeof E&&!E(e))return;let u=eu(e),c="["+t$("inert")+"]",a=ea(l.floating).querySelectorAll(c),m=s(u)?u:null;for(;m&&!b(m);){let e=k(m);if(b(e)||!s(e))break;m=e}if(a.length&&s(u)&&!u.matches("html,body")&&!ei(u,l.floating)&&Array.from(a).every(e=>!ei(m,e)))return;if(d(u)&&j){let t=b(u),n=R(u),r=/auto|scroll/,o=t||r.test(n.overflowX),l=t||r.test(n.overflowY),i=o&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,c=l&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,a="rtl"===n.direction,f=c&&(a?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),s=i&&e.offsetY>u.clientHeight;if(f||s)return}let v=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=y&&em(y.nodesRef.current,v).some(t=>{var n;return ec(e,null==(n=t.context)?void 0:n.elements.floating)});if(ec(e,l.floating)||ec(e,l.domReference)||p)return;let h=y?em(y.nodesRef.current,v):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),F=eR(e=>{var t;let n=()=>{var t;D(e),null==(t=eu(e))||t.removeEventListener(f,n)};null==(t=eu(e))||t.addEventListener(f,n)});o.useEffect(()=>{if(!n||!u)return;i.current.__escapeKeyBubbles=L,i.current.__outsidePressBubbles=T;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),I.current=!0}function a(){e=window.setTimeout(()=>{I.current=!1},5*!!x())}let d=ea(l.floating);c&&(d.addEventListener("keydown",A?O:S,A),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",a)),E&&d.addEventListener(f,P?F:D,P);let m=[];return p&&(s(l.domReference)&&(m=C(l.domReference)),s(l.floating)&&(m=m.concat(C(l.floating))),!s(l.reference)&&l.reference&&l.reference.contextElement&&(m=m.concat(C(l.reference.contextElement)))),(m=m.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{c&&(d.removeEventListener("keydown",A?O:S,A),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",a)),E&&d.removeEventListener(f,P?F:D,P),m.forEach(e
1=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,l,c,E,f,n,r,p,u,L,T,S,A,O,D,P,F]),o.useEffect(()=>{i.current.insideReactTree=!1},[i,E,f]);let N=o.useMemo(()=>({onKeyDown:S,...m&&{[nS[v]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==v&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[S,r,m,v]),j=o.useMemo(()=>{function e(e){0===e.button&&(M.current=!0)}return{onKeyDown:S,onMouseDown:e,onMouseUp:e,[nO[f]]:()=>{i.current.insideReactTree=!0}}},[S,f,i]);return o.useMemo(()=>u?{reference:N,floating:j}:{},[u,N,j])}function nN(e){let{open:t=!1,onOpenChange:n,elements:r}=e,l=t_(),i=o.useRef({}),[u]=o.useState(()=>tB()),c=null!=tz(),[a,f]=o.useState(r.reference),s=eR((e,t,r)=>{i.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),d=o.useMemo(()=>({setPositionReference:f}),[]),m=o.useMemo(()=>({reference:a||r.reference||null,floating:r.floating||null,domReference:r.reference}),[a,r.reference,r.floating]);return o.useMemo(()=>({dataRef:i,open:t,onOpenChange:s,elements:m,events:u,floatingId:l,refs:d}),[t,s,m,u,l,d])}function nj(e){void 0===e&&(e={});let{nodeId:t}=e,n=nN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,l=r.elements,[i,u]=o.useState(null),[c,a]=o.useState(null),f=(null==l?void 0:l.domReference)||i,d=o.useRef(null),m=tX();ew(()=>{f&&(d.current=f)},[f]);let v=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:i,floating:u}={},transform:c=!0,whileElementsMounted:a,open:f}
1=e,[s,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=o.useState(r);tl(m,r)||v(r);let[p,h]=o.useState(null),[g,y]=o.useState(null),w=o.useCallback(e=>{e!==E.current&&(E.current=e,h(e))},[]),x=o.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),b=i||p,R=u||g,E=o.useRef(null),k=o.useRef(null),C=o.useRef(s),M=null!=a,L=tc(a),T=tc(l),A=tc(f),P=o.useCallback(()=>{if(!E.current||!k.current)return;let e={placement:t,strategy:n,middleware:m};T.current&&(e.platform=T.current),tr(E.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};I.current&&!tl(C.current,t)&&(C.current=t,e_.flushSync(()=>{d(t)}))})},[m,t,n,T,A]);to(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[f]);let I=o.useRef(!1);to(()=>(I.current=!0,()=>{I.current=!1}),[]),to(()=>{if(b&&(E.current=b),R&&(k.current=R),b&&R){if(L.current)return L.current(b,R,P);P()}},[b,R,P,L,M]);let S=o.useMemo(()=>({reference:E,floating:k,setReference:w,setFloating:x}),[w,x]),O=o.useMemo(()=>({reference:b,floating:R}),[b,R]),D=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=tu(O.floating,s.x),r=tu(O.floating,s.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...ti(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,O.floating,s.x,s.y]);return o.useMemo(()=>({...s,update:P,refs:S,elements:O,floatingStyles:D}),[s,P,S,O,D])}({...e,elements:{...l,...c&&{reference:c}}}),p=o.useCallback(e=>{let t=s(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),v.refs.setReference(t)},[v.refs]),h=o.useCallback(e=>{(s(e)||null===e)&&(d.current=e,u(e)),(s(v.refs.reference.current)||null===v.refs.reference.current||null!==e&&!s(e))&&v.refs.setReference(e)},[v.refs]),g=o.useMemo(()=>({...v.refs,setReference:h,setPositionReference:p,domReference:d}),[v.refs,h,p]),y=o.useMemo(()=>({...v.elements,domReference:f}),[v.elements,f]),w=o.useMemo(()=>({...v,...r,refs:g,elements:y,nodeId:t}),[v,g,y,t,r]);return ew(()=>{r.dataRef.current.floatingContext=w;let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),o.useMemo(()=>({...v,context:w,refs:g,elements:y}),[v,g,y,w])}function nH(){return Z().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&J()}function nW(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:l,dataRef:i,elements:u}=e,{enabled:a=!0,visibleOnly:f=!0}=t,m=o.useRef(!1),v=o.useRef(-1),p=o.useRef(!0);o.useEffect(()=>{if(!a)return;let e=c(u.domReference);function t(){!n&&d(u.domReference)&&u.domReference===el(ea(u.domReference))&&(m.current=!0)}function r(){p.current=!0}function o(){p.current=!1}return e.addEventListener("blur",t),nH()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),nH()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[u.domReference,n,a]),o.useEffect(()=>{if(a)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(m.current=!0)}},[l,a]),o.useEffect(()=>()=>{tZ(v)},[]);let h=o.useMemo(()=>({onMouseLeave(){m.current=!1},onFocus(e){if(m.current)return;let t=eu(e.nativeEvent);if(f&&s(t)){if(nH()&&!e.relatedTarget){if(!p.current&&!ef(t))return}else if(!function(e){if(!e||et())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){m.current=!1;let t=e.relatedTarget,n=e.nativeEvent,o=s(t)&&t.hasAttribute(t$("focus-guard"))&&"outside"===t.getAttribute("data-type");v.current=window.setTimeout(()=>{var e;let l=el(u.domReference?u.domReference.ownerDocument:document);(t||l!==u.domReference)&&(ei(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,l)||ei(u.domReference,l)||o||r(!1,n,"focus"))})}}),[i,u.domReference,r,f]);return o.useMemo(()=>a?{reference:h}:{},[a,h])}function n_(e,t,n){let r=new Map,o="item"===n,l=e;if(o&&e){let{[tE]:t,[tk]:n,...r}=e;l=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...l,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1(t&&Object.entries(t).forEach(t=>{let[n,l]=t;if(!(o&&[tE,tk].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof l){var i;null==(i=r.get(n))||i.push(l),e[n]=function(){for(var e,t=arguments.length,o=Array(t),l=0;l<t;l++)o[l]=arguments[l];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=l}),e),{})}}function nK(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),l=o.useCallback(t=>n_(t,e,"reference"),t),i=o.useCallback(t=>n_(t,e,"floating"),n),u=o.useCallback(t=>n_(t,e,"item"),r);return o.useMemo(()=>({getReferenceProps:l,getFloatingProps:i,getItemProps:u}),[l,i,u])}function nB(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function nq(e,t){return nB(t,e===tL||e===tT,e===tC||e===tM)}function nV(e,t,n){return nB(t,e===tT,n?e===tC:e===tM)||"Enter"===e||" "===e||""===e}function nz(e,t,n){let r=e===tT;return nB(t,n?e===tC:e===tM,r)}function nX(e,t,n,r){let o=e===tL;return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:nB(t,n?e===tM:e===tC,o)}function nY(e,t){let{open:n,onOpenChange:r,elements:l,floatingId:i}=e,{listRef:u,activeIndex:c,onNavigate:a=()=>{},enabled:f=!0,selectedIndex:s=null,allowEscape:m=!1,loop:v=!1,nested:p=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:y="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:x=!0,disabledIndices:b,orientation:R="vertical",parentOrientation:E,cols:k=1,scrollItemIntoView:C=!0,virtualItemRef:M,itemSizes:L,dense:T=!1}=t,A=ex(ed(l.floating)),P=tz(),I=tX();ew(()=>{e.dataRef.current.orientation=R},[e,R]);let S=eR(()=>{a(-1===F.current?null:F.current)}),O=es(l.domReference),D=o.useRef(y),F=o.useRef(null!=s?s:-1),N=o.useRef(null),j=o.useRef(!0),H=o.useRef(S),W=o.useRef(!!l.floating),_=o.useRef(n),K=o.useRef(!1),B=o.useRef(!1),q=ex(b),V=ex(n),z=ex(C),X=ex(s),[Y,U]=o.useState(),[G,$]=o.useState(),Z=eR(()=>{function e(e){if(g){var t;null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=i+"-"+Math.random().toString(16).slice(2,10)),U(e.id),null==I||I.events.emit("virtualfocus",e),M&&(M.current=e)}else nt(e,{sync:K.current,preventScroll:!0})}let t=u.current[F.current],n=B.current;t&&e(t),(K.current?e=>e():requestAnimationFrame)(()=>{let r=u.current[F.current]||t;if(!r)return;t||e(r);let o=z.current;o&&J&&(n||!j.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof o?{block:"nearest",inline:"nearest"}:o))})});ew(()=>{f&&(n&&l.floating?D.current&&null!=s&&(B.current=!0,F.current=s,S()):W.current&&(F.current=-1,H.current()))},[f,n,l.floating,s,S]),ew(()=>{if(f&&n&&l.floating)if(null==c){if(K.current=!1,null!=X.current)return;if(W.current&&(F.current=-1,Z()),(!_.current||!W.current)&&D.current&&(null!=N.current||!0===D.current&&null==N.current)){let e=0,t=()=>{null==u.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(F.current=null==N.current||nV(N.current,R,h)||p?eC(u,q.current):eM(u,q.current),N.current=null,S())};t()}}else ek(u,c)||(F.current=c,Z(),B.current=!1)},[f,n,l.floating,c,X,p,u,R,h,S,Z,q]),ew(()=>{var e;if(!f||l.floating||!I||g||!W.current)return;let t=I.nodesRef.current,n=null==(e=t.find(e=>e.id===P))||null==(e=e.context)?void 0:e.elements.floating,r=el(ea(l.floating)),o=t.some(e=>e.context&&ei(e.context.elements.floating,r));n&&!o&&j.current&&n.focus({preventScroll:!0})},[f,l.floating,I,P,g]),ew(()=>{if(f&&I&&g&&!P)return I.events.on("virtualfocus",e),()=>{I.events.off("virtualfocus",e)};function e(e){$(e.id),M&&(M.current=e)}},[f,I,g,P,M]),ew(()=>{H.current=S,_.current=n,W.current=!!l.floating}),ew(()=>{n||(N.current=null,D.current=y)},[n,y]);let Q=null!=c,J=o.useMemo(()=>{function e(e){if(!V.current)return;let t=u.current.indexOf(e);-1!==t&&F.current!==t&&(F.current=t,S())}return{onFocus(t){let{currentTarget:n}=t;K.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;K.current=!0,B.current=!1,w&&e(n)},onPointerLeave(e){let{pointerType:t}=e;if(j.current&&"touch"!==t&&(K.current=!0,w&&(F.current=-1,S(),!g))){var n;null==(n=A.current)||n.focus({preventScroll:!0})}}}},[V,A,w,u,S,g]),ee=o.useCallback(()=>{var e;return null!=E?E:null==I||null==(e=I.nodesRef.current.find(e=>e.id===P))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[P,I,E]),et=eR(e=>{if(j.current=!1,K.current=!0,229===e.which||!V.current&&e.currentTarget===A.current)return;if(p&&nX(e.key,R,h,k)){nq(e.key,ee())||ep(e),r(!1,e.nativeEvent,"list-navigation"),d(l.domReference)&&(g?null==I||I.events.emit("virtualfocus",l.domReference):l.domReference.focus());return}let t=F.current,o=eC(u,b),i=eM(u,b);if(O||("Home"===e.key&&(ep(e),F.current=o,S()),"End"===e.key&&(ep(e),F.current=i,S())),k>1){let t=L||Array.from({length:u.current.length},()=>({width:1,height:1})),n=eA(t,k,T),r=n.findIndex(e=>
1null!=e&&!eS(u,e,b)),l=n.reduce((e,t,n)=>null==t||eS(u,t,b)?e:n,-1),c=n[eT({current:n.map(e=>null!=e?u.current[e]:null)},{event:e,orientation:R,loop:v,rtl:h,cols:k,disabledIndices:eI([...("function"!=typeof b?b:null)||u.current.map((e,t)=>eS(u,t,b)?t:void 0),void 0],n),minIndex:r,maxIndex:l,prevIndex:eP(F.current>i?o:F.current,t,n,k,e.key===tT?"bl":e.key===(h?tC:tM)?"tr":"tl"),stopEvent:!0})];if(null!=c&&(F.current=c,S()),"both"===R)return}if(nq(e.key,R)){if(ep(e),n&&!g&&el(e.currentTarget.ownerDocument)===e.currentTarget){F.current=nV(e.key,R,h)?o:i,S();return}nV(e.key,R,h)?v?F.current=t>=i?m&&t!==u.current.length?-1:o:eL(u,{startingIndex:t,disabledIndices:b}):F.current=Math.min(i,eL(u,{startingIndex:t,disabledIndices:b})):v?F.current=t<=o?m&&-1!==t?u.current.length:i:eL(u,{startingIndex:t,decrement:!0,disabledIndices:b}):F.current=Math.max(o,eL(u,{startingIndex:t,decrement:!0,disabledIndices:b})),ek(u,F.current)&&(F.current=-1),S()}}),en=o.useMemo(()=>g&&n&&Q&&{"aria-activedescendant":G||Y},[g,n,Q,G,Y]),er=o.useMemo(()=>({"aria-orientation":"both"===R?void 0:R,...!O?en:{},onKeyDown:et,onPointerMove(){j.current=!0}}),[en,et,R,O]),eo=o.useMemo(()=>{function e(e){"auto"===y&&eh(e.nativeEvent)&&(D.current=!0)}function t(e){D.current=y,"auto"===y&&eg(e.nativeEvent)&&(D.current=!0)}return{...en,onKeyDown(e){j.current=!1;let t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),l=nz(e.key,R,h),i=nX(e.key,R,h,k),c=nz(e.key,ee(),h),a=nq(e.key,R),f=(p?c:a)||"Enter"===e.key||""===e.key.trim();if(g&&n){var d,m,v,y,w;let n,r,c=null==I?void 0:I.nodesRef.current.find(e=>null==e.parentId),f=I&&c?(d=I.nodesRef.current,m=c.id,r=-1,!function e(t,o){o>r&&(n=t,r=o),em(d,t).forEach(t=>{e(t.id,o+1)})}(m,0),d.find(e=>e.id===n)):null;if((t||o)&&f&&M){let t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(l||i){let n=(null==(v=f.context)?void 0:v.elements.domReference)===e.currentTarget,r=i&&!n?null==(y=f.context)?void 0:y.elements.domReference:l?u.current.find(e=>(null==e?void 0:e.id)===Y):null;r&&(ep(e),r.dispatchEvent(t),$(void 0))}if((a||o)&&f.context&&f.context.open&&f.parentId&&e.currentTarget!==f.context.elements.domReference){ep(e),null==(w=f.context.elements.domReference)||w.dispatchEvent(t);return}}return et(e)}if(n||x||!t){if(f){let t=nq(e.key,ee());N.current=p&&t?null:e.key}if(p){c&&(ep(e),n?(F.current=eC(u,q.current),S()):r(!0,e.nativeEvent,"list-navigation"));return}a&&(null!=s&&(F.current=s),ep(e),!n&&x?r(!0,e.nativeEvent,"list-navigation"):et(e),n&&S())}},onFocus(){n&&!g&&(F.current=-1,S())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[Y,en,k,et,q,y,u,p,S,r,n,x,R,ee,h,s,I,g,M]);return o.useMemo(()=>f?{reference:eo,floating:er,item:J}:{},[f,eo,er,J])}let nU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function nG(e,t){var n,r;void 0===t&&(t={});let{open:l,elements:i,floatingId:u}=e,{enabled:c=!0,role:a="dialog"}=t,f=t_(),s=(null==(n=i.domReference)?void 0:n.id)||f,d=o.useMemo(()=>{var e;return(null==(e=ed(i.floating))?void 0:e.id)||u},[i.floating,u]),m=null!=(r=nU.get(a))?r:a,v=null!=tz(),p=o.useMemo(()=>"tooltip"===m||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:l?d:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":l?d:void 0,..."listbox"===m&&{role:"combobox"},..."menu"===m&&{id:s},..."menu"===m&&v&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[m,d,v,l,s,a]),h=o.useMemo(()=>{let e={id:d,...m&&{role:m}};return"tooltip"===m||"label"===a?e:{...e,..."menu"===m&&{"aria-labelledby":s}}},[m,d,s,a]),g=o.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:d+"-fui-option"}};switch(a){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,a]);return o.useMemo(()=>c?{reference:p,floating:h,item:g}:{},[c,p,h,g])}let n$=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function nZ(e,t){return"function"==typeof e?e(t):e}function nQ(e,t){void 0===t&&(t={});let{open:n,elements:{floating:r}}=e,{duration:l=250}=t,i=("number"==typeof l?l:l.close)||0,[u,c]=o.useState("unmounted"),a=function(e,t){let[n,r]=o.useState(e);return e&&!n&&r(!0),o.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,i);return a||"close"!==u||c("unmounted"),ew(()=>
1{if(r){if(n){c("initial");let e=requestAnimationFrame(()=>{e_.flushSync(()=>{c("open")})});return()=>{cancelAnimationFrame(e)}}c("close")}},[n,r]),{isMounted:a,status:u}}function nJ(e,t){void 0===t&&(t={});let{initial:n={opacity:0},open:r,close:l,common:i,duration:u=250}=t,c=e.placement,a=c.split("-")[0],f=o.useMemo(()=>({side:a,placement:c}),[a,c]),s="number"==typeof u,d=(s?u:u.open)||0,m=(s?u:u.close)||0,[v,p]=o.useState(()=>({...nZ(i,f),...nZ(n,f)})),{isMounted:h,status:g}=nQ(e,{duration:u}),y=ex(n),w=ex(r),x=ex(l),b=ex(i);return ew(()=>{let e=nZ(y.current,f),t=nZ(x.current,f),n=nZ(b.current,f),r=nZ(w.current,f)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&p(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&p({transitionProperty:Object.keys(r).map(n$).join(","),transitionDuration:d+"ms",...n,...r}),"close"===g){let r=t||e;p({transitionProperty:Object.keys(r).map(n$).join(","),transitionDuration:m+"ms",...n,...r})}},[m,x,y,w,b,d,g,f]),{isMounted:h,styles:v}}function n0(e,t){var n;let{open:r,dataRef:l}=e,{listRef:i,activeIndex:u,onMatch:c,onTypingChange:a,enabled:f=!0,findMatch:s=null,resetMs:d=750,ignoreKeys:m=[],selectedIndex:v=null}=t,p=o.useRef(-1),h=o.useRef(""),g=o.useRef(null!=(n=null!=v?v:u)?n:-1),y=o.useRef(null),w=eR(c),x=eR(a),b=ex(s),R=ex(m);ew(()=>{r&&(tZ(p),y.current=null,h.current="")},[r]),ew(()=>{if(r&&""===h.current){var e;g.current=null!=(e=null!=v?v:u)?e:-1}},[r,v,u]);let E=eR(e=>{e?l.current.typing||(l.current.typing=e,x(e)):l.current.typing&&(l.current.typing=e,x(e))}),k=eR(e=>{function t(e,t,n){let r=b.current?b.current(t,n):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))===0);return r?e.indexOf(r):-1}let n=i.current;if(h.current.length>0&&" "!==h.current[0]&&(-1===t(n,n,h.current)?E(!1):" "===e.key&&ep(e)),null==n||R.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(ep(e),E(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&h.current===e.key&&(h.current="",g.current=y.current),h.current+=e.key,tZ(p),p.current=window.setTimeout(()=>{h.current="",g.current=y.current,E(!1)},d);let o=g.current,l=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],h.current);-1!==l?(w(l),y.current=l):" "!==e.key&&(h.current="",E(!1))}),C=o.useMemo(()=>({onKeyDown:k}),[k]),M=o.useMemo(()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&E(!1)}}),[k,E]);return o.useMemo(()=>f?{reference:C,floating:M}:{},[f,C,M])}function n1(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let n2=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:o,offset:l=0,index:i=0,minItemsVisible:u=4,referenceOverflowThreshold:c=0,scrollRef:a,...f}=F(e,t),{rects:s,platform:d,elements:{floating:m}}=t,v=n.current[i],p=(null==a?void 0:a.current)||m,h=m.clientTop||p.clientTop,g=0!==m.clientTop,y=0!==p.clientTop,w=m===p;if(!v)return{};let x={...t,...await ta(-v.offsetTop-m.clientTop-s.reference.height/2-v.offsetHeight/2-l).fn(t)},b=await d.detectOverflow(n1(x,p.scrollHeight+h+m.clientTop),f),R=await d.detectOverflow(x,{...f,elementContext:"reference"}),E=P(0,b.top),k=x.y+E,C=(p.scrollHeight>p.clientHeight?e=>e:I)(P(0,p.scrollHeight+(g&&w||y?2*h:0)-E-P(0,b.bottom)));if(p.style.maxHeight=C+"px",p.scrollTop=E,o){let e=p.offsetHeight<v.offsetHeight*A(u,n.current.length)-1||R.top>=-c||R.bottom>=-c;e_.flushSync(()=>o(e))}return r&&(r.current=await d.detectOverflow(n1({...x,y:k},p.offsetHeight+h+m.clientTop),f)),{y:k}}});function n4(e,t){let{open:n,elements:r}
1=e,{enabled:l=!0,overflowRef:i,scrollRef:u,onChange:c}=t,a=eR(c),f=o.useRef(!1),s=o.useRef(null),d=o.useRef(null);o.useEffect(()=>{if(!l)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,l=t.scrollHeight-t.clientHeight,u=n<0?-1:1,c=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!o&&n<0?(e.preventDefault(),e_.flushSync(()=>{a(e=>e+Math[c](n,l*u))})):/firefox/i.test(Q())&&(t.scrollTop+=n))}let t=(null==u?void 0:u.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{s.current=t.scrollTop,null!=i.current&&(d.current={...i.current})}),()=>{s.current=null,d.current=null,t.removeEventListener("wheel",e)}},[l,n,r.floating,i,u,a]);let m=o.useMemo(()=>({onKeyDown(){f.current=!0},onWheel(){f.current=!1},onPointerMove(){f.current=!1},onScroll(){let e=(null==u?void 0:u.current)||r.floating;if(i.current&&e&&f.current){if(null!==s.current){let t=e.scrollTop-s.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&e_.flushSync(()=>a(e=>e+t))}requestAnimationFrame(()=>{s.current=e.scrollTop})}}}),[r.floating,a,i,u]);return o.useMemo(()=>l?{floating:m}:{},[l,m])}function n5(e,t){let[n,r]=e,o=!1,l=t.length;for(let e=0,i=l-1;e<l;i=e++){let[l,u]=t[e]||[0,0],[c,a]=t[i]||[0,0];u>=r!=a>=r&&n<=(c-l)*(r-u)/(a-u)+l&&(o=!o)}return o}function n7(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1},l=!1,i=null,u=null,c="undefined"!=typeof performance?performance.now():0,a=e=>{let{x:n,y:a,placement:f,elements:d,onClose:m,nodeId:v,tree:p}=e;return function(e){function h(){tZ(o),m()}if(tZ(o),!d.domReference||!d.floating||null==f||null==n||null==a)return;let{clientX:g,clientY:y}=e,w=[g,y],x="composedPath"in e?e.composedPath()[0]:e.target,b="mouseleave"===e.type,R=nn(d.floating,x),E=nn(d.domReference,x),k=d.domReference.getBoundingClientRect(),C=d.floating.getBoundingClientRect(),M=f.split("-")[0],L=n>C.right-C.width/2,T=a>C.bottom-C.height/2,A=w[0]>=k.x&&w[0]<=k.x+k.width&&w[1]>=k.y&&w[1]<=k.y+k.height,P=C.width>k.width,I=C.height>k.height,S=(P?k:C).left,O=(P?k:C).right,D=(I?k:C).top,F=(I?k:C).bottom;if(R&&(l=!0,!b))return;if(E&&(l=!1),E&&!b){l=!0;return}if(b&&s(e.relatedTarget)&&nn(d.floating,e.relatedTarget)||p&&function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}(p.nodesRef.current,v).length)return;if("top"===M&&a>=k.bottom-1||"bottom"===M&&a<=k.top+1||"left"===M&&n>=k.right-1||"right"===M&&n<=k.left+1)return h();let N=[];switch(M){case"top":N=[[S,k.top+1],[S,C.bottom-1],[O,C.bottom-1],[O,k.top+1]];break;case"bottom":N=[[S,C.top+1],[S,k.bottom-1],[O,k.bottom-1],[O,C.top+1]];break;case"left":N=[[C.right-1,F],[C.right-1,D],[k.left+1,D],[k.left+1,F]];break;case"right":N=[[k.right-1,F],[k.right-1,D],[C.left+1,D],[C.left+1,F]]}if(!n5([g,y],N)){if(l&&!A)return h();if(!b&&r){let t=function(e,t){let n=performance.now(),r=n-c;if(null===i||null===u||0===r)return i=e,u=t,c=n,null;let o=e-i,l=t-u,a=Math.sqrt(o*o+l*l);return i=e,u=t,c=n,a/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}n5([g,y],function(e){let[n,r]=e;switch(M){case"top":{let e=[[C.left,L||P?C.bottom-t:C.top],[C.right,L?P?C.bottom-t:C.top:C.bottom-t]];return[[P?n+t/2:L?n+4*t:n-4*t,r+t+1],[P?n-t/2:L?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[C.left,L||P?C.top+t:C.bottom],[C.right,L?P?C.top+t:C.bottom:C.top+t]];return[[P?n+t/2:L?n+4*t:n-4*t,r-t],[P?n-t/2:L?n+4*t:n-4*t,r-t],...e]}case"left":return[[T||I?C.right-t:C.left,C.top],[T?I?C.right-t:C.left:C.right-t,C.bottom],[n+t+1,I?r+t/2:T?r+4*t:r-4*t],[n+t+1,I?r-t/2:T?r+4*t:r-4*t]];case"right":{let e=[[T||I?C.left+t:C.right,C.top],[T?I?C.left+t:C.right:C.left+t,C.bottom]];return[[n-t,I?r+t/2:T?r+4*t:r-4*t],[n-t,I?r-t/2:T?r+4*t:r-4*t],...e]}}}([n,a]))?!l&&r&&(o.current=window.setTimeout(h,40)):h()}}};return a.__options={blockPointerEvents:n},a}}}]);

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.