PageSourceSearch

https://getaigist.com/_nuxt/42SHPmbc.js

js getaigist.com collected 2026-10-03 19:54:52 UTC 30,019 bytes, 1 lines download raw bytes

1import{aG as pt,x as k,e as R,B as Ue,aH as ht,H as mt,g as gt,aY as wt,R as vt,h as le,r as ae,y as Ke,G as he,aZ as Ze,o as ne,m as Je,w as me,n as P,P as Ee,c as fe,v as Le,z as be,a_ as yt,a$ as xt,b0 as ee,ar as bt,b1 as At,b as Qe,K as et,b2 as Ct}from"./BI_ahMBE.js";function zn(e){const t=pt({dir:k("ltr")});return R(()=>e?.value||t.dir?.value||"ltr")}let Ae=0;function Hn(){Ue(e=>{if(!ht)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??We()),document.body.insertAdjacentElement("beforeend",t[1]??We()),Ae++,e(()=>{Ae===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),Ae--})})}function We(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Ot(e){const t=k(),n=R(()=>t.value?.width??0),o=R(()=>t.value?.height??0);return mt(()=>{const i=gt(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const l=r[0];let a,c;if("borderBoxSize"in l){const u=l.borderBoxSize,p=Array.isArray(u)?u[0]:u;a=p.inlineSize,c=p.blockSize}else a=i.offsetWidth,c=i.offsetHeight;t.value={width:a,height:c}});return s.observe(i,{box:"border-box"}),()=>s.unobserve(i)}else t.value=void 0}),{width:n,height:o}}function Nn(e){const t=wt("",1e3);return{search:t,handleTypeaheadSearch:(i,s)=>{t.value=t.value+i;{const r=vt(),l=s.map(d=>({...d,textValue:d.value?.textValue??d.ref.textContent?.trim()??""})),a=l.find(d=>d.ref===r),c=l.map(d=>d.textValue),u=Pt(c,t.value,a?.textValue),p=l.find(d=>d.textValue===u);return p&&p.ref.focus(),p?.ref}},resetTypeahead:()=>{t.value=""}}}function Rt(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Pt(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let r=Rt(e,Math.max(s,0));i.length===1&&(r=r.filter(c=>c!==n));const a=r.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}const[tt,St]=Ke("PopperRoot");var _t=le({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=k();return St({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ae(n.$slots,"default")}}),In=_t,Et=le({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=he(),i=tt();return Ze(()=>{i.onAnchorChange(t.reference??o.value)}),(s,r)=>(ne(),Je(P(Ee),{ref:P(n),as:s.as,"as-child":s.asChild},{default:me(()=>[ae(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Xn=Et;const Lt={key:0,d:"M0 0L6 6L12 0"},Dt={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var Tt=le({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return he(),(n,o)=>(ne(),Je(P(Ee),Le(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:me(()=>[ae(n.$slots,"default",{},()=>[n.rounded?(ne(),fe("path",Dt)):(ne(),fe("path",Lt))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),$t=Tt;function Bt(e){return e!==null}function kt(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:i}=t,r=i.arrow?.centerOffset!==0,l=r?0:e.arrowWidth,a=r?0:e.arrowHeight,[c,u]=Re(n),p={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+l/2,f=(i.arrow?.y??0)+a/2;let h="",m="";return c==="bottom"?(h=r?p:`${d}px`,m=`${-a}px`):c==="top"?(h=r?p:`${d}px`,m=`${o.floating.height+a}px`):c==="right"?(h=`${-a}px`,m=r?p:`${f}px`):c==="left"&&(h=`${o.floating.width+a}px`,m=r?p:`${f}px`),{data:{x:h,y:m}}}}}function Re(e){const[t,n="center"]=e.split("-");return[t,n]}const Mt=["top","right","bottom","left"],j=Math.min,z=Math.max,ue=Math.round,ce=Math.floor,H=e=>({x:e,y:e}
1),Ft={left:"right",right:"left",bottom:"top",top:"bottom"};function nt(e,t,n){return z(e,j(t,n))}function N(e,t){return typeof e=="function"?e(t):e}function Y(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function De(e){return e==="x"?"y":"x"}function Te(e){return e==="y"?"height":"width"}function M(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function $e(e){return De(M(e))}function Wt(e,t,n){n===void 0&&(n=!1);const o=ie(e),i=$e(e),s=Te(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=de(r)),[r,de(r)]}function Vt(e){const t=de(e);return[Pe(e),t,Pe(t)]}function Pe(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ve=["left","right"],qe=["right","left"],qt=["top","bottom"],zt=["bottom","top"];function Ht(e,t,n){switch(e){case"top":case"bottom":return n?t?qe:Ve:t?Ve:qe;case"left":case"right":return t?qt:zt;default:return[]}}function Nt(e,t,n,o){const i=ie(e);let s=Ht(Y(e),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),t&&(s=s.concat(s.map(Pe)))),s}function de(e){const t=Y(e);return Ft[t]+e.slice(t.length)}function It(e){var t,n,o,i;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(i=e.left)!=null?i:0}}function ot(e){return typeof e!="number"?It(e):{top:e,right:e,bottom:e,left:e}}function pe(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function ze(e,t,n){let{reference:o,floating:i}=e;const s=M(t),r=$e(t),l=Te(r),a=Y(t),c=s==="y",u=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2;let f;switch(a){case"top":f={x:u,y:o.y-i.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:p};break;case"left":f={x:o.x-i.width,y:p};break;default:f={x:o.x,y:o.y}}const h=ie(t);return h&&(f[r]+=d*(h==="end"?1:-1)*(n&&c?-1:1)),f}async function Xt(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:r,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:f=0}=N(t,e),h=ot(f),g=l[d?p==="floating"?"reference":"floating":p],w=pe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),v=p==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},C=pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:x,strategy:a}):v);return{top:(w.top-C.top+h.top)/b.y,bottom:(C.bottom-w.bottom+h.bottom)/b.y,left:(w.left-C.left+h.left)/b.x,right:(C.right-w.right+h.right)/b.x}}const jt=50,Yt=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:Xt},a=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=ze(c,o,a),d=o,f=0;const h={};for(let m=0;m<s.length;m++){const g=s[m];if(!g)continue;const{name:w,fn:v}=g,{x,y:b,data:C,reset:A}=await v({x:u,y:p,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});u=x??u,p=b??p,h[w]={...h[w],...C},A&&f<jt&&(f++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(c=A.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:u,y:p}=ze(c,d,a)),m=-1)}return{x:u,y:p,placement:d,strategy:i,middlewareData:h}},Gt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:s,platform:r,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=N(e,t)||{};if(c==null)return{};const p=ot(u),d={x:n,y:o},f=$e(i),h=Te(f),m=await r.getDimensions(c),g=f==="y",w=g?"top":"left",v=g?"bottom":"right",x=g?"clientHeight":"clientWidth",b=s.reference[h]+s.reference[f]-d[f]-s.floating[h],C=d[f]-s.reference[f],A=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let y=A?A[x]:0;(!y||!await(r.isElement==null?void 0:r.isElement(A)))&&(y=l.floating[x]||s.floating[h]);const O=b/2-C/2,_=y/2-m[h]/2-1,S=j(p[w],_),U=j(p[v],_),L=y-m[h]-U,D=y/2-m[h]/2+O,$=nt(S,D,L),V=!a.arrow&&ie(i)!=null&&D!==$&&s.reference[h]/2-(D<S?S:U)-m[h]/2<0,B=V?D<S?D-S:D-L:0;return{[f]:d[f]+B,data:{[f]:$,centerOffset:D-$-B,...V&&{alignmentOffset:B}},reset:V}}}),Ut=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=N(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=Y(i),v=M(l),x=Y(l)===l,b=await(a.isRTL==null?void 0:a.isRTL(c.floating)),C=d||(x||!m?[de(l)]:Vt(l)),A=h!=="none";!d&&A&&C.push(...Nt(l,m,h,b));const y=[l,...C],O=await a.detectOverflow(t,g),_=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&_.push(O[w]),p){const $=Wt(i,r,b);_.push(O[$[0]],O[$[1]])}if(S=[...S,{placement:i,overflows:_}],!_.every($=>$<=0)){var U,L;const $=(((U=s.flip)==null?void 0:U.index)||0)+1,V=y[$];if(V&&(!(p==="alignment"?v!==M(V):!1)||S.every(E=>
1M(E.placement)===v?E.overflows[0]>0:!0)))return{data:{index:$,overflows:S},reset:{placement:V}};let B=(L=S.filter(q=>q.overflows[0]<=0).sort((q,E)=>q.overflows[1]-E.overflows[1])[0])==null?void 0:L.placement;if(!B)switch(f){case"bestFit":{var D;const q=(D=S.filter(E=>{if(A){const X=M(E.placement);return X===v||X==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(X=>X>0).reduce((X,dt)=>X+dt,0)]).sort((E,X)=>E[1]-X[1])[0])==null?void 0:D[0];q&&(B=q);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function He(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ne(e){return Mt.some(t=>e[t]>=0)}const Kt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:i="referenceHidden",...s}=N(e,t);switch(i){case"referenceHidden":{const r=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=He(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ne(l)}}}case"escaped":{const r=await o.detectOverflow(t,{...s,altBoundary:!0}),l=He(r,n.floating);return{data:{escapedOffsets:l,escaped:Ne(l)}}}default:return{}}}}},it=new Set(["left","top"]);async function Zt(e,t){const{placement:n,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=Y(n),l=ie(n),a=M(n)==="y",c=it.has(r)?-1:1,u=s&&a?-1:1,p=N(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof h=="number"&&(f=l==="end"?h*-1:h),a?{x:f*u,y:d*c}:{x:d*c,y:f*u}}const Jt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:s,placement:r,middlewareData:l}=t,a=await Zt(t,e);return r===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:s+a.y,data:{...a,placement:r}}}}},Qt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:s}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x,y:b}=v;return{x,y:b}}},...c}=N(e,t),u={x:n,y:o},p=await s.detectOverflow(t,c),d=M(i),f=De(d);let h=u[f],m=u[d];const g=(v,x)=>nt(x+p[v==="y"?"top":"left"],x,x-p[v==="y"?"bottom":"right"]);r&&(h=g(f,h)),l&&(m=g(d,m));const w=a.fn({...t,[f]:h,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[f]:r,[d]:l}}}}}},en=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:i,y:s,placement:r,rects:l,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:p=!0}=N(e,t),d={x:i,y:s},f=M(r),h=De(f);let m=d[h],g=d[f];const w=N(c,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const C=h==="y"?"height":"width",A=l.reference[h]-l.floating[C]+v.mainAxis,y=l.reference[h]+l.reference[C]-v.mainAxis;m<A?m=A:m>y&&(m=y)}if(p){var x,b;const C=h==="y"?"width":"height",A=it.has(Y(r)),y=l.reference[f]-l.floating[C]+(A&&((x=a.offset)==null?void 0:x[f])||0)+(A?0:v.crossAxis),O=l.reference[f]+l.reference[C]+(A?0:((b=a.offset)==null?void 0:b[f])||0)-(A?v.crossAxis:0);g<y?g=y:g>O&&(g=O)}return{[h]:m,[f]:g}}}},tn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:r=()=>{},...l}=N(e,t),a=await i.detectOverflow(t,l),c=Y(n),u=ie(n),p=M(n)==="y",{width:d,height:f}=o.floating;let h,m;c==="top"||c==="bottom"?(h=c,m=u===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(m=c,h=u==="end"?"top":"bottom");const g=f-a.top-a.bottom,w=d-a.left-a.right,v=j(f-a[h],g),x=j(d-a[m],w),b=t.middlewareData.shift,C=!b;let A=v,y=x;b!=null&&b.enabled.x&&(y=w),b!=null&&b.enabled.y&&(A=g),C&&!u&&(p?y=d-2*z(a.left,a.right):A=f-2*z(a.top,a.bottom)),await r({...t,availableWidth:y,availableHeight:A});const O=await i.getDimensions(s.floating);return d!==O.width||f!==O.height?{reset:{rects:!0}}:{}}}};function ge(){return typeof window<"u"}function Q(e){return Be(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function I(e){var t;return(t=(Be(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Be(e){return ge()?e instanceof Node||e instanceof T(e).Node:!1}function F(e){return ge()?e instanceof Element||e instanceof T(e).Element:!1}function G(e){return ge()?e instanceof HTMLElement||e instanceof T(e).HTMLElement:!1}function Ie(e){return!ge()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof T(e).ShadowRoot}function we(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&i!=="inline"&&i!=="contents"}function nn(e){return/^(table|td|th)$/.test(Q(e))}function ve(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const on=/transform|translate|scale|rotate|perspective|filter/,rn=/paint|layout|strict|content/,K=e=>!!e&&e!=="none";let Ce;function ke(e){const t=F(e)?W(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!Me()&&(K(t.backdropFilter)||K(t.filter))||on.test(t.willChange||"")||rn.test(t.contain||"")}function sn(e){let t=Z(e);for(;G(t)&&!re(t);){if(ke(t))return t;if(ve(t))return null;t=Z(t)}return null}function Me(){return Ce==null&&(Ce=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ce}function re(e){return/^(html|body|#document)$/.test(Q(e))}function W(e){return T(e).getComputedStyle(e)}function ye(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(Q(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ie(e)&&e.host||I(e);return Ie(t)?t.host:t}function rt(e){const t=Z(e);return re(t)?(e.ownerDocument||e).body:G(t)&&we(t)?t:rt(t)}function se(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=rt(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),r=T(i);if(s){const l=Se(r);
1return t.concat(r,r.visualViewport||[],we(i)?i:[],l&&n?se(l):[])}else return t.concat(i,se(i,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function st(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=G(e),s=i?e.offsetWidth:n,r=i?e.offsetHeight:o,l=ue(n)!==s||ue(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function Fe(e){return F(e)?e:e.contextElement}function oe(e){const t=Fe(e);if(!G(t))return H(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:s}=st(t);let r=(s?ue(n.width):n.width)/o,l=(s?ue(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const ln=H(0);function lt(e){const t=T(e);return!Me()||!t.visualViewport?ln:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function an(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===T(e)}function J(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Fe(e);let r=H(1);t&&(o?F(o)&&(r=oe(o)):r=oe(e));const l=an(s,n,o)?lt(s):H(0);let a=(i.left+l.x)/r.x,c=(i.top+l.y)/r.y,u=i.width/r.x,p=i.height/r.y;if(s&&o){const d=T(s),f=F(o)?T(o):o;let h=d,m=Se(h);for(;m&&f!==h;){const g=oe(m),w=m.getBoundingClientRect(),v=W(m),x=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*g.x,b=w.top+(m.clientTop+parseFloat(v.paddingTop))*g.y;a*=g.x,c*=g.y,u*=g.x,p*=g.y,a+=x,c+=b,h=T(m),m=Se(h)}}return pe({width:u,height:p,x:a,y:c})}function xe(e,t){const n=ye(e).scrollLeft;return t?t.left+n:J(I(e)).left+n}function at(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-xe(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function cn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const s=i==="fixed",r=I(o),l=t?ve(t.floating):!1;if(o===r||l&&s)return n;let a={scrollLeft:0,scrollTop:0},c=H(1);const u=H(0),p=G(o);if((p||!s)&&((Q(o)!=="body"||we(r))&&(a=ye(o)),p)){const f=J(o);c=oe(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const d=r&&!p&&!s?at(r,a):H(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-a.scrollTop*c.y+u.y+d.y}}function fn(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function un(e){const t=ye(e),n=e.ownerDocument.body,o=z(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=z(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+xe(e);const r=-t.scrollTop;return W(n).direction==="rtl"&&(s+=z(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:r}}const dn=25;function pn(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",i=T(e),s=I(e),r=i.visualViewport;let l=s.clientWidth,a=s.clientHeight,c=0,u=0;if(r){const d=!Me()||t==="fixed";o?d||(c=-r.offsetLeft,u=-r.offsetTop):(l=r.width,a=r.height,d&&(c=r.offsetLeft,u=r.offsetTop))}if(xe(s)<=0){const d=s.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(s.clientWidth-f.clientWidth-m),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?g/2:g;w<=dn&&(l-=w)}return{width:l,height:a,x:c,y:u}}function hn(e,t){const n=J(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,s=oe(e),r=e.clientWidth*s.x,l=e.clientHeight*s.y,a=i*s.x,c=o*s.y;return{width:r,height:l,x:a,y:c}}function Xe(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=pn(e,n,t);else if(t==="document")o=un(I(e));else if(F(t))o=hn(t,n);else{const i=lt(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return pe(o)}function mn(e,t){const n=t.get(e);if(n)return n;let o=se(e,[],!1).filter(l=>F(l)&&Q(l)!=="body"),i=null;const s=W(e).position==="fixed";let r=s?Z(e):e;for(;F(r)&&!re(r);){const l=W(r),a=ke(r),c=i?i.position:s?"fixed":"";!a&&(c==="fixed"||c==="absolute"&&l.position==="static")?o=o.filter(p=>p!==r):i=l,r=Z(r)}return t.set(e,o),o}function gn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const r=[...n==="clippingAncestors"?ve(t)?[]:mn(t,this._c):[].concat(n),o],l=Xe(t,r[0],i);let a=l.top,c=l.right,u=l.bottom,p=l.left;for(let d=1;d<r.length;d++){const f=Xe(t,r[d],i);a=z(f.top,a),c=j(f.right,c),u=j(f.bottom,u),p=z(f.left,p)}return{width:c-p,height:u-a,x:p,y:a}}function wn(e){const{width:t,height:n}=st(e);return{width:t,height:n}}
1function vn(e,t,n){const o=G(t),i=I(t),s=n==="fixed",r=J(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=H(0);if((o||!s)&&((Q(t)!=="body"||we(i))&&(l=ye(t)),o)){const d=J(t,!0,s,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}!o&&i&&(a.x=xe(i));const c=i&&!o&&!s?at(i,l):H(0),u=r.left+l.scrollLeft-a.x-c.x,p=r.top+l.scrollTop-a.y-c.y;return{x:u,y:p,width:r.width,height:r.height}}function Oe(e){return W(e).position==="static"}function je(e,t){if(!G(e)||W(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function ct(e,t){const n=T(e);if(ve(e))return n;if(!G(e)){let i=Z(e);for(;i&&!re(i);){if(F(i)&&!Oe(i))return i;i=Z(i)}return n}let o=je(e,t);for(;o&&nn(o)&&Oe(o);)o=je(o,t);return o&&re(o)&&Oe(o)&&!ke(o)?n:o||sn(e)||n}const yn=async function(e){const t=this.getOffsetParent||ct,n=this.getDimensions,o=await n(e.floating);return{reference:vn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xn(e){return W(e).direction==="rtl"}const bn={convertOffsetParentRelativeRectToViewportRelativeRect:cn,getDocumentElement:I,getClippingRect:gn,getOffsetParent:ct,getElementRects:yn,getClientRects:fn,getDimensions:wn,getScale:oe,isElement:F,isRTL:xn};function ft(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function An(e,t,n){let o=null,i;const s=I(e);function r(){var u;clearTimeout(i),(u=o)==null||u.disconnect(),o=null}function l(u,p){u===void 0&&(u=!1),p===void 0&&(p=1),r();const d=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;const w=ce(h),v=ce(s.clientWidth-(f+m)),x=ce(s.clientHeight-(h+g)),b=ce(f),A={rootMargin:-w+"px "+-v+"px "+-x+"px "+-b+"px",threshold:z(0,j(1,p))||1};let y=!0;function O(_){const S=_[0].intersectionRatio;if(!ft(d,e.getBoundingClientRect()))return l();if(S!==p){if(!y)return l();S?l(!1,S):i=setTimeout(()=>{l(!1,1e-7)},1e3)}y=!1}try{o=new IntersectionObserver(O,{...A,root:s.ownerDocument})}catch{o=new IntersectionObserver(O,A)}o.observe(e)}const a=T(e),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),r()}}function Cn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,c=Fe(e),u=i||s?[...c?se(c):[],...t?se(t):[]]:[];u.forEach(w=>{i&&w.addEventListener("scroll",n),s&&w.addEventListener("resize",n)});const p=c&&l?An(c,n,s):null;let d=-1,f=null;r&&(f=new ResizeObserver(w=>{let[v]=w;v&&v.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),c&&!a&&f.observe(c),t&&f.observe(t));let h,m=a?J(e):null;a&&g();function g(){const w=J(e);m&&!ft(m,w)&&n(),m=w,h=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(v=>{i&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),p?.(),(w=f)==null||w.disconnect(),f=null,a&&cancelAnimationFrame(h)}}const On=Jt,Rn=Qt,Ye=Ut,Pn=tn,Sn=Kt,_n=Gt,En=en,Ln=(e,t,n)=>{const o=new Map,i=n??{},s={...bn,...i.platform,_c:o};return Yt(e,t,{...i,platform:s})};function Dn(e){return e!=null&&typeof e=="object"&&"$el"in e}function _e(e){if(Dn(e)){const t=e.$el;return Be(t)&&Q(t)==="#comment"?null:t}return e}function te(e){return typeof e=="function"?e():P(e)}function Tn(e){return{name:"arrow",options:e,fn(t){const n=_e(te(e.element));return n==null?{}:_n({element:n,padding:e.padding}).fn(t)}}}function ut(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ge(e,t){const n=ut(e);return Math.round(t*n)/n}function $n(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=R(()=>{var y;return(y=te(n.open))!=null?y:!0}),s=R(()=>te(n.middleware)),r=R(()=>{var y;return(y=te(n.placement))!=null?y:"bottom"}),l=R(()=>{var y;return(y=te(n.strategy))!=null?y:"absolute"}),a=R(()=>{var y;return(y=te(n.transform))!=null?y:!0}),c=R(()=>_e(e.value)),u=R(()=>_e(t.value)),p=k(0),d=k(0),f=k(l.value),h=k(r.value),m=bt({}),g=k(!1),w=R(()=>{const y={position:f.value,left:"0",top:"0"};if(!u.value)return y;const O=Ge(u.value,p.value),_=Ge(u.value,d.value);return a.value?{...y,transform:"translate("+O+"px, "+_+"px)",...ut(u.value)>=1.5&&{willChange:"transform"}}
1:{position:f.value,left:O+"px",top:_+"px"}});let v;function x(){if(c.value==null||u.value==null)return;const y=i.value;Ln(c.value,u.value,{middleware:s.value,placement:r.value,strategy:l.value}).then(O=>{p.value=O.x,d.value=O.y,f.value=O.strategy,h.value=O.placement,m.value=O.middlewareData,g.value=y!==!1})}function b(){typeof v=="function"&&(v(),v=void 0)}function C(){if(b(),o===void 0){x();return}if(c.value!=null&&u.value!=null){v=o(c.value,u.value,x);return}}function A(){i.value||(g.value=!1)}return be([s,r,l,i],x,{flush:"sync"}),be([c,u],C,{flush:"sync"}),be(i,A,{flush:"sync"}),yt()&&xt(b),{x:ee(p),y:ee(d),strategy:ee(f),placement:ee(h),middlewareData:ee(m),isPositioned:ee(g),floatingStyles:w,update:x}}const Bn={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[kn,Mn]=Ke("PopperContent");var Fn=le({inheritAttrs:!1,__name:"PopperContent",props:Ct({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Bn}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=tt(),{forwardRef:s,currentElement:r}=he(),l=k(),a=k(),{width:c,height:u}=Ot(a),p=R(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),d=R(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=R(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=R(()=>({padding:d.value,boundary:f.value.filter(Bt),altBoundary:f.value.length>0})),m=R(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=At(()=>[On({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Ye({...h.value,...m.value}),n.avoidCollisions&&Rn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?En():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&Ye({...h.value,...m.value}),Pn({...h.value,apply:({elements:L,rects:D,availableWidth:$,availableHeight:V})=>{const{width:B,height:q}=D.reference,E=L.floating.style;E.setProperty("--reka-popper-available-width",`${$}px`),E.setProperty("--reka-popper-available-height",`${V}px`),E.setProperty("--reka-popper-anchor-width",`${B}px`),E.setProperty("--reka-popper-anchor-height",`${q}px`)}}),a.value&&Tn({element:a.value,padding:n.arrowPadding}),kt({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&Sn({strategy:"referenceHidden",...h.value})]),w=R(()=>n.reference??i.anchor.value),{floatingStyles:v,placement:x,isPositioned:b,middlewareData:C}=$n(w,l,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...L)=>Cn(...L,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),A=R(()=>Re(x.value)[0]),y=R(()=>Re(x.value)[1]);Ze(()=>{b.value&&o("placed")});const O=R(()=>C.value.arrow?.centerOffset!==0),_=k("");Ue(()=>{r.value&&(_.value=window.getComputedStyle(r.value).zIndex)});const S=R(()=>C.value.arrow?.x??0),U=R(()=>C.value.arrow?.y??0);return Mn({placedSide:A,onArrowChange:L=>a.value=L,arrowX:S,arrowY:U,shouldHideArrow:O}),(L,D)=>(ne(),fe("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:et({...P(v),transform:P(b)?P(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_.value,"--reka-popper-transform-origin":[P(C).transformOrigin?.x,P(C).transformOrigin?.y].join(" "),...P(C).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[Qe(P(Ee),Le({ref:P(s)},L.$attrs,{"as-child":n.asChild,as:L.as,"data-side":A.value,"data-align":y.value,style:{animation:P(b)?void 0:"none"}}),{default:me(()=>[ae(L.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),jn=Fn;
1const Wn={top:"bottom",right:"left",bottom:"top",left:"right"};var Vn=le({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=he(),n=kn(),o=R(()=>Wn[n.placedSide.value]);return(i,s)=>(ne(),fe("span",{ref:r=>{P(n).onArrowChange(r)},style:et({position:"absolute",left:P(n).arrowX?.value?`${P(n).arrowX?.value}px`:void 0,top:P(n).arrowY?.value?`${P(n).arrowY?.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[P(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[P(n).placedSide.value],visibility:P(n).shouldHideArrow.value?"hidden":void 0})},[Qe($t,Le(i.$attrs,{ref:P(t),style:{display:"block"},as:i.as,"as-child":i.asChild,rounded:i.rounded,width:i.width,height:i.height}),{default:me(()=>[ae(i.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Yn=Vn;export{In as P,jn as a,Hn as b,Nn as c,Yn as d,Xn as e,Bn as f,zn as u};

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.