1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{I as t}from"./chunk-BV7QT456-C1iPJGXe.js";import{t as n}from"./react-dom-B-vCn1s5.js";import{t as r}from"./jsx-runtime-B74pBk57.js";import{i,n as a}from"./dist-Coa5VypW.js";var o=e(t(),1),s=e(n(),1),c=r(),l=Object.defineProperty,u=(e,t)=>l(e,`name`,{value:t,configurable:!0}),d=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=a(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,c.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function f(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}u(f,`dispatchDiscreteCustomEvent`);var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0});function h(e,t){let n=o.createContext(t);n.displayName=e+`Context`;let r=m(e=>{let{children:t,...r}=e,i=o.useMemo(()=>r,Object.values(r));return(0,c.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,s=o.useContext(n);if(s)return s;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return m(i,`useContext`),[r,i]}m(h,`createContext`);function g(e,t=[]){let n=[];function r(t,r){let i=o.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let s=m(t=>{let{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||i,u=o.useMemo(()=>s,Object.values(s));return(0,c.jsx)(l.Provider,{value:u,children:r})},`Provider`);s.displayName=t+`Provider`;function l(n,s,c={}){let{optional:l=!1}=c,u=s?.[e]?.[a]||i,d=o.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return m(l,`useContext`),[s,l]}m(r,`createContext`);let i=m(()=>{let t=n.map(e=>o.createContext(e));return m(function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,_(i,...t)]}m(g,`createContextScope`);function _(...e){let t=e[0];if(e.length===1)return t;let n=m(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return m(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}m(_,`composeContextScopes`);var v=globalThis?.document?o.useLayoutEffect:()=>{},y=Object.defineProperty,b=(e,t)=>y(e,`name`,{value:t,configurable:!0});function x(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>((...e)=>t.current?.(...e)),[])}b(x,`useCallbackRef`);var S=Object.defineProperty,C=(e,t)=>S(e,`name`,{value:t,configurable:!0});function w(e){let[t,n]=o.useState(void 0);return v(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}C(w,`useSize`);var T=[`top`,`right`,`bottom`,`left`],E=Math.min,D=Math.max,O=Math.round,k=Math.floor,A=e=>({x:e,y:e}),j={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function M(e,t,n){return D(e,E(t,n))}function N(e,t){return typeof e==`function`?e(t):e}function P(e){return e.split(`-`)[0]}function F(e){return e.split(`-`)[1]}function I(e){return e===`x`?`y`:`x`}function ee(e){return e===`y`?`height`:`width`}function L(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function R(e){return I(L(e))}function z(e,t,n){n===void 0&&(n=!1);let r=F(e),i=R(e),a=ee(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=H(o)),[o,H(o)]}function B(e){let t=H(e);return[V(e),t,V(t)]}function V(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var te=[`left`,`right`],ne=[`right`,`left`],re=[`top`,`bottom`],ie=[`bottom`,`top`];function ae(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ne:te:t?te:ne;case`left`:case`right`:return t?re:ie;default:return[]}}function oe(e,t,n,r){let i=F(e),a=ae(P(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(V)))),a}function H(e){let t=P(e);return j[t]+e.slice(t.length)}function se(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ce(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:se(e)}function le(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 ue(e,t,n){let{reference:r,floating:i}=e,a=L(t),o=R(t),s=ee(o),c=P(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=F(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function de(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}=N(t,e),p=ce(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=le(await i.getClippingRect
vendor: 4,591 bytes, line 1
1({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=le(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 fe=50,pe=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:de},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ue(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<fe&&(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}=ue(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},me=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}=N(e,t)||{};if(l==null)return{};let d=ce(u),f={x:n,y:r},p=R(i),m=ee(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,D=E(d[_],T),O=E(d[v],T),k=C-h[m]-O,A=C/2-h[m]/2+w,j=M(D,A,k),P=!c.arrow&&F(i)!=null&&A!==j&&a.reference[m]/2-(A<D?D:O)-h[m]/2<0,I=P?A<D?A-D:A-k:0;return{[p]:f[p]+I,data:{[p]:j,centerOffset:A-j-I,...P&&{alignmentOffset:I}},reset:P}}}),he=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}=N(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=P(r),_=L(o),v=P(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[H(o)]:B(o)),x=p!==`none`;!d&&x&&b.push(...oe(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=z(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`||_===L(t)||T.every(e=>L(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=L(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 ge(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _e(e){return T.some(t=>e[t]>=0)}var ve=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=N(e,t);switch(i){case`referenceHidden`:{let e=ge(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_e(e)}}}case`escaped`:{let e=ge(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_e(e)}}}default:return{}}}}},ye=new Set([`left`,`top`]);async function be(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=P(n),s=F(n),c=L(n)===`y`,l=ye.has(o)?-1:1,u=a&&c?-1:1,d=N(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{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 xe=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 be(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}}}}},Se=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}=N(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=L(i),p=I(f),m=u[p],h=u[f],g=(e,t)=>M(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}}}}}},Ce=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}=N(e,t),u={x:n,y:r},d=L(i),f=I(d),p=u[f],m=u[d],h=N(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=ye.has(P(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}}}},we=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}=N(e,t),c=await i.detectOverflow(t,s),l=P(n),u=F(n),d=L(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=E(p-c[m],g),y=E(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*D(c.left,c.right):S=p-2*D(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 Te(){return typeof window<`u`}function U(e){return Ee(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){return((Ee(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ee(e){return Te()?e instanceof Node||e instanceof W(e).Node:!1}function K(e){return Te()?e instanceof Element||e instanceof W(e).Element:!1}function q(e){return Te()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function De(e){return!Te()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function Oe(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ke(e){return/^(table|td|th)$/.test(U(e))}function Ae(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var je=/transform|translate|scale|rotate|perspective|filter/,Me=/paint|layout|strict|content/,J=e=>!!e&&e!==`none`,Ne;function Pe(e){let t=K(e)?Y(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!Ie()&&(J(t.backdropFilter)||J(t.filter))||je.test(t.willChange||``)||Me.test(t.contain||``)}function Fe(e){let t=X(e);for(;q(t)&&!Le(t);){if(Pe(t))return t;if(Ae(t))return null;t=X(t)}return null}function Ie(){return Ne??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ne}function Le(e){return/^(html|body|#document)$/.test(U(e))}function Y(e){return W(e).getComputedStyle(e)}function Re(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(U(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||De(e)&&e.host||G(e);return De(t)?t.host:t}function ze(e){let t=X(e);return Le(t)?(e.ownerDocument||e).body:q(t)&&Oe(t)?t:ze(t)}function Be(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ze(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=Ve(a);
vendor: 4,180 bytes, line 1
1return t.concat(a,a.visualViewport||[],Oe(r)?r:[],e&&n?Be(e):[])}return t.concat(r,Be(r,[],n))}function Ve(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function He(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=O(n)!==a||O(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ue(e){return K(e)?e:e.contextElement}function Z(e){let t=Ue(e);if(!q(t))return A(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=He(t),o=(a?O(n.width):n.width)/r,s=(a?O(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var We=A(0);function Ge(e){let t=W(e);return!Ie()||!t.visualViewport?We:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ke(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===W(e)}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ue(e),o=A(1);t&&(r?K(r)&&(o=Z(r)):o=Z(e));let s=Ke(a,n,r)?Ge(a):A(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&&r){let e=W(a),t=K(r)?W(r):r,n=e,i=Ve(n);for(;i&&t!==n;){let e=Z(i),t=i.getBoundingClientRect(),r=Y(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=W(i),i=Ve(n)}}return le({width:u,height:d,x:c,y:l})}function qe(e,t){let n=Re(e).scrollLeft;return t?t.left+n:Q(G(e)).left+n}function Je(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-qe(e,n),y:n.top+t.scrollTop}}function Ye(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=G(r),s=t?Ae(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=A(1),u=A(0),d=q(r);if((d||!a)&&((U(r)!==`body`||Oe(o))&&(c=Re(r)),d)){let e=Q(r);l=Z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Je(o,c):A(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 Xe(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ze(e){let t=Re(e),n=e.ownerDocument.body,r=D(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=D(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+qe(e),o=-t.scrollTop;return Y(n).direction===`rtl`&&(a+=D(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Qe=25;function $e(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=W(e),a=G(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ie()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(qe(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Qe&&(s-=o)}return{width:s,height:c,x:l,y:u}}function et(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Z(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function tt(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=$e(e,n,t);else if(t===`document`)r=Ze(G(e));else if(K(t))r=et(t,n);else{let n=Ge(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return le(r)}function nt(e,t){let n=t.get(e);if(n)return n;let r=Be(e,[],!1).filter(e=>K(e)&&U(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?X(e):e;for(;K(o)&&!Le(o);){let e=Y(o),t=Pe(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=X(o)}return t.set(e,r),r}function rt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ae(t)?[]:nt(t,this._c):[].concat(n),r],o=tt(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=tt(t,a[e],i);s=D(n.top,s),c=E(n.right,c),l=E(n.bottom,l),u=D(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function it(e){let{width:t,height:n}=He(e);return{width:t,height:n}}function at(e,t,n){let r=q(t),i=G(t),a=n===`fixed`,o=Q(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=A(0);
vendor: 4,091 bytes, line 1
1if((r||!a)&&((U(t)!==`body`||Oe(i))&&(s=Re(t)),r)){let e=Q(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=qe(i));let l=i&&!r&&!a?Je(i,s):A(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function ot(e){return Y(e).position===`static`}function st(e,t){if(!q(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function ct(e,t){let n=W(e);if(Ae(e))return n;if(!q(e)){let t=X(e);for(;t&&!Le(t);){if(K(t)&&!ot(t))return t;t=X(t)}return n}let r=st(e,t);for(;r&&ke(r)&&ot(r);)r=st(r,t);return r&&Le(r)&&ot(r)&&!Pe(r)?n:r||Fe(e)||n}var lt=async function(e){let t=this.getOffsetParent||ct,n=this.getDimensions,r=await n(e.floating);return{reference:at(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ut(e){return Y(e).direction===`rtl`}var dt={convertOffsetParentRelativeRectToViewportRelativeRect:Ye,getDocumentElement:G,getClippingRect:rt,getOffsetParent:ct,getElementRects:lt,getClientRects:Xe,getDimensions:it,getScale:Z,isElement:K,isRTL:ut};function ft(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pt(e,t,n){let r=null,i,a=G(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=k(d),h=k(a.clientWidth-(u+f)),g=k(a.clientHeight-(d+p)),_=k(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:D(0,E(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ft(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=W(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function mt(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?Be(l):[],...t?Be(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?pt(l,n,a):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?Q(e):null;c&&g();function g(){let t=Q(e);h&&!ft(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 ht=xe,gt=Se,_t=he,vt=we,yt=ve,bt=me,xt=Ce,St=(e,t,n)=>{let r=new Map,i=n??{},a={...dt,...i.platform,_c:r};return pe(e,t,{...i,platform:a})},Ct=typeof document<`u`?o.useLayoutEffect:function(){};function wt(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(!wt(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)&&!wt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Tt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Et(e,t){let n=Tt(e);return Math.round(t*n)/n}function Dt(e){let t=o.useRef(e);return Ct(()=>{t.current=e}),t}function Ot(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}
vendor: 1,775 bytes, line 1
1),[m,h]=o.useState(r);wt(m,r)||h(r);let[g,_]=o.useState(null),[v,y]=o.useState(null),b=o.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=o.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=c||v,w=o.useRef(null),T=o.useRef(null),E=o.useRef(f),D=u!=null,O=Dt(u),k=Dt(i),A=Dt(d),j=o.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),St(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!wt(E.current,t)&&(E.current=t,s.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);Ct(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=o.useRef(!1);Ct(()=>(M.current=!0,()=>{M.current=!1}),[]),Ct(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=o.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=o.useMemo(()=>({reference:S,floating:C}),[S,C]),F=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Et(P.floating,f.x),r=Et(P.floating,f.y);return l?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Tt(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,l,P.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:F}),[f,j,N,P,F])}var kt=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:bt({element:r.current,padding:i}).fn(n):r?bt({element:r,padding:i}).fn(n):{}}}},At=(e,t)=>{let n=ht(e);return{name:n.name,fn:n.fn,options:[e,t]}},jt=(e,t)=>{let n=gt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mt=(e,t)=>
1({fn:xt(e).fn,options:[e,t]}),Nt=(e,t)=>{let n=_t(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pt=(e,t)=>{let n=vt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ft=(e,t)=>{let n=yt(e);return{name:n.name,fn:n.fn,options:[e,t]}},It=(e,t)=>{let n=kt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lt=Object.defineProperty,$=(e,t)=>Lt(e,`name`,{value:t,configurable:!0}),Rt=`Popper`,[zt,Bt]=g(Rt),[Vt,Ht]=zt(Rt),Ut=$(e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[a,s]=o.useState(void 0);return(0,c.jsx)(Vt,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:s,children:n})},`Popper`),Wt=`PopperAnchor`,Gt=o.forwardRef($(function(e,t){let{__scopePopper:n,virtualRef:r,...a}=e,s=Ht(Wt,n),l=o.useRef(null),u=s.onAnchorChange,f=o.useCallback(e=>{l.current=e,e&&u(e)},[u]),p=i(t,f),m=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=m.current;m.current=r.current,e!==m.current&&u(m.current)});let h=s.placementState&&Qt(s.placementState),g=h?.[0],_=h?.[1];return r?null:(0,c.jsx)(d.div,{"data-radix-popper-side":g,"data-radix-popper-align":_,...a,ref:p})}
1,`PopperAnchor`)),Kt=`PopperContent`,[qt,Jt]=zt(Kt),Yt=o.forwardRef($(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:a=0,align:s=`center`,alignOffset:l=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:h=`partial`,hideWhenDetached:g=!1,updatePositionStrategy:_=`optimized`,onPlaced:y,...b}=e,S=Ht(Kt,n),[C,T]=o.useState(null),E=i(t,T),[D,O]=o.useState(null),k=w(D),A=k?.width??0,j=k?.height??0,M=r+(s===`center`?``:`-`+s),N=typeof m==`number`?m:{top:0,right:0,bottom:0,left:0,...m},P=Array.isArray(p)?p:[p],F=P.length>0,I={padding:N,boundary:P.filter(Xt),altBoundary:F},{refs:ee,floatingStyles:L,placement:R,isPositioned:z,middlewareData:B}=Ot({strategy:`fixed`,placement:M,whileElementsMounted:$((...e)=>mt(...e,{animationFrame:_===`always`}),`whileElementsMounted`),elements:{reference:S.anchor},middleware:[At({mainAxis:a+j,alignmentAxis:l}),f&&jt({mainAxis:!0,crossAxis:!1,limiter:h===`partial`?Mt():void 0,...I}),f&&Nt({...I}),Pt({...I,apply:$(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),D&&It({element:D,padding:u}),Zt({arrowWidth:A,arrowHeight:j}),g&&Ft({strategy:`referenceHidden`,...I,boundary:F?I.boundary:void 0})]}),V=S.setPlacementState;v(()=>(V(R),()=>{V(void 0)}),[R,V]);let[te,ne]=Qt(R),re=x(y);v(()=>{z&&re?.()},[z,re]);let ie=B.arrow?.x,ae=B.arrow?.y,oe=B.arrow?.centerOffset!==0,[H,se]=o.useState();return v(()=>{C&&se(window.getComputedStyle(C).zIndex)},[C]),(0,c.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...L,transform:z?L.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:H,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(` `),...B.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,c.jsx)(qt,{scope:n,placedSide:te,placedAlign:ne,onArrowChange:O,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,c.jsx)(d.div,{"data-side":te,"data-align":ne,...b,ref:E,style:{...b.style,animation:z?b.style?.animation:`none`}})})})},`PopperContent`));function Xt(e){return e!==null}$(Xt,`isNotNull`);var Zt=$(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Qt(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Qt(e){let[t,n=`center`]=e.split(`-`);return[t,n]}$(Qt,`getSideAndAlignFromPlacement`);var $t=Ut,en=Gt,tn=Yt;export{x as a,d as c,Bt as i,f as l,tn as n,v as o,$t as r,g as s,en 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.