vendor: 4,208 bytes, line 1
1import{a as e,n as t}from"./jsx-runtime-C27Mmbu5.js";import{c as n,f as r,g as i,h as a,r as o}from"./useRenderElement-CfcnjXoQ.js";import{C as s,D as c,E as l,T as u,_ as d,b as f,c as p,d as m,f as h,g,h as _,l as v,m as y,o as b,p as x,u as S,v as C,x as w,y as T}from"./button-CorZT9jo.js";import{N as E,P as D,R as O,U as k,X as A,b as j,h as M}from"./DialogTitle-BIrugm-w.js";import{D as N,E as ee,T as te}from"./composite-C6dkzXCj.js";import{_ as P,c as ne,l as re,m as ie}from"./detectBrowser-CNG-N_nU.js";import{a as ae,g as F,h as I,i as oe,l as se,m as L,n as ce,p as le,r as ue,t as de}from"./owner-BRmLY4Cp.js";import{A as R,C as z,D as B,E as V,O as H,S as fe,T as U,_ as pe,a as W,b as G,c as me,d as he,f as K,g as q,h as J,i as ge,j as Y,k as X,l as _e,m as Z,n as ve,o as ye,p as Q,r as be,s as xe,u as Se,v as Ce,w as we,x as Te,y as Ee}from"./inertValue-Y3kXokGP.js";import{r as De}from"./useCompositeListItem-B34fDsuj.js";var $=e(t(),1);function Oe(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=pe(t),s=Ee(o),c=U(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(q(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 ke(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}=Z(t,e),p=we(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=X(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=X(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 Ae=50,je=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ke},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Oe(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<Ae&&(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}=Oe(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Me=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}=Z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=U(r),_=V(o),v=U(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[z(o)]:G(o)),x=p!==`none`;!d&&x&&b.push(...fe(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=Ce(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`&&_!==V(t))||T.every(e=>V(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,374 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=V(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 Ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pe(e){return Y.some(t=>e[t]>=0)}var Fe=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Z(e,t);switch(i){case`referenceHidden`:{let e=Ne(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pe(e)}}}case`escaped`:{let e=Ne(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Pe(e)}}}default:return{}}}}},Ie=new Set([`left`,`top`]);async function Le(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=U(n),s=q(n),c=V(n)===`y`,l=Ie.has(o)?-1:1,u=a&&c?-1:1,d=Z(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 Re=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 Le(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}}}}},ze=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}=Z(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(U(i)),p=Te(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=K(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=K(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}}}}}},Be=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}=Z(e,t),u={x:n,y:r},d=V(i),f=Te(d),p=u[f],m=u[d],h=Z(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=Ie.has(U(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}}}},Ve=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}=Z(e,t),u=await o.detectOverflow(t,l),d=U(i),f=q(i),p=V(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=H(h-u[g],v),x=H(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=B(u.left,0),t=B(u.right,0),n=B(u.top,0),r=B(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:B(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:B(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 He(e){let t=v(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=f(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=R(n)!==a||R(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ue(e){return T(e)?e:e.contextElement}function We(e){let t=Ue(e);if(!f(t))return Q(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=He(t),o=(a?R(n.width):n.width)/r,s=(a?R(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ge=Q(0);function Ke(e){let t=d(e);
vendor: 5,679 bytes, line 1
1return!c()||!t.visualViewport?Ge:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==d(e)?!1:t}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ue(e),o=Q(1);t&&(r?T(r)&&(o=We(r)):o=We(e));let s=qe(a,n,r)?Ke(a):Q(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,f=i.height/o.y;if(a){let e=d(a),t=r&&T(r)?d(r):r,n=e,i=h(n);for(;i&&r&&t!==n;){let e=We(i),t=i.getBoundingClientRect(),r=v(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=a,l+=o,n=d(i),i=h(n)}}return X({width:u,height:f,x:c,y:l})}function Ye(e,t){let n=y(e).scrollLeft;return t?t.left+n:Je(m(e)).left+n}function Xe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ye(e,n),y:n.top+t.scrollTop}}function Ze(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=m(r),c=t?l(t.floating):!1;if(r===o||c&&a)return n;let u={scrollLeft:0,scrollTop:0},d=Q(1),p=Q(0),h=f(r);if((h||!h&&!a)&&((x(r)!==`body`||s(o))&&(u=y(r)),h)){let e=Je(r);d=We(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}let g=o&&!h&&!a?Xe(o,u):Q(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+p.x+g.x,y:n.y*d.y-u.scrollTop*d.y+p.y+g.y}}function Qe(e){return Array.from(e.getClientRects())}function $e(e){let t=m(e),n=y(e),r=e.ownerDocument.body,i=B(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=B(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ye(e),s=-n.scrollTop;return v(r).direction===`rtl`&&(o+=B(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var et=25;function tt(e,t){let n=d(e),r=m(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=c();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,l=i.offsetTop)}let u=Ye(r);if(u<=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<=et&&(a-=o)}else u<=et&&(a+=u);return{width:a,height:o,x:s,y:l}}function nt(e,t){let n=Je(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=f(e)?We(e):Q(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function rt(e,t,n){let r;if(t===`viewport`)r=tt(e,n);else if(t===`document`)r=$e(m(e));else if(T(t))r=nt(t,n);else{let n=Ke(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return X(r)}function it(e,t){let n=g(e);return n===t||!T(n)||w(n)?!1:v(n).position===`fixed`||it(n,t)}function at(e,t){let n=t.get(e);if(n)return n;let r=_(e,[],!1).filter(e=>T(e)&&x(e)!==`body`),i=null,a=v(e).position===`fixed`,o=a?g(e):e;for(;T(o)&&!w(o);){let t=v(o),n=C(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||s(o)&&!n&&it(e,o))?r=r.filter(e=>e!==o):i=t,o=g(o)}return t.set(e,r),r}function ot(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?l(t)?[]:at(t,this._c):[].concat(n),r],o=rt(t,a[0],i),s=o.top,c=o.right,u=o.bottom,d=o.left;for(let e=1;e<a.length;e++){let n=rt(t,a[e],i);s=B(n.top,s),c=H(n.right,c),u=H(n.bottom,u),d=B(n.left,d)}return{width:c-d,height:u-s,x:d,y:s}}function st(e){let{width:t,height:n}=He(e);return{width:t,height:n}}function ct(e,t,n){let r=f(t),i=m(t),a=n===`fixed`,o=Je(e,!0,a,t),c={scrollLeft:0,scrollTop:0},l=Q(0);function u(){l.x=Ye(i)}if(r||!r&&!a)if((x(t)!==`body`||s(i))&&(c=y(t)),r){let e=Je(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&u();a&&!r&&i&&u();let d=i&&!r&&!a?Xe(i,c):Q(0);return{x:o.left+c.scrollLeft-l.x-d.x,y:o.top+c.scrollTop-l.y-d.y,width:o.width,height:o.height}}function lt(e){return v(e).position===`static`}function ut(e,t){if(!f(e)||v(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return m(e)===n&&(n=n.ownerDocument.body),n}function dt(e,t){let n=d(e);if(l(e))return n;if(!f(e)){let t=g(e);for(;t&&!w(t);){if(T(t)&&!lt(t))return t;t=g(t)}return n}let r=ut(e,t);for(;r&&u(r)&<(r);)r=ut(r,t);return r&&w(r)&<(r)&&!C(r)?n:r||S(e)||n}var ft=async function(e){let t=this.getOffsetParent||dt,n=this.getDimensions,r=await n(e.floating);return{reference:ct(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pt(e){return v(e).direction===`rtl`}var mt={convertOffsetParentRelativeRectToViewportRelativeRect:Ze,getDocumentElement:m,getClippingRect:ot,getOffsetParent:dt,getElementRects:ft,getClientRects:Qe,getDimensions:st,getScale:We,isElement:T,isRTL:pt};function ht(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gt(e,t){let n=null,r,i=m(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=J(d),h=J(i.clientWidth-(u+f)),g=J(i.clientHeight-(d+p)),_=J(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:B(0,H(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&&!ht(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 _t(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=Ue(e),u=i||a?[...l?_(l):[],...t?_(t):[]]:[];
vendor: 3,462 bytes, line 1
1u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?gt(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?Je(e):null;c&&g();function g(){let t=Je(e);h&&!ht(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 vt=Re,yt=ze,bt=Me,xt=Ve,St=Fe,Ct=Be,wt=(e,t,n)=>{let r=new Map,i={platform:mt,...n},a={...i.platform,_c:r};return je(e,t,{...i,platform:a})},Tt=e(i(),1),Et=typeof document<`u`?$.useLayoutEffect:function(){};function Dt(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(!Dt(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)&&!Dt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ot(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kt(e,t){let n=Ot(e);return Math.round(t*n)/n}function At(e){let t=$.useRef(e);return Et(()=>{t.current=e}),t}function jt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=$.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=$.useState(r);Dt(f,r)||p(r);let[m,h]=$.useState(null),[g,_]=$.useState(null),v=$.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=$.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=$.useRef(null),C=$.useRef(null),w=$.useRef(u),T=c!=null,E=At(c),D=At(i),O=At(l),k=$.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),wt(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Dt(w.current,t)&&(w.current=t,Tt.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Et(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=$.useRef(!1);Et(()=>(A.current=!0,()=>{A.current=!1}),[]),Et(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=$.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=$.useMemo(()=>({reference:b,floating:x}),[b,x]),N=$.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=kt(M.floating,u.x),r=kt(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ot(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return $.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Mt=(e,t)=>{let n=vt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nt=(e,t)=>{let n=yt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pt=(e,t)=>({fn:Ct(e).fn,options:[e,t]}),Ft=(e,t)=>{let n=bt(e);return{name:n.name,fn:n.fn,options:[e,t]}},It=(e,t)=>
1{let n=xt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lt=(e,t)=>{let n=St(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Rt(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=ne(),o=E()!=null,s=a(()=>new j({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new M,floatingId:i,nested:o,noEmit:!1})).current;return b(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=T(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),s.update(e)},[t,i,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=o,s.context.noEmit=!1,s}function zt(e={}){let{nodeId:t,externalTree:n}=e,r=Rt(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=$.useState(null),c=$.useRef(null),l=D(n);b(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=jt({...e,elements:{...a,...o&&{reference:o}}}),d=$.useCallback(e=>{let t=T(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=$.useState(null),[m,h]=$.useState(null);i.useSyncedValue(`referenceElement`,f),i.useSyncedValue(`domReferenceElement`,T(f)?f:null),i.useSyncedValue(`floatingElement`,m);let g=$.useCallback(e=>{(T(e)||e===null)&&(c.current=e,p(e)),(T(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!T(e))&&u.refs.setReference(e)},[u.refs,p]),_=$.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),v=$.useMemo(()=>({...u.refs,setReference:g,setFloating:_,setPositionReference:d,domReference:c}),[u.refs,g,_,d]),y=$.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=$.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:v,elements:y,nodeId:t,rootStore:i}),[u,v,y,t,i,x,S]);return b(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),$.useMemo(()=>({...u,context:C,refs:v,elements:y,rootStore:i}),[u,v,y,C,i])}var Bt=`Escape`;function Vt(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Ht(e,t){return Vt(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Ut(e,t,n){return Vt(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Wt(e,t,n){return Vt(t,n?e===L:e===I,e===le)}function Gt(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Bt:Vt(t,n?e===I:e===L,e===F)}function Kt(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:m=!1,loopFocus:h=!1,nested:g=!1,rtl:_=!1,virtual:v=!1,focusItemOnOpen:y=`auto`,focusItemOnHover:x=!0,openOnArrowKeyDown:S=!0,disabledIndices:C=void 0,orientation:w=`vertical`,parentOrientation:T,cols:A=1,id:j,resetOnPointerLeave:M=!0,externalTree:ne}=t,F=k(oe(i)),I=E(),L=D(ne);b(()=>{o.current.orientation=w},[o,w]);let le=se(a),R=$.useRef(y),z=$.useRef(d??-1),B=$.useRef(null),V=$.useRef(!0),H=p(e=>{l(z.current===-1?null:z.current,e)}),fe=$.useRef(H),U=$.useRef(!!i),pe=$.useRef(r),G=$.useRef(!1),K=$.useRef(!1),q=k(C),J=k(r),Y=k(d),X=k(M),_e=p(()=>{function e(e){v?L?.events.emit(`virtualfocus`,e):O(e,{sync:G.current,preventScroll:!0})}let t=s.current[z.current],n=K.current;t&&e(t),(G.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[z.current]||t;r&&(t||e(r),Q&&(n||!V.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});b(()=>{u&&(r&&i?(z.current=d??-1,R.current&&d!=null&&(K.current=!0,H())):U.current&&(z.current=-1,fe.current()))},[u,r,i,d,H]),b(()=>{if(u){if(!r){G.current=!1;return}if(i)if(c==null){if(G.current=!1,Y.current!=null)return;if(U.current&&(z.current=-1,_e()),(!pe.current||!U.current)&&R.current&&(B.current!=null||R.current===!0&&B.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(z.current=B.current==null||Ut(B.current,w,_)||g?me(s):xe(s),B.current=null,H())};t()}}else Se(s,c)||(z.current=c,_e(),K.current=!1)}},[u,r,i,c,Y,g,s,w,_,H,_e,q]),b(()=>{if(!u||i||!L||v||!U.current)return;let e=L.nodesRef.current,t=e.find(e=>e.id===I)?.context?.elements.floating,n=ce(de(i)),r=e.some(e=>e.context&&ue(e.context.elements.floating,n));t&&!r&&V.current&&t.focus({preventScroll:!0})},[u,i,L,I,v]),b(()=>{fe.current=H,pe.current=r,U.current=!!i}),b(()=>{r||(B.current=null,R.current=y)},[r,y]);let Z=c!=null,Q=$.useMemo(()=>{function e(e){if(!J.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&z.current!==t&&(z.current=t,H(e))}return{onFocus(t){G.current=!0,e(t)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(t){G.current=!0,K.current=!1,x&&e(t)},onPointerLeave(e){if(!J.current||!V.current||e.pointerType===`touch`)return;G.current=!0;let t=e.relatedTarget;if(!(!x||s.current.includes(t))&&X.current&&(O(null,{sync:!0}),z.current=-1,H(e),!v)){let e=F.current,t=ce(de(e));e&&ue(e,t)&&e.focus({preventScroll:!0})}}}},[J,F,x,s,H,X,v]),Ce=$.useCallback(()=>T??L?.nodesRef.current.find(e=>e.id===I)?.context?.dataRef?.current.orientation,[I,L,T]),we=p(e=>{if(V.current=!1,G.current=!0,e.which===229||!J.current&&e.currentTarget===F.current)return;if(g&&Gt(e.key,w,_,A)){Ht(e.key,Ce())||N(e),n.setOpen(!1,re(P,e.nativeEvent)),f(a)&&(v?L?.events.emit(`virtualfocus`,a):a.focus());return}
1let t=z.current,i=me(s,C),o=xe(s,C);if(le||(e.key===`Home`&&(N(e),z.current=i,H(e)),e.key===`End`&&(N(e),z.current=o,H(e))),A>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=ve(t,A,!1),r=n.findIndex(e=>e!=null&&!he(s,e,C)),a=n.reduce((e,t,n)=>t!=null&&!he(s,t,C)?n:e,-1),c=n[ye({current:n.map(e=>e==null?null:s.current[e])},{event:e,orientation:w,loopFocus:h,rtl:_,cols:A,disabledIndices:W([...(typeof C==`function`?null:C)||s.current.map((e,t)=>he(s,t,C)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:ge(z.current>o?i:z.current,t,n,A,e.key===`ArrowDown`?`bl`:e.key===(_?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(z.current=c,H(e)),w===`both`)return}if(Ht(e.key,w)){if(N(e),r&&!v&&ce(e.currentTarget.ownerDocument)===e.currentTarget){z.current=Ut(e.key,w,_)?i:o,H(e);return}Ut(e.key,w,_)?h?t>=o?m&&t!==s.current.length?z.current=-1:(G.current=!1,z.current=i):z.current=be(s,{startingIndex:t,disabledIndices:C}):z.current=Math.min(o,be(s,{startingIndex:t,disabledIndices:C})):h?t<=i?m&&t!==-1?z.current=s.current.length:(G.current=!1,z.current=o):z.current=be(s,{startingIndex:t,decrement:!0,disabledIndices:C}):z.current=Math.max(i,be(s,{startingIndex:t,decrement:!0,disabledIndices:C})),Se(s,z.current)&&(z.current=-1),H(e)}}),Te=$.useMemo(()=>v&&r&&Z&&{"aria-activedescendant":`${j}-${c}`},[v,r,Z,j,c]),Ee=$.useMemo(()=>({"aria-orientation":w===`both`?void 0:w,...le?{}:Te,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!v){let t=ae(e.nativeEvent);if(t&&!ue(F.current,t))return;N(e),n.setOpen(!1,re(ie,e.nativeEvent)),f(a)&&a.focus();return}we(e)},onPointerMove(){V.current=!0}}),[Te,we,F,w,le,n,r,v,a]),De=$.useMemo(()=>{function e(e){y===`auto`&&te(e.nativeEvent)&&(R.current=!v)}function t(e){R.current=y,y===`auto`&&ee(e.nativeEvent)&&(R.current=!0)}return{onKeyDown(e){let t=n.select(`open`);V.current=!1;let r=e.key.startsWith(`Arrow`),i=Wt(e.key,Ce(),_),a=Ht(e.key,w),o=(g?i:a)||e.key===`Enter`||e.key.trim()===``;if(v&&t)return we(e);if(!(!t&&!S&&r)){if(o){let t=Ht(e.key,Ce());B.current=g&&t?null:e.key}if(g){i&&(N(e),t?(z.current=me(s,q.current),H(e)):n.setOpen(!0,re(P,e.nativeEvent,e.currentTarget)));return}a&&(Y.current!=null&&(z.current=Y.current),N(e),!t&&S?n.setOpen(!0,re(P,e.nativeEvent,e.currentTarget)):we(e),t&&H(e))}},onFocus(e){n.select(`open`)&&!v&&(z.current=-1,H(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[we,q,y,s,g,H,n,S,w,Ce,_,Y,v]),Oe=$.useMemo(()=>({...Te,...De}),[Te,De]);return $.useMemo(()=>u?{reference:Oe,floating:Ee,item:Q,trigger:De}:{},[u,Oe,Ee,De,Q])}function qt(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,m=A(),h=$.useRef(``),g=$.useRef(f??s??-1),_=$.useRef(null);b(()=>{!i&&f!==null||(m.clear(),_.current=null,h.current!==``&&(h.current=``))},[i,f,m]),b(()=>{i&&h.current===``&&(g.current=f??s??-1)},[i,f,s]);let v=p(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),y=p(e=>{function t(e){let t=o?.current[e];return!t||_e(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n<e.length;n+=1){let r=(i+n)%e.length;if(!(!e[r]?.toLocaleLowerCase().startsWith(a)||!t(r)))return r}return-1}let r=a.current;if(h.current.length>0&&e.key===` `&&(N(e),v(!0)),h.current.length>0&&h.current[0]!==` `&&n(r,h.current)===-1&&e.key!==` `&&v(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(N(e),v(!0));let l=h.current===``;l&&(g.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&h.current===e.key&&(h.current=``,g.current=_.current),h.current+=e.key,m.start(d,()=>{h.current=``,g.current=_.current,v(!1)});let u=((l?f??s??-1:g.current)??0)+1,p=n(r,h.current,u);p===-1?e.key!==` `&&(h.current=``,v(!1)):(c?.(p),_.current=p)}),x=p(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=ue(r,t),o=ue(i,t);a||o||(m.clear(),h.current=``,g.current=_.current,v(!1))}),S=$.useMemo(()=>({onKeyDown:y,onBlur:x}),[y,x]),C=$.useMemo(()=>({onKeyDown:y,onBlur:x}),[y,x]);return $.useMemo(()=>u?{reference:S,floating:C}:{},[u,S,C])}function Jt(e){let t=e.getBoundingClientRect(),n=window.getComputedStyle(e,`::before`),r=window.getComputedStyle(e,`::after`);if(!(n.content!==`none`||r.content!==`none`))return t;let i=parseFloat(n.width)||0,a=parseFloat(n.height)||0,o=parseFloat(r.width)||0,s=parseFloat(r.height)||0,c=Math.max(t.width,i,o),l=Math.max(t.height,a,s),u=c-t.width,d=l-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-d/2,bottom:t.bottom+d/2}}var Yt=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,offsetParent:d=`real`}=Z(e,t)||{};if(l==null)return{};let f=we(u),p={x:n,y:r},m=pe(i),h=Ee(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=K(k,j,A),N=!c.arrow&&q(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,ee=N?j<k?j-k:j-A:0;return{[m]:p[m]+ee,data:{[m]:M,centerOffset:j-M-ee,...N&&{alignmentOffset:ee}},reset:N}}}),Xt=(e,t)=>
1({...Yt(e),options:[e,t]}),Zt={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Lt().fn(e)).data?.referenceHidden||a}}}},Qt={sideX:`left`,sideY:`top`},$t={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=d(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Qt};let u=await a.getOffsetParent?.(i),f={width:0,height:0};if(o===`fixed`&&c?.visualViewport)f={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=de(i);f={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(f=await a.getDimensions(u));let p=U(s),m=t,h=n;p===`left`&&(m=f.width-(t+r.width)),p===`top`&&(h=f.height-(n+r.height));let g=p===`left`?`right`:Qt.sideX,_=p===`top`?`bottom`:Qt.sideY;return{x:m,y:h,data:{sideX:g,sideY:_}}}};function en(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function tn(e,t,n){let{rects:r,placement:i}=e;return{side:en(t,U(i),n),align:q(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function nn(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:x=!1,externalTree:S}=e,[C,w]=$.useState(null);!h&&C!==null&&w(null);let T=g.side||`flip`,E=g.align||`flip`,D=g.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,A=p(O),j=O?A:t,M=k(t),N=De()===`rtl`,ee=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],te=a===`center`?ee:`${ee}-${a}`,P=c,ne=+(r===`bottom`),re=+(r===`top`),ie=+(r===`right`),ae=+(r===`left`);typeof P==`number`?P={top:P+ne,right:P+ae,bottom:P+re,left:P+ie}:P&&={top:(P.top||0)+ne,right:(P.right||0)+ae,bottom:(P.bottom||0)+re,left:(P.left||0)+ie};let F={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},I=$.useRef(null),oe=k(i),se=k(o),L=[Mt(e=>{let t=tn(e,r,N),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,N,r])],ce=E===`none`&&T!==`shift`,le=!ce&&(l||_||T===`shift`),ue=T===`none`?null:Ft({...F,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&T===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),R=ce?null:Nt(e=>{let t=de(e.elements.floating).documentElement;return{...F,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:le,limiter:l||_?void 0:Pt(e=>{if(!I.current)return{};let{width:t,height:n}=I.current.getBoundingClientRect(),r=V(U(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[F,l,_,P,E]);T===`shift`||E===`shift`||a===`center`?L.push(R,ue):L.push(ue,R),L.push(It({...F,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=window.devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Xt(()=>({element:I.current||document.createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=U(a),l=V(c),u=I.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(tn(e,r,N)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,le&&l===`y`&&b?S:x),{}}},Zt,y),b(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[h,m]);let z=$.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:B,elements:H,x:fe,y:pe,middlewareData:W,update:G,placement:me,context:he,isPositioned:K,floatingStyles:J}=zt({rootContext:m,placement:te,middleware:L,strategy:n,whileElementsMounted:f?void 0:(...e)=>_t(...e,z),nodeId:v,externalTree:S}),{sideX:ge,sideY:Y}
1=W.adaptiveOrigin||Qt,X=K?n:`fixed`,_e=$.useMemo(()=>{let e=y?{position:X,[ge]:fe,[Y]:pe}:{position:X,...J};return K||(e.opacity=0),e},[y,X,ge,fe,Y,pe,J,K]),Z=$.useRef(null);b(()=>{if(!h)return;let e=M.current,t=typeof e==`function`?e():e,n=(rn(t)?t.current:t)||null;n!==Z.current&&(B.setPositionReference(n),Z.current=n)},[h,B,j,M]),$.useEffect(()=>{if(!h)return;let e=M.current;typeof e!=`function`&&rn(e)&&e.current!==Z.current&&(B.setPositionReference(e.current),Z.current=e.current)},[h,B,j,M]),$.useEffect(()=>{if(f&&h&&H.domReference&&H.floating)return _t(H.domReference,H.floating,G,z)},[f,h,H,G,z]);let ve=U(me),ye=en(r,ve,N),Q=q(me)||`center`,be=!!W.hide?.referenceHidden;b(()=>{x&&h&&K&&w(ve)},[x,h,K,ve]);let xe=$.useMemo(()=>({position:`absolute`,top:W.arrow?.y,left:W.arrow?.x}),[W.arrow]),Se=W.arrow?.centerOffset!==0;return $.useMemo(()=>({positionerStyles:_e,arrowStyles:xe,arrowRef:I,arrowUncentered:Se,side:ye,align:Q,physicalSide:ve,anchorHidden:be,refs:B,context:he,isPositioned:K,update:G}),[_e,xe,I,Se,ye,Q,ve,be,B,he,K,G])}function rn(e){return e!=null&&`current`in e}function an(e){return e===`starting`?o:n}var on=$.createContext(void 0);function sn(e){let t=$.useContext(on);if(t===void 0&&!e)throw Error(r(69));return t}export{Jt as a,Rt as c,$t as i,mt as l,an as n,qt as o,nn as r,Kt as s,sn as t};
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.