1import{u as J}from"./DAzTGPRQ.js";import{O as K,b6 as Z,j as p,ct as Q,cJ as ee,cN as te,q as x,aG as _,cK as re,a as oe,N as ne,at as S,z as O,cO as $,c as ae,o as R,v as H,g as h,bb as se,cP as ie,d as le,e as ce,C as ue,bt as de}from"./Bz8wT4n7.js";import{u as D}from"./CO6_iHFN.js";import{P as F}from"./CSFfDpw0.js";import{c as j}from"./QLPLnhWe.js";import{u as pe,a as fe}from"./PHSSyDMC.js";import{b as he,o as ye,f as B,s as ve,d as ge,h as me,l as we}from"./B3_A9Kew.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="556002c0-d8aa-442b-8b5d-8d50ed32aaef",t._sentryDebugIdIdentifier="sentry-dbid-556002c0-d8aa-442b-8b5d-8d50ed32aaef")}catch{}})();function xe(t){const r=K(),e=Object.keys(r?.type.props??{}).reduce((n,s)=>{const a=(r?.type.props[s]).default;return a!==void 0&&(n[s]=a),n},{}),o=Z(t);return p(()=>{const n={},s=r?.vnode.props??{};return Object.keys(s).forEach(a=>{n[Q(a)]=s[a]}),Object.keys({...e,...n}).reduce((a,l)=>(o.value[l]!==void 0&&(a[l]=o.value[l]),a),{})})}function Ne(t,r){const e=xe(t),o=r?J(r):{};return p(()=>({...e.value,...o}))}function Ge(t,r){const e=ee(!1,300);te(()=>{e.value=!1});const o=x(null),n=re();function s(){o.value=null,e.value=!1}function a(l,i){const c=l.currentTarget,u={x:l.clientX,y:l.clientY},f=be(u,c.getBoundingClientRect()),g=Pe(u,f),y=Ae(i.getBoundingClientRect()),d=Ce([...g,...y]);o.value=d,e.value=!0}return _(l=>{if(t.value&&r.value){const i=u=>a(u,r.value),c=u=>a(u,t.value);t.value.addEventListener("pointerleave",i),r.value.addEventListener("pointerleave",c),l(()=>{t.value?.removeEventListener("pointerleave",i),r.value?.removeEventListener("pointerleave",c)})}}),_(l=>{if(o.value){const i=c=>{if(!o.value||!(c.target instanceof Element))return;const u=c.target,f={x:c.clientX,y:c.clientY},g=t.value?.contains(u)||r.value?.contains(u),y=!_e(f,o.value),d=!!u.closest("[data-grace-area-trigger]");g?s():(y||d)&&(s(),n.trigger())};t.value?.ownerDocument.addEventListener("pointermove",i),l(()=>t.value?.ownerDocument.removeEventListener("pointermove",i))}}),{isPointerInTransit:e,onPointerExit:n.on}}function be(t,r){const e=Math.abs(r.top-t.y),o=Math.abs(r.bottom-t.y),n=Math.abs(r.right-t.x),s=Math.abs(r.left-t.x);switch(Math.min(e,o,n,s)){case s:return"left";case n:return"right";case e:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Pe(t,r,e=5){const o=[];switch(r){case"top":o.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":o.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":o.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":o.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return o}function Ae(t){const{top:r,right:e,bottom:o,left:n}=t;return[{x:n,y:r},{x:e,y:r},{x:e,y:o},{x:n,y:o}]}function _e(t,r){const{x:e,y:o}=t;let n=!1;for(let s=0,a=r.length-1;s<r.length;a=s++){const l=r[s].x,i=r[s].y,c=r[a].x,u=r[a].y;i>o!=u>o&&e<(c-l)*(o-i)/(u-i)+l&&(n=!n)}return n}function Ce(t){const r=t.slice();return r.sort((e,o)=>e.x<o.x?-1:e.x>o.x?1:e.y<o.y?-1:e.y>o.y?1:0),Se(r)}function Se(t){if(t.length<=1)return t.slice();const r=[];for(let o=0;o<t.length;o++){const n=t[o];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(n.y-a.y)>=(s.y-a.y)*(n.x-a.x))r.pop();else break}r.push(n)}r.pop();const e=[];for(let o=t.length-1;o>=0;o--){const n=t[o];for(;e.length>=2;){const s=e[e.length-1],a=e[e.length-2];if((s.x-a.x)*(n.y-a.y)>=(s.y-a.y)*(n.x-a.x))e.pop();else break}e.push(n)}return e.pop(),r.length===1&&e.length===1&&r[0].x===e[0].x&&r[0].y===e[0].y?r:r.concat(e)}function Oe(t){const r=x(),e=p(()=>r.value?.width??0),o=p(()=>r.value?.height??0);return oe(()=>{const n=ne(t);if(n){r.value={width:n.offsetWidth,height:n.offsetHeight};const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let i,c;if("borderBoxSize"in l){const u=l.borderBoxSize,f=Array.isArray(u)?u[0]:u;i=f.inlineSize,c=f.blockSize}else i=n.offsetWidth,c=n.offsetHeight;r.value={width:i,height:c}});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else r.value=void 0}),{width:e,height:o}}const[I,ke]=j("PopperRoot");var qe=S({inheritAttrs:!1,__name:"PopperRoot",setup(t){const r=x();return ke({anchor:r,onAnchorChange:e=>r.value=e}),(e,o)=>O(e.$slots,"default")}}),Me=qe,ze=S({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const r=t,{forwardRef:e,currentElement:o}=D(),n=I();return $(()=>{n.onAnchorChange(r.reference??o.value)}),(s,a)=>(R(),ae(h(F),{ref:h(e),as:s.as,"as-child":s.asChild},{default:H(()=>[O(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Xe=ze;function Ee(t){return t!==null}function Be(t){return{name:"transformOrigin",options:t,fn(r){const{placement:e,rects:o,middlewareData:n}=r,a=n.arrow?.centerOffset!==0,l=a?0:t.arrowWidth,i=a?0:t.arrowHeight,[c,u]=C(e),f={start:"0%",center:"50%",end:"100%"}[u],g=(n.arrow?.x??0)+l/2,y=(n.arrow?.y??0)+i/2;let d="",m="";return c==="bottom"?(d=a?f:`${g}px`,m=`${-i}px`):c==="top"?(d=a?f:`${g}px`,m=`${o.floating.height+i}px`):c==="right"?(d=`${-i}px`,m=a?f:`${y}px`):c==="left"&&(d=`${o.floating.width+i}px`,m=a?f:`${y}px`),{data:{x:d,y:m}}}}}function C(t){const[r,e="center"]=t.split("-");return[r,e]}const $e={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},[Ye,Re]=j("PopperContent");var He=S({inheritAttrs:!1,__name:"PopperContent",props:se({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}},{...$e}),emits:["placed"],setup(t,{emit:r}){const e=t,o=r,n=I(),{forwardRef:s,currentElement:a}=D(),l=x(),i=x(),{width:c,height:u}=Oe(i),f=p(()=>e.side+(e.align!=="center"?`-${e.align}`:"")),g=p(()=>typeof e.collisionPadding=="number"?e.collisionPadding:{top:0,right:0,bottom:0,left:0,...e.collisionPadding}),y=p(()=>Array.isArray(e.collisionBoundary)?e.collisionBoundary:[e.collisionBoundary]),d=p(()=>({padding:g.value,boundary:y.value.filter(Ee),altBoundary:y.value.length>0})),m=p(()=>({mainAxis:e.sideFlip,crossAxis:e.alignFlip})),W=ie(()=>[ye({mainAxis:e.sideOffset+u.value,alignmentAxis:e.alignOffset}),e.prioritizePosition&&e.avoidCollisions&&B({...d.value,...m.value}),e.avoidCollisions&&ve({mainAxis:!0,crossAxis:!!e.prioritizePosition,limiter:e.sticky==="partial"?we():void 0,...d.value}),!e.prioritizePosition&&e.avoidCollisions&&B({...d.value,...m.value}),ge({...d.value,apply:({elements:v,rects:A,availableWidth:X,availableHeight:Y})=>{const{width:U,height:V}=A.reference,b=v.floating.style;b.setProperty("--reka-popper-available-width",`${X}px`),b.setProperty("--reka-popper-available-height",`${Y}px`),b.setProperty("--reka-popper-anchor-width",`${U}px`),b.setProperty("--reka-popper-anchor-height",`${V}px`)}}),i.value&&fe({element:i.value,padding:e.arrowPadding}),Be({arrowWidth:c.value,arrowHeight:u.value}),e.hideWhenDetached&&me({strategy:"referenceHidden",...d.value})]),L=p(()=>e.reference??n.anchor.value),{floatingStyles:k,placement:q,isPositioned:P,middlewareData:w}=pe(L,l,{strategy:e.positionStrategy,placement:f,whileElementsMounted:(...v)=>he(...v,{layoutShift:!e.disableUpdateOnLayoutShift,animationFrame:e.updatePositionStrategy==="always"}),middleware:W}),z=p(()=>C(q.value)[0]),T=p(()=>C(q.value)[1]);$(()=>{P.value&&o("placed")});const N=p(()=>w.value.arrow?.centerOffset!==0),E=x("");_(()=>{a.value&&(E.value=window.getComputedStyle(a.value).zIndex)});const G=p(()=>w.value.arrow?.x??0),M=p(()=>w.value.arrow?.y??0);return Re({placedSide:z,onArrowChange:v=>i.value=v,arrowX:G,arrowY:M,shouldHideArrow:N}),(v,A)=>(R(),le("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:de({...h(k),transform:h(P)?h(k).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--reka-popper-transform-origin":[h(w).transformOrigin?.x,h(w).transformOrigin?.y].join(" "),...h(w).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[ce(h(F),ue({ref:h(s)},v.$attrs,{"as-child":e.asChild,as:v.as,"data-side":z.value,"data-align":T.value,style:{animation:h(P)?void 0:"none"}}),{default:H(()=>[O(v.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Ue=He;export{Me as P,Ge as a,Ue as b,Ne as c,Xe as d,Ye as i,xe 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.