UNPKG

@stackoverfloweth/prefect-design

Version:

A collection of low-level Vue components.

8 lines 2.35 MB
(function(B,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(B=typeof globalThis<"u"?globalThis:B||self,l(B.PrefectDesign={},B.Vue))})(this,function(B,l){"use strict";var F_=Object.defineProperty;var L_=(B,l,gd)=>l in B?F_(B,l,{enumerable:!0,configurable:!0,writable:!0,value:gd}):B[l]=gd;var Xl=(B,l,gd)=>L_(B,typeof l!="symbol"?l+"":l,gd);const gd=["top","right","bottom","left"],Le=Math.min,Vt=Math.max,lI=Math.round,iI=Math.floor,ye=t=>({x:t,y:t}),oJ={left:"right",right:"left",bottom:"top",top:"bottom"},mJ={start:"end",end:"start"};function ca(t,n,e){return Vt(t,Le(n,e))}function wc(t,n){return typeof t=="function"?t(n):t}function Uc(t){return t.split("-")[0]}function vd(t){return t.split("-")[1]}function ea(t){return t==="x"?"y":"x"}function na(t){return t==="y"?"height":"width"}function Sd(t){return["top","bottom"].includes(Uc(t))?"y":"x"}function da(t){return ea(Sd(t))}function WJ(t,n,e){e===void 0&&(e=!1);const s=vd(t),I=da(t),V=na(I);let b=I==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return n.reference[V]>n.floating[V]&&(b=tI(b)),[b,tI(b)]}function XJ(t){const n=tI(t);return[sa(t),n,sa(n)]}function sa(t){return t.replace(/start|end/g,n=>mJ[n])}function rJ(t,n,e){const s=["left","right"],I=["right","left"],V=["top","bottom"],b=["bottom","top"];switch(t){case"top":case"bottom":return e?n?I:s:n?s:I;case"left":case"right":return n?V:b;default:return[]}}function RJ(t,n,e,s){const I=vd(t);let V=rJ(Uc(t),e==="start",s);return I&&(V=V.map(b=>b+"-"+I),n&&(V=V.concat(V.map(sa)))),V}function tI(t){return t.replace(/left|right|bottom|top/g,n=>oJ[n])}function GJ(t){return{top:0,right:0,bottom:0,left:0,...t}}function tr(t){return typeof t!="number"?GJ(t):{top:t,right:t,bottom:t,left:t}}function cI(t){const{x:n,y:e,width:s,height:I}=t;return{width:s,height:I,top:e,left:n,right:n+s,bottom:e+I,x:n,y:e}}function cr(t,n,e){let{reference:s,floating:I}=t;const V=Sd(n),b=da(n),o=na(b),W=Uc(n),m=V==="y",r=s.x+s.width/2-I.width/2,R=s.y+s.height/2-I.height/2,J=s[o]/2-I[o]/2;let h;switch(W){case"top":h={x:r,y:s.y-I.height};break;case"bottom":h={x:r,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:R};break;case"left":h={x:s.x-I.width,y:R};break;default:h={x:s.x,y:s.y}}switch(vd(n)){case"start":h[b]-=J*(e&&m?-1:1);break;case"end":h[b]+=J*(e&&m?-1:1);break}return h}const JJ=async(t,n,e)=>{const{placement:s="bottom",strategy:I="absolute",middleware:V=[],platform:b}=e,o=V.filter(Boolean),W=await(b.isRTL==null?void 0:b.isRTL(n));let m=await b.getElementRects({reference:t,floating:n,strategy:I}),{x:r,y:R}=cr(m,s,W),J=s,h={},C=0;for(let F=0;F<o.length;F++){const{name:f,fn:T}=o[F],{x:E,y:L,data:U,reset:v}=await T({x:r,y:R,initialPlacement:s,placement:J,strategy:I,middlewareData:h,rects:m,platform:b,elements:{reference:t,floating:n}});r=E??r,R=L??R,h={...h,[f]:{...h[f],...U}},v&&C<=50&&(C++,typeof v=="object"&&(v.placement&&(J=v.placement),v.rects&&(m=v.rects===!0?await b.getElementRects({reference:t,floating:n,strategy:I}):v.rects),{x:r,y:R}=cr(m,J,W)),F=-1)}return{x:r,y:R,placement:J,strategy:I,middlewareData:h}};async function s1(t,n){var e;n===void 0&&(n={});const{x:s,y:I,platform:V,rects:b,elements:o,strategy:W}=t,{boundary:m="clippingAncestors",rootBoundary:r="viewport",elementContext:R="floating",altBoundary:J=!1,padding:h=0}=wc(n,t),C=tr(h),f=o[J?R==="floating"?"reference":"floating":R],T=cI(await V.getClippingRect({element:(e=await(V.isElement==null?void 0:V.isElement(f)))==null||e?f:f.contextElement||await(V.getDocumentElement==null?void 0:V.getDocumentElement(o.floating)),boundary:m,rootBoundary:r,strategy:W})),E=R==="floating"?{x:s,y:I,width:b.floating.width,height:b.floating.height}:b.reference,L=await(V.getOffsetParent==null?void 0:V.getOffsetParent(o.floating)),U=await(V.isElement==null?void 0:V.isElement(L))?await(V.getScale==null?void 0:V.getScale(L))||{x:1,y:1}:{x:1,y:1},v=cI(V.convertOffsetParentRelativeRectToViewportRelativeRect?await V.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:E,offsetParent:L,strategy:W}):E);return{top:(T.top-v.top+C.top)/U.y,bottom:(v.bottom-T.bottom+C.bottom)/U.y,left:(T.left-v.left+C.left)/U.x,right:(v.right-T.right+C.right)/U.x}}const uJ=t=>({name:"arrow",options:t,async fn(n){const{x:e,y:s,placement:I,rects:V,platform:b,elements:o,middlewareData:W}=n,{element:m,padding:r=0}=wc(t,n)||{};if(m==null)return{};const R=tr(r),J={x:e,y:s},h=da(I),C=na(h),F=await b.getDimensions(m),f=h==="y",T=f?"top":"left",E=f?"bottom":"right",L=f?"clientHeight":"clientWidth",U=V.reference[C]+V.reference[h]-J[h]-V.floating[C],v=J[h]-V.reference[h],z=await(b.getOffsetParent==null?void 0:b.getOffsetParent(m));let D=z?z[L]:0;(!D||!await(b.isElement==null?void 0:b.isElement(z)))&&(D=o.floating[L]||V.floating[C]);const k=U/2-v/2,P=D/2-F[C]/2-1,M=Le(R[T],P),tl=Le(R[E],P),el=M,Vl=D-F[C]-tl,Rl=D/2-F[C]/2+k,dl=ca(el,Rl,Vl),yl=!W.arrow&&vd(I)!=null&&Rl!==dl&&V.reference[C]/2-(Rl<el?M:tl)-F[C]/2<0,fl=yl?Rl<el?Rl-el:Rl-Vl:0;return{[h]:J[h]+fl,data:{[h]:dl,centerOffset:Rl-dl-fl,...yl&&{alignmentOffset:fl}},reset:yl}}}),hJ=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var e,s;const{placement:I,middlewareData:V,rects:b,initialPlacement:o,platform:W,elements:m}=n,{mainAxis:r=!0,crossAxis:R=!0,fallbackPlacements:J,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:F=!0,...f}=wc(t,n);if((e=V.arrow)!=null&&e.alignmentOffset)return{};const T=Uc(I),E=Uc(o)===o,L=await(W.isRTL==null?void 0:W.isRTL(m.floating)),U=J||(E||!F?[tI(o)]:XJ(o));!J&&C!=="none"&&U.push(...RJ(o,F,C,L));const v=[o,...U],z=await s1(n,f),D=[];let k=((s=V.flip)==null?void 0:s.overflows)||[];if(r&&D.push(z[T]),R){const el=WJ(I,b,L);D.push(z[el[0]],z[el[1]])}if(k=[...k,{placement:I,overflows:D}],!D.every(el=>el<=0)){var P,M;const el=(((P=V.flip)==null?void 0:P.index)||0)+1,Vl=v[el];if(Vl)return{data:{index:el,overflows:k},reset:{placement:Vl}};let Rl=(M=k.filter(dl=>dl.overflows[0]<=0).sort((dl,yl)=>dl.overflows[1]-yl.overflows[1])[0])==null?void 0:M.placement;if(!Rl)switch(h){case"bestFit":{var tl;const dl=(tl=k.map(yl=>[yl.placement,yl.overflows.filter(fl=>fl>0).reduce((fl,Zi)=>fl+Zi,0)]).sort((yl,fl)=>yl[1]-fl[1])[0])==null?void 0:tl[0];dl&&(Rl=dl);break}case"initialPlacement":Rl=o;break}if(I!==Rl)return{reset:{placement:Rl}}}return{}}}};function er(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function nr(t){return gd.some(n=>t[n]>=0)}const NJ=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:s="referenceHidden",...I}=wc(t,n);switch(s){case"referenceHidden":{const V=await s1(n,{...I,elementContext:"reference"}),b=er(V,e.reference);return{data:{referenceHiddenOffsets:b,referenceHidden:nr(b)}}}case"escaped":{const V=await s1(n,{...I,altBoundary:!0}),b=er(V,e.floating);return{data:{escapedOffsets:b,escaped:nr(b)}}}default:return{}}}}};async function CJ(t,n){const{placement:e,platform:s,elements:I}=t,V=await(s.isRTL==null?void 0:s.isRTL(I.floating)),b=Uc(e),o=vd(e),W=Sd(e)==="y",m=["left","top"].includes(b)?-1:1,r=V&&W?-1:1,R=wc(n,t);let{mainAxis:J,crossAxis:h,alignmentAxis:C}=typeof R=="number"?{mainAxis:R,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...R};return o&&typeof C=="number"&&(h=o==="end"?C*-1:C),W?{x:h*r,y:J*m}:{x:J*m,y:h*r}}const YJ=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var e,s;const{x:I,y:V,placement:b,middlewareData:o}=n,W=await CJ(n,t);return b===((e=o.offset)==null?void 0:e.placement)&&(s=o.arrow)!=null&&s.alignmentOffset?{}:{x:I+W.x,y:V+W.y,data:{...W,placement:b}}}}},pJ=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:s,placement:I}=n,{mainAxis:V=!0,crossAxis:b=!1,limiter:o={fn:f=>{let{x:T,y:E}=f;return{x:T,y:E}}},...W}=wc(t,n),m={x:e,y:s},r=await s1(n,W),R=Sd(Uc(I)),J=ea(R);let h=m[J],C=m[R];if(V){const f=J==="y"?"top":"left",T=J==="y"?"bottom":"right",E=h+r[f],L=h-r[T];h=ca(E,h,L)}if(b){const f=R==="y"?"top":"left",T=R==="y"?"bottom":"right",E=C+r[f],L=C-r[T];C=ca(E,C,L)}const F=o.fn({...n,[J]:h,[R]:C});return{...F,data:{x:F.x-e,y:F.y-s}}}}},FJ=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:e,y:s,placement:I,rects:V,middlewareData:b}=n,{offset:o=0,mainAxis:W=!0,crossAxis:m=!0}=wc(t,n),r={x:e,y:s},R=Sd(I),J=ea(R);let h=r[J],C=r[R];const F=wc(o,n),f=typeof F=="number"?{mainAxis:F,crossAxis:0}:{mainAxis:0,crossAxis:0,...F};if(W){const L=J==="y"?"height":"width",U=V.reference[J]-V.floating[L]+f.mainAxis,v=V.reference[J]+V.reference[L]-f.mainAxis;h<U?h=U:h>v&&(h=v)}if(m){var T,E;const L=J==="y"?"width":"height",U=["top","left"].includes(Uc(I)),v=V.reference[R]-V.floating[L]+(U&&((T=b.offset)==null?void 0:T[R])||0)+(U?0:f.crossAxis),z=V.reference[R]+V.reference[L]+(U?0:((E=b.offset)==null?void 0:E[R])||0)-(U?f.crossAxis:0);C<v?C=v:C>z&&(C=z)}return{[J]:h,[R]:C}}}},LJ=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){const{placement:e,rects:s,platform:I,elements:V}=n,{apply:b=()=>{},...o}=wc(t,n),W=await s1(n,o),m=Uc(e),r=vd(e),R=Sd(e)==="y",{width:J,height:h}=s.floating;let C,F;m==="top"||m==="bottom"?(C=m,F=r===(await(I.isRTL==null?void 0:I.isRTL(V.floating))?"start":"end")?"left":"right"):(F=m,C=r==="end"?"top":"bottom");const f=h-W[C],T=J-W[F],E=!n.middlewareData.shift;let L=f,U=T;if(R){const z=J-W.left-W.right;U=r||E?Le(T,z):z}else{const z=h-W.top-W.bottom;L=r||E?Le(f,z):z}if(E&&!r){const z=Vt(W.left,0),D=Vt(W.right,0),k=Vt(W.top,0),P=Vt(W.bottom,0);R?U=J-2*(z!==0||D!==0?z+D:Vt(W.left,W.right)):L=h-2*(k!==0||P!==0?k+P:Vt(W.top,W.bottom))}await b({...n,availableWidth:U,availableHeight:L});const v=await I.getDimensions(V.floating);return J!==v.width||h!==v.height?{reset:{rects:!0}}:{}}}};function qe(t){return Ia(t)?(t.nodeName||"").toLowerCase():"#document"}function bt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function xc(t){var n;return(n=(Ia(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Ia(t){return t instanceof Node||t instanceof bt(t).Node}function Zc(t){return t instanceof Element||t instanceof bt(t).Element}function oc(t){return t instanceof HTMLElement||t instanceof bt(t).HTMLElement}function dr(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof bt(t).ShadowRoot}function I1(t){const{overflow:n,overflowX:e,overflowY:s,display:I}=Et(t);return/auto|scroll|overlay|hidden|clip/.test(n+s+e)&&!["inline","contents"].includes(I)}function yJ(t){return["table","td","th"].includes(qe(t))}function aa(t){const n=Va(),e=Et(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!n&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!n&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function wJ(t){let n=we(t);for(;oc(n)&&!Td(n);){if(aa(n))return n;n=we(n)}return null}function Va(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Td(t){return["html","body","#document"].includes(qe(t))}function Et(t){return bt(t).getComputedStyle(t)}function eI(t){return Zc(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function we(t){if(qe(t)==="html")return t;const n=t.assignedSlot||t.parentNode||dr(t)&&t.host||xc(t);return dr(n)?n.host:n}function sr(t){const n=we(t);return Td(n)?t.ownerDocument?t.ownerDocument.body:t.body:oc(n)&&I1(n)?n:sr(n)}function a1(t,n,e){var s;n===void 0&&(n=[]),e===void 0&&(e=!0);const I=sr(t),V=I===((s=t.ownerDocument)==null?void 0:s.body),b=bt(I);return V?n.concat(b,b.visualViewport||[],I1(I)?I:[],b.frameElement&&e?a1(b.frameElement):[]):n.concat(I,a1(I,[],e))}function Ir(t){const n=Et(t);let e=parseFloat(n.width)||0,s=parseFloat(n.height)||0;const I=oc(t),V=I?t.offsetWidth:e,b=I?t.offsetHeight:s,o=lI(e)!==V||lI(s)!==b;return o&&(e=V,s=b),{width:e,height:s,$:o}}function ba(t){return Zc(t)?t:t.contextElement}function Hd(t){const n=ba(t);if(!oc(n))return ye(1);const e=n.getBoundingClientRect(),{width:s,height:I,$:V}=Ir(n);let b=(V?lI(e.width):e.width)/s,o=(V?lI(e.height):e.height)/I;return(!b||!Number.isFinite(b))&&(b=1),(!o||!Number.isFinite(o))&&(o=1),{x:b,y:o}}const UJ=ye(0);function ar(t){const n=bt(t);return!Va()||!n.visualViewport?UJ:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function xJ(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==bt(t)?!1:n}function ln(t,n,e,s){n===void 0&&(n=!1),e===void 0&&(e=!1);const I=t.getBoundingClientRect(),V=ba(t);let b=ye(1);n&&(s?Zc(s)&&(b=Hd(s)):b=Hd(t));const o=xJ(V,e,s)?ar(V):ye(0);let W=(I.left+o.x)/b.x,m=(I.top+o.y)/b.y,r=I.width/b.x,R=I.height/b.y;if(V){const J=bt(V),h=s&&Zc(s)?bt(s):s;let C=J,F=C.frameElement;for(;F&&s&&h!==C;){const f=Hd(F),T=F.getBoundingClientRect(),E=Et(F),L=T.left+(F.clientLeft+parseFloat(E.paddingLeft))*f.x,U=T.top+(F.clientTop+parseFloat(E.paddingTop))*f.y;W*=f.x,m*=f.y,r*=f.x,R*=f.y,W+=L,m+=U,C=bt(F),F=C.frameElement}}return cI({width:r,height:R,x:W,y:m})}const fJ=[":popover-open",":modal"];function Za(t){return fJ.some(n=>{try{return t.matches(n)}catch{return!1}})}function BJ(t){let{elements:n,rect:e,offsetParent:s,strategy:I}=t;const V=I==="fixed",b=xc(s),o=n?Za(n.floating):!1;if(s===b||o&&V)return e;let W={scrollLeft:0,scrollTop:0},m=ye(1);const r=ye(0),R=oc(s);if((R||!R&&!V)&&((qe(s)!=="body"||I1(b))&&(W=eI(s)),oc(s))){const J=ln(s);m=Hd(s),r.x=J.x+s.clientLeft,r.y=J.y+s.clientTop}return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-W.scrollLeft*m.x+r.x,y:e.y*m.y-W.scrollTop*m.y+r.y}}function kJ(t){return Array.from(t.getClientRects())}function Vr(t){return ln(xc(t)).left+eI(t).scrollLeft}function QJ(t){const n=xc(t),e=eI(t),s=t.ownerDocument.body,I=Vt(n.scrollWidth,n.clientWidth,s.scrollWidth,s.clientWidth),V=Vt(n.scrollHeight,n.clientHeight,s.scrollHeight,s.clientHeight);let b=-e.scrollLeft+Vr(t);const o=-e.scrollTop;return Et(s).direction==="rtl"&&(b+=Vt(n.clientWidth,s.clientWidth)-I),{width:I,height:V,x:b,y:o}}function gJ(t,n){const e=bt(t),s=xc(t),I=e.visualViewport;let V=s.clientWidth,b=s.clientHeight,o=0,W=0;if(I){V=I.width,b=I.height;const m=Va();(!m||m&&n==="fixed")&&(o=I.offsetLeft,W=I.offsetTop)}return{width:V,height:b,x:o,y:W}}function vJ(t,n){const e=ln(t,!0,n==="fixed"),s=e.top+t.clientTop,I=e.left+t.clientLeft,V=oc(t)?Hd(t):ye(1),b=t.clientWidth*V.x,o=t.clientHeight*V.y,W=I*V.x,m=s*V.y;return{width:b,height:o,x:W,y:m}}function br(t,n,e){let s;if(n==="viewport")s=gJ(t,e);else if(n==="document")s=QJ(xc(t));else if(Zc(n))s=vJ(n,e);else{const I=ar(t);s={...n,x:n.x-I.x,y:n.y-I.y}}return cI(s)}function Zr(t,n){const e=we(t);return e===n||!Zc(e)||Td(e)?!1:Et(e).position==="fixed"||Zr(e,n)}function SJ(t,n){const e=n.get(t);if(e)return e;let s=a1(t,[],!1).filter(o=>Zc(o)&&qe(o)!=="body"),I=null;const V=Et(t).position==="fixed";let b=V?we(t):t;for(;Zc(b)&&!Td(b);){const o=Et(b),W=aa(b);!W&&o.position==="fixed"&&(I=null),(V?!W&&!I:!W&&o.position==="static"&&!!I&&["absolute","fixed"].includes(I.position)||I1(b)&&!W&&Zr(t,b))?s=s.filter(r=>r!==b):I=o,b=we(b)}return n.set(t,s),s}function TJ(t){let{element:n,boundary:e,rootBoundary:s,strategy:I}=t;const b=[...e==="clippingAncestors"?Za(n)?[]:SJ(n,this._c):[].concat(e),s],o=b[0],W=b.reduce((m,r)=>{const R=br(n,r,I);return m.top=Vt(R.top,m.top),m.right=Le(R.right,m.right),m.bottom=Le(R.bottom,m.bottom),m.left=Vt(R.left,m.left),m},br(n,o,I));return{width:W.right-W.left,height:W.bottom-W.top,x:W.left,y:W.top}}function HJ(t){const{width:n,height:e}=Ir(t);return{width:n,height:e}}function zJ(t,n,e){const s=oc(n),I=xc(n),V=e==="fixed",b=ln(t,!0,V,n);let o={scrollLeft:0,scrollTop:0};const W=ye(0);if(s||!s&&!V)if((qe(n)!=="body"||I1(I))&&(o=eI(n)),s){const R=ln(n,!0,V,n);W.x=R.x+n.clientLeft,W.y=R.y+n.clientTop}else I&&(W.x=Vr(I));const m=b.left+o.scrollLeft-W.x,r=b.top+o.scrollTop-W.y;return{x:m,y:r,width:b.width,height:b.height}}function oa(t){return Et(t).position==="static"}function or(t,n){return!oc(t)||Et(t).position==="fixed"?null:n?n(t):t.offsetParent}function mr(t,n){const e=bt(t);if(Za(t))return e;if(!oc(t)){let I=we(t);for(;I&&!Td(I);){if(Zc(I)&&!oa(I))return I;I=we(I)}return e}let s=or(t,n);for(;s&&yJ(s)&&oa(s);)s=or(s,n);return s&&Td(s)&&oa(s)&&!aa(s)?e:s||wJ(t)||e}const EJ=async function(t){const n=this.getOffsetParent||mr,e=this.getDimensions,s=await e(t.floating);return{reference:zJ(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function jJ(t){return Et(t).direction==="rtl"}const MJ={convertOffsetParentRelativeRectToViewportRelativeRect:BJ,getDocumentElement:xc,getClippingRect:TJ,getOffsetParent:mr,getElementRects:EJ,getClientRects:kJ,getDimensions:HJ,getScale:Hd,isElement:Zc,isRTL:jJ};function DJ(t,n){let e=null,s;const I=xc(t);function V(){var o;clearTimeout(s),(o=e)==null||o.disconnect(),e=null}function b(o,W){o===void 0&&(o=!1),W===void 0&&(W=1),V();const{left:m,top:r,width:R,height:J}=t.getBoundingClientRect();if(o||n(),!R||!J)return;const h=iI(r),C=iI(I.clientWidth-(m+R)),F=iI(I.clientHeight-(r+J)),f=iI(m),E={rootMargin:-h+"px "+-C+"px "+-F+"px "+-f+"px",threshold:Vt(0,Le(1,W))||1};let L=!0;function U(v){const z=v[0].intersectionRatio;if(z!==W){if(!L)return b();z?b(!1,z):s=setTimeout(()=>{b(!1,1e-7)},1e3)}L=!1}try{e=new IntersectionObserver(U,{...E,root:I.ownerDocument})}catch{e=new IntersectionObserver(U,E)}e.observe(t)}return b(!0),V}function OJ(t,n,e,s){s===void 0&&(s={});const{ancestorScroll:I=!0,ancestorResize:V=!0,elementResize:b=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:W=!1}=s,m=ba(t),r=I||V?[...m?a1(m):[],...a1(n)]:[];r.forEach(T=>{I&&T.addEventListener("scroll",e,{passive:!0}),V&&T.addEventListener("resize",e)});const R=m&&o?DJ(m,e):null;let J=-1,h=null;b&&(h=new ResizeObserver(T=>{let[E]=T;E&&E.target===m&&h&&(h.unobserve(n),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var L;(L=h)==null||L.observe(n)})),e()}),m&&!W&&h.observe(m),h.observe(n));let C,F=W?ln(t):null;W&&f();function f(){const T=ln(t);F&&(T.x!==F.x||T.y!==F.y||T.width!==F.width||T.height!==F.height)&&e(),F=T,C=requestAnimationFrame(f)}return e(),()=>{var T;r.forEach(E=>{I&&E.removeEventListener("scroll",e),V&&E.removeEventListener("resize",e)}),R==null||R(),(T=h)==null||T.disconnect(),h=null,W&&cancelAnimationFrame(C)}}const PJ=YJ,KJ=pJ,Wr=hJ,_J=LJ,AJ=NJ,$J=uJ,qJ=FJ,lu=(t,n,e)=>{const s=new Map,I={platform:MJ,...e},V={...I.platform,_c:s};return JJ(t,n,{...I,platform:V})};function iu(t){return t!=null&&typeof t=="object"&&"$el"in t}function ma(t){if(iu(t)){const n=t.$el;return Ia(n)&&qe(n)==="#comment"?null:n}return t}function tu(t){return{name:"arrow",options:t,fn(n){const e=ma(l.unref(t.element));return e==null?{}:$J({element:e,padding:t.padding}).fn(n)}}}function Xr(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function rr(t,n){const e=Xr(t);return Math.round(n*e)/e}function cu(t,n,e){e===void 0&&(e={});const s=e.whileElementsMounted,I=l.computed(()=>{var D;return(D=l.unref(e.open))!=null?D:!0}),V=l.computed(()=>l.unref(e.middleware)),b=l.computed(()=>{var D;return(D=l.unref(e.placement))!=null?D:"bottom"}),o=l.computed(()=>{var D;return(D=l.unref(e.strategy))!=null?D:"absolute"}),W=l.computed(()=>{var D;return(D=l.unref(e.transform))!=null?D:!0}),m=l.computed(()=>ma(t.value)),r=l.computed(()=>ma(n.value)),R=l.ref(0),J=l.ref(0),h=l.ref(o.value),C=l.ref(b.value),F=l.shallowRef({}),f=l.ref(!1),T=l.computed(()=>{const D={position:h.value,left:"0",top:"0"};if(!r.value)return D;const k=rr(r.value,R.value),P=rr(r.value,J.value);return W.value?{...D,transform:"translate("+k+"px, "+P+"px)",...Xr(r.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:k+"px",top:P+"px"}});let E;function L(){m.value==null||r.value==null||lu(m.value,r.value,{middleware:V.value,placement:b.value,strategy:o.value}).then(D=>{R.value=D.x,J.value=D.y,h.value=D.strategy,C.value=D.placement,F.value=D.middlewareData,f.value=!0})}function U(){typeof E=="function"&&(E(),E=void 0)}function v(){if(U(),s===void 0){L();return}if(m.value!=null&&r.value!=null){E=s(m.value,r.value,L);return}}function z(){I.value||(f.value=!1)}return l.watch([V,b,o],L,{flush:"sync"}),l.watch([m,r],v,{flush:"sync"}),l.watch(I,z,{flush:"sync"}),l.getCurrentScope()&&l.onScopeDispose(U),{x:l.shallowReadonly(R),y:l.shallowReadonly(J),strategy:l.shallowReadonly(h),placement:l.shallowReadonly(C),middlewareData:l.shallowReadonly(F),isPositioned:l.shallowReadonly(f),floatingStyles:T,update:L}}function $i(t,n){const e=typeof t=="string"&&!n?`${t}Context`:n,s=Symbol(e);return[I=>{const V=l.inject(s,I);if(V||V===null)return V;throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},I=>(l.provide(s,I),I)]}function Wa(t,n,e){const s=e.originalEvent.target,I=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:e});n&&s.addEventListener(t,n,{once:!0}),s.dispatchEvent(I)}function Xa(t){return t==null}function eu(t,n){var e;const s=l.shallowRef();return l.watchEffect(()=>{s.value=t()},{...n,flush:(e=void 0)!=null?e:"sync"}),l.readonly(s)}function zd(t){return l.getCurrentScope()?(l.onScopeDispose(t),!0):!1}function nu(){const t=new Set,n=e=>{t.delete(e)};return{on:e=>{t.add(e);const s=()=>n(e);return zd(s),{off:s}},off:n,trigger:(...e)=>Promise.all(Array.from(t).map(s=>s(...e)))}}function du(t){let n=!1,e;const s=l.effectScope(!0);return(...I)=>(n||(e=s.run(()=>t(...I)),n=!0),e)}function su(t){let n=0,e,s;const I=()=>{n-=1,s&&n<=0&&(s.stop(),e=void 0,s=void 0)};return(...V)=>(n+=1,e||(s=l.effectScope(!0),e=s.run(()=>t(...V))),zd(I),e)}function fc(t){return typeof t=="function"?t():l.unref(t)}const mc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Iu=t=>typeof t<"u",au=t=>t!=null,Vu=Object.prototype.toString,bu=t=>Vu.call(t)==="[object Object]",Zu=()=>{},Rr=ou();function ou(){var t,n;return mc&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function mu(t){return l.getCurrentInstance()}function Gr(t,n=1e4){return l.customRef((e,s)=>{let I=fc(t),V;const b=()=>setTimeout(()=>{I=fc(t),s()},fc(n));return zd(()=>{clearTimeout(V)}),{get(){return e(),I},set(o){I=o,s(),clearTimeout(V),V=b()}}})}function Wu(t,n){mu()&&l.onBeforeUnmount(t,n)}function Jr(t,n,e={}){const{immediate:s=!0}=e,I=l.ref(!1);let V=null;function b(){V&&(clearTimeout(V),V=null)}function o(){I.value=!1,b()}function W(...m){b(),I.value=!0,V=setTimeout(()=>{I.value=!1,V=null,t(...m)},fc(n))}return s&&(I.value=!0,mc&&W()),zd(o),{isPending:l.readonly(I),start:W,stop:o}}function Bc(t){var n;const e=fc(t);return(n=e==null?void 0:e.$el)!=null?n:e}const ra=mc?window:void 0;function nI(...t){let n,e,s,I;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,s,I]=t,n=ra):[n,e,s,I]=t,!n)return Zu;Array.isArray(e)||(e=[e]),Array.isArray(s)||(s=[s]);const V=[],b=()=>{V.forEach(r=>r()),V.length=0},o=(r,R,J,h)=>(r.addEventListener(R,J,h),()=>r.removeEventListener(R,J,h)),W=l.watch(()=>[Bc(n),fc(I)],([r,R])=>{if(b(),!r)return;const J=bu(R)?{...R}:R;V.push(...e.flatMap(h=>s.map(C=>o(r,h,C,J))))},{immediate:!0,flush:"post"}),m=()=>{W(),b()};return zd(m),m}function Xu(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function ru(...t){let n,e,s={};t.length===3?(n=t[0],e=t[1],s=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,e=t[0],s=t[1]):(n=t[0],e=t[1]):(n=!0,e=t[0]);const{target:I=ra,eventName:V="keydown",passive:b=!1,dedupe:o=!1}=s,W=Xu(n);return nI(I,V,m=>{m.repeat&&fc(o)||W(m)&&e(m)},b)}function ur(){const t=l.ref(!1),n=l.getCurrentInstance();return n&&l.onMounted(()=>{t.value=!0},n),t}function Ru(t){const n=ur();return l.computed(()=>(n.value,!!t()))}function Gu(t){return JSON.parse(JSON.stringify(t))}function Ju(t,n,e={}){const{window:s=ra,...I}=e;let V;const b=Ru(()=>s&&"MutationObserver"in s),o=()=>{V&&(V.disconnect(),V=void 0)},W=l.computed(()=>{const J=fc(t),h=(Array.isArray(J)?J:[J]).map(Bc).filter(au);return new Set(h)}),m=l.watch(()=>W.value,J=>{o(),b.value&&s&&J.size&&(V=new MutationObserver(n),J.forEach(h=>V.observe(h,I)))},{immediate:!0,flush:"post"}),r=()=>V==null?void 0:V.takeRecords(),R=()=>{o(),m()};return zd(R),{isSupported:b,stop:R,takeRecords:r}}function Ut(t,n,e,s={}){var I,V,b;const{clone:o=!1,passive:W=!1,eventName:m,deep:r=!1,defaultValue:R,shouldEmit:J}=s,h=l.getCurrentInstance(),C=e||(h==null?void 0:h.emit)||((I=h==null?void 0:h.$emit)==null?void 0:I.bind(h))||((b=(V=h==null?void 0:h.proxy)==null?void 0:V.$emit)==null?void 0:b.bind(h==null?void 0:h.proxy));let F=m;n||(n="modelValue"),F=F||`update:${n.toString()}`;const f=L=>o?typeof o=="function"?o(L):Gu(L):L,T=()=>Iu(t[n])?f(t[n]):R,E=L=>{J?J(L)&&C(F,L):C(F,L)};if(W){const L=T(),U=l.ref(L);let v=!1;return l.watch(()=>t[n],z=>{v||(v=!0,U.value=f(z),l.nextTick(()=>v=!1))}),l.watch(U,z=>{!v&&(z!==t[n]||r)&&E(z)},{deep:r}),U}else return l.computed({get(){return T()},set(L){E(L)}})}function Ra(t){return t?t.flatMap(n=>n.type===l.Fragment?Ra(n.children):[n]):[]}const uu=["INPUT","TEXTAREA"];function hr(t,n,e,s={}){if(!n||s.enableIgnoredElement&&uu.includes(n.nodeName))return null;const{arrowKeyOptions:I="both",attributeName:V="[data-radix-vue-collection-item]",itemsArray:b=[],loop:o=!0,dir:W="ltr",preventScroll:m=!0,focus:r=!1}=s,[R,J,h,C,F,f]=[t.key==="ArrowRight",t.key==="ArrowLeft",t.key==="ArrowUp",t.key==="ArrowDown",t.key==="Home",t.key==="End"],T=h||C,E=R||J;if(!F&&!f&&(!T&&!E||I==="vertical"&&E||I==="horizontal"&&T))return null;const L=e?Array.from(e.querySelectorAll(V)):b;if(!L.length)return null;m&&t.preventDefault();let U=null;return E||T?U=Nr(L,n,{goForward:T?C:W==="ltr"?R:J,loop:o}):F?U=L.at(0)||null:f&&(U=L.at(-1)||null),r&&(U==null||U.focus()),U}function Nr(t,n,e,s=t.length){if(--s===0)return null;const I=t.indexOf(n),V=e.goForward?I+1:I-1;if(!e.loop&&(V<0||V>=t.length))return null;const b=(V+t.length)%t.length,o=t[b];return o?o.hasAttribute("disabled")&&o.getAttribute("disabled")!=="false"?Nr(t,o,e,s):o:null}function Ga(t){if(t===null||typeof t!="object")return!1;const n=Object.getPrototypeOf(t);return n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Ja(t,n,e=".",s){if(!Ga(n))return Ja(t,{},e);const I=Object.assign({},n);for(const V in t){if(V==="__proto__"||V==="constructor")continue;const b=t[V];b!=null&&(Array.isArray(b)&&Array.isArray(I[V])?I[V]=[...b,...I[V]]:Ga(b)&&Ga(I[V])?I[V]=Ja(b,I[V],(e?`${e}.`:"")+V.toString()):I[V]=b)}return I}function hu(t){return(...n)=>n.reduce((e,s)=>Ja(e,s,""),{})}const Nu=hu(),[ua,y_]=$i("ConfigProvider");let Cu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Yu=(t=21)=>{let n="",e=t;for(;e--;)n+=Cu[Math.random()*64|0];return n};const pu=su(()=>{const t=l.ref(new Map),n=l.ref(),e=l.computed(()=>{for(const b of t.value.values())if(b)return!0;return!1}),s=ua({scrollBody:l.ref(!0)});let I=null;const V=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=n.value??"",Rr&&(I==null||I()),n.value=void 0};return l.watch(e,(b,o)=>{var W;if(!mc)return;if(!b){o&&V();return}n.value===void 0&&(n.value=document.body.style.overflow);const m=window.innerWidth-document.documentElement.clientWidth,r={padding:m,margin:0},R=(W=s.scrollBody)!=null&&W.value?typeof s.scrollBody.value=="object"?Nu({padding:s.scrollBody.value.padding===!0?m:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?m:s.scrollBody.value.margin},r):r:{padding:0,margin:0};m>0&&(document.body.style.paddingRight=`${R.padding}px`,document.body.style.marginRight=`${R.margin}px`,document.body.style.setProperty("--scrollbar-width",`${m}px`),document.body.style.overflow="hidden"),Rr&&(I=nI(document,"touchmove",J=>{var h;J.target===document.documentElement&&(J.touches.length>1||(h=J.preventDefault)==null||h.call(J))},{passive:!1})),l.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),t});function ha(t){const n=Yu(6),e=pu();e.value.set(n,t??!1);const s=l.computed({get:()=>e.value.get(n)??!1,set:I=>e.value.set(n,I)});return Wu(()=>{e.value.delete(n)}),s}const Fu="data-radix-vue-collection-item";function Na(t,n=Fu){const e=t??Symbol();return{createCollection:s=>{const I=l.ref([]);function V(){const b=Bc(s);return b?I.value=Array.from(b.querySelectorAll(`[${n}]:not([data-disabled])`)):I.value=[]}return l.onBeforeUpdate(()=>{I.value=[]}),l.onMounted(V),l.onUpdated(V),l.watch(()=>s==null?void 0:s.value,V,{immediate:!0}),l.provide(e,I),I},injectCollection:()=>l.inject(e,l.ref([]))}}function Ed(t){const n=ua({dir:l.ref("ltr")});return l.computed(()=>{var e;return(t==null?void 0:t.value)||((e=n.dir)==null?void 0:e.value)||"ltr"})}function V1(t){const n=l.getCurrentInstance(),e=n==null?void 0:n.type.emits,s={};return e!=null&&e.length||console.warn(`No emitted event found. Please check component: ${n==null?void 0:n.type.__name}`),e==null||e.forEach(I=>{s[l.toHandlerKey(l.camelize(I))]=(...V)=>t(I,...V)}),s}let Ca=0;function Lu(){l.watchEffect(t=>{if(!mc)return;const n=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",n[0]??Cr()),document.body.insertAdjacentElement("beforeend",n[1]??Cr()),Ca++,t(()=>{Ca===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ca--})})}function Cr(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}function yu(t){return l.computed(()=>{var n;return fc(t)?!!((n=Bc(t))!=null&&n.closest("form")):!0})}function tn(t){const n=l.getCurrentInstance(),e=Object.keys((n==null?void 0:n.type.props)??{}).reduce((I,V)=>{const b=(n==null?void 0:n.type.props[V]).default;return b!==void 0&&(I[V]=b),I},{}),s=l.toRef(t);return l.computed(()=>{const I={},V=(n==null?void 0:n.vnode.props)??{};return Object.keys(V).forEach(b=>{I[l.camelize(b)]=V[b]}),Object.keys({...e,...I}).reduce((b,o)=>(s.value[o]!==void 0&&(b[o]=s.value[o]),b),{})})}function I0(t,n){const e=tn(t),s=n?V1(n):{};return l.computed(()=>({...e.value,...s}))}function Ul(){const t=l.getCurrentInstance(),n=l.ref(),e=l.computed(()=>{var b,o;return["#text","#comment"].includes((b=n.value)==null?void 0:b.$el.nodeName)?(o=n.value)==null?void 0:o.$el.nextElementSibling:Bc(n)}),s=Object.assign({},t.exposed),I={};for(const b in t.props)Object.defineProperty(I,b,{enumerable:!0,configurable:!0,get:()=>t.props[b]});if(Object.keys(s).length>0)for(const b in s)Object.defineProperty(I,b,{enumerable:!0,configurable:!0,get:()=>s[b]});Object.defineProperty(I,"$el",{enumerable:!0,configurable:!0,get:()=>t.vnode.el}),t.exposed=I;function V(b){n.value=b,!(b instanceof Element||!b)&&(Object.defineProperty(I,"$el",{enumerable:!0,configurable:!0,get:()=>b.$el}),t.exposed=I)}return{forwardRef:V,currentRef:n,currentElement:e}}function wu(t,n){const e=Gr(!1,300),s=l.ref(null),I=nu();function V(){s.value=null,e.value=!1}function b(o,W){const m=o.currentTarget,r={x:o.clientX,y:o.clientY},R=Uu(r,m.getBoundingClientRect()),J=xu(r,R),h=fu(W.getBoundingClientRect()),C=ku([...J,...h]);s.value=C,e.value=!0}return l.watchEffect(o=>{if(t.value&&n.value){const W=r=>b(r,n.value),m=r=>b(r,t.value);t.value.addEventListener("pointerleave",W),n.value.addEventListener("pointerleave",m),o(()=>{var r,R;(r=t.value)==null||r.removeEventListener("pointerleave",W),(R=n.value)==null||R.removeEventListener("pointerleave",m)})}}),l.watchEffect(o=>{if(s.value){const W=m=>{var r,R;if(!s.value)return;const J=m.target,h={x:m.clientX,y:m.clientY},C=((r=t.value)==null?void 0:r.contains(J))||((R=n.value)==null?void 0:R.contains(J)),F=!Bu(h,s.value);C?V():F&&(V(),I.trigger())};document.addEventListener("pointermove",W),o(()=>document.removeEventListener("pointermove",W))}}),{isPointerInTransit:e,onPointerExit:I.on}}function Uu(t,n){const e=Math.abs(n.top-t.y),s=Math.abs(n.bottom-t.y),I=Math.abs(n.right-t.x),V=Math.abs(n.left-t.x);switch(Math.min(e,s,I,V)){case V:return"left";case I:return"right";case e:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function xu(t,n,e=5){const s=[];switch(n){case"top":s.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":s.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":s.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":s.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return s}function fu(t){const{top:n,right:e,bottom:s,left:I}=t;return[{x:I,y:n},{x:e,y:n},{x:e,y:s},{x:I,y:s}]}function Bu(t,n){const{x:e,y:s}=t;let I=!1;for(let V=0,b=n.length-1;V<n.length;b=V++){const o=n[V].x,W=n[V].y,m=n[b].x,r=n[b].y;W>s!=r>s&&e<(m-o)*(s-W)/(r-W)+o&&(I=!I)}return I}function ku(t){const n=t.slice();return n.sort((e,s)=>e.x<s.x?-1:e.x>s.x?1:e.y<s.y?-1:e.y>s.y?1:0),Qu(n)}function Qu(t){if(t.length<=1)return t.slice();const n=[];for(let s=0;s<t.length;s++){const I=t[s];for(;n.length>=2;){const V=n[n.length-1],b=n[n.length-2];if((V.x-b.x)*(I.y-b.y)>=(V.y-b.y)*(I.x-b.x))n.pop();else break}n.push(I)}n.pop();const e=[];for(let s=t.length-1;s>=0;s--){const I=t[s];for(;e.length>=2;){const V=e[e.length-1],b=e[e.length-2];if((V.x-b.x)*(I.y-b.y)>=(V.y-b.y)*(I.x-b.x))e.pop();else break}e.push(I)}return e.pop(),n.length===1&&e.length===1&&n[0].x===e[0].x&&n[0].y===e[0].y?n:n.concat(e)}var gu=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},jd=new WeakMap,dI=new WeakMap,sI={},Ya=0,Yr=function(t){return t&&(t.host||Yr(t.parentNode))},vu=function(t,n){return n.map(function(e){if(t.contains(e))return e;var s=Yr(e);return s&&t.contains(s)?s:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e})},Su=function(t,n,e,s){var I=vu(n,Array.isArray(t)?t:[t]);sI[e]||(sI[e]=new WeakMap);var V=sI[e],b=[],o=new Set,W=new Set(I),m=function(R){!R||o.has(R)||(o.add(R),m(R.parentNode))};I.forEach(m);var r=function(R){!R||W.has(R)||Array.prototype.forEach.call(R.children,function(J){if(o.has(J))r(J);else{var h=J.getAttribute(s),C=h!==null&&h!=="false",F=(jd.get(J)||0)+1,f=(V.get(J)||0)+1;jd.set(J,F),V.set(J,f),b.push(J),F===1&&C&&dI.set(J,!0),f===1&&J.setAttribute(e,"true"),C||J.setAttribute(s,"true")}})};return r(n),o.clear(),Ya++,function(){b.forEach(function(R){var J=jd.get(R)-1,h=V.get(R)-1;jd.set(R,J),V.set(R,h),J||(dI.has(R)||R.removeAttribute(s),dI.delete(R)),h||R.removeAttribute(e)}),Ya--,Ya||(jd=new WeakMap,jd=new WeakMap,dI=new WeakMap,sI={})}},Tu=function(t,n,e){e===void 0&&(e="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),I=gu(t);return I?(s.push.apply(s,Array.from(I.querySelectorAll("[aria-live]"))),Su(s,I,e,"aria-hidden")):function(){return null}};function pa(t){let n;l.watch(()=>Bc(t),e=>{e?n=Tu(e):n&&n()}),l.onUnmounted(()=>{n&&n()})}let Hu=0;function Zt(t,n="radix"){const{useId:e}=ua({useId:void 0});return e&&typeof e=="function"?`${n}-${e()}`:`${n}-${++Hu}`}function zu(t){const n=l.ref(),e=l.computed(()=>{var I;return((I=n.value)==null?void 0:I.width)??0}),s=l.computed(()=>{var I;return((I=n.value)==null?void 0:I.height)??0});return l.onMounted(()=>{const I=Bc(t);if(I){n.value={width:I.offsetWidth,height:I.offsetHeight};const V=new ResizeObserver(b=>{if(!Array.isArray(b)||!b.length)return;const o=b[0];let W,m;if("borderBoxSize"in o){const r=o.borderBoxSize,R=Array.isArray(r)?r[0]:r;W=R.inlineSize,m=R.blockSize}else W=I.offsetWidth,m=I.offsetHeight;n.value={width:W,height:m}});return V.observe(I,{box:"border-box"}),()=>V.unobserve(I)}else n.value=void 0}),{width:e,height:s}}function Eu(t,n){const e=l.ref(t);function s(I){return n[e.value][I]??e.value}return{state:e,dispatch:I=>{e.value=s(I)}}}function ju(t){const n=Gr("",1e3);return{search:n,handleTypeaheadSearch:(e,s)=>{var I,V;if(!(t!=null&&t.value)&&!s)return;n.value=n.value+e;const b=(t==null?void 0:t.value)??s,o=document.activeElement,W=((V=(I=b.find(J=>J===o))==null?void 0:I.textContent)==null?void 0:V.trim())??"",m=b.map(J=>{var h;return((h=J.textContent)==null?void 0:h.trim())??""}),r=Du(m,n.value,W),R=b.find(J=>{var h;return((h=J.textContent)==null?void 0:h.trim())===r});return R&&R.focus(),R},resetTypeahead:()=>{n.value=""}}}function Mu(t,n){return t.map((e,s)=>t[(n+s)%t.length])}function Du(t,n,e){const s=n.length>1&&Array.from(n).every(o=>o===n[0])?n[0]:n,I=e?t.indexOf(e):-1;let V=Mu(t,Math.max(I,0));s.length===1&&(V=V.filter(o=>o!==e));const b=V.find(o=>o.toLowerCase().startsWith(s.toLowerCase()));return b!==e?b:void 0}const Fa=l.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(t,{attrs:n,slots:e}){return()=>{var s,I;if(!e.default)return null;const V=Ra(e.default()),b=V.findIndex(r=>r.type!==l.Comment);if(b===-1)return V;const o=V[b];(s=o.props)==null||delete s.ref;const W=o.props?l.mergeProps(n,o.props):n;n.class&&(I=o.props)!=null&&I.class&&delete o.props.class;const m=l.cloneVNode(o,W);for(const r in W)r.startsWith("on")&&(m.props||(m.props={}),m.props[r]=W[r]);return V.length===1?m:(V[b]=m,V)}}}),Kl=l.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(t,{attrs:n,slots:e}){const s=t.asChild?"template":t.as;return typeof s=="string"&&["area","img","input"].includes(s)?()=>l.h(s,n):s!=="template"?()=>l.h(t.as,n,{default:e.default}):()=>l.h(Fa,n,{default:e.default})}});function pr(){const t=l.ref(),n=l.computed(()=>{var e,s;return["#text","#comment"].includes((e=t.value)==null?void 0:e.$el.nodeName)?(s=t.value)==null?void 0:s.$el.nextElementSibling:Bc(t)});return{primitiveElement:t,currentElement:n}}const[Fr,Ou]=$i("CollapsibleRoot"),Pu=l.defineComponent({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(t,{expose:n,emit:e}){const s=t,I=Ut(s,"open",e,{defaultValue:s.defaultOpen,passive:s.open===void 0}),V=Ut(s,"disabled");return Ou({contentId:"",disabled:V,open:I,onOpenToggle:()=>{I.value=!I.value}}),n({open:I}),Ul(),(b,o)=>(l.openBlock(),l.createBlock(l.unref(Kl),{as:b.as,"as-child":s.asChild,"data-state":s.open?"open":"closed","data-disabled":s.disabled?"":void 0},{default:l.withCtx(()=>[l.renderSlot(b.$slots,"default",{open:l.unref(I)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),Ku=l.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const n=t;Ul();const e=Fr();return(s,I)=>{var V,b;return l.openBlock(),l.createBlock(l.unref(Kl),{type:s.as==="button"?"button":void 0,as:s.as,"as-child":n.asChild,"aria-controls":l.unref(e).contentId,"aria-expanded":l.unref(e).open.value,"data-state":l.unref(e).open.value?"open":"closed","data-disabled":(V=l.unref(e).disabled)!=null&&V.value?"":void 0,disabled:(b=l.unref(e).disabled)==null?void 0:b.value,onClick:l.unref(e).onOpenToggle},{default:l.withCtx(()=>[l.renderSlot(s.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}});function _u(t,n){const e=l.ref({}),s=l.ref("none"),I=t.value?"mounted":"unmounted",{state:V,dispatch:b}=Eu(I,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),o=J=>{var h;if(mc){const C=new CustomEvent(J,{bubbles:!1,cancelable:!1});(h=n.value)==null||h.dispatchEvent(C)}};l.watch(t,async(J,h)=>{var C;const F=h!==J;if(await l.nextTick(),F){const f=s.value,T=II(n.value);J?(b("MOUNT"),o("enter"),T==="none"&&o("after-enter")):T==="none"||((C=e.value)==null?void 0:C.display)==="none"?(b("UNMOUNT"),o("leave"),o("after-leave")):h&&f!==T?(b("ANIMATION_OUT"),o("leave")):(b("UNMOUNT"),o("after-leave"))}},{immediate:!0});const W=J=>{const h=II(n.value),C=h.includes(J.animationName),F=V.value==="mounted"?"enter":"leave";J.target===n.value&&C&&(o(`after-${F}`),b("ANIMATION_END")),J.target===n.value&&h==="none"&&b("ANIMATION_END")},m=J=>{J.target===n.value&&(s.value=II(n.value))},r=l.watch(n,(J,h)=>{J?(e.value=getComputedStyle(J),J.addEventListener("animationstart",m),J.addEventListener("animationcancel",W),J.addEventListener("animationend",W)):(b("ANIMATION_END"),h==null||h.removeEventListener("animationstart",m),h==null||h.removeEventListener("animationcancel",W),h==null||h.removeEventListener("animationend",W))},{immediate:!0}),R=l.watch(V,()=>{const J=II(n.value);s.value=V.value==="mounted"?J:"none"});return l.onUnmounted(()=>{r(),R()}),{isPresent:l.computed(()=>["mounted","unmountSuspended"].includes(V.value))}}function II(t){return t&&getComputedStyle(t).animationName||"none"}const cn=l.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:n,expose:e}){var s;const{present:I,forceMount:V}=l.toRefs(t),b=l.ref(),{isPresent:o}=_u(I,b);e({present:o});let W=n.default({present:o});W=Ra(W||[]);const m=l.getCurrentInstance();if(W&&(W==null?void 0:W.length)>1){const r=(s=m==null?void 0:m.parent)!=null&&s.type.name?`<${m.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${r}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(R=>` - ${R}`).join(` `)].join(` `))}return()=>V.value||I.value||o.value?l.h(n.default({present:o})[0],{ref:r=>{const R=Bc(r);return typeof(R==null?void 0:R.hasAttribute)>"u"||(R!=null&&R.hasAttribute("data-radix-popper-content-wrapper")?b.value=R.firstElementChild:b.value=R),R}}):null}}),Au=l.defineComponent({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){const n=t,e=Fr();e.contentId||(e.contentId=Zt(void 0,"radix-vue-collapsible-content"));const s=l.ref(),{forwardRef:I,currentElement:V}=Ul(),b=l.ref(0),o=l.ref(0),W=l.computed(()=>e.open.value),m=l.ref(W.value),r=l.ref();return l.watch(()=>{var R;return[W.value,(R=s.value)==null?void 0:R.present]},async()=>{await l.nextTick();const R=V.value;if(!R)return;r.value=r.value||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const J=R.getBoundingClientRect();o.value=J.height,b.value=J.width,m.value||(R.style.transitionDuration=r.value.transitionDuration,R.style.animationName=r.value.animationName)},{immediate:!0}),l.onMounted(()=>{requestAnimationFrame(()=>{m.value=!1})}),(R,J)=>(l.openBlock(),l.createBlock(l.unref(cn),{ref_key:"presentRef",ref:s,present:R.forceMount||l.unref(e).open.value,"force-mount":!0},{default:l.withCtx(()=>{var h,C;return[l.createVNode(l.unref(Kl),l.mergeProps(R.$attrs,{id:l.unref(e).contentId,ref:l.unref(I),"as-child":n.asChild,as:R.as,"data-state":l.unref(e).open.value?"open":"closed","data-disabled":(h=l.unref(e).disabled)!=null&&h.value?"":void 0,hidden:!((C=s.value)!=null&&C.present),style:{"--radix-collapsible-content-height":`${o.value}px`,"--radix-collapsible-content-width":`${b.value}px`}}),{default:l.withCtx(()=>{var F;return[(F=s.value)!=null&&F.present?l.renderSlot(R.$slots,"default",{key:0}):l.createCommentVNode("",!0)]}),_:3},16,["id","as-child","as","data-state","data-disabled","hidden","style"])]}),_:3},8,["present"]))}});function Lr({type:t,defaultValue:n,modelValue:e}){const s=e||n;if(Xa(t)&&Xa(e)&&Xa(n))throw new Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(e!==void 0&&n!==void 0&&typeof e!=typeof n)throw new Error(`Invalid prop \`value\` of value \`${e}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${n}\`. The \`value\` prop must be: ${t==="single"?"- a string":t==="multiple"?"- an array of strings":`- a string - an array of strings`} - \`undefined\``);const I=e!==void 0||n!==void 0;if(t&&I){const V=Array.isArray(e)||Array.isArray(n),b=e!==void 0?"modelValue":"defaultValue",o=b==="modelValue"?typeof e:typeof n;if(t==="single"&&V)return console.error(`Invalid prop \`${b}\` of type ${o} supplied with type \`single\`. The \`modelValue\` prop must be a string or \`undefined\`. You can remove the \`type\` prop to let the component infer the type from the ${b} prop.`),"multiple";if(t==="multiple"&&!V)return console.error(`Invalid prop \`${b}\` of type ${o} supplied with type \`multiple\`. The \`modelValue\` prop must be an array of strings or \`undefined\`. You can remove the \`type\` prop to let the component infer the type from the ${b} prop.`),"single"}return I?Array.isArray(s)?"multiple":"single":t}function $u({type:t,defaultValue:n,modelValue:e}){return t||Lr({type:t,defaultValue:n,modelValue:e})}function qu({type:t,defaultValue:n}){return n!==void 0?n:t==="single"?void 0:[]}function lh(t,n){const e=l.ref($u(t)),s=Ut(t,"modelValue",n,{defaultValue:qu(t),passive:t.modelValue===void 0,deep:!0});l.watch(()=>[t.type,t.modelValue,t.defaultValue],()=>{const b=Lr(t);e.value!==b&&(e.value=b)},{immediate:!0});function I(b){if(e.value==="single")s.value=b===s.value?void 0:b;else{const o=s.value||[];if(o.includes(b)){const W=o.findIndex(m=>m===b);o.splice(W,1)}else o.push(b);s.value=o,n("update:modelValue",s.value)}}const V=l.computed(()=>e.value==="single");return{modelValue:s,type:e,changeModelValue:I,isSingle:V}}const[aI,ih]=$i("AccordionRoot"),th=l.defineComponent({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){const e=t,s=n,{dir:I,disabled:V}=l.toRefs(e),b=Ed(I),{modelValue:o,changeModelValue:W,isSingle:m}=lh(e,s),{forwardRef:r,currentElement:R}=Ul();return ih({disabled:V,direction:b,orientation:e.orientation,parentElement:R,isSingle:m,collapsible:e.collapsible,modelValue:o,changeModelValue:W}),(J,h)=>(l.openBlock(),l.createBlock(l.unref(Kl),{ref:l.unref(r),"as-child":J.asChild,as:J.as},{default:l.withCtx(()=>[l.renderSlot(J.$slots,"default",{modelValue:l.unref(o)})]),_:3},8,["as-child","as"]))}}),[La,ch]=$i("AccordionItem"),eh=l.defineComponent({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{}},setup(t,{expose:n}){const e=t,s=aI(),I=l.computed(()=>s.isSingle.value?e.value===s.modelValue.value:Array.isArray(s.modelValue.value)&&s.modelValue.value.includes(e.value)),V=l.computed(()=>s.disabled.value||e.disabled||s.isSingle.value&&I.value&&!s.collapsible),b=l.computed(()=>V.value?"":void 0),o=l.computed(()=>I.value?"open":"closed");n({open:I,dataDisabled:b});const{currentRef:W,currentElement:m}=Ul();ch({open:I,dataState:o,disabled:V,dataDisabled:b,triggerId:"",currentRef:W,currentElement:m,value:l.computed(()=>e.value)});function r(R){hr(R,m.value,s.parentElement.value,{arrowKeyOptions:s.orientation,dir:s.direction.value,focus:!0})}return(R,J)=>(l.openBlock(),l.createBlock(l.unref(Pu),{"data-orientation":l.unref(s).orientation,"data-disabled":b.value,"data-state":o.value,disabled:V.value,open:I.value,as:e.as,"as-child":e.asChild,onKeydown:l.withKeys(r,["up","down","left","right","home","end"])},{default:l.withCtx(()=>[l.renderSlot(R.$slots,"default",{open:I.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child"]))}}),nh=l.defineComponent({__name:"AccordionContent",props:{asChild:{type:Boolean},as:{}},setup(t){const n=t,e=aI(),s=La();return Ul(),(I,V)=>(l.openBlock(),l.createBlock(l.unref(Au),{role:"region",hidden:!l.unref(s).open.value,"as-child":n.asChild,"aria-labelledby":l.unref(s).triggerId,"data-state":l.unref(s).dataState.value,"data-disabled":l.unref(s).dataDisabled.value,"data-orientation":l.unref(e).orientation,style:{"--radix-accordion-content-width":"var(--radix-collapsible-content-width)","--radix-accordion-content-height":"var(--radix-collapsible-content-height)"}},{default:l.withCtx(()=>[l.renderSlot(I.$slots,"default")]),_:3},8,["hidden","as-child","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),dh=l.defineComponent({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(t){const n=t,e=aI(),s=La();return Ul(),(I,V)=>(l.openBlock(),l.createBlock(l.unref(Kl),{as:n.as,"as-child":n.asChild,"data-orientation":l.unref(e).orientation,"data-state":l.unref(s).dataState.value,"data-disabled":l.unref(s).dataDisabled.value},{default:l.withCtx(()=>[l.renderSlot(I.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),sh=l.defineComponent({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(t){const n=t,e=aI(),s=La();s.triggerId||(s.triggerId=Zt(void 0,"radix-vue-accordion-trigger"));function I(){s.disabled.value||e.changeModelValue(s.value.value)}return(V,b)=>(l.openBlock(),l.createBlock(l.unref(Ku),{id:l