1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a342ec8c-ec66-5932-8815-b33e5815fed1")}catch(e){}}(); 3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`d67118247fd4c6cd14976b17c5b313d268ac5186`}}catch{}})();import{i as e,s as t,t as n}from"./react-C8RDpAiq.js";import{t as r}from"./react-dom-B2w462Tc.js";import{t as i}from"./jsx-runtime-BorPB8V4.js";import{t as a}from"./utils-yBjjnQ60.js";import{t as o}from"./Info.es-CTgi3cmM.js";import{c as s,o as c,s as l,t as u}from"./useStableCallback-Coa4aCBe.js";import{c as d,d as f,i as p,t as m,u as h}from"./useRenderElement-CSM4L_Ka.js";import{t as g}from"./useIsoLayoutEffect-B2-z8ExV.js";import{n as _,t as v}from"./as-child-vG4fMCbV.js";import{A as y,Ct as b,F as x,G as S,H as C,O as w,P as T,R as E,St as D,T as O,W as k,_ as A,a as j,at as M,b as N,c as ee,ct as te,d as ne,g as re,h as P,l as ie,lt as ae,mt as oe,n as se,o as ce,ot as F,q as le,r as ue,rt as de,s as fe,u as pe,v as me,w as he,x as ge,xt as _e}from"./popupStateMapping-BIH_c8Ik.js";import{t as ve}from"./useOnMount-B6me7Qk2.js";import{a as I,o as ye,t as be}from"./engine-74asrNKq.js";import{n as L,r as R,t as xe}from"./shadowDom-CIpjLHV4.js";import{_ as Se,a as Ce,c as we,p as Te,t as z,v as B,y as Ee}from"./createBaseUIEventDetails-_zHbcazj.js";import{t as V}from"./addEventListener-CWAblIb-.js";import{t as H}from"./useValueAsRef-DhoaYxa6.js";import{i as De,t as Oe}from"./useOpenChangeComplete-XVMXCTSX.js";import{t as ke}from"./owner-BHuQBLtg.js";import{n as Ae,t as je}from"./useBaseUiId-0ounmOQ5.js";import{t as Me}from"./DirectionContext-z0kKNTgm.js";var Ne=t(r(),1),U=i(),W=t(n(),1),Pe=W.createContext(void 0);function Fe(e){let t=W.useContext(Pe);if(t===void 0&&!e)throw Error(d(72));return t}function Ie(e,t){return t!=null&&!oe(t)?0:typeof e==`function`?e():e}function Le(e,t,n){let r=Ie(e,n);return typeof r==`number`?r:r?.[t]}function Re(e){return typeof e==`function`?e():e}function ze(e,t){return t||e===`click`||e===`mousedown`}function Be(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Ve=W.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new I,currentIdRef:{current:null},currentContextRef:{current:null}});function He(e,t){e.current=t.current}function Ue(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=W.useRef(n),a=W.useRef(n),o=W.useRef(null),s=W.useRef(null),c=ye();return g(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:Le(i.current,`open`),close:Le(n,`close`)}},[n,o,i,a]),(0,U.jsx)(Ve.Provider,{value:W.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function We(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=W.useContext(Ve),[f,p]=W.useState(!1),m=W.useRef(n),h=W.useRef(!1);return g(()=>{m.current=n},[n]),g(()=>()=>{h.current=!0},[]),g(()=>{function e(){h.current||p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),g(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:Le(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,z(Te))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),g(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,He(o,c),d.clear()}},[l,a,o,i,c,d]),W.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}var Ge=Math.min,Ke=Math.max;
3function qe(e,t,n){return Ke(e,Ge(t,n))}function Je(e,t){return typeof e==`function`?e(t):e}function Ye(e){return e.split(`-`)[0]}function Xe(e){return e.split(`-`)[1]}function Ze(e){return e===`x`?`y`:`x`}function Qe(e){return e===`y`?`height`:`width`}function $e(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function et(e){return Ze($e(e))}function tt(e){return{top:0,right:0,bottom:0,left:0,...e}}function nt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:tt(e)}function rt(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function it(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function at(e){return e!=null&&e.clientX!=null}function ot(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),l=i.context.dataRef,d=W.useRef(!1),f=W.useRef(null),[p,m]=W.useState(),[h,g]=W.useState([]),_=u(e=>{i.set(`positionReference`,e)}),v=u((e,t,n)=>{d.current||(!l.current.openEvent||at(l.current.openEvent))&&i.set(`positionReference`,it(n??s,{x:e,y:t,axis:r,dataRef:l,pointerType:p}))}),y=u(e=>{a?f.current||(v(e.clientX,e.clientY,e.currentTarget),g([])):v(e.clientX,e.clientY,e.currentTarget)}),b=oe(p)?o:a;W.useEffect(()=>{if(!n){_(s);return}if(!b)return;function e(){f.current?.(),f.current=null}let t=c(o);function r(t){let n=R(t);L(o,n)?e():v(t.clientX,t.clientY)}return!l.current.openEvent||at(l.current.openEvent)?f.current=V(t,`mousemove`,r):_(s),e},[b,n,o,l,s,i,v,_,h]),W.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),W.useEffect(()=>{n&&!o&&(d.current=!1)},[n,o]),W.useEffect(()=>{!n&&a&&(d.current=!0)},[n,a]);let x=W.useMemo(()=>{function e(e){m(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:y,onMouseEnter:y}},[y]);return W.useMemo(()=>n?{reference:x,trigger:x}:{},[n,x])}var st=[`top`,`right`,`bottom`,`left`],ct=Math.min,G=Math.max,lt=Math.round,ut=Math.floor,K=e=>({x:e,y:e}),dt={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ft(e,t,n){return G(e,ct(t,n))}function pt(e,t){return typeof e==`function`?e(t):e}function mt(e){return e.split(`-`)[0]}function ht(e){return e.split(`-`)[1]}function gt(e){return e===`x`?`y`:`x`}function _t(e){return e===`y`?`height`:`width`}function q(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function vt(e){return gt(q(e))}function yt(e,t,n){n===void 0&&(n=!1);let r=ht(e),i=vt(e),a=_t(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ot(o)),[o,Ot(o)]}function bt(e){let t=Ot(e);return[xt(e),t,xt(t)]}function xt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var St=[`left`,`right`],Ct=[`right`,`left`],wt=[`top`,`bottom`],Tt=[`bottom`,`top`];function Et(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ct:St:t?St:Ct;case`left`:case`right`:return t?wt:Tt;default:return[]}}function Dt(e,t,n,r){let i=ht(e),a=Et(mt(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(xt)))),a}function Ot(e){let t=mt(e);return dt[t]+e.slice(t.length)}function kt(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function At(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:kt(e)}function jt(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Mt(e,t,n){let{reference:r,floating:i}=e,a=q(t),o=vt(t),s=_t(o),c=mt(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}}let m=ht(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Nt(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}=pt(t,e),p=At(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=jt(await i.getClippingRect
vendor: 4,608 bytes, line 3
3({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=jt(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 Pt=50,Ft=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Nt},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Mt(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<Pt&&(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}=Mt(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},It=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}=pt(e,t)||{};if(l==null)return{};let d=At(u),f={x:n,y:r},p=vt(i),m=_t(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ct(d[_],T),D=ct(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=ft(E,k,O),j=!c.arrow&&ht(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Lt=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}=pt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=mt(r),_=q(o),v=mt(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ot(o)]:bt(o)),x=p!==`none`;!d&&x&&b.push(...Dt(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=yt(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`||_===q(t)||T.every(e=>q(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=q(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}if(r!==n)return{reset:{placement:n}}}return{}}}};function Rt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zt(e){return st.some(t=>e[t]>=0)}var Bt=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pt(e,t);switch(i){case`referenceHidden`:{let e=Rt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:zt(e)}}}case`escaped`:{let e=Rt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:zt(e)}}}default:return{}}}}},Vt=new Set([`left`,`top`]);async function Ht(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mt(n),s=ht(n),c=q(n)===`y`,l=Vt.has(o)?-1:1,u=a&&c?-1:1,d=pt(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
3:{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 Ut=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 Ht(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}}}}},Wt=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}=pt(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=q(i),p=gt(f),m=u[p],h=u[f],g=(e,t)=>ft(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Gt=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}=pt(e,t),u={x:n,y:r},d=q(i),f=gt(d),p=u[f],m=u[d],h=pt(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};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=Vt.has(mt(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}}}},Kt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=pt(e,t),c=await i.detectOverflow(t,s),l=mt(n),u=ht(n),d=q(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ct(p-c[m],g),y=ct(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*G(c.left,c.right):S=p-2*G(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function qt(){return typeof window<`u`}function Jt(e){return Yt(e)?(e.nodeName||``).toLowerCase():`#document`}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){return((Yt(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Yt(e){return qt()?e instanceof Node||e instanceof J(e).Node:!1}function X(e){return qt()?e instanceof Element||e instanceof J(e).Element:!1}function Z(e){return qt()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function Xt(e){return!qt()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function Zt(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Qt(e){return/^(table|td|th)$/.test(Jt(e))}function $t(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var en=/transform|translate|scale|rotate|perspective|filter/,tn=/paint|layout|strict|content/,nn=e=>!!e&&e!==`none`,rn;function an(e){let t=X(e)?Q(e):e;return nn(t.transform)||nn(t.translate)||nn(t.scale)||nn(t.rotate)||nn(t.perspective)||!sn()&&(nn(t.backdropFilter)||nn(t.filter))||en.test(t.willChange||``)||tn.test(t.contain||``)}function on(e){let t=un(e);for(;Z(t)&&!cn(t);){if(an(t))return t;if($t(t))return null;t=un(t)}return null}function sn(){return rn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),rn}function cn(e){return/^(html|body|#document)$/.test(Jt(e))}function Q(e){return J(e).getComputedStyle(e)}function ln(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function un(e){if(Jt(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xt(e)&&e.host||Y(e);return Xt(t)?t.host:t}function dn(e){let t=un(e);return cn(t)?(e.ownerDocument||e).body:Z(t)&&Zt(t)?t:dn(t)}function fn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=dn(e),i=r===e.ownerDocument?.body,a=J(r);
vendor: 6,443 bytes, line 3
3if(i){let e=pn(a);return t.concat(a,a.visualViewport||[],Zt(r)?r:[],e&&n?fn(e):[])}return t.concat(r,fn(r,[],n))}function pn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mn(e){let t=Q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Z(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=lt(n)!==a||lt(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function hn(e){return X(e)?e:e.contextElement}function gn(e){let t=hn(e);if(!Z(t))return K(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mn(t),o=(a?lt(n.width):n.width)/r,s=(a?lt(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var _n=K(0);function vn(e){let t=J(e);return!sn()||!t.visualViewport?_n:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=hn(e),o=K(1);t&&(r?X(r)&&(o=gn(r)):o=gn(e));let s=yn(a,n,r)?vn(a):K(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=J(a),t=r&&X(r)?J(r):r,n=e,i=pn(n);for(;i&&r&&t!==n;){let e=gn(i),t=i.getBoundingClientRect(),r=Q(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,d*=e.y,c+=a,l+=o,n=J(i),i=pn(n)}}return jt({width:u,height:d,x:c,y:l})}function xn(e,t){let n=ln(e).scrollLeft;return t?t.left+n:bn(Y(e)).left+n}function Sn(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-xn(e,n),y:n.top+t.scrollTop}}function Cn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Y(r),s=t?$t(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=K(1),u=K(0),d=Z(r);if((d||!d&&!a)&&((Jt(r)!==`body`||Zt(o))&&(c=ln(r)),d)){let e=bn(r);l=gn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Sn(o,c):K(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function wn(e){return Array.from(e.getClientRects())}function Tn(e){let t=Y(e),n=ln(e),r=e.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+xn(e),s=-n.scrollTop;return Q(r).direction===`rtl`&&(o+=G(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var En=25;function Dn(e,t){let n=J(e),r=Y(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=sn();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=xn(r);if(l<=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<=En&&(a-=o)}else l<=En&&(a+=l);return{width:a,height:o,x:s,y:c}}function On(e,t){let n=bn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Z(e)?gn(e):K(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function kn(e,t,n){let r;if(t===`viewport`)r=Dn(e,n);else if(t===`document`)r=Tn(Y(e));else if(X(t))r=On(t,n);else{let n=vn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return jt(r)}function An(e,t){let n=un(e);return n===t||!X(n)||cn(n)?!1:Q(n).position===`fixed`||An(n,t)}function jn(e,t){let n=t.get(e);if(n)return n;let r=fn(e,[],!1).filter(e=>X(e)&&Jt(e)!==`body`),i=null,a=Q(e).position===`fixed`,o=a?un(e):e;for(;X(o)&&!cn(o);){let t=Q(o),n=an(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Zt(o)&&!n&&An(e,o))?r=r.filter(e=>e!==o):i=t,o=un(o)}return t.set(e,r),r}function Mn(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?$t(t)?[]:jn(t,this._c):[].concat(n),r],o=kn(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=kn(t,a[e],i);s=G(n.top,s),c=ct(n.right,c),l=ct(n.bottom,l),u=G(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Nn(e){let{width:t,height:n}=mn(e);return{width:t,height:n}}function Pn(e,t,n){let r=Z(t),i=Y(t),a=n===`fixed`,o=bn(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=K(0);function l(){c.x=xn(i)}if(r||!r&&!a){if((Jt(t)!==`body`||Zt(i))&&(s=ln(t)),r){let e=bn(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l()}a&&!r&&i&&l();let u=i&&!r&&!a?Sn(i,s):K(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Fn(e){return Q(e).position===`static`}function In(e,t){if(!Z(e)||Q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function Ln(e,t){let n=J(e);if($t(e))return n;if(!Z(e)){let t=un(e);for(;t&&!cn(t);){if(X(t)&&!Fn(t))return t;t=un(t)}return n}let r=In(e,t);for(;r&&Qt(r)&&Fn(r);)r=In(r,t);return r&&cn(r)&&Fn(r)&&!an(r)?n:r||on(e)||n}var Rn=async function(e){let t=this.getOffsetParent||Ln,n=this.getDimensions,r=await n(e.floating);return{reference:Pn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zn(e){return Q(e).direction===`rtl`}var Bn={convertOffsetParentRelativeRectToViewportRelativeRect:Cn,getDocumentElement:Y,getClippingRect:Mn,getOffsetParent:Ln,getElementRects:Rn,getClientRects:wn,getDimensions:Nn,getScale:gn,isElement:X,isRTL:zn};function Vn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hn(e,t){let n=null,r,i=Y(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=ut(d),h=ut(i.clientWidth-(u+f)),g=ut(i.clientHeight-(d+p)),_=ut(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:G(0,ct(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&&!Vn(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 Un(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=hn(e),u=i||a?[...l?fn(l):[],...t?fn(t):[]]:[];
vendor: 2,601 bytes, line 3
3u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Hn(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?bn(e):null;c&&g();function g(){let t=bn(e);h&&!Vn(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 Wn=Ut,Gn=Wt,Kn=Lt,qn=Kt,Jn=Bt,Yn=Gt,Xn=(e,t,n)=>{let r=new Map,i={platform:Bn,...n},a={...i.platform,_c:r};return Ft(e,t,{...i,platform:a})},Zn=typeof document<`u`?W.useLayoutEffect:function(){};function Qn(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(!Qn(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)&&!Qn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function $n(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function er(e,t){let n=$n(e);return Math.round(t*n)/n}function tr(e){let t=W.useRef(e);return Zn(()=>{t.current=e}),t}function nr(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]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=W.useState(r);Qn(f,r)||p(r);let[m,h]=W.useState(null),[g,_]=W.useState(null),v=W.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=W.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=W.useRef(null),C=W.useRef(null),w=W.useRef(u),T=c!=null,E=tr(c),D=tr(i),O=tr(l),k=W.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Xn(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Qn(w.current,t)&&(w.current=t,Ne.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Zn(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=W.useRef(!1);Zn(()=>(A.current=!0,()=>{A.current=!1}),[]),Zn(()=>
3{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=W.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=W.useMemo(()=>({reference:b,floating:x}),[b,x]),N=W.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=er(M.floating,u.x),r=er(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...$n(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return W.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var rr=(e,t)=>{let n=Wn(e);return{name:n.name,fn:n.fn,options:[e,t]}},ir=(e,t)=>{let n=Gn(e);return{name:n.name,fn:n.fn,options:[e,t]}},ar=(e,t)=>({fn:Yn(e).fn,options:[e,t]}),or=(e,t)=>{let n=Kn(e);return{name:n.name,fn:n.fn,options:[e,t]}},sr=(e,t)=>{let n=qn(e);return{name:n.name,fn:n.fn,options:[e,t]}},cr=(e,t)=>{let n=Jn(e);return{name:n.name,fn:n.fn,options:[e,t]}};function lr(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Ae(),a=T()!=null,o=f(()=>new he({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new ie,floatingId:i,syncOnly:!1,nested:a})).current;return g(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=l(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function ur(e={}){let{nodeId:t,externalTree:n}=e,r=lr(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),u=i.useState(`floatingId`),[d,f]=W.useState(null),[p,m]=W.useState(void 0),[h,_]=W.useState(void 0),v=W.useRef(null),y=x(n),b=W.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),S=nr({...e,elements:{...b,...d&&{reference:d}}}),C=l(p)?p:null,w=h===void 0?i.state.floatingElement:h;i.useSyncedValue(`referenceElement`,p??null),i.useSyncedValue(`domReferenceElement`,p===void 0?s:C),i.useSyncedValue(`floatingElement`,w);let T=W.useCallback(e=>{let t=l(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),S.refs.setReference(t)},[S.refs]),E=W.useCallback(e=>{(l(e)||e===null)&&(v.current=e,m(e)),(l(S.refs.reference.current)||S.refs.reference.current===null||e!==null&&!l(e))&&S.refs.setReference(e)},[S.refs,m]),D=W.useCallback(e=>{_(e),S.refs.setFloating(e)},[S.refs]),O=W.useMemo(()=>({...S.refs,setReference:E,setFloating:D,setPositionReference:T,domReference:v}),[S.refs,E,D,T]),k=W.useMemo(()=>({...S.elements,domReference:s}),[S.elements,s]),A=W.useMemo(()=>({...S,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:u,refs:O,elements:k,nodeId:t,rootStore:i}),[S,O,k,t,i,c,u]);return g(()=>{s&&(v.current=s)},[s]),g(()=>{i.context.dataRef.current.floatingContext=A;let e=y?.nodesRef.current.find(e=>e.id===t);e&&(e.context=A)}),W.useMemo(()=>({...S,context:A,refs:O,elements:k,rootStore:i}),[S,O,k,A,i])}var dr=_e&&be;function fr(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,u=W.useRef(!1),d=W.useRef(null),f=W.useRef(!0),p=ye();W.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=c(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&s(e)&&e===xe(ke(e))&&(u.current=!0)}function a(){f.current=!0}function o(){f.current=!1}return de(V(t,`blur`,r),dr&&V(t,`keydown`,a,!0),dr&&V(t,`pointerdown`,o,!0))},[i,n]),W.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);l(e)&&(d.current=e,u.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let m=W.useMemo(()=>{function e(){u.current=!1,d.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(u.current){if(d.current===n)return;e()}let a=R(t.nativeEvent);if(l(a)){if(dr&&!t.relatedTarget){if(!f.current&&!te(a))return}else if(!ae(a))return}let o=F(t.relatedTarget,i.context.triggerElements),{nativeEvent:s,currentTarget:c}=t,m=typeof r==`function`?r():r;if(i.select(`open`)&&o||m===0||m===void 0){i.setOpen(!0,z(Se,s,c));return}p.start(m,()=>{u.current||i.setOpen(!0,z(Se,s,c))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=l(n)&&n.hasAttribute(S(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;p.start(0,()=>{let e=i.select(`domReferenceElement`),t=xe(ke(e));(n||t!==e)&&(L(o.current.floatingContext?.refs.floating.current,t)||L(e,t)||a||F(n??t,i.context.triggerElements)||i.setOpen(!1,z(Se,r)))})}}},[o,r,i,p]);return W.useMemo(()=>n?{reference:m,trigger:m}:{},[n,m])}var pr=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new I,this.restTimeout=new I,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},mr=new WeakMap;function hr(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&mr.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),mr.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function gr(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=mr.get(n);a&&a!==e&&hr(a),hr(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,mr.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function _r(e){let t=e.context.dataRef.current,n=f(()=>t.hoverInteractionState??pr.create()).current;return t.hoverInteractionState||=n,ve(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function vr(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.use
3State(`domReferenceElement`),{dataRef:d}=a.context,f=x(),p=T(),m=_r(a),h=ye(),_=u(()=>ze(d.current.openEvent?.type,m.interactedInside)),v=u(()=>Be(d.current.openEvent?.type)),y=u(()=>{hr(m)});g(()=>{o||(m.pointerType=void 0,m.restTimeoutPending=!1,m.interactedInside=!1,y())},[o,m,y]),W.useEffect(()=>y,[y]),g(()=>{if(n&&o&&m.handleCloseOptions?.blockPointerEvents&&v()&&l(c)&&s){let e=c,t=s,n=ke(s),r=f?.nodesRef.current.find(e=>e.id===p)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=m.pointerEventsScopeElement===t?null:m.pointerEventsScopeElement,a=r===t?null:r,o=m.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return gr(m,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{y()}}},[n,o,c,s,m,v,f,p,y]),W.useEffect(()=>{if(!n)return;function e(){return!!(f&&p&&le(f.nodesRef.current,p).length>0)}function t(e){let t=Le(r,`close`,m.pointerType),n=()=>{a.setOpen(!1,z(B,e)),f?.events.emit(`floating.closed`,e)};t?m.openChangeTimeout.start(t,n):(m.openChangeTimeout.clear(),n())}function o(e){let t=R(e);if(!M(t)){m.interactedInside=!1;return}m.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){m.openChangeTimeout.clear(),h.clear(),f?.events.off(`floating.closed`,g),y()}function u(n){if(e()&&f){f.events.on(`floating.closed`,g);return}if(F(n.relatedTarget,a.context.triggerElements))return;let r=d.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(f&&r&&l(o)&&le(f.nodesRef.current,r,!1).some(e=>L(e.context?.elements.floating,o)))){if(m.handler){m.handler(n);return}y(),v()&&!_()&&t(n)}}function g(t){f&&p&&!e()&&h.start(0,()=>{f.events.off(`floating.closed`,g),a.setOpen(!1,z(B,t)),f.events.emit(`floating.closed`,t)})}let b=s;return de(b&&V(b,`mouseenter`,c),b&&V(b,`mouseleave`,u),b&&V(b,`pointerdown`,o,!0),()=>{f?.events.off(`floating.closed`,g)})},[n,s,a,d,r,i,v,_,y,m,f,p,h])}var yr={current:null};function br(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=yr,externalTree:d,isActiveTrigger:f=!0,getHandleCloseContext:p,isClosing:m,shouldOpen:h}=t,g=`rootStore`in e?e.rootStore:e,{dataRef:_,events:v}=g.context,y=x(d),b=_r(g),S=W.useRef(!1),C=H(i),w=H(r),T=H(o),E=H(n),D=H(h),O=H(m),k=u(()=>ze(_.current.openEvent?.type,b.interactedInside)),A=u(()=>D.current?.()!==!1),j=u((e,t,n)=>{let r=g.context.triggerElements;if(r.hasElement(t))return!e||!L(e,t);if(!l(n))return!1;let i=n;return r.hasMatchingElement(e=>L(e,i))&&(!e||!L(e,i))}),M=u(()=>{b.handler&&=(ke(g.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),N=u(()=>{hr(b)});return f&&(b.handleCloseOptions=C.current?.__options),W.useEffect(()=>M,[M]),W.useEffect(()=>{if(!n)return;function e(e){e.open?S.current=!1:(S.current=e.reason===B,M(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return v.on(`openchange`,e),()=>{v.off(`openchange`,e)}},[n,v,b,M]),W.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=Le(w.current,`close`,b.pointerType);n?b.openChangeTimeout.start(n,()=>{g.setOpen(!1,z(B,e)),y?.events.emit(`floating.closed`,e)}):t&&(b.openChangeTimeout.clear(),g.setOpen(!1,z(B,e)),y?.events.emit(`floating.closed`,e))}let t=c.current??(f?g.select(`domReferenceElement`):null);if(!l(t))return;function r(e){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,a&&!oe(b.pointerType))return;let t=Re(T.current),n=Le(w.current,`open`,b.pointerType),r=R(e),i=e.currentTarget??null,o=g.select(`domReferenceElement`),s=i;if(l(r)&&!g.context.triggerElements.hasElement(r)){for(let e of g.context.triggerElements.elements())if(L(e,r)){s=e;break}}l(i)&&l(o)&&!g.context.triggerElements.hasElement(i)&&L(i,o)&&(s=o);let c=s!=null&&j(o,s,r),u=g.select(`open`),d=O.current?.()??g.select(`transitionStatus`)===`ending`,f=!u&&d&&S.current,p=!c&&l(s)&&l(o)&&L(o,s)&&f,m=t>0&&!n,h=c&&(u||f)||p,_=!u||c;if(h){A()&&g.setOpen(!0,z(B,e,s));return}m||(n?b.openChangeTimeout.start(n,()=>{_&&A()&&g.setOpen(!0,z(B,e,s))}):_&&A()&&g.setOpen(!0,z(B,e,s)))}function i(t){if(k()){N();return}M();let n=g.select(`domReferenceElement`),r=ke(n);b.restTimeout.clear(),b.restTimeoutPending=!1;let i=_.current.floatingContext??p?.();if(!F(t.relatedTarget,g.context.triggerElements)){if(C.current&&i){g.select(`open`)||b.openChangeTimeout.clear();let n=c.current;b.handler=C.current({...i,tree:y,x:t.clientX,y:t.clientY,onClose(){N(),M(),E.current&&!k()&&n===g.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,b.handler),b.handler(t);return}(b.pointerType!==`touch`||!L(g.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?de(V(t,`mousemove`,r,{once:!0}),V(t,`mouseenter`,r),V(t,`mouseleave`,i)):de(V(t,`mouseenter`,r),V(t,`mouseleave`,i))},[M,N,_,w,g,n,C,b,f,j,k,a,s,T,c,y,E,p,O,A]),W.useMemo(()=>
3{if(!n)return;function e(e){b.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=g.select(`domReferenceElement`),i=g.select(`open`),o=j(r,n,e.target);if(a&&!oe(b.pointerType))return;if(i&&o&&b.handleCloseOptions?.blockPointerEvents){let e=g.select(`floatingElement`);if(e){let t=b.handleCloseOptions?.getScope?.()??n.ownerDocument.body;gr(b,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=Re(T.current);if(i&&!o||s===0||!o&&b.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;b.restTimeout.clear();function c(){if(b.restTimeoutPending=!1,k())return;let e=g.select(`open`);!b.blockMouseMove&&(!e||o)&&A()&&g.setOpen(!0,z(B,t,n))}b.pointerType===`touch`?Ne.flushSync(()=>{c()}):o&&i?c():(b.restTimeoutPending=!0,b.restTimeout.start(s,c))}}},[n,b,k,j,a,g,T,A])}var xr=.1,Sr=xr*xr,$=.5;function Cr(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function wr(e,t,n,r,i,a,o,s,c,l){let u=!1;return Cr(e,t,n,r,i,a)&&(u=!u),Cr(e,t,i,a,o,s)&&(u=!u),Cr(e,t,o,s,c,l)&&(u=!u),Cr(e,t,c,l,n,r)&&(u=!u),u}function Tr(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Er(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Dr(e={}){let{blockPointerEvents:t=!1}=e,n=new I,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],u=!1,d=null,f=null,p=typeof performance<`u`?performance.now():0;function m(e,t){let n=performance.now(),r=n-p;if(d===null||f===null||r===0)return d=e,f=t,p=n,!1;let i=e-d,a=t-f,o=i*i+a*a,s=r*r*Sr;return d=e,f=t,p=n,o<s}function h(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,d=i.floating;if(!a||!d||c==null||e==null||t==null)return;let{clientX:f,clientY:p}=r,g=R(r),_=r.type===`mouseleave`,v=L(d,g),y=L(a,g);if(v&&(u=!0,!_))return;if(y&&(u=!1,!_)){u=!0;return}if(_&&l(r.relatedTarget)&&L(d,r.relatedTarget))return;function b(){return!!(s&&le(s.nodesRef.current,o).length>0)}function x(){b()||h()}if(b())return;let S=a.getBoundingClientRect(),C=d.getBoundingClientRect(),w=e>C.right-C.width/2,T=t>C.bottom-C.height/2,E=C.width>S.width,D=C.height>S.height,O=(E?S:C).left,k=(E?S:C).right,A=(D?S:C).top,j=(D?S:C).bottom;if(c===`top`&&t>=S.bottom-1||c===`bottom`&&t<=S.top+1||c===`left`&&e>=S.right-1||c===`right`&&e<=S.left+1){x();return}let M=!1;switch(c){case`top`:M=Er(f,p,O,S.top+1,k,C.bottom-1);break;case`bottom`:M=Er(f,p,O,C.top+1,k,S.bottom-1);break;case`left`:M=Er(f,p,C.right-1,j,S.left+1,A);break;case`right`:M=Er(f,p,S.right-1,j,C.left+1,A)}if(M)return;if(u&&!Tr(f,p,S)){x();return}if(!_&&m(f,p)){x();return}let N=!1;switch(c){case`top`:{let n=E?$/2:$*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t+$+1,o=w||E?C.bottom-$:C.top,s=w?E?C.bottom-$:C.top:C.bottom-$;N=wr(f,p,r,a,i,a,C.left,o,C.right,s);break}case`bottom`:{let n=E?$/2:$*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t-$,o=w||E?C.top+$:C.bottom,s=w?E?C.top+$:C.bottom:C.top+$;N=wr(f,p,r,a,i,a,C.left,o,C.right,s);break}case`left`:{let n=D?$/2:$*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e+$+1,o=T||D?C.right-$:C.left,s=T?D?C.right-$:C.left:C.right-$;N=wr(f,p,o,C.top,s,C.bottom,a,r,a,i);break}case`right`:{let n=D?$/2:$*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e-$,o=T||D?C.left+$:C.right,s=T?D?C.left+$:C.right:C.left+$;N=wr(f,p,a,r,a,i,o,C.top,s,C.bottom);break}}N?u||n.start(40,x):x()}};return r.__options={...e,blockPointerEvents:t},r}var Or={...ee,disabled:w(e=>e.disabled),instantType:w(e=>e.instantType),isInstantPhase:w(e=>e.isInstantPhase),trackCursorAxis:w(e=>e.trackCursorAxis),disableHoverablePopup:w(e=>e.disableHoverablePopup),lastOpenChangeReason:w(e=>e.openChangeReason),closeOnClick:w(e=>e.closeOnClick),closeDelay:w(e=>e.closeDelay),hasViewport:w(e=>e.hasViewport)},kr=class e extends O{constructor(e,t,n=!1){let r=new ie,i={...Ar(),...e};i.floatingRootContext=fe(r,t,n),super(i,{popupRef:W.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},Or)}setOpen=(e,t)=>{ne(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,z(Ee,e))}static useStore(t,n){return N(t,(t,r)=>new e(n,t,r)).store}};function Ar(){return{...ce(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var jr=D(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTr
3iggerId:d=null,children:f}=e,p=kr.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});re(p,r,n,d),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,_=p.useState(`activeTriggerId`),v=p.useState(`mounted`),y=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),P(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:x}=A(h,p),S=p.useState(`isInstantPhase`),C=p.useState(`instantType`),w=p.useState(`lastOpenChangeReason`),T=W.useRef(null);g(()=>{m&&t&&p.setOpen(!1,z(Ce))},[m,t,p]),g(()=>{x===`ending`&&w===`none`||x!==`ending`&&S?(C!==`delay`&&(T.current=C),p.set(`instantType`,`delay`)):T.current!==null&&(p.set(`instantType`,T.current),T.current=null)},[x,S,w,C,p]),g(()=>{h&&(_??p.set(`payload`,void 0))},[p,_,h]);let E=W.useCallback(()=>{p.setOpen(!1,z(we))},[p]);W.useImperativeHandle(o,()=>({unmount:b,close:E}),[b,E]);let D=h||v||!t&&a!==`none`;return(0,U.jsxs)(Pe.Provider,{value:p,children:[D&&(0,U.jsx)(Mr,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:y}):f]})});function Mr({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=y(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=ot(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=W.useMemo(()=>h(a.reference,i.reference),[a.reference,i.reference]),s=W.useMemo(()=>h(a.trigger,i.trigger),[a.trigger,i.trigger]),c=W.useMemo(()=>h(pe,a.floating,i.floating),[a.floating,i.floating]);return me(e,{activeTriggerProps:o,inactiveTriggerProps:s,popupProps:c}),null}var Nr=W.createContext(void 0);function Pr(){return W.useContext(Nr)}var Fr=function(e){return e[e.popupOpen=se.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Ir=`data-base-ui-tooltip-trigger`;function Lr(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(l(n))return n}}let t=e.target;return l(t)?t:null}function Rr(e){let t=e;for(;t;){if(t.hasAttribute(Ir))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&l(n.host)?n.host:null}return null}var zr=b(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:f,...p}=e,h=Fe(!0),g=a?.store??h;if(!g)throw Error(d(82));let _=je(f),v=g.useState(`isTriggerActive`,_),y=g.useState(`isOpenedByTrigger`,_),b=g.useState(`floatingRootContext`),x=W.useRef(null),S=c??600,C=u??0,{registerTrigger:w,isMountedByThisTrigger:T}=ge(_,x,g,{payload:o,closeOnClick:l,closeDelay:C}),E=Pr(),{delayRef:D,isInstantPhase:O,hasProvider:k}=We(b,{open:y}),A=_r(b);g.useSyncedValue(`isInstantPhase`,O);let M=g.useState(`disabled`),N=s??M,ee=H(N),te=g.useState(`trackCursorAxis`),ne=g.useState(`disableHoverablePopup`),re=W.useRef(!1),P=ye(),ie=W.useRef(void 0);function ae(){let e=E?.delay,t=typeof D.current==`object`?D.current.open:void 0,n=S;return k&&(n=t===0?0:c??e??S),n}function se(e){let t=x.current;if(!t||!e)return!1;let n=Rr(e);return n!==null&&n!==t&&L(t,n)}function ce(e){let t=se(e);return re.current=t,t&&(A.openChangeTimeout.clear(),A.restTimeout.clear(),A.restTimeoutPending=!1,P.clear()),t}let F=br(b,{enabled:!N,mouseOnly:!0,move:!1,handleClose:!ne&&te!==`both`?Dr():null,restMs:ae,delay(){let e=typeof D.current==`object`?D.current.close:void 0,t=C;return u==null&&k&&(t=e),{close:t}},triggerElementRef:x,isActiveTrigger:v,isClosing:()=>g.select(`transitionStatus`)===`ending`,shouldOpen(){return!re.current}}),le=fr(b,{enabled:!N}).reference,ue=e=>{let t=re.current,n=Lr(e),r=ce(n),i=x.current,a=i&&n&&L(i,n);if(r&&g.select(`open`)&&g.select(`lastOpenChangeReason`)===`trigger-hover`){g.setOpen(!1,z(B,e));return}if(t&&!r&&a&&!ee.current&&!g.select(`open`)&&i&&oe(ie.current)){let t=()=>{!re.current&&!ee.current&&!g.select(`open`)&&g.setOpen(!0,z(B,e,i))},n=ae();n===0?(P.clear(),t()):P.start(n,t)}},de=g.useState(`triggerProps`,T);return m(`button`,e,{state:{open:y},ref:[t,w,x],props:[F,le,T||te!==`none`?de:void 0,{onMouseOver(e){ue(e.nativeEvent)},onFocus(e){se(Lr(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){re.current=!1,P.clear(),ie.current=void 0},onPointerEnter(e){ie.current=e.pointerType},onPointerDown(e){ie.current=e.pointerType,g.set(`closeOnClick`,l),l&&!g.select(`open`)&&g.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!g.select(`open`)&&g.cancelPendingOpen(e.nativeEvent)},id:_,[Fr.triggerDisabled]:N?``:void 0,[Ir]:N?void 0:``},p],stateAttributesMapping:j})}),Br=W.createContext(void 0);function Vr(){let e=W.useContext(Br);if(e===void 0)throw Error(d(70));return e}var Hr=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=E({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,U.jsxs)(W.Fragment,{children:[l,c&&Ne.createPortal(n,c)]})}),Ur=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Fe().useState(`mounted`)||n?(0,U.jsx)(Br.Provider,{value:n,children:(0,U.jsx)(Hr,{ref:t,...r})}):null}),Wr=W.createContext(void 0);function Gr(){let e=W.useContext(Wr);if(e===void 0)throw Error(d(71));return e}var Kr=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`}=Je(e,t)||{};if(l==null)return{};let f=nt(u),p={x:n,y:r},m=et(i),h=Qe(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=qe(k,j,A),N=!c.arrow&&Xe(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}}}),qr=(e,t)=>({...Kr(e),options:[e,t]}),Jr=cr().fn,Yr={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 Jr(e)).data?.referenceHidden||a}}}},Xr={sideX:`left`,sideY:`top`},Zr={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,l=c(i),u=l.getComputedStyle(i);if(u.transitionDuration===`0s`||u.transitionDuration===``)return{x:t,y:n,data:Xr};let d=await a.getOffsetParent?.(i),f={width:0,height:0};
3if(o===`fixed`&&l?.visualViewport)f={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let e=ke(i);f={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(d)&&(f=await a.getDimensions(d));let p=Ye(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`:Xr.sideX,_=p===`top`?`bottom`:Xr.sideY;return{x:m,y:h,data:{sideX:g,sideY:_}}}};function Qr(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 $r(e,t,n){let{rects:r,placement:i}=e;return{side:Qr(t,Ye(i),n),align:Xe(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ei(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:l=5,sticky:d=!1,arrowPadding:f=5,disableAnchorTracking:p=!1,inline:m,keepMounted:h=!1,floatingRootContext:_,mounted:v,collisionAvoidance:y,shiftCrossAxis:b=!1,nodeId:x,adaptiveOrigin:S,lazyFlip:C=!1,externalTree:w}=e,[T,E]=W.useState(null);!v&&T!==null&&E(null);let D=y.side||`flip`,O=y.align||`flip`,k=y.fallbackAxisSide||`end`,A=typeof t==`function`?t:void 0,j=u(A),M=A?j:t,N=H(t),ee=H(v),te=Me()===`rtl`,ne=T||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":te?`left`:`right`,"inline-start":te?`right`:`left`}[r],re=a===`center`?ne:`${ne}-${a}`,P=l,ie=+(r===`bottom`),ae=+(r===`top`),oe=+(r===`right`),se=+(r===`left`);typeof P==`number`?P={top:P+ie,right:P+se,bottom:P+ae,left:P+oe}:P&&={top:(P.top||0)+ie,right:(P.right||0)+se,bottom:(P.bottom||0)+ae,left:(P.left||0)+oe};let ce={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=W.useRef(null),le=H(i),ue=H(o),de=typeof i==`function`?0:i,fe=typeof o==`function`?0:o,pe=[];m&&pe.push(m),pe.push(rr(e=>{let t=$r(e,r,te),n=typeof le.current==`function`?le.current(t):le.current,i=typeof ue.current==`function`?ue.current(t):ue.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[de,fe,te,r]));let me=O===`none`&&D!==`shift`,he=!me&&(d||b||D===`shift`),ge=D===`none`?null:or({...ce,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!b&&D===`flip`,crossAxis:O===`flip`&&`alignment`,fallbackAxisSideDirection:k}),_e=me?null:ir(e=>{let t=ke(e.elements.floating).documentElement;return{...ce,rootBoundary:b?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:O!==`none`,crossAxis:he,limiter:d||b?void 0:ar(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=$e(Ye(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ce,d,b,P,O]);D===`shift`||O===`shift`||a===`center`?pe.push(_e,ge):pe.push(ge,_e),pe.push(sr({...ce,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ee.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=c(e).devicePixelRatio||1,{x:o,y:s,width:l,height:u}=r.reference,d=(Math.round((o+l)*a)-Math.round(o*a))/a,f=(Math.round((s+u)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${d}px`),i.setProperty(`--anchor-height`,`${f}px`)}}),qr(e=>({element:F.current||ke(e.elements.floating).createElement(`div`),padding:f,offsetParent:`floating`}),[f]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Ye(a),l=$e(c),u=F.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($r(e,r,te)):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`,he&&l===`y`&&b?S:x),{}}},Yr,S),g(()=>{!v&&_&&_.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[v,_]);let ve=W.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<`u`,layoutShift:!p&&typeof IntersectionObserver<`u`}
3),[p]),{refs:I,elements:ye,x:be,y:L,middlewareData:R,update:xe,placement:Se,context:Ce,isPositioned:we,floatingStyles:Te}=ur({rootContext:_,open:h?v:void 0,placement:re,middleware:pe,strategy:n,whileElementsMounted:h?void 0:(...e)=>Un(...e,ve),nodeId:x,externalTree:w}),{sideX:z,sideY:B}=R.adaptiveOrigin||Xr,Ee=we?n:`fixed`,V=W.useMemo(()=>{let e=S?{position:Ee,[z]:be,[B]:L}:{position:Ee,...Te};return we||(e.opacity=0),e},[S,Ee,z,be,B,L,Te,we]),De=W.useRef(null);g(()=>{if(!v)return;let e=N.current,t=typeof e==`function`?e():e,n=(ti(t)?t.current:t)||null;n!==De.current&&(I.setPositionReference(n),De.current=n)},[v,I,M,N]),W.useEffect(()=>{if(!v)return;let e=N.current;typeof e!=`function`&&ti(e)&&e.current!==De.current&&(I.setPositionReference(e.current),De.current=e.current)},[v,I,M,N]),W.useEffect(()=>{if(h&&v&&ye.reference&&ye.floating)return Un(ye.reference,ye.floating,xe,ve)},[h,v,ye,xe,ve]);let Oe=Ye(Se),Ae=Qr(r,Oe,te),je=Xe(Se)||`center`,Ne=!!R.hide?.referenceHidden;g(()=>{C&&v&&we&&E(Oe)},[C,v,we,Oe]);let U=W.useMemo(()=>({position:`absolute`,top:R.arrow?.y,left:R.arrow?.x}),[R.arrow]),Pe=R.arrow?.centerOffset!==0;return W.useMemo(()=>({positionerStyles:V,arrowStyles:U,arrowRef:F,arrowUncentered:Pe,side:Ae,align:je,physicalSide:Oe,anchorHidden:Ne,refs:I,context:Ce,isPositioned:we,update:xe}),[V,U,F,Pe,Ae,je,Oe,Ne,I,Ce,we,xe])}function ti(e){return e!=null&&`current`in e}function ni(e){return e===`starting`?C:p}function ri(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),m(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},ni(r),i],stateAttributesMapping:ue})}var ii=W.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=k,style:g,..._}=e,v=Fe(),y=Vr(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=ei({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Zr:void 0}),O=ri(e,W.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,U.jsx)(Wr.Provider,{value:D,children:O})}),ai={...ue,...De},oi=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Fe(),{side:s,align:c}=Gr(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),h=o.useState(`disabled`),g=o.useState(`closeDelay`);Oe({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),vr(p,{enabled:!h,closeDelay:g});let _=o.useStateSetter(`popupElement`);return m(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,_],props:[f,ni(d),a],stateAttributesMapping:ai})}),si=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Fe(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Gr(),f={open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)};return m(`div`,e,{state:f,ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:ue})}),ci=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=W.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=W.useMemo(()=>({open:t,close:n}),[t,n]);return(0,U.jsx)(Nr.Provider,{value:i,children:(0,U.jsx)(Ue,{delay:a,timeoutMs:r,children:e.children})})},li=W.createContext(void 0);function ui({delay:e=0,delayDuration:t,...n}){return(0,U.jsx)(ci,{"data-slot":`tooltip-provider`,delay:t??e,...n})}function di({delayDuration:e,openDelay:t,children:n,...r}){return(0,U.jsx)(li.Provider,{value:e??t,children:(0,U.jsx)(jr,{"data-slot":`tooltip`,...r,children:n})})}function fi({asChild:e,children:t,render:n,delay:r,...i}){let a=W.useContext(li);return(0,U.jsx)(zr,{"data-slot":`tooltip-trigger`,render:_(t,e,n),delay:r??a,...i,children:v(t,e)})}function pi({className:e,side:t=`top`,sideOffset:n=4,align:r=`center`,alignOffset:i=0,
3children:o,...s}){return(0,U.jsx)(Ur,{children:(0,U.jsx)(ii,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,U.jsxs)(oi,{"data-slot":`tooltip-content`,className:a(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...s,children:[o,(0,U.jsx)(si,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}function mi({children:e,label:t,side:n=`bottom`,contentClassName:r}){return(0,U.jsxs)(di,{children:[(0,U.jsx)(fi,{asChild:!0,children:e}),(0,U.jsx)(pi,{side:n,className:r,children:t})]})}function hi({label:e}){return(0,U.jsx)(mi,{label:e,side:`top`,contentClassName:`max-w-xs text-left leading-snug`,children:(0,U.jsx)(`button`,{type:`button`,"aria-label":e,className:`inline-flex size-4 shrink-0 items-center justify-center rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline focus-visible:outline-ring`,children:(0,U.jsx)(o,{className:`size-3.5`})})})}var gi=e({IconTooltip:()=>mi,InfoTooltip:()=>hi,Tooltip:()=>di,TooltipContent:()=>pi,TooltipProvider:()=>ui,TooltipTrigger:()=>fi});
3export{Z as A,Gt as B,Jt as C,J as D,un as E,sn as F,ut as G,Wt as H,It as I,jt as J,G as K,Ft as L,Zt as M,Qt as N,an as O,$t as P,Lt as R,pn as S,fn as T,Kt as U,Ut as V,K as W,rt as X,lt as Y,lr as _,di as a,on as b,ri as c,Zr as d,Hr as f,fr as g,vr as h,pi as i,cn as j,X as k,ni as l,br as m,hi as n,ui as o,Dr as p,ct as q,mi as r,fi as s,gi as t,ei as u,Bn as v,ln as w,Y as x,Q as y,Bt as z}; 4//# debugId=a342ec8c-ec66-5932-8815-b33e5815fed1
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.