1import{unref as Z,computed as T,ref as W,shallowRef as ue,watch as bt,getCurrentScope as de,onScopeDispose as me,shallowReadonly as et,defineComponent as Gt,openBlock as lt,createBlock as Jt,Teleport as pe,renderSlot as dt,isRef as he,toValue as G,toRef as mt,useModel as ge,createElementBlock as Ot,normalizeClass as ft,createElementVNode as st,normalizeProps as Vt,guardReactiveProps as Wt,withCtx as Rt,createVNode as Nt,Transition as we,mergeProps as Ht,createCommentVNode as At,mergeModels as ve}from"vue";import{bp as Qt,cq as ye,b3 as xe,b as be,Z as Oe}from"./logger-B4OCWT-4.js";import{b as Re}from"./custom-html-CSF7RBTT.js";const Ae=["top","right","bottom","left"],j=Math.min,E=Math.max,pt=Math.round,ut=Math.floor,N=t=>({x:t,y:t}),Ce={left:"right",right:"left",bottom:"top",top:"bottom"};function Pt(t,e,n){return E(t,j(e,n))}function Q(t,e){return typeof t=="function"?t(e):t}function Y(t){return t.split("-")[0]}function rt(t){return t.split("-")[1]}function te(t){return t==="x"?"y":"x"}function $t(t){return t==="y"?"height":"width"}function _(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Lt(t){return te(_(t))}function Se(t,e,n){n===void 0&&(n=!1);const o=rt(t),i=Lt(t),s=$t(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=ht(r)),[r,ht(r)]}function Pe(t){const e=ht(t);return[Tt(t),e,Tt(e)]}function Tt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const zt=["left","right"],_t=["right","left"],Te=["top","bottom"],De=["bottom","top"];function Ee(t,e,n){switch(t){case"top":case"bottom":return n?e?_t:zt:e?zt:_t;case"left":case"right":return e?Te:De;default:return[]}}function $e(t,e,n,o){const i=rt(t);let s=Ee(Y(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(Tt)))),s}function ht(t){const e=Y(t);return Ce[e]+t.slice(e.length)}function Le(t){return{top:0,right:0,bottom:0,left:0,...t}}function ee(t){return typeof t!="number"?Le(t):{top:t,right:t,bottom:t,left:t}}function gt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function It(t,e,n){let{reference:o,floating:i}=t;const s=_(e),r=Lt(e),l=$t(r),a=Y(e),f=s==="y",c=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let u;switch(a){case"top":u={x:c,y:o.y-i.height};break;case"bottom":u={x:c,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-i.width,y:d};break;default:u={x:o.x,y:o.y}}switch(rt(e)){case"start":u[r]-=m*(n&&f?-1:1);break;case"end":u[r]+=m*(n&&f?-1:1);break}return u}async function Me(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:r,elements:l,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:m=!1,padding:u=0}=Q(e,t),p=ee(u),v=l[m?d==="floating"?"reference":"floating":d],w=gt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:c,strategy:a})),h=d==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},A=gt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:h,offsetParent:y,strategy:a}):h);return{top:(w.top-A.top+p.top)/b.y,bottom:(A.bottom-w.bottom+p.bottom)/b.y,left:(w.left-A.left+p.left)/b.x,right:(A.right-w.right+p.right)/b.x}}const Fe=50,Be=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:Me},a=await(r.isRTL==null?void 0:r.isRTL(e));let f=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:d}=It(f,o,a),m=o,u=0;const p={};for(let g=0;g<s.length;g++){const v=s[g];if(!v)continue;const{name:w,fn:h}=v,{x:y,y:b,data:A,reset:R}=await h({x:c,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:e}});c=y??c,d=b??d,p[w]={...p[w],...A},R&&u<Fe&&(u++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(f=R.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}
vendor: 4,181 bytes, line 1
1):R.rects),{x:c,y:d}=It(f,m,a)),g=-1)}return{x:c,y:d,placement:m,strategy:i,middlewareData:p}},ke=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:s,platform:r,elements:l,middlewareData:a}=e,{element:f,padding:c=0}=Q(t,e)||{};if(f==null)return{};const d=ee(c),m={x:n,y:o},u=Lt(i),p=$t(u),g=await r.getDimensions(f),v=u==="y",w=v?"top":"left",h=v?"bottom":"right",y=v?"clientHeight":"clientWidth",b=s.reference[p]+s.reference[u]-m[u]-s.floating[p],A=m[u]-s.reference[u],R=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let x=R?R[y]:0;(!x||!await(r.isElement==null?void 0:r.isElement(R)))&&(x=l.floating[y]||s.floating[p]);const O=b/2-A/2,C=x/2-g[p]/2-1,S=j(d[w],C),D=j(d[h],C),L=S,V=x-g[p]-D,P=x/2-g[p]/2+O,U=Pt(L,P,V),z=!a.arrow&&rt(i)!=null&&P!==U&&s.reference[p]/2-(P<L?S:D)-g[p]/2<0,M=z?P<L?P-L:P-V:0;return{[u]:m[u]+M,data:{[u]:U,centerOffset:P-U-M,...z&&{alignmentOffset:M}},reset:z}}}),Ve=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:l,platform:a,elements:f}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=Q(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=Y(i),h=_(l),y=Y(l)===l,b=await(a.isRTL==null?void 0:a.isRTL(f.floating)),A=m||(y||!g?[ht(l)]:Pe(l)),R=p!=="none";!m&&R&&A.push(...$e(l,g,p,b));const x=[l,...A],O=await a.detectOverflow(e,v),C=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(c&&C.push(O[w]),d){const P=Se(i,r,b);C.push(O[P[0]],O[P[1]])}if(S=[...S,{placement:i,overflows:C}],!C.every(P=>P<=0)){var D,L;const P=(((D=s.flip)==null?void 0:D.index)||0)+1,U=x[P];if(U&&(!(d==="alignment"?h!==_(U):!1)||S.every(F=>_(F.placement)===h?F.overflows[0]>0:!0)))return{data:{index:P,overflows:S},reset:{placement:U}};let z=(L=S.filter(M=>M.overflows[0]<=0).sort((M,F)=>M.overflows[1]-F.overflows[1])[0])==null?void 0:L.placement;if(!z)switch(u){case"bestFit":{var V;const M=(V=S.filter(F=>{if(R){const X=_(F.placement);return X===h||X==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(X=>X>0).reduce((X,fe)=>X+fe,0)]).sort((F,X)=>F[1]-X[1])[0])==null?void 0:V[0];M&&(z=M);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}};function Xt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return Ae.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:i="referenceHidden",...s}=Q(t,e);switch(i){case"referenceHidden":{const r=await o.detectOverflow(e,{...s,elementContext:"reference"}),l=Xt(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:jt(l)}}}case"escaped":{const r=await o.detectOverflow(e,{...s,altBoundary:!0}),l=Xt(r,n.floating);return{data:{escapedOffsets:l,escaped:jt(l)}}}default:return{}}}}},Ne=new Set(["left","top"]);async function He(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=Y(n),l=rt(n),a=_(n)==="y",f=Ne.has(r)?-1:1,c=s&&a?-1:1,d=Q(e,t);let{mainAxis:m,crossAxis:u,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof p=="number"&&(u=l==="end"?p*-1:p),a?{x:u*c,y:m*f}:{x:m*f,y:u*c}}const ze=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:r,middlewareData:l}=e,a=await He(e,t);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}}}}},_e=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:s}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:w=>{let{x:h,y}=w;return{x:h,y}}},...f}=Q(t,e),c={x:n,y:o},d=await s.detectOverflow(e,f),m=_(Y(i)),u=te(m);let p=c[u],g=c[m];if(r){const w=u==="y"?"top":"left",h=u==="y"?"bottom":"right",y=p+d[w],b=p-d[h];p=Pt(y,p,b)}if(l){const w=m==="y"?"top":"left",h=m==="y"?"bottom":"right",y=g+
1d[w],b=g-d[h];g=Pt(y,g,b)}const v=a.fn({...e,[u]:p,[m]:g});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[u]:r,[m]:l}}}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:r,elements:l}=e,{apply:a=()=>{},...f}=Q(t,e),c=await r.detectOverflow(e,f),d=Y(i),m=rt(i),u=_(i)==="y",{width:p,height:g}=s.floating;let v,w;d==="top"||d==="bottom"?(v=d,w=m===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(w=d,v=m==="end"?"top":"bottom");const h=g-c.top-c.bottom,y=p-c.left-c.right,b=j(g-c[v],h),A=j(p-c[w],y),R=!e.middlewareData.shift;let x=b,O=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(O=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(x=h),R&&!m){const S=E(c.left,0),D=E(c.right,0),L=E(c.top,0),V=E(c.bottom,0);u?O=p-2*(S!==0||D!==0?S+D:E(c.left,c.right)):x=g-2*(L!==0||V!==0?L+V:E(c.top,c.bottom))}await a({...e,availableWidth:O,availableHeight:x});const C=await r.getDimensions(l.floating);return p!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}};function wt(){return typeof window<"u"}function tt(t){return Mt(t)?(t.nodeName||"").toLowerCase():"#document"}function $(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(Mt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Mt(t){return wt()?t instanceof Node||t instanceof $(t).Node:!1}function B(t){return wt()?t instanceof Element||t instanceof $(t).Element:!1}function I(t){return wt()?t instanceof HTMLElement||t instanceof $(t).HTMLElement:!1}function Yt(t){return!wt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $(t).ShadowRoot}function at(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&i!=="inline"&&i!=="contents"}function Xe(t){return/^(table|td|th)$/.test(tt(t))}function vt(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const je=/transform|translate|scale|rotate|perspective|filter/,Ye=/paint|layout|strict|content/,K=t=>!!t&&t!=="none";let Ct;function Ft(t){const e=B(t)?k(t):t;return K(e.transform)||K(e.translate)||K(e.scale)||K(e.rotate)||K(e.perspective)||!Bt()&&(K(e.backdropFilter)||K(e.filter))||je.test(e.willChange||"")||Ye.test(e.contain||"")}function qe(t){let e=q(t);for(;I(e)&&!it(e);){if(Ft(e))return e;if(vt(e))return null;e=q(e)}return null}function Bt(){return Ct==null&&(Ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ct}function it(t){return/^(html|body|#document)$/.test(tt(t))}function k(t){return $(t).getComputedStyle(t)}function yt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function q(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yt(t)&&t.host||H(t);return Yt(e)?e.host:e}function ne(t){const e=q(t);return it(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&at(e)?e:ne(e)}function ct(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=ne(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=$(i);if(s){const l=Dt(r);return e.concat(r,r.visualViewport||[],at(i)?i:[],l&&n?ct(l):[])}else return e.concat(i,ct(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function oe(t){const e=k(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=pt(n)!==s||pt(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function kt(t){return B(t)?t:t.contextElement}function ot(t){const e=kt(t);if(!I(e))return N(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=oe(e);let r=(s?pt(n.width):n.width)/o,l=(s?pt(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const Ue=N(0);function ie(t){const e=$(t);
vendor: 5,883 bytes, line 1
1return!Bt()||!e.visualViewport?Ue:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ke(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==$(t)?!1:e}function J(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=kt(t);let r=N(1);e&&(o?B(o)&&(r=ot(o)):r=ot(t));const l=Ke(s,n,o)?ie(s):N(0);let a=(i.left+l.x)/r.x,f=(i.top+l.y)/r.y,c=i.width/r.x,d=i.height/r.y;if(s){const m=$(s),u=o&&B(o)?$(o):o;let p=m,g=Dt(p);for(;g&&o&&u!==p;){const v=ot(g),w=g.getBoundingClientRect(),h=k(g),y=w.left+(g.clientLeft+parseFloat(h.paddingLeft))*v.x,b=w.top+(g.clientTop+parseFloat(h.paddingTop))*v.y;a*=v.x,f*=v.y,c*=v.x,d*=v.y,a+=y,f+=b,p=$(g),g=Dt(p)}}return gt({width:c,height:d,x:a,y:f})}function xt(t,e){const n=yt(t).scrollLeft;return e?e.left+n:J(H(t)).left+n}function re(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-xt(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function Ze(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",r=H(o),l=e?vt(e.floating):!1;if(o===r||l&&s)return n;let a={scrollLeft:0,scrollTop:0},f=N(1);const c=N(0),d=I(o);if((d||!d&&!s)&&((tt(o)!=="body"||at(r))&&(a=yt(o)),d)){const u=J(o);f=ot(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}const m=r&&!d&&!s?re(r,a):N(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+c.x+m.x,y:n.y*f.y-a.scrollTop*f.y+c.y+m.y}}function Ge(t){return Array.from(t.getClientRects())}function Je(t){const e=H(t),n=yt(t),o=t.ownerDocument.body,i=E(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=E(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+xt(t);const l=-n.scrollTop;return k(o).direction==="rtl"&&(r+=E(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}const qt=25;function Qe(t,e){const n=$(t),o=H(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,l=0,a=0;if(i){s=i.width,r=i.height;const c=Bt();(!c||c&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}const f=xt(o);if(f<=0){const c=o.ownerDocument,d=c.body,m=getComputedStyle(d),u=c.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-d.clientWidth-u);p<=qt&&(s-=p)}else f<=qt&&(s+=f);return{width:s,height:r,x:l,y:a}}function tn(t,e){const n=J(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=I(t)?ot(t):N(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,a=i*s.x,f=o*s.y;return{width:r,height:l,x:a,y:f}}function Ut(t,e,n){let o;if(e==="viewport")o=Qe(t,n);else if(e==="document")o=Je(H(t));else if(B(e))o=tn(e,n);else{const i=ie(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return gt(o)}function se(t,e){const n=q(t);return n===e||!B(n)||it(n)?!1:k(n).position==="fixed"||se(n,e)}function en(t,e){const n=e.get(t);if(n)return n;let o=ct(t,[],!1).filter(l=>B(l)&&tt(l)!=="body"),i=null;const s=k(t).position==="fixed";let r=s?q(t):t;for(;B(r)&&!it(r);){const l=k(r),a=Ft(r);!a&&l.position==="fixed"&&(i=null),(s?!a&&!i:!a&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||at(r)&&!a&&se(t,r))?o=o.filter(c=>c!==r):i=l,r=q(r)}return e.set(t,o),o}function nn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[...n==="clippingAncestors"?vt(e)?[]:en(e,this._c):[].concat(n),o],l=Ut(e,r[0],i);let a=l.top,f=l.right,c=l.bottom,d=l.left;for(let m=1;m<r.length;m++){const u=Ut(e,r[m],i);a=E(u.top,a),f=j(u.right,f),c=j(u.bottom,c),d=E(u.left,d)}return{width:f-d,height:c-a,x:d,y:a}}function on(t){const{width:e,height:n}=oe(t);return{width:e,height:n}}function rn(t,e,n){const o=I(e),i=H(e),s=n==="fixed",r=J(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const a=N(0);function f(){a.x=xt(i)}if(o||!o&&!s)if((tt(e)!=="body"||at(i))&&(l=yt(e)),o){const u=J(e,!0,s,e);a.x=u.x+e.clientLeft,a.y=u.y+e.clientTop}else i&&f();s&&!o&&i&&f();const c=i&&!o&&!s?re(i,l):N(0),d=r.left+l.scrollLeft-a.x-c.x,m=r.top+l.scrollTop-a.y-c.y;return{x:d,y:m,width:r.width,height:r.height}}function St(t){return k(t).position==="static"}function Kt(t,e){if(!I(t)||k(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function le(t,e){const n=$(t);if(vt(t))return n;if(!I(t)){let i=q(t);for(;i&&!it(i);){if(B(i)&&!St(i))return i;i=q(i)}return n}let o=Kt(t,e);for(;o&&Xe(o)&&St(o);)o=Kt(o,e);return o&&it(o)&&St(o)&&!Ft(o)?n:o||qe(t)||n}const sn=async function(t){const e=this.getOffsetParent||le,n=this.getDimensions,o=await n(t.floating);return{reference:rn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ln(t){return k(t).direction==="rtl"}const cn={convertOffsetParentRelativeRectToViewportRelativeRect:Ze,getDocumentElement:H,getClippingRect:nn,getOffsetParent:le,getElementRects:sn,getClientRects:Ge,getDimensions:on,getScale:ot,isElement:B,isRTL:ln};function ce(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function an(t,e){let n=null,o;const i=H(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function r(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const f=t.getBoundingClientRect(),{left:c,top:d,width:m,height:u}=f;if(l||e(),!m||!u)return;const p=ut(d),g=ut(i.clientWidth-(c+m)),v=ut(i.clientHeight-(d+u)),w=ut(c),y={rootMargin:-p+"px "+-g+"px "+-v+"px "+-w+"px",threshold:E(0,j(1,a))||1};let b=!0;function A(R){const x=R[0].intersectionRatio;if(x!==a){if(!b)return r();x?r(!1,x):o=setTimeout(()=>{r(!1,1e-7)},1e3)}x===1&&!ce(f,t.getBoundingClientRect())&&r(),b=!1}try{n=new IntersectionObserver(A,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,y)}n.observe(t)}return r(!0),s}function fn(t,e,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,f=kt(t),c=i||s?[...f?ct(f):[],...e?ct(e):[]]:[];
1c.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const d=f&&l?an(f,n):null;let m=-1,u=null;r&&(u=new ResizeObserver(w=>{let[h]=w;h&&h.target===f&&u&&e&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=u)==null||y.observe(e)})),n()}),f&&!a&&u.observe(f),e&&u.observe(e));let p,g=a?J(t):null;a&&v();function v(){const w=J(t);g&&!ce(g,w)&&n(),g=w,p=requestAnimationFrame(v)}return n(),()=>{var w;c.forEach(h=>{i&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),d?.(),(w=u)==null||w.disconnect(),u=null,a&&cancelAnimationFrame(p)}}const un=ze,dn=_e,mn=Ve,Un=Ie,pn=We,hn=ke,gn=(t,e,n)=>{const o=new Map,i={platform:cn,...n},s={...i.platform,_c:o};return Be(t,e,{...i,platform:s})};function wn(t){return t!=null&&typeof t=="object"&&"$el"in t}function Et(t){if(wn(t)){const e=t.$el;return Mt(e)&&tt(e)==="#comment"?null:e}return t}function nt(t){return typeof t=="function"?t():Z(t)}function vn(t){return{name:"arrow",options:t,fn(e){const n=Et(nt(t.element));return n==null?{}:hn({element:n,padding:t.padding}).fn(e)}}}function ae(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Zt(t,e){const n=ae(t);return Math.round(e*n)/n}function yn(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=T(()=>{var x;return(x=nt(n.open))!=null?x:!0}),s=T(()=>nt(n.middleware)),r=T(()=>{var x;return(x=nt(n.placement))!=null?x:"bottom"}),l=T(()=>{var x;return(x=nt(n.strategy))!=null?x:"absolute"}),a=T(()=>{var x;return(x=nt(n.transform))!=null?x:!0}),f=T(()=>Et(t.value)),c=T(()=>Et(e.value)),d=W(0),m=W(0),u=W(l.value),p=W(r.value),g=ue({}),v=W(!1),w=T(()=>{const x={position:u.value,left:"0",top:"0"};if(!c.value)return x;const O=Zt(c.value,d.value),C=Zt(c.value,m.value);return a.value?{...x,transform:"translate("+O+"px, "+C+"px)",...ae(c.value)>=1.5&&{willChange:"transform"}}:{position:u.value,left:O+"px",top:C+"px"}});let h;function y(){if(f.value==null||c.value==null)return;const x=i.value;gn(f.value,c.value,{middleware:s.value,placement:r.value,strategy:l.value}).then(O=>{d.value=O.x,m.value=O.y,u.value=O.strategy,p.value=O.placement,g.value=O.middlewareData,v.value=x!==!1})}function b(){typeof h=="function"&&(h(),h=void 0)}function A(){if(b(),o===void 0){y();return}if(f.value!=null&&c.value!=null){h=o(f.value,c.value,y);return}}function R(){i.value||(v.value=!1)}return bt([s,r,l,i],y,{flush:"sync"}),bt([f,c],A,{flush:"sync"}),bt(i,R,{flush:"sync"}),de()&&me(b),{x:et(d),y:et(m),strategy:et(u),placement:et(p),middlewareData:et(g),isPositioned:et(v),floatingStyles:w,update:y}}const xn=Gt({__name:"tooltip-teleport",props:{enabled:{type:Boolean,default:!0}},setup(t){return(e,n)=>t.enabled?(lt(),Jt(pe,{key:0,to:"#tooltip"},[dt(e.$slots,"default")])):dt(e.$slots,"default",{key:1})}}),bn=t=>{const e=W();return{runWithDelay:i=>{clearTimeout(e.value),e.value=setTimeout(()=>{i(),e.value=void 0},t)},clearDelay:()=>{clearTimeout(e.value),e.value=void 0}}},On=(t={})=>{const e=W(!1),{runWithDelay:n}=bn(t.delay??0),o=(r,l=!0)=>{const a=()=>{const f=r??!e.value;e.value=f,t.callback?.(f)};l?n(a):a()};return he(t.value)&&Qt(t.value,e,{immediate:!0,direction:"both"}),{isOpen:e,open:(r=!0)=>{o(!0,r)},close:(r=!0)=>{o(!1,r)},toggle:o}},Rn=t=>{const{referenceRef:e=W(),floatingRef:n=W(),middleware:o,isOpen:i,updateOptions:s}=t,{strategy:r,x:l,y:a,middlewareData:f,placement:c,isPositioned:d}=yn(e,n,{strategy:t.strategy,placement:t.placement,open:i,middleware:o,whileElementsMounted(...u){return fn(...u,s)}}),m=T(()=>({position:r.value,top:`${a.value??0}px`,left:`${l.value??0}px`}));return{referenceRef:e,floatingRef:n,style:m,middlewareData:f,placement:c,isPositioned:d}},An={top:"180",right:"270",bottom:"0",left:"90"},Cn={top:"bottom",right:"left",bottom:"top",left:"right"},Sn={top:"height",right:"width",bottom:"height",left:"width"},Pn={top:9,right:5,bottom:9,left:5},Tn=4,Dn=t=>{const{arrowWidth:e=10,arrowHeight:n=8,delay:o,hidable:i,callback:s,...r}=t,l=Re(),a=W(G(t.placement)??"top"),{isOpen:f,open:c,close:d,toggle:m}=On({value:t.isOpen,delay:o,callback:s}),u=T(()=>{const[O,C]=(G(t.placement)??"top").split("-"),S=Tn+n/2,D=(()=>
1{if(!C)return 0;const V=C==="start"?-1:1;return Pn[O]*V})(),L=["top","bottom"].includes(O);return[...G(t.middleware)??[un({mainAxis:S,crossAxis:D}),mn(),...L?[dn()]:[]],vn({element:l,padding:t.customArrowPadding}),...i?[pn()]:[]]}),{style:p,middlewareData:g,placement:v,referenceRef:w,floatingRef:h,isPositioned:y}=Rn({...r,isOpen:f,placement:mt(()=>G(t.placement)??"top"),strategy:mt(()=>G(t.strategy)??"fixed"),middleware:u});Qt(a,v,{direction:"rtl"});const b=T(()=>{if(g.value.arrow){const{x:O,y:C}=g.value.arrow,S=G(v??a).split("-")[0],D={width:`${e}px`,height:`${n}px`};return{position:"absolute",...D,...C?{top:`${C}px`}:{},...O?{left:`${O}px`}:{},transform:`rotateZ(${[An[S]]}deg)`,[Cn[S]]:`calc(${D[Sn[S]]} / -2)`}}return{}}),A=T(()=>({ref:w,open:c,close:d,toggle:m,isOpen:f.value})),R=T(()=>{const O={...p.value,visibility:g.value.hide?.referenceHidden?"hidden":"visible"};return{ref:h,style:O}}),x=T(()=>({ref:l,style:b.value}));return{referenceRef:w,floatingRef:h,arrowRef:l,isOpen:f,isPositioned:y,currentPlacement:a,open:c,close:d,toggle:m,triggerProps:A,tooltipProps:R,arrowProps:x}},En=Gt({__name:"tooltip",props:ve({arrowWidth:{},arrowHeight:{},delay:{},callback:{},hidable:{type:Boolean,default:!1},customArrowPadding:{},teleport:{type:Boolean,default:!1},hideArrow:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},closeOnOutside:{type:Boolean},fitContent:{type:Boolean,default:!1},classNames:{default:()=>({tooltip:void 0,root:void 0,trigger:void 0,arrow:void 0})},placement:{default:"top"},strategy:{},middleware:{},scheme:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=ge(t,"modelValue"),o=mt(()=>e.delay??120),{customization:i}=ye(),s=mt(()=>e.scheme??i?.value?.components?.Tooltip?.colorScheme??"light"),{triggerProps:r,tooltipProps:l,arrowProps:a,toggle:f,close:c,open:d,currentPlacement:m,floatingRef:u}=Dn({...e,middleware:()=>e.middleware,strategy:()=>e.strategy,placement:()=>e.placement,isOpen:n,delay:G(o),...e.hideArrow?{arrowHeight:0,arrowWidth:0}:{}}),p=T(()=>{const[h,y]=(m?.value??"").split("-");return["bottom","top"].includes(h)&&!y}),g=()=>{e.hoverable&&d()},v=()=>{e.hoverable&&c()};return xe(u,()=>{e.closeOnOutside&&n.value&&c()},{detectIframe:!0}),(h,y)=>(lt(),Ot("div",{class:ft([h.$style.root,t.classNames?.root])},[st("div",{class:ft([h.$style.trigger,t.classNames?.trigger])},[dt(h.$slots,"default",Vt(Wt(Z(r))))],2),t.disabled?At("",!0):(lt(),Jt(xn,{key:0,enabled:t.teleport},{default:Rt(()=>[Nt(we,{"enter-active-class":h.$style.enterFrom,"leave-active-class":h.$style.leaveTo},{default:Rt(()=>[n.value?(lt(),Ot("div",Ht({key:0,class:[h.$style.wrapper,p.value&&h.$style.spaced,t.classNames?.tooltipWrapper,`colorScheme-${t.scheme}`]},Z(l),{onMouseleave:v,onMouseenter:g}),[Nt(Z(be),{name:s.value},{default:Rt(()=>[st("div",{class:ft([h.$style.tooltip,!t.fitContent&&h.$style.dimensions,t.classNames?.tooltip])},[st("div",null,[dt(h.$slots,"tooltip",Vt(Wt({toggle:Z(f),close:Z(c)})))]),t.hideArrow?At("",!0):(lt(),Ot("svg",Ht({key:0,class:[h.$style.arrow,t.classNames?.arrow],viewBox:"0 0 10 8",preserveAspectRatio:"none","aria-hidden":"true"},Z(a)),[y[0]||(y[0]=st("path",{d:"M5 0C6.5 0 8 4 10 4V6H0V4C2 4 3.5 0 5 0Z",fill:"var(--tooltip-color-bg)"},null,-1)),st("path",{class:ft(h.$style.arrowBorder),d:"M10 4C8 4 6.5 0 5 0C3.5 0 2 4 0 4",fill:"none",stroke:"var(--tooltip-color-border)","stroke-width":"2"},null,2)],16))],2)]),_:3},8,["name"])],16)):At("",!0)]),_:3},8,["enter-active-class","leave-active-class"])]),_:3},8,["enabled"]))],2))}}),$n="tooltip_root-2Fdac",Ln="tooltip_tooltip-2Fdac",Mn="tooltip_dimensions-2Fdac",Fn="tooltip_wrapper-2Fdac",Bn="tooltip_spaced-2Fdac",kn="tooltip_arrow-2Fdac",Vn="tooltip_arrowBorder-2Fdac",Wn="tooltip_trigger-2Fdac",Nn="tooltip_enterFrom-2Fdac",Hn="tooltip_appear-2Fdac",zn="tooltip_leaveTo-2Fdac",_n="tooltip_disappear-2Fdac",In={root:$n,tooltip:Ln,dimensions:Mn,wrapper:Fn,spaced:Bn,arrow:kn,arrowBorder:Vn,trigger:Wn,enterFrom:Nn,appear:Hn,leaveTo:zn,disappear:_n},Xn={$style:In},Kn=Oe(En,[["__cssModules",Xn]]);
1export{Kn as T,vn as a,fn as b,Un as c,mn as f,un as o,dn as s,yn as u}; 2(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.tooltip_root-2Fdac{position:relative}.tooltip_tooltip-2Fdac{padding:var(--spacing-8) var(--spacing-12);border:1px solid var(--tooltip-color-border);border-radius:var(--tooltip-rounding);background-color:var(--tooltip-color-bg);box-shadow:var(--tooltip-box-shadow);color:var(--color-content-base-primary);font-family:var(--font-body-font-family);font-size:var(--font-body-regular-font-size);font-weight:var(--font-body-regular-font-weight);letter-spacing:var(--font-body-regular-letter-spacing);line-height:var(--font-body-regular-line-height)}.tooltip_dimensions-2Fdac{min-width:var(--size-tooltip-width-min);max-width:var(--size-tooltip-width-max)}.tooltip_wrapper-2Fdac{z-index:var(--z-index-tooltip)}.tooltip_spaced-2Fdac{padding:0 var(--spacing-12)}.tooltip_arrow-2Fdac{pointer-events:none;display:block;overflow:visible}.tooltip_arrowBorder-2Fdac{clip-path:path("M5 0C6.5 0 8 4 10 4V6H0V4C2 4 3.5 0 5 0Z")}.tooltip_trigger-2Fdac{cursor:pointer}.tooltip_enterFrom-2Fdac{animation:.3s forwards tooltip_appear-2Fdac}.tooltip_leaveTo-2Fdac{animation:.15s forwards tooltip_disappear-2Fdac}@keyframes tooltip_appear-2Fdac{0%{opacity:0;scale:.97}40%{scale:1.02}}@keyframes tooltip_disappear-2Fdac{to{opacity:0;pointer-events:none}}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",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.