| 17 | **/let rh;const iv=typeof window<"u"&&window.trustedTypes;if(iv)try{rh=iv.createPolicy("vue",{createHTML:e=>e})}catch{}const Gb=rh?e=>rh.createHTML(e):e=>e,IT="http://www.w3.org/2000/svg",DT="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,ov=mi&&mi.createElement("template"),zT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?mi.createElementNS(IT,e):t==="mathml"?mi.createElementNS(DT,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{ov.innerHTML=Gb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ui="transition",zl="animation",ga=Symbol("_vtc"),Kb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},FT=on({},cb,Kb),HT=e=>(e.displayName="Transition",e.props=FT,e),BT=HT((e,{slots:t})=>za(M_,WT(e),t)),Oo=(e,t=[])=>{Ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},sv=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function WT(e){const t={};for(const N in e)N in Kb||(t[N]=e[N]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=qT(s),L=E&&E[0],P=E&&E[1],{onBeforeEnter:M,onEnter:R,onEnterCancelled:I,onLeave:_,onLeaveCancelled:$,onBeforeAppear:W=M,onAppear:ne=R,onAppearCancelled:ee=I}=t,Z=(N,O,C,k)=>{N._enterCancelled=k,Po(N,O?g:d),Po(N,O?p:f),C&&C()},G=(N,O)=>{N._isLeaving=!1,Po(N,v),Po(N,w),Po(N,b),O&&O()},j=N=>(O,C)=>{const k=N?ne:R,z=()=>Z(O,N,C);Oo(k,[O,z]),lv(()=>{Po(O,N?h:c),di(O,N?g:d),sv(k)||av(O,o,L,z)})};return on(t,{onBeforeEnter(N){Oo(M,[N]),di(N,c),di(N,f)},onBeforeAppear(N){Oo(W,[N]),di(N,h),di(N,p)},onEnter:j(!1),onAppear:j(!0),onLeave(N,O){N._isLeaving=!0;const C=()=>G(N,O);di(N,v),N._enterCancelled?(di(N,b),fv(N)):(fv(N),di(N,b)),lv(()=>{N._isLeaving&&(Po(N,v),di(N,w),sv(_)||av(N,o,P,C))}),Oo(_,[N,C])},onEnterCancelled(N){Z(N,!1,void 0,!0),Oo(I,[N])},onAppearCancelled(N){Z(N,!0,void 0,!0),Oo(ee,[N])},onLeaveCancelled(N){G(N),Oo($,[N])}})}function qT(e){if(e==null)return null;if(kt(e))return[bd(e.enter),bd(e.leave)];{const t=bd(e);return[t,t]}}function bd(e){return N0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ga]||(e[ga]=new Set)).add(t)}function Po(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ga];r&&(r.delete(t),r.size||(e[ga]=void 0))}function lv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jT=0;function av(e,t,r,o){const s=e._endId=++jT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=UT(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function UT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Ui}Delay`),c=o(`${Ui}Duration`),f=cv(s,c),d=o(`${zl}Delay`),h=o(`${zl}Duration`),p=cv(d,h);let g=null,v=0,b=0;t===Ui?f>0&&(g=Ui,v=f,b=c.length):t===zl?p>0&&(g=zl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Ui:zl:null,b=g?g===Ui?c.length:h.length:0);const w=g===Ui&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ui}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:w}}function cv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>uv(r)+uv(e[o])))}function uv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fv(e){return(e?e.ownerDocument:document).body.offsetHeight}function VT(e,t,r){const o=e[ga];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const du=Symbol("_vod"),Xb=Symbol("_vsh"),ro={name:"show",beforeMount(e,{value:t},{transition:r}){e[du]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Fl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Fl(e,!0),o.enter(e)):o.leave(e,()=>{Fl(e,!1)}):Fl(e,t))},beforeUnmount(e,{value:t}){Fl(e,t)}};function Fl(e,t){e.style.display=t?e[du]:"none",e[Xb]=!t}const GT=Symbol(""),KT=/(?:^|;)\s*display\s*:/;function XT(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Vc(o,d,"")}else for(const f in t)r[f]==null&&Vc(o,f,"");for(const f in r)f==="display"&&(c=!0),Vc(o,f,r[f])}else if(s){if(t!==r){const f=o[GT];f&&(r+=";"+f),o.cssText=r,c=KT.test(r)}}else t&&e.removeAttribute("style");du in e&&(e[du]=c?o.display:"",e[Xb]&&(o.display="none"))}const dv=/\s*!important$/;function Vc(e,t,r){if(Ze(r))r.forEach(o=>Vc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=YT(e,t);dv.test(r)?e.setProperty(Ai(o),r.replace(dv,""),"important"):e[o]=r}}const hv=["Webkit","Moz","ms"],wd={};function YT(e,t){const r=wd[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return wd[t]=o;o=Fu(o);for(let s=0;s<hv.length;s++){const c=hv[s]+o;if(c in e)return wd[t]=c}return t}const pv="http://www.w3.org/1999/xlink";function gv(e,t,r,o,s,c=US(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(pv,t.slice(6,t.length)):e.setAttributeNS(pv,t,r):r==null||c&&!O0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Pr(r)?String(r):r)}function mv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Gb(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=O0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function zo(e,t,r,o){e.addEventListener(t,r,o)}function ZT(e,t,r,o){e.removeEventListener(t,r,o)}const vv=Symbol("_vei");function JT(e,t,r,o,s=null){const c=e[vv]||(e[vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=QT(t);if(o){const p=c[t]=nC(o,s);zo(e,d,p,h)}else f&&(ZT(e,d,f,h),c[t]=void 0)}}const yv=/(?:Once|Passive|Capture)$/;function QT(e){let t;if(yv.test(e)){t={};let o;for(;o=e.match(yv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ai(e.slice(2)),t]}let xd=0;const eC=Promise.resolve(),tC=()=>xd||(eC.then(()=>xd=0),xd=Date.now());function nC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(rC(o,r.value),t,5,[o])};return r.value=e,r.attached=tC(),r}function rC(e,t){if(Ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const bv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,iC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?VT(e,o,f):t==="style"?XT(e,r,o):$u(t)?Hh(t)||JT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):oC(e,t,o,f))?(mv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?mv(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),gv(e,t,o,f))};function oC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&bv(t)&&et(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return bv(t)&&Ht(r)?!1:t in e}const hu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ze(t)?r=>jc(t,r):t};function sC(e){e.target.composing=!0}function wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fs=Symbol("_assign");function xv(e,t,r){return t&&(e=e.trim()),r&&(e=Wh(e)),e}const Yb={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Fs]=hu(s);const c=o||s.props&&s.props.type==="number";zo(e,t?"change":"input",f=>{f.target.composing||e[Fs](xv(e.value,r,c))}),(r||c)&&zo(e,"change",()=>{e.value=xv(e.value,r,c)}),t||(zo(e,"compositionstart",sC),zo(e,"compositionend",wv),zo(e,"change",wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Fs]=hu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Wh(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},Zb={deep:!0,created(e,t,r){e[Fs]=hu(r),zo(e,"change",()=>{const o=e._modelValue,s=lC(e),c=e.checked,f=e[Fs];if(Ze(o)){const d=P0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Iu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Jb(e,c))})},mounted:kv,beforeUpdate(e,t,r){e[Fs]=hu(r),kv(e,t,r)}};function kv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Ze(t))s=P0(t,o.props.value)>-1;else if(Iu(t))s=t.has(o.props.value);else{if(t===r)return;s=Bu(t,Jb(e,!0))}e.checked!==s&&(e.checked=s)}function lC(e){return"_value"in e?e._value:e.value}function Jb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const aC=["ctrl","shift","alt","meta"],cC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>aC.some(r=>e[`${r}Key`]&&!t.includes(r))},Gc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=cC[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},uC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ih=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ai(s.key);if(t.some(f=>f===c||uC[f]===c))return e(s)}))},fC=on({patchProp:iC},zT);let Sv;function dC(){return Sv||(Sv=gT(fC))}const Qb=((...e)=>{const t=dC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=pC(o);if(!s)return;const c=t._component;!et(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,hC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function hC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pC(e){return Ht(e)?document.querySelector(e):e}const Ni=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},gC={};function mC(e,t){const r=Go("RouterView");return ie(),Ve(r)}const vC=Ni(gC,[["render",mC]]),yC=["top","right","bottom","left"],_v=["start","end"],Tv=yC.reduce((e,t)=>e.concat(t,t+"-"+_v[0],t+"-"+_v[1]),[]),ma=Math.min,Io=Math.max,bC={left:"right",right:"left",bottom:"top",top:"bottom"},wC={start:"end",end:"start"};function oh(e,t,r){return Io(e,ma(t,r))}function Xo(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function ew(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function Fa(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function op(e){return ew(Fa(e))}function tw(e,t,r){r===void 0&&(r=!1);const o=Or(e),s=op(e),c=ip(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=gu(f)),[f,gu(f)]}function xC(e){const t=gu(e);return[pu(e),t,pu(t)]}function pu(e){return e.replace(/start|end/g,t=>wC[t])}function kC(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function SC(e,t,r,o){const s=Or(e);let c=kC(Qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(pu)))),c}function gu(e){return e.replace(/left|right|bottom|top/g,t=>bC[t])}function _C(e){return{top:0,right:0,bottom:0,left:0,...e}}function nw(e){return typeof e!="number"?_C(e):{top:e,right:e,bottom:e,left:e}}function ta(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Cv(e,t,r){let{reference:o,floating:s}=e;const c=Fa(t),f=op(t),d=ip(f),h=Qr(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Or(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const TC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Cv(p,o,h),b=o,w={},E=0;for(let L=0;L<d.length;L++){const{name:P,fn:M}=d[L],{x:R,y:I,data:_,reset:$}=await M({x:g,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});g=R??g,v=I??v,w={...w,[P]:{...w[P],..._}},$&&E<=50&&(E++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(p=$.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):$.rects),{x:g,y:v}=Cv(p,b,h)),L=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:w}};async function ef(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=Xo(t,e),E=nw(w),P=d[b?v==="floating"?"reference":"floating":v],M=ta(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(P)))==null||r?P:P.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),R=v==="floating"?{...f.floating,x:o,y:s}:f.reference,I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),_=await(c.isElement==null?void 0:c.isElement(I))?await(c.getScale==null?void 0:c.getScale(I))||{x:1,y:1}:{x:1,y:1},$=ta(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:I,strategy:h}):R);return{top:(M.top-$.top+E.top)/_.y,bottom:($.bottom-M.bottom+E.bottom)/_.y,left:(M.left-$.left+E.left)/_.x,right:($.right-M.right+E.right)/_.x}}const CC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:g=0}=Xo(e,t)||{};if(p==null)return{};const v=nw(g),b={x:r,y:o},w=op(s),E=ip(w),L=await f.getDimensions(p),P=w==="y",M=P?"top":"left",R=P?"bottom":"right",I=P?"clientHeight":"clientWidth",_=c.reference[E]+c.reference[w]-b[w]-c.floating[E],$=b[w]-c.reference[w],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ne=W?W[I]:0;(!ne||!await(f.isElement==null?void 0:f.isElement(W)))&&(ne=d.floating[I]||c.floating[E]);const ee=_/2-$/2,Z=ne/2-L[E]/2-1,G=ma(v[M],Z),j=ma(v[R],Z),N=G,O=ne-L[E]-j,C=ne/2-L[E]/2+ee,k=oh(N,C,O),z=!h.arrow&&Or(s)!=null&&C!==k&&c.reference[E]/2-(C<N?G:j)-L[E]/2<0,B=z?C<N?C-N:C-O:0;return{[w]:b[w]+B,data:{[w]:k,centerOffset:C-k-B,...z&&{alignmentOffset:B}},reset:z}}});function EC(e,t,r){return(e?[...r.filter(s=>Or(s)===e),...r.filter(s=>Or(s)!==e)]:r.filter(s=>Qr(s)===s)).filter(s=>e?Or(s)===e||(t?pu(s)!==s:!1):!0)}const AC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:b=Tv,autoAlignment:w=!0,...E}=Xo(e,t),L=v!==void 0||b===Tv?EC(v||null,w,b):b,P=await ef(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[M];if(R==null)return{};const I=tw(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const _=[P[Qr(R)],P[I[0]],P[I[1]]],$=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:_}],W=L[M+1];if(W)return{data:{index:M+1,overflows:$},reset:{placement:W}};const ne=$.map(G=>{const j=Or(G.placement);return[G.placement,j&&g?G.overflows.slice(0,2).reduce((N,O)=>N+O,0):G.overflows[0],G.overflows]}).sort((G,j)=>G[1]-j[1]),Z=((s=ne.filter(G=>G[2].slice(0,Or(G[0])?2:3).every(j=>j<=0))[0])==null?void 0:s[0])||ne[0][0];return Z!==d?{data:{index:M+1,overflows:$},reset:{placement:Z}}:{}}}},LC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:L=!0,...P}=Xo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Qr(s),R=Qr(d)===d,I=await(h.isRTL==null?void 0:h.isRTL(p.floating)),_=b||(R||!L?[gu(d)]:xC(d));!b&&E!=="none"&&_.push(...SC(d,L,E,I));const $=[d,..._],W=await ef(t,P),ne=[];let ee=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&ne.push(W[M]),v){const N=tw(s,f,I);ne.push(W[N[0]],W[N[1]])}if(ee=[...ee,{placement:s,overflows:ne}],!ne.every(N=>N<=0)){var Z,G;const N=(((Z=c.flip)==null?void 0:Z.index)||0)+1,O=$[N];if(O)return{data:{index:N,overflows:ee},reset:{placement:O}};let C=(G=ee.filter(k=>k.overflows[0]<=0).sort((k,z)=>k.overflows[1]-z.overflows[1])[0])==null?void 0:G.placement;if(!C)switch(w){case"bestFit":{var j;const k=(j=ee.map(z=>[z.placement,z.overflows.filter(B=>B>0).reduce((B,ce)=>B+ce,0)]).sort((z,B)=>z[1]-B[1])[0])==null?void 0:j[0];k&&(C=k);break}case"initialPlacement":C=d;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function MC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Qr(r),d=Or(r),h=Fa(r)==="y",p=["left","top"].includes(f)?-1:1,g=c&&h?-1:1,v=Xo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*g,y:b*p}:{x:b*p,y:w*g}}const NC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await MC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},OC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:P=>{let{x:M,y:R}=P;return{x:M,y:R}}},...h}=Xo(e,t),p={x:r,y:o},g=await ef(t,h),v=Fa(Qr(s)),b=ew(v);let w=p[b],E=p[v];if(c){const P=b==="y"?"top":"left",M=b==="y"?"bottom":"right",R=w+g[P],I=w-g[M];w=oh(R,w,I)}if(f){const P=v==="y"?"top":"left",M=v==="y"?"bottom":"right",R=E+g[P],I=E-g[M];E=oh(R,E,I)}const L=d.fn({...t,[b]:w,[v]:E});return{...L,data:{x:L.x-r,y:L.y-o}}}}},PC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Xo(e,t),h=await ef(t,d),p=Qr(r),g=Or(r),v=Fa(r)==="y",{width:b,height:w}=o.floating;let E,L;p==="top"||p==="bottom"?(E=p,L=g===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,E=g==="end"?"top":"bottom");const P=w-h[E],M=b-h[L],R=!t.middlewareData.shift;let I=P,_=M;if(v){const W=b-h.left-h.right;_=g||R?ma(M,W):W}else{const W=w-h.top-h.bottom;I=g||R?ma(P,W):W}if(R&&!g){const W=Io(h.left,0),ne=Io(h.right,0),ee=Io(h.top,0),Z=Io(h.bottom,0);v?_=b-2*(W!==0||ne!==0?W+ne:Io(h.left,h.right)):I=w-2*(ee!==0||Z!==0?ee+Z:Io(h.top,h.bottom))}await f({...t,availableWidth:_,availableHeight:I});const $=await s.getDimensions(c.floating);return b!==$.width||w!==$.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yr(e){return hr(e).getComputedStyle(e)}const Ev=Math.min,na=Math.max,mu=Math.round;function rw(e){const t=Yr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=mu(r)!==s||mu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function fo(e){return ow(e)?(e.nodeName||"").toLowerCase():""}let Lc;function iw(){if(Lc)return Lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Lc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Lc):navigator.userAgent}function Zr(e){return e instanceof hr(e).HTMLElement}function so(e){return e instanceof hr(e).Element}function ow(e){return e instanceof hr(e).Node}function Av(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function tf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function RC(e){return["table","td","th"].includes(fo(e))}function sh(e){const t=/firefox/i.test(iw()),r=Yr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function sw(){return!/^((?!chrome|android).)*safari/i.test(iw())}function sp(e){return["html","body","#document"].includes(fo(e))}function lw(e){return so(e)?e:e.contextElement}const aw={x:1,y:1};function Hs(e){const t=lw(e);if(!Zr(t))return aw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=rw(t);let f=(c?mu(r.width):r.width)/o,d=(c?mu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function va(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=lw(e);let h=aw;t&&(o?so(o)&&(h=Hs(o)):h=Hs(e));const p=d?hr(d):window,g=!sw()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const L=hr(d),P=o&&so(o)?hr(o):o;let M=L.frameElement;for(;M&&o&&P!==L;){const R=Hs(M),I=M.getBoundingClientRect(),_=getComputedStyle(M);I.x+=(M.clientLeft+parseFloat(_.paddingLeft))*R.x,I.y+=(M.clientTop+parseFloat(_.paddingTop))*R.y,v*=R.x,b*=R.y,w*=R.x,E*=R.y,v+=I.x,b+=I.y,M=hr(M).frameElement}}return{width:w,height:E,top:b,right:v+w,bottom:b+E,left:v,x:v,y:b}}function lo(e){return((ow(e)?e.ownerDocument:e.document)||window.document).documentElement}function nf(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cw(e){return va(lo(e)).left+nf(e).scrollLeft}function ya(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Av(e)&&e.host||lo(e);return Av(t)?t.host:t}function uw(e){const t=ya(e);return sp(t)?t.ownerDocument.body:Zr(t)&&tf(t)?t:uw(t)}function vu(e,t){var r;t===void 0&&(t=[]);const o=uw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],tf(o)?o:[]):t.concat(o,vu(o))}function Lv(e,t,r){return t==="viewport"?ta((function(o,s){const c=hr(o),f=lo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=sw();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):so(t)?ta((function(o,s){const c=va(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Zr(o)?Hs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):ta((function(o){const s=lo(o),c=nf(o),f=o.ownerDocument.body,d=na(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=na(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+cw(o);const g=-c.scrollTop;return Yr(f).direction==="rtl"&&(p+=na(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(lo(e)))}function Mv(e){return Zr(e)&&Yr(e).position!=="fixed"?e.offsetParent:null}function Nv(e){const t=hr(e);let r=Mv(e);for(;r&&RC(r)&&Yr(r).position==="static";)r=Mv(r);return r&&(fo(r)==="html"||fo(r)==="body"&&Yr(r).position==="static"&&!sh(r))?t:r||(function(o){let s=ya(o);for(;Zr(s)&&!sp(s);){if(sh(s))return s;s=ya(s)}return null})(e)||t}function $C(e,t,r){const o=Zr(t),s=lo(t),c=va(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((fo(t)!=="body"||tf(s))&&(f=nf(t)),Zr(t)){const h=va(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=cw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const IC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=vu(p).filter((P=>so(P)&&fo(P)!=="body")),w=null;const E=Yr(p).position==="fixed";let L=E?ya(p):p;for(;so(L)&&!sp(L);){const P=Yr(L),M=sh(L);(E?M||w:M||P.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=P:b=b.filter((R=>R!==L)),L=ya(L)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Lv(t,g,s);return p.top=na(v.top,p.top),p.right=Ev(v.right,p.right),p.bottom=Ev(v.bottom,p.bottom),p.left=na(v.left,p.left),p}),Lv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Zr(r),c=lo(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((fo(r)!=="body"||tf(c))&&(f=nf(r)),Zr(r))){const p=va(r);d=Hs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:so,getDimensions:function(e){return Zr(e)?rw(e):e.getBoundingClientRect()},getOffsetParent:Nv,getDocumentElement:lo,getScale:Hs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Nv,c=this.getDimensions;return{reference:$C(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yr(e).direction==="rtl"},DC=(e,t,r)=>{const o=new Map,s={platform:IC,...r},c={...s.platform,_c:o};return TC(e,t,{...s,platform:c})},ao={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,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"],delay:{show:0,hide:400}}}};function ba(e,t){let r=ao.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=ao.themes[r.$extend]||{}:(r=null,o=ao[t]):r=null;while(r);return o}function zC(e){const t=[e];let r=ao.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Ov(e){const t=[e];let r=ao.themes[e]||{};do r.$extend?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t}let wa=!1;if(typeof window<"u"){wa=!1;try{const e=Object.defineProperty({},"passive",{get(){wa=!0}});window.addEventListener("test",null,e)}catch{}}let fw=!1;typeof window<"u"&&typeof navigator<"u"&&(fw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const dw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Pv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Rv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function $v(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function kd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Ro=null;const Iv={};function Dv(e){let t=Iv[e];return t||(t=Iv[e]=[]),t}let lh=function(){};typeof window<"u"&&(lh=window.Element);function ht(e){return function(t){return ba(t.theme,e)}}const Sd="__floating-vue__popper",hw=()=>rt({name:"VPopper",provide(){return{[Sd]:{parentPopper:this}}},inject:{[Sd]:{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:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>dw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,lh,Boolean],default:ht("container")},boundary:{type:[String,lh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},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},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},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:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Sd])==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:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){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:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.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 r;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}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.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"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(NC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(AC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(OC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(LC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(CC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(PC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await DC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ro&&this.instantMove&&Ro.instantMove&&Ro!==this.parentPopper){Ro.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ro=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 kd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vu(this.$_referenceNode),...vu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Ov(this.theme))Dv(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await kd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,$v(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Ov(this.theme)){const o=Dv(r);$v(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Ro===this&&(Ro=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.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 kd(),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=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Pv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Pv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Rv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Rv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,wa?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),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 r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_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(ra>=e.left&&ra<=e.right&&ia>=e.top&&ia<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ra-Ki,o=ia-Xi,s=t.left+t.width/2-Ki+(t.top+t.height/2)-Xi+t.width+t.height,c=Ki+r*s,f=Xi+o*s;return Mc(Ki,Xi,c,f,t.left,t.top,t.left,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.top,t.right,t.top)||Mc(Ki,Xi,c,f,t.right,t.top,t.right,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(fw){const e=wa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>zv(t),e),document.addEventListener("touchend",t=>Fv(t,!0),e)}else window.addEventListener("mousedown",e=>zv(e),!0),window.addEventListener("click",e=>Fv(e,!1),!0);window.addEventListener("resize",BC)}function zv(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Fv(e,t){FC(e,t)}function FC(e,t){const r={};for(let o=nr.length-1;o>=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Hv(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Hv(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Hv(e,t,r){return r.closeAllPopover||r.closePopover&&t||HC(e,r)&&!t}function HC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function BC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function Bv(){for(let e=0;e<nr.length;e++)nr[e].hide()}let Ki=0,Xi=0,ra=0,ia=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Ki=ra,Xi=ia,ra=e.clientX,ia=e.clientY},wa?{passive:!0}:void 0);function Mc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const WC={extends:hw()},rf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function qC(e,t,r,o,s,c){return ie(),ve("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Dt(e.$slots,"default",qS(qb(e.slotData)))],2)}const jC=rf(WC,[["render",qC]]);function UC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Kc;function ah(){ah.init||(ah.init=!0,Kc=UC()!==-1)}var of={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ah(),Et(()=>{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",Kc&&this.$el.appendChild(e),e.data="about:blank",Kc||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&&(!Kc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const VC=lb();ob("data-v-b329ee4c");const GC={class:"resize-observer",tabindex:"-1"};sb();const KC=VC((e,t,r,o,s,c)=>(ie(),Ve("div",GC)));of.render=KC;of.__scopeId="data-v-b329ee4c";of.__file="src/components/ResizeObserver.vue";const pw=(e="theme")=>({computed:{themeClass(){return zC(this[e])}}}),XC=rt({name:"VPopperContent",components:{ResizeObserver:of},mixins:[pw()],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}}}),YC=["id","aria-hidden","tabindex","data-popper-placement"],ZC={ref:"inner",class:"v-popper__inner"},JC=X("div",{class:"v-popper__arrow-outer"},null,-1),QC=X("div",{class:"v-popper__arrow-inner"},null,-1),eE=[JC,QC];function tE(e,t,r,o,s,c){const f=Go("ResizeObserver");return ie(),ve("div",{id:e.popperId,ref:"popover",class:ot(["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:zt(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]=ih(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",ZC,[e.mounted?(ie(),ve(nt,{key:0},[X("div",null,[Dt(e.$slots,"default")]),e.handleResize?(ie(),Ve(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):He("",!0)],64)):He("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},eE,4)],4)],46,YC)}const gw=rf(XC,[["render",tE]]),mw={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)}}};let ch=function(){};typeof window<"u"&&(ch=window.Element);const nE=rt({name:"VPopperWrapper",components:{Popper:jC,PopperContent:gw},mixins:[mw,pw("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ch,Boolean],default:void 0},boundary:{type:[String,ch],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function rE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:w,hide:E,handleResize:L,onResize:P,classes:M,result:R})=>[Dt(e.$slots,"default",{shown:p,show:w,hide:E}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":L,classes:M,result:R,onHide:E,onResize:P},{default:We(()=>[Dt(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const lp=rf(nE,[["render",rE]]);({...lp});({...lp});const iE={...lp,name:"VTooltip",vPopperTheme:"tooltip"},oE=rt({name:"VTooltipDirective",components:{Popper:hw(),PopperContent:gw},mixins:[mw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ba(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ba(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},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,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),sE=["innerHTML"],lE=["textContent"];function aE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:w,handleResize:E,onResize:L,classes:P,result:M})=>[Ne(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":E,classes:P,result:M,onHide:w,onResize:L},{default:We(()=>[e.html?(ie(),ve("div",{key:0,innerHTML:e.finalContent},null,8,sE)):(ie(),ve("div",{key:1,textContent:Re(e.finalContent)},null,8,lE))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const cE=rf(oE,[["render",aE]]),vw="v-popper--has-tooltip";function uE(e,t){let r=e.placement;if(!r&&t)for(const o of dw)t[o]&&(r=o);return r||(r=ba(e.theme||"tooltip","placement")),r}function yw(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=uE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let _d,xa,fE=0;function dE(){if(_d)return;xa=Ge([]),_d=Qb({name:"VTooltipDirectiveApp",setup(){return{directives:xa}},render(){return this.directives.map(t=>za(cE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),_d.mount(e)}function bw(e,t,r){dE();const o=Ge(yw(e,t,r)),s=Ge(!1),c={id:fE++,options:o,shown:s};return xa.value.push(c),e.classList&&e.classList.add(vw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function ap(e){if(e.$_popper){const t=xa.value.indexOf(e.$_popper.item);t!==-1&&xa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(vw)}function Wv(e,{value:t,modifiers:r}){const o=yw(e,t,r);if(!o.content||ba(o.theme||"tooltip","disabled"))ap(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=bw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const hE={beforeMount:Wv,updated:Wv,beforeUnmount(e){ap(e)}},pE=hE,Qi=iE,ww={options:ao};function cp(e){return I0()?(KS(e),!0):!1}const Td=new WeakMap,gE=(...e)=>{var t;const r=e[0],o=(t=ti())==null?void 0:t.proxy;if(o==null&&!Sb())throw new Error("injectLocal must be called in setup");return o&&Td.has(o)&&r in Td.get(o)?Td.get(o)[r]:pn(...e)},mE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const vE=Object.prototype.toString,yE=e=>vE.call(e)==="[object Object]",bE=()=>+Date.now(),yu=()=>{};function up(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const fp=e=>e();function xw(e,t={}){let r,o,s=yu;const c=h=>{clearTimeout(h),s(),s=yu};let f;return h=>{const p=Xt(e),g=Xt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},p)})}}function kw(e=fp,t={}){const{initialState:r="active"}=t,o=Yo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Gs(o),pause:s,resume:c,eventFilter:f}}function qv(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function jv(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function wE(e){return ti()}function Cd(e){return Array.isArray(e)?e:[e]}function Yo(...e){if(e.length!==1)return w_(...e);const t=e[0];return typeof t=="function"?Gs(Q0(()=>({get:t,set:yu}))):Ge(t)}function Nc(e,t=200,r={}){return up(xw(t,r),e)}function Sw(e,t,r={}){const{eventFilter:o=fp,...s}=r;return xt(e,up(o,t),s)}function _w(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=kw(o,{initialState:s});return{stop:Sw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function dp(e,t=!0,r){wE()?Mi(e,r):t?e():Et(e)}function uh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:L}={}){let P=null;const R=[new Promise(I=>{P=xt(e,_=>{v(_)!==t&&(P?P():Et(()=>P?.()),I(_))},{flush:b,deep:w,immediate:!0})})];return E!=null&&R.push(qv(E,L).then(()=>Xt(e)).finally(()=>P?.())),Promise.race(R)}function o(v,b){if(!Mt(v))return r(_=>_===v,b);const{flush:w="sync",deep:E=!1,timeout:L,throwOnTimeout:P}=b??{};let M=null;const I=[new Promise(_=>{M=xt([e,v],([$,W])=>{t!==($===W)&&(M?M():Et(()=>M?.()),_($))},{flush:w,deep:E,immediate:!0})})];return L!=null&&I.push(qv(L,P).then(()=>Xt(e)).finally(()=>(M?.(),Xt(e)))),Promise.race(I)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const E=Array.from(w);return E.includes(v)||E.includes(Xt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Xt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return uh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return uh(e,!t)}}}function Uv(e){return uh(e)}function xE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=Ft(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Xt(r);return c.value=c.value===h?Xt(o):h,c.value}}return s?f:[c,f]}function hp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Sw(e,t,{...c,eventFilter:xw(o,{maxWait:s})})}function kE(e,t,r={}){const{eventFilter:o=fp,...s}=r,c=up(o,t);let f,d,h;if(s.flush==="sync"){const p=Ft(!1);d=()=>{},f=g=>{p.value=!0,g(),p.value=!1},h=xt(e,(...g)=>{p.value||c(...g)},s)}else{const p=[],g=Ft(0),v=Ft(0);d=()=>{g.value=v.value},p.push(xt(e,()=>{v.value++},{...s,flush:"sync"})),f=b=>{const w=v.value;b(),g.value+=v.value-w},p.push(xt(e,(...b)=>{const w=g.value>0&&g.value===v.value;g.value=0,v.value=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function SE(e,t,r){return xt(e,t,{...r,immediate:!0})}function _E(e,t,r){const o=xt(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function TE(e,t,r){let o;Mt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=yu}=o,h=Ft(!s),p=f?Ft(t):Ge(t);let g=0;return _b(async v=>{if(!h.value)return;g++;const b=g;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(L=>{v(()=>{c&&(c.value=!1),w||L()})});b===g&&(p.value=E)}catch(E){d(E)}finally{c&&b===g&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ir=mE?window:void 0;function bu(e){var t;const r=Xt(e);return(t=r?.$el)!=null?t:r}function ho(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=ke(()=>{const d=Cd(Xt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=SE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>bu(p)))!=null?h:[Ir].filter(p=>p!=null),Cd(Xt(s.value?e[1]:e[0])),Cd(K(s.value?e[2]:e[1])),Xt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const v=yE(g)?{...g}:g;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,v)))))},{flush:"post"}),f=()=>{c(),r()};return cp(r),f}function CE(){const e=Ft(!1),t=ti();return t&&Mi(()=>{e.value=!0},t),e}function Tw(e){const t=CE();return ke(()=>(t.value,!!e()))}function EE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Cw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Ir,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=EE(t);return ho(s,c,g=>{g.repeat&&Xt(d)||h(g)&&r(g)},f)}function AE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ir,once:c=!1}=t,f=Ft(!1),d=ke(()=>o?1e3/Xt(o):null);let h=0,p=null;function g(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(g))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),cp(b),{isActive:Gs(f),pause:b,resume:v}}const LE=Symbol("vueuse-ssr-width");function ME(){const e=Sb()?gE(LE,null):null;return typeof e=="number"?e:void 0}function Ew(e,t={}){const{window:r=Ir,ssrWidth:o=ME()}=t,s=Tw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Ft(typeof o=="number"),f=Ft(),d=Ft(!1),h=p=>{d.value=p.matches};return _b(()=>{if(c.value){c.value=!s.value;const p=Xt(e).split(",");d.value=p.some(g=>{const v=g.includes("not all"),b=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=jv(b[1])),w&&E&&(E=o<=jv(w[1])),v?!E:E});return}s.value&&(f.value=r.matchMedia(Xt(e)),d.value=f.value.matches)}),ho(f,"change",h,{passive:!0}),ke(()=>d.value)}function Aw(e){return JSON.parse(JSON.stringify(e))}const Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pc="__vueuse_ssr_handlers__",NE=OE();function OE(){return Pc in Oc||(Oc[Pc]=Oc[Pc]||{}),Oc[Pc]}function Lw(e,t){return NE[e]||t}function PE(e){return Ew("(prefers-color-scheme: dark)",e)}function RE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const $E={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Vv="vueuse-storage";function Mw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Ir,eventFilter:b,onError:w=j=>{console.error(j)},initOnMounted:E}=o,L=(g?Ft:Ge)(typeof t=="function"?t():t),P=ke(()=>Xt(e));if(!r)try{r=Lw("getDefaultStorage",()=>{var j;return(j=Ir)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!r)return L;const M=Xt(t),R=RE(M),I=(s=o.serializer)!=null?s:$E[R],{pause:_,resume:$}=_w(L,()=>ne(L.value),{flush:c,deep:f,eventFilter:b});xt(P,()=>Z(),{flush:c}),v&&d&&dp(()=>{r instanceof Storage?ho(v,"storage",Z,{passive:!0}):ho(v,Vv,G),E&&Z()}),E||Z();function W(j,N){if(v){const O={key:P.value,oldValue:j,newValue:N,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Vv,{detail:O}))}}function ne(j){try{const N=r.getItem(P.value);if(j==null)W(N,null),r.removeItem(P.value);else{const O=I.write(j);N!==O&&(r.setItem(P.value,O),W(N,O))}}catch(N){w(N)}}function ee(j){const N=j?j.newValue:r.getItem(P.value);if(N==null)return h&&M!=null&&r.setItem(P.value,I.write(M)),M;if(!j&&p){const O=I.read(N);return typeof p=="function"?p(O,M):R==="object"&&!Array.isArray(O)?{...M,...O}:O}else return typeof N!="string"?N:I.read(N)}function Z(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){L.value=M;return}if(!(j&&j.key!==P.value)){_();try{j?.newValue!==I.write(L.value)&&(L.value=ee(j))}catch(N){w(N)}finally{j?Et($):$()}}}}function G(j){Z(j.detail)}return L}const IE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function DE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ir,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=PE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Yo(o):Mw(f,o,c,{window:s,listenToStorageChanges:d})),L=ke(()=>E.value==="auto"?w.value:E.value),P=Lw("updateHTMLAttrs",(_,$,W)=>{const ne=typeof _=="string"?s?.document.querySelector(_):bu(_);if(!ne)return;const ee=new Set,Z=new Set;let G=null;if($==="class"){const N=W.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{N.includes(O)?ee.add(O):Z.add(O)})}else G={key:$,value:W};if(ee.size===0&&Z.size===0&&G===null)return;let j;g&&(j=s.document.createElement("style"),j.appendChild(document.createTextNode(IE)),s.document.head.appendChild(j));for(const N of ee)ne.classList.add(N);for(const N of Z)ne.classList.remove(N);G&&ne.setAttribute(G.key,G.value),g&&(s.getComputedStyle(j).opacity,document.head.removeChild(j))});function M(_){var $;P(t,r,($=v[_])!=null?$:_)}function R(_){e.onChanged?e.onChanged(_,M):M(_)}xt(L,R,{flush:"post",immediate:!0}),dp(()=>R(L.value));const I=ke({get(){return p?E.value:L.value},set(_){E.value=_}});return Object.assign(I,{store:E,system:w,state:L})}function zE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=DE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function Nw(e){return e}function FE(e,t){return e.value=t}function HE(e){return e?typeof e=="function"?e:Aw:Nw}function BE(e){return e?typeof e=="function"?e:Aw:Nw}function WE(e,t={}){const{clone:r=!1,dump:o=HE(r),parse:s=BE(r),setSource:c=FE}=t;function f(){return Uu({snapshot:o(e.value),timestamp:bE()})}const d=Ge(f()),h=Ge([]),p=Ge([]),g=I=>{c(e,s(I.snapshot)),d.value=I},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const I=h.value.shift();I&&(p.value.unshift(d.value),g(I))},E=()=>{const I=p.value.shift();I&&(h.value.unshift(d.value),g(I))},L=()=>{g(d.value)},P=ke(()=>[d.value,...h.value]),M=ke(()=>h.value.length>0),R=ke(()=>p.value.length>0);return{source:e,undoStack:h,redoStack:p,last:d,history:P,canUndo:M,canRedo:R,clear:b,commit:v,reset:L,undo:w,redo:E}}function qE(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s}=t,{eventFilter:c,pause:f,resume:d,isActive:h}=kw(s),{ignoreUpdates:p,ignorePrevAsyncUpdates:g,stop:v}=kE(e,P,{deep:r,flush:o,eventFilter:c});function b(_,$){g(),p(()=>{_.value=$})}const w=WE(e,{...t,clone:t.clone||r,setSource:b}),{clear:E,commit:L}=w;function P(){g(),L()}function M(_){d(),_&&P()}function R(_){let $=!1;const W=()=>$=!0;p(()=>{_(W)}),$||P()}function I(){v(),E()}return{...w,isTracking:h,pause:f,resume:M,commit:P,batch:R,dispose:I}}function Ow(e,t,r={}){const{window:o=Ir,...s}=r;let c;const f=Tw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const v=Xt(e);return Array.isArray(v)?v.map(b=>bu(b)):[bu(v)]}),p=xt(h,v=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of v)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return cp(g),{isSupported:f,stop:g}}function sf(e,t,r={}){const{window:o=Ir}=r;return Mw(e,t,o?.localStorage,r)}function jE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ir}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const I=d.location.hash||"",_=I.indexOf("?");return _>0?I.slice(_):""}else return(d.location.hash||"").replace(/^#/,"")}function g(I){const _=I.toString();if(e==="history")return`${_?`?${_}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${_?`#${_}`:""}`;const $=d.location.hash||"#",W=$.indexOf("?");return W>0?`${d.location.search||""}${$.slice(0,W)}${_?`?${_}`:""}`:`${d.location.search||""}${$}${_?`?${_}`:""}`}function v(){return new URLSearchParams(p())}function b(I){const _=new Set(Object.keys(h));for(const $ of I.keys()){const W=I.getAll($);h[$]=W.length>1?W:I.get($)||"",_.delete($)}Array.from(_).forEach($=>delete h[$])}const{pause:w,resume:E}=_w(h,()=>{const I=new URLSearchParams("");Object.keys(h).forEach(_=>{const $=h[_];Array.isArray($)?$.forEach(W=>I.append(_,W)):o&&$==null||s&&!$?I.delete(_):I.set(_,$)}),L(I,!1)},{deep:!0});function L(I,_){w(),_&&b(I),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g(I)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g(I)),E()}function P(){c&&L(v(),!0)}const M={passive:!0};ho(d,"popstate",P,M),e!=="history"&&ho(d,"hashchange",P,M);const R=v();return R.keys().next().value?b(R):Object.assign(h,r),h}function Pw(e={}){const{window:t=Ir,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Ft(r),h=Ft(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),dp(p);const g={passive:!0};if(ho("resize",p,g),t&&f==="visual"&&t.visualViewport&&ho(t.visualViewport,"resize",p,g),s){const v=Ew("(orientation: portrait)");xt(v,()=>p())}return{width:d,height:h}}const Gv={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=yb(),c=Ge([]),f=ke(()=>c.value.reduce((F,Y)=>(F[~~Y.id]=Y)&&F,{})),d=ke(()=>c.value.length),h=Ge(null),p=Ge(!1),g=Ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ge({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",P,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M))},E=()=>{document.removeEventListener("mousemove",P,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",P,{passive:!1}),document.removeEventListener("touchend",M))},L=(F,Y)=>{const re=F.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ae}=re.getBoundingClientRect(),{clientX:D,clientY:q}="ontouchstart"in window&&F.touches?F.touches[0]:F;g.value.cursorOffset=o.horizontal?q-ae:D-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Y},P=F=>{g.value.mouseDown&&(F.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{ne($(F)),Fe("resize",{event:F},!0)}))},M=F=>{g.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:F},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,E()},100)},R=(F,Y)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===Y?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,I(F,Y),v.value.splitter=null):(v.value.splitter=Y,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||Fe("splitter-click",{event:F,index:Y},!0)},I=(F,Y)=>{if(Fe("splitter-dblclick",{event:F,index:Y},!0),o.maximizePanes){let re=0;c.value=c.value.map((le,ae)=>(le.size=ae===Y?le.max:le.min,ae!==Y&&(re+=le.min),le)),c.value[Y].size-=re,Fe("pane-maximize",{event:F,index:Y,pane:c.value[Y]}),Fe("resized",{event:F,index:Y},!0)}},_=(F,Y)=>{Fe("pane-click",{event:F,index:f.value[Y].index,pane:f.value[Y]})},$=F=>{const Y=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:re-(o.horizontal?0:g.value.cursorOffset)-Y.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Y.top}},W=F=>{F=F[o.horizontal?"y":"x"];const Y=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=Y-F),F*100/Y},ne=F=>{const Y=g.value.activeSplitter;let re={prevPanesSize:Z(Y),nextPanesSize:G(Y),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:re.prevPanesSize),ae=100-(o.pushOtherPanes?0:re.nextPanesSize),D=Math.max(Math.min(W(F),ae),le);let q=[Y,Y+1],Q=c.value[q[0]]||null,he=c.value[q[1]]||null;const de=Q.max<100&&D>=Q.max+re.prevPanesSize,ge=he.max<100&&D<=100-(he.max+G(Y+1));if(de||ge){de?(Q.size=Q.max,he.size=Math.max(100-Q.max-re.prevPanesSize-re.nextPanesSize,0)):(Q.size=Math.max(100-he.max-re.prevPanesSize-G(Y+1),0),he.size=he.max);return}if(o.pushOtherPanes){const Ce=ee(re,D);if(!Ce)return;({sums:re,panesToResize:q}=Ce),Q=c.value[q[0]]||null,he=c.value[q[1]]||null}Q!==null&&(Q.size=Math.min(Math.max(D-re.prevPanesSize-re.prevReachedMinPanes,Q.min),Q.max)),he!==null&&(he.size=Math.min(Math.max(100-D-re.nextPanesSize-re.nextReachedMinPanes,he.min),he.max))},ee=(F,Y)=>{const re=g.value.activeSplitter,le=[re,re+1];return Y<F.prevPanesSize+c.value[le[0]].min&&(le[0]=j(re).index,F.prevReachedMinPanes=0,le[0]<re&&c.value.forEach((ae,D)=>{D>le[0]&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),F.prevPanesSize=Z(le[0]),le[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,D)=>{D>0&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),c.value[le[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):Y>100-F.nextPanesSize-c.value[le[1]].min&&(le[1]=N(re).index,F.nextReachedMinPanes=0,le[1]>re+1&&c.value.forEach((ae,D)=>{D>re&&D<le[1]&&(ae.size=ae.min,F.nextReachedMinPanes+=ae.min)}),F.nextPanesSize=G(le[1]-1),le[1]===void 0)?(F.nextReachedMinPanes=0,c.value.forEach((ae,D)=>{D<d.value-1&&D>=re+1&&(ae.size=ae.min,F.nextReachedMinPanes+=ae.min)}),c.value[le[0]].size=100-F.prevPanesSize-G(le[0]-1),null):{sums:F,panesToResize:le}},Z=F=>c.value.reduce((Y,re,le)=>Y+(le<F?re.size:0),0),G=F=>c.value.reduce((Y,re,le)=>Y+(le>F+1?re.size:0),0),j=F=>[...c.value].reverse().find(Y=>Y.index<F&&Y.size>Y.min)||{},N=F=>c.value.find(Y=>Y.index>F+1&&Y.size>Y.min)||{},O=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const re of Y){const le=re.classList.contains("splitpanes__pane"),ae=re.classList.contains("splitpanes__splitter");!le&&!ae&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},C=(F,Y,re=!1)=>{const le=F-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),re||(ae.onmousedown=D=>L(D,le),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=D=>L(D,le)),ae.onclick=D=>R(D,le+1)),ae.ondblclick=D=>I(D,le+1),Y.parentNode.insertBefore(ae,Y)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},z=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const le of Y)le.className.includes("splitpanes__splitter")&&k(le);let re=0;for(const le of Y)le.className.includes("splitpanes__pane")&&(!re&&o.firstSplitter?C(re,le,!0):re&&C(re,le),re++)},B=({uid:F,...Y})=>{const re=f.value[F];for(const[le,ae]of Object.entries(Y))re[le]=ae},ce=F=>{var Y;let re=-1;Array.from(((Y=h.value)==null?void 0:Y.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(F.el))),c.value.splice(re,0,{...F,index:re}),c.value.forEach((le,ae)=>le.index=ae),p.value&&Et(()=>{z(),Se({addedPane:c.value[re]}),Fe("pane-add",{pane:c.value[re]})})},be=F=>{const Y=c.value.findIndex(le=>le.id===F);c.value[Y].el=null;const re=c.value.splice(Y,1)[0];c.value.forEach((le,ae)=>le.index=ae),Et(()=>{z(),Fe("pane-remove",{pane:re}),Se({removedPane:{...re}})})},Se=(F={})=>{!F.addedPane&&!F.removedPane?Ae():c.value.some(Y=>Y.givenSize!==null||Y.min||Y.max<100)?Ke(F):Be(),p.value&&Fe("resized")},Be=()=>{const F=100/d.value;let Y=0;const re=[],le=[];for(const ae of c.value)ae.size=Math.max(Math.min(F,ae.max),ae.min),Y-=ae.size,ae.size>=ae.max&&re.push(ae.id),ae.size<=ae.min&&le.push(ae.id);Y>.1&&je(Y,re,le)},Ae=()=>{let F=100;const Y=[],re=[];let le=0;for(const D of c.value)F-=D.size,D.givenSize!==null&&le++,D.size>=D.max&&Y.push(D.id),D.size<=D.min&&re.push(D.id);let ae=100;if(F>.1){for(const D of c.value)D.givenSize===null&&(D.size=Math.max(Math.min(F/(d.value-le),D.max),D.min)),ae-=D.size;ae>.1&&je(ae,Y,re)}},Ke=({addedPane:F,removedPane:Y}={})=>{let re=100/d.value,le=0;const ae=[],D=[];(F?.givenSize??null)!==null&&(re=(100-F.givenSize)/(d.value-1));for(const q of c.value)le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);if(!(Math.abs(le)<.1)){for(const q of c.value)F?.givenSize!==null&&F?.id===q.id||(q.size=Math.max(Math.min(re,q.max),q.min)),le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);le>.1&&je(le,ae,D)}},je=(F,Y,re)=>{let le;F>0?le=F/(d.value-Y.length):le=F/(d.value-re.length),c.value.forEach((ae,D)=>{if(F>0&&!Y.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}else if(!re.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}}),Math.abs(F)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(F,Y=void 0,re=!1)=>{const le=Y?.index??g.value.activeSplitter??null;r(F,{...Y,...le!==null&&{index:le},...re&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ae=>({min:ae.min,max:ae.max,size:ae.size}))})};xt(()=>o.firstSplitter,()=>z()),Mi(()=>{O(),z(),Se(),Fe("ready"),p.value=!0}),$a(()=>p.value=!1);const Pe=()=>{var F;return za("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",ke(()=>o.horizontal)),dr("requestUpdate",B),dr("onPaneAdd",ce),dr("onPaneRemove",be),dr("onPaneClick",_),(F,Y)=>(ie(),Ve(Xd(Pe)))}},Rc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=pn("requestUpdate"),s=pn("onPaneAdd"),c=pn("horizontal"),f=pn("onPaneRemove"),d=pn("onPaneClick"),h=(t=ti())==null?void 0:t.uid,p=pn("indexedPanes"),g=ke(()=>p.value[h]),v=Ge(null),b=ke(()=>{const P=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(P,E.value),w.value)}),w=ke(()=>{const P=parseFloat(r.minSize);return isNaN(P)?0:P}),E=ke(()=>{const P=parseFloat(r.maxSize);return isNaN(P)?100:P}),L=ke(()=>{var P;return`${c.value?"height":"width"}: ${(P=g.value)==null?void 0:P.size}%`});return xt(()=>b.value,P=>o({uid:h,size:P})),xt(()=>w.value,P=>o({uid:h,min:P})),xt(()=>E.value,P=>o({uid:h,max:P})),Mi(()=>{s({id:h,el:v.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),$a(()=>f(h)),(P,M)=>(ie(),ve("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:M[0]||(M[0]=R=>K(d)(R,P._.uid)),style:zt(L.value)},[Dt(P.$slots,"default")],4))}},tr=Ge([414,896]);function Rw(e){return e!=null}function pp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const UE=/^[A-Za-z]:\//;function VE(e=""){return e&&e.replace(/\\/g,"/").replace(UE,t=>t.toUpperCase())}const GE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const $w=function(...e){e=e.map(o=>VE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:KE();!s||s.length===0||(t=`${s}/${t}`,r=Kv(s))}return t=XE(t,!r),r&&!Kv(t)?`/${t}`:t.length>0?t:"."};function XE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Kv=function(e){return GE.test(e)};var YE=44,Xv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ZE=new Uint8Array(64),Iw=new Uint8Array(128);for(let e=0;e<Xv.length;e++){const t=Xv.charCodeAt(e);ZE[e]=t,Iw[t]=e}function Hl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=Iw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Yv(e,t){return e.pos>=t?!1:e.peek()!==YE}var JE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function QE(e){const{length:t}=e,r=new JE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos<p;){let w;s=Hl(r,s),s<b&&(v=!1),b=s,Yv(r,p)?(c=Hl(r,c),f=Hl(r,f),d=Hl(r,d),Yv(r,p)?(h=Hl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],g.push(w),r.pos++}v||eA(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function eA(e){e.sort(tA)}function tA(e,t){return e[0]-t[0]}var lf=0,nA=1,rA=2,iA=3,oA=4,wu=!1;function sA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][lf]-t;if(c===0)return wu=!0,s;c<0?r=s+1:o=s-1}return wu=!1,r-1}function lA(e,t,r){for(let o=r+1;o<e.length&&e[o][lf]===t;r=o++);return r}function aA(e,t,r){for(let o=r-1;o>=0&&e[o][lf]===t;r=o--);return r}function cA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return wu=f!==-1&&e[f][lf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=sA(e,t,d,h)}var uA="`line` must be greater than 0 (lines start at line 1)",fA="`column` must be greater than or equal to 0 (columns start at column 0)",Zv=-1,dA=1;function hA(e){var t;return(t=e)._decoded||(t._decoded=QE(e._encoded))}function pA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(uA);if(o<0)throw new Error(fA);const c=hA(e);if(r>=c.length)return $c(null,null,null,null);const f=c[r],d=gA(f,e._decodedMemo,r,o,s||dA);if(d===-1)return $c(null,null,null,null);const h=f[d];if(h.length===1)return $c(null,null,null,null);const{names:p,resolvedSources:g}=e;return $c(g[h[nA]],h[rA]+1,h[iA],h.length===5?p[h[oA]]:null)}function $c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function gA(e,t,r,o,s){let c=cA(e,o,t,r);return wu?c=(s===Zv?lA:aA)(e,o,c):s===Zv&&c++,c===-1||c===e.length?-1:c}const Dw=/^\s*at .*(?:\S:\d+|\(native\))/m,mA=/^(?:eval@)?(?:\[native code\])?$/,vA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function zw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function yA(e){let t=e.trim();if(mA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=zw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function bA(e){let t=e.trim();if(!Dw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=zw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:$w(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function wA(e,t={}){const{ignoreStackEntries:r=vA}=t;return(Dw.test(e)?kA(e):xA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Jv(r,s.file)?null:s;const d=new SA(f,s.file),h=TA(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let w=v||s.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),Jv(r,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:b||s.method}:s}).filter(s=>s!=null)}function Jv(e,t){return e.some(r=>t.match(r))}function xA(e){return e.split(` |
| 19 | `).map(t=>bA(t)).filter(Rw)}class SA{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=_A(),this.url=r,this.resolvedSources=(c||[]).map(f=>$w(f||"",r))}}function _A(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function TA(e,t){const r=pA(e,t);return r.column==null?null:r}const CA=/^[A-Za-z]:\//;function Fw(e=""){return e&&e.replace(/\\/g,"/").replace(CA,t=>t.toUpperCase())}const EA=/^[/\\]{2}/,AA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,LA=/^[A-Za-z]:$/,Qv=/^\/([A-Za-z]:)?$/,MA=function(e){if(e.length===0)return".";e=Fw(e);const t=e.match(EA),r=xu(e),o=e[e.length-1]==="/";return e=Hw(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),LA.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!xu(e)?`/${e}`:e)},NA=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return MA(t)};function OA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ey=function(...e){e=e.map(o=>Fw(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:OA();!s||s.length===0||(t=`${s}/${t}`,r=xu(s))}return t=Hw(t,!r),r&&!xu(t)?`/${t}`:t.length>0?t:"."};function Hw(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const xu=function(e){return AA.test(e)},af=function(e,t){const r=ey(e).replace(Qv,"$1").split("/"),o=ey(t).replace(Qv,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function PA(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Bw(e,t,r,o,s){const c=af(t,e),f={id:RA(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function RA(e,t){return PA(`${e}${t||""}`)}function Js(e){return e.type==="test"}function Ww(e){const t=[],r=pp(e);for(const o of r)if(Js(o))t.push(o);else for(const s of o.tasks)if(Js(s))t.push(s);else{const c=Ww(s);for(const f of c)t.push(f)}return t}function gp(e=[]){return pp(e).flatMap(t=>Js(t)?[t]:[t,...gp(t.tasks)])}function $A(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const ty="q",ny="s";function IA(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const DA=Math.random.bind(Math),zA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function FA(e=21){let t="",r=e;for(;r--;)t+=zA[DA()*64|0];return t}const HA=6e4,qw=e=>e,BA=qw,{clearTimeout:ry,setTimeout:WA}=globalThis;function qA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=qw,deserialize:d=BA,resolver:h,bind:p="rpc",timeout:g=HA,proxify:v=!0}=t;let b=!1;const w=new Map;let E,L;async function P($,W,ne,ee){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${$}"`);const Z={m:$,a:W,t:ty};ee&&(Z.o=!0);const G=async B=>r(f(B));if(ne){await G(Z);return}if(E)try{await E}finally{E=void 0}let{promise:j,resolve:N,reject:O}=IA();const C=FA();Z.i=C;let k;async function z(B=Z){return g>=0&&(k=WA(()=>{try{if(t.onTimeoutError?.call(L,$,W)!==!0)throw new Error(`[birpc] timeout on calling "${$}"`)}catch(ce){O(ce)}w.delete(C)},g),typeof k=="object"&&(k=k.unref?.())),w.set(C,{resolve:N,reject:O,timeoutId:k,method:$}),await G(B),j}try{t.onRequest?await t.onRequest.call(L,Z,z,N):await z()}catch(B){if(t.onGeneralError?.call(L,B)!==!0)throw B;return}finally{ry(k),w.delete(C)}return j}const M={$call:($,...W)=>P($,W,!1),$callOptional:($,...W)=>P($,W,!1,!0),$callEvent:($,...W)=>P($,W,!0),$callRaw:$=>P($.method,$.args,$.event,$.optional),$rejectPendingCalls:I,get $closed(){return b},get $meta(){return t.meta},$close:R,$functions:e};v?L=new Proxy({},{get($,W){if(Object.prototype.hasOwnProperty.call(M,W))return M[W];if(W==="then"&&!c.includes("then")&&!("then"in e))return;const ne=(...Z)=>P(W,Z,!0);if(c.includes(W))return ne.asEvent=ne,ne;const ee=(...Z)=>P(W,Z,!1);return ee.asEvent=ne,ee}}):L=M;function R($){b=!0,w.forEach(({reject:W,method:ne})=>{const ee=new Error(`[birpc] rpc is closed, cannot call "${ne}"`);if($)return $.cause??=ee,W($);W(ee)}),w.clear(),s(_)}function I($){const W=Array.from(w.values()).map(({method:ne,reject:ee})=>$?$({method:ne,reject:ee}):ee(new Error(`[birpc]: rejected pending call "${ne}".`)));return w.clear(),W}async function _($,...W){let ne;try{ne=d($)}catch(ee){if(t.onGeneralError?.call(L,ee)!==!0)throw ee;return}if(ne.t===ty){const{m:ee,a:Z,o:G}=ne;let j,N,O=await(h?h.call(L,ee,e[ee]):e[ee]);if(G&&(O||=()=>{}),!O)N=new Error(`[birpc] function "${ee}" not found`);else try{j=await O.apply(p==="rpc"?L:e,Z)}catch(C){N=C}if(ne.i){if(N&&t.onFunctionError&&t.onFunctionError.call(L,N,ee,Z)===!0)return;if(!N)try{await r(f({t:ny,i:ne.i,r:j}),...W);return}catch(C){if(N=C,t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}try{await r(f({t:ny,i:ne.i,e:N}),...W)}catch(C){if(t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}}}else{const{i:ee,r:Z,e:G}=ne,j=w.get(ee);j&&(ry(j.timeoutId),G?j.reject(G):j.resolve(Z)),w.delete(ee)}}return E=o(_),L}const{parse:jw,stringify:jA}=JSON,{keys:UA}=Object,ka=String,Uw="string",iy={},ku="object",Vw=(e,t)=>t,VA=e=>e instanceof ka?ka(e):e,GA=(e,t)=>typeof t===Uw?new ka(t):t,Gw=(e,t,r,o)=>{const s=[];for(let c=UA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ka){const g=e[p];typeof g===ku&&!t.has(g)?(t.add(g),r[h]=iy,s.push({k:h,a:[e,t,g,o]})):r[h]=o.call(r,h,g)}else r[h]!==iy&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Gw.apply(null,h))}return r},oy=(e,t,r)=>{const o=ka(t.push(r)-1);return e.set(r,o),o},fh=(e,t)=>{const r=jw(e,GA).map(VA),o=r[0],s=t||Vw,c=typeof o===ku&&o?Gw(r,new Set,o,s):o;return s.call({"":c},"",c)},Kw=(e,t,r)=>{const o=t&&typeof t===ku?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||Vw,s=new Map,c=[],f=[];let d=+oy(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=jA(c[d++],p,r);return"["+f.join(",")+"]";function p(g,v){if(h)return h=!h,v;const b=o.call(this,g,v);switch(typeof b){case ku:if(b===null)return b;case Uw:return s.get(b)||oy(s,c,b)}return b}},KA=e=>jw(Kw(e));class Xw{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Bw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function XA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new Xw,waitForConnection:M,reconnect:L},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(R,I){r.onTestAnnotate?.(R,I)},onTestArtifactRecord(R,I){r.onTestArtifactRecord?.(R,I)},onSpecsCollected(R,I){R?.forEach(([_,$])=>{g.state.clearFiles({config:_},[$])}),r.onSpecsCollected?.(R,I)},onPathsCollected(R){g.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){g.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,I){g.state.updateTasks(R),r.onTaskUpdate?.(R,I)},onUserConsoleLog(R){g.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,I,_,$){r.onFinished?.(R,I,_,$)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:R=>g.ws.send(R),on:R=>v=R,serialize:R=>Kw(R,(I,_)=>_ instanceof Error?{name:_.name,message:_.message,stack:_.stack}:_),deserialize:fh,timeout:-1};g.rpc=qA(b,w);let E;function L(R=!1){R&&(p=c),g.ws=new h(e),P()}function P(){E=new Promise((R,I)=>{const _=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&R(),g.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(_)})}),g.ws.addEventListener("message",R=>{v(R.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}P();function M(){return E}return g}const dh=Ft([]),Jn=Ft([]),Dr=sf("vitest-ui_task-tree-opened",[],{shallow:!0}),Su=ke(()=>new Set(Dr.value)),gn=sf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Vn=Ge(gn.value.search),YA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yw(e){return e.replace(/[&<>"']/g,t=>YA[t])}const ZA=ke(()=>{const e=Vn.value.toLowerCase();return e.length?new RegExp(`(${Yw(e)})`,"gi"):null}),Zw=ke(()=>Vn.value.trim()!==""),it=ir({failed:gn.value.failed,success:gn.value.success,skipped:gn.value.skipped,onlyTests:gn.value.onlyTests}),hh=ke(()=>!!(it.failed||it.success||it.skipped)),cf=Ft([]),Qs=Ge(!1),sy=ke(()=>{const e=gn.value.expandAll;return Dr.value.length>0?e!==!0:e!==!1}),JA=ke(()=>{const e=Zw.value,t=hh.value,r=it.onlyTests,o=Oe.summary.filesFailed,s=Oe.summary.filesSuccess,c=Oe.summary.filesSkipped,f=Oe.summary.filesRunning,d=cf.value;return Oe.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ha(e){return Object.hasOwn(e,"tasks")}function QA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Fo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Ed(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function eL(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Jw(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function tL(e){return Jw(e).raw}function Xc(e){if(e>=500)return"danger";if(e>=100)return"warning"}function _u(e){const t=Xc(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Qw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function ex(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function nL(e){return e.type==="test"}function rL(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Ci(e){return e.type==="file"||e.type==="suite"}function iL(e=Oe.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function Sa(e,t=!1){let r=Oe.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Su.value.size>0&&Su.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Oe.colors.get(e.projectName||"")||Qw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Oe.nodes.set(e.id,r),Oe.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ba(e.id,e.tasks[o],!0)}function tx(e,t){const r=Oe.nodes.get(e);if(!r||!Ci(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Ha(o)))return Ba(r.parentId,o,t&&o.tasks.length>0),[r,o]}function oL(e){const t=Oe.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!Js(r)||Ba(t.parentId,r,!1)}function Ba(e,t,r){const o=Oe.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Oe.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Js(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Su.value.size>0&&Su.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Oe.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ha(t)))for(let f=0;f<t.tasks.length;f++)Ba(s.id,t.tasks[f],r)}function sL(e){const t=Oe.nodes.get(e);if(!t||!Ci(t))return;const r=new Set(Dr.value);r.delete(t.id);const o=[...aL(t)];Dr.value=Array.from(r),Jn.value=o}function lL(){ph(Oe.root.tasks);const e=[...Jn.value.filter(In)];ph(e),Dr.value=[],gn.value.expandAll=!0,Jn.value=e}function ph(e){for(const t of e)Ci(t)&&(t.expanded=!1,ph(t.tasks))}function*nx(e,t){if(t&&(yield e.id),Ci(e))for(let r=0;r<e.tasks.length;r++)yield*nx(e.tasks[r],!0)}function*aL(e){const t=e.id,r=new Set(nx(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const uf=Ge("idle"),Ms=ke(()=>uf.value==="idle"),eo=Ge([]);function cL(e,t,r){return e?ox(e,t,r):!1}function mp(e,t){const r=[...rx(e,t)];Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function*rx(e,t){for(const r of iL())yield*ix(r,e,t)}function*ix(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of gh(e,o,w=>ly(w,t,r)))c.push([v,b]);else{for(const[v,b]of gh(e,o,w=>ly(w,t,r)))Ci(b)?(s.set(b.id,v),In(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...fL(c,r.onlyTests,o,d,f)].reverse(),p=Oe.nodes,g=new Set(h.filter(v=>In(v)||Ci(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>In(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function uL(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*fL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Ci(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Oe.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Oe.nodes.get(p.parentId);yield d;continue}if(h){const p=uL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Oe.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function dL(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function ox(e,t,r){if(t.length===0||QA(e.name,t))if(r.success||r.failed||r.skipped){if(dL(e,r))return!0}else return!0;return!1}function*gh(e,t,r){const o=r(e);if(o)if(nL(e)){let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}if(yield[o,e],Ci(e))for(let s=0;s<e.tasks.length;s++)yield*gh(e.tasks[s],t,r)}function ly(e,t,r){const o=ft.state.idMap.get(e.id);return o?ox(o,t,r):!1}function hL(e,t,r){const o=tx(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ba(s.id,p,!1);s.expanded=!0;const f=new Set(Dr.value);f.add(s.id);const d=new Set(ix(s,t,r)),h=[...mL(s,d)];Dr.value=Array.from(f),Jn.value=h}function pL(e,t){vp(Oe.root.tasks,!1);const r=[...rx(e,t)];gn.value.expandAll=!1,Dr.value=[],Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function gL(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&vp(Jn.value.filter(In),!0)}function vp(e,t){for(const r of e)Ci(r)&&(r.expanded=!0,vp(r.tasks,!1));t&&(gn.value.expandAll=!1,Dr.value=[])}function*mL(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function yp(e){return Ww(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function vL(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Sa(s,t)),dh.value=[...Oe.root.tasks],mp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function yL(e){queueMicrotask(()=>{const t=Oe.pendingTasks,r=ft.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function bL(e,t){const r=Oe.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function ay(e,t,r,o,s,c){e&&TL(r);const f=!e;queueMicrotask(()=>{t?kL(f):SL(f)}),queueMicrotask(()=>{CL(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=dh.value&&yp(dh.value.map(d=>mr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{_L(o,s,t)})}function*wL(){yield*Jn.value.filter(rL)}function xL(){const e=ft.state.idMap;let t;for(const r of wL())t=e.get(r.parentId),t&&Ha(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function kL(e){const t=ft.state.getFiles(),r=Oe.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Sa(o[c],e),Tu(o[c].tasks);const s=Oe.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=mr(f.id);!d||(Sa(d,e),!d.tasks?.length)||Tu(d.tasks)}}function SL(e){const t=new Map(Oe.pendingTasks.entries());Oe.pendingTasks.clear();const r=Oe.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>mr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Sa(s,!1),Tu(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Oe.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=mr(h.id);if(!p)continue;const g=t.get(p.id);g&&(Sa(p,e),Tu(Array.from(g,v=>c.get(v)).filter(Boolean)))}}function _L(e,t,r=!1){const o=gn.value.expandAll,s=o!==!0,c=new Set(Dr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{cy(e,t,r)}),Qs.value||queueMicrotask(()=>{(Jn.value.length||r)&&(Qs.value=!0)}),f&&(queueMicrotask(()=>{gL(c,r),s&&(gn.value.expandAll=!1)}),queueMicrotask(()=>{cy(e,t,r)}))}function cy(e,t,r){mp(e,t),r&&(xL(),uf.value="idle")}function Tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ha(t)?tx(t.id,!0):oL(t.id)}function TL(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function CL(e,t){const r=ft.state.idMap,o=new Map(Oe.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,mr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:w}=sx(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=w,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function sx(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of lx(e))(!r||cL(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function EL(e,t,r,o,s,c){if(t)return r.map(f=>sx(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*lx(e){const t=pp(e);let r;for(let o=0;o<t.length;o++)r=t[o],Js(r)?yield r:yield*lx(r.tasks)}class AL{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=ir({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=AE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),vL(t,!0,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){bL(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){yL(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return EL(t,r,o,s,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}collapseNode(t){queueMicrotask(()=>{sL(t)})}expandNode(t){queueMicrotask(()=>{hL(t,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{lL()})}expandAllNodes(){queueMicrotask(()=>{pL(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}filterNodes(){queueMicrotask(()=>{mp(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}}const Oe=new AL;function ax(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},LL=Yc.exports,uy;function vo(){return uy||(uy=1,(function(e,t){(function(r,o){e.exports=o()})(LL,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),P=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),I=/Android/.test(r),_=R||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),$=R||/Mac/.test(o),W=/\bCrOS\b/.test(r),ne=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,g=!0);var Z=$&&(v||E&&(ee==null||ee<12.11)),G=s||h&&p>=9;function j(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var N=function(n,i){var a=n.className,l=j(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function C(n,i){return O(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)u.appendChild(i[m]);return u}function z(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var B;document.createRange?B=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:B=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ce(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function be(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Se(n,i){var a=n.className;j(i).test(a)||(n.className+=(a?" ":"")+i)}function Be(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!j(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ae=function(n){n.select()};R?Ae=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ae=function(n){try{n.select()}catch{}});function Ke(n){return n.display.wrapper.ownerDocument}function je(n){return Fe(n.display.wrapper)}function Fe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Pe(n){return Ke(n).defaultView}function F(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Y(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function re(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var m=l||0,y=u||0;;){var x=n.indexOf(" ",m);if(x<0||x>=i)return y+(i-m);y+=x-m,y+=a-y%a,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ae(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var D=50,q={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},he={origin:"*mouse"},de={origin:"+move"};function ge(n,i,a){for(var l=0,u=0;;){var m=n.indexOf(" ",l);m==-1&&(m=n.length);var y=m-l;if(m==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function J(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function ue(){}function oe(n,i){var a;return Object.create?a=Object.create(n):(ue.prototype=n,a=new ue),i&&Y(i,a),a}var $e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||$e.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Je(n)?!0:i.test(n):Je(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Yt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;m<n.length;++m){var y=n[m];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",m),u=!0)}u||l(i,a,"ltr")}var Hr=null;function Bt(n,i,a){var l;Hr=null;for(var u=0;u<n.length;++u){var m=n[u];if(m.from<i&&m.to>i)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Hr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Hr=u)}return l??Hr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var se=T.length,te=[],pe=0;pe<se;++pe)te.push(a(T.charCodeAt(pe)));for(var we=0,Te=V;we<se;++we){var Le=te[we];Le=="m"?te[we]=Te:Te=Le}for(var De=0,Me=V;De<se;++De){var ze=te[De];ze=="1"&&Me=="r"?te[De]="n":m.test(ze)&&(Me=ze,ze=="r"&&(te[De]="R"))}for(var Ye=1,Ue=te[0];Ye<se-1;++Ye){var st=te[Ye];st=="+"&&Ue=="1"&&te[Ye+1]=="1"?te[Ye]="1":st==","&&Ue==te[Ye+1]&&(Ue=="1"||Ue=="n")&&(te[Ye]=Ue),Ue=st}for(var St=0;St<se;++St){var tn=te[St];if(tn==",")te[St]="N";else if(tn=="%"){var Ot=void 0;for(Ot=St+1;Ot<se&&te[Ot]=="%";++Ot);for(var qn=St&&te[St-1]=="!"||Ot<se&&te[Ot]=="1"?"1":"N",Cn=St;Cn<Ot;++Cn)te[Cn]=qn;St=Ot-1}}for(var Ut=0,En=V;Ut<se;++Ut){var sn=te[Ut];En=="L"&&sn=="1"?te[Ut]="L":m.test(sn)&&(En=sn)}for(var Kt=0;Kt<se;++Kt)if(u.test(te[Kt])){var Vt=void 0;for(Vt=Kt+1;Vt<se&&u.test(te[Vt]);++Vt);for(var It=(Kt?te[Kt-1]:V)=="L",An=(Vt<se?te[Vt]:V)=="L",ks=It==An?It?"L":"R":V,ji=Kt;ji<Vt;++ji)te[ji]=ks;Kt=Vt-1}for(var fn=[],Ur,nn=0;nn<se;)if(y.test(te[nn])){var cd=nn;for(++nn;nn<se&&y.test(te[nn]);++nn);fn.push(new S(0,cd,nn))}else{var ui=nn,Ao=fn.length,Lo=H=="rtl"?1:0;for(++nn;nn<se&&te[nn]!="L";++nn);for(var yn=ui;yn<nn;)if(x.test(te[yn])){ui<yn&&(fn.splice(Ao,0,new S(1,ui,yn)),Ao+=Lo);var Ss=yn;for(++yn;yn<nn&&x.test(te[yn]);++yn);fn.splice(Ao,0,new S(2,Ss,yn)),Ao+=Lo,ui=yn}else++yn;ui<nn&&fn.splice(Ao,0,new S(1,ui,nn))}return H=="ltr"&&(fn[0].level==1&&(Ur=T.match(/^\s+/))&&(fn[0].from=Ur[0].length,fn.unshift(new S(0,0,Ur[0].length))),xe(fn).level==1&&(Ur=T.match(/\s+$/))&&(xe(fn).to-=Ur[0].length,fn.push(new S(0,se-Ur[0].length,se)))),H=="rtl"?fn.reverse():fn}})();function lt(n,i){var a=n.order;return a==null&&(a=n.order=Hn(n.text,i)),a}var yo=[],Xe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||yo).concat(a)}};function ri(n,i){return n._handlers&&n._handlers[i]||yo}function an(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var m=ae(u,a);m>-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function Pt(n,i){var a=ri(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Rt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Pt(n,a||i.type,n,i),kn(i)||i.codemirrorIgnore}function ar(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)ae(a,i[l])==-1&&a.push(i[l])}function Bn(n,i){return ri(n,i).length>0}function yr(n){n.prototype.on=function(i,a){Xe(this,i,a)},n.prototype.off=function(i,a){an(this,i,a)}}function cn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Zo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function kn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Oi(n){cn(n),Zo(n)}function sl(n){return n.target||n.srcElement}function br(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),$&&n.ctrlKey&&i==1&&(i=3),i}var mf=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),Jo;function Ga(n){if(Jo==null){var i=k("span","");C(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Jo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Jo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ll;function Pi(n){if(ll!=null)return ll;var i=C(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:ll=l.right-a.right<3}var cr=` |