import{p as Ct,a as St,d as I,n as xt,o as x,c as ue,b as ee,r as ae,e as Ot,g as At,f as fe,w as Nt,h as te,i as R,F as Et,j as De,k as Pe,l as kt,m as le,q as ot,s as xe,t as zt,u as Ht,v as Lt,x as Mt}from"./vue-chunks.9a4915e5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ecfc1b9f-2221-4730-b2b2-6495d6816b67",e._sentryDebugIdIdentifier="sentry-dbid-ecfc1b9f-2221-4730-b2b2-6495d6816b67")}catch{}})();function E(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function ie(e){return["top","bottom"].includes(E(e))?"x":"y"}function He(e){return e==="y"?"height":"width"}function Re(e){let{reference:t,floating:o,placement:i}=e;const n=t.x+t.width/2-o.width/2,r=t.y+t.height/2-o.height/2;let a;switch(E(i)){case"top":a={x:n,y:t.y-o.height};break;case"bottom":a={x:n,y:t.y+t.height};break;case"right":a={x:t.x+t.width,y:r};break;case"left":a={x:t.x-o.width,y:r};break;default:a={x:t.x,y:t.y}}const s=ie(i),l=He(s);switch(G(i)){case"start":a[s]=a[s]-(t[l]/2-o[l]/2);break;case"end":a[s]=a[s]+(t[l]/2-o[l]/2);break}return a}const Dt=async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:a}=o;let s=await a.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:p}=Re({...s,placement:i}),d=i,u={};for(let c=0;c({name:"arrow",options:e,async fn(t){const{element:o,padding:i=0}=e!=null?e:{},{x:n,y:r,placement:a,rects:s,platform:l}=t;if(o==null)return{};const p=it(i),d={x:n,y:r},u=E(a),c=ie(u),f=He(c),w=await l.getDimensions({element:o}),y=c==="y"?"top":"left",g=c==="y"?"bottom":"right",m=s.reference[f]+s.reference[c]-d[c]-s.floating[f],v=d[c]-s.reference[c],_=await l.getOffsetParent({element:o}),$=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,F=m/2-v/2,W=p[y],j=$-w[f]-p[g],b=$/2-w[f]/2+F,T=Ae(W,b,j);return{data:{[c]:T,centerOffset:b-T}}}}),Ft={left:"right",right:"left",bottom:"top",top:"bottom"};function pe(e){return e.replace(/left|right|bottom|top/g,t=>Ft[t])}function nt(e,t){const o=G(e)==="start",i=ie(e),n=He(i);let r=i==="x"?o?"right":"left":o?"bottom":"top";return t.reference[n]>t.floating[n]&&(r=pe(r)),{main:r,cross:pe(r)}}const Wt={start:"end",end:"start"};function Ne(e){return e.replace(/start|end/g,t=>Wt[t])}const jt=["top","right","bottom","left"],Vt=jt.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function Gt(e,t,o){return(e?[...o.filter(n=>G(n)===e),...o.filter(n=>G(n)!==e)]:o.filter(n=>E(n)===n)).filter(n=>e?G(n)===e||(t?Ne(n)!==n:!1):!0)}const Xt=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n,r,a,s;const{x:l,y:p,rects:d,middlewareData:u,placement:c}=t,{alignment:f=null,allowedPlacements:w=Vt,autoAlignment:y=!0,...g}=e;if((o=u.autoPlacement)!=null&&o.skip)return{};const m=Gt(f,y,w),v=await me(t,g),_=(i=(n=u.autoPlacement)==null?void 0:n.index)!=null?i:0,$=m[_],{main:F,cross:W}=nt($,d);if(c!==$)return{x:l,y:p,reset:{placement:m[0]}};const j=[v[E($)],v[F],v[W]],b=[...(r=(a=u.autoPlacement)==null?void 0:a.overflows)!=null?r:[],{placement:$,overflows:j}],T=m[_+1];if(T)return{data:{index:_+1,overflows:b},reset:{placement:T}};const V=b.slice().sort((U,K)=>U.overflows[0]-K.overflows[0]),q=(s=V.find(U=>{let{overflows:K}=U;return K.every(C=>C<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:q!=null?q:V[0].placement}}}}};function Yt(e){const t=pe(e);return[Ne(e),t,Ne(t)]}const qt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:r,rects:a,initialPlacement:s}=t;if((o=r.flip)!=null&&o.skip)return{};const{mainAxis:l=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:u="bestFit",flipAlignment:c=!0,...f}=e,w=E(n),g=d||(w===s||!c?[pe(s)]:Yt(s)),m=[s,...g],v=await me(t,f),_=[];let $=((i=r.flip)==null?void 0:i.overflows)||[];if(l&&_.push(v[w]),p){const{main:b,cross:T}=nt(n,a);_.push(v[b],v[T])}if($=[...$,{placement:n,overflows:_}],!_.every(b=>b<=0)){var F,W;const b=((F=(W=r.flip)==null?void 0:W.index)!=null?F:0)+1,T=m[b];if(T)return{data:{index:b,overflows:$},reset:{placement:T}};let V="bottom";switch(u){case"bestFit":{var j;const q=(j=$.slice().sort((U,K)=>U.overflows.filter(C=>C>0).reduce((C,be)=>C+be,0)-K.overflows.filter(C=>C>0).reduce((C,be)=>C+be,0))[0])==null?void 0:j.placement;q&&(V=q);break}case"initialPlacement":V=s;break}return{data:{skip:!0},reset:{placement:V}}}return{}}}};function Ut(e){let{placement:t,rects:o,value:i}=e;const n=E(t),r=["left","top"].includes(n)?-1:1,a=typeof i=="function"?i({...o,placement:t}):i,{mainAxis:s,crossAxis:l}=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};return ie(n)==="x"?{x:l,y:s*r}:{x:s*r,y:l}}const Kt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:o,y:i,placement:n,rects:r}=t,a=Ut({placement:n,rects:r,value:e});return{x:o+a.x,y:i+a.y,data:a}}}};function Jt(e){return e==="x"?"y":"x"}const Qt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:m,y:v}=g;return{x:m,y:v}}},...l}=e,p={x:o,y:i},d=await me(t,l),u=ie(E(n)),c=Jt(u);let f=p[u],w=p[c];if(r){const g=u==="y"?"top":"left",m=u==="y"?"bottom":"right",v=f+d[g],_=f-d[m];f=Ae(v,f,_)}if(a){const g=c==="y"?"top":"left",m=c==="y"?"bottom":"right",v=w+d[g],_=w-d[m];w=Ae(v,w,_)}const y=s.fn({...t,[u]:f,[c]:w});return{...y,data:{x:y.x-o,y:y.y-i}}}}},Zt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o;const{placement:i,rects:n,middlewareData:r}=t,{apply:a,...s}=e;if((o=r.size)!=null&&o.skip)return{};const l=await me(t,s),p=E(i),d=G(i)==="end";let u,c;p==="top"||p==="bottom"?(u=p,c=d?"left":"right"):(c=p,u=d?"top":"bottom");const f=D(l.left,0),w=D(l.right,0),y=D(l.top,0),g=D(l.bottom,0),m={height:n.floating.height-(["left","right"].includes(i)?2*(y!==0||g!==0?y+g:D(l.top,l.bottom)):l[u]),width:n.floating.width-(["top","bottom"].includes(i)?2*(f!==0||w!==0?f+w:D(l.left,l.right)):l[c])};return a==null||a({...m,...n}),{data:{skip:!0},reset:{rects:!0}}}}};function Le(e){return(e==null?void 0:e.toString())==="[object Window]"}function H(e){if(e==null)return window;if(!Le(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ge(e){return H(e).getComputedStyle(e)}function A(e){return Le(e)?"":e?(e.nodeName||"").toLowerCase():""}function N(e){return e instanceof H(e).HTMLElement}function de(e){return e instanceof H(e).Element}function eo(e){return e instanceof H(e).Node}function st(e){const t=H(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function we(e){const{overflow:t,overflowX:o,overflowY:i}=ge(e);return/auto|scroll|overlay|hidden/.test(t+i+o)}function to(e){return["table","td","th"].includes(A(e))}function rt(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),o=ge(e);return o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].includes(o.willChange)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)}const Be=Math.min,J=Math.max,ce=Math.round;function X(e,t){t===void 0&&(t=!1);const o=e.getBoundingClientRect();let i=1,n=1;return t&&N(e)&&(i=e.offsetWidth>0&&ce(o.width)/e.offsetWidth||1,n=e.offsetHeight>0&&ce(o.height)/e.offsetHeight||1),{width:o.width/i,height:o.height/n,top:o.top/n,right:o.right/i,bottom:o.bottom/n,left:o.left/i,x:o.left/i,y:o.top/n}}function L(e){return((eo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ve(e){return Le(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function at(e){return X(L(e)).left+ve(e).scrollLeft}function oo(e){const t=X(e);return ce(t.width)!==e.offsetWidth||ce(t.height)!==e.offsetHeight}function io(e,t,o){const i=N(t),n=L(t),r=X(e,i&&oo(t));let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&o!=="fixed")if((A(t)!=="body"||we(n))&&(a=ve(t)),N(t)){const l=X(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=at(n));return{x:r.left+a.scrollLeft-s.x,y:r.top+a.scrollTop-s.y,width:r.width,height:r.height}}function ye(e){return A(e)==="html"?e:e.assignedSlot||e.parentNode||(st(e)?e.host:null)||L(e)}function Ie(e){return!N(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function no(e){let t=ye(e);for(;N(t)&&!["html","body"].includes(A(t));){if(rt(t))return t;t=t.parentNode}return null}function Ee(e){const t=H(e);let o=Ie(e);for(;o&&to(o)&&getComputedStyle(o).position==="static";)o=Ie(o);return o&&(A(o)==="html"||A(o)==="body"&&getComputedStyle(o).position==="static"&&!rt(o))?t:o||no(e)||t}function Fe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function so(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=N(o),r=L(o);if(o===r)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((n||!n&&i!=="fixed")&&((A(o)!=="body"||we(r))&&(a=ve(o)),N(o))){const l=X(o,!0);s.x=l.x+o.clientLeft,s.y=l.y+o.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}}function ro(e){const t=H(e),o=L(e),i=t.visualViewport;let n=o.clientWidth,r=o.clientHeight,a=0,s=0;return i&&(n=i.width,r=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(a=i.offsetLeft,s=i.offsetTop)),{width:n,height:r,x:a,y:s}}function ao(e){var t;const o=L(e),i=ve(e),n=(t=e.ownerDocument)==null?void 0:t.body,r=J(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=J(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let s=-i.scrollLeft+at(e);const l=-i.scrollTop;return ge(n||o).direction==="rtl"&&(s+=J(o.clientWidth,n?n.clientWidth:0)-r),{width:r,height:a,x:s,y:l}}function lt(e){return["html","body","#document"].includes(A(e))?e.ownerDocument.body:N(e)&&we(e)?e:lt(ye(e))}function he(e,t){var o;t===void 0&&(t=[]);const i=lt(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),r=H(i),a=n?[r].concat(r.visualViewport||[],we(i)?i:[]):i,s=t.concat(a);return n?s:s.concat(he(ye(a)))}function lo(e,t){const o=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(o&&st(o)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function po(e){const t=X(e),o=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:o,left:i,x:i,y:o,right:i+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function We(e,t){return t==="viewport"?Oe(ro(e)):de(t)?po(t):Oe(ao(L(e)))}function co(e){const t=he(ye(e)),i=["absolute","fixed"].includes(ge(e).position)&&N(e)?Ee(e):e;return de(i)?t.filter(n=>de(n)&&lo(n,i)&&A(n)!=="body"):[]}function ho(e){let{element:t,boundary:o,rootBoundary:i}=e;const r=[...o==="clippingParents"?co(t):[].concat(o),i],a=r[0],s=r.reduce((l,p)=>{const d=We(t,p);return l.top=J(d.top,l.top),l.right=Be(d.right,l.right),l.bottom=Be(d.bottom,l.bottom),l.left=J(d.left,l.left),l},We(t,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}const uo={getElementRects:e=>{let{reference:t,floating:o,strategy:i}=e;return{reference:io(t,Ee(o),i),floating:{...Fe(o),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>so(e),getOffsetParent:e=>{let{element:t}=e;return Ee(t)},isElement:e=>de(e),getDocumentElement:e=>{let{element:t}=e;return L(t)},getClippingClientRect:e=>ho(e),getDimensions:e=>{let{element:t}=e;return Fe(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},fo=(e,t,o)=>Dt(e,t,{platform:uo,...o});var mo=Object.defineProperty,go=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,vo=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,Ve=(e,t,o)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,S=(e,t)=>{for(var o in t||(t={}))vo.call(t,o)&&Ve(e,o,t[o]);if(je)for(var o of je(t))yo.call(t,o)&&Ve(e,o,t[o]);return e},ne=(e,t)=>go(e,wo(t));function pt(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(typeof t[o]=="object"&&e[o]?pt(e[o],t[o]):e[o]=t[o])}const O={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Y(e,t){let o=O.themes[e]||{},i;do i=o[t],typeof i>"u"?o.$extend?o=O.themes[o.$extend]||{}:(o=null,i=O[t]):o=null;while(o);return i}function _o(e){const t=[e];let o=O.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=O.themes[o.$extend]||{}):o=null;while(o);return t.map(i=>`v-popper--theme-${i}`)}function Ge(e){const t=[e];let o=O.themes[e]||{};do o.$extend?(t.push(o.$extend),o=O.themes[o.$extend]||{}):o=null;while(o);return t}let B=!1;if(typeof window<"u"){B=!1;try{const e=Object.defineProperty({},"passive",{get(){B=!0}});window.addEventListener("test",null,e)}catch{}}let dt=!1;typeof window<"u"&&typeof navigator<"u"&&(dt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const ct=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Xe={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Ye={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function qe(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function Te(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const P=[];let M=null;const Ue={};function Ke(e){let t=Ue[e];return t||(t=Ue[e]=[]),t}let ke=function(){};typeof window<"u"&&(ke=window.Element);function h(e){return function(t){return Y(t.theme,e)}}const Ce="__floating-vue__popper";var ht=()=>I({name:"VPopper",provide(){return{[Ce]:{parentPopper:this}}},inject:{[Ce]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:h("disabled")},positioningDisabled:{type:Boolean,default:h("positioningDisabled")},placement:{type:String,default:h("placement"),validator:e=>ct.includes(e)},delay:{type:[String,Number,Object],default:h("delay")},distance:{type:[Number,String],default:h("distance")},skidding:{type:[Number,String],default:h("skidding")},triggers:{type:Array,default:h("triggers")},showTriggers:{type:[Array,Function],default:h("showTriggers")},hideTriggers:{type:[Array,Function],default:h("hideTriggers")},popperTriggers:{type:Array,default:h("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:h("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:h("popperHideTriggers")},container:{type:[String,Object,ke,Boolean],default:h("container")},boundary:{type:[String,ke],default:h("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:h("strategy")},autoHide:{type:[Boolean,Function],default:h("autoHide")},handleResize:{type:Boolean,default:h("handleResize")},instantMove:{type:Boolean,default:h("instantMove")},eagerMount:{type:Boolean,default:h("eagerMount")},popperClass:{type:[String,Array,Object],default:h("popperClass")},computeTransformOrigin:{type:Boolean,default:h("computeTransformOrigin")},autoMinSize:{type:Boolean,default:h("autoMinSize")},autoSize:{type:[Boolean,String],default:h("autoSize")},autoMaxSize:{type:Boolean,default:h("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:h("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:h("preventOverflow")},overflowPadding:{type:[Number,String],default:h("overflowPadding")},arrowPadding:{type:[Number,String],default:h("arrowPadding")},arrowOverflow:{type:Boolean,default:h("arrowOverflow")},flip:{type:Boolean,default:h("flip")},shift:{type:Boolean,default:h("shift")},shiftCrossAxis:{type:Boolean,default:h("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:h("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:ne(S({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ce])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:S(S({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var i,n;((i=this.parentPopper)==null?void 0:i.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(o||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(o=>o.nodeType===o.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(Kt({mainAxis:this.distance,crossAxis:this.skidding}));const o=this.placement.startsWith("auto");if(o?t.middleware.push(Xt({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Qt({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!o&&this.flip&&t.middleware.push(qt({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(It({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:r,middlewareData:a})=>{let s;const{centerOffset:l}=a.arrow;return n.startsWith("top")||n.startsWith("bottom")?s=Math.abs(l)>r.reference.width/2:s=Math.abs(l)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:a,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let p,d;return a.startsWith("top")||a.startsWith("bottom")?p=r.reference.width:d=r.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=p!=null?`${p}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(Zt({boundary:this.boundary,padding:this.overflowPadding,apply:({width:n,height:r})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const i=await fo(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:S(S({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),M&&this.instantMove&&M.instantMove&&M!==this.parentPopper){M.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(M=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Te(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...he(this.$_referenceNode),...he(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),i=o.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+o.offsetLeft),r=t.y+t.height/2-(i.top+o.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,qe(P,this),P.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of Ge(this.theme)){const i=Ke(o);qe(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}M===this&&(M=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=Y(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Te(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,Xe,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Xe,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,Ye,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Ye,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(i=>i.addEventListener(t,o,B?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let r=o;i!=null&&(r=typeof i=="function"?i(r):i),r.forEach(a=>{const s=t[a];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:r}=o;!e||e===n?i.forEach(a=>a.removeEventListener(n,r)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];i==null?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Q>=e.left&&Q<=e.right&&Z>=e.top&&Z<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=Q-k,i=Z-z,r=t.left+t.width/2-k+(t.top+t.height/2)-z+t.width+t.height,a=k+o*r,s=z+i*r;return se(k,z,a,s,t.left,t.top,t.left,t.bottom)||se(k,z,a,s,t.left,t.top,t.right,t.top)||se(k,z,a,s,t.right,t.top,t.right,t.bottom)||se(k,z,a,s,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(dt?(document.addEventListener("touchstart",Je,B?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",bo,B?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Je,!0),window.addEventListener("click",$o,!0)),window.addEventListener("resize",Co));function Je(e){for(let t=0;t=0;i--){const n=P[i];try{const r=n.$_containsGlobalTarget=Po(n,e);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!o[n.randomId]&&Qe(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)o[s.randomId]=!0,s=s.parentPopper;return}let a=n.parentPopper;for(;a&&Qe(a,a.$_containsGlobalTarget,e);){a.$_handleGlobalClose(e,t);a=a.parentPopper}}})}catch{}}}function Po(e,t){const o=e.popperNode();return e.$_mouseDownContains||o.contains(t.target)}function Qe(e,t,o){return o.closeAllPopover||o.closePopover&&t||To(e,o)&&!t}function To(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function Co(e){for(let t=0;t{k=Q,z=Z,Q=e.clientX,Z=e.clientY},B?{passive:!0}:void 0);function se(e,t,o,i,n,r,a,s){const l=((a-n)*(t-r)-(s-r)*(e-n))/((s-r)*(o-e)-(a-n)*(i-t)),p=((o-e)*(t-r)-(i-t)*(e-n))/((s-r)*(o-e)-(a-n)*(i-t));return l>=0&&l<=1&&p>=0&&p<=1}var _e=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};const So={extends:ht()};function xo(e,t,o,i,n,r){return x(),ee("div",{ref:"reference",class:fe(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ae(e.$slots,"default",Ot(At(e.slotData)))],2)}var Oo=_e(So,[["render",xo]]);function Ao(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let re;function ze(){ze.init||(ze.init=!0,re=Ao()!==-1)}var $e={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ze(),xt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",re&&this.$el.appendChild(e),e.data="about:blank",re||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!re&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const No=Nt();Ct("data-v-b329ee4c");const Eo={class:"resize-observer",tabindex:"-1"};St();const ko=No((e,t,o,i,n,r)=>(x(),ue("div",Eo)));$e.render=ko;$e.__scopeId="data-v-b329ee4c";$e.__file="src/components/ResizeObserver.vue";var ft=(e="theme")=>({computed:{themeClass(){return _o(this[e])}}});const zo=I({name:"VPopperContent",components:{ResizeObserver:$e},mixins:[ft()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ho=["id","aria-hidden","tabindex","data-popper-placement"],Lo={ref:"inner",class:"v-popper__inner"},Mo=R("div",{class:"v-popper__arrow-outer"},null,-1),Do=R("div",{class:"v-popper__arrow-inner"},null,-1),Ro=[Mo,Do];function Bo(e,t,o,i,n,r){const a=te("ResizeObserver");return x(),ee("div",{id:e.popperId,ref:"popover",class:fe(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Pe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=kt(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[R("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),R("div",{class:"v-popper__wrapper",style:Pe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[R("div",Lo,[e.mounted?(x(),ee(Et,{key:0},[R("div",null,[ae(e.$slots,"default")]),e.handleResize?(x(),ue(a,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):De("",!0)],64)):De("",!0)],512),R("div",{ref:"arrow",class:"v-popper__arrow-container",style:Pe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Ro,4)],4)],46,Ho)}var mt=_e(zo,[["render",Bo]]),gt={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const Io=I({name:"VPopperWrapper",components:{Popper:Oo,PopperContent:mt},mixins:[gt,ft("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Fo(e,t,o,i,n,r){const a=te("PopperContent"),s=te("Popper");return x(),ue(s,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:fe([e.themeClass])},{default:le(({popperId:l,isShown:p,shouldMountContent:d,skipTransition:u,autoHide:c,show:f,hide:w,handleResize:y,onResize:g,classes:m,result:v})=>[ae(e.$slots,"default",{shown:p,show:f,hide:w}),ot(a,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:p,mounted:d,"skip-transition":u,"auto-hide":c,"handle-resize":y,classes:m,result:v,onHide:w,onResize:g},{default:le(()=>[ae(e.$slots,"popper",{shown:p,hide:w})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var Me=_e(Io,[["render",Fo]]);const Wo=I(ne(S({},Me),{name:"VDropdown",vPopperTheme:"dropdown"})),jo=I(ne(S({},Me),{name:"VMenu",vPopperTheme:"menu"})),wt=I(ne(S({},Me),{name:"VTooltip",vPopperTheme:"tooltip"})),Vo=I({name:"VTooltipDirective",components:{Popper:ht(),PopperContent:mt},mixins:[gt],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Y(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Y(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(i=>this.onResult(t,i)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Go=["innerHTML"],Xo=["textContent"];function Yo(e,t,o,i,n,r){const a=te("PopperContent"),s=te("Popper");return x(),ue(s,Mt({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:le(({popperId:l,isShown:p,shouldMountContent:d,skipTransition:u,autoHide:c,hide:f,handleResize:w,onResize:y,classes:g,result:m})=>[ot(a,{ref:"popperContent",class:fe({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:p,mounted:d,"skip-transition":u,"auto-hide":c,"handle-resize":w,classes:g,result:m,onHide:f,onResize:y},{default:le(()=>[e.html?(x(),ee("div",{key:0,innerHTML:e.finalContent},null,8,Go)):(x(),ee("div",{key:1,textContent:Lt(e.finalContent)},null,8,Xo))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var qo=_e(Vo,[["render",Yo]]);const vt="v-popper--has-tooltip";function Uo(e,t){let o=e.placement;if(!o&&t)for(const i of ct)t[i]&&(o=i);return o||(o=Y(e.theme||"tooltip","placement")),o}function yt(e,t,o){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=Uo(i,o),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Se,oe,Ko=0;function Jo(){if(Se)return;oe=xe([]),Se=zt({name:"VTooltipDirectiveApp",setup(){return{directives:oe}},render(){return this.directives.map(t=>Ht(qo,ne(S({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Se.mount(e)}function Qo(e,t,o){Jo();const i=xe(yt(e,t,o)),n=xe(!1),r={id:Ko++,options:i,shown:n};return oe.value.push(r),e.classList&&e.classList.add(vt),e.$_popper={options:i,item:r,show(){n.value=!0},hide(){n.value=!1}}}function _t(e){if(e.$_popper){const t=oe.value.indexOf(e.$_popper.item);t!==-1&&oe.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(vt)}function Ze(e,{value:t,modifiers:o}){const i=yt(e,t,o);if(!i.content||Y(i.theme||"tooltip","disabled"))_t(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=i):n=Qo(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}var Zo={beforeMount:Ze,updated:Ze,beforeUnmount(e){_t(e)}};function et(e){e.addEventListener("click",$t),e.addEventListener("touchstart",bt,B?{passive:!0}:!1)}function tt(e){e.removeEventListener("click",$t),e.removeEventListener("touchstart",bt),e.removeEventListener("touchend",Pt),e.removeEventListener("touchcancel",Tt)}function $t(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function bt(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const o=e.changedTouches[0];t.$_vclosepopover_touchPoint=o,t.addEventListener("touchend",Pt),t.addEventListener("touchcancel",Tt)}}function Pt(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const o=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(o.screenY-i.screenY)<20&&Math.abs(o.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Tt(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var ei={beforeMount(e,{value:t,modifiers:o}){e.$_closePopoverModifiers=o,(typeof t>"u"||t)&&et(e)},updated(e,{value:t,oldValue:o,modifiers:i}){e.$_closePopoverModifiers=i,t!==o&&(typeof t>"u"||t?et(e):tt(e))},beforeUnmount(e){tt(e)}};const ii=wt;function ti(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,pt(O,t),e.directive("tooltip",Zo),e.directive("close-popper",ei),e.component("VTooltip",wt),e.component("VDropdown",Wo),e.component("VMenu",jo))}const ni={version:"2.0.0-beta.20",install:ti,options:O};export{ii as T,ni as p};