@vitest/browser 3.2.0-beta.1 → 3.2.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,52 @@
1
+ var V_=Object.defineProperty;var G_=(e,t,r)=>t in e?V_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ds=(e,t,r)=>G_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
2
+ * @vue/shared v3.5.15
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **//*! #__NO_SIDE_EFFECTS__ */function dh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},xs=[],Ur=()=>{},K_=()=>!1,pu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hh=e=>e.startsWith("onUpdate:"),on=Object.assign,ph=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},X_=Object.prototype.hasOwnProperty,wt=(e,t)=>X_.call(e,t),ze=Array.isArray,_s=e=>ha(e)==="[object Map]",gu=e=>ha(e)==="[object Set]",av=e=>ha(e)==="[object Date]",Ve=e=>typeof e=="function",Dt=e=>typeof e=="string",Lr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",U0=e=>(St(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),j0=Object.prototype.toString,ha=e=>j0.call(e),Y_=e=>ha(e).slice(8,-1),V0=e=>ha(e)==="[object Object]",gh=e=>Dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=dh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Z_=/-(\w)/g,ir=vu(e=>e.replace(Z_,(t,r)=>r?r.toUpperCase():"")),J_=/\B([A-Z])/g,wi=vu(e=>e.replace(J_,"-$1").toLowerCase()),mu=vu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tc=vu(e=>e?`on${mu(e)}`:""),jn=(e,t)=>!Object.is(e,t),Cc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},G0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},yd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},K0=e=>{const t=Dt(e)?Number(e):NaN;return isNaN(t)?e:t};let cv;const yu=()=>cv||(cv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Dt(o)?nS(o):nn(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Dt(e)||St(e))return e}const Q_=/;(?![^(]*\))/g,eS=/:([^]+)/,tS=/\/\*[^]*?\*\//g;function nS(e){const t={};return e.replace(tS,"").split(Q_).forEach(r=>{if(r){const o=r.split(eS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(Dt(e))t=e;else if(ze(e))for(let r=0;r<e.length;r++){const o=it(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function rS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Dt(t)&&(e.class=it(t)),r&&(e.style=nn(r)),e}const iS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",oS=dh(iS);function X0(e){return!!e||e===""}function sS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=bu(e[o],t[o]);return r}function bu(e,t){if(e===t)return!0;let r=av(e),o=av(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Lr(e),o=Lr(t),r||o)return e===t;if(r=ze(e),o=ze(t),r||o)return r&&o?sS(e,t):!1;if(r=St(e),o=St(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!bu(e[f],t[f]))return!1}}return String(e)===String(t)}function Y0(e,t){return e.findIndex(r=>bu(r,t))}const Z0=e=>!!(e&&e.__v_isRef===!0),We=e=>Dt(e)?e:e==null?"":ze(e)||St(e)&&(e.toString===j0||!Ve(e.toString))?Z0(e)?We(e.value):JSON.stringify(e,J0,2):String(e),J0=(e,t)=>Z0(t)?J0(e,t.value):_s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Wf(o,c)+" =>"]=s,r),{})}:gu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Wf(r))}:Lr(t)?Wf(t):St(t)&&!ze(t)&&!V0(t)?String(t):t,Wf=(e,t="")=>{var r;return Lr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
+ * @vue/reactivity v3.5.15
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let yn;class lS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=yn;try{return yn=this,t()}finally{yn=r}}}on(){++this._on===1&&(this.prevScope=yn,yn=this)}off(){this._on>0&&--this._on===0&&(yn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Q0(){return yn}function aS(e,t=!1){yn&&yn.cleanups.push(e)}let kt;const qf=new WeakSet;class ey{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,yn&&yn.active&&yn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qf.has(this)&&(qf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ny(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uv(this),ry(this);const t=kt,r=Cr;kt=this,Cr=!0;try{return this.fn()}finally{iy(this),kt=t,Cr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)yh(t);this.deps=this.depsTail=void 0,uv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){bd(this)&&this.run()}get dirty(){return bd(this)}}let ty=0,Nl,$l;function ny(e,t=!1){if(e.flags|=8,t){e.next=$l,$l=e;return}e.next=Nl,Nl=e}function vh(){ty++}function mh(){if(--ty>0)return;if($l){let t=$l;for($l=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Nl;){let t=Nl;for(Nl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function ry(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function iy(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),yh(o),cS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function bd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(oy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function oy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ql)||(e.globalVersion=ql,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!bd(e))))return;e.flags|=2;const t=e.dep,r=kt,o=Cr;kt=e,Cr=!0;try{ry(e);const s=e.fn(e._value);(t.version===0||jn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Cr=o,iy(e),e.flags&=-3}}function yh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)yh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function cS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Cr=!0;const sy=[];function gi(){sy.push(Cr),Cr=!1}function vi(){const e=sy.pop();Cr=e===void 0?!0:e}function uv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let ql=0;class uS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!kt||!Cr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new uS(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,ly(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,ql++,this.notify(t)}notify(t){vh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{mh()}}}function ly(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)ly(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const zc=new WeakMap,$o=Symbol(""),wd=Symbol(""),Ul=Symbol("");function bn(e,t,r){if(Cr&&kt){let o=zc.get(e);o||zc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new wu),s.map=o,s.key=r),s.track()}}function fi(e,t,r,o,s,c){const f=zc.get(e);if(!f){ql++;return}const d=h=>{h&&h.trigger()};if(vh(),t==="clear")f.forEach(d);else{const h=ze(e),p=h&&gh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Ul||!Lr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Ul)),t){case"add":h?p&&d(f.get("length")):(d(f.get($o)),_s(e)&&d(f.get(wd)));break;case"delete":h||(d(f.get($o)),_s(e)&&d(f.get(wd)));break;case"set":_s(e)&&d(f.get($o));break}}mh()}function fS(e,t){const r=zc.get(e);return r&&r.get(t)}function hs(e){const t=ht(e);return t===e?t:(bn(t,"iterate",Ul),ur(e)?t:t.map(hn))}function xu(e){return bn(e=ht(e),"iterate",Ul),e}const dS={__proto__:null,[Symbol.iterator](){return Uf(this,Symbol.iterator,hn)},concat(...e){return hs(this).concat(...e.map(t=>ze(t)?hs(t):t))},entries(){return Uf(this,"entries",e=>(e[1]=hn(e[1]),e))},every(e,t){return oi(this,"every",e,t,void 0,arguments)},filter(e,t){return oi(this,"filter",e,t,r=>r.map(hn),arguments)},find(e,t){return oi(this,"find",e,t,hn,arguments)},findIndex(e,t){return oi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return oi(this,"findLast",e,t,hn,arguments)},findLastIndex(e,t){return oi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return oi(this,"forEach",e,t,void 0,arguments)},includes(...e){return jf(this,"includes",e)},indexOf(...e){return jf(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return jf(this,"lastIndexOf",e)},map(e,t){return oi(this,"map",e,t,void 0,arguments)},pop(){return wl(this,"pop")},push(...e){return wl(this,"push",e)},reduce(e,...t){return fv(this,"reduce",e,t)},reduceRight(e,...t){return fv(this,"reduceRight",e,t)},shift(){return wl(this,"shift")},some(e,t){return oi(this,"some",e,t,void 0,arguments)},splice(...e){return wl(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return wl(this,"unshift",e)},values(){return Uf(this,"values",hn)}};function Uf(e,t,r){const o=xu(e),s=o[t]();return o!==e&&!ur(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const hS=Array.prototype;function oi(e,t,r,o,s,c){const f=xu(e),d=f!==e&&!ur(e),h=f[t];if(h!==hS[t]){const m=h.apply(e,c);return d?hn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,hn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function fv(e,t,r,o){const s=xu(e);let c=r;return s!==e&&(ur(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,hn(d),h,e)}),s[t](c,...o)}function jf(e,t,r){const o=ht(e);bn(o,"iterate",Ul);const s=o[t](...r);return(s===-1||s===!1)&&_h(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function wl(e,t,r=[]){gi(),vh();const o=ht(e)[t].apply(e,r);return mh(),vi(),o}const pS=dh("__proto__,__v_isRef,__isVue"),ay=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Lr));function gS(e){Lr(e)||(e=String(e));const t=ht(this);return bn(t,"has",e),t.hasOwnProperty(e)}class cy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?TS:hy:c?dy:fy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=ze(t);if(!s){let h;if(f&&(h=dS[r]))return h;if(r==="hasOwnProperty")return gS}const d=Reflect.get(t,r,Ct(t)?t:o);return(Lr(r)?ay.has(r):pS(r))||(s||bn(t,"get",r),c)?d:Ct(d)?f&&gh(r)?d:d.value:St(d)?s?pa(d):rr(d):d}}class uy extends cy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=to(c);if(!ur(o)&&!to(o)&&(c=ht(c),o=ht(o)),!ze(t)&&Ct(c)&&!Ct(o))return h?!1:(c.value=o,!0)}const f=ze(t)&&gh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Ct(t)?t:s);return t===ht(s)&&(f?jn(o,c)&&fi(t,"set",r,o):fi(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&fi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Lr(r)||!ay.has(r))&&bn(t,"has",r),o}ownKeys(t){return bn(t,"iterate",ze(t)?"length":$o),Reflect.ownKeys(t)}}class vS extends cy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const mS=new uy,yS=new vS,bS=new uy(!0);const xd=e=>e,ac=e=>Reflect.getPrototypeOf(e);function wS(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=_s(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?xd:t?Fc:hn;return!t&&bn(c,"iterate",h?wd:$o),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xS(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(jn(s,d)&&bn(f,"get",s),bn(f,"get",d));const{has:h}=ac(f),p=t?xd:e?Fc:hn;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&bn(ht(s),"iterate",$o),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(jn(s,d)&&bn(f,"has",s),bn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=ht(d),p=t?xd:e?Fc:hn;return!e&&bn(h,"iterate",$o),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return on(r,e?{add:cc("add"),set:cc("set"),delete:cc("delete"),clear:cc("clear")}:{add(s){!t&&!ur(s)&&!to(s)&&(s=ht(s));const c=ht(this);return ac(c).has.call(c,s)||(c.add(s),fi(c,"add",s,s)),this},set(s,c){!t&&!ur(c)&&!to(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=ac(f);let p=d.call(f,s);p||(s=ht(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?jn(c,v)&&fi(f,"set",s,c):fi(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=ac(c);let h=f.call(c,s);h||(s=ht(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&fi(c,"delete",s,void 0),p},clear(){const s=ht(this),c=s.size!==0,f=s.clear();return c&&fi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=wS(s,e,t)}),r}function bh(e,t){const r=xS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const _S={get:bh(!1,!1)},SS={get:bh(!1,!0)},kS={get:bh(!0,!1)};const fy=new WeakMap,dy=new WeakMap,hy=new WeakMap,TS=new WeakMap;function CS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ES(e){return e.__v_skip||!Object.isExtensible(e)?0:CS(Y_(e))}function rr(e){return to(e)?e:xh(e,!1,mS,_S,fy)}function wh(e){return xh(e,!1,bS,SS,dy)}function pa(e){return xh(e,!0,yS,kS,hy)}function xh(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=ES(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function Ss(e){return to(e)?Ss(e.__v_raw):!!(e&&e.__v_isReactive)}function to(e){return!!(e&&e.__v_isReadonly)}function ur(e){return!!(e&&e.__v_isShallow)}function _h(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function Sh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&G0(e,"__v_skip",!0),e}const hn=e=>St(e)?rr(e):e,Fc=e=>St(e)?pa(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function Ue(e){return py(e,!1)}function rn(e){return py(e,!0)}function py(e,t){return Ct(e)?e:new AS(e,t)}class AS{constructor(t,r){this.dep=new wu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:hn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||ur(t)||to(t);t=o?t:ht(t),jn(t,r)&&(this._rawValue=t,this._value=o?t:hn(t),this.dep.trigger())}}function U(e){return Ct(e)?e.value:e}function Vt(e){return Ve(e)?e():U(e)}const LS={get:(e,t,r)=>t==="__v_raw"?e:U(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ct(s)&&!Ct(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function gy(e){return Ss(e)?e:new Proxy(e,LS)}class MS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new wu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function vy(e){return new MS(e)}function NS(e){const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=my(e,r);return t}class $S{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fS(ht(this._object),this._key)}}class OS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ga(e,t,r){return Ct(e)?e:Ve(e)?new OS(e):St(e)&&arguments.length>1?my(e,t,r):Ue(e)}function my(e,t,r){const o=e[t];return Ct(o)?o:new $S(e,t,r)}class RS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new wu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ql-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return ny(this,!0),!0}get value(){const t=this.dep.track();return oy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function PS(e,t,r=!1){let o,s;return Ve(e)?o=e:(o=e.get,s=e.set),new RS(o,s,r)}const uc={},Hc=new WeakMap;let Eo;function IS(e,t=!1,r=Eo){if(r){let o=Hc.get(r);o||Hc.set(r,o=[]),o.push(e)}}function DS(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=M=>s?M:ur(M)||s===!1||s===0?di(M,1):di(M);let v,m,b,w,E=!1,N=!1;if(Ct(e)?(m=()=>e.value,E=ur(e)):Ss(e)?(m=()=>p(e),E=!0):ze(e)?(N=!0,E=e.some(M=>Ss(M)||ur(M)),m=()=>e.map(M=>{if(Ct(M))return M.value;if(Ss(M))return p(M);if(Ve(M))return h?h(M,2):M()})):Ve(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){gi();try{b()}finally{vi()}}const M=Eo;Eo=v;try{return h?h(e,3,[w]):e(w)}finally{Eo=M}}:m=Ur,t&&s){const M=m,B=s===!0?1/0:s;m=()=>di(M(),B)}const T=Q0(),L=()=>{v.stop(),T&&T.active&&ph(T.effects,v)};if(c&&t){const M=t;t=(...B)=>{M(...B),L()}}let A=N?new Array(e.length).fill(uc):uc;const R=M=>{if(!(!(v.flags&1)||!v.dirty&&!M))if(t){const B=v.run();if(s||E||(N?B.some((V,G)=>jn(V,A[G])):jn(B,A))){b&&b();const V=Eo;Eo=v;try{const G=[B,A===uc?void 0:N&&A[0]===uc?[]:A,w];A=B,h?h(t,3,G):t(...G)}finally{Eo=V}}}else v.run()};return d&&d(R),v=new ey(m),v.scheduler=f?()=>f(R,!1):R,w=M=>IS(M,!1,v),b=v.onStop=()=>{const M=Hc.get(v);if(M){if(h)h(M,4);else for(const B of M)B();Hc.delete(v)}},t?o?R(!0):A=v.run():f?f(R.bind(null,!0),!0):v.run(),L.pause=v.pause.bind(v),L.resume=v.resume.bind(v),L.stop=L,L}function di(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Ct(e))di(e.value,t,r);else if(ze(e))for(let o=0;o<e.length;o++)di(e[o],t,r);else if(gu(e)||_s(e))e.forEach(o=>{di(o,t,r)});else if(V0(e)){for(const o in e)di(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&di(e[o],t,r)}return e}/**
10
+ * @vue/runtime-core v3.5.15
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function va(e,t,r,o){try{return o?e(...o):e()}catch(s){ma(s,t,r)}}function Mr(e,t,r,o){if(Ve(e)){const s=va(e,t,r,o);return s&&U0(s)&&s.catch(c=>{ma(c,t,r)}),s}if(ze(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Mr(e[c],t,r,o));return s}}function ma(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){gi(),va(c,null,10,[e,h,p]),vi();return}}zS(e,r,s,o,f)}function zS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const $n=[];let Wr=-1;const ks=[];let Wi=null,gs=0;const yy=Promise.resolve();let Bc=null;function Tt(e){const t=Bc||yy;return e?t.then(this?e.bind(this):e):t}function FS(e){let t=Wr+1,r=$n.length;for(;t<r;){const o=t+r>>>1,s=$n[o],c=jl(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function kh(e){if(!(e.flags&1)){const t=jl(e),r=$n[$n.length-1];!r||!(e.flags&2)&&t>=jl(r)?$n.push(e):$n.splice(FS(t),0,e),e.flags|=1,by()}}function by(){Bc||(Bc=yy.then(xy))}function _d(e){ze(e)?ks.push(...e):Wi&&e.id===-1?Wi.splice(gs+1,0,e):e.flags&1||(ks.push(e),e.flags|=1),by()}function dv(e,t,r=Wr+1){for(;r<$n.length;r++){const o=$n[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;$n.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function wy(e){if(ks.length){const t=[...new Set(ks)].sort((r,o)=>jl(r)-jl(o));if(ks.length=0,Wi){Wi.push(...t);return}for(Wi=t,gs=0;gs<Wi.length;gs++){const r=Wi[gs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Wi=null,gs=0}}const jl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xy(e){try{for(Wr=0;Wr<$n.length;Wr++){const t=$n[Wr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),va(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Wr<$n.length;Wr++){const t=$n[Wr];t&&(t.flags&=-2)}Wr=-1,$n.length=0,wy(),Bc=null,($n.length||ks.length)&&xy()}}let tn=null,_u=null;function Wc(e){const t=tn;return tn=e,_u=e&&e.type.__scopeId||null,t}function _y(e){_u=e}function Sy(){_u=null}const ky=e=>rt;function rt(e,t=tn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Vc(-1);const c=Wc(t);let f;try{f=e(...s)}finally{Wc(c),o._d&&Vc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function gt(e,t){if(tn===null)return e;const r=Mu(tn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(Ve(c)&&(c={mounted:c,updated:c}),c.deep&&di(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function _o(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(gi(),Mr(h,r,8,[e.el,d,e,t]),vi())}}const HS=Symbol("_vte"),Ty=e=>e.__isTeleport,qi=Symbol("_leaveCb"),fc=Symbol("_enterCb");function BS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return co(()=>{e.isMounted=!0}),ya(()=>{e.isUnmounting=!0}),e}const ar=[Function,Array],Cy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ar,onEnter:ar,onAfterEnter:ar,onEnterCancelled:ar,onBeforeLeave:ar,onLeave:ar,onAfterLeave:ar,onLeaveCancelled:ar,onBeforeAppear:ar,onAppear:ar,onAfterAppear:ar,onAppearCancelled:ar},Ey=e=>{const t=e.subTree;return t.component?Ey(t.component):t},WS={name:"BaseTransition",props:Cy,setup(e,{slots:t}){const r=Do(),o=BS();return()=>{const s=t.default&&My(t.default(),!0);if(!s||!s.length)return;const c=Ay(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return Vf(c);const h=hv(c);if(!h)return Vf(c);let p=Sd(h,f,o,r,m=>p=m);h.type!==ln&&Vl(h,p);let v=r.subTree&&hv(r.subTree);if(v&&v.type!==ln&&!qr(h,v)&&Ey(r).type!==ln){let m=Sd(v,f,o,r);if(Vl(v,m),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},Vf(c);d==="in-out"&&h.type!==ln?m.delayLeave=(b,w,E)=>{const N=Ly(o,v);N[String(v.key)]=v,b[qi]=()=>{w(),b[qi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{E(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function Ay(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ln){t=r;break}}return t}const qS=WS;function Ly(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Sd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:E,onLeaveCancelled:N,onBeforeAppear:T,onAppear:L,onAfterAppear:A,onAppearCancelled:R}=t,M=String(e.key),B=Ly(r,e),V=(ne,K)=>{ne&&Mr(ne,o,9,K)},G=(ne,K)=>{const re=K[1];V(ne,K),ze(ne)?ne.every($=>$.length<=1)&&re():ne.length<=1&&re()},ee={mode:f,persisted:d,beforeEnter(ne){let K=h;if(!r.isMounted)if(c)K=T||h;else return;ne[qi]&&ne[qi](!0);const re=B[M];re&&qr(e,re)&&re.el[qi]&&re.el[qi](),V(K,[ne])},enter(ne){let K=p,re=v,$=m;if(!r.isMounted)if(c)K=L||p,re=A||v,$=R||m;else return;let P=!1;const O=ne[fc]=S=>{P||(P=!0,S?V($,[ne]):V(re,[ne]),ee.delayedLeave&&ee.delayedLeave(),ne[fc]=void 0)};K?G(K,[ne,O]):O()},leave(ne,K){const re=String(e.key);if(ne[fc]&&ne[fc](!0),r.isUnmounting)return K();V(b,[ne]);let $=!1;const P=ne[qi]=O=>{$||($=!0,K(),O?V(N,[ne]):V(E,[ne]),ne[qi]=void 0,B[re]===e&&delete B[re])};B[re]=e,w?G(w,[ne,P]):P()},clone(ne){const K=Sd(ne,t,r,o,s);return s&&s(K),K}};return ee}function Vf(e){if(Su(e))return e=no(e),e.children=null,e}function hv(e){if(!Su(e))return Ty(e.type)&&e.children?Ay(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ve(r.default))return r.default()}}function Vl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Vl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function My(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ct?(f.patchFlag&128&&s++,o=o.concat(My(f.children,t,d))):(t||f.type!==ln)&&o.push(d!=null?no(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return Ve(e)?on({name:e.name},t,{setup:e}):e}function Ny(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function qc(e,t,r,o,s=!1){if(ze(e)){e.forEach((E,N)=>qc(E,t&&(ze(t)?t[N]:t),r,o,s));return}if(Ts(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&qc(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Mu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===vt?d.refs={}:d.refs,m=d.setupState,b=ht(m),w=m===vt?()=>!1:E=>wt(b,E);if(p!=null&&p!==h&&(Dt(p)?(v[p]=null,w(p)&&(m[p]=null)):Ct(p)&&(p.value=null)),Ve(h))va(h,d,12,[f,v]);else{const E=Dt(h),N=Ct(h);if(E||N){const T=()=>{if(e.f){const L=E?w(h)?m[h]:v[h]:h.value;s?ze(L)&&ph(L,c):ze(L)?L.includes(c)||L.push(c):E?(v[h]=[c],w(h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else E?(v[h]=f,w(h)&&(m[h]=f)):N&&(h.value=f,e.k&&(v[e.k]=f))};f?(T.id=-1,Qn(T,r)):T()}}}yu().requestIdleCallback;yu().cancelIdleCallback;const Ts=e=>!!e.type.__asyncLoader,Su=e=>e.type.__isKeepAlive;function US(e,t){$y(e,"a",t)}function jS(e,t){$y(e,"da",t)}function $y(e,t,r=an){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ku(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Su(s.parent.vnode)&&VS(o,t,r,s),s=s.parent}}function VS(e,t,r,o){const s=ku(t,e,o,!0);Tu(()=>{ph(o[t],s)},r)}function ku(e,t,r=an,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{gi();const d=ba(r),h=Mr(t,r,e,f);return d(),vi(),h});return o?s.unshift(c):s.push(c),c}}const xi=e=>(t,r=an)=>{(!Xl||e==="sp")&&ku(e,(...o)=>t(...o),r)},GS=xi("bm"),co=xi("m"),KS=xi("bu"),XS=xi("u"),ya=xi("bum"),Tu=xi("um"),YS=xi("sp"),ZS=xi("rtg"),JS=xi("rtc");function QS(e,t=an){ku("ec",e,t)}const Th="components",ek="directives";function Po(e,t){return Ch(Th,e,!0,t)||e}const Oy=Symbol.for("v-ndc");function kd(e){return Dt(e)?Ch(Th,e,!1)||e:e||Oy}function Xr(e){return Ch(ek,e)}function Ch(e,t,r=!0,o=!1){const s=tn||an;if(s){const c=s.type;if(e===Th){const d=Vk(c,!1);if(d&&(d===t||d===ir(t)||d===mu(ir(t))))return c}const f=pv(s[e]||c[e],t)||pv(s.appContext[e],t);return!f&&o?c:f}}function pv(e,t){return e&&(e[t]||e[ir(t)]||e[mu(ir(t))])}function mi(e,t,r,o){let s;const c=r,f=ze(e);if(f||Dt(e)){const d=f&&Ss(e);let h=!1,p=!1;d&&(h=!ur(e),p=to(e),e=xu(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?Fc(hn(e[v])):hn(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(St(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function tk(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(ze(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function xn(e,t,r={},o,s){if(tn.ce||tn.parent&&Ts(tn.parent)&&tn.parent.ce)return t!=="default"&&(r.name=t),ce(),nt(ct,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),ce();const f=c&&Ry(c(r)),d=r.key||f&&f.key,h=nt(ct,{key:(d&&!Lr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function Ry(e){return e.some(t=>Ps(t)?!(t.type===ln||t.type===ct&&!Ry(t.children)):!0)?e:null}function nk(e,t){const r={};for(const o in e)r[Tc(o)]=e[o];return r}const Td=e=>e?sb(e)?Mu(e):Td(e.parent):null,Ol=on(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Td(e.parent),$root:e=>Td(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Dy(e),$forceUpdate:e=>e.f||(e.f=()=>{kh(e.update)}),$nextTick:e=>e.n||(e.n=Tt.bind(e.proxy)),$watch:e=>Ck.bind(e)}),Gf=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),rk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Gf(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Cd&&(f[t]=0)}}const v=Ol[t];let m,b;if(v)return t==="$attrs"&&bn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Gf(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==vt&&wt(e,f)||Gf(t,f)||(d=c[0])&&wt(d,f)||wt(o,f)||wt(Ol,f)||wt(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function ik(){return Py().slots}function ok(){return Py().attrs}function Py(){const e=Do();return e.setupContext||(e.setupContext=ab(e))}function Uc(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Gl(e,t){return!e||!t?e||t:ze(e)&&ze(t)?e.concat(t):on({},Uc(e),Uc(t))}let Cd=!0;function sk(e){const t=Dy(e),r=e.proxy,o=e.ctx;Cd=!1,t.beforeCreate&&gv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:E,activated:N,deactivated:T,beforeDestroy:L,beforeUnmount:A,destroyed:R,unmounted:M,render:B,renderTracked:V,renderTriggered:G,errorCaptured:ee,serverPrefetch:ne,expose:K,inheritAttrs:re,components:$,directives:P,filters:O}=t;if(p&&lk(p,o,null),f)for(const j in f){const se=f[j];Ve(se)&&(o[j]=se.bind(r))}if(s){const j=s.call(r,r);St(j)&&(e.data=rr(j))}if(Cd=!0,c)for(const j in c){const se=c[j],me=Ve(se)?se.bind(r,r):Ve(se.get)?se.get.bind(r,r):Ur,_e=!Ve(se)&&Ve(se.set)?se.set.bind(r):Ur,Pe=Se({get:me,set:_e});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:qe=>Pe.value=qe})}if(d)for(const j in d)Iy(d[j],o,r,j);if(h){const j=Ve(h)?h.call(r):h;Reflect.ownKeys(j).forEach(se=>{Sr(se,j[se])})}v&&gv(v,e,"c");function F(j,se){ze(se)?se.forEach(me=>j(me.bind(r))):se&&j(se.bind(r))}if(F(GS,m),F(co,b),F(KS,w),F(XS,E),F(US,N),F(jS,T),F(QS,ee),F(JS,V),F(ZS,G),F(ya,A),F(Tu,M),F(YS,ne),ze(K))if(K.length){const j=e.exposed||(e.exposed={});K.forEach(se=>{Object.defineProperty(j,se,{get:()=>r[se],set:me=>r[se]=me})})}else e.exposed||(e.exposed={});B&&e.render===Ur&&(e.render=B),re!=null&&(e.inheritAttrs=re),$&&(e.components=$),P&&(e.directives=P),ne&&Ny(e)}function lk(e,t,r=Ur){ze(e)&&(e=Ed(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=wn(s.from||o,s.default,!0):c=wn(s.from||o):c=wn(s),Ct(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function gv(e,t,r){Mr(ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Iy(e,t,r,o){let s=o.includes(".")?Yy(r,o):()=>r[o];if(Dt(e)){const c=t[e];Ve(c)&&xt(s,c)}else if(Ve(e))xt(s,e.bind(r));else if(St(e))if(ze(e))e.forEach(c=>Iy(c,t,r,o));else{const c=Ve(e.handler)?e.handler.bind(r):t[e.handler];Ve(c)&&xt(s,c,e)}}function Dy(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>jc(h,p,f,!0)),jc(h,t,f)),St(t)&&c.set(t,h),h}function jc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&jc(e,c,r,!0),s&&s.forEach(f=>jc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=ak[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const ak={data:vv,props:mv,emits:mv,methods:El,computed:El,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:El,directives:El,watch:uk,provide:vv,inject:ck};function vv(e,t){return t?e?function(){return on(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function ck(e,t){return El(Ed(e),Ed(t))}function Ed(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function El(e,t){return e?on(Object.create(null),e,t):t}function mv(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:on(Object.create(null),Uc(e),Uc(t??{})):t}function uk(e,t){if(!e)return t;if(!t)return e;const r=on(Object.create(null),e);for(const o in t)r[o]=Mn(e[o],t[o]);return r}function zy(){return{app:null,config:{isNativeTag:K_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fk=0;function dk(e,t){return function(o,s=null){Ve(o)||(o=on({},o)),s!=null&&!St(s)&&(s=null);const c=zy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:fk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Kk,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ve(v.install)?(f.add(v),v.install(p,...m)):Ve(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Oe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Mu(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Mr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=Oo;Oo=p;try{return v()}finally{Oo=m}}};return p}}let Oo=null;function Sr(e,t){if(an){let r=an.provides;const o=an.parent&&an.parent.provides;o===r&&(r=an.provides=Object.create(o)),r[e]=t}}function wn(e,t,r=!1){const o=an||tn;if(o||Oo){let s=Oo?Oo._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ve(t)?t.call(o&&o.proxy):t}}function Fy(){return!!(an||tn||Oo)}const Hy={},By=()=>Object.create(Hy),Wy=e=>Object.getPrototypeOf(e)===Hy;function hk(e,t,r,o=!1){const s={},c=By();e.propsDefaults=Object.create(null),qy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:wh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function pk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=ht(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Au(e.emitsOptions,b))continue;const w=t[b];if(h)if(wt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const E=ir(b);s[E]=Ad(h,d,E,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{qy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=wi(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Ad(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&fi(e.attrs,"set","")}function qy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ml(h))continue;const p=t[h];let v;s&&wt(s,v=ir(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Au(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=ht(r),p=d||vt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Ad(s,h,m,p[m],e,!wt(p,m))}}return f}function Ad(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ve(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ba(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===wi(r))&&(o=!0))}return o}const gk=new WeakMap;function Uy(e,t,r=!1){const o=r?gk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ve(e)){const v=m=>{h=!0;const[b,w]=Uy(m,t,!0);on(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,xs),xs;if(ze(c))for(let v=0;v<c.length;v++){const m=ir(c[v]);yv(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=ir(v);if(yv(m)){const b=c[v],w=f[m]=ze(b)||Ve(b)?{type:b}:on({},b),E=w.type;let N=!1,T=!0;if(ze(E))for(let L=0;L<E.length;++L){const A=E[L],R=Ve(A)&&A.name;if(R==="Boolean"){N=!0;break}else R==="String"&&(T=!1)}else N=Ve(E)&&E.name==="Boolean";w[0]=N,w[1]=T,(N||wt(w,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function yv(e){return e[0]!=="$"&&!Ml(e)}const Eh=e=>e[0]==="_"||e==="$stable",Ah=e=>ze(e)?e.map(kr):[kr(e)],vk=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>Ah(t(...s)),r);return o._c=!1,o},jy=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Eh(s))continue;const c=e[s];if(Ve(c))t[s]=vk(s,c,o);else if(c!=null){const f=Ah(c);t[s]=()=>f}}},Vy=(e,t)=>{const r=Ah(t);e.slots.default=()=>r},Gy=(e,t,r)=>{for(const o in t)(r||!Eh(o))&&(e[o]=t[o])},mk=(e,t,r)=>{const o=e.slots=By();if(e.vnode.shapeFlag&32){const s=t._;s?(Gy(o,t,r),r&&G0(o,"_",s,!0)):jy(t,o)}else t&&Vy(e,t)},yk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Gy(s,t,r):(c=!t.$stable,jy(t,s)),f=t}else t&&(Vy(e,t),f={default:1});if(c)for(const d in s)!Eh(d)&&f[d]==null&&delete s[d]},Qn=Dk;function bk(e){return wk(e)}function wk(e,t){const r=yu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=Ur,insertStaticContent:E}=e,N=(I,H,Y,ue=null,he=null,de=null,Ce=void 0,Ee=null,ve=!!H.dynamicChildren)=>{if(I===H)return;I&&!qr(I,H)&&(ue=z(I),qe(I,he,de,!0),I=null),H.patchFlag===-2&&(ve=!1,H.dynamicChildren=null);const{type:ye,ref:Be,shapeFlag:Ne}=H;switch(ye){case Lu:T(I,H,Y,ue);break;case ln:L(I,H,Y,ue);break;case Xf:I==null&&A(H,Y,ue,Ce);break;case ct:$(I,H,Y,ue,he,de,Ce,Ee,ve);break;default:Ne&1?B(I,H,Y,ue,he,de,Ce,Ee,ve):Ne&6?P(I,H,Y,ue,he,de,Ce,Ee,ve):(Ne&64||Ne&128)&&ye.process(I,H,Y,ue,he,de,Ce,Ee,ve,le)}Be!=null&&he&&qc(Be,I&&I.ref,de,H||I,!H)},T=(I,H,Y,ue)=>{if(I==null)o(H.el=d(H.children),Y,ue);else{const he=H.el=I.el;H.children!==I.children&&p(he,H.children)}},L=(I,H,Y,ue)=>{I==null?o(H.el=h(H.children||""),Y,ue):H.el=I.el},A=(I,H,Y,ue)=>{[I.el,I.anchor]=E(I.children,H,Y,ue,I.el,I.anchor)},R=({el:I,anchor:H},Y,ue)=>{let he;for(;I&&I!==H;)he=b(I),o(I,Y,ue),I=he;o(H,Y,ue)},M=({el:I,anchor:H})=>{let Y;for(;I&&I!==H;)Y=b(I),s(I),I=Y;s(H)},B=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{H.type==="svg"?Ce="svg":H.type==="math"&&(Ce="mathml"),I==null?V(H,Y,ue,he,de,Ce,Ee,ve):ne(I,H,he,de,Ce,Ee,ve)},V=(I,H,Y,ue,he,de,Ce,Ee)=>{let ve,ye;const{props:Be,shapeFlag:Ne,transition:De,dirs:je}=I;if(ve=I.el=f(I.type,de,Be&&Be.is,Be),Ne&8?v(ve,I.children):Ne&16&&ee(I.children,ve,null,ue,he,Kf(I,de),Ce,Ee),je&&_o(I,null,ue,"created"),G(ve,I,I.scopeId,Ce,ue),Be){for(const ot in Be)ot!=="value"&&!Ml(ot)&&c(ve,ot,null,Be[ot],de,ue);"value"in Be&&c(ve,"value",null,Be.value,de),(ye=Be.onVnodeBeforeMount)&&Br(ye,ue,I)}je&&_o(I,null,ue,"beforeMount");const tt=xk(he,De);tt&&De.beforeEnter(ve),o(ve,H,Y),((ye=Be&&Be.onVnodeMounted)||tt||je)&&Qn(()=>{ye&&Br(ye,ue,I),tt&&De.enter(ve),je&&_o(I,null,ue,"mounted")},he)},G=(I,H,Y,ue,he)=>{if(Y&&w(I,Y),ue)for(let de=0;de<ue.length;de++)w(I,ue[de]);if(he){let de=he.subTree;if(H===de||Qy(de.type)&&(de.ssContent===H||de.ssFallback===H)){const Ce=he.vnode;G(I,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},ee=(I,H,Y,ue,he,de,Ce,Ee,ve=0)=>{for(let ye=ve;ye<I.length;ye++){const Be=I[ye]=Ee?Ui(I[ye]):kr(I[ye]);N(null,Be,H,Y,ue,he,de,Ce,Ee)}},ne=(I,H,Y,ue,he,de,Ce)=>{const Ee=H.el=I.el;let{patchFlag:ve,dynamicChildren:ye,dirs:Be}=H;ve|=I.patchFlag&16;const Ne=I.props||vt,De=H.props||vt;let je;if(Y&&So(Y,!1),(je=De.onVnodeBeforeUpdate)&&Br(je,Y,H,I),Be&&_o(H,I,Y,"beforeUpdate"),Y&&So(Y,!0),(Ne.innerHTML&&De.innerHTML==null||Ne.textContent&&De.textContent==null)&&v(Ee,""),ye?K(I.dynamicChildren,ye,Ee,Y,ue,Kf(H,he),de):Ce||se(I,H,Ee,null,Y,ue,Kf(H,he),de,!1),ve>0){if(ve&16)re(Ee,Ne,De,Y,he);else if(ve&2&&Ne.class!==De.class&&c(Ee,"class",null,De.class,he),ve&4&&c(Ee,"style",Ne.style,De.style,he),ve&8){const tt=H.dynamicProps;for(let ot=0;ot<tt.length;ot++){const lt=tt[ot],$t=Ne[lt],st=De[lt];(st!==$t||lt==="value")&&c(Ee,lt,$t,st,he,Y)}}ve&1&&I.children!==H.children&&v(Ee,H.children)}else!Ce&&ye==null&&re(Ee,Ne,De,Y,he);((je=De.onVnodeUpdated)||Be)&&Qn(()=>{je&&Br(je,Y,H,I),Be&&_o(H,I,Y,"updated")},ue)},K=(I,H,Y,ue,he,de,Ce)=>{for(let Ee=0;Ee<H.length;Ee++){const ve=I[Ee],ye=H[Ee],Be=ve.el&&(ve.type===ct||!qr(ve,ye)||ve.shapeFlag&198)?m(ve.el):Y;N(ve,ye,Be,null,ue,he,de,Ce,!0)}},re=(I,H,Y,ue,he)=>{if(H!==Y){if(H!==vt)for(const de in H)!Ml(de)&&!(de in Y)&&c(I,de,H[de],null,he,ue);for(const de in Y){if(Ml(de))continue;const Ce=Y[de],Ee=H[de];Ce!==Ee&&de!=="value"&&c(I,de,Ee,Ce,he,ue)}"value"in Y&&c(I,"value",H.value,Y.value,he)}},$=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{const ye=H.el=I?I.el:d(""),Be=H.anchor=I?I.anchor:d("");let{patchFlag:Ne,dynamicChildren:De,slotScopeIds:je}=H;je&&(Ee=Ee?Ee.concat(je):je),I==null?(o(ye,Y,ue),o(Be,Y,ue),ee(H.children||[],Y,Be,he,de,Ce,Ee,ve)):Ne>0&&Ne&64&&De&&I.dynamicChildren?(K(I.dynamicChildren,De,Y,he,de,Ce,Ee),(H.key!=null||he&&H===he.subTree)&&Ky(I,H,!0)):se(I,H,Y,Be,he,de,Ce,Ee,ve)},P=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{H.slotScopeIds=Ee,I==null?H.shapeFlag&512?he.ctx.activate(H,Y,ue,Ce,ve):O(H,Y,ue,he,de,Ce,ve):S(I,H,ve)},O=(I,H,Y,ue,he,de,Ce)=>{const Ee=I.component=Wk(I,ue,he);if(Su(I)&&(Ee.ctx.renderer=le),qk(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,F,Ce),!I.el){const ve=Ee.subTree=Oe(ln);L(null,ve,H,Y)}}else F(Ee,I,H,Y,he,de,Ce)},S=(I,H,Y)=>{const ue=H.component=I.component;if(Nk(I,H,Y))if(ue.asyncDep&&!ue.asyncResolved){j(ue,H,Y);return}else ue.next=H,ue.update();else H.el=I.el,ue.vnode=H},F=(I,H,Y,ue,he,de,Ce)=>{const Ee=()=>{if(I.isMounted){let{next:Ne,bu:De,u:je,parent:tt,vnode:ot}=I;{const Bt=Xy(I);if(Bt){Ne&&(Ne.el=ot.el,j(I,Ne,Ce)),Bt.asyncDep.then(()=>{I.isUnmounted||Ee()});return}}let lt=Ne,$t;So(I,!1),Ne?(Ne.el=ot.el,j(I,Ne,Ce)):Ne=ot,De&&Cc(De),($t=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Br($t,tt,Ne,ot),So(I,!0);const st=wv(I),Gt=I.subTree;I.subTree=st,N(Gt,st,m(Gt.el),z(Gt),I,he,de),Ne.el=st.el,lt===null&&Mh(I,st.el),je&&Qn(je,he),($t=Ne.props&&Ne.props.onVnodeUpdated)&&Qn(()=>Br($t,tt,Ne,ot),he)}else{let Ne;const{el:De,props:je}=H,{bm:tt,m:ot,parent:lt,root:$t,type:st}=I,Gt=Ts(H);So(I,!1),tt&&Cc(tt),!Gt&&(Ne=je&&je.onVnodeBeforeMount)&&Br(Ne,lt,H),So(I,!0);{$t.ce&&$t.ce._injectChildStyle(st);const Bt=I.subTree=wv(I);N(null,Bt,Y,ue,I,he,de),H.el=Bt.el}if(ot&&Qn(ot,he),!Gt&&(Ne=je&&je.onVnodeMounted)){const Bt=H;Qn(()=>Br(Ne,lt,Bt),he)}(H.shapeFlag&256||lt&&Ts(lt.vnode)&&lt.vnode.shapeFlag&256)&&I.a&&Qn(I.a,he),I.isMounted=!0,H=Y=ue=null}};I.scope.on();const ve=I.effect=new ey(Ee);I.scope.off();const ye=I.update=ve.run.bind(ve),Be=I.job=ve.runIfDirty.bind(ve);Be.i=I,Be.id=I.uid,ve.scheduler=()=>kh(Be),So(I,!0),ye()},j=(I,H,Y)=>{H.component=I;const ue=I.vnode.props;I.vnode=H,I.next=null,pk(I,H.props,ue,Y),yk(I,H.children,Y),gi(),dv(I),vi()},se=(I,H,Y,ue,he,de,Ce,Ee,ve=!1)=>{const ye=I&&I.children,Be=I?I.shapeFlag:0,Ne=H.children,{patchFlag:De,shapeFlag:je}=H;if(De>0){if(De&128){_e(ye,Ne,Y,ue,he,de,Ce,Ee,ve);return}else if(De&256){me(ye,Ne,Y,ue,he,de,Ce,Ee,ve);return}}je&8?(Be&16&&te(ye,he,de),Ne!==ye&&v(Y,Ne)):Be&16?je&16?_e(ye,Ne,Y,ue,he,de,Ce,Ee,ve):te(ye,he,de,!0):(Be&8&&v(Y,""),je&16&&ee(Ne,Y,ue,he,de,Ce,Ee,ve))},me=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{I=I||xs,H=H||xs;const ye=I.length,Be=H.length,Ne=Math.min(ye,Be);let De;for(De=0;De<Ne;De++){const je=H[De]=ve?Ui(H[De]):kr(H[De]);N(I[De],je,Y,null,he,de,Ce,Ee,ve)}ye>Be?te(I,he,de,!0,!1,Ne):ee(H,Y,ue,he,de,Ce,Ee,ve,Ne)},_e=(I,H,Y,ue,he,de,Ce,Ee,ve)=>{let ye=0;const Be=H.length;let Ne=I.length-1,De=Be-1;for(;ye<=Ne&&ye<=De;){const je=I[ye],tt=H[ye]=ve?Ui(H[ye]):kr(H[ye]);if(qr(je,tt))N(je,tt,Y,null,he,de,Ce,Ee,ve);else break;ye++}for(;ye<=Ne&&ye<=De;){const je=I[Ne],tt=H[De]=ve?Ui(H[De]):kr(H[De]);if(qr(je,tt))N(je,tt,Y,null,he,de,Ce,Ee,ve);else break;Ne--,De--}if(ye>Ne){if(ye<=De){const je=De+1,tt=je<Be?H[je].el:ue;for(;ye<=De;)N(null,H[ye]=ve?Ui(H[ye]):kr(H[ye]),Y,tt,he,de,Ce,Ee,ve),ye++}}else if(ye>De)for(;ye<=Ne;)qe(I[ye],he,de,!0),ye++;else{const je=ye,tt=ye,ot=new Map;for(ye=tt;ye<=De;ye++){const zt=H[ye]=ve?Ui(H[ye]):kr(H[ye]);zt.key!=null&&ot.set(zt.key,ye)}let lt,$t=0;const st=De-tt+1;let Gt=!1,Bt=0;const Dn=new Array(st);for(ye=0;ye<st;ye++)Dn[ye]=0;for(ye=je;ye<=Ne;ye++){const zt=I[ye];if($t>=st){qe(zt,he,de,!0);continue}let zn;if(zt.key!=null)zn=ot.get(zt.key);else for(lt=tt;lt<=De;lt++)if(Dn[lt-tt]===0&&qr(zt,H[lt])){zn=lt;break}zn===void 0?qe(zt,he,de,!0):(Dn[zn-tt]=ye+1,zn>=Bt?Bt=zn:Gt=!0,N(zt,H[zn],Y,null,he,de,Ce,Ee,ve),$t++)}const Pr=Gt?_k(Dn):xs;for(lt=Pr.length-1,ye=st-1;ye>=0;ye--){const zt=tt+ye,zn=H[zt],et=zt+1<Be?H[zt+1].el:ue;Dn[ye]===0?N(null,zn,Y,et,he,de,Ce,Ee,ve):Gt&&(lt<0||ye!==Pr[lt]?Pe(zn,Y,et,2):lt--)}}},Pe=(I,H,Y,ue,he=null)=>{const{el:de,type:Ce,transition:Ee,children:ve,shapeFlag:ye}=I;if(ye&6){Pe(I.component.subTree,H,Y,ue);return}if(ye&128){I.suspense.move(H,Y,ue);return}if(ye&64){Ce.move(I,H,Y,le);return}if(Ce===ct){o(de,H,Y);for(let Ne=0;Ne<ve.length;Ne++)Pe(ve[Ne],H,Y,ue);o(I.anchor,H,Y);return}if(Ce===Xf){R(I,H,Y);return}if(ue!==2&&ye&1&&Ee)if(ue===0)Ee.beforeEnter(de),o(de,H,Y),Qn(()=>Ee.enter(de),he);else{const{leave:Ne,delayLeave:De,afterLeave:je}=Ee,tt=()=>{I.ctx.isUnmounted?s(de):o(de,H,Y)},ot=()=>{Ne(de,()=>{tt(),je&&je()})};De?De(de,tt,ot):ot()}else o(de,H,Y)},qe=(I,H,Y,ue=!1,he=!1)=>{const{type:de,props:Ce,ref:Ee,children:ve,dynamicChildren:ye,shapeFlag:Be,patchFlag:Ne,dirs:De,cacheIndex:je}=I;if(Ne===-2&&(he=!1),Ee!=null&&(gi(),qc(Ee,null,Y,I,!0),vi()),je!=null&&(H.renderCache[je]=void 0),Be&256){H.ctx.deactivate(I);return}const tt=Be&1&&De,ot=!Ts(I);let lt;if(ot&&(lt=Ce&&Ce.onVnodeBeforeUnmount)&&Br(lt,H,I),Be&6)Xe(I.component,Y,ue);else{if(Be&128){I.suspense.unmount(Y,ue);return}tt&&_o(I,null,H,"beforeUnmount"),Be&64?I.type.remove(I,H,Y,le,ue):ye&&!ye.hasOnce&&(de!==ct||Ne>0&&Ne&64)?te(ye,H,Y,!1,!0):(de===ct&&Ne&384||!he&&Be&16)&&te(ve,H,Y),ue&&Ze(I)}(ot&&(lt=Ce&&Ce.onVnodeUnmounted)||tt)&&Qn(()=>{lt&&Br(lt,H,I),tt&&_o(I,null,H,"unmounted")},Y)},Ze=I=>{const{type:H,el:Y,anchor:ue,transition:he}=I;if(H===ct){Ke(Y,ue);return}if(H===Xf){M(I);return}const de=()=>{s(Y),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(I.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,ve=()=>Ce(Y,de);Ee?Ee(I.el,de,ve):ve()}else de()},Ke=(I,H)=>{let Y;for(;I!==H;)Y=b(I),s(I),I=Y;s(H)},Xe=(I,H,Y)=>{const{bum:ue,scope:he,job:de,subTree:Ce,um:Ee,m:ve,a:ye,parent:Be,slots:{__:Ne}}=I;bv(ve),bv(ye),ue&&Cc(ue),Be&&ze(Ne)&&Ne.forEach(De=>{Be.renderCache[De]=void 0}),he.stop(),de&&(de.flags|=8,qe(Ce,I,H,Y)),Ee&&Qn(Ee,H),Qn(()=>{I.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},te=(I,H,Y,ue=!1,he=!1,de=0)=>{for(let Ce=de;Ce<I.length;Ce++)qe(I[Ce],H,Y,ue,he)},z=I=>{if(I.shapeFlag&6)return z(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const H=b(I.anchor||I.el),Y=H&&H[HS];return Y?b(Y):H};let J=!1;const X=(I,H,Y)=>{I==null?H._vnode&&qe(H._vnode,null,null,!0):N(H._vnode||null,I,H,null,null,null,Y),H._vnode=I,J||(J=!0,dv(),wy(),J=!1)},le={p:N,um:qe,m:Pe,r:Ze,mt:O,mc:ee,pc:se,pbc:K,n:z,o:e};return{render:X,hydrate:void 0,createApp:dk(X)}}function Kf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function So({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ky(e,t,r=!1){const o=e.children,s=t.children;if(ze(o)&&ze(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Ui(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Ky(f,d)),d.type===Lu&&(d.el=f.el),d.type===ln&&!d.el&&(d.el=f.el)}}function _k(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Xy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xy(t)}function bv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Sk=Symbol.for("v-scx"),kk=()=>wn(Sk);function Lh(e,t){return Cu(e,null,t)}function Tk(e,t){return Cu(e,null,{flush:"sync"})}function xt(e,t,r){return Cu(e,t,r)}function Cu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=on({},r),h=t&&o||!t&&c!=="post";let p;if(Xl){if(c==="sync"){const w=kk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Ur,w.resume=Ur,w.pause=Ur,w}}const v=an;d.call=(w,E,N)=>Mr(w,v,E,N);let m=!1;c==="post"?d.scheduler=w=>{Qn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,E)=>{E?w():kh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=DS(e,t,d);return Xl&&(p?p.push(b):h&&b()),b}function Ck(e,t,r){const o=this.proxy,s=Dt(e)?e.includes(".")?Yy(o,e):()=>o[e]:e.bind(o,o);let c;Ve(t)?c=t:(c=t.handler,r=t);const f=ba(this),d=Cu(s,c.bind(o),r);return f(),d}function Yy(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Eu(e,t,r=vt){const o=Do(),s=ir(t),c=wi(t),f=Zy(e,s),d=vy((h,p)=>{let v,m=vt,b;return Tk(()=>{const w=e[s];jn(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const E=r.set?r.set(w):w;if(!jn(E,v)&&!(m!==vt&&jn(w,m)))return;const N=o.vnode.props;N&&(t in N||s in N||c in N)&&(`onUpdate:${t}`in N||`onUpdate:${s}`in N||`onUpdate:${c}`in N)||(v=w,p()),o.emit(`update:${t}`,E),jn(w,E)&&jn(w,m)&&!jn(E,b)&&p(),m=w,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Zy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${wi(t)}Modifiers`];function Ek(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Zy(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Dt(v)?v.trim():v)),f.number&&(s=r.map(yd)));let d,h=o[d=Tc(t)]||o[d=Tc(ir(t))];!h&&c&&(h=o[d=Tc(wi(t))]),h&&Mr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Mr(p,e,6,s)}}function Jy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ve(e)){const h=p=>{const v=Jy(p,t,!0);v&&(d=!0,on(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(ze(c)?c.forEach(h=>f[h]=null):on(f,c),St(e)&&o.set(e,f),f)}function Au(e,t){return!e||!pu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,wi(t))||wt(e,t))}function wv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:E,inheritAttrs:N}=e,T=Wc(e);let L,A;try{if(r.shapeFlag&4){const M=s||o,B=M;L=kr(p.call(B,M,v,m,w,b,E)),A=d}else{const M=t;L=kr(M.length>1?M(m,{attrs:d,slots:f,emit:h}):M(m,null)),A=t.props?d:Lk(d)}}catch(M){Rl.length=0,ma(M,e,1),L=Oe(ln)}let R=L;if(A&&N!==!1){const M=Object.keys(A),{shapeFlag:B}=R;M.length&&B&7&&(c&&M.some(hh)&&(A=Mk(A,c)),R=no(R,A,!1,!0))}return r.dirs&&(R=no(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&Vl(R,r.transition),L=R,Wc(T),L}function Ak(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Ps(s)){if(s.type!==ln||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Lk=e=>{let t;for(const r in e)(r==="class"||r==="style"||pu(r))&&((t||(t={}))[r]=e[r]);return t},Mk=(e,t)=>{const r={};for(const o in e)(!hh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Nk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?xv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Au(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?xv(o,f,p):!0:!!f;return!1}function xv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Au(r,c))return!0}return!1}function Mh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Qy=e=>e.__isSuspense;let Ld=0;const $k={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Ok(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Rk(e,t,r,o,s,f,d,h,p)}},hydrate:Pk,normalize:Ik},eb=$k;function Kl(e,t){const r=e.props&&e.props[t];Ve(r)&&r()}function Ok(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=tb(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(Kl(e,"onPending"),Kl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Cs(b,e.ssFallback)):b.resolve(!1,!0)}function Rk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:N,isInFallback:T,isHydrating:L}=m;if(N)m.pendingBranch=b,qr(b,N)?(h(N,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():T&&(L||(h(E,w,r,o,s,null,c,f,d),Cs(m,w)))):(m.pendingId=Ld++,L?(m.isHydrating=!1,m.activeBranch=N):p(N,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),T?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(E,w,r,o,s,null,c,f,d),Cs(m,w))):E&&qr(b,E)?(h(E,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(E&&qr(b,E))h(E,b,r,o,s,m,c,f,d),Cs(m,b);else if(Kl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ld++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:A,pendingId:R}=m;A>0?setTimeout(()=>{m.pendingId===R&&m.fallback(w)},A):A===0&&m.fallback(w)}}function tb(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:E,o:{parentNode:N,remove:T}}=p;let L;const A=zk(e);A&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const R=e.props?K0(e.props.timeout):void 0,M=c,B={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ld++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(V=!1,G=!1){const{vnode:ee,activeBranch:ne,pendingBranch:K,pendingId:re,effects:$,parentComponent:P,container:O}=B;let S=!1;B.isHydrating?B.isHydrating=!1:V||(S=ne&&K.transition&&K.transition.mode==="out-in",S&&(ne.transition.afterLeave=()=>{re===B.pendingId&&(b(K,O,c===M?E(ne):c,0),_d($))}),ne&&(N(ne.el)===O&&(c=E(ne)),w(ne,P,B,!0)),S||b(K,O,c,0)),Cs(B,K),B.pendingBranch=null,B.isInFallback=!1;let F=B.parent,j=!1;for(;F;){if(F.pendingBranch){F.effects.push(...$),j=!0;break}F=F.parent}!j&&!S&&_d($),B.effects=[],A&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!G&&t.resolve()),Kl(ee,"onResolve")},fallback(V){if(!B.pendingBranch)return;const{vnode:G,activeBranch:ee,parentComponent:ne,container:K,namespace:re}=B;Kl(G,"onFallback");const $=E(ee),P=()=>{B.isInFallback&&(m(null,V,K,$,ne,null,re,d,h),Cs(B,V))},O=V.transition&&V.transition.mode==="out-in";O&&(ee.transition.afterLeave=P),B.isInFallback=!0,w(ee,ne,null,!0),O||P()},move(V,G,ee){B.activeBranch&&b(B.activeBranch,V,G,ee),B.container=V},next(){return B.activeBranch&&E(B.activeBranch)},registerDep(V,G,ee){const ne=!!B.pendingBranch;ne&&B.deps++;const K=V.vnode.el;V.asyncDep.catch(re=>{ma(re,V,0)}).then(re=>{if(V.isUnmounted||B.isUnmounted||B.pendingId!==V.suspenseId)return;V.asyncResolved=!0;const{vnode:$}=V;Nd(V,re),K&&($.el=K);const P=!K&&V.subTree.el;G(V,$,N(K||V.subTree.el),K?null:E(V.subTree),B,f,ee),P&&T(P),Mh(V,$.el),ne&&--B.deps===0&&B.resolve()})},unmount(V,G){B.isUnmounted=!0,B.activeBranch&&w(B.activeBranch,r,V,G),B.pendingBranch&&w(B.pendingBranch,r,V,G)}};return B}function Pk(e,t,r,o,s,c,f,d,h){const p=t.suspense=tb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Ik(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=_v(o?r.default:r),e.ssFallback=o?_v(r.fallback):Oe(ln)}function _v(e){let t;if(Ve(e)){const r=Rs&&e._c;r&&(e._d=!1,ce()),e=e(),r&&(e._d=!0,t=Gn,nb())}return ze(e)&&(e=Ak(e)),e=kr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Dk(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):_d(e)}function Cs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Mh(o,s))}function zk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Lu=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),Xf=Symbol.for("v-stc"),Rl=[];let Gn=null;function ce(e=!1){Rl.push(Gn=e?null:[])}function nb(){Rl.pop(),Gn=Rl[Rl.length-1]||null}let Rs=1;function Vc(e,t=!1){Rs+=e,e<0&&Gn&&t&&(Gn.hasOnce=!0)}function rb(e){return e.dynamicChildren=Rs>0?Gn||xs:null,nb(),Rs>0&&Gn&&Gn.push(e),e}function xe(e,t,r,o,s,c){return rb(ie(e,t,r,o,s,c,!0))}function nt(e,t,r,o,s){return rb(Oe(e,t,r,o,s,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function qr(e,t){return e.type===t.type&&e.key===t.key}const ib=({key:e})=>e??null,Ec=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||Ct(e)||Ve(e)?{i:tn,r:e,k:t,f:!!r}:e:null);function ie(e,t=null,r=null,o=0,s=null,c=e===ct?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ib(t),ref:t&&Ec(t),scopeId:_u,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:tn};return d?(Nh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Dt(r)?8:16),Rs>0&&!f&&Gn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Gn.push(h),h}const Oe=Fk;function Fk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Oy)&&(e=ln),Ps(e)){const d=no(e,t,!0);return r&&Nh(d,r),Rs>0&&!c&&Gn&&(d.shapeFlag&6?Gn[Gn.indexOf(e)]=d:Gn.push(d)),d.patchFlag=-2,d}if(Gk(e)&&(e=e.__vccOpts),t){t=ob(t);let{class:d,style:h}=t;d&&!Dt(d)&&(t.class=it(d)),St(h)&&(_h(h)&&!ze(h)&&(h=on({},h)),t.style=nn(h))}const f=Dt(e)?1:Qy(e)?128:Ty(e)?64:St(e)?4:Ve(e)?2:0;return ie(e,t,r,o,s,f,c,!0)}function ob(e){return e?_h(e)||Wy(e)?on({},e):e:null}function no(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?pi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&ib(p),ref:t&&t.ref?r&&c?ze(c)?c.concat(Ec(t)):[c,Ec(t)]:Ec(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&no(e.ssContent),ssFallback:e.ssFallback&&no(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Vl(v,h.clone(v)),v}function pt(e=" ",t=0){return Oe(Lu,null,e,t)}function Ye(e="",t=!1){return t?(ce(),nt(ln,null,e)):Oe(ln,null,e)}function kr(e){return e==null||typeof e=="boolean"?Oe(ln):ze(e)?Oe(ct,null,e.slice()):Ps(e)?Ui(e):Oe(Lu,null,String(e))}function Ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:no(e)}function Nh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Nh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Wy(t)?t._ctx=tn:s===3&&tn&&(tn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:tn},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function pi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=it([t.class,o.class]));else if(s==="style")t.style=nn([t.style,o.style]);else if(pu(s)){const c=t[s],f=o[s];f&&c!==f&&!(ze(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Br(e,t,r,o=null){Mr(e,t,7,[r,o])}const Hk=zy();let Bk=0;function Wk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Hk,c={uid:Bk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new lS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uy(o,s),emitsOptions:Jy(o,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Ek.bind(null,c),e.ce&&e.ce(c),c}let an=null;const Do=()=>an||tn;let Gc,Md;{const e=yu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};Gc=t("__VUE_INSTANCE_SETTERS__",r=>an=r),Md=t("__VUE_SSR_SETTERS__",r=>Xl=r)}const ba=e=>{const t=an;return Gc(e),e.scope.on(),()=>{e.scope.off(),Gc(t)}},Sv=()=>{an&&an.scope.off(),Gc(null)};function sb(e){return e.vnode.shapeFlag&4}let Xl=!1;function qk(e,t=!1,r=!1){t&&Md(t);const{props:o,children:s}=e.vnode,c=sb(e);hk(e,o,c,t),mk(e,s,r||t);const f=c?Uk(e,t):void 0;return t&&Md(!1),f}function Uk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rk);const{setup:o}=r;if(o){gi();const s=e.setupContext=o.length>1?ab(e):null,c=ba(e),f=va(o,e,0,[e.props,s]),d=U0(f);if(vi(),c(),(d||e.sp)&&!Ts(e)&&Ny(e),d){if(f.then(Sv,Sv),t)return f.then(h=>{Nd(e,h)}).catch(h=>{ma(h,e,0)});e.asyncDep=f}else Nd(e,f)}else lb(e)}function Nd(e,t,r){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=gy(t)),lb(e)}function lb(e,t,r){const o=e.type;e.render||(e.render=o.render||Ur);{const s=ba(e);gi();try{sk(e)}finally{vi(),s()}}}const jk={get(e,t){return bn(e,"get",""),e[t]}};function ab(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,jk),slots:e.slots,emit:e.emit,expose:t}}function Mu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gy(Sh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ol)return Ol[r](e)},has(t,r){return r in t||r in Ol}})):e.proxy}function Vk(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Gk(e){return Ve(e)&&"__vccOpts"in e}const Se=(e,t)=>PS(e,t,Xl);function wa(e,t,r){const o=arguments.length;return o===2?St(t)&&!ze(t)?Ps(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ps(r)&&(r=[r]),Oe(e,t,r))}const Kk="3.5.15";/**
14
+ * @vue/runtime-dom v3.5.15
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let $d;const kv=typeof window<"u"&&window.trustedTypes;if(kv)try{$d=kv.createPolicy("vue",{createHTML:e=>e})}catch{}const cb=$d?e=>$d.createHTML(e):e=>e,Xk="http://www.w3.org/2000/svg",Yk="http://www.w3.org/1998/Math/MathML",ci=typeof document<"u"?document:null,Tv=ci&&ci.createElement("template"),Zk={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"?ci.createElementNS(Xk,e):t==="mathml"?ci.createElementNS(Yk,e):r?ci.createElement(e,{is:r}):ci.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ci.createTextNode(e),createComment:e=>ci.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ci.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{Tv.innerHTML=cb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Tv.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]}},Di="transition",xl="animation",Yl=Symbol("_vtc"),ub={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},Jk=on({},Cy,ub),Qk=e=>(e.displayName="Transition",e.props=Jk,e),eT=Qk((e,{slots:t})=>wa(qS,tT(e),t)),ko=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Cv=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function tT(e){const t={};for(const $ in e)$ in ub||(t[$]=e[$]);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:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=nT(s),N=E&&E[0],T=E&&E[1],{onBeforeEnter:L,onEnter:A,onEnterCancelled:R,onLeave:M,onLeaveCancelled:B,onBeforeAppear:V=L,onAppear:G=A,onAppearCancelled:ee=R}=t,ne=($,P,O,S)=>{$._enterCancelled=S,To($,P?v:d),To($,P?p:f),O&&O()},K=($,P)=>{$._isLeaving=!1,To($,m),To($,w),To($,b),P&&P()},re=$=>(P,O)=>{const S=$?G:A,F=()=>ne(P,$,O);ko(S,[P,F]),Ev(()=>{To(P,$?h:c),si(P,$?v:d),Cv(S)||Av(P,o,N,F)})};return on(t,{onBeforeEnter($){ko(L,[$]),si($,c),si($,f)},onBeforeAppear($){ko(V,[$]),si($,h),si($,p)},onEnter:re(!1),onAppear:re(!0),onLeave($,P){$._isLeaving=!0;const O=()=>K($,P);si($,m),$._enterCancelled?(si($,b),Nv()):(Nv(),si($,b)),Ev(()=>{$._isLeaving&&(To($,m),si($,w),Cv(M)||Av($,o,T,O))}),ko(M,[$,O])},onEnterCancelled($){ne($,!1,void 0,!0),ko(R,[$])},onAppearCancelled($){ne($,!0,void 0,!0),ko(ee,[$])},onLeaveCancelled($){K($),ko(B,[$])}})}function nT(e){if(e==null)return null;if(St(e))return[Yf(e.enter),Yf(e.leave)];{const t=Yf(e);return[t,t]}}function Yf(e){return K0(e)}function si(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Yl]||(e[Yl]=new Set)).add(t)}function To(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Yl];r&&(r.delete(t),r.size||(e[Yl]=void 0))}function Ev(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rT=0;function Av(e,t,r,o){const s=e._endId=++rT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=iT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function iT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Di}Delay`),c=o(`${Di}Duration`),f=Lv(s,c),d=o(`${xl}Delay`),h=o(`${xl}Duration`),p=Lv(d,h);let v=null,m=0,b=0;t===Di?f>0&&(v=Di,m=f,b=c.length):t===xl?p>0&&(v=xl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Di:xl:null,b=v?v===Di?c.length:h.length:0);const w=v===Di&&/\b(transform|all)(,|$)/.test(o(`${Di}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Lv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Mv(r)+Mv(e[o])))}function Mv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Nv(){return document.body.offsetHeight}function oT(e,t,r){const o=e[Yl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Kc=Symbol("_vod"),fb=Symbol("_vsh"),Ki={beforeMount(e,{value:t},{transition:r}){e[Kc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):_l(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),_l(e,!0),o.enter(e)):o.leave(e,()=>{_l(e,!1)}):_l(e,t))},beforeUnmount(e,{value:t}){_l(e,t)}};function _l(e,t){e.style.display=t?e[Kc]:"none",e[fb]=!t}const sT=Symbol(""),lT=/(^|;)\s*display\s*:/;function aT(e,t,r){const o=e.style,s=Dt(r);let c=!1;if(r&&!s){if(t)if(Dt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ac(o,d,"")}else for(const f in t)r[f]==null&&Ac(o,f,"");for(const f in r)f==="display"&&(c=!0),Ac(o,f,r[f])}else if(s){if(t!==r){const f=o[sT];f&&(r+=";"+f),o.cssText=r,c=lT.test(r)}}else t&&e.removeAttribute("style");Kc in e&&(e[Kc]=c?o.display:"",e[fb]&&(o.display="none"))}const $v=/\s*!important$/;function Ac(e,t,r){if(ze(r))r.forEach(o=>Ac(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=cT(e,t);$v.test(r)?e.setProperty(wi(o),r.replace($v,""),"important"):e[o]=r}}const Ov=["Webkit","Moz","ms"],Zf={};function cT(e,t){const r=Zf[t];if(r)return r;let o=ir(t);if(o!=="filter"&&o in e)return Zf[t]=o;o=mu(o);for(let s=0;s<Ov.length;s++){const c=Ov[s]+o;if(c in e)return Zf[t]=c}return t}const Rv="http://www.w3.org/1999/xlink";function Pv(e,t,r,o,s,c=oS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Rv,t.slice(6,t.length)):e.setAttributeNS(Rv,t,r):r==null||c&&!X0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Lr(r)?String(r):r)}function Iv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?cb(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=X0(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 Lo(e,t,r,o){e.addEventListener(t,r,o)}function uT(e,t,r,o){e.removeEventListener(t,r,o)}const Dv=Symbol("_vei");function fT(e,t,r,o,s=null){const c=e[Dv]||(e[Dv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=dT(t);if(o){const p=c[t]=gT(o,s);Lo(e,d,p,h)}else f&&(uT(e,d,f,h),c[t]=void 0)}}const zv=/(?:Once|Passive|Capture)$/;function dT(e){let t;if(zv.test(e)){t={};let o;for(;o=e.match(zv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wi(e.slice(2)),t]}let Jf=0;const hT=Promise.resolve(),pT=()=>Jf||(hT.then(()=>Jf=0),Jf=Date.now());function gT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Mr(vT(o,r.value),t,5,[o])};return r.value=e,r.attached=pT(),r}function vT(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 Fv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?oT(e,o,f):t==="style"?aT(e,r,o):pu(t)?hh(t)||fT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yT(e,t,o,f))?(Iv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(o))?Iv(e,ir(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Pv(e,t,o,f))};function yT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fv(t)&&Ve(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Fv(t)&&Dt(r)?!1:t in e}const Xc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>Cc(t,r):t};function bT(e){e.target.composing=!0}function Hv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Es=Symbol("_assign"),wT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Es]=Xc(s);const c=o||s.props&&s.props.type==="number";Lo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=yd(d)),e[Es](d)}),r&&Lo(e,"change",()=>{e.value=e.value.trim()}),t||(Lo(e,"compositionstart",bT),Lo(e,"compositionend",Hv),Lo(e,"change",Hv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Es]=Xc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?yd(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))}},db={deep:!0,created(e,t,r){e[Es]=Xc(r),Lo(e,"change",()=>{const o=e._modelValue,s=xT(e),c=e.checked,f=e[Es];if(ze(o)){const d=Y0(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(gu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(hb(e,c))})},mounted:Bv,beforeUpdate(e,t,r){e[Es]=Xc(r),Bv(e,t,r)}};function Bv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(ze(t))s=Y0(t,o.props.value)>-1;else if(gu(t))s=t.has(o.props.value);else{if(t===r)return;s=bu(t,hb(e,!0))}e.checked!==s&&(e.checked=s)}function xT(e){return"_value"in e?e._value:e.value}function hb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const _T=["ctrl","shift","alt","meta"],ST={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)=>_T.some(r=>e[`${r}Key`]&&!t.includes(r))},Lc=(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=ST[t[f]];if(d&&d(s,t))return}return e(s,...c)})},kT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Od=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=wi(s.key);if(t.some(f=>f===c||kT[f]===c))return e(s)})},TT=on({patchProp:mT},Zk);let Wv;function CT(){return Wv||(Wv=bk(TT))}const pb=(...e)=>{const t=CT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=AT(o);if(!s)return;const c=t._component;!Ve(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,ET(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function ET(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function AT(e){return Dt(e)?document.querySelector(e):e}const _i=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},LT={};function MT(e,t){const r=Po("RouterView");return ce(),nt(r)}const NT=_i(LT,[["render",MT]]),$T=["top","right","bottom","left"],qv=["start","end"],Uv=$T.reduce((e,t)=>e.concat(t,t+"-"+qv[0],t+"-"+qv[1]),[]),Zl=Math.min,Ao=Math.max,OT={left:"right",right:"left",bottom:"top",top:"bottom"},RT={start:"end",end:"start"};function Rd(e,t,r){return Ao(e,Zl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function Er(e){return e.split("-")[1]}function gb(e){return e==="x"?"y":"x"}function $h(e){return e==="y"?"height":"width"}function xa(e){return["top","bottom"].includes(Kr(e))?"y":"x"}function Oh(e){return gb(xa(e))}function vb(e,t,r){r===void 0&&(r=!1);const o=Er(e),s=Oh(e),c=$h(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Zc(f)),[f,Zc(f)]}function PT(e){const t=Zc(e);return[Yc(e),t,Yc(t)]}function Yc(e){return e.replace(/start|end/g,t=>RT[t])}function IT(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 DT(e,t,r,o){const s=Er(e);let c=IT(Kr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Yc)))),c}function Zc(e){return e.replace(/left|right|bottom|top/g,t=>OT[t])}function zT(e){return{top:0,right:0,bottom:0,left:0,...e}}function mb(e){return typeof e!="number"?zT(e):{top:e,right:e,bottom:e,left:e}}function Pl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function jv(e,t,r){let{reference:o,floating:s}=e;const c=xa(t),f=Oh(t),d=$h(f),h=Kr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(Er(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const FT=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:v,y:m}=jv(p,o,h),b=o,w={},E=0;for(let N=0;N<d.length;N++){const{name:T,fn:L}=d[N],{x:A,y:R,data:M,reset:B}=await L({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=A??v,m=R??m,w={...w,[T]:{...w[T],...M}},B&&E<=50&&(E++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(p=B.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):B.rects),{x:v,y:m}=jv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Nu(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:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=zo(t,e),E=mb(w),T=d[b?m==="floating"?"reference":"floating":m],L=Pl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),A=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),M=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},B=Pl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:R,strategy:h}):A);return{top:(L.top-B.top+E.top)/M.y,bottom:(B.bottom-L.bottom+E.bottom)/M.y,left:(L.left-B.left+E.left)/M.x,right:(B.right-L.right+E.right)/M.x}}const HT=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:v=0}=zo(e,t)||{};if(p==null)return{};const m=mb(v),b={x:r,y:o},w=Oh(s),E=$h(w),N=await f.getDimensions(p),T=w==="y",L=T?"top":"left",A=T?"bottom":"right",R=T?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[w]-b[w]-c.floating[E],B=b[w]-c.reference[w],V=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let G=V?V[R]:0;(!G||!await(f.isElement==null?void 0:f.isElement(V)))&&(G=d.floating[R]||c.floating[E]);const ee=M/2-B/2,ne=G/2-N[E]/2-1,K=Zl(m[L],ne),re=Zl(m[A],ne),$=K,P=G-N[E]-re,O=G/2-N[E]/2+ee,S=Rd($,O,P),F=!h.arrow&&Er(s)!=null&&O!==S&&c.reference[E]/2-(O<$?K:re)-N[E]/2<0,j=F?O<$?O-$:O-P:0;return{[w]:b[w]+j,data:{[w]:S,centerOffset:O-S-j,...F&&{alignmentOffset:j}},reset:F}}});function BT(e,t,r){return(e?[...r.filter(s=>Er(s)===e),...r.filter(s=>Er(s)!==e)]:r.filter(s=>Kr(s)===s)).filter(s=>e?Er(s)===e||(t?Yc(s)!==s:!1):!0)}const WT=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:v=!1,alignment:m,allowedPlacements:b=Uv,autoAlignment:w=!0,...E}=zo(e,t),N=m!==void 0||b===Uv?BT(m||null,w,b):b,T=await Nu(t,E),L=((r=f.autoPlacement)==null?void 0:r.index)||0,A=N[L];if(A==null)return{};const R=vb(A,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==A)return{reset:{placement:N[0]}};const M=[T[Kr(A)],T[R[0]],T[R[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:M}],V=N[L+1];if(V)return{data:{index:L+1,overflows:B},reset:{placement:V}};const G=B.map(K=>{const re=Er(K.placement);return[K.placement,re&&v?K.overflows.slice(0,2).reduce(($,P)=>$+P,0):K.overflows[0],K.overflows]}).sort((K,re)=>K[1]-re[1]),ne=((s=G.filter(K=>K[2].slice(0,Er(K[0])?2:3).every(re=>re<=0))[0])==null?void 0:s[0])||G[0][0];return ne!==d?{data:{index:L+1,overflows:B},reset:{placement:ne}}:{}}}},qT=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:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...T}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=Kr(s),A=Kr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),M=b||(A||!N?[Zc(d)]:PT(d));!b&&E!=="none"&&M.push(...DT(d,N,E,R));const B=[d,...M],V=await Nu(t,T),G=[];let ee=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&G.push(V[L]),m){const $=vb(s,f,R);G.push(V[$[0]],V[$[1]])}if(ee=[...ee,{placement:s,overflows:G}],!G.every($=>$<=0)){var ne,K;const $=(((ne=c.flip)==null?void 0:ne.index)||0)+1,P=B[$];if(P)return{data:{index:$,overflows:ee},reset:{placement:P}};let O=(K=ee.filter(S=>S.overflows[0]<=0).sort((S,F)=>S.overflows[1]-F.overflows[1])[0])==null?void 0:K.placement;if(!O)switch(w){case"bestFit":{var re;const S=(re=ee.map(F=>[F.placement,F.overflows.filter(j=>j>0).reduce((j,se)=>j+se,0)]).sort((F,j)=>F[1]-j[1])[0])==null?void 0:re[0];S&&(O=S);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function UT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Kr(r),d=Er(r),h=xa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const jT=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 UT(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}}}}},VT=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:T=>{let{x:L,y:A}=T;return{x:L,y:A}}},...h}=zo(e,t),p={x:r,y:o},v=await Nu(t,h),m=xa(Kr(s)),b=gb(m);let w=p[b],E=p[m];if(c){const T=b==="y"?"top":"left",L=b==="y"?"bottom":"right",A=w+v[T],R=w-v[L];w=Rd(A,w,R)}if(f){const T=m==="y"?"top":"left",L=m==="y"?"bottom":"right",A=E+v[T],R=E-v[L];E=Rd(A,E,R)}const N=d.fn({...t,[b]:w,[m]:E});return{...N,data:{x:N.x-r,y:N.y-o}}}}},GT=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}=zo(e,t),h=await Nu(t,d),p=Kr(r),v=Er(r),m=xa(r)==="y",{width:b,height:w}=o.floating;let E,N;p==="top"||p==="bottom"?(E=p,N=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(N=p,E=v==="end"?"top":"bottom");const T=w-h[E],L=b-h[N],A=!t.middlewareData.shift;let R=T,M=L;if(m){const V=b-h.left-h.right;M=v||A?Zl(L,V):V}else{const V=w-h.top-h.bottom;R=v||A?Zl(T,V):V}if(A&&!v){const V=Ao(h.left,0),G=Ao(h.right,0),ee=Ao(h.top,0),ne=Ao(h.bottom,0);m?M=b-2*(V!==0||G!==0?V+G:Ao(h.left,h.right)):R=w-2*(ee!==0||ne!==0?ee+ne:Ao(h.top,h.bottom))}await f({...t,availableWidth:M,availableHeight:R});const B=await s.getDimensions(c.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function cr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jr(e){return cr(e).getComputedStyle(e)}const Vv=Math.min,Il=Math.max,Jc=Math.round;function yb(e){const t=jr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Jc(r)!==s||Jc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function ro(e){return wb(e)?(e.nodeName||"").toLowerCase():""}let dc;function bb(){if(dc)return dc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(dc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),dc):navigator.userAgent}function Vr(e){return e instanceof cr(e).HTMLElement}function Zi(e){return e instanceof cr(e).Element}function wb(e){return e instanceof cr(e).Node}function Gv(e){return typeof ShadowRoot>"u"?!1:e instanceof cr(e).ShadowRoot||e instanceof ShadowRoot}function $u(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=jr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function KT(e){return["table","td","th"].includes(ro(e))}function Pd(e){const t=/firefox/i.test(bb()),r=jr(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 xb(){return!/^((?!chrome|android).)*safari/i.test(bb())}function Rh(e){return["html","body","#document"].includes(ro(e))}function _b(e){return Zi(e)?e:e.contextElement}const Sb={x:1,y:1};function As(e){const t=_b(e);if(!Vr(t))return Sb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=yb(t);let f=(c?Jc(r.width):r.width)/o,d=(c?Jc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Jl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=_b(e);let h=Sb;t&&(o?Zi(o)&&(h=As(o)):h=As(e));const p=d?cr(d):window,v=!xb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const N=cr(d),T=o&&Zi(o)?cr(o):o;let L=N.frameElement;for(;L&&o&&T!==N;){const A=As(L),R=L.getBoundingClientRect(),M=getComputedStyle(L);R.x+=(L.clientLeft+parseFloat(M.paddingLeft))*A.x,R.y+=(L.clientTop+parseFloat(M.paddingTop))*A.y,m*=A.x,b*=A.y,w*=A.x,E*=A.y,m+=R.x,b+=R.y,L=cr(L).frameElement}}return{width:w,height:E,top:b,right:m+w,bottom:b+E,left:m,x:m,y:b}}function Ji(e){return((wb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return Zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function kb(e){return Jl(Ji(e)).left+Ou(e).scrollLeft}function Ql(e){if(ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gv(e)&&e.host||Ji(e);return Gv(t)?t.host:t}function Tb(e){const t=Ql(e);return Rh(t)?t.ownerDocument.body:Vr(t)&&$u(t)?t:Tb(t)}function Qc(e,t){var r;t===void 0&&(t=[]);const o=Tb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=cr(o);return s?t.concat(c,c.visualViewport||[],$u(o)?o:[]):t.concat(o,Qc(o))}function Kv(e,t,r){return t==="viewport"?Pl(function(o,s){const c=cr(o),f=Ji(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=xb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Zi(t)?Pl(function(o,s){const c=Jl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Vr(o)?As(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)):Pl(function(o){const s=Ji(o),c=Ou(o),f=o.ownerDocument.body,d=Il(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Il(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+kb(o);const v=-c.scrollTop;return jr(f).direction==="rtl"&&(p+=Il(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Ji(e)))}function Xv(e){return Vr(e)&&jr(e).position!=="fixed"?e.offsetParent:null}function Yv(e){const t=cr(e);let r=Xv(e);for(;r&&KT(r)&&jr(r).position==="static";)r=Xv(r);return r&&(ro(r)==="html"||ro(r)==="body"&&jr(r).position==="static"&&!Pd(r))?t:r||function(o){let s=Ql(o);for(;Vr(s)&&!Rh(s);){if(Pd(s))return s;s=Ql(s)}return null}(e)||t}function XT(e,t,r){const o=Vr(t),s=Ji(t),c=Jl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((ro(t)!=="body"||$u(s))&&(f=Ou(t)),Vr(t)){const h=Jl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=kb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const YT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Qc(p).filter(T=>Zi(T)&&ro(T)!=="body"),w=null;const E=jr(p).position==="fixed";let N=E?Ql(p):p;for(;Zi(N)&&!Rh(N);){const T=jr(N),L=Pd(N);(E?L||w:L||T.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=T:b=b.filter(A=>A!==N),N=Ql(N)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Kv(t,v,s);return p.top=Il(m.top,p.top),p.right=Vv(m.right,p.right),p.bottom=Vv(m.bottom,p.bottom),p.left=Il(m.left,p.left),p},Kv(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=Vr(r),c=Ji(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")&&((ro(r)!=="body"||$u(c))&&(f=Ou(r)),Vr(r))){const p=Jl(r);d=As(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:Zi,getDimensions:function(e){return Vr(e)?yb(e):e.getBoundingClientRect()},getOffsetParent:Yv,getDocumentElement:Ji,getScale:As,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Yv,c=this.getDimensions;return{reference:XT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>jr(e).direction==="rtl"},ZT=(e,t,r)=>{const o=new Map,s={platform:YT,...r},c={...s.platform,_c:o};return FT(e,t,{...s,platform:c})},Qi={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 ea(e,t){let r=Qi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Qi.themes[r.$extend]||{}:(r=null,o=Qi[t]):r=null;while(r);return o}function JT(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Zv(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t}let ta=!1;if(typeof window<"u"){ta=!1;try{const e=Object.defineProperty({},"passive",{get(){ta=!0}});window.addEventListener("test",null,e)}catch{}}let Cb=!1;typeof window<"u"&&typeof navigator<"u"&&(Cb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Eb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Jv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Qv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function em(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Qf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const tr=[];let Co=null;const tm={};function nm(e){let t=tm[e];return t||(t=tm[e]=[]),t}let Id=function(){};typeof window<"u"&&(Id=window.Element);function at(e){return function(t){return ea(t.theme,e)}}const ed="__floating-vue__popper",Ab=()=>ut({name:"VPopper",provide(){return{[ed]:{parentPopper:this}}},inject:{[ed]:{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:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>Eb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Id,Boolean],default:at("container")},boundary:{type:[String,Id],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("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[ed])==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(jT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(WT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(VT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(qT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(HT({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(GT({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 ZT(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),Co&&this.instantMove&&Co.instantMove&&Co!==this.parentPopper){Co.$_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&&(Co=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 Qf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Qc(this.$_referenceNode),...Qc(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<tr.length;r++)t=tr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}tr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Zv(this.theme))nm(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 Qf(),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,em(tr,this),tr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Zv(this.theme)){const o=nm(r);em(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Co===this&&(Co=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 Qf(),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,Jv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Jv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Qv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Qv,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,ta?{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(Dl>=e.left&&Dl<=e.right&&zl>=e.top&&zl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Dl-Hi,o=zl-Bi,s=t.left+t.width/2-Hi+(t.top+t.height/2)-Bi+t.width+t.height,c=Hi+r*s,f=Bi+o*s;return hc(Hi,Bi,c,f,t.left,t.top,t.left,t.bottom)||hc(Hi,Bi,c,f,t.left,t.top,t.right,t.top)||hc(Hi,Bi,c,f,t.right,t.top,t.right,t.bottom)||hc(Hi,Bi,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(Cb){const e=ta?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>rm(t),e),document.addEventListener("touchend",t=>im(t,!0),e)}else window.addEventListener("mousedown",e=>rm(e),!0),window.addEventListener("click",e=>im(e,!1),!0);window.addEventListener("resize",tC)}function rm(e,t){for(let r=0;r<tr.length;r++){const o=tr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function im(e,t){QT(e,t)}function QT(e,t){const r={};for(let o=tr.length-1;o>=0;o--){const s=tr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&om(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&&om(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function om(e,t,r){return r.closeAllPopover||r.closePopover&&t||eC(e,r)&&!t}function eC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function tC(){for(let e=0;e<tr.length;e++)tr[e].$_computePosition()}function sm(){for(let e=0;e<tr.length;e++)tr[e].hide()}let Hi=0,Bi=0,Dl=0,zl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Hi=Dl,Bi=zl,Dl=e.clientX,zl=e.clientY},ta?{passive:!0}:void 0);function hc(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 nC={extends:Ab()},Ru=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function rC(e,t,r,o,s,c){return ce(),xe("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[xn(e.$slots,"default",rS(ob(e.slotData)))],2)}const iC=Ru(nC,[["render",rC]]);function oC(){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 Mc;function Dd(){Dd.init||(Dd.init=!0,Mc=oC()!==-1)}var Pu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Dd(),Tt(()=>{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",Mc&&this.$el.appendChild(e),e.data="about:blank",Mc||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&&(!Mc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const sC=ky();_y("data-v-b329ee4c");const lC={class:"resize-observer",tabindex:"-1"};Sy();const aC=sC((e,t,r,o,s,c)=>(ce(),nt("div",lC)));Pu.render=aC;Pu.__scopeId="data-v-b329ee4c";Pu.__file="src/components/ResizeObserver.vue";const Lb=(e="theme")=>({computed:{themeClass(){return JT(this[e])}}}),cC=ut({name:"VPopperContent",components:{ResizeObserver:Pu},mixins:[Lb()],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}}}),uC=["id","aria-hidden","tabindex","data-popper-placement"],fC={ref:"inner",class:"v-popper__inner"},dC=ie("div",{class:"v-popper__arrow-outer"},null,-1),hC=ie("div",{class:"v-popper__arrow-inner"},null,-1),pC=[dC,hC];function gC(e,t,r,o,s,c){const f=Po("ResizeObserver");return ce(),xe("div",{id:e.popperId,ref:"popover",class:it(["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:nn(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]=Od(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ie("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ie("div",{class:"v-popper__wrapper",style:nn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ie("div",fC,[e.mounted?(ce(),xe(ct,{key:0},[ie("div",null,[xn(e.$slots,"default")]),e.handleResize?(ce(),nt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),ie("div",{ref:"arrow",class:"v-popper__arrow-container",style:nn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},pC,4)],4)],46,uC)}const Mb=Ru(cC,[["render",gC]]),Nb={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 zd=function(){};typeof window<"u"&&(zd=window.Element);const vC=ut({name:"VPopperWrapper",components:{Popper:iC,PopperContent:Mb},mixins:[Nb,Lb("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,zd,Boolean],default:void 0},boundary:{type:[String,zd],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 mC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return ce(),nt(d,pi({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:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:E,handleResize:N,onResize:T,classes:L,result:A})=>[xn(e.$slots,"default",{shown:p,show:w,hide:E}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":N,classes:L,result:A,onHide:E,onResize:T},{default:rt(()=>[xn(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 Ph=Ru(vC,[["render",mC]]);({...Ph});({...Ph});const yC={...Ph,name:"VTooltip",vPopperTheme:"tooltip"},bC=ut({name:"VTooltipDirective",components:{Popper:Ab(),PopperContent:Mb},mixins:[Nb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ea(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ea(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}}}),wC=["innerHTML"],xC=["textContent"];function _C(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return ce(),nt(d,pi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:E,onResize:N,classes:T,result:L})=>[Oe(f,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:T,result:L,onHide:w,onResize:N},{default:rt(()=>[e.html?(ce(),xe("div",{key:0,innerHTML:e.finalContent},null,8,wC)):(ce(),xe("div",{key:1,textContent:We(e.finalContent)},null,8,xC))]),_: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 SC=Ru(bC,[["render",_C]]),$b="v-popper--has-tooltip";function kC(e,t){let r=e.placement;if(!r&&t)for(const o of Eb)t[o]&&(r=o);return r||(r=ea(e.theme||"tooltip","placement")),r}function Ob(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=kC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let td,na,TC=0;function CC(){if(td)return;na=Ue([]),td=pb({name:"VTooltipDirectiveApp",setup(){return{directives:na}},render(){return this.directives.map(t=>wa(SC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),td.mount(e)}function Rb(e,t,r){CC();const o=Ue(Ob(e,t,r)),s=Ue(!1),c={id:TC++,options:o,shown:s};return na.value.push(c),e.classList&&e.classList.add($b),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ih(e){if(e.$_popper){const t=na.value.indexOf(e.$_popper.item);t!==-1&&na.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove($b)}function lm(e,{value:t,modifiers:r}){const o=Ob(e,t,r);if(!o.content||ea(o.theme||"tooltip","disabled"))Ih(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Rb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const EC={beforeMount:lm,updated:lm,beforeUnmount(e){Ih(e)}},AC=EC,Pb=yC,Ib={options:Qi};function Db(e){return e!=null}function Dh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const LC=/^[A-Za-z]:\//;function MC(e=""){return e&&e.replace(/\\/g,"/").replace(LC,t=>t.toUpperCase())}const NC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,am=/^\/([A-Za-z]:)?$/;function $C(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const cm=function(...e){e=e.map(o=>MC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:$C();!s||s.length===0||(t=`${s}/${t}`,r=um(s))}return t=OC(t,!r),r&&!um(t)?`/${t}`:t.length>0?t:"."};function OC(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 um=function(e){return NC.test(e)},RC=function(e,t){const r=cm(e).replace(am,"$1").split("/"),o=cm(t).replace(am,"$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 PC(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 zb(e,t,r,o){const s=RC(t,e),c={id:IC(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function IC(e,t){return PC(`${e}${t||""}`)}function Fb(e){return ra(e)}function ra(e){return e.type==="test"}function Hb(e){const t=[],r=Dh(e);for(const o of r)if(ra(o))t.push(o);else for(const s of o.tasks)if(ra(s))t.push(s);else{const c=Hb(s);for(const f of c)t.push(f)}return t}function zh(e=[]){return Dh(e).flatMap(t=>ra(t)?[t]:[t,...zh(t.tasks)])}function DC(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const fm="q",dm="s",zC=6e4;function Bb(e){return e}const FC=Bb,{clearTimeout:HC,setTimeout:BC}=globalThis,WC=Math.random.bind(Math);function qC(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Bb,deserialize:d=FC,resolver:h,bind:p="rpc",timeout:v=zC}=t,m=new Map;let b,w=!1;const E=new Proxy({},{get(L,A){if(A==="$functions")return e;if(A==="$close")return N;if(A==="then"&&!c.includes("then")&&!("then"in e))return;const R=(...B)=>{r(f({m:A,a:B,t:fm}))};if(c.includes(A))return R.asEvent=R,R;const M=async(...B)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${A}"`);if(b)try{await b}finally{b=void 0}return new Promise((V,G)=>{var K;const ee=jC();let ne;v>=0&&(ne=BC(()=>{var re;try{if(((re=t.onTimeoutError)==null?void 0:re.call(t,A,B))!==!0)throw new Error(`[birpc] timeout on calling "${A}"`)}catch($){G($)}m.delete(ee)},v),typeof ne=="object"&&(ne=(K=ne.unref)==null?void 0:K.call(ne))),m.set(ee,{resolve:V,reject:G,timeoutId:ne,method:A}),r(f({m:A,a:B,i:ee,t:"q"}))})};return M.asEvent=R,M}});function N(L){w=!0,m.forEach(({reject:A,method:R})=>{A(L||new Error(`[birpc] rpc is closed, cannot call "${R}"`))}),m.clear(),s(T)}async function T(L,...A){var M,B,V;let R;try{R=d(L)}catch(G){if(((M=t.onGeneralError)==null?void 0:M.call(t,G))!==!0)throw G;return}if(R.t===fm){const{m:G,a:ee}=R;let ne,K;const re=h?h(G,e[G]):e[G];if(!re)K=new Error(`[birpc] function "${G}" not found`);else try{ne=await re.apply(p==="rpc"?E:e,ee)}catch($){K=$}if(R.i){if(K&&t.onError&&t.onError(K,G,ee),K&&t.onFunctionError&&t.onFunctionError(K,G,ee)===!0)return;if(!K)try{r(f({t:dm,i:R.i,r:ne}),...A);return}catch($){if(K=$,((B=t.onGeneralError)==null?void 0:B.call(t,$,G,ee))!==!0)throw $}try{r(f({t:dm,i:R.i,e:K}),...A)}catch($){if(((V=t.onGeneralError)==null?void 0:V.call(t,$,G,ee))!==!0)throw $}}}else{const{i:G,r:ee,e:ne}=R,K=m.get(G);K&&(HC(K.timeoutId),ne?K.reject(ne):K.resolve(ee)),m.delete(G)}}return b=o(T),E}const UC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function jC(e=21){let t="",r=e;for(;r--;)t+=UC[WC()*64|0];return t}const{parse:Wb,stringify:VC}=JSON,{keys:GC}=Object,ia=String,qb="string",hm={},eu="object",Ub=(e,t)=>t,KC=e=>e instanceof ia?ia(e):e,XC=(e,t)=>typeof t===qb?new ia(t):t,jb=(e,t,r,o)=>{const s=[];for(let c=GC(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ia){const v=e[p];typeof v===eu&&!t.has(v)?(t.add(v),r[h]=hm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==hm&&(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,jb.apply(null,h))}return r},pm=(e,t,r)=>{const o=ia(t.push(r)-1);return e.set(r,o),o},Fd=(e,t)=>{const r=Wb(e,XC).map(KC),o=r[0],s=t||Ub,c=typeof o===eu&&o?jb(r,new Set,o,s):o;return s.call({"":c},"",c)},Vb=(e,t,r)=>{const o=t&&typeof t===eu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Ub,s=new Map,c=[],f=[];let d=+pm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=VC(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case eu:if(b===null)return b;case qb:return s.get(b)||pm(s,c,b)}return b}},YC=e=>Wb(Vb(e));class Gb{constructor(){ds(this,"filesMap",new Map);ds(this,"pathsSet",new Set);ds(this,"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=>{var r;return((r=t.result)==null?void 0:r.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=zb(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==null?void 0: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 ZC(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=A=>A,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Gb,waitForConnection:L,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(A){var R;A==null||A.forEach(([M,B])=>{v.state.clearFiles({config:M},[B])}),(R=r.onSpecsCollected)==null||R.call(r,A)},onPathsCollected(A){var R;v.state.collectPaths(A),(R=r.onPathsCollected)==null||R.call(r,A)},onCollected(A){var R;v.state.collectFiles(A),(R=r.onCollected)==null||R.call(r,A)},onTaskUpdate(A){var R;v.state.updateTasks(A),(R=r.onTaskUpdate)==null||R.call(r,A)},onUserConsoleLog(A){var R;v.state.updateUserLog(A),(R=r.onUserConsoleLog)==null||R.call(r,A)},onFinished(A,R){var M;(M=r.onFinished)==null||M.call(r,A,R)},onFinishedReportCoverage(){var A;(A=r.onFinishedReportCoverage)==null||A.call(r)}},w={post:A=>v.ws.send(A),on:A=>m=A,serialize:A=>Vb(A,(R,M)=>M instanceof Error?{name:M.name,message:M.message,stack:M.stack}:M),deserialize:Fd,onTimeoutError(A){throw new Error(`[vitest-ws-client]: Timeout calling "${A}"`)}};v.rpc=qC(b,w);let E;function N(A=!1){A&&(p=c),v.ws=new h(e),T()}function T(){E=new Promise((A,R)=>{var B,V;const M=(V=(B=setTimeout(()=>{R(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:B.unref)==null?void 0:V.call(B);v.ws.OPEN===v.ws.readyState&&A(),v.ws.addEventListener("open",()=>{p=c,A(),clearTimeout(M)})}),v.ws.addEventListener("message",A=>{m(A.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}T();function L(){return E}return v}function Fh(e){return Q0()?(aS(e),!0):!1}const nd=new WeakMap,JC=(...e)=>{var t;const r=e[0],o=(t=Do())==null?void 0:t.proxy;if(o==null&&!Fy())throw new Error("injectLocal must be called in setup");return o&&nd.has(o)&&r in nd.get(o)?nd.get(o)[r]:wn(...e)},QC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const eE=Object.prototype.toString,tE=e=>eE.call(e)==="[object Object]",tu=()=>{};function Kb(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 Xb=e=>e();function Yb(e,t={}){let r,o,s=tu;const c=h=>{clearTimeout(h),s(),s=tu};let f;return h=>{const p=Vt(e),v=Vt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function nE(e=Xb,t={}){const{initialState:r="active"}=t,o=Zb(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:pa(o),pause:s,resume:c,eventFilter:f}}function gm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function vm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function rE(e){return Do()}function rd(e){return Array.isArray(e)?e:[e]}function Zb(...e){if(e.length!==1)return ga(...e);const t=e[0];return typeof t=="function"?pa(vy(()=>({get:t,set:tu}))):Ue(t)}function pc(e,t=200,r={}){return Kb(Yb(t,r),e)}function Jb(e,t,r={}){const{eventFilter:o=Xb,...s}=r;return xt(e,Kb(o,t),s)}function Qb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=nE(o,{initialState:s});return{stop:Jb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Hh(e,t=!0,r){rE()?co(e,r):t?e():Tt(e)}function Hd(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:N}={}){let T=null;const A=[new Promise(R=>{T=xt(e,M=>{m(M)!==t&&(T?T():Tt(()=>T==null?void 0:T()),R(M))},{flush:b,deep:w,immediate:!0})})];return E!=null&&A.push(gm(E,N).then(()=>Vt(e)).finally(()=>T==null?void 0:T())),Promise.race(A)}function o(m,b){if(!Ct(m))return r(M=>M===m,b);const{flush:w="sync",deep:E=!1,timeout:N,throwOnTimeout:T}=b??{};let L=null;const R=[new Promise(M=>{L=xt([e,m],([B,V])=>{t!==(B===V)&&(L?L():Tt(()=>L==null?void 0:L()),M(B))},{flush:w,deep:E,immediate:!0})})];return N!=null&&R.push(gm(N,T).then(()=>Vt(e)).finally(()=>(L==null||L(),Vt(e)))),Promise.race(R)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const E=Array.from(w);return E.includes(m)||E.includes(Vt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(Vt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Hd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Hd(e,!t)}}}function mm(e){return Hd(e)}function iE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ct(e),c=rn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Vt(r);return c.value=c.value===h?Vt(o):h,c.value}}return s?f:[c,f]}function Bh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Jb(e,t,{...c,eventFilter:Yb(o,{maxWait:s})})}function oE(e,t,r){return xt(e,t,{...r,immediate:!0})}function sE(e,t,r){const o=xt(e,(...s)=>(Tt(()=>o()),t(...s)),r);return o}function lE(e,t,r){let o;Ct(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=tu}=o,h=rn(!s),p=f?rn(t):Ue(t);let v=0;return Lh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(N=>{m(()=>{c&&(c.value=!1),w||N()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?Se(()=>(h.value=!0,p.value)):p}const Nr=QC?window:void 0;function nu(e){var t;const r=Vt(e);return(t=r==null?void 0:r.$el)!=null?t:r}function io(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=Se(()=>{const d=rd(Vt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=oE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>nu(p)))!=null?h:[Nr].filter(p=>p!=null),rd(Vt(s.value?e[1]:e[0])),rd(U(s.value?e[2]:e[1])),Vt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=tE(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,m)))))},{flush:"post"}),f=()=>{c(),r()};return Fh(r),f}function aE(){const e=rn(!1),t=Do();return t&&co(()=>{e.value=!0},t),e}function ew(e){const t=aE();return Se(()=>(t.value,!!e()))}function cE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function tw(...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=Nr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=cE(t);return io(s,c,v=>{v.repeat&&Vt(d)||h(v)&&r(v)},f)}function uE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Nr,once:c=!1}=t,f=rn(!1),d=Se(()=>o?1e3/Vt(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Fh(b),{isActive:pa(f),pause:b,resume:m}}const fE=Symbol("vueuse-ssr-width");function dE(){const e=Fy()?JC(fE,null):null;return typeof e=="number"?e:void 0}function nw(e,t={}){const{window:r=Nr,ssrWidth:o=dE()}=t,s=ew(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=rn(typeof o=="number"),f=rn(),d=rn(!1),h=p=>{d.value=p.matches};return Lh(()=>{if(c.value){c.value=!s.value;const p=Vt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=vm(b[1])),w&&E&&(E=o<=vm(w[1])),m?!E:E});return}s.value&&(f.value=r.matchMedia(Vt(e)),d.value=f.value.matches)}),io(f,"change",h,{passive:!0}),Se(()=>d.value)}const gc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vc="__vueuse_ssr_handlers__",hE=pE();function pE(){return vc in gc||(gc[vc]=gc[vc]||{}),gc[vc]}function rw(e,t){return hE[e]||t}function gE(e){return nw("(prefers-color-scheme: dark)",e)}function vE(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 mE={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()}},ym="vueuse-storage";function iw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Nr,eventFilter:b,onError:w=re=>{console.error(re)},initOnMounted:E}=o,N=(v?rn:Ue)(typeof t=="function"?t():t),T=Se(()=>Vt(e));if(!r)try{r=rw("getDefaultStorage",()=>{var re;return(re=Nr)==null?void 0:re.localStorage})()}catch(re){w(re)}if(!r)return N;const L=Vt(t),A=vE(L),R=(s=o.serializer)!=null?s:mE[A],{pause:M,resume:B}=Qb(N,()=>G(N.value),{flush:c,deep:f,eventFilter:b});xt(T,()=>ne(),{flush:c}),m&&d&&Hh(()=>{r instanceof Storage?io(m,"storage",ne,{passive:!0}):io(m,ym,K),E&&ne()}),E||ne();function V(re,$){if(m){const P={key:T.value,oldValue:re,newValue:$,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",P):new CustomEvent(ym,{detail:P}))}}function G(re){try{const $=r.getItem(T.value);if(re==null)V($,null),r.removeItem(T.value);else{const P=R.write(re);$!==P&&(r.setItem(T.value,P),V($,P))}}catch($){w($)}}function ee(re){const $=re?re.newValue:r.getItem(T.value);if($==null)return h&&L!=null&&r.setItem(T.value,R.write(L)),L;if(!re&&p){const P=R.read($);return typeof p=="function"?p(P,L):A==="object"&&!Array.isArray(P)?{...L,...P}:P}else return typeof $!="string"?$:R.read($)}function ne(re){if(!(re&&re.storageArea!==r)){if(re&&re.key==null){N.value=L;return}if(!(re&&re.key!==T.value)){M();try{(re==null?void 0:re.newValue)!==R.write(N.value)&&(N.value=ee(re))}catch($){w($)}finally{re?Tt(B):B()}}}}function K(re){ne(re.detail)}return N}const yE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function bE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Nr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=gE({window:s}),w=Se(()=>b.value?"dark":"light"),E=h||(f==null?Zb(o):iw(f,o,c,{window:s,listenToStorageChanges:d})),N=Se(()=>E.value==="auto"?w.value:E.value),T=rw("updateHTMLAttrs",(M,B,V)=>{const G=typeof M=="string"?s==null?void 0:s.document.querySelector(M):nu(M);if(!G)return;const ee=new Set,ne=new Set;let K=null;if(B==="class"){const $=V.split(/\s/g);Object.values(m).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{$.includes(P)?ee.add(P):ne.add(P)})}else K={key:B,value:V};if(ee.size===0&&ne.size===0&&K===null)return;let re;v&&(re=s.document.createElement("style"),re.appendChild(document.createTextNode(yE)),s.document.head.appendChild(re));for(const $ of ee)G.classList.add($);for(const $ of ne)G.classList.remove($);K&&G.setAttribute(K.key,K.value),v&&(s.getComputedStyle(re).opacity,document.head.removeChild(re))});function L(M){var B;T(t,r,(B=m[M])!=null?B:M)}function A(M){e.onChanged?e.onChanged(M,L):L(M)}xt(N,A,{flush:"post",immediate:!0}),Hh(()=>A(N.value));const R=Se({get(){return p?E.value:N.value},set(M){E.value=M}});return Object.assign(R,{store:E,system:w,state:N})}function wE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=bE({...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=Se(()=>o.system.value);return Se({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function ow(e,t,r={}){const{window:o=Nr,...s}=r;let c;const f=ew(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Se(()=>{const m=Vt(e);return Array.isArray(m)?m.map(b=>nu(b)):[nu(m)]}),p=xt(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Fh(v),{isSupported:f,stop:v}}function Iu(e,t,r={}){const{window:o=Nr}=r;return iw(e,t,o==null?void 0:o.localStorage,r)}function xE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Nr}=t;if(!d)return rr(r);const h=rr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const R=d.location.hash||"",M=R.indexOf("?");return M>0?R.slice(M):""}else return(d.location.hash||"").replace(/^#/,"")}function v(R){const M=R.toString();if(e==="history")return`${M?`?${M}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${M?`#${M}`:""}`;const B=d.location.hash||"#",V=B.indexOf("?");return V>0?`${d.location.search||""}${B.slice(0,V)}${M?`?${M}`:""}`:`${d.location.search||""}${B}${M?`?${M}`:""}`}function m(){return new URLSearchParams(p())}function b(R){const M=new Set(Object.keys(h));for(const B of R.keys()){const V=R.getAll(B);h[B]=V.length>1?V:R.get(B)||"",M.delete(B)}Array.from(M).forEach(B=>delete h[B])}const{pause:w,resume:E}=Qb(h,()=>{const R=new URLSearchParams("");Object.keys(h).forEach(M=>{const B=h[M];Array.isArray(B)?B.forEach(V=>R.append(M,V)):o&&B==null||s&&!B?R.delete(M):R.set(M,B)}),N(R,!1)},{deep:!0});function N(R,M){w(),M&&b(R),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(R)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(R)),E()}function T(){c&&N(m(),!0)}const L={passive:!0};io(d,"popstate",T,L),e!=="history"&&io(d,"hashchange",T,L);const A=m();return A.keys().next().value?b(A):Object.assign(h,r),h}function sw(e={}){const{window:t=Nr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=rn(r),h=rn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:w}=t.visualViewport;d.value=Math.round(m*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(),Hh(p);const v={passive:!0};if(io("resize",p,v),t&&f==="visual"&&t.visualViewport&&io(t.visualViewport,"resize",p,v),s){const m=nw("(orientation: portrait)");xt(m,()=>p())}return{width:d,height:h}}const Bd=rn([]),Xn=rn([]),$r=Iu("vitest-ui_task-tree-opened",[],{shallow:!0}),ru=Se(()=>new Set($r.value)),pn=Iu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ue(pn.value.search),_E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function lw(e){return e.replace(/[&<>"']/g,t=>_E[t])}const SE=Se(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${lw(e)})`,"gi"):null}),aw=Se(()=>Un.value.trim()!==""),Qe=rr({failed:pn.value.failed,success:pn.value.success,skipped:pn.value.skipped,onlyTests:pn.value.onlyTests}),Wd=Se(()=>!!(Qe.failed||Qe.success||Qe.skipped)),Du=rn([]),Is=Ue(!1),bm=Se(()=>{const e=pn.value.expandAll;return $r.value.length>0?e!==!0:e!==!1}),kE=Se(()=>{const e=aw.value,t=Wd.value,r=Qe.onlyTests,o=Le.summary.filesFailed,s=Le.summary.filesSuccess,c=Le.summary.filesSkipped,f=Le.summary.filesRunning,d=Du.value;return Le.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function _a(e){return Object.hasOwnProperty.call(e,"tasks")}function TE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function cw(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 CE(e){return e.type==="test"}function EE(e){return e.mode==="run"&&e.type==="test"}function Rn(e){return e.type==="file"}function yi(e){return e.type==="file"||e.type==="suite"}function AE(e=Le.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function oa(e,t=!1){var o,s,c,f,d;let r=Le.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,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:ru.value.size>0&&ru.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Le.colors.get(e.projectName||"")||cw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Le.nodes.set(e.id,r),Le.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)Sa(e.id,e.tasks[h],!0)}function uw(e,t){const r=Le.nodes.get(e);if(!r||!yi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!_a(o)))return Sa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function LE(e){const t=Le.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Fb(r)||Sa(t.parentId,r,!1)}function Sa(e,t,r){var f,d,h,p,v;const o=Le.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Le.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):(Fb(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:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:ru.value.size>0&&ru.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Le.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&_a(t)))for(let m=0;m<t.tasks.length;m++)Sa(s.id,t.tasks[m],r)}function ME(e){const t=Le.nodes.get(e);if(!t||!yi(t))return;const r=new Set($r.value);r.delete(t.id);const o=[...$E(t)];$r.value=Array.from(r),Xn.value=o}function NE(){qd(Le.root.tasks);const e=[...Xn.value.filter(Rn)];qd(e),$r.value=[],pn.value.expandAll=!0,Xn.value=e}function qd(e){for(const t of e)yi(t)&&(t.expanded=!1,qd(t.tasks))}function*fw(e,t){if(t&&(yield e.id),yi(e))for(let r=0;r<e.tasks.length;r++)yield*fw(e.tasks[r],!0)}function*$E(e){const t=e.id,r=new Set(fw(e,!1));for(let o=0;o<Xn.value.length;o++){const s=Xn.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 zu=Ue("idle"),ms=Se(()=>zu.value==="idle"),ji=Ue([]);function OE(e,t,r){return e?pw(e,t,r):!1}function Wh(e,t){const r=[...dw(e,t)];Xn.value=r,Du.value=r.filter(Rn).map(o=>fr(o.id))}function*dw(e,t){for(const r of AE())yield*hw(r,e,t)}function*hw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Ud(e,o,w=>wm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Ud(e,o,w=>wm(w,t,r)))yi(b)?(s.set(b.id,m),Rn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Rn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...PE(c,r.onlyTests,o,d,f)].reverse(),p=Le.nodes,v=new Set(h.filter(m=>{var b;return Rn(m)||yi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Rn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function RE(e,t,r,o,s){if(o){if(Rn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&Rn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&Rn(c)&&s.add(c.id),t}}function*PE(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=yi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Le.nodes.get(d.parentId);for(;p;)r.add(p.id),Rn(p)&&o.add(p.id),p=Le.nodes.get(p.parentId);yield d;continue}if(h){const p=RE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Le.nodes.get(d.parentId);p&&Rn(p)&&o.add(p.id),yield d}}}function IE(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function pw(e,t,r){if(t.length===0||TE(e.name,t))if(r.success||r.failed||r.skipped){if(IE(e,r))return!0}else return!0;return!1}function*Ud(e,t,r){const o=r(e);if(o)if(CE(e)){let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}else if(Rn(e))t.add(e.id);else{t.add(e.id);let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}if(yield[o,e],yi(e))for(let s=0;s<e.tasks.length;s++)yield*Ud(e.tasks[s],t,r)}function wm(e,t,r){const o=mt.state.idMap.get(e.id);return o?pw(o,t,r):!1}function DE(e,t,r){const o=uw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Sa(s.id,p,!1);s.expanded=!0;const f=new Set($r.value);f.add(s.id);const d=new Set(hw(s,t,r)),h=[...HE(s,d)];$r.value=Array.from(f),Xn.value=h}function zE(e,t){qh(Le.root.tasks,!1);const r=[...dw(e,t)];pn.value.expandAll=!1,$r.value=[],Xn.value=r,Du.value=r.filter(Rn).map(o=>fr(o.id))}function FE(e,t){if(e.size)for(const r of Xn.value)e.has(r.id)&&(r.expanded=!0);else t&&qh(Xn.value.filter(Rn),!0)}function qh(e,t){for(const r of e)yi(r)&&(r.expanded=!0,qh(r.tasks,!1));t&&(pn.value.expandAll=!1,$r.value=[])}function*HE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Xn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Uh(e){return Hb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function BE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>oa(s,t)),Bd.value=[...Le.root.tasks],Wh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function WE(e){queueMicrotask(()=>{const t=Le.pendingTasks,r=mt.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 xm(e,t,r,o,s){e&&KE(r);const c=!e;queueMicrotask(()=>{t?jE(c):VE(c)}),queueMicrotask(()=>{XE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Bd.value&&Uh(Bd.value.map(f=>fr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{GE(o,s,t)})}function*qE(){yield*Xn.value.filter(EE)}function UE(){const e=mt.state.idMap;let t;for(const r of qE())t=e.get(r.parentId),t&&_a(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function jE(e){const t=mt.state.getFiles(),r=Le.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)oa(o[c],e),iu(o[c].tasks);const s=Le.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=fr(f.id);if(!d)continue;oa(d,e);const h=d.tasks;h!=null&&h.length&&iu(d.tasks)}}function VE(e){const t=new Map(Le.pendingTasks.entries());Le.pendingTasks.clear();const r=Le.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>fr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],oa(s,!1),iu(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Le.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=fr(h.id);if(!p)continue;const v=t.get(p.id);v&&(oa(p,e),iu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function GE(e,t,r=!1){const o=pn.value.expandAll,s=o!==!0,c=new Set($r.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{_m(e,t,r)}),Is.value||queueMicrotask(()=>{(Xn.value.length||r)&&(Is.value=!0)}),f&&(queueMicrotask(()=>{FE(c,r),s&&(pn.value.expandAll=!1)}),queueMicrotask(()=>{_m(e,t,r)}))}function _m(e,t,r){Wh(e,t),r&&(UE(),zu.value="idle")}function iu(e){let t;for(let r=0;r<e.length;r++)t=e[r],_a(t)?uw(t.id,!0):LE(t.id)}function KE(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 XE(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Le.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,fr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[b,w]of o){if(!w)continue;const E=r.get(b);E&&(E.mode=w.mode,E.setupDuration=w.setupDuration,E.prepareDuration=w.prepareDuration,E.environmentLoad=w.environmentLoad,E.collectDuration=w.collectDuration,E.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,E.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:N,success:T,skipped:L,total:A,ignored:R,todo:M}=gw(w);s.totalTests+=A,s.testsFailed+=N,s.testsSuccess+=T,s.testsSkipped+=L,s.testsTodo+=M,s.testsIgnore+=R}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function gw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of vw(e))(!r||OE(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function YE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>gw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*vw(e){const t=Dh(e);let r;for(let o=0;o<t.length;o++)r=t[o],ra(r)?yield r:yield*vw(r.tasks)}class ZE{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=rr({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})){ds(this,"rafCollector");ds(this,"resumeEndRunId");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=uE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}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])),BE(t,!0,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){WE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{xm(t,r,this.summary,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}):xm(t,r,this.summary,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collectTestsTotal(t,r,o,s){return YE(t,r,o,s,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{ME(t)})}expandNode(t){queueMicrotask(()=>{DE(t,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{NE()})}expandAllNodes(){queueMicrotask(()=>{zE(Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{Wh(Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Le=new ZE,er=Ue([414,896]),Fu=xE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),oo=ga(Fu,"file"),Jn=ga(Fu,"view"),mw=ga(Fu,"line"),yw=ga(Fu,"test"),Ds=Ue(),Ls=Ue(!0),so=Ue(!1),ou=Ue(!0),ys=Se(()=>{var e;return(e=Hu.value)==null?void 0:e.coverage}),jd=Se(()=>{var e;return(e=ys.value)==null?void 0:e.enabled}),bs=Se(()=>jd.value&&!!ys.value.htmlReporter),Ms=Iu("vitest-ui_splitpanes-mainSizes",[33,67]);var q0;const eo=Iu("vitest-ui_splitpanes-detailSizes",[((q0=window.__vitest_browser_runner__)==null?void 0:q0.provider)==="webdriverio"?er.value[0]/window.outerWidth*100:33,67]),At=rr({navigation:Ms.value[0],details:{size:Ms.value[1],browser:eo.value[0],main:eo.value[1]}}),Sm=Se(()=>{var e;if(bs.value){const t=ys.value.reportsDirectory.lastIndexOf("/"),r=(e=ys.value.htmlReporter)==null?void 0:e.subdir;return r?`/${ys.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${ys.value.reportsDirectory.slice(t+1)}/index.html`}});xt(zu,e=>{ou.value=e==="running"},{immediate:!0});function JE(){const e=oo.value;if(e&&e.length>0){const t=fr(e);t?(Ds.value=t,Ls.value=!1,so.value=!1):sE(()=>mt.state.getFiles(),()=>{Ds.value=fr(e),Ls.value=!1,so.value=!1})}return Ls}function su(e){Ls.value=e,so.value=!1,e&&(Ds.value=void 0,oo.value="")}function bw({file:e,line:t,view:r,test:o}){oo.value=e,mw.value=t,Jn.value=r,yw.value=o,Ds.value=fr(e),su(!1)}function QE(e){bw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function eA(){so.value=!0,Ls.value=!1,Ds.value=void 0,oo.value=""}function tA(){At.details.browser=100,At.details.main=0,eo.value=[100,0]}function ww(){if((Ht==null?void 0:Ht.provider)==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(er.value[0]+20)/e*100}return 33}function nA(){At.details.browser=ww(),At.details.main=100-At.details.browser,eo.value=[At.details.browser,At.details.main]}function rA(){At.navigation=33,At.details.size=67,Ms.value=[33,67]}function xw(){At.details.main!==0&&(At.details.browser=ww(),At.details.main=100-At.details.browser,eo.value=[At.details.browser,At.details.main])}const iA={setCurrentFileId(e){oo.value=e,Ds.value=fr(e),su(!1)},async setIframeViewport(e,t){er.value=[e,t],(Ht==null?void 0:Ht.provider)==="webdriverio"&&xw(),await new Promise(r=>requestAnimationFrame(r))}},oA=location.port,sA=[location.hostname,oA].filter(Boolean).join(":"),lA=`${location.protocol==="https:"?"wss:":"ws:"}//${sA}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Ar=!!window.METADATA_PATH,aA=44,km="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cA=new Uint8Array(64),_w=new Uint8Array(128);for(let e=0;e<km.length;e++){const t=km.charCodeAt(e);cA[e]=t,_w[t]=e}function Sl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=_w[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Tm(e,t){return e.pos>=t?!1:e.peek()!==aA}class uA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function fA(e){const{length:t}=e,r=new uA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=Sl(r,s),s<b&&(m=!1),b=s,Tm(r,p)?(c=Sl(r,c),f=Sl(r,f),d=Sl(r,d),Tm(r,p)?(h=Sl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||dA(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function dA(e){e.sort(hA)}function hA(e,t){return e[0]-t[0]}const pA=/^[\w+.-]+:\/\//,gA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,vA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Ut;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Ut||(Ut={}));function mA(e){return pA.test(e)}function yA(e){return e.startsWith("//")}function Sw(e){return e.startsWith("/")}function bA(e){return e.startsWith("file:")}function Cm(e){return/^[.?#]/.test(e)}function mc(e){const t=gA.exec(e);return kw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function wA(e){const t=vA.exec(e),r=t[2];return kw("file:","",t[1]||"","",Sw(r)?r:"/"+r,t[3]||"",t[4]||"")}function kw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Ut.Absolute}}function Em(e){if(yA(e)){const r=mc("http:"+e);return r.scheme="",r.type=Ut.SchemeRelative,r}if(Sw(e)){const r=mc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Ut.AbsolutePath,r}if(bA(e))return wA(e);if(mA(e))return mc(e);const t=mc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Ut.Query:e.startsWith("#")?Ut.Hash:Ut.RelativePath:Ut.Empty,t}function xA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function _A(e,t){Tw(t,t.type),e.path==="/"?e.path=t.path:e.path=xA(t.path)+e.path}function Tw(e,t){const r=t<=Ut.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function SA(e,t){if(!e&&!t)return"";const r=Em(e);let o=r.type;if(t&&o!==Ut.Absolute){const c=Em(t),f=c.type;switch(o){case Ut.Empty:r.hash=c.hash;case Ut.Hash:r.query=c.query;case Ut.Query:case Ut.RelativePath:_A(r,c);case Ut.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Ut.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}Tw(r,o);const s=r.query+r.hash;switch(o){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const c=r.path.slice(1);return c?Cm(t||e)&&!Cm(c)?"./"+c+s:c+s:s||"."}case Ut.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Am(e,t){return t&&!t.endsWith("/")&&(t+="/"),SA(e,t)}function kA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const lo=0,TA=1,CA=2,EA=3,AA=4;function LA(e,t){const r=Lm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Lm(e,o+1))e[o]=NA(e[o],t);return e}function Lm(e,t){for(let r=t;r<e.length;r++)if(!MA(e[r]))return r;return e.length}function MA(e){for(let t=1;t<e.length;t++)if(e[t][lo]<e[t-1][lo])return!1;return!0}function NA(e,t){return t||(e=e.slice()),e.sort($A)}function $A(e,t){return e[lo]-t[lo]}let lu=!1;function OA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][lo]-t;if(c===0)return lu=!0,s;c<0?r=s+1:o=s-1}return lu=!1,r-1}function RA(e,t,r){for(let o=r+1;o<e.length&&e[o][lo]===t;r=o++);return r}function PA(e,t,r){for(let o=r-1;o>=0&&e[o][lo]===t;r=o--);return r}function IA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function DA(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 lu=f!==-1&&e[f][lo]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=OA(e,t,d,h)}const zA="`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)",Mm=-1,HA=1;class BA{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Am(h||"",kA(r));this.resolvedSources=p.map(w=>Am(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=LA(b,o)),this._decodedMemo=IA(),this._bySources=void 0,this._bySourceMemos=void 0}}function WA(e){var t;return(t=e)._decoded||(t._decoded=fA(e._encoded))}function qA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(zA);if(o<0)throw new Error(FA);const c=WA(e);if(r>=c.length)return yc(null,null,null,null);const f=c[r],d=UA(f,e._decodedMemo,r,o,s||HA);if(d===-1)return yc(null,null,null,null);const h=f[d];if(h.length===1)return yc(null,null,null,null);const{names:p,resolvedSources:v}=e;return yc(v[h[TA]],h[CA]+1,h[EA],h.length===5?p[h[AA]]:null)}function yc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function UA(e,t,r,o,s){let c=DA(e,o,t,r);return lu?c=(s===Mm?RA:PA)(e,o,c):s===Mm&&c++,c===-1||c===e.length?-1:c}const jA=/^[A-Za-z]:\//;function VA(e=""){return e&&e.replace(/\\/g,"/").replace(jA,t=>t.toUpperCase())}const GA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const XA=function(...e){e=e.map(o=>VA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:KA();!s||s.length===0||(t=`${s}/${t}`,r=Nm(s))}return t=YA(t,!r),r&&!Nm(t)?`/${t}`:t.length>0?t:"."};function YA(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 Nm=function(e){return GA.test(e)},Cw=/^\s*at .*(?:\S:\d+|\(native\))/m,ZA=/^(?:eval@)?(?:\[native code\])?$/,JA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Ew(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 QA(e){let t=e.trim();if(ZA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=Ew(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function eL(e){let t=e.trim();if(!Cw.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]=Ew(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:XA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function tL(e,t={}){const{ignoreStackEntries:r=JA}=t;return(Cw.test(e)?rL(e):nL(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 $m(r,s.file)?null:s;const d=new BA(f),{line:h,column:p,source:v,name:m}=qA(d,s);let b=s.file;if(v){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,E=f.sourceRoot?new URL(f.sourceRoot,w):w;b=new URL(v,E).pathname,b.match(/\/\w:\//)&&(b=b.slice(1))}return $m(r,b)?null:h!=null&&p!=null?{line:h,column:p,file:b,method:m||s.method}:s}).filter(s=>s!=null)}function $m(e,t){return e.some(r=>t.match(r))}function nL(e){return e.split(`
18
+ `).map(t=>QA(t)).filter(Db)}function rL(e){return e.split(`
19
+ `).map(t=>eL(t)).filter(Db)}function Aw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var id={},xr={};const iL="Á",oL="á",sL="Ă",lL="ă",aL="∾",cL="∿",uL="∾̳",fL="Â",dL="â",hL="´",pL="А",gL="а",vL="Æ",mL="æ",yL="⁡",bL="𝔄",wL="𝔞",xL="À",_L="à",SL="ℵ",kL="ℵ",TL="Α",CL="α",EL="Ā",AL="ā",LL="⨿",ML="&",NL="&",$L="⩕",OL="⩓",RL="∧",PL="⩜",IL="⩘",DL="⩚",zL="∠",FL="⦤",HL="∠",BL="⦨",WL="⦩",qL="⦪",UL="⦫",jL="⦬",VL="⦭",GL="⦮",KL="⦯",XL="∡",YL="∟",ZL="⊾",JL="⦝",QL="∢",eM="Å",tM="⍼",nM="Ą",rM="ą",iM="𝔸",oM="𝕒",sM="⩯",lM="≈",aM="⩰",cM="≊",uM="≋",fM="'",dM="⁡",hM="≈",pM="≊",gM="Å",vM="å",mM="𝒜",yM="𝒶",bM="≔",wM="*",xM="≈",_M="≍",SM="Ã",kM="ã",TM="Ä",CM="ä",EM="∳",AM="⨑",LM="≌",MM="϶",NM="‵",$M="∽",OM="⋍",RM="∖",PM="⫧",IM="⊽",DM="⌅",zM="⌆",FM="⌅",HM="⎵",BM="⎶",WM="≌",qM="Б",UM="б",jM="„",VM="∵",GM="∵",KM="∵",XM="⦰",YM="϶",ZM="ℬ",JM="ℬ",QM="Β",eN="β",tN="ℶ",nN="≬",rN="𝔅",iN="𝔟",oN="⋂",sN="◯",lN="⋃",aN="⨀",cN="⨁",uN="⨂",fN="⨆",dN="★",hN="▽",pN="△",gN="⨄",vN="⋁",mN="⋀",yN="⤍",bN="⧫",wN="▪",xN="▴",_N="▾",SN="◂",kN="▸",TN="␣",CN="▒",EN="░",AN="▓",LN="█",MN="=⃥",NN="≡⃥",$N="⫭",ON="⌐",RN="𝔹",PN="𝕓",IN="⊥",DN="⊥",zN="⋈",FN="⧉",HN="┐",BN="╕",WN="╖",qN="╗",UN="┌",jN="╒",VN="╓",GN="╔",KN="─",XN="═",YN="┬",ZN="╤",JN="╥",QN="╦",e$="┴",t$="╧",n$="╨",r$="╩",i$="⊟",o$="⊞",s$="⊠",l$="┘",a$="╛",c$="╜",u$="╝",f$="└",d$="╘",h$="╙",p$="╚",g$="│",v$="║",m$="┼",y$="╪",b$="╫",w$="╬",x$="┤",_$="╡",S$="╢",k$="╣",T$="├",C$="╞",E$="╟",A$="╠",L$="‵",M$="˘",N$="˘",$$="¦",O$="𝒷",R$="ℬ",P$="⁏",I$="∽",D$="⋍",z$="⧅",F$="\\",H$="⟈",B$="•",W$="•",q$="≎",U$="⪮",j$="≏",V$="≎",G$="≏",K$="Ć",X$="ć",Y$="⩄",Z$="⩉",J$="⩋",Q$="∩",eO="⋒",tO="⩇",nO="⩀",rO="ⅅ",iO="∩︀",oO="⁁",sO="ˇ",lO="ℭ",aO="⩍",cO="Č",uO="č",fO="Ç",dO="ç",hO="Ĉ",pO="ĉ",gO="∰",vO="⩌",mO="⩐",yO="Ċ",bO="ċ",wO="¸",xO="¸",_O="⦲",SO="¢",kO="·",TO="·",CO="𝔠",EO="ℭ",AO="Ч",LO="ч",MO="✓",NO="✓",$O="Χ",OO="χ",RO="ˆ",PO="≗",IO="↺",DO="↻",zO="⊛",FO="⊚",HO="⊝",BO="⊙",WO="®",qO="Ⓢ",UO="⊖",jO="⊕",VO="⊗",GO="○",KO="⧃",XO="≗",YO="⨐",ZO="⫯",JO="⧂",QO="∲",eR="”",tR="’",nR="♣",rR="♣",iR=":",oR="∷",sR="⩴",lR="≔",aR="≔",cR=",",uR="@",fR="∁",dR="∘",hR="∁",pR="ℂ",gR="≅",vR="⩭",mR="≡",yR="∮",bR="∯",wR="∮",xR="𝕔",_R="ℂ",SR="∐",kR="∐",TR="©",CR="©",ER="℗",AR="∳",LR="↵",MR="✗",NR="⨯",$R="𝒞",OR="𝒸",RR="⫏",PR="⫑",IR="⫐",DR="⫒",zR="⋯",FR="⤸",HR="⤵",BR="⋞",WR="⋟",qR="↶",UR="⤽",jR="⩈",VR="⩆",GR="≍",KR="∪",XR="⋓",YR="⩊",ZR="⊍",JR="⩅",QR="∪︀",eP="↷",tP="⤼",nP="⋞",rP="⋟",iP="⋎",oP="⋏",sP="¤",lP="↶",aP="↷",cP="⋎",uP="⋏",fP="∲",dP="∱",hP="⌭",pP="†",gP="‡",vP="ℸ",mP="↓",yP="↡",bP="⇓",wP="‐",xP="⫤",_P="⊣",SP="⤏",kP="˝",TP="Ď",CP="ď",EP="Д",AP="д",LP="‡",MP="⇊",NP="ⅅ",$P="ⅆ",OP="⤑",RP="⩷",PP="°",IP="∇",DP="Δ",zP="δ",FP="⦱",HP="⥿",BP="𝔇",WP="𝔡",qP="⥥",UP="⇃",jP="⇂",VP="´",GP="˙",KP="˝",XP="`",YP="˜",ZP="⋄",JP="⋄",QP="⋄",e2="♦",t2="♦",n2="¨",r2="ⅆ",i2="ϝ",o2="⋲",s2="÷",l2="÷",a2="⋇",c2="⋇",u2="Ђ",f2="ђ",d2="⌞",h2="⌍",p2="$",g2="𝔻",v2="𝕕",m2="¨",y2="˙",b2="⃜",w2="≐",x2="≑",_2="≐",S2="∸",k2="∔",T2="⊡",C2="⌆",E2="∯",A2="¨",L2="⇓",M2="⇐",N2="⇔",$2="⫤",O2="⟸",R2="⟺",P2="⟹",I2="⇒",D2="⊨",z2="⇑",F2="⇕",H2="∥",B2="⤓",W2="↓",q2="↓",U2="⇓",j2="⇵",V2="̑",G2="⇊",K2="⇃",X2="⇂",Y2="⥐",Z2="⥞",J2="⥖",Q2="↽",eI="⥟",tI="⥗",nI="⇁",rI="↧",iI="⊤",oI="⤐",sI="⌟",lI="⌌",aI="𝒟",cI="𝒹",uI="Ѕ",fI="ѕ",dI="⧶",hI="Đ",pI="đ",gI="⋱",vI="▿",mI="▾",yI="⇵",bI="⥯",wI="⦦",xI="Џ",_I="џ",SI="⟿",kI="É",TI="é",CI="⩮",EI="Ě",AI="ě",LI="Ê",MI="ê",NI="≖",$I="≕",OI="Э",RI="э",PI="⩷",II="Ė",DI="ė",zI="≑",FI="ⅇ",HI="≒",BI="𝔈",WI="𝔢",qI="⪚",UI="È",jI="è",VI="⪖",GI="⪘",KI="⪙",XI="∈",YI="⏧",ZI="ℓ",JI="⪕",QI="⪗",eD="Ē",tD="ē",nD="∅",rD="∅",iD="◻",oD="∅",sD="▫",lD=" ",aD=" ",cD=" ",uD="Ŋ",fD="ŋ",dD=" ",hD="Ę",pD="ę",gD="𝔼",vD="𝕖",mD="⋕",yD="⧣",bD="⩱",wD="ε",xD="Ε",_D="ε",SD="ϵ",kD="≖",TD="≕",CD="≂",ED="⪖",AD="⪕",LD="⩵",MD="=",ND="≂",$D="≟",OD="⇌",RD="≡",PD="⩸",ID="⧥",DD="⥱",zD="≓",FD="ℯ",HD="ℰ",BD="≐",WD="⩳",qD="≂",UD="Η",jD="η",VD="Ð",GD="ð",KD="Ë",XD="ë",YD="€",ZD="!",JD="∃",QD="∃",ez="ℰ",tz="ⅇ",nz="ⅇ",rz="≒",iz="Ф",oz="ф",sz="♀",lz="ffi",az="ff",cz="ffl",uz="𝔉",fz="𝔣",dz="fi",hz="◼",pz="▪",gz="fj",vz="♭",mz="fl",yz="▱",bz="ƒ",wz="𝔽",xz="𝕗",_z="∀",Sz="∀",kz="⋔",Tz="⫙",Cz="ℱ",Ez="⨍",Az="½",Lz="⅓",Mz="¼",Nz="⅕",$z="⅙",Oz="⅛",Rz="⅔",Pz="⅖",Iz="¾",Dz="⅗",zz="⅜",Fz="⅘",Hz="⅚",Bz="⅝",Wz="⅞",qz="⁄",Uz="⌢",jz="𝒻",Vz="ℱ",Gz="ǵ",Kz="Γ",Xz="γ",Yz="Ϝ",Zz="ϝ",Jz="⪆",Qz="Ğ",eF="ğ",tF="Ģ",nF="Ĝ",rF="ĝ",iF="Г",oF="г",sF="Ġ",lF="ġ",aF="≥",cF="≧",uF="⪌",fF="⋛",dF="≥",hF="≧",pF="⩾",gF="⪩",vF="⩾",mF="⪀",yF="⪂",bF="⪄",wF="⋛︀",xF="⪔",_F="𝔊",SF="𝔤",kF="≫",TF="⋙",CF="⋙",EF="ℷ",AF="Ѓ",LF="ѓ",MF="⪥",NF="≷",$F="⪒",OF="⪤",RF="⪊",PF="⪊",IF="⪈",DF="≩",zF="⪈",FF="≩",HF="⋧",BF="𝔾",WF="𝕘",qF="`",UF="≥",jF="⋛",VF="≧",GF="⪢",KF="≷",XF="⩾",YF="≳",ZF="𝒢",JF="ℊ",QF="≳",eH="⪎",tH="⪐",nH="⪧",rH="⩺",iH=">",oH=">",sH="≫",lH="⋗",aH="⦕",cH="⩼",uH="⪆",fH="⥸",dH="⋗",hH="⋛",pH="⪌",gH="≷",vH="≳",mH="≩︀",yH="≩︀",bH="ˇ",wH=" ",xH="½",_H="ℋ",SH="Ъ",kH="ъ",TH="⥈",CH="↔",EH="⇔",AH="↭",LH="^",MH="ℏ",NH="Ĥ",$H="ĥ",OH="♥",RH="♥",PH="…",IH="⊹",DH="𝔥",zH="ℌ",FH="ℋ",HH="⤥",BH="⤦",WH="⇿",qH="∻",UH="↩",jH="↪",VH="𝕙",GH="ℍ",KH="―",XH="─",YH="𝒽",ZH="ℋ",JH="ℏ",QH="Ħ",eB="ħ",tB="≎",nB="≏",rB="⁃",iB="‐",oB="Í",sB="í",lB="⁣",aB="Î",cB="î",uB="И",fB="и",dB="İ",hB="Е",pB="е",gB="¡",vB="⇔",mB="𝔦",yB="ℑ",bB="Ì",wB="ì",xB="ⅈ",_B="⨌",SB="∭",kB="⧜",TB="℩",CB="IJ",EB="ij",AB="Ī",LB="ī",MB="ℑ",NB="ⅈ",$B="ℐ",OB="ℑ",RB="ı",PB="ℑ",IB="⊷",DB="Ƶ",zB="⇒",FB="℅",HB="∞",BB="⧝",WB="ı",qB="⊺",UB="∫",jB="∬",VB="ℤ",GB="∫",KB="⊺",XB="⋂",YB="⨗",ZB="⨼",JB="⁣",QB="⁢",e3="Ё",t3="ё",n3="Į",r3="į",i3="𝕀",o3="𝕚",s3="Ι",l3="ι",a3="⨼",c3="¿",u3="𝒾",f3="ℐ",d3="∈",h3="⋵",p3="⋹",g3="⋴",v3="⋳",m3="∈",y3="⁢",b3="Ĩ",w3="ĩ",x3="І",_3="і",S3="Ï",k3="ï",T3="Ĵ",C3="ĵ",E3="Й",A3="й",L3="𝔍",M3="𝔧",N3="ȷ",$3="𝕁",O3="𝕛",R3="𝒥",P3="𝒿",I3="Ј",D3="ј",z3="Є",F3="є",H3="Κ",B3="κ",W3="ϰ",q3="Ķ",U3="ķ",j3="К",V3="к",G3="𝔎",K3="𝔨",X3="ĸ",Y3="Х",Z3="х",J3="Ќ",Q3="ќ",e5="𝕂",t5="𝕜",n5="𝒦",r5="𝓀",i5="⇚",o5="Ĺ",s5="ĺ",l5="⦴",a5="ℒ",c5="Λ",u5="λ",f5="⟨",d5="⟪",h5="⦑",p5="⟨",g5="⪅",v5="ℒ",m5="«",y5="⇤",b5="⤟",w5="←",x5="↞",_5="⇐",S5="⤝",k5="↩",T5="↫",C5="⤹",E5="⥳",A5="↢",L5="⤙",M5="⤛",N5="⪫",$5="⪭",O5="⪭︀",R5="⤌",P5="⤎",I5="❲",D5="{",z5="[",F5="⦋",H5="⦏",B5="⦍",W5="Ľ",q5="ľ",U5="Ļ",j5="ļ",V5="⌈",G5="{",K5="Л",X5="л",Y5="⤶",Z5="“",J5="„",Q5="⥧",e8="⥋",t8="↲",n8="≤",r8="≦",i8="⟨",o8="⇤",s8="←",l8="←",a8="⇐",c8="⇆",u8="↢",f8="⌈",d8="⟦",h8="⥡",p8="⥙",g8="⇃",v8="⌊",m8="↽",y8="↼",b8="⇇",w8="↔",x8="↔",_8="⇔",S8="⇆",k8="⇋",T8="↭",C8="⥎",E8="↤",A8="⊣",L8="⥚",M8="⋋",N8="⧏",$8="⊲",O8="⊴",R8="⥑",P8="⥠",I8="⥘",D8="↿",z8="⥒",F8="↼",H8="⪋",B8="⋚",W8="≤",q8="≦",U8="⩽",j8="⪨",V8="⩽",G8="⩿",K8="⪁",X8="⪃",Y8="⋚︀",Z8="⪓",J8="⪅",Q8="⋖",eW="⋚",tW="⪋",nW="⋚",rW="≦",iW="≶",oW="≶",sW="⪡",lW="≲",aW="⩽",cW="≲",uW="⥼",fW="⌊",dW="𝔏",hW="𝔩",pW="≶",gW="⪑",vW="⥢",mW="↽",yW="↼",bW="⥪",wW="▄",xW="Љ",_W="љ",SW="⇇",kW="≪",TW="⋘",CW="⌞",EW="⇚",AW="⥫",LW="◺",MW="Ŀ",NW="ŀ",$W="⎰",OW="⎰",RW="⪉",PW="⪉",IW="⪇",DW="≨",zW="⪇",FW="≨",HW="⋦",BW="⟬",WW="⇽",qW="⟦",UW="⟵",jW="⟵",VW="⟸",GW="⟷",KW="⟷",XW="⟺",YW="⟼",ZW="⟶",JW="⟶",QW="⟹",e4="↫",t4="↬",n4="⦅",r4="𝕃",i4="𝕝",o4="⨭",s4="⨴",l4="∗",a4="_",c4="↙",u4="↘",f4="◊",d4="◊",h4="⧫",p4="(",g4="⦓",v4="⇆",m4="⌟",y4="⇋",b4="⥭",w4="‎",x4="⊿",_4="‹",S4="𝓁",k4="ℒ",T4="↰",C4="↰",E4="≲",A4="⪍",L4="⪏",M4="[",N4="‘",$4="‚",O4="Ł",R4="ł",P4="⪦",I4="⩹",D4="<",z4="<",F4="≪",H4="⋖",B4="⋋",W4="⋉",q4="⥶",U4="⩻",j4="◃",V4="⊴",G4="◂",K4="⦖",X4="⥊",Y4="⥦",Z4="≨︀",J4="≨︀",Q4="¯",eq="♂",tq="✠",nq="✠",rq="↦",iq="↦",oq="↧",sq="↤",lq="↥",aq="▮",cq="⨩",uq="М",fq="м",dq="—",hq="∺",pq="∡",gq=" ",vq="ℳ",mq="𝔐",yq="𝔪",bq="℧",wq="µ",xq="*",_q="⫰",Sq="∣",kq="·",Tq="⊟",Cq="−",Eq="∸",Aq="⨪",Lq="∓",Mq="⫛",Nq="…",$q="∓",Oq="⊧",Rq="𝕄",Pq="𝕞",Iq="∓",Dq="𝓂",zq="ℳ",Fq="∾",Hq="Μ",Bq="μ",Wq="⊸",qq="⊸",Uq="∇",jq="Ń",Vq="ń",Gq="∠⃒",Kq="≉",Xq="⩰̸",Yq="≋̸",Zq="ʼn",Jq="≉",Qq="♮",e6="ℕ",t6="♮",n6=" ",r6="≎̸",i6="≏̸",o6="⩃",s6="Ň",l6="ň",a6="Ņ",c6="ņ",u6="≇",f6="⩭̸",d6="⩂",h6="Н",p6="н",g6="–",v6="⤤",m6="↗",y6="⇗",b6="↗",w6="≠",x6="≐̸",_6="​",S6="​",k6="​",T6="​",C6="≢",E6="⤨",A6="≂̸",L6="≫",M6="≪",N6=`
20
+ `,$6="∄",O6="∄",R6="𝔑",P6="𝔫",I6="≧̸",D6="≱",z6="≱",F6="≧̸",H6="⩾̸",B6="⩾̸",W6="⋙̸",q6="≵",U6="≫⃒",j6="≯",V6="≯",G6="≫̸",K6="↮",X6="⇎",Y6="⫲",Z6="∋",J6="⋼",Q6="⋺",eU="∋",tU="Њ",nU="њ",rU="↚",iU="⇍",oU="‥",sU="≦̸",lU="≰",aU="↚",cU="⇍",uU="↮",fU="⇎",dU="≰",hU="≦̸",pU="⩽̸",gU="⩽̸",vU="≮",mU="⋘̸",yU="≴",bU="≪⃒",wU="≮",xU="⋪",_U="⋬",SU="≪̸",kU="∤",TU="⁠",CU=" ",EU="𝕟",AU="ℕ",LU="⫬",MU="¬",NU="≢",$U="≭",OU="∦",RU="∉",PU="≠",IU="≂̸",DU="∄",zU="≯",FU="≱",HU="≧̸",BU="≫̸",WU="≹",qU="⩾̸",UU="≵",jU="≎̸",VU="≏̸",GU="∉",KU="⋵̸",XU="⋹̸",YU="∉",ZU="⋷",JU="⋶",QU="⧏̸",ej="⋪",tj="⋬",nj="≮",rj="≰",ij="≸",oj="≪̸",sj="⩽̸",lj="≴",aj="⪢̸",cj="⪡̸",uj="∌",fj="∌",dj="⋾",hj="⋽",pj="⊀",gj="⪯̸",vj="⋠",mj="∌",yj="⧐̸",bj="⋫",wj="⋭",xj="⊏̸",_j="⋢",Sj="⊐̸",kj="⋣",Tj="⊂⃒",Cj="⊈",Ej="⊁",Aj="⪰̸",Lj="⋡",Mj="≿̸",Nj="⊃⃒",$j="⊉",Oj="≁",Rj="≄",Pj="≇",Ij="≉",Dj="∤",zj="∦",Fj="∦",Hj="⫽⃥",Bj="∂̸",Wj="⨔",qj="⊀",Uj="⋠",jj="⊀",Vj="⪯̸",Gj="⪯̸",Kj="⤳̸",Xj="↛",Yj="⇏",Zj="↝̸",Jj="↛",Qj="⇏",eV="⋫",tV="⋭",nV="⊁",rV="⋡",iV="⪰̸",oV="𝒩",sV="𝓃",lV="∤",aV="∦",cV="≁",uV="≄",fV="≄",dV="∤",hV="∦",pV="⋢",gV="⋣",vV="⊄",mV="⫅̸",yV="⊈",bV="⊂⃒",wV="⊈",xV="⫅̸",_V="⊁",SV="⪰̸",kV="⊅",TV="⫆̸",CV="⊉",EV="⊃⃒",AV="⊉",LV="⫆̸",MV="≹",NV="Ñ",$V="ñ",OV="≸",RV="⋪",PV="⋬",IV="⋫",DV="⋭",zV="Ν",FV="ν",HV="#",BV="№",WV=" ",qV="≍⃒",UV="⊬",jV="⊭",VV="⊮",GV="⊯",KV="≥⃒",XV=">⃒",YV="⤄",ZV="⧞",JV="⤂",QV="≤⃒",e9="<⃒",t9="⊴⃒",n9="⤃",r9="⊵⃒",i9="∼⃒",o9="⤣",s9="↖",l9="⇖",a9="↖",c9="⤧",u9="Ó",f9="ó",d9="⊛",h9="Ô",p9="ô",g9="⊚",v9="О",m9="о",y9="⊝",b9="Ő",w9="ő",x9="⨸",_9="⊙",S9="⦼",k9="Œ",T9="œ",C9="⦿",E9="𝔒",A9="𝔬",L9="˛",M9="Ò",N9="ò",$9="⧁",O9="⦵",R9="Ω",P9="∮",I9="↺",D9="⦾",z9="⦻",F9="‾",H9="⧀",B9="Ō",W9="ō",q9="Ω",U9="ω",j9="Ο",V9="ο",G9="⦶",K9="⊖",X9="𝕆",Y9="𝕠",Z9="⦷",J9="“",Q9="‘",eG="⦹",tG="⊕",nG="↻",rG="⩔",iG="∨",oG="⩝",sG="ℴ",lG="ℴ",aG="ª",cG="º",uG="⊶",fG="⩖",dG="⩗",hG="⩛",pG="Ⓢ",gG="𝒪",vG="ℴ",mG="Ø",yG="ø",bG="⊘",wG="Õ",xG="õ",_G="⨶",SG="⨷",kG="⊗",TG="Ö",CG="ö",EG="⌽",AG="‾",LG="⏞",MG="⎴",NG="⏜",$G="¶",OG="∥",RG="∥",PG="⫳",IG="⫽",DG="∂",zG="∂",FG="П",HG="п",BG="%",WG=".",qG="‰",UG="⊥",jG="‱",VG="𝔓",GG="𝔭",KG="Φ",XG="φ",YG="ϕ",ZG="ℳ",JG="☎",QG="Π",e7="π",t7="⋔",n7="ϖ",r7="ℏ",i7="ℎ",o7="ℏ",s7="⨣",l7="⊞",a7="⨢",c7="+",u7="∔",f7="⨥",d7="⩲",h7="±",p7="±",g7="⨦",v7="⨧",m7="±",y7="ℌ",b7="⨕",w7="𝕡",x7="ℙ",_7="£",S7="⪷",k7="⪻",T7="≺",C7="≼",E7="⪷",A7="≺",L7="≼",M7="≺",N7="⪯",$7="≼",O7="≾",R7="⪯",P7="⪹",I7="⪵",D7="⋨",z7="⪯",F7="⪳",H7="≾",B7="′",W7="″",q7="ℙ",U7="⪹",j7="⪵",V7="⋨",G7="∏",K7="∏",X7="⌮",Y7="⌒",Z7="⌓",J7="∝",Q7="∝",eK="∷",tK="∝",nK="≾",rK="⊰",iK="𝒫",oK="𝓅",sK="Ψ",lK="ψ",aK=" ",cK="𝔔",uK="𝔮",fK="⨌",dK="𝕢",hK="ℚ",pK="⁗",gK="𝒬",vK="𝓆",mK="ℍ",yK="⨖",bK="?",wK="≟",xK='"',_K='"',SK="⇛",kK="∽̱",TK="Ŕ",CK="ŕ",EK="√",AK="⦳",LK="⟩",MK="⟫",NK="⦒",$K="⦥",OK="⟩",RK="»",PK="⥵",IK="⇥",DK="⤠",zK="⤳",FK="→",HK="↠",BK="⇒",WK="⤞",qK="↪",UK="↬",jK="⥅",VK="⥴",GK="⤖",KK="↣",XK="↝",YK="⤚",ZK="⤜",JK="∶",QK="ℚ",eX="⤍",tX="⤏",nX="⤐",rX="❳",iX="}",oX="]",sX="⦌",lX="⦎",aX="⦐",cX="Ř",uX="ř",fX="Ŗ",dX="ŗ",hX="⌉",pX="}",gX="Р",vX="р",mX="⤷",yX="⥩",bX="”",wX="”",xX="↳",_X="ℜ",SX="ℛ",kX="ℜ",TX="ℝ",CX="ℜ",EX="▭",AX="®",LX="®",MX="∋",NX="⇋",$X="⥯",OX="⥽",RX="⌋",PX="𝔯",IX="ℜ",DX="⥤",zX="⇁",FX="⇀",HX="⥬",BX="Ρ",WX="ρ",qX="ϱ",UX="⟩",jX="⇥",VX="→",GX="→",KX="⇒",XX="⇄",YX="↣",ZX="⌉",JX="⟧",QX="⥝",eY="⥕",tY="⇂",nY="⌋",rY="⇁",iY="⇀",oY="⇄",sY="⇌",lY="⇉",aY="↝",cY="↦",uY="⊢",fY="⥛",dY="⋌",hY="⧐",pY="⊳",gY="⊵",vY="⥏",mY="⥜",yY="⥔",bY="↾",wY="⥓",xY="⇀",_Y="˚",SY="≓",kY="⇄",TY="⇌",CY="‏",EY="⎱",AY="⎱",LY="⫮",MY="⟭",NY="⇾",$Y="⟧",OY="⦆",RY="𝕣",PY="ℝ",IY="⨮",DY="⨵",zY="⥰",FY=")",HY="⦔",BY="⨒",WY="⇉",qY="⇛",UY="›",jY="𝓇",VY="ℛ",GY="↱",KY="↱",XY="]",YY="’",ZY="’",JY="⋌",QY="⋊",eZ="▹",tZ="⊵",nZ="▸",rZ="⧎",iZ="⧴",oZ="⥨",sZ="℞",lZ="Ś",aZ="ś",cZ="‚",uZ="⪸",fZ="Š",dZ="š",hZ="⪼",pZ="≻",gZ="≽",vZ="⪰",mZ="⪴",yZ="Ş",bZ="ş",wZ="Ŝ",xZ="ŝ",_Z="⪺",SZ="⪶",kZ="⋩",TZ="⨓",CZ="≿",EZ="С",AZ="с",LZ="⊡",MZ="⋅",NZ="⩦",$Z="⤥",OZ="↘",RZ="⇘",PZ="↘",IZ="§",DZ=";",zZ="⤩",FZ="∖",HZ="∖",BZ="✶",WZ="𝔖",qZ="𝔰",UZ="⌢",jZ="♯",VZ="Щ",GZ="щ",KZ="Ш",XZ="ш",YZ="↓",ZZ="←",JZ="∣",QZ="∥",eJ="→",tJ="↑",nJ="­",rJ="Σ",iJ="σ",oJ="ς",sJ="ς",lJ="∼",aJ="⩪",cJ="≃",uJ="≃",fJ="⪞",dJ="⪠",hJ="⪝",pJ="⪟",gJ="≆",vJ="⨤",mJ="⥲",yJ="←",bJ="∘",wJ="∖",xJ="⨳",_J="⧤",SJ="∣",kJ="⌣",TJ="⪪",CJ="⪬",EJ="⪬︀",AJ="Ь",LJ="ь",MJ="⌿",NJ="⧄",$J="/",OJ="𝕊",RJ="𝕤",PJ="♠",IJ="♠",DJ="∥",zJ="⊓",FJ="⊓︀",HJ="⊔",BJ="⊔︀",WJ="√",qJ="⊏",UJ="⊑",jJ="⊏",VJ="⊑",GJ="⊐",KJ="⊒",XJ="⊐",YJ="⊒",ZJ="□",JJ="□",QJ="⊓",eQ="⊏",tQ="⊑",nQ="⊐",rQ="⊒",iQ="⊔",oQ="▪",sQ="□",lQ="▪",aQ="→",cQ="𝒮",uQ="𝓈",fQ="∖",dQ="⌣",hQ="⋆",pQ="⋆",gQ="☆",vQ="★",mQ="ϵ",yQ="ϕ",bQ="¯",wQ="⊂",xQ="⋐",_Q="⪽",SQ="⫅",kQ="⊆",TQ="⫃",CQ="⫁",EQ="⫋",AQ="⊊",LQ="⪿",MQ="⥹",NQ="⊂",$Q="⋐",OQ="⊆",RQ="⫅",PQ="⊆",IQ="⊊",DQ="⫋",zQ="⫇",FQ="⫕",HQ="⫓",BQ="⪸",WQ="≻",qQ="≽",UQ="≻",jQ="⪰",VQ="≽",GQ="≿",KQ="⪰",XQ="⪺",YQ="⪶",ZQ="⋩",JQ="≿",QQ="∋",eee="∑",tee="∑",nee="♪",ree="¹",iee="²",oee="³",see="⊃",lee="⋑",aee="⪾",cee="⫘",uee="⫆",fee="⊇",dee="⫄",hee="⊃",pee="⊇",gee="⟉",vee="⫗",mee="⥻",yee="⫂",bee="⫌",wee="⊋",xee="⫀",_ee="⊃",See="⋑",kee="⊇",Tee="⫆",Cee="⊋",Eee="⫌",Aee="⫈",Lee="⫔",Mee="⫖",Nee="⤦",$ee="↙",Oee="⇙",Ree="↙",Pee="⤪",Iee="ß",Dee=" ",zee="⌖",Fee="Τ",Hee="τ",Bee="⎴",Wee="Ť",qee="ť",Uee="Ţ",jee="ţ",Vee="Т",Gee="т",Kee="⃛",Xee="⌕",Yee="𝔗",Zee="𝔱",Jee="∴",Qee="∴",ete="∴",tte="Θ",nte="θ",rte="ϑ",ite="ϑ",ote="≈",ste="∼",lte="  ",ate=" ",cte=" ",ute="≈",fte="∼",dte="Þ",hte="þ",pte="˜",gte="∼",vte="≃",mte="≅",yte="≈",bte="⨱",wte="⊠",xte="×",_te="⨰",Ste="∭",kte="⤨",Tte="⌶",Cte="⫱",Ete="⊤",Ate="𝕋",Lte="𝕥",Mte="⫚",Nte="⤩",$te="‴",Ote="™",Rte="™",Pte="▵",Ite="▿",Dte="◃",zte="⊴",Fte="≜",Hte="▹",Bte="⊵",Wte="◬",qte="≜",Ute="⨺",jte="⃛",Vte="⨹",Gte="⧍",Kte="⨻",Xte="⏢",Yte="𝒯",Zte="𝓉",Jte="Ц",Qte="ц",ene="Ћ",tne="ћ",nne="Ŧ",rne="ŧ",ine="≬",one="↞",sne="↠",lne="Ú",ane="ú",cne="↑",une="↟",fne="⇑",dne="⥉",hne="Ў",pne="ў",gne="Ŭ",vne="ŭ",mne="Û",yne="û",bne="У",wne="у",xne="⇅",_ne="Ű",Sne="ű",kne="⥮",Tne="⥾",Cne="𝔘",Ene="𝔲",Ane="Ù",Lne="ù",Mne="⥣",Nne="↿",$ne="↾",One="▀",Rne="⌜",Pne="⌜",Ine="⌏",Dne="◸",zne="Ū",Fne="ū",Hne="¨",Bne="_",Wne="⏟",qne="⎵",Une="⏝",jne="⋃",Vne="⊎",Gne="Ų",Kne="ų",Xne="𝕌",Yne="𝕦",Zne="⤒",Jne="↑",Qne="↑",ere="⇑",tre="⇅",nre="↕",rre="↕",ire="⇕",ore="⥮",sre="↿",lre="↾",are="⊎",cre="↖",ure="↗",fre="υ",dre="ϒ",hre="ϒ",pre="Υ",gre="υ",vre="↥",mre="⊥",yre="⇈",bre="⌝",wre="⌝",xre="⌎",_re="Ů",Sre="ů",kre="◹",Tre="𝒰",Cre="𝓊",Ere="⋰",Are="Ũ",Lre="ũ",Mre="▵",Nre="▴",$re="⇈",Ore="Ü",Rre="ü",Pre="⦧",Ire="⦜",Dre="ϵ",zre="ϰ",Fre="∅",Hre="ϕ",Bre="ϖ",Wre="∝",qre="↕",Ure="⇕",jre="ϱ",Vre="ς",Gre="⊊︀",Kre="⫋︀",Xre="⊋︀",Yre="⫌︀",Zre="ϑ",Jre="⊲",Qre="⊳",eie="⫨",tie="⫫",nie="⫩",rie="В",iie="в",oie="⊢",sie="⊨",lie="⊩",aie="⊫",cie="⫦",uie="⊻",fie="∨",die="⋁",hie="≚",pie="⋮",gie="|",vie="‖",mie="|",yie="‖",bie="∣",wie="|",xie="❘",_ie="≀",Sie=" ",kie="𝔙",Tie="𝔳",Cie="⊲",Eie="⊂⃒",Aie="⊃⃒",Lie="𝕍",Mie="𝕧",Nie="∝",$ie="⊳",Oie="𝒱",Rie="𝓋",Pie="⫋︀",Iie="⊊︀",Die="⫌︀",zie="⊋︀",Fie="⊪",Hie="⦚",Bie="Ŵ",Wie="ŵ",qie="⩟",Uie="∧",jie="⋀",Vie="≙",Gie="℘",Kie="𝔚",Xie="𝔴",Yie="𝕎",Zie="𝕨",Jie="℘",Qie="≀",eoe="≀",toe="𝒲",noe="𝓌",roe="⋂",ioe="◯",ooe="⋃",soe="▽",loe="𝔛",aoe="𝔵",coe="⟷",uoe="⟺",foe="Ξ",doe="ξ",hoe="⟵",poe="⟸",goe="⟼",voe="⋻",moe="⨀",yoe="𝕏",boe="𝕩",woe="⨁",xoe="⨂",_oe="⟶",Soe="⟹",koe="𝒳",Toe="𝓍",Coe="⨆",Eoe="⨄",Aoe="△",Loe="⋁",Moe="⋀",Noe="Ý",$oe="ý",Ooe="Я",Roe="я",Poe="Ŷ",Ioe="ŷ",Doe="Ы",zoe="ы",Foe="¥",Hoe="𝔜",Boe="𝔶",Woe="Ї",qoe="ї",Uoe="𝕐",joe="𝕪",Voe="𝒴",Goe="𝓎",Koe="Ю",Xoe="ю",Yoe="ÿ",Zoe="Ÿ",Joe="Ź",Qoe="ź",ese="Ž",tse="ž",nse="З",rse="з",ise="Ż",ose="ż",sse="ℨ",lse="​",ase="Ζ",cse="ζ",use="𝔷",fse="ℨ",dse="Ж",hse="ж",pse="⇝",gse="𝕫",vse="ℤ",mse="𝒵",yse="𝓏",bse="‍",wse="‌",Lw={Aacute:iL,aacute:oL,Abreve:sL,abreve:lL,ac:aL,acd:cL,acE:uL,Acirc:fL,acirc:dL,acute:hL,Acy:pL,acy:gL,AElig:vL,aelig:mL,af:yL,Afr:bL,afr:wL,Agrave:xL,agrave:_L,alefsym:SL,aleph:kL,Alpha:TL,alpha:CL,Amacr:EL,amacr:AL,amalg:LL,amp:ML,AMP:NL,andand:$L,And:OL,and:RL,andd:PL,andslope:IL,andv:DL,ang:zL,ange:FL,angle:HL,angmsdaa:BL,angmsdab:WL,angmsdac:qL,angmsdad:UL,angmsdae:jL,angmsdaf:VL,angmsdag:GL,angmsdah:KL,angmsd:XL,angrt:YL,angrtvb:ZL,angrtvbd:JL,angsph:QL,angst:eM,angzarr:tM,Aogon:nM,aogon:rM,Aopf:iM,aopf:oM,apacir:sM,ap:lM,apE:aM,ape:cM,apid:uM,apos:fM,ApplyFunction:dM,approx:hM,approxeq:pM,Aring:gM,aring:vM,Ascr:mM,ascr:yM,Assign:bM,ast:wM,asymp:xM,asympeq:_M,Atilde:SM,atilde:kM,Auml:TM,auml:CM,awconint:EM,awint:AM,backcong:LM,backepsilon:MM,backprime:NM,backsim:$M,backsimeq:OM,Backslash:RM,Barv:PM,barvee:IM,barwed:DM,Barwed:zM,barwedge:FM,bbrk:HM,bbrktbrk:BM,bcong:WM,Bcy:qM,bcy:UM,bdquo:jM,becaus:VM,because:GM,Because:KM,bemptyv:XM,bepsi:YM,bernou:ZM,Bernoullis:JM,Beta:QM,beta:eN,beth:tN,between:nN,Bfr:rN,bfr:iN,bigcap:oN,bigcirc:sN,bigcup:lN,bigodot:aN,bigoplus:cN,bigotimes:uN,bigsqcup:fN,bigstar:dN,bigtriangledown:hN,bigtriangleup:pN,biguplus:gN,bigvee:vN,bigwedge:mN,bkarow:yN,blacklozenge:bN,blacksquare:wN,blacktriangle:xN,blacktriangledown:_N,blacktriangleleft:SN,blacktriangleright:kN,blank:TN,blk12:CN,blk14:EN,blk34:AN,block:LN,bne:MN,bnequiv:NN,bNot:$N,bnot:ON,Bopf:RN,bopf:PN,bot:IN,bottom:DN,bowtie:zN,boxbox:FN,boxdl:HN,boxdL:BN,boxDl:WN,boxDL:qN,boxdr:UN,boxdR:jN,boxDr:VN,boxDR:GN,boxh:KN,boxH:XN,boxhd:YN,boxHd:ZN,boxhD:JN,boxHD:QN,boxhu:e$,boxHu:t$,boxhU:n$,boxHU:r$,boxminus:i$,boxplus:o$,boxtimes:s$,boxul:l$,boxuL:a$,boxUl:c$,boxUL:u$,boxur:f$,boxuR:d$,boxUr:h$,boxUR:p$,boxv:g$,boxV:v$,boxvh:m$,boxvH:y$,boxVh:b$,boxVH:w$,boxvl:x$,boxvL:_$,boxVl:S$,boxVL:k$,boxvr:T$,boxvR:C$,boxVr:E$,boxVR:A$,bprime:L$,breve:M$,Breve:N$,brvbar:$$,bscr:O$,Bscr:R$,bsemi:P$,bsim:I$,bsime:D$,bsolb:z$,bsol:F$,bsolhsub:H$,bull:B$,bullet:W$,bump:q$,bumpE:U$,bumpe:j$,Bumpeq:V$,bumpeq:G$,Cacute:K$,cacute:X$,capand:Y$,capbrcup:Z$,capcap:J$,cap:Q$,Cap:eO,capcup:tO,capdot:nO,CapitalDifferentialD:rO,caps:iO,caret:oO,caron:sO,Cayleys:lO,ccaps:aO,Ccaron:cO,ccaron:uO,Ccedil:fO,ccedil:dO,Ccirc:hO,ccirc:pO,Cconint:gO,ccups:vO,ccupssm:mO,Cdot:yO,cdot:bO,cedil:wO,Cedilla:xO,cemptyv:_O,cent:SO,centerdot:kO,CenterDot:TO,cfr:CO,Cfr:EO,CHcy:AO,chcy:LO,check:MO,checkmark:NO,Chi:$O,chi:OO,circ:RO,circeq:PO,circlearrowleft:IO,circlearrowright:DO,circledast:zO,circledcirc:FO,circleddash:HO,CircleDot:BO,circledR:WO,circledS:qO,CircleMinus:UO,CirclePlus:jO,CircleTimes:VO,cir:GO,cirE:KO,cire:XO,cirfnint:YO,cirmid:ZO,cirscir:JO,ClockwiseContourIntegral:QO,CloseCurlyDoubleQuote:eR,CloseCurlyQuote:tR,clubs:nR,clubsuit:rR,colon:iR,Colon:oR,Colone:sR,colone:lR,coloneq:aR,comma:cR,commat:uR,comp:fR,compfn:dR,complement:hR,complexes:pR,cong:gR,congdot:vR,Congruent:mR,conint:yR,Conint:bR,ContourIntegral:wR,copf:xR,Copf:_R,coprod:SR,Coproduct:kR,copy:TR,COPY:CR,copysr:ER,CounterClockwiseContourIntegral:AR,crarr:LR,cross:MR,Cross:NR,Cscr:$R,cscr:OR,csub:RR,csube:PR,csup:IR,csupe:DR,ctdot:zR,cudarrl:FR,cudarrr:HR,cuepr:BR,cuesc:WR,cularr:qR,cularrp:UR,cupbrcap:jR,cupcap:VR,CupCap:GR,cup:KR,Cup:XR,cupcup:YR,cupdot:ZR,cupor:JR,cups:QR,curarr:eP,curarrm:tP,curlyeqprec:nP,curlyeqsucc:rP,curlyvee:iP,curlywedge:oP,curren:sP,curvearrowleft:lP,curvearrowright:aP,cuvee:cP,cuwed:uP,cwconint:fP,cwint:dP,cylcty:hP,dagger:pP,Dagger:gP,daleth:vP,darr:mP,Darr:yP,dArr:bP,dash:wP,Dashv:xP,dashv:_P,dbkarow:SP,dblac:kP,Dcaron:TP,dcaron:CP,Dcy:EP,dcy:AP,ddagger:LP,ddarr:MP,DD:NP,dd:$P,DDotrahd:OP,ddotseq:RP,deg:PP,Del:IP,Delta:DP,delta:zP,demptyv:FP,dfisht:HP,Dfr:BP,dfr:WP,dHar:qP,dharl:UP,dharr:jP,DiacriticalAcute:VP,DiacriticalDot:GP,DiacriticalDoubleAcute:KP,DiacriticalGrave:XP,DiacriticalTilde:YP,diam:ZP,diamond:JP,Diamond:QP,diamondsuit:e2,diams:t2,die:n2,DifferentialD:r2,digamma:i2,disin:o2,div:s2,divide:l2,divideontimes:a2,divonx:c2,DJcy:u2,djcy:f2,dlcorn:d2,dlcrop:h2,dollar:p2,Dopf:g2,dopf:v2,Dot:m2,dot:y2,DotDot:b2,doteq:w2,doteqdot:x2,DotEqual:_2,dotminus:S2,dotplus:k2,dotsquare:T2,doublebarwedge:C2,DoubleContourIntegral:E2,DoubleDot:A2,DoubleDownArrow:L2,DoubleLeftArrow:M2,DoubleLeftRightArrow:N2,DoubleLeftTee:$2,DoubleLongLeftArrow:O2,DoubleLongLeftRightArrow:R2,DoubleLongRightArrow:P2,DoubleRightArrow:I2,DoubleRightTee:D2,DoubleUpArrow:z2,DoubleUpDownArrow:F2,DoubleVerticalBar:H2,DownArrowBar:B2,downarrow:W2,DownArrow:q2,Downarrow:U2,DownArrowUpArrow:j2,DownBreve:V2,downdownarrows:G2,downharpoonleft:K2,downharpoonright:X2,DownLeftRightVector:Y2,DownLeftTeeVector:Z2,DownLeftVectorBar:J2,DownLeftVector:Q2,DownRightTeeVector:eI,DownRightVectorBar:tI,DownRightVector:nI,DownTeeArrow:rI,DownTee:iI,drbkarow:oI,drcorn:sI,drcrop:lI,Dscr:aI,dscr:cI,DScy:uI,dscy:fI,dsol:dI,Dstrok:hI,dstrok:pI,dtdot:gI,dtri:vI,dtrif:mI,duarr:yI,duhar:bI,dwangle:wI,DZcy:xI,dzcy:_I,dzigrarr:SI,Eacute:kI,eacute:TI,easter:CI,Ecaron:EI,ecaron:AI,Ecirc:LI,ecirc:MI,ecir:NI,ecolon:$I,Ecy:OI,ecy:RI,eDDot:PI,Edot:II,edot:DI,eDot:zI,ee:FI,efDot:HI,Efr:BI,efr:WI,eg:qI,Egrave:UI,egrave:jI,egs:VI,egsdot:GI,el:KI,Element:XI,elinters:YI,ell:ZI,els:JI,elsdot:QI,Emacr:eD,emacr:tD,empty:nD,emptyset:rD,EmptySmallSquare:iD,emptyv:oD,EmptyVerySmallSquare:sD,emsp13:lD,emsp14:aD,emsp:cD,ENG:uD,eng:fD,ensp:dD,Eogon:hD,eogon:pD,Eopf:gD,eopf:vD,epar:mD,eparsl:yD,eplus:bD,epsi:wD,Epsilon:xD,epsilon:_D,epsiv:SD,eqcirc:kD,eqcolon:TD,eqsim:CD,eqslantgtr:ED,eqslantless:AD,Equal:LD,equals:MD,EqualTilde:ND,equest:$D,Equilibrium:OD,equiv:RD,equivDD:PD,eqvparsl:ID,erarr:DD,erDot:zD,escr:FD,Escr:HD,esdot:BD,Esim:WD,esim:qD,Eta:UD,eta:jD,ETH:VD,eth:GD,Euml:KD,euml:XD,euro:YD,excl:ZD,exist:JD,Exists:QD,expectation:ez,exponentiale:tz,ExponentialE:nz,fallingdotseq:rz,Fcy:iz,fcy:oz,female:sz,ffilig:lz,fflig:az,ffllig:cz,Ffr:uz,ffr:fz,filig:dz,FilledSmallSquare:hz,FilledVerySmallSquare:pz,fjlig:gz,flat:vz,fllig:mz,fltns:yz,fnof:bz,Fopf:wz,fopf:xz,forall:_z,ForAll:Sz,fork:kz,forkv:Tz,Fouriertrf:Cz,fpartint:Ez,frac12:Az,frac13:Lz,frac14:Mz,frac15:Nz,frac16:$z,frac18:Oz,frac23:Rz,frac25:Pz,frac34:Iz,frac35:Dz,frac38:zz,frac45:Fz,frac56:Hz,frac58:Bz,frac78:Wz,frasl:qz,frown:Uz,fscr:jz,Fscr:Vz,gacute:Gz,Gamma:Kz,gamma:Xz,Gammad:Yz,gammad:Zz,gap:Jz,Gbreve:Qz,gbreve:eF,Gcedil:tF,Gcirc:nF,gcirc:rF,Gcy:iF,gcy:oF,Gdot:sF,gdot:lF,ge:aF,gE:cF,gEl:uF,gel:fF,geq:dF,geqq:hF,geqslant:pF,gescc:gF,ges:vF,gesdot:mF,gesdoto:yF,gesdotol:bF,gesl:wF,gesles:xF,Gfr:_F,gfr:SF,gg:kF,Gg:TF,ggg:CF,gimel:EF,GJcy:AF,gjcy:LF,gla:MF,gl:NF,glE:$F,glj:OF,gnap:RF,gnapprox:PF,gne:IF,gnE:DF,gneq:zF,gneqq:FF,gnsim:HF,Gopf:BF,gopf:WF,grave:qF,GreaterEqual:UF,GreaterEqualLess:jF,GreaterFullEqual:VF,GreaterGreater:GF,GreaterLess:KF,GreaterSlantEqual:XF,GreaterTilde:YF,Gscr:ZF,gscr:JF,gsim:QF,gsime:eH,gsiml:tH,gtcc:nH,gtcir:rH,gt:iH,GT:oH,Gt:sH,gtdot:lH,gtlPar:aH,gtquest:cH,gtrapprox:uH,gtrarr:fH,gtrdot:dH,gtreqless:hH,gtreqqless:pH,gtrless:gH,gtrsim:vH,gvertneqq:mH,gvnE:yH,Hacek:bH,hairsp:wH,half:xH,hamilt:_H,HARDcy:SH,hardcy:kH,harrcir:TH,harr:CH,hArr:EH,harrw:AH,Hat:LH,hbar:MH,Hcirc:NH,hcirc:$H,hearts:OH,heartsuit:RH,hellip:PH,hercon:IH,hfr:DH,Hfr:zH,HilbertSpace:FH,hksearow:HH,hkswarow:BH,hoarr:WH,homtht:qH,hookleftarrow:UH,hookrightarrow:jH,hopf:VH,Hopf:GH,horbar:KH,HorizontalLine:XH,hscr:YH,Hscr:ZH,hslash:JH,Hstrok:QH,hstrok:eB,HumpDownHump:tB,HumpEqual:nB,hybull:rB,hyphen:iB,Iacute:oB,iacute:sB,ic:lB,Icirc:aB,icirc:cB,Icy:uB,icy:fB,Idot:dB,IEcy:hB,iecy:pB,iexcl:gB,iff:vB,ifr:mB,Ifr:yB,Igrave:bB,igrave:wB,ii:xB,iiiint:_B,iiint:SB,iinfin:kB,iiota:TB,IJlig:CB,ijlig:EB,Imacr:AB,imacr:LB,image:MB,ImaginaryI:NB,imagline:$B,imagpart:OB,imath:RB,Im:PB,imof:IB,imped:DB,Implies:zB,incare:FB,in:"∈",infin:HB,infintie:BB,inodot:WB,intcal:qB,int:UB,Int:jB,integers:VB,Integral:GB,intercal:KB,Intersection:XB,intlarhk:YB,intprod:ZB,InvisibleComma:JB,InvisibleTimes:QB,IOcy:e3,iocy:t3,Iogon:n3,iogon:r3,Iopf:i3,iopf:o3,Iota:s3,iota:l3,iprod:a3,iquest:c3,iscr:u3,Iscr:f3,isin:d3,isindot:h3,isinE:p3,isins:g3,isinsv:v3,isinv:m3,it:y3,Itilde:b3,itilde:w3,Iukcy:x3,iukcy:_3,Iuml:S3,iuml:k3,Jcirc:T3,jcirc:C3,Jcy:E3,jcy:A3,Jfr:L3,jfr:M3,jmath:N3,Jopf:$3,jopf:O3,Jscr:R3,jscr:P3,Jsercy:I3,jsercy:D3,Jukcy:z3,jukcy:F3,Kappa:H3,kappa:B3,kappav:W3,Kcedil:q3,kcedil:U3,Kcy:j3,kcy:V3,Kfr:G3,kfr:K3,kgreen:X3,KHcy:Y3,khcy:Z3,KJcy:J3,kjcy:Q3,Kopf:e5,kopf:t5,Kscr:n5,kscr:r5,lAarr:i5,Lacute:o5,lacute:s5,laemptyv:l5,lagran:a5,Lambda:c5,lambda:u5,lang:f5,Lang:d5,langd:h5,langle:p5,lap:g5,Laplacetrf:v5,laquo:m5,larrb:y5,larrbfs:b5,larr:w5,Larr:x5,lArr:_5,larrfs:S5,larrhk:k5,larrlp:T5,larrpl:C5,larrsim:E5,larrtl:A5,latail:L5,lAtail:M5,lat:N5,late:$5,lates:O5,lbarr:R5,lBarr:P5,lbbrk:I5,lbrace:D5,lbrack:z5,lbrke:F5,lbrksld:H5,lbrkslu:B5,Lcaron:W5,lcaron:q5,Lcedil:U5,lcedil:j5,lceil:V5,lcub:G5,Lcy:K5,lcy:X5,ldca:Y5,ldquo:Z5,ldquor:J5,ldrdhar:Q5,ldrushar:e8,ldsh:t8,le:n8,lE:r8,LeftAngleBracket:i8,LeftArrowBar:o8,leftarrow:s8,LeftArrow:l8,Leftarrow:a8,LeftArrowRightArrow:c8,leftarrowtail:u8,LeftCeiling:f8,LeftDoubleBracket:d8,LeftDownTeeVector:h8,LeftDownVectorBar:p8,LeftDownVector:g8,LeftFloor:v8,leftharpoondown:m8,leftharpoonup:y8,leftleftarrows:b8,leftrightarrow:w8,LeftRightArrow:x8,Leftrightarrow:_8,leftrightarrows:S8,leftrightharpoons:k8,leftrightsquigarrow:T8,LeftRightVector:C8,LeftTeeArrow:E8,LeftTee:A8,LeftTeeVector:L8,leftthreetimes:M8,LeftTriangleBar:N8,LeftTriangle:$8,LeftTriangleEqual:O8,LeftUpDownVector:R8,LeftUpTeeVector:P8,LeftUpVectorBar:I8,LeftUpVector:D8,LeftVectorBar:z8,LeftVector:F8,lEg:H8,leg:B8,leq:W8,leqq:q8,leqslant:U8,lescc:j8,les:V8,lesdot:G8,lesdoto:K8,lesdotor:X8,lesg:Y8,lesges:Z8,lessapprox:J8,lessdot:Q8,lesseqgtr:eW,lesseqqgtr:tW,LessEqualGreater:nW,LessFullEqual:rW,LessGreater:iW,lessgtr:oW,LessLess:sW,lesssim:lW,LessSlantEqual:aW,LessTilde:cW,lfisht:uW,lfloor:fW,Lfr:dW,lfr:hW,lg:pW,lgE:gW,lHar:vW,lhard:mW,lharu:yW,lharul:bW,lhblk:wW,LJcy:xW,ljcy:_W,llarr:SW,ll:kW,Ll:TW,llcorner:CW,Lleftarrow:EW,llhard:AW,lltri:LW,Lmidot:MW,lmidot:NW,lmoustache:$W,lmoust:OW,lnap:RW,lnapprox:PW,lne:IW,lnE:DW,lneq:zW,lneqq:FW,lnsim:HW,loang:BW,loarr:WW,lobrk:qW,longleftarrow:UW,LongLeftArrow:jW,Longleftarrow:VW,longleftrightarrow:GW,LongLeftRightArrow:KW,Longleftrightarrow:XW,longmapsto:YW,longrightarrow:ZW,LongRightArrow:JW,Longrightarrow:QW,looparrowleft:e4,looparrowright:t4,lopar:n4,Lopf:r4,lopf:i4,loplus:o4,lotimes:s4,lowast:l4,lowbar:a4,LowerLeftArrow:c4,LowerRightArrow:u4,loz:f4,lozenge:d4,lozf:h4,lpar:p4,lparlt:g4,lrarr:v4,lrcorner:m4,lrhar:y4,lrhard:b4,lrm:w4,lrtri:x4,lsaquo:_4,lscr:S4,Lscr:k4,lsh:T4,Lsh:C4,lsim:E4,lsime:A4,lsimg:L4,lsqb:M4,lsquo:N4,lsquor:$4,Lstrok:O4,lstrok:R4,ltcc:P4,ltcir:I4,lt:D4,LT:z4,Lt:F4,ltdot:H4,lthree:B4,ltimes:W4,ltlarr:q4,ltquest:U4,ltri:j4,ltrie:V4,ltrif:G4,ltrPar:K4,lurdshar:X4,luruhar:Y4,lvertneqq:Z4,lvnE:J4,macr:Q4,male:eq,malt:tq,maltese:nq,Map:"⤅",map:rq,mapsto:iq,mapstodown:oq,mapstoleft:sq,mapstoup:lq,marker:aq,mcomma:cq,Mcy:uq,mcy:fq,mdash:dq,mDDot:hq,measuredangle:pq,MediumSpace:gq,Mellintrf:vq,Mfr:mq,mfr:yq,mho:bq,micro:wq,midast:xq,midcir:_q,mid:Sq,middot:kq,minusb:Tq,minus:Cq,minusd:Eq,minusdu:Aq,MinusPlus:Lq,mlcp:Mq,mldr:Nq,mnplus:$q,models:Oq,Mopf:Rq,mopf:Pq,mp:Iq,mscr:Dq,Mscr:zq,mstpos:Fq,Mu:Hq,mu:Bq,multimap:Wq,mumap:qq,nabla:Uq,Nacute:jq,nacute:Vq,nang:Gq,nap:Kq,napE:Xq,napid:Yq,napos:Zq,napprox:Jq,natural:Qq,naturals:e6,natur:t6,nbsp:n6,nbump:r6,nbumpe:i6,ncap:o6,Ncaron:s6,ncaron:l6,Ncedil:a6,ncedil:c6,ncong:u6,ncongdot:f6,ncup:d6,Ncy:h6,ncy:p6,ndash:g6,nearhk:v6,nearr:m6,neArr:y6,nearrow:b6,ne:w6,nedot:x6,NegativeMediumSpace:_6,NegativeThickSpace:S6,NegativeThinSpace:k6,NegativeVeryThinSpace:T6,nequiv:C6,nesear:E6,nesim:A6,NestedGreaterGreater:L6,NestedLessLess:M6,NewLine:N6,nexist:$6,nexists:O6,Nfr:R6,nfr:P6,ngE:I6,nge:D6,ngeq:z6,ngeqq:F6,ngeqslant:H6,nges:B6,nGg:W6,ngsim:q6,nGt:U6,ngt:j6,ngtr:V6,nGtv:G6,nharr:K6,nhArr:X6,nhpar:Y6,ni:Z6,nis:J6,nisd:Q6,niv:eU,NJcy:tU,njcy:nU,nlarr:rU,nlArr:iU,nldr:oU,nlE:sU,nle:lU,nleftarrow:aU,nLeftarrow:cU,nleftrightarrow:uU,nLeftrightarrow:fU,nleq:dU,nleqq:hU,nleqslant:pU,nles:gU,nless:vU,nLl:mU,nlsim:yU,nLt:bU,nlt:wU,nltri:xU,nltrie:_U,nLtv:SU,nmid:kU,NoBreak:TU,NonBreakingSpace:CU,nopf:EU,Nopf:AU,Not:LU,not:MU,NotCongruent:NU,NotCupCap:$U,NotDoubleVerticalBar:OU,NotElement:RU,NotEqual:PU,NotEqualTilde:IU,NotExists:DU,NotGreater:zU,NotGreaterEqual:FU,NotGreaterFullEqual:HU,NotGreaterGreater:BU,NotGreaterLess:WU,NotGreaterSlantEqual:qU,NotGreaterTilde:UU,NotHumpDownHump:jU,NotHumpEqual:VU,notin:GU,notindot:KU,notinE:XU,notinva:YU,notinvb:ZU,notinvc:JU,NotLeftTriangleBar:QU,NotLeftTriangle:ej,NotLeftTriangleEqual:tj,NotLess:nj,NotLessEqual:rj,NotLessGreater:ij,NotLessLess:oj,NotLessSlantEqual:sj,NotLessTilde:lj,NotNestedGreaterGreater:aj,NotNestedLessLess:cj,notni:uj,notniva:fj,notnivb:dj,notnivc:hj,NotPrecedes:pj,NotPrecedesEqual:gj,NotPrecedesSlantEqual:vj,NotReverseElement:mj,NotRightTriangleBar:yj,NotRightTriangle:bj,NotRightTriangleEqual:wj,NotSquareSubset:xj,NotSquareSubsetEqual:_j,NotSquareSuperset:Sj,NotSquareSupersetEqual:kj,NotSubset:Tj,NotSubsetEqual:Cj,NotSucceeds:Ej,NotSucceedsEqual:Aj,NotSucceedsSlantEqual:Lj,NotSucceedsTilde:Mj,NotSuperset:Nj,NotSupersetEqual:$j,NotTilde:Oj,NotTildeEqual:Rj,NotTildeFullEqual:Pj,NotTildeTilde:Ij,NotVerticalBar:Dj,nparallel:zj,npar:Fj,nparsl:Hj,npart:Bj,npolint:Wj,npr:qj,nprcue:Uj,nprec:jj,npreceq:Vj,npre:Gj,nrarrc:Kj,nrarr:Xj,nrArr:Yj,nrarrw:Zj,nrightarrow:Jj,nRightarrow:Qj,nrtri:eV,nrtrie:tV,nsc:nV,nsccue:rV,nsce:iV,Nscr:oV,nscr:sV,nshortmid:lV,nshortparallel:aV,nsim:cV,nsime:uV,nsimeq:fV,nsmid:dV,nspar:hV,nsqsube:pV,nsqsupe:gV,nsub:vV,nsubE:mV,nsube:yV,nsubset:bV,nsubseteq:wV,nsubseteqq:xV,nsucc:_V,nsucceq:SV,nsup:kV,nsupE:TV,nsupe:CV,nsupset:EV,nsupseteq:AV,nsupseteqq:LV,ntgl:MV,Ntilde:NV,ntilde:$V,ntlg:OV,ntriangleleft:RV,ntrianglelefteq:PV,ntriangleright:IV,ntrianglerighteq:DV,Nu:zV,nu:FV,num:HV,numero:BV,numsp:WV,nvap:qV,nvdash:UV,nvDash:jV,nVdash:VV,nVDash:GV,nvge:KV,nvgt:XV,nvHarr:YV,nvinfin:ZV,nvlArr:JV,nvle:QV,nvlt:e9,nvltrie:t9,nvrArr:n9,nvrtrie:r9,nvsim:i9,nwarhk:o9,nwarr:s9,nwArr:l9,nwarrow:a9,nwnear:c9,Oacute:u9,oacute:f9,oast:d9,Ocirc:h9,ocirc:p9,ocir:g9,Ocy:v9,ocy:m9,odash:y9,Odblac:b9,odblac:w9,odiv:x9,odot:_9,odsold:S9,OElig:k9,oelig:T9,ofcir:C9,Ofr:E9,ofr:A9,ogon:L9,Ograve:M9,ograve:N9,ogt:$9,ohbar:O9,ohm:R9,oint:P9,olarr:I9,olcir:D9,olcross:z9,oline:F9,olt:H9,Omacr:B9,omacr:W9,Omega:q9,omega:U9,Omicron:j9,omicron:V9,omid:G9,ominus:K9,Oopf:X9,oopf:Y9,opar:Z9,OpenCurlyDoubleQuote:J9,OpenCurlyQuote:Q9,operp:eG,oplus:tG,orarr:nG,Or:rG,or:iG,ord:oG,order:sG,orderof:lG,ordf:aG,ordm:cG,origof:uG,oror:fG,orslope:dG,orv:hG,oS:pG,Oscr:gG,oscr:vG,Oslash:mG,oslash:yG,osol:bG,Otilde:wG,otilde:xG,otimesas:_G,Otimes:SG,otimes:kG,Ouml:TG,ouml:CG,ovbar:EG,OverBar:AG,OverBrace:LG,OverBracket:MG,OverParenthesis:NG,para:$G,parallel:OG,par:RG,parsim:PG,parsl:IG,part:DG,PartialD:zG,Pcy:FG,pcy:HG,percnt:BG,period:WG,permil:qG,perp:UG,pertenk:jG,Pfr:VG,pfr:GG,Phi:KG,phi:XG,phiv:YG,phmmat:ZG,phone:JG,Pi:QG,pi:e7,pitchfork:t7,piv:n7,planck:r7,planckh:i7,plankv:o7,plusacir:s7,plusb:l7,pluscir:a7,plus:c7,plusdo:u7,plusdu:f7,pluse:d7,PlusMinus:h7,plusmn:p7,plussim:g7,plustwo:v7,pm:m7,Poincareplane:y7,pointint:b7,popf:w7,Popf:x7,pound:_7,prap:S7,Pr:k7,pr:T7,prcue:C7,precapprox:E7,prec:A7,preccurlyeq:L7,Precedes:M7,PrecedesEqual:N7,PrecedesSlantEqual:$7,PrecedesTilde:O7,preceq:R7,precnapprox:P7,precneqq:I7,precnsim:D7,pre:z7,prE:F7,precsim:H7,prime:B7,Prime:W7,primes:q7,prnap:U7,prnE:j7,prnsim:V7,prod:G7,Product:K7,profalar:X7,profline:Y7,profsurf:Z7,prop:J7,Proportional:Q7,Proportion:eK,propto:tK,prsim:nK,prurel:rK,Pscr:iK,pscr:oK,Psi:sK,psi:lK,puncsp:aK,Qfr:cK,qfr:uK,qint:fK,qopf:dK,Qopf:hK,qprime:pK,Qscr:gK,qscr:vK,quaternions:mK,quatint:yK,quest:bK,questeq:wK,quot:xK,QUOT:_K,rAarr:SK,race:kK,Racute:TK,racute:CK,radic:EK,raemptyv:AK,rang:LK,Rang:MK,rangd:NK,range:$K,rangle:OK,raquo:RK,rarrap:PK,rarrb:IK,rarrbfs:DK,rarrc:zK,rarr:FK,Rarr:HK,rArr:BK,rarrfs:WK,rarrhk:qK,rarrlp:UK,rarrpl:jK,rarrsim:VK,Rarrtl:GK,rarrtl:KK,rarrw:XK,ratail:YK,rAtail:ZK,ratio:JK,rationals:QK,rbarr:eX,rBarr:tX,RBarr:nX,rbbrk:rX,rbrace:iX,rbrack:oX,rbrke:sX,rbrksld:lX,rbrkslu:aX,Rcaron:cX,rcaron:uX,Rcedil:fX,rcedil:dX,rceil:hX,rcub:pX,Rcy:gX,rcy:vX,rdca:mX,rdldhar:yX,rdquo:bX,rdquor:wX,rdsh:xX,real:_X,realine:SX,realpart:kX,reals:TX,Re:CX,rect:EX,reg:AX,REG:LX,ReverseElement:MX,ReverseEquilibrium:NX,ReverseUpEquilibrium:$X,rfisht:OX,rfloor:RX,rfr:PX,Rfr:IX,rHar:DX,rhard:zX,rharu:FX,rharul:HX,Rho:BX,rho:WX,rhov:qX,RightAngleBracket:UX,RightArrowBar:jX,rightarrow:VX,RightArrow:GX,Rightarrow:KX,RightArrowLeftArrow:XX,rightarrowtail:YX,RightCeiling:ZX,RightDoubleBracket:JX,RightDownTeeVector:QX,RightDownVectorBar:eY,RightDownVector:tY,RightFloor:nY,rightharpoondown:rY,rightharpoonup:iY,rightleftarrows:oY,rightleftharpoons:sY,rightrightarrows:lY,rightsquigarrow:aY,RightTeeArrow:cY,RightTee:uY,RightTeeVector:fY,rightthreetimes:dY,RightTriangleBar:hY,RightTriangle:pY,RightTriangleEqual:gY,RightUpDownVector:vY,RightUpTeeVector:mY,RightUpVectorBar:yY,RightUpVector:bY,RightVectorBar:wY,RightVector:xY,ring:_Y,risingdotseq:SY,rlarr:kY,rlhar:TY,rlm:CY,rmoustache:EY,rmoust:AY,rnmid:LY,roang:MY,roarr:NY,robrk:$Y,ropar:OY,ropf:RY,Ropf:PY,roplus:IY,rotimes:DY,RoundImplies:zY,rpar:FY,rpargt:HY,rppolint:BY,rrarr:WY,Rrightarrow:qY,rsaquo:UY,rscr:jY,Rscr:VY,rsh:GY,Rsh:KY,rsqb:XY,rsquo:YY,rsquor:ZY,rthree:JY,rtimes:QY,rtri:eZ,rtrie:tZ,rtrif:nZ,rtriltri:rZ,RuleDelayed:iZ,ruluhar:oZ,rx:sZ,Sacute:lZ,sacute:aZ,sbquo:cZ,scap:uZ,Scaron:fZ,scaron:dZ,Sc:hZ,sc:pZ,sccue:gZ,sce:vZ,scE:mZ,Scedil:yZ,scedil:bZ,Scirc:wZ,scirc:xZ,scnap:_Z,scnE:SZ,scnsim:kZ,scpolint:TZ,scsim:CZ,Scy:EZ,scy:AZ,sdotb:LZ,sdot:MZ,sdote:NZ,searhk:$Z,searr:OZ,seArr:RZ,searrow:PZ,sect:IZ,semi:DZ,seswar:zZ,setminus:FZ,setmn:HZ,sext:BZ,Sfr:WZ,sfr:qZ,sfrown:UZ,sharp:jZ,SHCHcy:VZ,shchcy:GZ,SHcy:KZ,shcy:XZ,ShortDownArrow:YZ,ShortLeftArrow:ZZ,shortmid:JZ,shortparallel:QZ,ShortRightArrow:eJ,ShortUpArrow:tJ,shy:nJ,Sigma:rJ,sigma:iJ,sigmaf:oJ,sigmav:sJ,sim:lJ,simdot:aJ,sime:cJ,simeq:uJ,simg:fJ,simgE:dJ,siml:hJ,simlE:pJ,simne:gJ,simplus:vJ,simrarr:mJ,slarr:yJ,SmallCircle:bJ,smallsetminus:wJ,smashp:xJ,smeparsl:_J,smid:SJ,smile:kJ,smt:TJ,smte:CJ,smtes:EJ,SOFTcy:AJ,softcy:LJ,solbar:MJ,solb:NJ,sol:$J,Sopf:OJ,sopf:RJ,spades:PJ,spadesuit:IJ,spar:DJ,sqcap:zJ,sqcaps:FJ,sqcup:HJ,sqcups:BJ,Sqrt:WJ,sqsub:qJ,sqsube:UJ,sqsubset:jJ,sqsubseteq:VJ,sqsup:GJ,sqsupe:KJ,sqsupset:XJ,sqsupseteq:YJ,square:ZJ,Square:JJ,SquareIntersection:QJ,SquareSubset:eQ,SquareSubsetEqual:tQ,SquareSuperset:nQ,SquareSupersetEqual:rQ,SquareUnion:iQ,squarf:oQ,squ:sQ,squf:lQ,srarr:aQ,Sscr:cQ,sscr:uQ,ssetmn:fQ,ssmile:dQ,sstarf:hQ,Star:pQ,star:gQ,starf:vQ,straightepsilon:mQ,straightphi:yQ,strns:bQ,sub:wQ,Sub:xQ,subdot:_Q,subE:SQ,sube:kQ,subedot:TQ,submult:CQ,subnE:EQ,subne:AQ,subplus:LQ,subrarr:MQ,subset:NQ,Subset:$Q,subseteq:OQ,subseteqq:RQ,SubsetEqual:PQ,subsetneq:IQ,subsetneqq:DQ,subsim:zQ,subsub:FQ,subsup:HQ,succapprox:BQ,succ:WQ,succcurlyeq:qQ,Succeeds:UQ,SucceedsEqual:jQ,SucceedsSlantEqual:VQ,SucceedsTilde:GQ,succeq:KQ,succnapprox:XQ,succneqq:YQ,succnsim:ZQ,succsim:JQ,SuchThat:QQ,sum:eee,Sum:tee,sung:nee,sup1:ree,sup2:iee,sup3:oee,sup:see,Sup:lee,supdot:aee,supdsub:cee,supE:uee,supe:fee,supedot:dee,Superset:hee,SupersetEqual:pee,suphsol:gee,suphsub:vee,suplarr:mee,supmult:yee,supnE:bee,supne:wee,supplus:xee,supset:_ee,Supset:See,supseteq:kee,supseteqq:Tee,supsetneq:Cee,supsetneqq:Eee,supsim:Aee,supsub:Lee,supsup:Mee,swarhk:Nee,swarr:$ee,swArr:Oee,swarrow:Ree,swnwar:Pee,szlig:Iee,Tab:Dee,target:zee,Tau:Fee,tau:Hee,tbrk:Bee,Tcaron:Wee,tcaron:qee,Tcedil:Uee,tcedil:jee,Tcy:Vee,tcy:Gee,tdot:Kee,telrec:Xee,Tfr:Yee,tfr:Zee,there4:Jee,therefore:Qee,Therefore:ete,Theta:tte,theta:nte,thetasym:rte,thetav:ite,thickapprox:ote,thicksim:ste,ThickSpace:lte,ThinSpace:ate,thinsp:cte,thkap:ute,thksim:fte,THORN:dte,thorn:hte,tilde:pte,Tilde:gte,TildeEqual:vte,TildeFullEqual:mte,TildeTilde:yte,timesbar:bte,timesb:wte,times:xte,timesd:_te,tint:Ste,toea:kte,topbot:Tte,topcir:Cte,top:Ete,Topf:Ate,topf:Lte,topfork:Mte,tosa:Nte,tprime:$te,trade:Ote,TRADE:Rte,triangle:Pte,triangledown:Ite,triangleleft:Dte,trianglelefteq:zte,triangleq:Fte,triangleright:Hte,trianglerighteq:Bte,tridot:Wte,trie:qte,triminus:Ute,TripleDot:jte,triplus:Vte,trisb:Gte,tritime:Kte,trpezium:Xte,Tscr:Yte,tscr:Zte,TScy:Jte,tscy:Qte,TSHcy:ene,tshcy:tne,Tstrok:nne,tstrok:rne,twixt:ine,twoheadleftarrow:one,twoheadrightarrow:sne,Uacute:lne,uacute:ane,uarr:cne,Uarr:une,uArr:fne,Uarrocir:dne,Ubrcy:hne,ubrcy:pne,Ubreve:gne,ubreve:vne,Ucirc:mne,ucirc:yne,Ucy:bne,ucy:wne,udarr:xne,Udblac:_ne,udblac:Sne,udhar:kne,ufisht:Tne,Ufr:Cne,ufr:Ene,Ugrave:Ane,ugrave:Lne,uHar:Mne,uharl:Nne,uharr:$ne,uhblk:One,ulcorn:Rne,ulcorner:Pne,ulcrop:Ine,ultri:Dne,Umacr:zne,umacr:Fne,uml:Hne,UnderBar:Bne,UnderBrace:Wne,UnderBracket:qne,UnderParenthesis:Une,Union:jne,UnionPlus:Vne,Uogon:Gne,uogon:Kne,Uopf:Xne,uopf:Yne,UpArrowBar:Zne,uparrow:Jne,UpArrow:Qne,Uparrow:ere,UpArrowDownArrow:tre,updownarrow:nre,UpDownArrow:rre,Updownarrow:ire,UpEquilibrium:ore,upharpoonleft:sre,upharpoonright:lre,uplus:are,UpperLeftArrow:cre,UpperRightArrow:ure,upsi:fre,Upsi:dre,upsih:hre,Upsilon:pre,upsilon:gre,UpTeeArrow:vre,UpTee:mre,upuparrows:yre,urcorn:bre,urcorner:wre,urcrop:xre,Uring:_re,uring:Sre,urtri:kre,Uscr:Tre,uscr:Cre,utdot:Ere,Utilde:Are,utilde:Lre,utri:Mre,utrif:Nre,uuarr:$re,Uuml:Ore,uuml:Rre,uwangle:Pre,vangrt:Ire,varepsilon:Dre,varkappa:zre,varnothing:Fre,varphi:Hre,varpi:Bre,varpropto:Wre,varr:qre,vArr:Ure,varrho:jre,varsigma:Vre,varsubsetneq:Gre,varsubsetneqq:Kre,varsupsetneq:Xre,varsupsetneqq:Yre,vartheta:Zre,vartriangleleft:Jre,vartriangleright:Qre,vBar:eie,Vbar:tie,vBarv:nie,Vcy:rie,vcy:iie,vdash:oie,vDash:sie,Vdash:lie,VDash:aie,Vdashl:cie,veebar:uie,vee:fie,Vee:die,veeeq:hie,vellip:pie,verbar:gie,Verbar:vie,vert:mie,Vert:yie,VerticalBar:bie,VerticalLine:wie,VerticalSeparator:xie,VerticalTilde:_ie,VeryThinSpace:Sie,Vfr:kie,vfr:Tie,vltri:Cie,vnsub:Eie,vnsup:Aie,Vopf:Lie,vopf:Mie,vprop:Nie,vrtri:$ie,Vscr:Oie,vscr:Rie,vsubnE:Pie,vsubne:Iie,vsupnE:Die,vsupne:zie,Vvdash:Fie,vzigzag:Hie,Wcirc:Bie,wcirc:Wie,wedbar:qie,wedge:Uie,Wedge:jie,wedgeq:Vie,weierp:Gie,Wfr:Kie,wfr:Xie,Wopf:Yie,wopf:Zie,wp:Jie,wr:Qie,wreath:eoe,Wscr:toe,wscr:noe,xcap:roe,xcirc:ioe,xcup:ooe,xdtri:soe,Xfr:loe,xfr:aoe,xharr:coe,xhArr:uoe,Xi:foe,xi:doe,xlarr:hoe,xlArr:poe,xmap:goe,xnis:voe,xodot:moe,Xopf:yoe,xopf:boe,xoplus:woe,xotime:xoe,xrarr:_oe,xrArr:Soe,Xscr:koe,xscr:Toe,xsqcup:Coe,xuplus:Eoe,xutri:Aoe,xvee:Loe,xwedge:Moe,Yacute:Noe,yacute:$oe,YAcy:Ooe,yacy:Roe,Ycirc:Poe,ycirc:Ioe,Ycy:Doe,ycy:zoe,yen:Foe,Yfr:Hoe,yfr:Boe,YIcy:Woe,yicy:qoe,Yopf:Uoe,yopf:joe,Yscr:Voe,yscr:Goe,YUcy:Koe,yucy:Xoe,yuml:Yoe,Yuml:Zoe,Zacute:Joe,zacute:Qoe,Zcaron:ese,zcaron:tse,Zcy:nse,zcy:rse,Zdot:ise,zdot:ose,zeetrf:sse,ZeroWidthSpace:lse,Zeta:ase,zeta:cse,zfr:use,Zfr:fse,ZHcy:dse,zhcy:hse,zigrarr:pse,zopf:gse,Zopf:vse,Zscr:mse,zscr:yse,zwj:bse,zwnj:wse},xse="Á",_se="á",Sse="Â",kse="â",Tse="´",Cse="Æ",Ese="æ",Ase="À",Lse="à",Mse="&",Nse="&",$se="Å",Ose="å",Rse="Ã",Pse="ã",Ise="Ä",Dse="ä",zse="¦",Fse="Ç",Hse="ç",Bse="¸",Wse="¢",qse="©",Use="©",jse="¤",Vse="°",Gse="÷",Kse="É",Xse="é",Yse="Ê",Zse="ê",Jse="È",Qse="è",ele="Ð",tle="ð",nle="Ë",rle="ë",ile="½",ole="¼",sle="¾",lle=">",ale=">",cle="Í",ule="í",fle="Î",dle="î",hle="¡",ple="Ì",gle="ì",vle="¿",mle="Ï",yle="ï",ble="«",wle="<",xle="<",_le="¯",Sle="µ",kle="·",Tle=" ",Cle="¬",Ele="Ñ",Ale="ñ",Lle="Ó",Mle="ó",Nle="Ô",$le="ô",Ole="Ò",Rle="ò",Ple="ª",Ile="º",Dle="Ø",zle="ø",Fle="Õ",Hle="õ",Ble="Ö",Wle="ö",qle="¶",Ule="±",jle="£",Vle='"',Gle='"',Kle="»",Xle="®",Yle="®",Zle="§",Jle="­",Qle="¹",eae="²",tae="³",nae="ß",rae="Þ",iae="þ",oae="×",sae="Ú",lae="ú",aae="Û",cae="û",uae="Ù",fae="ù",dae="¨",hae="Ü",pae="ü",gae="Ý",vae="ý",mae="¥",yae="ÿ",bae={Aacute:xse,aacute:_se,Acirc:Sse,acirc:kse,acute:Tse,AElig:Cse,aelig:Ese,Agrave:Ase,agrave:Lse,amp:Mse,AMP:Nse,Aring:$se,aring:Ose,Atilde:Rse,atilde:Pse,Auml:Ise,auml:Dse,brvbar:zse,Ccedil:Fse,ccedil:Hse,cedil:Bse,cent:Wse,copy:qse,COPY:Use,curren:jse,deg:Vse,divide:Gse,Eacute:Kse,eacute:Xse,Ecirc:Yse,ecirc:Zse,Egrave:Jse,egrave:Qse,ETH:ele,eth:tle,Euml:nle,euml:rle,frac12:ile,frac14:ole,frac34:sle,gt:lle,GT:ale,Iacute:cle,iacute:ule,Icirc:fle,icirc:dle,iexcl:hle,Igrave:ple,igrave:gle,iquest:vle,Iuml:mle,iuml:yle,laquo:ble,lt:wle,LT:xle,macr:_le,micro:Sle,middot:kle,nbsp:Tle,not:Cle,Ntilde:Ele,ntilde:Ale,Oacute:Lle,oacute:Mle,Ocirc:Nle,ocirc:$le,Ograve:Ole,ograve:Rle,ordf:Ple,ordm:Ile,Oslash:Dle,oslash:zle,Otilde:Fle,otilde:Hle,Ouml:Ble,ouml:Wle,para:qle,plusmn:Ule,pound:jle,quot:Vle,QUOT:Gle,raquo:Kle,reg:Xle,REG:Yle,sect:Zle,shy:Jle,sup1:Qle,sup2:eae,sup3:tae,szlig:nae,THORN:rae,thorn:iae,times:oae,Uacute:sae,uacute:lae,Ucirc:aae,ucirc:cae,Ugrave:uae,ugrave:fae,uml:dae,Uuml:hae,uuml:pae,Yacute:gae,yacute:vae,yen:mae,yuml:yae},wae="&",xae="'",_ae=">",Sae="<",kae='"',Mw={amp:wae,apos:xae,gt:_ae,lt:Sae,quot:kae};var ps={};const Tae={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Om;function Cae(){if(Om)return ps;Om=1;var e=ps&&ps.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ps,"__esModule",{value:!0});var t=e(Tae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ps.default=o,ps}var Rm;function Pm(){if(Rm)return xr;Rm=1;var e=xr&&xr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(xr,"__esModule",{value:!0}),xr.decodeHTML=xr.decodeHTMLStrict=xr.decodeXML=void 0;var t=e(Lw),r=e(bae),o=e(Mw),s=e(Cae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;xr.decodeXML=f(o.default),xr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};xr.decodeHTML=function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var w=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=h(t.default);function N(T){return T.substr(-1)!==";"&&(T+=";"),E(T)}return function(T){return String(T).replace(w,N)}}();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return xr}var Ln={},Im;function Dm(){if(Im)return Ln;Im=1;var e=Ln&&Ln.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(Mw),r=d(t.default),o=h(r);Ln.encodeXML=T(r);var s=e(Lw),c=d(s.default),f=h(c);Ln.encodeHTML=b(c,f),Ln.encodeNonAsciiHTML=T(c);function d(L){return Object.keys(L).sort().reduce(function(A,R){return A[L[R]]="&"+R+";",A},{})}function h(L){for(var A=[],R=[],M=0,B=Object.keys(L);M<B.length;M++){var V=B[M];V.length===1?A.push("\\"+V):R.push(V)}A.sort();for(var G=0;G<A.length-1;G++){for(var ee=G;ee<A.length-1&&A[ee].charCodeAt(1)+1===A[ee+1].charCodeAt(1);)ee+=1;var ne=1+ee-G;ne<3||A.splice(G,ne,A[G]+"-"+A[ee])}return R.unshift("["+A.join("")+"]"),new RegExp(R.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(L){return L.codePointAt(0)}:function(L){return(L.charCodeAt(0)-55296)*1024+L.charCodeAt(1)-56320+65536};function m(L){return"&#x"+(L.length>1?v(L):L.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(L,A){return function(R){return R.replace(A,function(M){return L[M]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(L){return L.replace(w,m)}Ln.escape=E;function N(L){return L.replace(o,m)}Ln.escapeUTF8=N;function T(L){return function(A){return A.replace(w,function(R){return L[R]||m(R)})}}return Ln}var zm;function Eae(){return zm||(zm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Pm(),r=Dm();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Dm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=Pm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})}(id)),id}var od,Fm;function Aae(){if(Fm)return od;Fm=1;function e($,P){if(!($ instanceof P))throw new TypeError("Cannot call a class as a function")}function t($,P){for(var O=0;O<P.length;O++){var S=P[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty($,S.key,S)}}function r($,P,O){return P&&t($.prototype,P),$}function o($,P){var O=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!O){if(Array.isArray($)||(O=s($))||P){O&&($=O);var S=0,F=function(){};return{s:F,n:function(){return S>=$.length?{done:!0}:{done:!1,value:$[S++]}},e:function(Pe){throw Pe},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,se=!1,me;return{s:function(){O=O.call($)},n:function(){var Pe=O.next();return j=Pe.done,Pe},e:function(Pe){se=!0,me=Pe},f:function(){try{!j&&O.return!=null&&O.return()}finally{if(se)throw me}}}}function s($,P){if($){if(typeof $=="string")return c($,P);var O=Object.prototype.toString.call($).slice(8,-1);if(O==="Object"&&$.constructor&&(O=$.constructor.name),O==="Map"||O==="Set")return Array.from($);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c($,P)}}function c($,P){(P==null||P>$.length)&&(P=$.length);for(var O=0,S=new Array(P);O<P;O++)S[O]=$[O];return S}var f=Eae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var $={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return T(0,5).forEach(function(P){T(0,5).forEach(function(O){T(0,5).forEach(function(S){return p(P,O,S,$)})})}),T(0,23).forEach(function(P){var O=P+232,S=v(P*10+8);$[O]="#"+S+S+S}),$}function p($,P,O,S){var F=16+$*36+P*6+O,j=$>0?$*40+55:0,se=P>0?P*40+55:0,me=O>0?O*40+55:0;S[F]=m([j,se,me])}function v($){for(var P=$.toString(16);P.length<2;)P="0"+P;return P}function m($){var P=[],O=o($),S;try{for(O.s();!(S=O.n()).done;){var F=S.value;P.push(v(F))}}catch(j){O.e(j)}finally{O.f()}return"#"+P.join("")}function b($,P,O,S){var F;return P==="text"?F=R(O,S):P==="display"?F=E($,O,S):P==="xterm256Foreground"?F=V($,S.colors[O]):P==="xterm256Background"?F=G($,S.colors[O]):P==="rgb"&&(F=w($,O)),F}function w($,P){P=P.substring(2).slice(0,-1);var O=+P.substr(0,2),S=P.substring(5).split(";"),F=S.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return B($,(O===38?"color:#":"background-color:#")+F)}function E($,P,O){P=parseInt(P,10);var S={"-1":function(){return"<br/>"},0:function(){return $.length&&N($)},1:function(){return M($,"b")},3:function(){return M($,"i")},4:function(){return M($,"u")},8:function(){return B($,"display:none")},9:function(){return M($,"strike")},22:function(){return B($,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee($,"i")},24:function(){return ee($,"u")},39:function(){return V($,O.fg)},49:function(){return G($,O.bg)},53:function(){return B($,"text-decoration:overline")}},F;return S[P]?F=S[P]():4<P&&P<7?F=M($,"blink"):29<P&&P<38?F=V($,O.colors[P-30]):39<P&&P<48?F=G($,O.colors[P-40]):89<P&&P<98?F=V($,O.colors[8+(P-90)]):99<P&&P<108&&(F=G($,O.colors[8+(P-100)])),F}function N($){var P=$.slice(0);return $.length=0,P.reverse().map(function(O){return"</"+O+">"}).join("")}function T($,P){for(var O=[],S=$;S<=P;S++)O.push(S);return O}function L($){return function(P){return($===null||P.category!==$)&&$!=="all"}}function A($){$=parseInt($,10);var P=null;return $===0?P="all":$===1?P="bold":2<$&&$<5?P="underline":4<$&&$<7?P="blink":$===8?P="hide":$===9?P="strike":29<$&&$<38||$===39||89<$&&$<98?P="foreground-color":(39<$&&$<48||$===49||99<$&&$<108)&&(P="background-color"),P}function R($,P){return P.escapeXML?f.encodeXML($):$}function M($,P,O){return O||(O=""),$.push(P),"<".concat(P).concat(O?' style="'.concat(O,'"'):"",">")}function B($,P){return M($,"span",P)}function V($,P){return M($,"span","color:"+P)}function G($,P){return M($,"span","background-color:"+P)}function ee($,P){var O;if($.slice(-1)[0]===P&&(O=$.pop()),O)return"</"+P+">"}function ne($,P,O){var S=!1,F=3;function j(){return""}function se(H,Y){return O("xterm256Foreground",Y),""}function me(H,Y){return O("xterm256Background",Y),""}function _e(H){return P.newline?O("display",-1):O("text",H),""}function Pe(H,Y){S=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var ue=o(Y),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;O("display",de)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function qe(H){return O("text",H),""}function Ze(H){return O("rgb",H),""}var Ke=[{pattern:/^\x08+/,sub:j},{pattern:/^\x1b\[[012]?K/,sub:j},{pattern:/^\x1b\[\(B/,sub:j},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ze},{pattern:/^\x1b\[38;5;(\d+)m/,sub:se},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:j},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:j},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:j},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:qe}];function Xe(H,Y){Y>F&&S||(S=!1,$=$.replace(H.pattern,H.sub))}var te=[],z=$,J=z.length;e:for(;J>0;){for(var X=0,le=0,pe=Ke.length;le<pe;X=++le){var I=Ke[X];if(Xe(I,X),$.length!==J){J=$.length;continue e}}if($.length===J)break;te.push(0),J=$.length}return te}function K($,P,O){return P!=="text"&&($=$.filter(L(A(O))),$.push({token:P,data:O,category:A(O)})),$}var re=function(){function $(P){e(this,$),P=P||{},P.colors&&(P.colors=Object.assign({},d.colors,P.colors)),this.options=Object.assign({},d,P),this.stack=[],this.stickyStack=[]}return r($,[{key:"toHtml",value:function(O){var S=this;O=typeof O=="string"?[O]:O;var F=this.stack,j=this.options,se=[];return this.stickyStack.forEach(function(me){var _e=b(F,me.token,me.data,j);_e&&se.push(_e)}),ne(O.join(""),j,function(me,_e){var Pe=b(F,me,_e,j);Pe&&se.push(Pe),j.stream&&(S.stickyStack=K(S.stickyStack,me,_e))}),F.length&&se.push(N(F)),se.join("")}}]),$}();return od=re,od}var Lae=Aae();const Mae=Aw(Lae);function Nae(e,t){return t&&e.endsWith(t)}async function Nw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function jh(e){return new Mae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function $ae(e){return e===null||typeof e!="function"&&typeof e!="object"}function $w(e){let t=e;if($ae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=tL(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var nr=Uint8Array,ws=Uint16Array,Oae=Int32Array,Ow=new nr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Rw=new nr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Rae=new nr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pw=function(e,t){for(var r=new ws(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Oae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Iw=Pw(Ow,2),Dw=Iw.b,Pae=Iw.r;Dw[28]=258,Pae[258]=28;var Iae=Pw(Rw,0),Dae=Iae.b,Vd=new ws(32768);for(var Lt=0;Lt<32768;++Lt){var zi=(Lt&43690)>>1|(Lt&21845)<<1;zi=(zi&52428)>>2|(zi&13107)<<2,zi=(zi&61680)>>4|(zi&3855)<<4,Vd[Lt]=((zi&65280)>>8|(zi&255)<<8)>>1}var Fl=function(e,t,r){for(var o=e.length,s=0,c=new ws(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ws(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ws(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Vd[m]>>h]=p}else for(d=new ws(o),s=0;s<o;++s)e[s]&&(d[s]=Vd[f[e[s]-1]++]>>15-e[s]);return d},ka=new nr(288);for(var Lt=0;Lt<144;++Lt)ka[Lt]=8;for(var Lt=144;Lt<256;++Lt)ka[Lt]=9;for(var Lt=256;Lt<280;++Lt)ka[Lt]=7;for(var Lt=280;Lt<288;++Lt)ka[Lt]=8;var zw=new nr(32);for(var Lt=0;Lt<32;++Lt)zw[Lt]=5;var zae=Fl(ka,9,1),Fae=Fl(zw,5,1),sd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},_r=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},ld=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Hae=function(e){return(e+7)/8|0},Fw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new nr(e.subarray(t,r))},Bae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],qn=function(e,t,r){var o=new Error(t||Bae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,qn),!r)throw o;return o},Vh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new nr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new nr(s*3));var p=function(pe){var I=r.length;if(pe>I){var H=new nr(Math.max(I*2,pe));H.set(r),r=H}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,E=t.d,N=t.m,T=t.n,L=s*8;do{if(!w){v=_r(e,m,1);var A=_r(e,m+1,3);if(m+=3,A)if(A==1)w=zae,E=Fae,N=9,T=5;else if(A==2){var V=_r(e,m,31)+257,G=_r(e,m+10,15)+4,ee=V+_r(e,m+5,31)+1;m+=14;for(var ne=new nr(ee),K=new nr(19),re=0;re<G;++re)K[Rae[re]]=_r(e,m+re*3,7);m+=G*3;for(var $=sd(K),P=(1<<$)-1,O=Fl(K,$,1),re=0;re<ee;){var S=O[_r(e,m,P)];m+=S&15;var R=S>>4;if(R<16)ne[re++]=R;else{var F=0,j=0;for(R==16?(j=3+_r(e,m,3),m+=2,F=ne[re-1]):R==17?(j=3+_r(e,m,7),m+=3):R==18&&(j=11+_r(e,m,127),m+=7);j--;)ne[re++]=F}}var se=ne.subarray(0,V),me=ne.subarray(V);N=sd(se),T=sd(me),w=Fl(se,N,1),E=Fl(me,T,1)}else qn(1);else{var R=Hae(m)+4,M=e[R-4]|e[R-3]<<8,B=R+M;if(B>s){h&&qn(0);break}d&&p(b+M),r.set(e.subarray(R,B),b),t.b=b+=M,t.p=m=B*8,t.f=v;continue}if(m>L){h&&qn(0);break}}d&&p(b+131072);for(var _e=(1<<N)-1,Pe=(1<<T)-1,qe=m;;qe=m){var F=w[ld(e,m)&_e],Ze=F>>4;if(m+=F&15,m>L){h&&qn(0);break}if(F||qn(2),Ze<256)r[b++]=Ze;else if(Ze==256){qe=m,w=null;break}else{var Ke=Ze-254;if(Ze>264){var re=Ze-257,Xe=Ow[re];Ke=_r(e,m,(1<<Xe)-1)+Dw[re],m+=Xe}var te=E[ld(e,m)&Pe],z=te>>4;te||qn(3),m+=te&15;var me=Dae[z];if(z>3){var Xe=Rw[z];me+=ld(e,m)&(1<<Xe)-1,m+=Xe}if(m>L){h&&qn(0);break}d&&p(b+131072);var J=b+Ke;if(b<me){var X=c-me,le=Math.min(me,J);for(X+b<0&&qn(3);b<le;++b)r[b]=o[X+b]}for(;b<J;++b)r[b]=r[b-me]}}t.l=w,t.p=qe,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=E,t.n=T)}while(!v);return b!=r.length&&f?Fw(r,0,b):r.subarray(0,b)},Wae=new nr(0),qae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&qn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Uae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},jae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&qn(6,"invalid zlib data"),(e[1]>>5&1)==1&&qn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Vae(e,t){return Vh(e,{i:2},t,t)}function Gae(e,t){var r=qae(e);return r+8>e.length&&qn(6,"invalid gzip data"),Vh(e.subarray(r,-8),{i:2},new nr(Uae(e)),t)}function Kae(e,t){return Vh(e.subarray(jae(e),-4),{i:2},t,t)}function Xae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Gae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Vae(e,t):Kae(e,t)}var Gd=typeof TextDecoder<"u"&&new TextDecoder,Yae=0;try{Gd.decode(Wae,{stream:!0}),Yae=1}catch{}var Zae=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Fw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Jae(e,t){var r;if(Gd)return Gd.decode(e);var o=Zae(e),s=o.s,r=o.r;return r.length&&qn(8),s}const ad=()=>{},mn=()=>Promise.resolve();function Qae(){const e=rr({state:new Gb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=rr(e.state.filesMap),e.state.idMap=rr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:mn,onDone:ad,onTaskUpdate:ad,writeFile:mn,rerun:mn,rerunTask:mn,updateSnapshot:mn,resolveSnapshotPath:mn,snapshotSaved:mn,onAfterSuiteRun:mn,onCancel:mn,getCountOfFailedTests:()=>0,sendLog:mn,resolveSnapshotRawPath:mn,readSnapshotFile:mn,saveSnapshotFile:mn,readTestFile:async d=>t.sources[d],removeSnapshotFile:mn,onUnhandledError:ad,saveTestFile:mn,getProvidedContext:()=>({}),getTestFiles:mn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=Jae(Xae(m));t=Fd(b)}else t=Fd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return Ar?Qae():ZC(lA,{reactive:(t,r)=>r==="state"?rr(t):rn(t),handlers:{onTaskUpdate(t){Le.resumeRun(t),zu.value="running"},onFinished(t,r){Le.endRun(),ji.value=(r||[]).map($w)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Hu=rn({}),Mo=Ue("CONNECTING"),en=Se(()=>{const e=oo.value;return e?fr(e):void 0}),Hw=Se(()=>zh(en.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function fr(e){const t=mt.state.idMap.get(e);return t||void 0}const ece=Se(()=>Mo.value==="OPEN"),cd=Se(()=>Mo.value==="CONNECTING");Se(()=>Mo.value==="CLOSED");function tce(){return Gh(mt.state.getFiles())}function Bw(e){delete e.result;const t=Le.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,_a(e)))for(const r of e.tasks)Bw(r)}function nce(e){const t=Le.nodes;e.forEach(r=>{delete r.result,zh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Rn(o)&&(o.collectDuration=void 0))})}function Gh(e){return nce(e),Le.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function rce(e){return Bw(e),Le.startRun(),mt.rpc.rerunTask(e.id)}const Ht=window.__vitest_browser_runner__;window.__vitest_ui_api__=iA;xt(()=>mt.ws,e=>{Mo.value=Ar?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Mo.value="OPEN",mt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([mt.rpc.getFiles(),mt.rpc.getConfig(),mt.rpc.getUnhandledErrors(),mt.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await mt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=zb(h,d,f);return p.mode="skip",p})),Le.loadFiles(t,s),mt.state.collectFiles(t),Le.startRun(),ji.value=(o||[]).map($w),Hu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Mo.value==="CONNECTING"&&(Mo.value="CLOSED")},1e3)})},{immediate:!0});const ice={"text-2xl":""},oce={"text-lg":"",op50:""},sce=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>U(ece)?Ye("",!0):(ce(),xe("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>U(mt).reconnect&&U(mt).reconnect(...o))},[ie("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(U(cd)?"animate-pulse":"")},[ie("div",{text:"5xl",class:it(U(cd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ie("div",ice,We(U(cd)?"Connecting...":"Disconnected"),1),ie("div",oce," Check your terminal or start a new server with `"+We(U(Ht)?`vitest --browser=${U(Ht).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),lce=["aria-label","opacity","disabled","hover"],Si=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ce(),xe("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:it(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[xn(t.$slots,"default",{},()=>[ie("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,lce))}}),ace={h:"full",flex:"~ col"},cce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},uce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},fce={class:"pointer-events-none","text-sm":""},dce={key:0},hce={id:"tester-container",relative:""},pce=["data-scale"],Hm=20,gce=100,vce=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return er.value[0]===v[0]&&er.value[1]===v[1]}const{width:o,height:s}=sw();async function c(p){er.value=t[p],(Ht==null?void 0:Ht.provider)==="webdriverio"&&xw()}const f=Se(()=>{if((Ht==null?void 0:Ht.provider)==="webdriverio"){const[w,E]=er.value;return{width:w,height:E}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-Hm,b=s.value-gce;return{width:m,height:b}}),d=Se(()=>{if((Ht==null?void 0:Ht.provider)==="webdriverio")return 1;const[p,v]=er.value,{width:m,height:b}=f.value,w=m>p?1:m/p,E=b>v?1:b/v;return Math.min(1,w,E)}),h=Se(()=>{const p=f.value.width,v=er.value[0];return`${Math.trunc((p+Hm-v)/2)}px`});return(p,v)=>{const m=Si,b=Xr("tooltip");return ce(),xe("div",ace,[ie("div",cce,[gt(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>U(rA)())},null,512),[[Ki,U(At).navigation<=15],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ie("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),gt(Oe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>U(tA)())},null,512),[[Ki,U(At).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>U(nA)())},null,512),[[Ki,U(At).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),ie("div",uce,[gt(Oe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>c("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>c("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>c("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),ie("span",fce,[pt(We(U(er)[0])+"x"+We(U(er)[1])+"px ",1),U(d)<1?(ce(),xe("span",dce,"("+We((U(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),ie("div",hce,[ie("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":U(d),style:nn({"--viewport-width":`${U(er)[0]}px`,"--viewport-height":`${U(er)[1]}px`,"--tester-transform":`scale(${U(d)})`,"--tester-margin-left":U(h)})}," Select a test to run ",12,pce)])])}}}),mce=_i(vce,[["__scopeId","data-v-9fd23e63"]]),Ww=ut({__name:"Modal",props:Gl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eu(e,"modelValue"),r=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ce(),xe("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ie("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ie("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:nn(t.value?{}:{transform:U(o)})},[xn(c.$slots,"default")],6)],2))}}),yce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},bce={"p-4":"",relative:"",border:"base b"},wce={op50:"","font-mono":"","text-sm":""},xce={op50:"","font-mono":"","text-sm":""},_ce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Sce=["src","alt"],kce={key:1},Tce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return tw("Escape",()=>{r("close")}),(o,s)=>{const c=Si;return ce(),xe("div",yce,[ie("div",bce,[s[1]||(s[1]=ie("p",null,"Screenshot error",-1)),ie("p",wce,We(o.file),1),ie("p",xce,We(o.name),1),Oe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),ie("div",_ce,[o.url?(ce(),xe("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Sce)):(ce(),xe("div",kce," Something was wrong, the image cannot be resolved. "))])])}}}),Cce=_i(Tce,[["__scopeId","data-v-93900314"]]);function Hl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const Ta=wE(),Ece=iE(Ta),Ace={class:"scrolls scrolls-rounded task-error"},Lce=["onClickPassive"],Mce=["innerHTML"],Nce=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Se(()=>jh(Ta.value)),s=Se(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Se(()=>t.error.diff?o.value.toHtml(Hl(t.error.diff)):void 0);return(f,d)=>{const h=Xr("tooltip");return ce(),xe("div",Ace,[ie("pre",null,[ie("b",null,We(f.error.name||f.error.nameStr),1),pt(": "+We(f.error.message),1)]),(ce(!0),xe(ct,null,mi(f.error.stacks,(p,v)=>(ce(),xe("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ie("pre",null," - "+We(r(p.file))+":"+We(p.line)+":"+We(p.column),1),U(Nae)(p.file,f.filename)?gt((ce(),xe("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:m=>U(Nw)(p.file,p.line,p.column)},null,40,Lce)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),U(s)?(ce(),xe("pre",{key:0,"data-testid":"diff",innerHTML:U(c)},null,8,Mce)):Ye("",!0)])}}}),$ce=_i(Nce,[["__scopeId","data-v-9dd6eaea"]]),Oce={"h-full":"",class:"scrolls"},Rce=["id"],Pce={flex:"~ gap-2 items-center"},Ice={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Dce=["innerHTML"],zce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Fce=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(N=>r(N,w+1))]}function o(b,w){var T,L,A;let E="";(T=w.message)!=null&&T.includes("\x1B")&&(E=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Hl(w.message))}`);const N=(L=w.stackStr)==null?void 0:L.includes("\x1B");return(N||(A=w.stack)!=null&&A.includes("\x1B"))&&(E.length>0?E+=b.toHtml(Hl(N?w.stackStr:w.stack)):E=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Hl(N?w.stackStr:w.stack))}`),E.length>0?E:null}function s(b,w){const E=jh(b);return w.map(N=>{var A;const T=N.result;if(!T)return N;const L=(A=T.errors)==null?void 0:A.map(R=>o(E,R)).filter(R=>R!=null).join("<br><br>");return L!=null&&L.length&&(T.htmlError=L),N})}const c=Se(()=>{var T,L;const b=t.file,w=((T=b==null?void 0:b.tasks)==null?void 0:T.flatMap(A=>r(A,0)))??[],E=b==null?void 0:b.result;if((L=E==null?void 0:E.errors)==null?void 0:L[0]){const A={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};w.unshift(A)}return w.length>0?s(Ta.value,w):w});function f(b){var E;const w=(E=b.meta)==null?void 0:E.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=Ue(!1),h=Ue(Date.now()),p=Ue(),v=Se(()=>{var E;const b=(E=p.value)==null?void 0:E.id,w=h.value;return b?`/__screenshot-error?id=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return xt(()=>[yw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Tt(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const E=Si,N=$ce,T=Cce,L=Ww,A=Xr("tooltip");return ce(),xe("div",Oce,[U(c).length?(ce(!0),xe(ct,{key:0},mi(U(c),R=>{var M,B,V,G;return ce(),xe("div",{id:R.id,key:R.id},[ie("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:nn({"margin-left":`${(M=R.result)!=null&&M.htmlError?.5:2*R.level+.5}rem`})},[ie("div",Pce,[ie("span",null,We(R.name),1),U(Ht)&&((B=R.meta)!=null&&B.failScreenshotPath)?(ce(),xe(ct,{key:0},[gt(Oe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ee=>m(R)},null,8,["onClick"]),[[A,"View screenshot error",void 0,{bottom:!0}]]),gt(Oe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ee=>f(R)},null,8,["onClick"]),[[A,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(V=R.result)!=null&&V.htmlError?(ce(),xe("div",Ice,[ie("pre",{innerHTML:R.result.htmlError},null,8,Dce)])):(G=R.result)!=null&&G.errors?(ce(!0),xe(ct,{key:1},mi(R.result.errors,(ee,ne)=>{var K;return ce(),nt(N,{key:ne,error:ee,filename:(K=b.file)==null?void 0:K.name,root:U(Hu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)],8,Rce)}),128)):(ce(),xe("div",zce," All tests passed in this file ")),U(Ht)?(ce(),nt(L,{key:2,modelValue:U(d),"onUpdate:modelValue":w[1]||(w[1]=R=>Ct(d)?d.value=R:null),direction:"right"},{default:rt(()=>[U(p)?(ce(),nt(eb,{key:0},{default:rt(()=>[Oe(T,{file:U(p).file.filepath,name:U(p).name,url:U(v),onClose:w[0]||(w[0]=R=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),Hce=_i(Fce,[["__scopeId","data-v-013fc3c6"]]),Bce={border:"b base","p-4":""},Wce=["innerHTML"],qce=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ce(),xe("div",Bce,[ie("div",{"text-xs":"","mb-1":"",class:it(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},We(t(r.time))+" | "+We(r.taskName)+" | "+We(r.type),3),ie("pre",{"data-type":"html",innerHTML:r.content},null,8,Wce)]))}}),Uce={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},jce={key:1,p6:""},Vce=ut({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const o=Hw.value;if(o){const s=jh(Ta.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Hl(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?DC(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=qce;return(f=U(t))!=null&&f.length?(ce(),xe("div",Uce,[(ce(!0),xe(ct,null,mi(U(t),({taskId:d,type:h,time:p,content:v})=>(ce(),xe("div",{key:d,"font-mono":""},[Oe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(ce(),xe("div",jce,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),ie("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Nc={exports:{}},Gce=Nc.exports,Bm;function Ws(){return Bm||(Bm=1,function(e,t){(function(r,o){e.exports=o()})(Gce,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]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),N=/Apple Computer/.test(navigator.vendor),T=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),A=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),M=A||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=A||/Mac/.test(o),V=/\bCrOS\b/.test(r),G=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,v=!0);var ne=B&&(m||E&&(ee==null||ee<12.11)),K=s||h&&p>=9;function re(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var $=function(n,i){var a=n.className,l=re(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 P(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return P(n).appendChild(i)}function S(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 g=0;g<i.length;++g)u.appendChild(i[g]);return u}function F(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:j=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 se(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 me(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 _e(n,i){var a=n.className;re(i).test(a)||(n.className+=(a?" ":"")+i)}function Pe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!re(a[l]).test(i)&&(i+=" "+a[l]);return i}var qe=function(n){n.select()};A?qe=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(qe=function(n){try{n.select()}catch{}});function Ze(n){return n.display.wrapper.ownerDocument}function Ke(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function te(n){return Ze(n).defaultView}function z(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function J(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 X(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=z(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 pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,H={toString:function(){return"CodeMirror.Pass"}},Y={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ve(Ce)+" ");return Ce[n]}function ve(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 Be(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ne(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Ne.prototype=n,a=new Ne),i&&J(i,a),a}var je=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||je.test(n))}function ot(n,i){return i?i.source.indexOf("\\w")>-1&&tt(n)?!0:i.test(n):tt(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var $t=/[\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 st(n){return n.charCodeAt(0)>=768&&$t.test(n)}function Gt(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function Bt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Dn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(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",g),u=!0)}u||l(i,a,"ltr")}var Pr=null;function zt(n,i,a){var l;Pr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Pr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Pr=u)}return l??Pr}var zn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function _(k,D,q){this.level=k,this.from=D,this.to=q}return function(k,D){var q=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var Q=k.length,Z=[],ae=0;ae<Q;++ae)Z.push(a(k.charCodeAt(ae)));for(var ge=0,we=q;ge<Q;++ge){var ke=Z[ge];ke=="m"?Z[ge]=we:we=ke}for(var Me=0,Te=q;Me<Q;++Me){var $e=Z[Me];$e=="1"&&Te=="r"?Z[Me]="n":g.test($e)&&(Te=$e,$e=="r"&&(Z[Me]="R"))}for(var He=1,Ie=Z[0];He<Q-1;++He){var Je=Z[He];Je=="+"&&Ie=="1"&&Z[He+1]=="1"?Z[He]="1":Je==","&&Ie==Z[He+1]&&(Ie=="1"||Ie=="n")&&(Z[He]=Ie),Ie=Je}for(var _t=0;_t<Q;++_t){var Jt=Z[_t];if(Jt==",")Z[_t]="N";else if(Jt=="%"){var Mt=void 0;for(Mt=_t+1;Mt<Q&&Z[Mt]=="%";++Mt);for(var Bn=_t&&Z[_t-1]=="!"||Mt<Q&&Z[Mt]=="1"?"1":"N",Cn=_t;Cn<Mt;++Cn)Z[Cn]=Bn;_t=Mt-1}}for(var Wt=0,En=q;Wt<Q;++Wt){var sn=Z[Wt];En=="L"&&sn=="1"?Z[Wt]="L":g.test(sn)&&(En=sn)}for(var jt=0;jt<Q;++jt)if(u.test(Z[jt])){var qt=void 0;for(qt=jt+1;qt<Q&&u.test(Z[qt]);++qt);for(var It=(jt?Z[jt-1]:q)=="L",An=(qt<Q?Z[qt]:q)=="L",us=It==An?It?"L":"R":q,Ii=jt;Ii<qt;++Ii)Z[Ii]=us;jt=qt-1}for(var dn=[],Hr,Qt=0;Qt<Q;)if(y.test(Z[Qt])){var Hf=Qt;for(++Qt;Qt<Q&&y.test(Z[Qt]);++Qt);dn.push(new _(0,Hf,Qt))}else{var ii=Qt,wo=dn.length,xo=D=="rtl"?1:0;for(++Qt;Qt<Q&&Z[Qt]!="L";++Qt);for(var vn=ii;vn<Qt;)if(x.test(Z[vn])){ii<vn&&(dn.splice(wo,0,new _(1,ii,vn)),wo+=xo);var fs=vn;for(++vn;vn<Qt&&x.test(Z[vn]);++vn);dn.splice(wo,0,new _(2,fs,vn)),wo+=xo,ii=vn}else++vn;ii<Qt&&dn.splice(wo,0,new _(1,ii,Qt))}return D=="ltr"&&(dn[0].level==1&&(Hr=k.match(/^\s+/))&&(dn[0].from=Hr[0].length,dn.unshift(new _(0,0,Hr[0].length))),ve(dn).level==1&&(Hr=k.match(/\s+$/))&&(ve(dn).to-=Hr[0].length,dn.push(new _(0,Q-Hr[0].length,Q)))),D=="rtl"?dn.reverse():dn}}();function et(n,i){var a=n.order;return a==null&&(a=n.order=zn(n.text,i)),a}var La=[],Fe=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]||La).concat(a)}};function Zr(n,i){return n._handlers&&n._handlers[i]||La}function cn(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 g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Ot(n,i){var a=Zr(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}}),Ot(n,a||i.type,n,i),_n(i)||i.codemirrorIgnore}function sr(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)pe(a,i[l])==-1&&a.push(i[l])}function Fn(n,i){return Zr(n,i).length>0}function dr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){cn(this,i,a)}}function un(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Fo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function _n(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function ki(n){un(n),Fo(n)}function qs(n){return n.target||n.srcElement}function hr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var Vu=function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n}(),Ho;function Ma(n){if(Ho==null){var i=S("span","​");O(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Ho=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Ho?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Us;function Ti(n){if(Us!=null)return Us;var i=O(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return P(n),!a||a.left==a.right?!1:Us=l.right-a.right<3}var lr=`
22
+
23
+ b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
24
+ `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Ci=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Na=function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),pr=null;function Gu(n){if(pr!=null)return pr;var i=O(n,S("span","x")),a=i.getBoundingClientRect(),l=j(i,0,1).getBoundingClientRect();return pr=Math.abs(a.left-l.left)>1}var Bo={},gr={};function vr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Bo[n]=i}function uo(n,i){gr[n]=i}function Wo(n){if(typeof n=="string"&&gr.hasOwnProperty(n))n=gr[n];else if(n&&typeof n.name=="string"&&gr.hasOwnProperty(n.name)){var i=gr[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Wo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Wo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function qo(n,i){i=Wo(i);var a=Bo[i.name];if(!a)return qo(n,"text/plain");var l=a(n,i);if(Ei.hasOwnProperty(i.name)){var u=Ei[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var Ei={};function Uo(n,i){var a=Ei.hasOwnProperty(n)?Ei[n]:Ei[n]={};J(i,a)}function Ir(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function js(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function jo(n,i,a){return n.startState?n.startState(i,a):!0}var Pt=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pt.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},Pt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Pt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Pt.prototype.backUp=function(n){this.pos-=n},Pt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=X(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.indentation=function(){return X(this.string,null,this.tabSize)-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Pt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Pt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Re(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Jr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function Vs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Yn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=pe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function W(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],_=x.height;if(i<_)break;i-=_}return a+y}function fe(n,i){return i>=n.first&&i<n.first+n.size}function be(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function oe(n,i,a){if(a===void 0&&(a=null),!(this instanceof oe))return new oe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ae(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Ae(n,i)==0}function Kt(n){return oe(n.line,n.ch)}function Sn(n,i){return Ae(n,i)<0?i:n}function Vo(n,i){return Ae(n,i)<0?n:i}function cp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ge(n,i){if(i.line<n.first)return oe(n.first,0);var a=n.first+n.size-1;return i.line>a?oe(a,Re(n,a).text.length):G1(i,Re(n,i.line).text.length)}function G1(n,i){var a=n.ch;return a==null||a>i?oe(n.line,i):a<0?oe(n.line,0):n}function up(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var $a=function(n,i){this.state=n,this.lookAhead=i},Dr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Dr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Dr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Dr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dr.fromSaved=function(n,i,a){return i instanceof $a?new Dr(n,Ir(n.mode,i.state),a,i.lookAhead):new Dr(n,Ir(n.mode,i),a)},Dr.prototype.save=function(n){var i=n!==!1?Ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new $a(i,this.maxLookAhead):i};function fp(n,i,a,l){var u=[n.state.modeGen],g={};mp(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var D=n.state.overlays[k],q=1,Q=0;a.state=!0,mp(n,i.text,D.mode,a,function(Z,ae){for(var ge=q;Q<Z;){var we=u[q];we>Z&&u.splice(q,1,Z,u[q+1],we),q+=2,Q=Math.min(Z,we)}if(ae)if(D.opaque)u.splice(ge,q-ge,Z,"overlay "+ae),q=ge+2;else for(;ge<q;ge+=2){var ke=u[ge+1];u[ge+1]=(ke?ke+" ":"")+"overlay "+ae}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)x(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function dp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Gs(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Ir(n.doc.mode,l.state),g=fp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Gs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Dr(l,!0,i);var g=K1(n,i,a),y=g>l.first&&Re(l,g-1).stateAfter,x=y?Dr.fromSaved(l,y,g):new Dr(l,jo(l.mode),g);return l.iter(g,i,function(_){Ku(n,_.text,x);var k=x.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Ku(n,i,a,l){var u=n.doc.mode,g=new Pt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&hp(u,a.state);!g.eol();)Xu(u,g,a.state),g.start=g.pos}function hp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=js(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Xu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=js(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var pp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function gp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ge(u,i);var x=Re(u,i.line),_=Gs(n,i.line,a),k=new Pt(x.text,n.options.tabSize,_),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=Xu(g,k,_.state),l&&D.push(new pp(k,y,Ir(u.mode,_.state)));return l?D:new pp(k,y,_.state)}function vp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function mp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var _=0,k=null,D=new Pt(i,n.options.tabSize,l),q,Q=n.options.addModeClass&&[null];for(i==""&&vp(hp(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(x=!1,y&&Ku(n,i,l,D.pos),D.pos=i.length,q=null):q=vp(Xu(a,D,l.state,Q),g),Q){var Z=Q[0].name;Z&&(q="m-"+(q?Z+" "+q:Z))}if(!x||k!=q){for(;_<D.start;)_=Math.min(D.start,_+5e3),u(_,k);k=q}D.start=D.pos}for(;_<D.pos;){var ae=Math.min(D.pos,_+5e3);u(ae,k),_=ae}}function K1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var _=Re(g,x-1),k=_.stateAfter;if(k&&(!a||x+(k instanceof $a?k.lookAhead:0)<=g.modeFrontier))return x;var D=X(_.text,null,n.options.tabSize);(u==null||l>D)&&(u=x-1,l=D)}return u}function X1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Re(n,l).stateAfter;if(u&&(!(u instanceof $a)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var yp=!1,Qr=!1;function Y1(){yp=!0}function Z1(){Qr=!0}function Oa(n,i,a){this.marker=n,this.from=i,this.to=a}function Ks(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function J1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function Q1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function ex(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Oa(y,g.from,_?null:g.to))}}return l}function tx(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Oa(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Yu(n,i){if(i.full)return null;var a=fe(n,i.from.line)&&Re(n,i.from.line).markedSpans,l=fe(n,i.to.line)&&Re(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ae(i.from,i.to)==0,x=ex(a,u,y),_=tx(l,g,y),k=i.text.length==1,D=ve(i.text).length+(k?u:0);if(x)for(var q=0;q<x.length;++q){var Q=x[q];if(Q.to==null){var Z=Ks(_,Q.marker);Z?k&&(Q.to=Z.to==null?null:Z.to+D):Q.to=u}}if(_)for(var ae=0;ae<_.length;++ae){var ge=_[ae];if(ge.to!=null&&(ge.to+=D),ge.from==null){var we=Ks(x,ge.marker);we||(ge.from=D,k&&(x||(x=[])).push(ge))}else ge.from+=D,k&&(x||(x=[])).push(ge)}x&&(x=bp(x)),_&&_!=x&&(_=bp(_));var ke=[x];if(!k){var Me=i.text.length-2,Te;if(Me>0&&x)for(var $e=0;$e<x.length;++$e)x[$e].to==null&&(Te||(Te=[])).push(new Oa(x[$e].marker,null,null));for(var He=0;He<Me;++He)ke.push(Te);ke.push(_)}return ke}function bp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function nx(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Z){if(Z.markedSpans)for(var ae=0;ae<Z.markedSpans.length;++ae){var ge=Z.markedSpans[ae].marker;ge.readOnly&&(!l||pe(l,ge)==-1)&&(l||(l=[])).push(ge)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),_=0;_<u.length;++_){var k=u[_];if(!(Ae(k.to,x.from)<0||Ae(k.from,x.to)>0)){var D=[_,1],q=Ae(k.from,x.from),Q=Ae(k.to,x.to);(q<0||!y.inclusiveLeft&&!q)&&D.push({from:k.from,to:x.from}),(Q>0||!y.inclusiveRight&&!Q)&&D.push({from:x.to,to:k.to}),u.splice.apply(u,D),_+=D.length-3}}return u}function wp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function xp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ra(n){return n.inclusiveLeft?-1:0}function Pa(n){return n.inclusiveRight?1:0}function Zu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ae(l.from,u.from)||Ra(n)-Ra(i);if(g)return-g;var y=Ae(l.to,u.to)||Pa(n)-Pa(i);return y||i.id-n.id}function _p(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Zu(l,u.marker)<0)&&(l=u.marker);return l}function Sp(n){return _p(n,!0)}function Ia(n){return _p(n,!1)}function rx(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Zu(l,g.marker)<0)&&(l=g.marker)}return l}function kp(n,i,a,l,u){var g=Re(n,i),y=Qr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var _=y[x];if(_.marker.collapsed){var k=_.marker.find(0),D=Ae(k.from,a)||Ra(_.marker)-Ra(u),q=Ae(k.to,l)||Pa(_.marker)-Pa(u);if(!(D>=0&&q<=0||D<=0&&q>=0)&&(D<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.to,a)>=0:Ae(k.to,a)>0)||D>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.from,l)<=0:Ae(k.from,l)<0)))return!0}}}function mr(n){for(var i;i=Sp(n);)n=i.find(-1,!0).line;return n}function ix(n){for(var i;i=Ia(n);)n=i.find(1,!0).line;return n}function ox(n){for(var i,a;i=Ia(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Ju(n,i){var a=Re(n,i),l=mr(a);return a==l?i:C(l)}function Tp(n,i){if(i>n.lastLine())return i;var a=Re(n,i),l;if(!Ai(n,a))return i;for(;l=Ia(a);)a=l.find(1,!0).line;return C(a)+1}function Ai(n,i){var a=Qr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Qu(n,i,l))return!0}}}function Qu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Qu(n,l.line,Ks(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Qu(n,i,u))return!0}function ei(n){n=mr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function Da(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Sp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Ia(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function ef(n){var i=n.display,a=n.doc;i.maxLine=Re(a,a.first),i.maxLineLength=Da(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Da(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Go=function(n,i,a){this.text=n,xp(this,i),this.height=a?a(this):1};Go.prototype.lineNo=function(){return C(this)},dr(Go);function sx(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),wp(n),xp(n,a);var u=l?l(n):1;u!=n.height&&Yn(n,u)}function lx(n){n.parent=null,wp(n)}var ax={},cx={};function Cp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?cx:ax;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ep(n,i){var a=F("span",null,null,v?"padding-right: .1px":null),l={pre:F("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=fx,Ti(n.display.measure)&&(y=et(g,n.doc.direction))&&(l.addToken=hx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);px(g,l,dp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Pe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Pe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ma(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ot(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Pe(l.pre.className,l.textClass||"")),l}function ux(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function fx(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?dx(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,D;if(!_.test(i))n.col+=i.length,D=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var q=0;;){_.lastIndex=q;var Q=_.exec(i),Z=Q?Q.index-q:i.length-q;if(Z){var ae=document.createTextNode(x.slice(q,q+Z));h&&p<9?D.appendChild(S("span",[ae])):D.appendChild(ae),n.map.push(n.pos,n.pos+Z,ae),n.col+=Z,n.pos+=Z}if(!Q)break;q+=Z+1;var ge=void 0;if(Q[0]==" "){var we=n.cm.options.tabSize,ke=we-n.col%we;ge=D.appendChild(S("span",Ee(ke),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),n.col+=ke}else Q[0]=="\r"||Q[0]==`
25
+ `?(ge=D.appendChild(S("span",Q[0]=="\r"?"␍":"␤","cm-invalidchar")),ge.setAttribute("cm-text",Q[0]),n.col+=1):(ge=n.cm.options.specialCharPlaceholder(Q[0]),ge.setAttribute("cm-text",Q[0]),h&&p<9?D.appendChild(S("span",[ge])):D.appendChild(ge),n.col+=1);n.map.push(n.pos,n.pos+1,ge),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Me=a||"";l&&(Me+=l),u&&(Me+=u);var Te=S("span",[D],Me,g);if(y)for(var $e in y)y.hasOwnProperty($e)&&$e!="style"&&$e!="class"&&Te.setAttribute($e,y[$e]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function dx(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function hx(n,i){return function(a,l,u,g,y,x,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var q=void 0,Q=0;Q<i.length&&(q=i[Q],!(q.to>k&&q.from<=k));Q++);if(q.to>=D)return n(a,l,u,g,y,x,_);n(a,l.slice(0,q.to-k),u,g,null,x,_),g=null,l=l.slice(q.to-k),k=q.to}}}function Ap(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function px(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Cp(a[y+1],i.cm.options));return}for(var x=u.length,_=0,k=1,D="",q,Q,Z=0,ae,ge,we,ke,Me;;){if(Z==_){ae=ge=we=Q="",Me=null,ke=null,Z=1/0;for(var Te=[],$e=void 0,He=0;He<l.length;++He){var Ie=l[He],Je=Ie.marker;if(Je.type=="bookmark"&&Ie.from==_&&Je.widgetNode)Te.push(Je);else if(Ie.from<=_&&(Ie.to==null||Ie.to>_||Je.collapsed&&Ie.to==_&&Ie.from==_)){if(Ie.to!=null&&Ie.to!=_&&Z>Ie.to&&(Z=Ie.to,ge=""),Je.className&&(ae+=" "+Je.className),Je.css&&(Q=(Q?Q+";":"")+Je.css),Je.startStyle&&Ie.from==_&&(we+=" "+Je.startStyle),Je.endStyle&&Ie.to==Z&&($e||($e=[])).push(Je.endStyle,Ie.to),Je.title&&((Me||(Me={})).title=Je.title),Je.attributes)for(var _t in Je.attributes)(Me||(Me={}))[_t]=Je.attributes[_t];Je.collapsed&&(!ke||Zu(ke.marker,Je)<0)&&(ke=Ie)}else Ie.from>_&&Z>Ie.from&&(Z=Ie.from)}if($e)for(var Jt=0;Jt<$e.length;Jt+=2)$e[Jt+1]==Z&&(ge+=" "+$e[Jt]);if(!ke||ke.from==_)for(var Mt=0;Mt<Te.length;++Mt)Ap(i,0,Te[Mt]);if(ke&&(ke.from||0)==_){if(Ap(i,(ke.to==null?x+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=x)break;for(var Bn=Math.min(x,Z);;){if(D){var Cn=_+D.length;if(!ke){var Wt=Cn>Bn?D.slice(0,Bn-_):D;i.addToken(i,Wt,q?q+ae:ae,we,_+Wt.length==Z?ge:"",Q,Me)}if(Cn>=Bn){D=D.slice(Bn-_),_=Bn;break}_=Cn,we=""}D=u.slice(g,g=a[k++]),q=Cp(a[k++],i.cm.options)}}}function Lp(n,i,a){this.line=i,this.rest=ox(i),this.size=this.rest?C(ve(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ai(n,i)}function za(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Lp(n.doc,Re(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Ko=null;function gx(n){Ko?Ko.ops.push(n):n.ownsGroup=Ko={ops:[n],delayedCallbacks:[]}}function vx(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function mx(n,i){var a=n.ownsGroup;if(a)try{vx(a)}finally{Ko=null,i(a)}}var Xs=null;function Xt(n,i){var a=Zr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Ko?u=Ko.delayedCallbacks:Xs?u=Xs:(u=Xs=[],setTimeout(yx,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function yx(){var n=Xs;Xs=null;for(var i=0;i<n.length;++i)n[i]()}function Mp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?wx(n,i):g=="gutter"?$p(n,i,a,l):g=="class"?tf(n,i):g=="widget"&&xx(n,i,l)}i.changes=null}function Ys(n){return n.node==n.text&&(n.node=S("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function bx(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Ys(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Np(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ep(n,i)}function wx(n,i){var a=i.text.className,l=Np(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,tf(n,i)):a&&(i.text.className=a)}function tf(n,i){bx(n,i),i.line.wrapClass?Ys(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function $p(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=Ys(i);i.gutterBackground=S("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=Ys(i),x=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(S("div",be(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,D=g.hasOwnProperty(k)&&g[k];D&&x.appendChild(S("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function xx(n,i,a){i.alignable&&(i.alignable=null);for(var l=re("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Op(n,i,a)}function _x(n,i,a,l){var u=Np(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),tf(n,i),$p(n,i,a,l),Op(n,i,l),i.node}function Op(n,i,a){if(Rp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Rp(n,i.rest[l],i,a,!1)}function Rp(n,i,a,l,u){if(i.widgets)for(var g=Ys(a),y=0,x=i.widgets;y<x.length;++y){var _=x[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),Sx(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Xt(_,"redraw")}}function Sx(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Zs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!se(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),O(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ti(n,i){for(var a=qs(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Fa(n){return n.lineSpace.offsetTop}function nf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Pp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=O(n.measure,S("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function zr(n){return I-n.display.nativeBarWidth}function fo(n){return n.display.scroller.clientWidth-zr(n)-n.display.barWidth}function rf(n){return n.display.scroller.clientHeight-zr(n)-n.display.barHeight}function kx(n,i,a){var l=n.options.lineWrapping,u=l&&fo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var _=y[x],k=y[x+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Ip(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Tx(n,i){i=mr(i);var a=C(i),l=n.display.externalMeasured=new Lp(n.doc,i,a);l.lineN=a;var u=l.built=Ep(n,l);return l.text=u.pre,O(n.display.lineMeasure,u.pre),l}function Dp(n,i,a,l){return Fr(n,Xo(n,i),a,l)}function of(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[go(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Xo(n,i){var a=C(i),l=of(n,a);l&&!l.text?l=null:l&&l.changes&&(Mp(n,l,a,uf(n)),n.curOp.forceUpdate=!0),l||(l=Tx(n,i));var u=Ip(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Fr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(kx(n,i.view,i.rect),i.hasHeights=!0),y=Ex(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var zp={left:0,right:0,top:0,bottom:0};function Fp(n,i,a){for(var l,u,g,y,x,_,k=0;k<n.length;k+=3)if(x=n[k],_=n[k+1],i<x?(u=0,g=1,y="left"):i<_?(u=i-x,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-x,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],x==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==_-x)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:_}}function Cx(n,i){var a=zp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function Ex(n,i,a,l){var u=Fp(i.map,a,l),g=u.node,y=u.start,x=u.end,_=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&st(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&st(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=Cx(j(g,y,x).getClientRects(),l),k.left||k.right||y==0)break;x=y,y=y-1,_="right"}h&&p<11&&(k=Ax(n.display.measure,k))}else{y>0&&(_=l="right");var q;n.options.lineWrapping&&(q=g.getClientRects()).length>1?k=q[l=="right"?q.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var Q=g.parentNode.getClientRects()[0];Q?k={left:Q.left,right:Q.left+Zo(n.display),top:Q.top,bottom:Q.bottom}:k=zp}for(var Z=k.top-i.rect.top,ae=k.bottom-i.rect.top,ge=(Z+ae)/2,we=i.view.measure.heights,ke=0;ke<we.length-1&&!(ge<we[ke]);ke++);var Me=ke?we[ke-1]:0,Te=we[ke],$e={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Me,bottom:Te};return!k.left&&!k.right&&($e.bogus=!0),n.options.singleCursorHeightPerLine||($e.rtop=Z,$e.rbottom=ae),$e}function Ax(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Gu(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Hp(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Bp(n){n.display.externalMeasure=null,P(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Hp(n.display.view[i])}function Js(n){Bp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Wp(n){return b&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function qp(n){return b&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function sf(n){var i=mr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Zs(a[u]));return l}function Ha(n,i,a,l,u){if(!u){var g=sf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ei(i);if(l=="local"?y+=Fa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:qp(Ze(n)));var _=x.left+(l=="window"?0:Wp(Ze(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Up(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Wp(Ze(n)),u-=qp(Ze(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Ba(n,i,a,l,u){return l||(l=Re(n.doc,i.line)),Ha(n,l,Dp(n,l,i.ch,u),a)}function yr(n,i,a,l,u,g){l=l||Re(n.doc,i.line),u||(u=Xo(n,l));function y(ae,ge){var we=Fr(n,u,ae,ge?"right":"left",g);return ge?we.left=we.right:we.right=we.left,Ha(n,l,we,a)}var x=et(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!x)return y(k=="before"?_-1:_,k=="before");function D(ae,ge,we){var ke=x[ge],Me=ke.level==1;return y(we?ae-1:ae,Me!=we)}var q=zt(x,_,k),Q=Pr,Z=D(_,q,k=="before");return Q!=null&&(Z.other=D(_,Q,k!="before")),Z}function jp(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Zo(n.display)*i.ch);var l=Re(n.doc,i.line),u=ei(l)+Fa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function lf(n,i,a,l,u){var g=oe(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function af(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return lf(l.first,0,null,-1,-1);var u=W(l,a),g=l.first+l.size-1;if(u>g)return lf(l.first+l.size-1,Re(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Re(l,u);;){var x=Lx(n,y,u,i,a),_=rx(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var k=_.find(1);if(k.line==u)return k;y=Re(l,u=k.line)}}function Vp(n,i,a,l){l-=sf(i);var u=i.text.length,g=Bt(function(y){return Fr(n,a,y-1).bottom<=l},u,0);return u=Bt(function(y){return Fr(n,a,y).top>l},g,u),{begin:g,end:u}}function Gp(n,i,a,l){a||(a=Xo(n,i));var u=Ha(n,i,Fr(n,a,l),"line").top;return Vp(n,i,a,u)}function cf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Lx(n,i,a,l,u){u-=ei(i);var g=Xo(n,i),y=sf(i),x=0,_=i.text.length,k=!0,D=et(i,n.doc.direction);if(D){var q=(n.options.lineWrapping?Nx:Mx)(n,i,a,g,D,l,u);k=q.level!=1,x=k?q.from:q.to-1,_=k?q.to:q.from-1}var Q=null,Z=null,ae=Bt(function(He){var Ie=Fr(n,g,He);return Ie.top+=y,Ie.bottom+=y,cf(Ie,l,u,!1)?(Ie.top<=u&&Ie.left<=l&&(Q=He,Z=Ie),!0):!1},x,_),ge,we,ke=!1;if(Z){var Me=l-Z.left<Z.right-l,Te=Me==k;ae=Q+(Te?0:1),we=Te?"after":"before",ge=Me?Z.left:Z.right}else{!k&&(ae==_||ae==x)&&ae++,we=ae==0?"after":ae==i.text.length?"before":Fr(n,g,ae-(k?1:0)).bottom+y<=u==k?"after":"before";var $e=yr(n,oe(a,ae,we),"line",i,g);ge=$e.left,ke=u<$e.top?-1:u>=$e.bottom?1:0}return ae=Gt(i.text,ae,1),lf(a,ae,we,ke,l-ge)}function Mx(n,i,a,l,u,g,y){var x=Bt(function(q){var Q=u[q],Z=Q.level!=1;return cf(yr(n,oe(a,Z?Q.to:Q.from,Z?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[x];if(x>0){var k=_.level!=1,D=yr(n,oe(a,k?_.from:_.to,k?"after":"before"),"line",i,l);cf(D,g,y,!0)&&D.top>y&&(_=u[x-1])}return _}function Nx(n,i,a,l,u,g,y){var x=Vp(n,i,l,y),_=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,q=null,Q=0;Q<u.length;Q++){var Z=u[Q];if(!(Z.from>=k||Z.to<=_)){var ae=Z.level!=1,ge=Fr(n,l,ae?Math.min(k,Z.to)-1:Math.max(_,Z.from)).right,we=ge<g?g-ge+1e9:ge-g;(!D||q>we)&&(D=Z,q=we)}}return D||(D=u[u.length-1]),D.from<_&&(D={from:_,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var ho;function Yo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ho==null){ho=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ho.appendChild(document.createTextNode("x")),ho.appendChild(S("br"));ho.appendChild(document.createTextNode("x"))}O(n.measure,ho);var a=ho.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),P(n.measure),a||1}function Zo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");O(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function uf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:ff(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function ff(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Kp(n){var i=Yo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Zo(n.display)-3);return function(u){if(Ai(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function df(n){var i=n.doc,a=Kp(n);i.iter(function(l){var u=a(l);u!=l.height&&Yn(l,u)})}function po(n,i,a,l){var u=n.display;if(!a&&qs(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var _=af(n,g,y),k;if(l&&_.xRel>0&&(k=Re(n.doc,_.line).text).length==_.ch){var D=X(k,k.length,n.options.tabSize)-k.length;_=oe(_.line,Math.max(0,Math.round((g-Pp(n.display).left)/Zo(n.display))-D))}return _}function go(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function kn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Qr&&Ju(n.doc,i)<u.viewTo&&Mi(n);else if(a<=u.viewFrom)Qr&&Tp(n.doc,a+l)>u.viewFrom?Mi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Mi(n);else if(i<=u.viewFrom){var g=Wa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Mi(n)}else if(a>=u.viewTo){var y=Wa(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Mi(n)}else{var x=Wa(n,i,i,-1),_=Wa(n,a,a+l,1);x&&_?(u.view=u.view.slice(0,x.index).concat(za(n,x.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):Mi(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Li(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[go(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);pe(y,a)==-1&&y.push(a)}}}function Mi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Wa(n,i,a,l){var u=go(n,i),g,y=n.display.view;if(!Qr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,_=0;_<u;_++)x+=y[_].size;if(x!=i){if(l>0){if(u==y.length-1)return null;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;Ju(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function $x(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=za(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=za(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(go(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(za(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,go(n,a)))),l.viewTo=a}function Xp(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Qs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Yp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var _=a.sel.ranges[x];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(y){var D=y(n,_);D&&hf(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&hf(n,_.head,u);k||Ox(n,_,g)}}return l}function hf(n,i,a){var l=yr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Ba(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function qa(n,i){return n.top-i.top||n.left-i.left}function Ox(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Pp(n.display),x=y.left,_=Math.max(l.sizerWidth,fo(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,$e,He,Ie){$e<0&&($e=0),$e=Math.round($e),Ie=Math.round(Ie),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
26
+ top: `+$e+"px; width: "+(He??_-Te)+`px;
27
+ height: `+(Ie-$e)+"px"))}function q(Te,$e,He){var Ie=Re(u,Te),Je=Ie.text.length,_t,Jt;function Mt(Wt,En){return Ba(n,oe(Te,Wt),"div",Ie,En)}function Bn(Wt,En,sn){var jt=Gp(n,Ie,null,Wt),qt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?jt.begin:jt.end-(/\s/.test(Ie.text.charAt(jt.end-1))?2:1);return Mt(It,qt)[qt]}var Cn=et(Ie,u.direction);return Dn(Cn,$e||0,He??Je,function(Wt,En,sn,jt){var qt=sn=="ltr",It=Mt(Wt,qt?"left":"right"),An=Mt(En-1,qt?"right":"left"),us=$e==null&&Wt==0,Ii=He==null&&En==Je,dn=jt==0,Hr=!Cn||jt==Cn.length-1;if(An.top-It.top<=3){var Qt=(k?us:Ii)&&dn,Hf=(k?Ii:us)&&Hr,ii=Qt?x:(qt?It:An).left,wo=Hf?_:(qt?An:It).right;D(ii,It.top,wo-ii,It.bottom)}else{var xo,vn,fs,Bf;qt?(xo=k&&us&&dn?x:It.left,vn=k?_:Bn(Wt,sn,"before"),fs=k?x:Bn(En,sn,"after"),Bf=k&&Ii&&Hr?_:An.right):(xo=k?Bn(Wt,sn,"before"):x,vn=!k&&us&&dn?_:It.right,fs=!k&&Ii&&Hr?x:An.left,Bf=k?Bn(En,sn,"after"):_),D(xo,It.top,vn-xo,It.bottom),It.bottom<An.top&&D(x,It.bottom,null,An.top),D(fs,An.top,Bf-fs,An.bottom)}(!_t||qa(It,_t)<0)&&(_t=It),qa(An,_t)<0&&(_t=An),(!Jt||qa(It,Jt)<0)&&(Jt=It),qa(An,Jt)<0&&(Jt=An)}),{start:_t,end:Jt}}var Q=i.from(),Z=i.to();if(Q.line==Z.line)q(Q.line,Q.ch,Z.ch);else{var ae=Re(u,Q.line),ge=Re(u,Z.line),we=mr(ae)==mr(ge),ke=q(Q.line,Q.ch,we?ae.text.length+1:null).end,Me=q(Z.line,we?0:null,Z.ch).start;we&&(ke.top<Me.top-2?(D(ke.right,ke.top,null,ke.bottom),D(x,Me.top,Me.left,Me.bottom)):D(ke.right,ke.top,Me.left-ke.right,ke.bottom)),ke.bottom<Me.top&&D(x,ke.bottom,null,Me.top)}a.appendChild(g)}function pf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Jo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Zp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||vf(n))}function gf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Jo(n))},100)}function vf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Ot(n,"focus",n,i),n.state.focused=!0,_e(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),pf(n))}function Jo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Ot(n,"blur",n,i),n.state.focused=!1,$(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ua(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var x=i.view[y],_=n.options.lineWrapping,k=void 0,D=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var q=x.node.offsetTop+x.node.offsetHeight;k=q-a,a=q}else{var Q=x.node.getBoundingClientRect();k=Q.bottom-Q.top,!_&&x.text.firstChild&&(D=x.text.firstChild.getBoundingClientRect().right-Q.left-1)}var Z=x.line.height-k;if((Z>.005||Z<-.005)&&(u<l&&(g-=Z),Yn(x.line,k),Jp(x.line),x.rest))for(var ae=0;ae<x.rest.length;ae++)Jp(x.rest[ae]);if(D>n.display.sizerWidth){var ge=Math.ceil(D/Zo(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function Jp(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function ja(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Fa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=W(i,l),y=W(i,u);if(a&&a.ensure){var x=a.ensure.from.line,_=a.ensure.to.line;x<g?(g=x,y=W(i,ei(Re(i,x))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=W(i,ei(Re(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function Rx(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!L){var y=S("div","​",null,`position: absolute;
28
+ top: `+(i.top-a.viewOffset-Fa(n.display))+`px;
29
+ height: `+(i.bottom-i.top+zr(n)+a.barHeight)+`px;
30
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Px(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?oe(i.line,i.ch+1,"before"):i,i=i.ch?oe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=yr(n,i),_=!a||a==i?x:yr(n,a);u={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-l,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+l};var k=mf(n,u),D=n.doc.scrollTop,q=n.doc.scrollLeft;if(k.scrollTop!=null&&(tl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(vo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-q)>1&&(y=!0)),!y)break}return u}function Ix(n,i){var a=mf(n,i);a.scrollTop!=null&&tl(n,a.scrollTop),a.scrollLeft!=null&&vo(n,a.scrollLeft)}function mf(n,i){var a=n.display,l=Yo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=rf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+nf(a),_=i.top<l,k=i.bottom>x-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?x:i.bottom)-g);D!=u&&(y.scrollTop=D)}var q=n.options.fixedGutter?0:a.gutters.offsetWidth,Q=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-q,Z=fo(n)-a.gutters.offsetWidth,ae=i.right-i.left>Z;return ae&&(i.right=i.left+Z),i.left<10?y.scrollLeft=0:i.left<Q?y.scrollLeft=Math.max(0,i.left+q-(ae?0:10)):i.right>Z+Q-3&&(y.scrollLeft=i.right+(ae?0:10)-Z),y}function yf(n,i){i!=null&&(Va(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Qo(n){Va(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function el(n,i,a){(i!=null||a!=null)&&Va(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Dx(n,i){Va(n),n.curOp.scrollToPos=i}function Va(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=jp(n,i.from),l=jp(n,i.to);Qp(n,a,l,i.margin)}}function Qp(n,i,a,l){var u=mf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});el(n,u.scrollLeft,u.scrollTop)}function tl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||wf(n,{top:i}),eg(n,i,!0),s&&wf(n),il(n,100))}function eg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function vo(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,og(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function nl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+nf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+zr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var mo=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},mo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mo.prototype.zeroWidthHack=function(){var n=B&&!T?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},mo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},mo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var rl=function(){};rl.prototype.update=function(){return{bottom:0,right:0}},rl.prototype.setScrollLeft=function(){},rl.prototype.setScrollTop=function(){},rl.prototype.clear=function(){};function es(n,i){i||(i=nl(n));var a=n.display.barWidth,l=n.display.barHeight;tg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ua(n),tg(n,nl(n)),a=n.display.barWidth,l=n.display.barHeight}function tg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var ng={native:mo,null:rl};function rg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&$(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ng[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?vo(n,i):tl(n,i)},n),n.display.scrollbars.addClass&&_e(n.display.wrapper,n.display.scrollbars.addClass)}var zx=0;function yo(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zx,markArrays:null},gx(n.curOp)}function bo(n){var i=n.curOp;i&&mx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Fx(a)})}function Fx(n){for(var i=n.ops,a=0;a<i.length;a++)Hx(i[a]);for(var l=0;l<i.length;l++)Bx(i[l]);for(var u=0;u<i.length;u++)Wx(i[u]);for(var g=0;g<i.length;g++)qx(i[g]);for(var y=0;y<i.length;y++)Ux(i[y])}function Hx(n){var i=n.cm,a=i.display;Vx(i),n.updateMaxLine&&ef(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new Ga(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Bx(n){n.updatedDisplay=n.mustUpdate&&bf(n.cm,n.update)}function Wx(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ua(i),n.barMeasure=nl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Dp(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+zr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-fo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function qx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&vo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(Ke(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&es(i,n.barMeasure),n.updatedDisplay&&_f(i,n.barMeasure),n.selectionChanged&&pf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Zp(n.cm)}function Ux(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&ig(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&eg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&vo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Px(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);Rx(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Ot(g[x],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&Ot(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Ot(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Hn(n,i){if(n.curOp)return i();yo(n);try{return i()}finally{bo(n)}}function Yt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);yo(n);try{return i.apply(n,arguments)}finally{bo(n)}}}function gn(n){return function(){if(this.curOp)return n.apply(this,arguments);yo(this);try{return n.apply(this,arguments)}finally{bo(this)}}}function Zt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);yo(i);try{return n.apply(this,arguments)}finally{bo(i)}}}function il(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,z(jx,n))}function jx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Gs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,x=g.text.length>n.options.maxHighlightLength?Ir(i.mode,l.state):null,_=fp(n,g,l,!0);x&&(l.state=x),g.styles=_.styles;var k=g.styleClasses,D=_.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var q=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),Q=0;!q&&Q<y.length;++Q)q=y[Q]!=g.styles[Q];q&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Ku(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return il(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Hn(n,function(){for(var g=0;g<u.length;g++)Li(n,u[g],"text")})}}var Ga=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ja(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=fo(n),this.force=a,this.dims=uf(n),this.events=[]};Ga.prototype.signal=function(n,i){Fn(n,i)&&this.events.push(arguments)},Ga.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Ot.apply(null,this.events[n])};function Vx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=zr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=zr(n)+"px",i.scrollbarsClipped=!0)}function Gx(n){if(n.hasFocus())return null;var i=me(Ke(n));if(!i||!se(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=te(n).getSelection();l.anchorNode&&l.extend&&se(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Kx(n){if(!(!n||!n.activeElt||n.activeElt==me(Xe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&se(document.body,n.anchorNode)&&se(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function bf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Mi(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Xp(n)==0)return!1;sg(n)&&(Mi(n),i.dims=uf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Qr&&(g=Ju(n.doc,g),y=Tp(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;$x(n,g,y),a.viewOffset=ei(Re(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Xp(n);if(!x&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=Gx(n);return _>4&&(a.lineDiv.style.display="none"),Xx(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Kx(k),P(a.cursorDiv),P(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,il(n,400)),a.updateLineNumbers=null,!0}function ig(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==fo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+nf(n.display)-rf(n),a.top)}),i.visible=ja(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ja(n.display,n.doc,a));if(!bf(n,i))break;Ua(n);var u=nl(n);Qs(n),es(n,u),_f(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function wf(n,i){var a=new Ga(n,i);if(bf(n,a)){Ua(n),ig(n,a);var l=nl(n);Qs(n),es(n,l),_f(n,l),a.finish()}}function Xx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ae){var ge=ae.nextSibling;return v&&B&&n.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),ge}for(var _=l.view,k=l.viewFrom,D=0;D<_.length;D++){var q=_[D];if(!q.hidden)if(!q.node||q.node.parentNode!=g){var Q=_x(n,q,k,a);g.insertBefore(Q,y)}else{for(;y!=q.node;)y=x(y);var Z=u&&i!=null&&i<=k&&q.lineNumber;q.changes&&(pe(q.changes,"gutter")>-1&&(Z=!1),Mp(n,q,k,a)),Z&&(P(q.lineNumber),q.lineNumber.appendChild(document.createTextNode(be(n.options,k)))),y=q.node.nextSibling}k+=q.size}for(;y;)y=x(y)}function xf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Xt(n,"gutterChanged",n)}function _f(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+zr(n)+"px"}function og(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=ff(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var x=a[y].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function sg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=be(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",xf(n.display),!0}return!1}function Sf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function lg(n){var i=n.gutters,a=n.gutterSpecs;P(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(S("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",xf(n)}function ol(n){lg(n.display),kn(n),og(n)}function Yx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=F("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=F("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=F("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+I+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&M)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Sf(l.gutters,l.lineNumbers),lg(u),a.init(u)}var Ka=0,ni=null;h?ni=-.53:s?ni=15:b?ni=-.7:N&&(ni=-1/3);function ag(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Zx(n){var i=ag(n);return i.x*=ni,i.y*=ni,i}function cg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=ag(i),l=a.x,u=a.y,g=ni;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,_=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(l&&_||u&&k){if(u&&B&&v){e:for(var D=i.target,q=y.view;D!=x;D=D.parentNode)for(var Q=0;Q<q.length;Q++)if(q[Q].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!E&&g!=null){u&&k&&tl(n,Math.max(0,x.scrollTop+u*g)),vo(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&k)&&un(i),y.wheelStartX=null;return}if(u&&g!=null){var Z=u*g,ae=n.doc.scrollTop,ge=ae+y.wrapper.clientHeight;Z<0?ae=Math.max(0,ae+Z-50):ge=Math.min(n.doc.height,ge+Z+50),wf(n,{top:ae,bottom:ge})}Ka<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var we=x.scrollLeft-y.wheelStartX,ke=x.scrollTop-y.wheelStartY,Me=ke&&y.wheelDY&&ke/y.wheelDY||we&&y.wheelDX&&we/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Me&&(ni=(ni*Ka+Me)/(Ka+1),++Ka)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Zn=function(n,i){this.ranges=n,this.primIndex=i};Zn.prototype.primary=function(){return this.ranges[this.primIndex]},Zn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ft(a.anchor,l.anchor)||!ft(a.head,l.head))return!1}return!0},Zn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new dt(Kt(this.ranges[i].anchor),Kt(this.ranges[i].head));return new Zn(n,this.primIndex)},Zn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Zn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ae(i,l.from())>=0&&Ae(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return Vo(this.anchor,this.head)},dt.prototype.to=function(){return Sn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function br(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(Q,Z){return Ae(Q.from(),Z.from())}),a=pe(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],_=Ae(x.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Vo(x.from(),y.from()),D=Sn(x.to(),y.to()),q=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(q?D:k,q?k:D))}}return new Zn(i,a)}function Ni(n,i){return new Zn([new dt(n,i||n)],0)}function $i(n){return n.text?oe(n.from.line+n.text.length-1,ve(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function ug(n,i){if(Ae(n,i.from)<0)return n;if(Ae(n,i.to)<=0)return $i(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=$i(i).ch-i.to.ch),oe(a,l)}function kf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new dt(ug(u.anchor,i),ug(u.head,i)))}return br(n.cm,a,n.sel.primIndex)}function fg(n,i,a){return n.line==i.line?oe(a.line,n.ch-i.ch+a.ch):oe(a.line+(n.line-i.line),n.ch)}function Jx(n,i,a){for(var l=[],u=oe(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],_=fg(x.from,u,g),k=fg($i(x),u,g);if(u=x.to,g=k,a=="around"){var D=n.sel.ranges[y],q=Ae(D.head,D.anchor)<0;l[y]=new dt(q?k:_,q?_:k)}else l[y]=new dt(_,_)}return new Zn(l,n.sel.primIndex)}function Tf(n){n.doc.mode=qo(n.options,n.doc.modeOption),sl(n)}function sl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,il(n,100),n.state.modeGen++,n.curOp&&kn(n)}function dg(n,i){return i.from.ch==0&&i.to.ch==0&&ve(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Cf(n,i,a,l){function u(Me){return a?a[Me]:null}function g(Me,Te,$e){sx(Me,Te,$e,l),Xt(Me,"change",Me,i)}function y(Me,Te){for(var $e=[],He=Me;He<Te;++He)$e.push(new Go(k[He],u(He),l));return $e}var x=i.from,_=i.to,k=i.text,D=Re(n,x.line),q=Re(n,_.line),Q=ve(k),Z=u(k.length-1),ae=_.line-x.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(dg(n,i)){var ge=y(0,k.length-1);g(q,q.text,Z),ae&&n.remove(x.line,ae),ge.length&&n.insert(x.line,ge)}else if(D==q)if(k.length==1)g(D,D.text.slice(0,x.ch)+Q+D.text.slice(_.ch),Z);else{var we=y(1,k.length-1);we.push(new Go(Q+D.text.slice(_.ch),Z,l)),g(D,D.text.slice(0,x.ch)+k[0],u(0)),n.insert(x.line+1,we)}else if(k.length==1)g(D,D.text.slice(0,x.ch)+k[0]+q.text.slice(_.ch),u(0)),n.remove(x.line+1,ae);else{g(D,D.text.slice(0,x.ch)+k[0],u(0)),g(q,Q+q.text.slice(_.ch),Z);var ke=y(1,k.length-1);ae>1&&n.remove(x.line+1,ae-1),n.insert(x.line+1,ke)}Xt(n,"change",n,i)}function Oi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var _=u.linked[x];if(_.doc!=g){var k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function hg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,df(n),Tf(n),pg(n),n.options.direction=i.direction,n.options.lineWrapping||ef(n),n.options.mode=i.modeOption,kn(n)}function pg(n){(n.doc.direction=="rtl"?_e:$)(n.display.lineDiv,"CodeMirror-rtl")}function Qx(n){Hn(n,function(){pg(n),kn(n)})}function Xa(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Ef(n,i){var a={from:Kt(i.from),to:$i(i),text:Jr(n,i.from,i.to)};return mg(n,a,i.from.line,i.to.line+1),Oi(n,function(l){return mg(l,a,i.from.line,i.to.line+1)},!0),a}function gg(n){for(;n.length;){var i=ve(n);if(i.ranges)n.pop();else break}}function e_(n,i){if(i)return gg(n.done),ve(n.done);if(n.done.length&&!ve(n.done).ranges)return ve(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ve(n.done)}function vg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=e_(u,u.lastOp==l)))x=ve(y.changes),Ae(i.from,i.to)==0&&Ae(i.from,x.to)==0?x.to=$i(i):y.changes.push(Ef(n,i));else{var _=ve(u.done);for((!_||!_.ranges)&&Ya(n.sel,u.done),y={changes:[Ef(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Ot(n,"historyAdded")}function t_(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function n_(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||t_(n,g,ve(u.done),i))?u.done[u.done.length-1]=i:Ya(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&gg(u.undone)}function Ya(n,i){var a=ve(i);a&&a.ranges&&a.equals(n)||i.push(n)}function mg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function r_(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function i_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(r_(a[u]));return l}function yg(n,i){var a=i_(n,i),l=Yu(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var x=0;x<y.length;++x){for(var _=y[x],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function ts(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Zn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var _=0;_<y.length;++_){var k=y[_],D=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var q in k)(D=q.match(/^spans_(\d+)$/))&&pe(i,Number(D[1]))>-1&&(ve(x)[q]=k[q],delete k[q])}}return l}function Af(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ae(i,u)<0;g!=Ae(a,u)<0?(u=i,i=a):g!=Ae(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Za(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),fn(n,new Zn([Af(n.sel.primary(),i,a,u)],0),l)}function bg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Af(n.sel.ranges[g],i[g],null,u);var y=br(n.cm,l,n.sel.primIndex);fn(n,y,a)}function Lf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,fn(n,br(n.cm,u,n.sel.primIndex),l)}function wg(n,i,a,l){fn(n,Ni(i,a),l)}function o_(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new dt(Ge(n,u[g].anchor),Ge(n,u[g].head))},origin:a&&a.origin};return Ot(n,"beforeSelectionChange",n,l),n.cm&&Ot(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?br(n.cm,l.ranges,l.ranges.length-1):i}function xg(n,i,a){var l=n.history.done,u=ve(l);u&&u.ranges?(l[l.length-1]=i,Ja(n,i,a)):fn(n,i,a)}function fn(n,i,a){Ja(n,i,a),n_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ja(n,i,a){(Fn(n,"beforeSelectionChange")||n.cm&&Fn(n.cm,"beforeSelectionChange"))&&(i=o_(n,i,a));var l=a&&a.bias||(Ae(i.primary().head,n.sel.primary().head)<0?-1:1);_g(n,kg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Qo(n.cm)}function _g(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,sr(n.cm)),Xt(n,"cursorActivity",n))}function Sg(n){_g(n,kg(n,n.sel,null,!1))}function kg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Qa(n,y.anchor,x&&x.anchor,a,l),k=y.head==y.anchor?_:Qa(n,y.head,x&&x.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(_,k))}return u?br(n.cm,u,i.primIndex):i}function ns(n,i,a,l,u){var g=Re(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],_=x.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,D="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(k?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(D?x.to>=i.ch:x.to>i.ch))){if(u&&(Ot(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var q=_.find(l<0?1:-1),Q=void 0;if((l<0?D:k)&&(q=Tg(n,q,-l,q&&q.line==i.line?g:null)),q&&q.line==i.line&&(Q=Ae(q,a))&&(l<0?Q<0:Q>0))return ns(n,q,i,l,u)}var Z=_.find(l<0?-1:1);return(l<0?k:D)&&(Z=Tg(n,Z,l,Z.line==i.line?g:null)),Z?ns(n,Z,i,l,u):null}}return i}function Qa(n,i,a,l,u){var g=l||1,y=ns(n,i,a,g,u)||!u&&ns(n,i,a,g,!0)||ns(n,i,a,-g,u)||!u&&ns(n,i,a,-g,!0);return y||(n.cantEdit=!0,oe(n.first,0))}function Tg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,oe(i.line-1)):null:a>0&&i.ch==(l||Re(n,i.line)).text.length?i.line<n.first+n.size-1?oe(i.line+1,0):null:new oe(i.line,i.ch+a)}function Cg(n){n.setSelection(oe(n.firstLine(),0),oe(n.lastLine()),Y)}function Eg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,x){u&&(l.from=Ge(n,u)),g&&(l.to=Ge(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Ot(n,"beforeChange",n,l),n.cm&&Ot(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function rs(n,i,a){if(n.cm){if(!n.cm.curOp)return Yt(n.cm,rs)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Fn(n,"beforeChange")||n.cm&&Fn(n.cm,"beforeChange"))&&(i=Eg(n,i,!0),!i))){var l=yp&&!a&&nx(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Ag(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Ag(n,i)}}function Ag(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ae(i.from,i.to)==0)){var a=kf(n,i);vg(n,i,a,n.cm?n.cm.curOp.id:NaN),ll(n,i,a,Yu(n,i));var l=[];Oi(n,function(u,g){!g&&pe(l,u.history)==-1&&($g(u.history,i),l.push(u.history)),ll(u,i,null,Yu(u,i))})}}function ec(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,k=0;k<x.length&&(g=x[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(Ya(g,_),a&&!g.equals(n.sel)){fn(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var D=[];Ya(y,_),_.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var q=Fn(n,"beforeChange")||n.cm&&Fn(n.cm,"beforeChange"),Q=function(ge){var we=g.changes[ge];if(we.origin=i,q&&!Eg(n,we,!1))return x.length=0,{};D.push(Ef(n,we));var ke=ge?kf(n,we):ve(x);ll(n,we,ke,yg(n,we)),!ge&&n.cm&&n.cm.scrollIntoView({from:we.from,to:$i(we)});var Me=[];Oi(n,function(Te,$e){!$e&&pe(Me,Te.history)==-1&&($g(Te.history,we),Me.push(Te.history)),ll(Te,we,null,yg(Te,we))})},Z=g.changes.length-1;Z>=0;--Z){var ae=Q(Z);if(ae)return ae.v}}}}function Lg(n,i){if(i!=0&&(n.first+=i,n.sel=new Zn(ye(n.sel.ranges,function(u){return new dt(oe(u.anchor.line+i,u.anchor.ch),oe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){kn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Li(n.cm,l,"gutter")}}function ll(n,i,a,l){if(n.cm&&!n.cm.curOp)return Yt(n.cm,ll)(n,i,a,l);if(i.to.line<n.first){Lg(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Lg(n,u),i={from:oe(n.first,0),to:oe(i.to.line+u,i.to.ch),text:[ve(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:oe(g,Re(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Jr(n,i.from,i.to),a||(a=kf(n,i)),n.cm?s_(n.cm,i,l):Cf(n,i,l),Ja(n,a,Y),n.cantEdit&&Qa(n,oe(n.firstLine(),0))&&(n.cantEdit=!1)}}function s_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,_=g.line;n.options.lineWrapping||(_=C(mr(Re(l,g.line))),l.iter(_,y.line+1,function(Z){if(Z==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&sr(n),Cf(l,i,a,Kp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(Z){var ae=Da(Z);ae>u.maxLineLength&&(u.maxLine=Z,u.maxLineLength=ae,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),X1(l,g.line),il(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?kn(n):g.line==y.line&&i.text.length==1&&!dg(n.doc,i)?Li(n,g.line,"text"):kn(n,g.line,y.line+1,k);var D=Fn(n,"changes"),q=Fn(n,"change");if(q||D){var Q={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};q&&Xt(n,"change",n,Q),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(Q)}n.display.selForContextMenu=null}function is(n,i,a,l,u){var g;l||(l=a),Ae(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),rs(n,{from:a,to:l,text:i,origin:u})}function Mg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Ng(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var x=0;x<g.ranges.length;x++)Mg(g.ranges[x].anchor,i,a,l),Mg(g.ranges[x].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=oe(k.from.line+l,k.from.ch),k.to=oe(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function $g(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Ng(n.done,a,l,u),Ng(n.undone,a,l,u)}function al(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Re(n,cp(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&Li(n.cm,u,a),g)}function cl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,lx(u),Xt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function ul(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}ul.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof cl))){var x=[];this.collapse(x),this.children=[new cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var _=new cl(u.lines.slice(x,x+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new ul(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=pe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new ul(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var fl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};fl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Zs(this);Yn(a,Math.max(0,a.height-g)),n&&(Hn(n,function(){Og(n,a,-g),Li(n,l,"widget")}),Xt(n,"lineWidgetCleared",n,this,l))}},fl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Zs(this)-i;u&&(Ai(this.doc,l)||Yn(l,l.height+u),a&&Hn(a,function(){a.curOp.forceUpdate=!0,Og(a,l,u),Xt(a,"lineWidgetChanged",a,n,C(l))}))},dr(fl);function Og(n,i,a){ei(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&yf(n,a)}function l_(n,i,a,l){var u=new fl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),al(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Ai(n,y)){var _=ei(y)<n.scrollTop;Yn(y,y.height+Zs(u)),_&&yf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Xt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var Rg=0,Ri=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Rg};Ri.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&yo(n),Fn(this,"clear")){var a=this.find();a&&Xt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=Ks(y.markedSpans,this);n&&!this.collapsed?Li(n,C(y),"text"):n&&(x.to!=null&&(u=C(y)),x.from!=null&&(l=C(y))),y.markedSpans=J1(y.markedSpans,x),x.from==null&&this.collapsed&&!Ai(this.doc,y)&&n&&Yn(y,Yo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=mr(this.lines[_]),D=Da(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&kn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Sg(n.doc)),n&&Xt(n,"markerCleared",n,this,l,u),i&&bo(n),this.parent&&this.parent.clear()}},Ri.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=Ks(g.markedSpans,this);if(y.from!=null&&(a=oe(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=oe(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ri.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Hn(l,function(){var u=i.line,g=C(i.line),y=of(l,g);if(y&&(Hp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ai(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var _=Zs(a)-x;_&&Yn(u,u.height+_)}Xt(l,"markerChanged",l,n)})},Ri.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||pe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ri.prototype.detachLine=function(n){if(this.lines.splice(pe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},dr(Ri);function os(n,i,a,l,u){if(l&&l.shared)return a_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Yt(n.cm,os)(n,i,a,l,u);var g=new Ri(n,u),y=Ae(i,a);if(l&&J(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=F("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(kp(n,i.line,i,a,g)||i.line!=a.line&&kp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Z1()}g.addToHistory&&vg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,_=n.cm,k;if(n.iter(x,a.line+1,function(q){_&&g.collapsed&&!_.options.lineWrapping&&mr(q)==_.display.maxLine&&(k=!0),g.collapsed&&x!=i.line&&Yn(q,0),Q1(q,new Oa(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(q){Ai(n,q)&&Yn(q,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Y1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Rg,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)kn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)Li(_,D,"text");g.atomic&&Sg(_.doc),Xt(_,"markerAdded",_,g)}return g}var dl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};dl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Xt(this,"clear")}},dl.prototype.find=function(n,i){return this.primary.find(n,i)},dr(dl);function a_(n,i,a,l,u){l=J(l),l.shared=!1;var g=[os(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Oi(n,function(_){x&&(l.widgetNode=x.cloneNode(!0)),g.push(os(_,Ge(_,i),Ge(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=ve(g)}),new dl(g,y)}function Pg(n){return n.findMarks(oe(n.first,0),n.clipPos(oe(n.lastLine())),function(i){return i.parent})}function c_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Ae(g,y)){var x=os(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function u_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Oi(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];pe(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var f_=0,Tn=function(n,i,a,l,u){if(!(this instanceof Tn))return new Tn(n,i,a,l,u);a==null&&(a=0),ul.call(this,[new cl([new Go("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=oe(a,0);this.sel=Ni(g),this.history=new Xa(null),this.id=++f_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Cf(this,{from:g,to:g,text:n}),fn(this,Ni(g),Y)};Tn.prototype=De(ul.prototype,{constructor:Tn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=Vs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Zt(function(n){var i=oe(this.first,0),a=this.first+this.size-1;rs(this,{from:i,to:oe(a,Re(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&el(this.cm,0,0),fn(this,Ni(i),Y)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,is(this,n,i,a,l)},getRange:function(n,i,a){var l=Jr(this,Ge(this,n),Ge(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(fe(this,n))return Re(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Re(this,n)),mr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ge(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zt(function(n,i,a){wg(this,Ge(this,typeof n=="number"?oe(n,i||0):n),null,a)}),setSelection:Zt(function(n,i,a){wg(this,Ge(this,n),Ge(this,i||n),a)}),extendSelection:Zt(function(n,i,a){Za(this,Ge(this,n),i&&Ge(this,i),a)}),extendSelections:Zt(function(n,i){bg(this,up(this,n),i)}),extendSelectionsBy:Zt(function(n,i){var a=ye(this.sel.ranges,n);bg(this,up(this,a),i)}),setSelections:Zt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new dt(Ge(this,n[u].anchor),Ge(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),fn(this,br(this.cm,l,i),a)}}),addSelection:Zt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new dt(Ge(this,n),Ge(this,i||n))),fn(this,br(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Jr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=Jr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Zt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var x=i&&i!="end"&&Jx(this,l,i),_=l.length-1;_>=0;_--)rs(this,l[_]);x?xg(this,x):this.cm&&Qo(this.cm)}),undo:Zt(function(){ec(this,"undo")}),redo:Zt(function(){ec(this,"redo")}),undoSelection:Zt(function(){ec(this,"undo",!0)}),redoSelection:Zt(function(){ec(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new Xa(this.history),Oi(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ts(this.history.done),undone:ts(this.history.undone)}},setHistory:function(n){var i=this.history=new Xa(this.history);i.done=ts(n.done.slice(0),null,!0),i.undone=ts(n.undone.slice(0),null,!0)},setGutterMarker:Zt(function(n,i,a){return al(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&lt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Zt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&al(i,a,"gutter",function(){return a.gutterMarkers[n]=null,lt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Re(this,n),!n))return null}else if(i=C(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Zt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(re(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Zt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(re(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:Zt(function(n,i,a){return l_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return os(this,Ge(this,n),Ge(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ge(this,n),os(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Re(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ge(this,n),i=Ge(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var x=0;x<y.length;x++){var _=y[x];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ge(this,oe(a,i))},indexFromPos:function(n){n=Ge(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new Tn(Vs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new Tn(Vs(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],c_(l,Pg(this)),l},unlinkDoc:function(n){if(n instanceof Et&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),u_(Pg(this));break}}if(n.history==this.history){var l=[n.id];Oi(n,function(u){return l.push(u.id)},!0),n.history=new Xa(null),n.history.done=ts(this.history.done,l),n.history.undone=ts(this.history.undone,l)}},iterLinkedDocs:function(n){Oi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):lr(n)},lineSeparator:function(){return this.lineSep||`
31
+ `},setDirection:Zt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Qx(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var Ig=0;function d_(n){var i=this;if(Dg(i),!(Rt(i,n)||ti(i.display,n))){un(n),h&&(Ig=+new Date);var a=po(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,x=function(){++y==u&&Yt(i,function(){a=Ge(i.doc,a);var Z={from:a,to:a,text:i.doc.splitLines(g.filter(function(ae){return ae!=null}).join(i.doc.lineSeparator())),origin:"paste"};rs(i.doc,Z),xg(i.doc,Ni(Ge(i.doc,a),Ge(i.doc,$i(Z))))})()},_=function(Z,ae){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,Z.type)==-1){x();return}var ge=new FileReader;ge.onerror=function(){return x()},ge.onload=function(){var we=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(we)){x();return}g[ae]=we,x()},ge.readAsText(Z)},k=0;k<l.length;k++)_(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var q;if(i.state.draggingText&&!i.state.draggingText.copy&&(q=i.listSelections()),Ja(i.doc,Ni(a,a)),q)for(var Q=0;Q<q.length;++Q)is(i.doc,"",q[Q].anchor,q[Q].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function h_(n,i){if(h&&(!n.state.draggingText||+new Date-Ig<100)){ki(i);return}if(!(Rt(n,i)||ti(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!N)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function p_(n,i){var a=po(n,i);if(a){var l=document.createDocumentFragment();hf(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),O(n.display.dragCursor,l)}}function Dg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function zg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var Fg=!1;function g_(){Fg||(v_(),Fg=!0)}function v_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,zg(m_)},100))}),Fe(window,"blur",function(){return zg(Jo)})}function m_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Pi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hl=0;hl<10;hl++)Pi[hl+48]=Pi[hl+96]=String(hl);for(var tc=65;tc<=90;tc++)Pi[tc]=String.fromCharCode(tc);for(var pl=1;pl<=12;pl++)Pi[pl+111]=Pi[pl+63235]="F"+pl;var ri={};ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ri.default=B?ri.macDefault:ri.pcDefault;function y_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function b_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),y_),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var _=i[x];if(!_)i[x]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var k in i)n[k]=i[k];return n}function ss(n,i,a,l){i=nc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ss(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ss(n,i.fallthrough[g],a,l);if(y)return y}}}function Hg(n){var i=typeof n=="string"?n:Pi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Bg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ne?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ne?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Wg(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=Pi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Bg(a,n,i))}function nc(n){return typeof n=="string"?ri[n]:n}function ls(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ae(g.from,ve(l).to)<=0;){var y=l.pop();if(Ae(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Hn(n,function(){for(var x=l.length-1;x>=0;x--)is(n.doc,"",l[x].from,l[x].to,"+delete");Qo(n)})}function Mf(n,i,a){var l=Gt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Nf(n,i,a){var l=Mf(n,i.ch,a);return l==null?null:new oe(i.line,l,a<0?"after":"before")}function $f(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=et(a,i.doc.direction);if(g){var y=u<0?ve(g):g[0],x=u<0==(y.level==1),_=x?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=Xo(i,a);k=u<0?a.text.length-1:0;var q=Fr(i,D,k).top;k=Bt(function(Q){return Fr(i,D,Q).top==q},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=Mf(a,k,1))}else k=u<0?y.to:y.from;return new oe(l,k,_)}}return new oe(l,u<0?a.text.length:0,u<0?"before":"after")}function w_(n,i,a,l){var u=et(i,n.doc.direction);if(!u)return Nf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=zt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Nf(i,a,l);var x=function(ke,Me){return Mf(i,ke instanceof oe?ke.ch:ke,Me)},_,k=function(ke){return n.options.lineWrapping?(_=_||Xo(n,i),Gp(n,i,_,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var q=y.level==1==l<0,Q=x(a,q?1:-1);if(Q!=null&&(q?Q<=y.to&&Q<=D.end:Q>=y.from&&Q>=D.begin)){var Z=q?"before":"after";return new oe(a.line,Q,Z)}}var ae=function(ke,Me,Te){for(var $e=function(_t,Jt){return Jt?new oe(a.line,x(_t,1),"before"):new oe(a.line,_t,"after")};ke>=0&&ke<u.length;ke+=Me){var He=u[ke],Ie=Me>0==(He.level!=1),Je=Ie?Te.begin:x(Te.end,-1);if(He.from<=Je&&Je<He.to||(Je=Ie?He.from:x(He.to,-1),Te.begin<=Je&&Je<Te.end))return $e(Je,Ie)}},ge=ae(g+l,l,D);if(ge)return ge;var we=l>0?D.end:x(D.begin,-1);return we!=null&&!(l>0&&we==i.text.length)&&(ge=ae(l>0?0:u.length-1,l,k(we)),ge)?ge:null}var gl={selectAll:Cg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Y)},killLine:function(n){return ls(n,function(i){if(i.empty()){var a=Re(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:oe(i.head.line+1,0)}:{from:i.head,to:oe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ls(n,function(i){return{from:oe(i.from().line,0),to:Ge(n.doc,oe(i.to().line+1,0))}})},delLineLeft:function(n){return ls(n,function(i){return{from:oe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(oe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(oe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return qg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Ug(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return x_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Ug(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=X(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Hn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Re(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new oe(u.line,u.ch-1)),u.ch>0)u=new oe(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),oe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Re(n.doc,u.line-1).text;y&&(u=new oe(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),oe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Hn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);Qo(n)})},openLine:function(n){return n.replaceSelection(`
32
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function qg(n,i){var a=Re(n.doc,i),l=mr(a);return l!=a&&(i=C(l)),$f(!0,n,l,i,1)}function x_(n,i){var a=Re(n.doc,i),l=ix(a);return l!=a&&(i=C(l)),$f(!0,n,a,i,-1)}function Ug(n,i){var a=qg(n,i.line),l=Re(n.doc,a.line),u=et(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return oe(a.line,y?0:g,a.sticky)}return a}function rc(n,i,a){if(typeof i=="string"&&(i=gl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=H}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function __(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ss(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ss(i,n.options.extraKeys,a,n)||ss(i,n.options.keyMap,a,n)}var S_=new le;function vl(n,i,a,l){var u=n.state.keySeq;if(u){if(Hg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:S_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),jg(n,u+" "+i,a,l))return!0}return jg(n,i,a,l)}function jg(n,i,a,l){var u=__(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Xt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(un(a),pf(n)),!!u}function Vg(n,i){var a=Wg(i,!0);return a?i.shiftKey&&!n.state.keySeq?vl(n,"Shift-"+a,i,function(l){return rc(n,l,!0)})||vl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return rc(n,l)}):vl(n,a,i,function(l){return rc(n,l)}):!1}function k_(n,i,a){return vl(n,"'"+a+"'",i,function(l){return rc(n,l,!0)})}var Of=null;function Gg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(Ke(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Vg(i,n);E&&(Of=l?a:null,!l&&a==88&&!Na&&(B?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!B&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&T_(i)}}function T_(n){var i=n.display.lineDiv;_e(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&($(i,"CodeMirror-crosshair"),cn(document,"keyup",a),cn(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function Kg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function Xg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ti(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||B&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==Of){Of=null,un(n);return}if(!(E&&(!n.which||n.which<10)&&Vg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(k_(i,n,u)||i.display.input.onKeyPress(n))}}}var C_=400,Rf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Rf.prototype.compare=function(n,i,a){return this.time+C_>n&&Ae(i,this.pos)==0&&a==this.button};var ml,yl;function E_(n,i){var a=+new Date;return yl&&yl.compare(a,n,i)?(ml=yl=null,"triple"):ml&&ml.compare(a,n,i)?(yl=new Rf(a,n,i),ml=null,"double"):(ml=new Rf(a,n,i),yl=null,"single")}function Yg(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ti(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Pf(i,n)){var l=po(i,n),u=hr(n),g=l?E_(l,u):"single";te(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&A_(i,u,l,g,n))&&(u==1?l?M_(i,l,g,n):qs(n)==a.scroller&&un(n):u==2?(l&&Za(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(K?i.display.input.onContextMenu(n):gf(i)))}}}function A_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,vl(n,Bg(g,u),u,function(y){if(typeof y=="string"&&(y=gl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=H}finally{n.state.suppressEdits=!1}return x})}function L_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=V?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=B?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(B?a.altKey:a.ctrlKey)),u}function M_(n,i,a,l){h?setTimeout(z(Zp,n),0):n.curOp.focus=me(Ke(n));var u=L_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Vu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ae((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ae(y.to(),i)>0||i.xRel<0)?N_(n,l,i,u):$_(n,l,i,u)}function N_(n,i,a,l){var u=n.display,g=!1,y=Yt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:gf(n)),cn(u.wrapper.ownerDocument,"mouseup",y),cn(u.wrapper.ownerDocument,"mousemove",x),cn(u.scroller,"dragstart",_),cn(u.scroller,"drop",y),g||(un(k),l.addNew||Za(n.doc,a,null,null,l.extend),v&&!N||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",y),Fe(u.wrapper.ownerDocument,"mousemove",x),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Zg(n,i,a){if(a=="char")return new dt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new dt(oe(i.line,0),Ge(n.doc,oe(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function $_(n,i,a,l){h&&gf(n);var u=n.display,g=n.doc;un(i);var y,x,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=k[x]:y=new dt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new dt(a,a)),a=po(n,i,!0,!0),x=-1;else{var D=Zg(n,a,l.unit);l.extend?y=Af(y,D.anchor,D.head,l.extend):y=D}l.addNew?x==-1?(x=k.length,fn(g,br(n,k.concat([y]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&l.unit=="char"&&!l.extend?(fn(g,br(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Lf(g,x,y,ue):(x=0,fn(g,new Zn([y],0),ue),_=g.sel);var q=a;function Q(Te){if(Ae(q,Te)!=0)if(q=Te,l.unit=="rectangle"){for(var $e=[],He=n.options.tabSize,Ie=X(Re(g,a.line).text,a.ch,He),Je=X(Re(g,Te.line).text,Te.ch,He),_t=Math.min(Ie,Je),Jt=Math.max(Ie,Je),Mt=Math.min(a.line,Te.line),Bn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Mt<=Bn;Mt++){var Cn=Re(g,Mt).text,Wt=de(Cn,_t,He);_t==Jt?$e.push(new dt(oe(Mt,Wt),oe(Mt,Wt))):Cn.length>Wt&&$e.push(new dt(oe(Mt,Wt),oe(Mt,de(Cn,Jt,He))))}$e.length||$e.push(new dt(a,a)),fn(g,br(n,_.ranges.slice(0,x).concat($e),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var En=y,sn=Zg(n,Te,l.unit),jt=En.anchor,qt;Ae(sn.anchor,jt)>0?(qt=sn.head,jt=Vo(En.from(),sn.anchor)):(qt=sn.anchor,jt=Sn(En.to(),sn.head));var It=_.ranges.slice(0);It[x]=O_(n,new dt(Ge(g,jt),qt)),fn(g,br(n,It,x),ue)}}var Z=u.wrapper.getBoundingClientRect(),ae=0;function ge(Te){var $e=++ae,He=po(n,Te,!0,l.unit=="rectangle");if(He)if(Ae(He,q)!=0){n.curOp.focus=me(Ke(n)),Q(He);var Ie=ja(u,g);(He.line>=Ie.to||He.line<Ie.from)&&setTimeout(Yt(n,function(){ae==$e&&ge(Te)}),150)}else{var Je=Te.clientY<Z.top?-20:Te.clientY>Z.bottom?20:0;Je&&setTimeout(Yt(n,function(){ae==$e&&(u.scroller.scrollTop+=Je,ge(Te))}),50)}}function we(Te){n.state.selectingText=!1,ae=1/0,Te&&(un(Te),u.input.focus()),cn(u.wrapper.ownerDocument,"mousemove",ke),cn(u.wrapper.ownerDocument,"mouseup",Me),g.history.lastSelOrigin=null}var ke=Yt(n,function(Te){Te.buttons===0||!hr(Te)?we(Te):ge(Te)}),Me=Yt(n,we);n.state.selectingText=Me,Fe(u.wrapper.ownerDocument,"mousemove",ke),Fe(u.wrapper.ownerDocument,"mouseup",Me)}function O_(n,i){var a=i.anchor,l=i.head,u=Re(n.doc,a.line);if(Ae(a,l)==0&&a.sticky==l.sticky)return i;var g=et(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var _=y+(x.from==a.ch==(x.level!=1)?0:1);if(_==0||_==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=zt(g,l.ch,l.sticky),q=D-y||(l.ch-a.ch)*(x.level==1?-1:1);D==_-1||D==_?k=q<0:k=q>0}var Q=g[_+(k?-1:0)],Z=k==(Q.level==1),ae=Z?Q.from:Q.to,ge=Z?"after":"before";return a.ch==ae&&a.sticky==ge?i:new dt(new oe(a.line,ae,ge),l)}function Jg(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&un(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Fn(n,a))return _n(i);g-=x.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var D=W(n.doc,g),q=n.display.gutterSpecs[_];return Ot(n,a,n,D,q.className,i),_n(i)}}}function Pf(n,i){return Jg(n,i,"gutterClick",!0)}function Qg(n,i){ti(n.display,i)||R_(n,i)||Rt(n,i,"contextmenu")||K||n.display.input.onContextMenu(i)}function R_(n,i){return Fn(n,"gutterContextMenu")?Jg(n,i,"gutterContextMenu",!1):!1}function ev(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Js(n)}var as={toString:function(){return"CodeMirror.Init"}},tv={},ic={};function P_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,_,k){k!=as&&g(x,_,k)}:g)}n.defineOption=a,n.Init=as,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Tf(l)},!0),a("indentUnit",2,Tf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){sl(l),Js(l),kn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var k=0;;){var D=_.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(oe(y,D))}y++});for(var x=g.length-1;x>=0;x--)is(l.doc,u,g[x],oe(g[x].line,g[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=as&&l.refresh()}),a("specialCharPlaceholder",ux,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!G),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){ev(l),ol(l)},!0),a("keyMap","default",function(l,u,g){var y=nc(u),x=g!=as&&nc(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,D_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Sf(u,l.options.lineNumbers),ol(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?ff(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return es(l)},!0),a("scrollbarStyle","native",function(l){rg(l),es(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Sf(l.options.gutters,u),ol(l)},!0),a("firstLineNumber",1,ol,!0),a("lineNumberFormatter",function(l){return l},ol,!0),a("showCursorWhenSelecting",!1,Qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Jo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,I_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Qs,!0),a("singleCursorHeightPerLine",!0,Qs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,sl,!0),a("addModeClass",!1,sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function I_(n,i,a){var l=a&&a!=as;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:cn;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function D_(n){n.options.lineWrapping?(_e(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):($(n.display.wrapper,"CodeMirror-wrap"),ef(n)),df(n),kn(n),Js(n),setTimeout(function(){return es(n)},100)}function Et(n,i){var a=this;if(!(this instanceof Et))return new Et(n,i);this.options=i=i?J(i):{},J(tv,i,!1);var l=i.value;typeof l=="string"?l=new Tn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Et.inputStyles[i.inputStyle](this),g=this.display=new Yx(n,l,u,i);g.wrapper.CodeMirror=this,ev(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),rg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!M&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),z_(this),g_(),yo(this),this.curOp.forceUpdate=!0,hg(this,l),i.autofocus&&!M||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&vf(a)},20):Jo(this);for(var y in ic)ic.hasOwnProperty(y)&&ic[y](this,i[y],as);sg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<If.length;++x)If[x](this);bo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Et.defaults=tv,Et.optionHandlers=ic;function z_(n){var i=n.display;Fe(i.scroller,"mousedown",Yt(n,Yg)),h&&p<11?Fe(i.scroller,"dblclick",Yt(n,function(_){if(!Rt(n,_)){var k=po(n,_);if(!(!k||Pf(n,_)||ti(n.display,_))){un(_);var D=n.findWordAt(k);Za(n.doc,D.anchor,D.head)}}})):Fe(i.scroller,"dblclick",function(_){return Rt(n,_)||un(_)}),Fe(i.scroller,"contextmenu",function(_){return Qg(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||Qg(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var D=k.left-_.left,q=k.top-_.top;return D*D+q*q>20*20}Fe(i.scroller,"touchstart",function(_){if(!Rt(n,_)&&!g(_)&&!Pf(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!ti(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),q;!k.prev||y(k,k.prev)?q=new dt(D,D):!k.prev.prev||y(k,k.prev.prev)?q=n.findWordAt(D):q=new dt(oe(D.line,0),Ge(n.doc,oe(D.line+1,0))),n.setSelection(q.anchor,q.head),n.focus(),un(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(tl(n,i.scroller.scrollTop),vo(n,i.scroller.scrollLeft,!0),Ot(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return cg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return cg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Rt(n,_)||ki(_)},over:function(_){Rt(n,_)||(p_(n,_),ki(_))},start:function(_){return h_(n,_)},drop:Yt(n,d_),leave:function(_){Rt(n,_)||Dg(n)}};var x=i.input.getField();Fe(x,"keyup",function(_){return Kg.call(n,_)}),Fe(x,"keydown",Yt(n,Gg)),Fe(x,"keypress",Yt(n,Xg)),Fe(x,"focus",function(_){return vf(n,_)}),Fe(x,"blur",function(_){return Jo(n,_)})}var If=[];Et.defineInitHook=function(n){return If.push(n)};function bl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Gs(n,i).state:a="prev");var y=n.options.tabSize,x=Re(u,i),_=X(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(x.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,x.text.slice(k.length),x.text),D==H||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=X(Re(u,i-1).text,null,y):D=0:a=="add"?D=_+n.options.indentUnit:a=="subtract"?D=_-n.options.indentUnit:typeof a=="number"&&(D=_+a),D=Math.max(0,D);var q="",Q=0;if(n.options.indentWithTabs)for(var Z=Math.floor(D/y);Z;--Z)Q+=y,q+=" ";if(Q<D&&(q+=Ee(D-Q)),q!=k)return is(u,q,oe(i,0),oe(i,k.length),"+input"),x.stateAfter=null,!0;for(var ae=0;ae<u.sel.ranges.length;ae++){var ge=u.sel.ranges[ae];if(ge.head.line==i&&ge.head.ch<k.length){var we=oe(i,k.length);Lf(u,ae,new dt(we,we));break}}}var wr=null;function oc(n){wr=n}function Df(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,_=lr(i),k=null;if(x&&l.ranges.length>1)if(wr&&wr.text.join(`
33
+ `)==i){if(l.ranges.length%wr.text.length==0){k=[];for(var D=0;D<wr.text.length;D++)k.push(g.splitLines(wr.text[D]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=ye(_,function(ke){return[ke]}));for(var q=n.curOp.updateInput,Q=l.ranges.length-1;Q>=0;Q--){var Z=l.ranges[Q],ae=Z.from(),ge=Z.to();Z.empty()&&(a&&a>0?ae=oe(ae.line,ae.ch-a):n.state.overwrite&&!x?ge=oe(ge.line,Math.min(Re(g,ge.line).text.length,ge.ch+ve(_).length)):x&&wr&&wr.lineWise&&wr.text.join(`
34
+ `)==_.join(`
35
+ `)&&(ae=ge=oe(ae.line,0)));var we={from:ae,to:ge,text:k?k[Q%k.length]:_,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};rs(n.doc,we),Xt(n,"inputRead",n,we)}i&&!x&&rv(n,i),Qo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=q),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function nv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Hn(i,function(){return Df(i,a,0,null,"paste")}),!0}function rv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=bl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Re(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=bl(n,u.head.line,"smart"));y&&Xt(n,"electricInput",n,u.head.line)}}}function iv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:oe(u,0),head:oe(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function zf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function ov(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),A&&(n.style.border="1px solid black"),i}function F_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){te(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Yt(this,i[l])(this,u,y),Ot(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](nc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:gn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,kn(this)}),removeOverlay:gn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,kn(this);return}}}),indentLine:gn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),fe(this.doc,l)&&bl(this,l,u,g)}),indentSelection:gn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(bl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Qo(this));else{var _=x.from(),k=x.to(),D=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var q=D;q<g;++q)bl(this,q,l);var Q=this.doc.sel.ranges;_.ch==0&&u.length==Q.length&&Q[y].from().ch>0&&Lf(this.doc,y,new dt(_,Q[y].to()),Y)}}}),getTokenAt:function(l,u){return gp(this,l,u)},getLineTokens:function(l,u){return gp(this,oe(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=dp(this,Re(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,_;if(x==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=x)y=k;else if(u[k*2+1]<x)g=k+1;else{_=u[k*2+2];break}}var D=_?_.indexOf("overlay "):-1;return D<0?_:D==0?null:_.slice(0,D-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var _=0;_<x[u].length;_++){var k=y[x[u][_]];k&&g.push(k)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var D=0;D<y._global.length;D++){var q=y._global[D];q.pred(x,this)&&pe(g,q.val)==-1&&g.push(q.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=cp(g,l??g.first+g.size-1),Gs(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ge(this.doc,l):g=l?y.from():y.to(),yr(this,g,u||"page")},charCoords:function(l,u){return Ba(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Up(this,l,u||"page"),af(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Up(this,{top:l,left:0},u||"page").top,W(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),x=Re(this.doc,l)}else x=l;return Ha(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ei(x):0)},defaultTextHeight:function(){return Yo(this.display)},defaultCharWidth:function(){return Zo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var _=this.display;l=yr(this,Ge(this.doc,l));var k=l.bottom,D=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var q=Math.max(_.wrapper.clientHeight,this.doc.height),Q=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>q)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=q&&(k=l.bottom),D+u.offsetWidth>Q&&(D=Q-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",x=="right"?(D=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?D=0:x=="middle"&&(D=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=D+"px"),g&&Ix(this,{left:D,top:k,right:D+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:gn(Gg),triggerOnKeyPress:gn(Xg),triggerOnKeyUp:Kg,triggerOnMouseDown:gn(Yg),execCommand:function(l){if(gl.hasOwnProperty(l))return gl[l].call(null,this)},triggerElectric:gn(function(l){rv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var _=Ge(this.doc,l),k=0;k<u&&(_=Ff(this.doc,_,x,g,y),!_.hitSide);++k);return _},moveH:gn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Ff(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:gn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ls(this,function(x){var _=Ff(y,x.head,l,u,!1);return l<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(l,u,g,y){var x=1,_=y;u<0&&(x=-1,u=-u);for(var k=Ge(this.doc,l),D=0;D<u;++D){var q=yr(this,k,"div");if(_==null?_=q.left:q.left=_,k=sv(this,q,x,g),k.hitSide)break}return k},moveV:gn(function(l,u){var g=this,y=this.doc,x=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(D){if(_)return l<0?D.from():D.to();var q=yr(g,D.head,"div");D.goalColumn!=null&&(q.left=D.goalColumn),x.push(q.left);var Q=sv(g,q,l,u);return u=="page"&&D==y.sel.primary()&&yf(g,Ba(g,Q,"div").top-q.top),Q},he),x.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=x[k]}),findWordAt:function(l){var u=this.doc,g=Re(u,l.line).text,y=l.ch,x=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var k=g.charAt(y),D=ot(k,_)?function(q){return ot(q,_)}:/\s/.test(k)?function(q){return/\s/.test(q)}:function(q){return!/\s/.test(q)&&!ot(q)};y>0&&D(g.charAt(y-1));)--y;for(;x<g.length&&D(g.charAt(x));)++x}return new dt(oe(l.line,y),oe(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):$(this.display.cursorDiv,"CodeMirror-overwrite"),Ot(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Ke(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:gn(function(l,u){el(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-zr(this)-this.display.barHeight,width:l.scrollWidth-zr(this)-this.display.barWidth,clientHeight:rf(this),clientWidth:fo(this)}},scrollIntoView:gn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:oe(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Dx(this,l):Qp(this,l.from,l.to,l.margin)}),setSize:gn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Bp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){Li(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Ot(this,"refresh",this)}),operation:function(l){return Hn(this,l)},startOperation:function(){return yo(this)},endOperation:function(){return bo(this)},refresh:gn(function(){var l=this.display.cachedTextHeight;kn(this),this.curOp.forceUpdate=!0,Js(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),xf(this.display),(l==null||Math.abs(l-Yo(this.display))>.5||this.options.lineWrapping)&&df(this),Ot(this,"refresh",this)}),swapDoc:gn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),hg(this,l),Js(this),this.display.input.reset(),el(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Xt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},dr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function Ff(n,i,a,l,u){var g=i,y=a,x=Re(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Me=i.line+_;return Me<n.first||Me>=n.first+n.size?!1:(i=new oe(Me,i.ch,i.sticky),x=Re(n,Me))}function D(Me){var Te;if(l=="codepoint"){var $e=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN($e))Te=null;else{var He=a>0?$e>=55296&&$e<56320:$e>=56320&&$e<57343;Te=new oe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(He?2:1))),-a)}}else u?Te=w_(n.cm,x,i,a):Te=Nf(x,i,a);if(Te==null)if(!Me&&k())i=$f(u,n.cm,x,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")D();else if(l=="column")D(!0);else if(l=="word"||l=="group")for(var q=null,Q=l=="group",Z=n.cm&&n.cm.getHelper(i,"wordChars"),ae=!0;!(a<0&&!D(!ae));ae=!1){var ge=x.text.charAt(i.ch)||`
36
+ `,we=ot(ge,Z)?"w":Q&&ge==`
37
+ `?"n":!Q||/\s/.test(ge)?null:"p";if(Q&&!ae&&!we&&(we="s"),q&&q!=we){a<0&&(a=1,D(),i.sticky="after");break}if(we&&(q=we),a>0&&!D(!ae))break}var ke=Qa(n,i,g,y,!0);return ft(g,ke)&&(ke.hitSide=!0),ke}function sv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,te(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(x-.5*Yo(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=af(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,zf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(x){for(var _=x.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(x){!g(x)||Rt(l,x)||nv(x,l)||p<=11&&setTimeout(Yt(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Fe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Fe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Rt(l,x))){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=iv(l);oc({lineWise:!0,text:_.text}),x.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,Y),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var k=wr.text.join(`
38
+ `);if(x.clipboardData.setData("Text",k),x.clipboardData.getData("Text")==k){x.preventDefault();return}}var D=ov(),q=D.firstChild;zf(q),l.display.lineSpace.insertBefore(D,l.display.lineSpace.firstChild),q.value=wr.text.join(`
39
+ `);var Q=me(Xe(u));qe(q),setTimeout(function(){l.display.lineSpace.removeChild(D),Q.focus(),Q==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",y),Fe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Yp(this.cm,!1);return n.focus=me(Xe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=sc(i,n.anchorNode,n.anchorOffset),y=sc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ae(Vo(g,y),l)==0&&Ae(Sn(g,y),u)==0)){var x=i.display.view,_=l.line>=i.display.viewFrom&&lv(i,l)||{node:x[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&lv(i,u);if(!k){var D=x[x.length-1].measure,q=D.maps?D.maps[D.maps.length-1]:D.map;k={node:q[q.length-1],offset:q[q.length-2]-q[q.length-3]}}if(!_||!k){n.removeAllRanges();return}var Q=n.rangeCount&&n.getRangeAt(0),Z;try{Z=j(_.node,_.offset,k.offset,k.node)}catch{}Z&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Z.collapsed||(n.removeAllRanges(),n.addRange(Z))):(n.removeAllRanges(),n.addRange(Z)),Q&&n.anchorNode==null?n.addRange(Q):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){O(this.cm.display.cursorDiv,n.cursors),O(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return se(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(Xe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Hn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&b&&this.cm.display.gutterSpecs.length&&H_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=sc(i,n.anchorNode,n.anchorOffset),l=sc(i,n.focusNode,n.focusOffset);a&&l&&Hn(i,function(){fn(i.doc,Ni(a,l),Y),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=oe(l.line-1,Re(n.doc,l.line-1).length)),u.ch==Re(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=oe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=go(n,l.line))==0?(y=C(i.view[0].line),x=i.view[0].node):(y=C(i.view[g].line),x=i.view[g-1].node.nextSibling);var _=go(n,u.line),k,D;if(_==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=C(i.view[_+1].line)-1,D=i.view[_+1].node.previousSibling),!x)return!1;for(var q=n.doc.splitLines(B_(n,x,D,y,k)),Q=Jr(n.doc,oe(y,0),oe(k,Re(n.doc,k).text.length));q.length>1&&Q.length>1;)if(ve(q)==ve(Q))q.pop(),Q.pop(),k--;else if(q[0]==Q[0])q.shift(),Q.shift(),y++;else break;for(var Z=0,ae=0,ge=q[0],we=Q[0],ke=Math.min(ge.length,we.length);Z<ke&&ge.charCodeAt(Z)==we.charCodeAt(Z);)++Z;for(var Me=ve(q),Te=ve(Q),$e=Math.min(Me.length-(q.length==1?Z:0),Te.length-(Q.length==1?Z:0));ae<$e&&Me.charCodeAt(Me.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)++ae;if(q.length==1&&Q.length==1&&y==l.line)for(;Z&&Z>l.ch&&Me.charCodeAt(Me.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)Z--,ae++;q[q.length-1]=Me.slice(0,Me.length-ae).replace(/^\u200b+/,""),q[0]=q[0].slice(Z).replace(/\u200b+$/,"");var He=oe(y,Z),Ie=oe(k,Q.length?ve(Q).length-ae:0);if(q.length>1||q[0]||Ae(He,Ie))return is(n.doc,q,He,Ie,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Hn(this.cm,function(){return kn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Yt(this.cm,Df)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function lv(n,i){var a=of(n,i.line);if(!a||a.hidden)return null;var l=Re(n.doc,i.line),u=Ip(a,l,i.line),g=et(l,n.doc.direction),y="left";if(g){var x=zt(g,i.ch);y=x%2?"right":"left"}var _=Fp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function H_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function cs(n,i){return i&&(n.bad=!0),n}function B_(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),_=!1;function k(Z){return function(ae){return ae.id==Z}}function D(){y&&(g+=x,_&&(g+=x),y=_=!1)}function q(Z){Z&&(D(),g+=Z)}function Q(Z){if(Z.nodeType==1){var ae=Z.getAttribute("cm-text");if(ae){q(ae);return}var ge=Z.getAttribute("cm-marker"),we;if(ge){var ke=n.findMarks(oe(l,0),oe(u+1,0),k(+ge));ke.length&&(we=ke[0].find(0))&&q(Jr(n.doc,we.from,we.to).join(x));return}if(Z.getAttribute("contenteditable")=="false")return;var Me=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;Me&&D();for(var Te=0;Te<Z.childNodes.length;Te++)Q(Z.childNodes[Te]);/^(pre|p)$/i.test(Z.nodeName)&&(_=!0),Me&&(y=!0)}else Z.nodeType==3&&q(Z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Q(i),i!=a;)i=i.nextSibling,_=!1;return g}function sc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return cs(n.clipPos(oe(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return W_(g,i,a)}}function W_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!se(l,i))return cs(oe(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ve(n.rest):n.line;return cs(oe(C(g),g.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var _=n.measure,k=_.maps;function D(we,ke,Me){for(var Te=-1;Te<(k?k.length:0);Te++)for(var $e=Te<0?_.map:k[Te],He=0;He<$e.length;He+=3){var Ie=$e[He+2];if(Ie==we||Ie==ke){var Je=C(Te<0?n.line:n.rest[Te]),_t=$e[He]+Me;return(Me<0||Ie!=we)&&(_t=$e[He+(Me?1:0)]),oe(Je,_t)}}}var q=D(y,x,a);if(q)return cs(q,u);for(var Q=x.nextSibling,Z=y?y.nodeValue.length-a:0;Q;Q=Q.nextSibling){if(q=D(Q,Q.firstChild,0),q)return cs(oe(q.line,q.ch-Z),u);Z+=Q.textContent.length}for(var ae=x.previousSibling,ge=a;ae;ae=ae.previousSibling){if(q=D(ae,ae.firstChild,-1),q)return cs(oe(q.line,q.ch+ge),u);ge+=ae.textContent.length}}var Ft=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ft.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),A&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(y){Rt(l,y)||nv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Rt(l,y)){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=iv(l);oc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Y):(a.prevInput="",u.value=x.text.join(`
40
+ `),qe(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(y){if(!(ti(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Fe(n.lineSpace,"selectstart",function(y){ti(n,y)||un(y)}),Fe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ft.prototype.createField=function(n){this.wrapper=ov(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;zf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ft.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Yp(n);if(n.options.moveInputWithCursor){var u=yr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Ft.prototype.showSelection=function(n){var i=this.cm,a=i.display;O(a.cursorDiv,n.cursors),O(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ft.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&qe(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||me(Xe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ft.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Ft.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ci(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||B&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Hn(i,function(){Df(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
41
+ `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ft.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ft.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=po(a,n),y=l.scroller.scrollTop;if(!g||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Yt(a,fn)(a.doc,Ni(g),Y);var _=u.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
42
+ top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.left-5)+`px;
43
+ z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
44
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var q;v&&(q=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,q),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Z,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function Q(){if(u.selectionStart!=null){var ge=a.somethingSelected(),we="​"+(ge?u.value:"");u.value="⇚",u.value=we,i.prevInput=ge?"":"​",u.selectionStart=1,u.selectionEnd=we.length,l.selForContextMenu=a.doc.sel}}function Z(){if(i.contextMenuPending==Z&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&Q();var ge=0,we=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Yt(a,Cg)(a):ge++<10?l.detectingSelectAll=setTimeout(we,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(we,200)}}if(h&&p>=9&&Q(),K){ki(n);var ae=function(){cn(window,"mouseup",ae),setTimeout(Z,20)};Fe(window,"mouseup",ae)}else setTimeout(Z,50)},Ft.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ft.prototype.setUneditable=function(){},Ft.prototype.needsContentAttribute=!1;function q_(n,i){if(i=i?J(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=me(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(cn(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Et(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return x}function U_(n){n.off=cn,n.on=Fe,n.wheelEventPixels=Zx,n.Doc=Tn,n.splitLines=lr,n.countColumn=X,n.findColumn=de,n.isWordChar=tt,n.Pass=H,n.signal=Ot,n.Line=Go,n.changeEnd=$i,n.scrollbarModel=ng,n.Pos=oe,n.cmpPos=Ae,n.modes=Bo,n.mimeModes=gr,n.resolveMode=Wo,n.getMode=qo,n.modeExtensions=Ei,n.extendMode=Uo,n.copyState=Ir,n.startState=jo,n.innerMode=js,n.commands=gl,n.keyMap=ri,n.keyName=Wg,n.isModifierKey=Hg,n.lookupKey=ss,n.normalizeKeyMap=b_,n.StringStream=Pt,n.SharedTextMarker=dl,n.TextMarker=Ri,n.LineWidget=fl,n.e_preventDefault=un,n.e_stopPropagation=Fo,n.e_stop=ki,n.addClass=_e,n.contains=se,n.rmClass=$,n.keyNames=Pi}P_(Et),F_(Et);var j_="iter insert remove copy getEditor constructor".split(" ");for(var lc in Tn.prototype)Tn.prototype.hasOwnProperty(lc)&&pe(j_,lc)<0&&(Et.prototype[lc]=function(n){return function(){return n.apply(this.doc,arguments)}}(Tn.prototype[lc]));return dr(Tn),Et.inputStyles={textarea:Ft,contenteditable:yt},Et.defineMode=function(n){!Et.defaults.mode&&n!="null"&&(Et.defaults.mode=n),vr.apply(this,arguments)},Et.defineMIME=uo,Et.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Et.defineMIME("text/plain","null"),Et.defineExtension=function(n,i){Et.prototype[n]=i},Et.defineDocExtension=function(n,i){Tn.prototype[n]=i},Et.fromTextArea=q_,U_(Et),Et.version="5.65.18",Et})}(Nc)),Nc.exports}var Kce=Ws();const Xce=Aw(Kce);var Wm={exports:{}},qm;function qw(){return qm||(qm=1,function(e,t){(function(r){r(Ws())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(Kt){return{type:Kt,style:"keyword"}}var W=C("keyword a"),fe=C("keyword b"),be=C("keyword c"),oe=C("keyword d"),Ae=C("operator"),ft={type:"atom",style:"atom"};return{if:C("if"),while:W,with:W,else:fe,do:fe,try:fe,finally:fe,return:oe,break:oe,continue:oe,new:C("new"),delete:be,void:be,throw:be,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ae,typeof:Ae,instanceof:Ae,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:C("this"),class:C("class"),super:C("atom"),yield:be,export:C("export"),import:C("import"),extends:be,await:be}}(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(C){for(var W=!1,fe,be=!1;(fe=C.next())!=null;){if(!W){if(fe=="/"&&!be)return;fe=="["?be=!0:be&&fe=="]"&&(be=!1)}W=!W&&fe=="\\"}}var T,L;function A(C,W,fe){return T=C,L=fe,W}function R(C,W){var fe=C.next();if(fe=='"'||fe=="'")return W.tokenize=M(fe),W.tokenize(C,W);if(fe=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(fe=="."&&C.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return A(fe);if(fe=="="&&C.eat(">"))return A("=>","operator");if(fe=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(fe))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(fe=="/")return C.eat("*")?(W.tokenize=B,B(C,W)):C.eat("/")?(C.skipToEnd(),A("comment","comment")):Yn(C,W,1)?(N(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(C.eat("="),A("operator","operator",C.current()));if(fe=="`")return W.tokenize=V,V(C,W);if(fe=="#"&&C.peek()=="!")return C.skipToEnd(),A("meta","meta");if(fe=="#"&&C.eatWhile(m))return A("variable","property");if(fe=="<"&&C.match("!--")||fe=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),A("comment","comment");if(w.test(fe))return(fe!=">"||!W.lexical||W.lexical.type!=">")&&(C.eat("=")?(fe=="!"||fe=="=")&&C.eat("="):/[<>*+\-|&?]/.test(fe)&&(C.eat(fe),fe==">"&&C.eat(fe))),fe=="?"&&C.eat(".")?A("."):A("operator","operator",C.current());if(m.test(fe)){C.eatWhile(m);var be=C.current();if(W.lastType!="."){if(b.propertyIsEnumerable(be)){var oe=b[be];return A(oe.type,oe.style,be)}if(be=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",be)}return A("variable","variable",be)}}function M(C){return function(W,fe){var be=!1,oe;if(d&&W.peek()=="@"&&W.match(E))return fe.tokenize=R,A("jsonld-keyword","meta");for(;(oe=W.next())!=null&&!(oe==C&&!be);)be=!be&&oe=="\\";return be||(fe.tokenize=R),A("string","string")}}function B(C,W){for(var fe=!1,be;be=C.next();){if(be=="/"&&fe){W.tokenize=R;break}fe=be=="*"}return A("comment","comment")}function V(C,W){for(var fe=!1,be;(be=C.next())!=null;){if(!fe&&(be=="`"||be=="$"&&C.eat("{"))){W.tokenize=R;break}fe=!fe&&be=="\\"}return A("quasi","string-2",C.current())}var G="([{}])";function ee(C,W){W.fatArrowAt&&(W.fatArrowAt=null);var fe=C.string.indexOf("=>",C.start);if(!(fe<0)){if(v){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,fe));be&&(fe=be.index)}for(var oe=0,Ae=!1,ft=fe-1;ft>=0;--ft){var Kt=C.string.charAt(ft),Sn=G.indexOf(Kt);if(Sn>=0&&Sn<3){if(!oe){++ft;break}if(--oe==0){Kt=="("&&(Ae=!0);break}}else if(Sn>=3&&Sn<6)++oe;else if(m.test(Kt))Ae=!0;else if(/["'\/`]/.test(Kt))for(;;--ft){if(ft==0)return;var Vo=C.string.charAt(ft-1);if(Vo==Kt&&C.string.charAt(ft-2)!="\\"){ft--;break}}else if(Ae&&!oe){++ft;break}}Ae&&!oe&&(W.fatArrowAt=ft)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(C,W,fe,be,oe,Ae){this.indented=C,this.column=W,this.type=fe,this.prev=oe,this.info=Ae,be!=null&&(this.align=be)}function re(C,W){if(!p)return!1;for(var fe=C.localVars;fe;fe=fe.next)if(fe.name==W)return!0;for(var be=C.context;be;be=be.prev)for(var fe=be.vars;fe;fe=fe.next)if(fe.name==W)return!0}function $(C,W,fe,be,oe){var Ae=C.cc;for(P.state=C,P.stream=oe,P.marked=null,P.cc=Ae,P.style=W,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ft=Ae.length?Ae.pop():h?pe:X;if(ft(fe,be)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return P.marked?P.marked:fe=="variable"&&re(C,be)?"variable-2":W}}}var P={state:null,marked:null,cc:null};function O(){for(var C=arguments.length-1;C>=0;C--)P.cc.push(arguments[C])}function S(){return O.apply(null,arguments),!0}function F(C,W){for(var fe=W;fe;fe=fe.next)if(fe.name==C)return!0;return!1}function j(C){var W=P.state;if(P.marked="def",!!p){if(W.context){if(W.lexical.info=="var"&&W.context&&W.context.block){var fe=se(C,W.context);if(fe!=null){W.context=fe;return}}else if(!F(C,W.localVars)){W.localVars=new Pe(C,W.localVars);return}}s.globalVars&&!F(C,W.globalVars)&&(W.globalVars=new Pe(C,W.globalVars))}}function se(C,W){if(W)if(W.block){var fe=se(C,W.prev);return fe?fe==W.prev?W:new _e(fe,W.vars,!0):null}else return F(C,W.vars)?W:new _e(W.prev,new Pe(C,W.vars),!1);else return null}function me(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function _e(C,W,fe){this.prev=C,this.vars=W,this.block=fe}function Pe(C,W){this.name=C,this.next=W}var qe=new Pe("this",new Pe("arguments",null));function Ze(){P.state.context=new _e(P.state.context,P.state.localVars,!1),P.state.localVars=qe}function Ke(){P.state.context=new _e(P.state.context,P.state.localVars,!0),P.state.localVars=null}Ze.lex=Ke.lex=!0;function Xe(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}Xe.lex=!0;function te(C,W){var fe=function(){var be=P.state,oe=be.indented;if(be.lexical.type=="stat")oe=be.lexical.indented;else for(var Ae=be.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)oe=Ae.indented;be.lexical=new K(oe,P.stream.column(),C,null,be.lexical,W)};return fe.lex=!0,fe}function z(){var C=P.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}z.lex=!0;function J(C){function W(fe){return fe==C?S():C==";"||fe=="}"||fe==")"||fe=="]"?O():S(W)}return W}function X(C,W){return C=="var"?S(te("vardef",W),Fo,J(";"),z):C=="keyword a"?S(te("form"),H,X,z):C=="keyword b"?S(te("form"),X,z):C=="keyword d"?P.stream.match(/^\s*$/,!1)?S():S(te("stat"),ue,J(";"),z):C=="debugger"?S(J(";")):C=="{"?S(te("}"),Ke,Bt,z,Xe):C==";"?S():C=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==z&&P.state.cc.pop()(),S(te("form"),H,X,z,Ho)):C=="function"?S(lr):C=="for"?S(te("form"),Ke,Ma,X,Xe,z):C=="class"||v&&W=="interface"?(P.marked="keyword",S(te("form",C=="class"?C:W),Bo,z)):C=="variable"?v&&W=="declare"?(P.marked="keyword",S(X)):v&&(W=="module"||W=="enum"||W=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",W=="enum"?S(Re):W=="type"?S(Na,J("operator"),et,J(";")):S(te("form"),_n,J("{"),te("}"),Bt,z,z)):v&&W=="namespace"?(P.marked="keyword",S(te("form"),pe,X,z)):v&&W=="abstract"?(P.marked="keyword",S(X)):S(te("stat"),je):C=="switch"?S(te("form"),H,J("{"),te("}","switch"),Ke,Bt,z,z,Xe):C=="case"?S(pe,J(":")):C=="default"?S(J(":")):C=="catch"?S(te("form"),Ze,le,X,z,Xe):C=="export"?S(te("stat"),Wo,z):C=="import"?S(te("stat"),Ei,z):C=="async"?S(X):W=="@"?S(pe,X):O(te("stat"),pe,J(";"),z)}function le(C){if(C=="(")return S(pr,J(")"))}function pe(C,W){return Y(C,W,!1)}function I(C,W){return Y(C,W,!0)}function H(C){return C!="("?O():S(te(")"),ue,J(")"),z)}function Y(C,W,fe){if(P.state.fatArrowAt==P.stream.start){var be=fe?ye:ve;if(C=="(")return S(Ze,te(")"),st(pr,")"),z,J("=>"),be,Xe);if(C=="variable")return O(Ze,_n,J("=>"),be,Xe)}var oe=fe?de:he;return ne.hasOwnProperty(C)?S(oe):C=="function"?S(lr,oe):C=="class"||v&&W=="interface"?(P.marked="keyword",S(te("form"),Gu,z)):C=="keyword c"||C=="async"?S(fe?I:pe):C=="("?S(te(")"),ue,J(")"),z,oe):C=="operator"||C=="spread"?S(fe?I:pe):C=="["?S(te("]"),Pt,z,oe):C=="{"?Gt(ot,"}",null,oe):C=="quasi"?O(Ce,oe):C=="new"?S(Be(fe)):S()}function ue(C){return C.match(/[;\}\)\],]/)?O():O(pe)}function he(C,W){return C==","?S(ue):de(C,W,!1)}function de(C,W,fe){var be=fe==!1?he:de,oe=fe==!1?pe:I;if(C=="=>")return S(Ze,fe?ye:ve,Xe);if(C=="operator")return/\+\+|--/.test(W)||v&&W=="!"?S(be):v&&W=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(te(">"),st(et,">"),z,be):W=="?"?S(pe,J(":"),oe):S(oe);if(C=="quasi")return O(Ce,be);if(C!=";"){if(C=="(")return Gt(I,")","call",be);if(C==".")return S(tt,be);if(C=="[")return S(te("]"),ue,J("]"),z,be);if(v&&W=="as")return P.marked="keyword",S(et,be);if(C=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),S(oe)}}function Ce(C,W){return C!="quasi"?O():W.slice(W.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(C){if(C=="}")return P.marked="string-2",P.state.tokenize=V,S(Ce)}function ve(C){return ee(P.stream,P.state),O(C=="{"?X:pe)}function ye(C){return ee(P.stream,P.state),O(C=="{"?X:I)}function Be(C){return function(W){return W=="."?S(C?De:Ne):W=="variable"&&v?S(Fn,C?de:he):O(C?I:pe)}}function Ne(C,W){if(W=="target")return P.marked="keyword",S(he)}function De(C,W){if(W=="target")return P.marked="keyword",S(de)}function je(C){return C==":"?S(z,X):O(he,J(";"),z)}function tt(C){if(C=="variable")return P.marked="property",S()}function ot(C,W){if(C=="async")return P.marked="property",S(ot);if(C=="variable"||P.style=="keyword"){if(P.marked="property",W=="get"||W=="set")return S(lt);var fe;return v&&P.state.fatArrowAt==P.stream.start&&(fe=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+fe[0].length),S($t)}else{if(C=="number"||C=="string")return P.marked=d?"property":P.style+" property",S($t);if(C=="jsonld-keyword")return S($t);if(v&&me(W))return P.marked="keyword",S(ot);if(C=="[")return S(pe,Dn,J("]"),$t);if(C=="spread")return S(I,$t);if(W=="*")return P.marked="keyword",S(ot);if(C==":")return O($t)}}function lt(C){return C!="variable"?O($t):(P.marked="property",S(lr))}function $t(C){if(C==":")return S(I);if(C=="(")return O(lr)}function st(C,W,fe){function be(oe,Ae){if(fe?fe.indexOf(oe)>-1:oe==","){var ft=P.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),S(function(Kt,Sn){return Kt==W||Sn==W?O():O(C)},be)}return oe==W||Ae==W?S():fe&&fe.indexOf(";")>-1?O(C):S(J(W))}return function(oe,Ae){return oe==W||Ae==W?S():O(C,be)}}function Gt(C,W,fe){for(var be=3;be<arguments.length;be++)P.cc.push(arguments[be]);return S(te(W,fe),st(C,W),z)}function Bt(C){return C=="}"?S():O(X,Bt)}function Dn(C,W){if(v){if(C==":")return S(et);if(W=="?")return S(Dn)}}function Pr(C,W){if(v&&(C==":"||W=="in"))return S(et)}function zt(C){if(v&&C==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,zn,et):S(et)}function zn(C,W){if(W=="is")return P.marked="keyword",S()}function et(C,W){if(W=="keyof"||W=="typeof"||W=="infer"||W=="readonly")return P.marked="keyword",S(W=="typeof"?I:et);if(C=="variable"||W=="void")return P.marked="type",S(sr);if(W=="|"||W=="&")return S(et);if(C=="string"||C=="number"||C=="atom")return S(sr);if(C=="[")return S(te("]"),st(et,"]",","),z,sr);if(C=="{")return S(te("}"),Fe,z,sr);if(C=="(")return S(st(Rt,")"),La,sr);if(C=="<")return S(st(et,">"),et);if(C=="quasi")return O(cn,sr)}function La(C){if(C=="=>")return S(et)}function Fe(C){return C.match(/[\}\)\]]/)?S():C==","||C==";"?S(Fe):O(Zr,Fe)}function Zr(C,W){if(C=="variable"||P.style=="keyword")return P.marked="property",S(Zr);if(W=="?"||C=="number"||C=="string")return S(Zr);if(C==":")return S(et);if(C=="[")return S(J("variable"),Pr,J("]"),Zr);if(C=="(")return O(Ci,Zr);if(!C.match(/[;\}\)\],]/))return S()}function cn(C,W){return C!="quasi"?O():W.slice(W.length-2)!="${"?S(cn):S(et,Ot)}function Ot(C){if(C=="}")return P.marked="string-2",P.state.tokenize=V,S(cn)}function Rt(C,W){return C=="variable"&&P.stream.match(/^\s*[?:]/,!1)||W=="?"?S(Rt):C==":"?S(et):C=="spread"?S(Rt):O(et)}function sr(C,W){if(W=="<")return S(te(">"),st(et,">"),z,sr);if(W=="|"||C=="."||W=="&")return S(et);if(C=="[")return S(et,J("]"),sr);if(W=="extends"||W=="implements")return P.marked="keyword",S(et);if(W=="?")return S(et,J(":"),et)}function Fn(C,W){if(W=="<")return S(te(">"),st(et,">"),z,sr)}function dr(){return O(et,un)}function un(C,W){if(W=="=")return S(et)}function Fo(C,W){return W=="enum"?(P.marked="keyword",S(Re)):O(_n,Dn,hr,Vu)}function _n(C,W){if(v&&me(W))return P.marked="keyword",S(_n);if(C=="variable")return j(W),S();if(C=="spread")return S(_n);if(C=="[")return Gt(qs,"]");if(C=="{")return Gt(ki,"}")}function ki(C,W){return C=="variable"&&!P.stream.match(/^\s*:/,!1)?(j(W),S(hr)):(C=="variable"&&(P.marked="property"),C=="spread"?S(_n):C=="}"?O():C=="["?S(pe,J("]"),J(":"),ki):S(J(":"),_n,hr))}function qs(){return O(_n,hr)}function hr(C,W){if(W=="=")return S(I)}function Vu(C){if(C==",")return S(Fo)}function Ho(C,W){if(C=="keyword b"&&W=="else")return S(te("form","else"),X,z)}function Ma(C,W){if(W=="await")return S(Ma);if(C=="(")return S(te(")"),Us,z)}function Us(C){return C=="var"?S(Fo,Ti):C=="variable"?S(Ti):O(Ti)}function Ti(C,W){return C==")"?S():C==";"?S(Ti):W=="in"||W=="of"?(P.marked="keyword",S(pe,Ti)):O(pe,Ti)}function lr(C,W){if(W=="*")return P.marked="keyword",S(lr);if(C=="variable")return j(W),S(lr);if(C=="(")return S(Ze,te(")"),st(pr,")"),z,zt,X,Xe);if(v&&W=="<")return S(te(">"),st(dr,">"),z,lr)}function Ci(C,W){if(W=="*")return P.marked="keyword",S(Ci);if(C=="variable")return j(W),S(Ci);if(C=="(")return S(Ze,te(")"),st(pr,")"),z,zt,Xe);if(v&&W=="<")return S(te(">"),st(dr,">"),z,Ci)}function Na(C,W){if(C=="keyword"||C=="variable")return P.marked="type",S(Na);if(W=="<")return S(te(">"),st(dr,">"),z)}function pr(C,W){return W=="@"&&S(pe,pr),C=="spread"?S(pr):v&&me(W)?(P.marked="keyword",S(pr)):v&&C=="this"?S(Dn,hr):O(_n,Dn,hr)}function Gu(C,W){return C=="variable"?Bo(C,W):gr(C,W)}function Bo(C,W){if(C=="variable")return j(W),S(gr)}function gr(C,W){if(W=="<")return S(te(">"),st(dr,">"),z,gr);if(W=="extends"||W=="implements"||v&&C==",")return W=="implements"&&(P.marked="keyword"),S(v?et:pe,gr);if(C=="{")return S(te("}"),vr,z)}function vr(C,W){if(C=="async"||C=="variable"&&(W=="static"||W=="get"||W=="set"||v&&me(W))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",S(vr);if(C=="variable"||P.style=="keyword")return P.marked="property",S(uo,vr);if(C=="number"||C=="string")return S(uo,vr);if(C=="[")return S(pe,Dn,J("]"),uo,vr);if(W=="*")return P.marked="keyword",S(vr);if(v&&C=="(")return O(Ci,vr);if(C==";"||C==",")return S(vr);if(C=="}")return S();if(W=="@")return S(pe,vr)}function uo(C,W){if(W=="!"||W=="?")return S(uo);if(C==":")return S(et,hr);if(W=="=")return S(I);var fe=P.state.lexical.prev,be=fe&&fe.info=="interface";return O(be?Ci:lr)}function Wo(C,W){return W=="*"?(P.marked="keyword",S(jo,J(";"))):W=="default"?(P.marked="keyword",S(pe,J(";"))):C=="{"?S(st(qo,"}"),jo,J(";")):O(X)}function qo(C,W){if(W=="as")return P.marked="keyword",S(J("variable"));if(C=="variable")return O(I,qo)}function Ei(C){return C=="string"?S():C=="("?O(pe):C=="."?O(he):O(Uo,Ir,jo)}function Uo(C,W){return C=="{"?Gt(Uo,"}"):(C=="variable"&&j(W),W=="*"&&(P.marked="keyword"),S(js))}function Ir(C){if(C==",")return S(Uo,Ir)}function js(C,W){if(W=="as")return P.marked="keyword",S(Uo)}function jo(C,W){if(W=="from")return P.marked="keyword",S(pe)}function Pt(C){return C=="]"?S():O(st(I,"]"))}function Re(){return O(te("form"),_n,J("{"),te("}"),st(Jr,"}"),z,z)}function Jr(){return O(_n,hr)}function Vs(C,W){return C.lastType=="operator"||C.lastType==","||w.test(W.charAt(0))||/[,.]/.test(W.charAt(0))}function Yn(C,W,fe){return W.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(W.lastType)||W.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(fe||0)))}return{startState:function(C){var W={tokenize:R,lastType:"sof",cc:[],lexical:new K((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new _e(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(W.globalVars=s.globalVars),W},token:function(C,W){if(C.sol()&&(W.lexical.hasOwnProperty("align")||(W.lexical.align=!1),W.indented=C.indentation(),ee(C,W)),W.tokenize!=B&&C.eatSpace())return null;var fe=W.tokenize(C,W);return T=="comment"?fe:(W.lastType=T=="operator"&&(L=="++"||L=="--")?"incdec":T,$(W,fe,T,L,C))},indent:function(C,W){if(C.tokenize==B||C.tokenize==V)return r.Pass;if(C.tokenize!=R)return 0;var fe=W&&W.charAt(0),be=C.lexical,oe;if(!/^\s*else\b/.test(W))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var ft=C.cc[Ae];if(ft==z)be=be.prev;else if(ft!=Ho&&ft!=Xe)break}for(;(be.type=="stat"||be.type=="form")&&(fe=="}"||(oe=C.cc[C.cc.length-1])&&(oe==he||oe==de)&&!/^[,\.=+\-*:?[\(]/.test(W));)be=be.prev;f&&be.type==")"&&be.prev.type=="stat"&&(be=be.prev);var Kt=be.type,Sn=fe==Kt;return Kt=="vardef"?be.indented+(C.lastType=="operator"||C.lastType==","?be.info.length+1:0):Kt=="form"&&fe=="{"?be.indented:Kt=="form"?be.indented+c:Kt=="stat"?be.indented+(Vs(C,W)?f||c:0):be.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?be.indented+(/^(?:case|default)\b/.test(W)?c:2*c):be.align?be.column+(Sn?0:1):be.indented+(Sn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Yn,skipExpression:function(C){$(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Wm.exports}qw();var Um={exports:{}},jm;function Uw(){return jm||(jm=1,function(e,t){(function(r){r(Ws())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(S,F){function j(_e){return F.tokenize=_e,_e(S,F)}var se=S.next();if(se=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?j(T("atom","]]>")):null:S.match("--")?j(T("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),j(L(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),F.tokenize=T("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",F.tokenize=E,"tag bracket");if(se=="&"){var me;return S.eat("#")?S.eat("x")?me=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):me=S.eatWhile(/[\d]/)&&S.eat(";"):me=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),me?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function E(S,F){var j=S.next();if(j==">"||j=="/"&&S.eat(">"))return F.tokenize=w,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){F.tokenize=w,F.state=V,F.tagName=F.tagStart=null;var se=F.tokenize(S,F);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(j)?(F.tokenize=N(j),F.stringStartCol=S.column(),F.tokenize(S,F)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(S){var F=function(j,se){for(;!j.eol();)if(j.next()==S){se.tokenize=E;break}return"string"};return F.isInAttribute=!0,F}function T(S,F){return function(j,se){for(;!j.eol();){if(j.match(F)){se.tokenize=w;break}j.next()}return S}}function L(S){return function(F,j){for(var se;(se=F.next())!=null;){if(se=="<")return j.tokenize=L(S+1),j.tokenize(F,j);if(se==">")if(S==1){j.tokenize=w;break}else return j.tokenize=L(S-1),j.tokenize(F,j)}return"meta"}}function A(S){return S&&S.toLowerCase()}function R(S,F,j){this.prev=S.context,this.tagName=F||"",this.indent=S.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(F)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function M(S){S.context&&(S.context=S.context.prev)}function B(S,F){for(var j;;){if(!S.context||(j=S.context.tagName,!h.contextGrabbers.hasOwnProperty(A(j))||!h.contextGrabbers[A(j)].hasOwnProperty(A(F))))return;M(S)}}function V(S,F,j){return S=="openTag"?(j.tagStart=F.column(),G):S=="closeTag"?ee:V}function G(S,F,j){return S=="word"?(j.tagName=F.current(),b="tag",re):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",re(S,F,j)):(b="error",G)}function ee(S,F,j){if(S=="word"){var se=F.current();return j.context&&j.context.tagName!=se&&h.implicitlyClosed.hasOwnProperty(A(j.context.tagName))&&M(j),j.context&&j.context.tagName==se||h.matchClosing===!1?(b="tag",ne):(b="tag error",K)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",ne(S,F,j)):(b="error",K)}function ne(S,F,j){return S!="endTag"?(b="error",ne):(M(j),V)}function K(S,F,j){return b="error",ne(S,F,j)}function re(S,F,j){if(S=="word")return b="attribute",$;if(S=="endTag"||S=="selfcloseTag"){var se=j.tagName,me=j.tagStart;return j.tagName=j.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(A(se))?B(j,se):(B(j,se),j.context=new R(j,se,me==j.indented)),V}return b="error",re}function $(S,F,j){return S=="equals"?P:(h.allowMissing||(b="error"),re(S,F,j))}function P(S,F,j){return S=="string"?O:S=="word"&&h.allowUnquoted?(b="string",re):(b="error",re(S,F,j))}function O(S,F,j){return S=="string"?O:re(S,F,j)}return{startState:function(S){var F={tokenize:w,state:V,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(F.baseIndent=S),F},token:function(S,F){if(!F.tagName&&S.sol()&&(F.indented=S.indentation()),S.eatSpace())return null;m=null;var j=F.tokenize(S,F);return(j||m)&&j!="comment"&&(b=null,F.state=F.state(m||j,S,F),b&&(j=b=="error"?j+" error":b)),j},indent:function(S,F,j){var se=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(se&&se.noIndent)return r.Pass;if(S.tokenize!=E&&S.tokenize!=w)return j?j.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(F))return 0;var me=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(me&&me[1])for(;se;)if(se.tagName==me[2]){se=se.prev;break}else if(h.implicitlyClosed.hasOwnProperty(A(se.tagName)))se=se.prev;else break;else if(me)for(;se;){var _e=h.contextGrabbers[A(se.tagName)];if(_e&&_e.hasOwnProperty(A(me[2])))se=se.prev;else break}for(;se&&se.prev&&!se.startOfLine;)se=se.prev;return se?se.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==P&&(S.state=re)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var F=[],j=S.context;j;j=j.prev)F.push(j.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Um.exports}Uw();var Vm={exports:{}},Gm;function Yce(){return Gm||(Gm=1,function(e,t){(function(r){r(Ws(),Uw(),qw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var N=d.indent(w,"","");return w.tagName=E,N}function v(w,E){return E.context.mode==d?m(w,E,E.context):b(w,E,E.context)}function m(w,E,N){if(N.depth==2)return w.match(/^.*?\*\//)?N.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(N.state);var T=p(N.state),L=N.state.context;if(L&&w.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?T-=c.indentUnit:N.prev.state.lexical&&(T=N.prev.state.lexical.indented)}else N.depth==1&&(T+=c.indentUnit);return E.context=new o(r.startState(h,T),h,0,E.context),null}if(N.depth==1){if(w.peek()=="<")return d.skipAttribute(N.state),E.context=new o(r.startState(d,p(N.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return N.depth=2,v(w,E)}var A=d.token(w,N.state),R=w.current(),M;return/\btag\b/.test(A)?/>$/.test(R)?N.state.context?N.depth=0:E.context=E.context.prev:/^</.test(R)&&(N.depth=1):!A&&(M=R.indexOf("{"))>-1&&w.backUp(R.length-M),A}function b(w,E,N){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,N.state))return E.context=new o(r.startState(d,h.indent(N.state,"","")),d,0,E.context),h.skipExpression(N.state),null;var T=h.token(w,N.state);if(!T&&N.depth!=null){var L=w.current();L=="{"?N.depth++:L=="}"&&--N.depth==0&&(E.context=E.context.prev)}return T}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,E,N){return w.context.mode.indent(w.context.state,E,N)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),Vm.exports}Yce();var Km={exports:{}},Xm;function Zce(){return Xm||(Xm=1,function(e,t){(function(r){r(Ws())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),Km.exports}Zce();var Ym={exports:{}},Zm;function Jce(){return Zm||(Zm=1,function(e,t){(function(r){r(Ws())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],E=p.pos;function N(){r.off(document,"mousemove",T),r.off(document,"mouseup",N)}function T(L){if(L.which!=1)return N();p.moveTo(E+(L[b]-w)*(p.total/p.size))}r.on(document,"mousemove",T),r.on(document,"mouseup",N)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})}()),Ym.exports}Jce();const Wn=rn();function Qce(e,t,r={}){const o=Xce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Tu(()=>{Wn.value=void 0}),Sh(o)}async function eue(e){var t;bw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const jw=ut({__name:"CodeMirrorContainer",props:Gl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Gl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Eu(e,"modelValue"),s=ok(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ue();return co(async()=>{const d=Qce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Wn.value=d,setTimeout(()=>Wn.value.refresh(),100)}),(d,h)=>(ce(),xe("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[ie("textarea",{ref_key:"el",ref:f},null,512)],2))}}),tue=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=rn(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();xt(()=>r.file,async()=>{var G;if(!h.value){d.value=!0;try{if(!r.file||!((G=r.file)!=null&&G.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await mt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(ee){console.error("cannot fetch file",ee)}await Tt(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,mw.value],([G,ee,ne,K])=>{!G&&!ee&&(K!=null?Tt(()=>{var P;const re=p.value,$=re??{line:K??0,ch:0};re?p.value=void 0:((P=Wn.value)==null||P.scrollIntoView($,100),Tt(()=>{var O,S;(O=Wn.value)==null||O.focus(),(S=Wn.value)==null||S.setCursor($)}))}):Tt(()=>{var re;(re=Wn.value)==null||re.focus()}))},{flush:"post"});const v=Se(()=>{var G,ee;return((ee=(G=r.file)==null?void 0:G.filepath)==null?void 0:ee.split(/\./g).pop())||"js"}),m=Ue(),b=Se(()=>{var G;return((G=r.file)==null?void 0:G.tasks.filter(ee=>{var ne;return((ne=ee.result)==null?void 0:ne.state)==="fail"}))||[]}),w=[],E=[],N=[],T=Ue(!1);function L(){N.forEach(([G,ee,ne])=>{G.removeEventListener("click",ee),ne()}),N.length=0}ow(m,()=>{var G;(G=Wn.value)==null||G.refresh()});function A(){f.value=c.value!==Wn.value.getValue()}xt(f,G=>{o("draft",G)},{immediate:!0});function R(G){const ee=((G==null?void 0:G.stacks)||[]).filter(O=>{var S;return O.file&&O.file===((S=r.file)==null?void 0:S.filepath)}),ne=ee==null?void 0:ee[0];if(!ne)return;const K=document.createElement("div");K.className="op80 flex gap-x-2 items-center";const re=document.createElement("pre");re.className="c-red-600 dark:c-red-400",re.textContent=`${" ".repeat(ne.column)}^ ${(G==null?void 0:G.nameStr)||G.name}: ${(G==null?void 0:G.message)||""}`,K.appendChild(re);const $=document.createElement("span");$.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",$.tabIndex=0,$.ariaLabel="Open in Editor",Rb($,{content:"Open in Editor",placement:"bottom"},!1);const P=async()=>{await Nw(ne.file,ne.line,ne.column)};$.addEventListener("click",P),K.appendChild($),N.push([$,P,()=>Ih($)]),E.push(Wn.value.addLineClass(ne.line-1,"wrap","bg-red-500/10")),w.push(Wn.value.addLineWidget(ne.line-1,K))}const{pause:M,resume:B}=xt([Wn,b,ms],([G,ee,ne])=>{if(!G){w.length=0,E.length=0,L();return}ne&&(G.off("changes",A),L(),w.forEach(K=>K.clear()),E.forEach(K=>G==null?void 0:G.removeLineClass(K,"wrap")),w.length=0,E.length=0,setTimeout(()=>{ee.forEach(K=>{var re,$;($=(re=K.result)==null?void 0:re.errors)==null||$.forEach(R)}),T.value||G.clearHistory(),G.on("changes",A)},100))},{flush:"post"});Bh(()=>[ms.value,h.value,p.value],([G,ee],ne)=>{var K;G&&!ee&&ne&&ne[2]&&((K=Wn.value)==null||K.setCursor(ne[2]))},{debounce:100,flush:"post"});async function V(G){if(h.value)return;M(),h.value=!0,await Tt();const ee=Wn.value;ee&&(ee.setOption("readOnly",!0),await Tt(),ee.refresh()),p.value=ee==null?void 0:ee.getCursor(),ee==null||ee.off("changes",A),L(),w.forEach(ne=>ne.clear()),E.forEach(ne=>ee==null?void 0:ee.removeLineClass(ne,"wrap")),w.length=0,E.length=0;try{T.value=!0,await mt.rpc.saveTestFile(r.file.filepath,G),c.value=G,f.value=!1}catch(ne){console.error("error saving file",ne)}T.value||ee==null||ee.clearHistory();try{await mm(ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await mm(ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(ne=>{var K,re;(re=(K=ne.result)==null?void 0:K.errors)==null||re.forEach(R)}),ee==null||ee.on("changes",A),h.value=!1,await Tt(),ee&&(ee.setOption("readOnly",!1),await Tt(),ee.refresh()),B()}return ya(L),(G,ee)=>{const ne=jw;return ce(),nt(ne,pi({ref_key:"editor",ref:m,modelValue:U(s),"onUpdate:modelValue":ee[0]||(ee[0]=K=>Ct(s)?s.value=K:null),"h-full":""},{lineNumbers:!0,readOnly:U(Ar),saving:U(h)},{mode:U(v),"data-testid":"code-mirror",onSave:V}),null,16,["modelValue","mode"])}}}),nue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},rue={"p-4":"",relative:""},iue={op50:"","font-mono":"","text-sm":""},oue={key:0,"p-5":""},sue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},lue={key:0},aue={p:"x3 y-1","bg-overlay":"",border:"base b t"},cue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=lE(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Ht)),c=Se(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Se(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return tw("Escape",()=>{o("close")}),(p,v)=>{const m=Si,b=jw;return ce(),xe("div",nue,[ie("div",rue,[v[1]||(v[1]=ie("p",null,"Module Info",-1)),ie("p",iue,We(p.id),1),Oe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),U(s)?(ce(),xe(ct,{key:1},[ie("div",sue,[v[2]||(v[2]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,pi({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"]),Oe(b,pi({"h-full":"","model-value":U(d),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])]),U(h).mappings!==""?(ce(),xe("div",lue,[ie("div",aue," Source map (v"+We(U(h).version)+") ",1),Oe(b,pi({"model-value":U(h).mappings,"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(ce(),xe("div",oue," No transform result found for this module. "))])}}});function uue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Kd="http://www.w3.org/1999/xhtml";const Jm={svg:"http://www.w3.org/2000/svg",xhtml:Kd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Jm.hasOwnProperty(t)?{space:Jm[t],local:e}:e}function fue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Kd&&t.documentElement.namespaceURI===Kd?t.createElement(e):t.createElementNS(r,e)}}function due(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vw(e){var t=Bu(e);return(t.local?due:fue)(t)}function hue(){}function Kh(e){return e==null?hue:function(){return this.querySelector(e)}}function pue(e){typeof e!="function"&&(e=Kh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new or(o,this._parents)}function gue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vue(){return[]}function Gw(e){return e==null?vue:function(){return this.querySelectorAll(e)}}function mue(e){return function(){return gue(e.apply(this,arguments))}}function yue(e){typeof e=="function"?e=mue(e):e=Gw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new or(o,s)}function Kw(e){return function(){return this.matches(e)}}function Xw(e){return function(t){return t.matches(e)}}var bue=Array.prototype.find;function wue(e){return function(){return bue.call(this.children,e)}}function xue(){return this.firstElementChild}function _ue(e){return this.select(e==null?xue:wue(typeof e=="function"?e:Xw(e)))}var Sue=Array.prototype.filter;function kue(){return Array.from(this.children)}function Tue(e){return function(){return Sue.call(this.children,e)}}function Cue(e){return this.selectAll(e==null?kue:Tue(typeof e=="function"?e:Xw(e)))}function Eue(e){typeof e!="function"&&(e=Kw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new or(o,this._parents)}function Yw(e){return new Array(e.length)}function Aue(){return new or(this._enter||this._groups.map(Yw),this._parents)}function au(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}au.prototype={constructor:au,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Lue(e){return function(){return e}}function Mue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new au(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Nue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new au(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function $ue(e){return e.__data__}function Oue(e,t){if(!arguments.length)return Array.from(this,$ue);var r=t?Nue:Mue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Lue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=Rue(e.call(v,v&&v.__data__,p,o)),E=w.length,N=d[p]=new Array(E),T=f[p]=new Array(E),L=h[p]=new Array(b);r(v,m,N,T,L,w,t);for(var A=0,R=0,M,B;A<E;++A)if(M=N[A]){for(A>=R&&(R=A+1);!(B=T[R])&&++R<E;);M._next=B||null}}return f=new or(f,o),f._enter=d,f._exit=h,f}function Rue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Pue(){return new or(this._exit||this._groups.map(Yw),this._parents)}function Iue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Due(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,E=0;E<m;++E)(w=p[E]||v[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new or(d,this._parents)}function zue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Fue(e){e||(e=Hue);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new or(s,this._parents).order()}function Hue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Bue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Wue(){return Array.from(this)}function que(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Uue(){let e=0;for(const t of this)++e;return e}function jue(){return!this.node()}function Vue(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Gue(e){return function(){this.removeAttribute(e)}}function Kue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Xue(e,t){return function(){this.setAttribute(e,t)}}function Yue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Jue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Que(e,t){var r=Bu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?Kue:Gue:typeof t=="function"?r.local?Jue:Zue:r.local?Yue:Xue)(r,t))}function Zw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function efe(e){return function(){this.style.removeProperty(e)}}function tfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function nfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function rfe(e,t,r){return arguments.length>1?this.each((t==null?efe:typeof t=="function"?nfe:tfe)(e,t,r??"")):zs(this.node(),e)}function zs(e,t){return e.style.getPropertyValue(t)||Zw(e).getComputedStyle(e,null).getPropertyValue(t)}function ife(e){return function(){delete this[e]}}function ofe(e,t){return function(){this[e]=t}}function sfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function lfe(e,t){return arguments.length>1?this.each((t==null?ife:typeof t=="function"?sfe:ofe)(e,t)):this.node()[e]}function Jw(e){return e.trim().split(/^|\s+/)}function Xh(e){return e.classList||new Qw(e)}function Qw(e){this._node=e,this._names=Jw(e.getAttribute("class")||"")}Qw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function e1(e,t){for(var r=Xh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function t1(e,t){for(var r=Xh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function afe(e){return function(){e1(this,e)}}function cfe(e){return function(){t1(this,e)}}function ufe(e,t){return function(){(t.apply(this,arguments)?e1:t1)(this,e)}}function ffe(e,t){var r=Jw(e+"");if(arguments.length<2){for(var o=Xh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?ufe:t?afe:cfe)(r,t))}function dfe(){this.textContent=""}function hfe(e){return function(){this.textContent=e}}function pfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function gfe(e){return arguments.length?this.each(e==null?dfe:(typeof e=="function"?pfe:hfe)(e)):this.node().textContent}function vfe(){this.innerHTML=""}function mfe(e){return function(){this.innerHTML=e}}function yfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function bfe(e){return arguments.length?this.each(e==null?vfe:(typeof e=="function"?yfe:mfe)(e)):this.node().innerHTML}function wfe(){this.nextSibling&&this.parentNode.appendChild(this)}function xfe(){return this.each(wfe)}function _fe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sfe(){return this.each(_fe)}function kfe(e){var t=typeof e=="function"?e:Vw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Tfe(){return null}function Cfe(e,t){var r=typeof e=="function"?e:Vw(e),o=t==null?Tfe:typeof t=="function"?t:Kh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Efe(){var e=this.parentNode;e&&e.removeChild(this)}function Afe(){return this.each(Efe)}function Lfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nfe(e){return this.select(e?Mfe:Lfe)}function $fe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ofe(e){return function(t){e.call(this,t,this.__data__)}}function Rfe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function Pfe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Ife(e,t,r){return function(){var o=this.__on,s,c=Ofe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Dfe(e,t,r){var o=Rfe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Ife:Pfe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function n1(e,t,r){var o=Zw(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function zfe(e,t){return function(){return n1(this,e,t)}}function Ffe(e,t){return function(){return n1(this,e,t.apply(this,arguments))}}function Hfe(e,t){return this.each((typeof t=="function"?Ffe:zfe)(e,t))}function*Bfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var r1=[null];function or(e,t){this._groups=e,this._parents=t}function Ca(){return new or([[document.documentElement]],r1)}function Wfe(){return this}or.prototype=Ca.prototype={constructor:or,select:pue,selectAll:yue,selectChild:_ue,selectChildren:Cue,filter:Eue,data:Oue,enter:Aue,exit:Pue,join:Iue,merge:Due,selection:Wfe,order:zue,sort:Fue,call:Bue,nodes:Wue,node:que,size:Uue,empty:jue,each:Vue,attr:Que,style:rfe,property:lfe,classed:ffe,text:gfe,html:bfe,raise:xfe,lower:Sfe,append:kfe,insert:Cfe,remove:Afe,clone:Nfe,datum:$fe,on:Dfe,dispatch:Hfe,[Symbol.iterator]:Bfe};function Vn(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],r1)}function qfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ui(e,t){if(e=qfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Ufe=Object.defineProperty,jfe=(e,t,r)=>t in e?Ufe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qm=(e,t,r)=>jfe(e,typeof t!="symbol"?t+"":t,r);class Nn{constructor(t,r){Qm(this,"x"),Qm(this,"y"),this.x=t,this.y=r}static of([t,r]){return new Nn(t,r)}add(t){return new Nn(this.x+t.x,this.y+t.y)}subtract(t){return new Nn(this.x-t.x,this.y-t.y)}multiply(t){return new Nn(this.x*t,this.y*t)}divide(t){return new Nn(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Nn(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Nn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Nn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Vfe={value:()=>{}};function Ea(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new $c(r)}function $c(e){this._=e}function Gfe(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}$c.prototype=Ea.prototype={constructor:$c,on:function(e,t){var r=this._,o=Gfe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Kfe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=e0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=e0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new $c(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Kfe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function e0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Vfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Xfe={passive:!1},sa={capture:!0,passive:!1};function ud(e){e.stopImmediatePropagation()}function Ns(e){e.preventDefault(),e.stopImmediatePropagation()}function i1(e){var t=e.document.documentElement,r=Vn(e).on("dragstart.drag",Ns,sa);"onselectstart"in t?r.on("selectstart.drag",Ns,sa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function o1(e,t){var r=e.document.documentElement,o=Vn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ns,sa),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const bc=e=>()=>e;function Xd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}Xd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Yfe(e){return!e.ctrlKey&&!e.button}function Zfe(){return this.parentNode}function Jfe(e,t){return t??{x:e.x,y:e.y}}function Qfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ede(){var e=Yfe,t=Zfe,r=Jfe,o=Qfe,s={},c=Ea("start","drag","end"),f=0,d,h,p,v,m=0;function b(M){M.on("mousedown.drag",w).filter(o).on("touchstart.drag",T).on("touchmove.drag",L,Xfe).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(M,B){if(!(v||!e.call(this,M,B))){var V=R(this,t.call(this,M,B),M,B,"mouse");V&&(Vn(M.view).on("mousemove.drag",E,sa).on("mouseup.drag",N,sa),i1(M.view),ud(M),p=!1,d=M.clientX,h=M.clientY,V("start",M))}}function E(M){if(Ns(M),!p){var B=M.clientX-d,V=M.clientY-h;p=B*B+V*V>m}s.mouse("drag",M)}function N(M){Vn(M.view).on("mousemove.drag mouseup.drag",null),o1(M.view,p),Ns(M),s.mouse("end",M)}function T(M,B){if(e.call(this,M,B)){var V=M.changedTouches,G=t.call(this,M,B),ee=V.length,ne,K;for(ne=0;ne<ee;++ne)(K=R(this,G,M,B,V[ne].identifier,V[ne]))&&(ud(M),K("start",M,V[ne]))}}function L(M){var B=M.changedTouches,V=B.length,G,ee;for(G=0;G<V;++G)(ee=s[B[G].identifier])&&(Ns(M),ee("drag",M,B[G]))}function A(M){var B=M.changedTouches,V=B.length,G,ee;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),G=0;G<V;++G)(ee=s[B[G].identifier])&&(ud(M),ee("end",M,B[G]))}function R(M,B,V,G,ee,ne){var K=c.copy(),re=ui(ne||V,B),$,P,O;if((O=r.call(M,new Xd("beforestart",{sourceEvent:V,target:b,identifier:ee,active:f,x:re[0],y:re[1],dx:0,dy:0,dispatch:K}),G))!=null)return $=O.x-re[0]||0,P=O.y-re[1]||0,function S(F,j,se){var me=re,_e;switch(F){case"start":s[ee]=S,_e=f++;break;case"end":delete s[ee],--f;case"drag":re=ui(se||j,B),_e=f;break}K.call(F,M,new Xd(F,{sourceEvent:j,subject:O,target:b,identifier:ee,active:_e,x:re[0]+$,y:re[1]+P,dx:re[0]-me[0],dy:re[1]-me[1],dispatch:K}),G)}}return b.filter=function(M){return arguments.length?(e=typeof M=="function"?M:bc(!!M),b):e},b.container=function(M){return arguments.length?(t=typeof M=="function"?M:bc(M),b):t},b.subject=function(M){return arguments.length?(r=typeof M=="function"?M:bc(M),b):r},b.touchable=function(M){return arguments.length?(o=typeof M=="function"?M:bc(!!M),b):o},b.on=function(){var M=c.on.apply(c,arguments);return M===c?b:M},b.clickDistance=function(M){return arguments.length?(m=(M=+M)*M,b):Math.sqrt(m)},b}function Yh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function s1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Aa(){}var la=.7,cu=1/la,$s="\\s*([+-]?\\d+)\\s*",aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tde=/^#([0-9a-f]{3,8})$/,nde=new RegExp(`^rgb\\(${$s},${$s},${$s}\\)$`),rde=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),ide=new RegExp(`^rgba\\(${$s},${$s},${$s},${aa}\\)$`),ode=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${aa}\\)$`),sde=new RegExp(`^hsl\\(${aa},${Gr},${Gr}\\)$`),lde=new RegExp(`^hsla\\(${aa},${Gr},${Gr},${aa}\\)$`),t0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yh(Aa,ca,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:n0,formatHex:n0,formatHex8:ade,formatHsl:cde,formatRgb:r0,toString:r0});function n0(){return this.rgb().formatHex()}function ade(){return this.rgb().formatHex8()}function cde(){return l1(this).formatHsl()}function r0(){return this.rgb().formatRgb()}function ca(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=tde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?i0(t):r===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=nde.exec(e))?new Kn(t[1],t[2],t[3],1):(t=rde.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ide.exec(e))?wc(t[1],t[2],t[3],t[4]):(t=ode.exec(e))?wc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sde.exec(e))?l0(t[1],t[2]/100,t[3]/100,1):(t=lde.exec(e))?l0(t[1],t[2]/100,t[3]/100,t[4]):t0.hasOwnProperty(e)?i0(t0[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function i0(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function wc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Kn(e,t,r,o)}function ude(e){return e instanceof Aa||(e=ca(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function Yd(e,t,r,o){return arguments.length===1?ude(e):new Kn(e,t,r,o??1)}function Kn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Yh(Kn,Yd,s1(Aa,{brighter(e){return e=e==null?cu:Math.pow(cu,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(Ro(this.r),Ro(this.g),Ro(this.b),uu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:o0,formatHex:o0,formatHex8:fde,formatRgb:s0,toString:s0}));function o0(){return`#${No(this.r)}${No(this.g)}${No(this.b)}`}function fde(){return`#${No(this.r)}${No(this.g)}${No(this.b)}${No((isNaN(this.opacity)?1:this.opacity)*255)}`}function s0(){const e=uu(this.opacity);return`${e===1?"rgb(":"rgba("}${Ro(this.r)}, ${Ro(this.g)}, ${Ro(this.b)}${e===1?")":`, ${e})`}`}function uu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ro(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function No(e){return e=Ro(e),(e<16?"0":"")+e.toString(16)}function l0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Tr(e,t,r,o)}function l1(e){if(e instanceof Tr)return new Tr(e.h,e.s,e.l,e.opacity);if(e instanceof Aa||(e=ca(e)),!e)return new Tr;if(e instanceof Tr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Tr(f,d,h,e.opacity)}function dde(e,t,r,o){return arguments.length===1?l1(e):new Tr(e,t,r,o??1)}function Tr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Yh(Tr,dde,s1(Aa,{brighter(e){return e=e==null?cu:Math.pow(cu,e),new Tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new Tr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Kn(fd(e>=240?e-240:e+120,s,o),fd(e,s,o),fd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Tr(a0(this.h),xc(this.s),xc(this.l),uu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=uu(this.opacity);return`${e===1?"hsl(":"hsla("}${a0(this.h)}, ${xc(this.s)*100}%, ${xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function a0(e){return e=(e||0)%360,e<0?e+360:e}function xc(e){return Math.max(0,Math.min(1,e||0))}function fd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const a1=e=>()=>e;function hde(e,t){return function(r){return e+r*t}}function pde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function gde(e){return(e=+e)==1?c1:function(t,r){return r-t?pde(t,r,e):a1(isNaN(t)?r:t)}}function c1(e,t){var r=t-e;return r?hde(e,r):a1(isNaN(e)?t:e)}const c0=function e(t){var r=gde(t);function o(s,c){var f=r((s=Yd(s)).r,(c=Yd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=c1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Vi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Zd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dd=new RegExp(Zd.source,"g");function vde(e){return function(){return e}}function mde(e){return function(t){return e(t)+""}}function yde(e,t){var r=Zd.lastIndex=dd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Zd.exec(e))&&(s=dd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Vi(o,s)})),r=dd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?mde(h[0].x):vde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var u0=180/Math.PI,Jd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function u1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*u0,skewX:Math.atan(h)*u0,scaleX:f,scaleY:d}}var _c;function bde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Jd:u1(t.a,t.b,t.c,t.d,t.e,t.f)}function wde(e){return e==null||(_c||(_c=document.createElementNS("http://www.w3.org/2000/svg","g")),_c.setAttribute("transform",e),!(e=_c.transform.baseVal.consolidate()))?Jd:(e=e.matrix,u1(e.a,e.b,e.c,e.d,e.e,e.f))}function f1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push("translate(",null,t,null,r);E.push({i:N-4,x:Vi(p,m)},{i:N-2,x:Vi(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Vi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Vi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push(s(w)+"scale(",null,",",null,")");E.push({i:N-4,x:Vi(p,m)},{i:N-2,x:Vi(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var E=-1,N=b.length,T;++E<N;)m[(T=b[E]).i]=T.x(w);return m.join("")}}}var xde=f1(bde,"px, ","px)","deg)"),_de=f1(wde,", ",")",")"),Sde=1e-12;function f0(e){return((e=Math.exp(e))+1/e)/2}function kde(e){return((e=Math.exp(e))-1/e)/2}function Tde(e){return((e=Math.exp(2*e))-1)/(e+1)}const Cde=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,E=m-h,N=w*w+E*E,T,L;if(N<Sde)L=Math.log(b/p)/t,T=function(G){return[d+G*w,h+G*E,p*Math.exp(t*G*L)]};else{var A=Math.sqrt(N),R=(b*b-p*p+o*N)/(2*p*r*A),M=(b*b-p*p-o*N)/(2*b*r*A),B=Math.log(Math.sqrt(R*R+1)-R),V=Math.log(Math.sqrt(M*M+1)-M);L=(V-B)/t,T=function(G){var ee=G*L,ne=f0(B),K=p/(r*A)*(ne*Tde(t*ee+B)-kde(B));return[d+K*w,h+K*E,p*ne/f0(t*ee+B)]}}return T.duration=L*1e3*t/Math.SQRT2,T}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var Fs=0,Al=0,kl=0,d1=1e3,fu,Ll,du=0,Io=0,Wu=0,ua=typeof performance=="object"&&performance.now?performance:Date,h1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Zh(){return Io||(h1(Ede),Io=ua.now()+Wu)}function Ede(){Io=0}function hu(){this._call=this._time=this._next=null}hu.prototype=Jh.prototype={constructor:hu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Zh():+r)+(t==null?0:+t),!this._next&&Ll!==this&&(Ll?Ll._next=this:fu=this,Ll=this),this._call=e,this._time=r,Qd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qd())}};function Jh(e,t,r){var o=new hu;return o.restart(e,t,r),o}function Ade(){Zh(),++Fs;for(var e=fu,t;e;)(t=Io-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fs}function d0(){Io=(du=ua.now())+Wu,Fs=Al=0;try{Ade()}finally{Fs=0,Mde(),Io=0}}function Lde(){var e=ua.now(),t=e-du;t>d1&&(Wu-=t,du=e)}function Mde(){for(var e,t=fu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:fu=r);Ll=e,Qd(o)}function Qd(e){if(!Fs){Al&&(Al=clearTimeout(Al));var t=e-Io;t>24?(e<1/0&&(Al=setTimeout(d0,e-ua.now()-Wu)),kl&&(kl=clearInterval(kl))):(kl||(du=ua.now(),kl=setInterval(Lde,d1)),Fs=1,h1(d0))}}function h0(e,t,r){var o=new hu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Nde=Ea("start","end","cancel","interrupt"),$de=[],p1=0,p0=1,eh=2,Oc=3,g0=4,th=5,Rc=6;function qu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Ode(e,r,{name:t,index:o,group:s,on:Nde,tween:$de,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:p1})}function Qh(e,t){var r=Rr(e,t);if(r.state>p1)throw new Error("too late; already scheduled");return r}function Yr(e,t){var r=Rr(e,t);if(r.state>Oc)throw new Error("too late; already running");return r}function Rr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Ode(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Jh(c,0,r.time);function c(p){r.state=p0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==p0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Oc)return h0(f);w.state===g0?(w.state=Rc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Rc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(h0(function(){r.state===Oc&&(r.state=g0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=eh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===eh){for(r.state=Oc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=th,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===th&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Rc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Pc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>eh&&o.state<th,o.state=Rc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Rde(e){return this.each(function(){Pc(this,e)})}function Pde(e,t){var r,o;return function(){var s=Yr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Ide(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Yr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function Dde(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Rr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Pde:Ide)(r,e,t))}function ep(e,t,r){var o=e._id;return e.each(function(){var s=Yr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Rr(s,o).value[t]}}function g1(e,t){var r;return(typeof t=="number"?Vi:t instanceof ca?c0:(r=ca(t))?(t=r,c0):yde)(e,t)}function zde(e){return function(){this.removeAttribute(e)}}function Fde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Hde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function Bde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Wde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function qde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Ude(e,t){var r=Bu(e),o=r==="transform"?_de:g1;return this.attrTween(e,typeof t=="function"?(r.local?qde:Wde)(r,o,ep(this,"attr."+e,t)):t==null?(r.local?Fde:zde)(r):(r.local?Bde:Hde)(r,o,t))}function jde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Vde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Gde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Vde(e,c)),r}return s._value=t,s}function Kde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&jde(e,c)),r}return s._value=t,s}function Xde(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Bu(e);return this.tween(r,(o.local?Gde:Kde)(o,t))}function Yde(e,t){return function(){Qh(this,e).delay=+t.apply(this,arguments)}}function Zde(e,t){return t=+t,function(){Qh(this,e).delay=t}}function Jde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yde:Zde)(t,e)):Rr(this.node(),t).delay}function Qde(e,t){return function(){Yr(this,e).duration=+t.apply(this,arguments)}}function ehe(e,t){return t=+t,function(){Yr(this,e).duration=t}}function the(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Qde:ehe)(t,e)):Rr(this.node(),t).duration}function nhe(e,t){if(typeof t!="function")throw new Error;return function(){Yr(this,e).ease=t}}function rhe(e){var t=this._id;return arguments.length?this.each(nhe(t,e)):Rr(this.node(),t).ease}function ihe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Yr(this,e).ease=r}}function ohe(e){if(typeof e!="function")throw new Error;return this.each(ihe(this._id,e))}function she(e){typeof e!="function"&&(e=Kw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new bi(o,this._parents,this._name,this._id)}function lhe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new bi(f,this._parents,this._name,this._id)}function ahe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function che(e,t,r){var o,s,c=ahe(t)?Qh:Yr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function uhe(e,t){var r=this._id;return arguments.length<2?Rr(this.node(),r).on.on(e):this.each(che(r,e,t))}function fhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function dhe(){return this.on("end.remove",fhe(this._id))}function hhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Kh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,qu(p[b],t,r,b,p,Rr(v,r)));return new bi(c,this._parents,t,r)}function phe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Gw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,E=Rr(v,r),N=0,T=b.length;N<T;++N)(w=b[N])&&qu(w,t,r,N,b,E);c.push(b),f.push(v)}return new bi(c,f,t,r)}var ghe=Ca.prototype.constructor;function vhe(){return new ghe(this._groups,this._parents)}function mhe(e,t){var r,o,s;return function(){var c=zs(this,e),f=(this.style.removeProperty(e),zs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function v1(e){return function(){this.style.removeProperty(e)}}function yhe(e,t,r){var o,s=r+"",c;return function(){var f=zs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function bhe(e,t,r){var o,s,c;return function(){var f=zs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),zs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function whe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Yr(this,e),p=h.on,v=h.value[c]==null?d||(d=v1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function xhe(e,t,r){var o=(e+="")=="transform"?xde:g1;return t==null?this.styleTween(e,mhe(e,o)).on("end.style."+e,v1(e)):typeof t=="function"?this.styleTween(e,bhe(e,o,ep(this,"style."+e,t))).each(whe(this._id,e)):this.styleTween(e,yhe(e,o,t),r).on("end.style."+e,null)}function _he(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function She(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&_he(e,f,r)),o}return c._value=t,c}function khe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,She(e,t,r??""))}function The(e){return function(){this.textContent=e}}function Che(e){return function(){var t=e(this);this.textContent=t??""}}function Ehe(e){return this.tween("text",typeof e=="function"?Che(ep(this,"text",e)):The(e==null?"":e+""))}function Ahe(e){return function(t){this.textContent=e.call(this,t)}}function Lhe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Ahe(s)),t}return o._value=e,o}function Mhe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Lhe(e))}function Nhe(){for(var e=this._name,t=this._id,r=m1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Rr(h,t);qu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new bi(o,this._parents,e,r)}function $he(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Yr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Ohe=0;function bi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function m1(){return++Ohe}var li=Ca.prototype;bi.prototype={constructor:bi,select:hhe,selectAll:phe,selectChild:li.selectChild,selectChildren:li.selectChildren,filter:she,merge:lhe,selection:vhe,transition:Nhe,call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:uhe,attr:Ude,attrTween:Xde,style:xhe,styleTween:khe,text:Ehe,textTween:Mhe,remove:dhe,tween:Dde,delay:Jde,duration:the,ease:rhe,easeVarying:ohe,end:$he,[Symbol.iterator]:li[Symbol.iterator]};function Rhe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Phe={time:null,delay:0,duration:250,ease:Rhe};function Ihe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Dhe(e){var t,r;e instanceof bi?(t=e._id,e=e._name):(t=m1(),(r=Phe).time=Zh(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&qu(h,e,t,p,f,r||Ihe(h,t));return new bi(o,this._parents,e,t)}Ca.prototype.interrupt=Rde;Ca.prototype.transition=Dhe;const Sc=e=>()=>e;function zhe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function hi(e,t,r){this.k=e,this.x=t,this.y=r}hi.prototype={constructor:hi,scale:function(e){return e===1?this:new hi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new hi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tp=new hi(1,0,0);hi.prototype;function hd(e){e.stopImmediatePropagation()}function Tl(e){e.preventDefault(),e.stopImmediatePropagation()}function Fhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Hhe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function v0(){return this.__zoom||tp}function Bhe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Whe(){return navigator.maxTouchPoints||"ontouchstart"in this}function qhe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Uhe(){var e=Fhe,t=Hhe,r=qhe,o=Bhe,s=Whe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Cde,p=Ea("start","zoom","end"),v,m,b,w=500,E=150,N=0,T=10;function L(O){O.property("__zoom",v0).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",K).filter(s).on("touchstart.zoom",re).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(O,S,F,j){var se=O.selection?O.selection():O;se.property("__zoom",v0),O!==se?B(O,S,F,j):se.interrupt().each(function(){V(this,arguments).event(j).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},L.scaleBy=function(O,S,F,j){L.scaleTo(O,function(){var se=this.__zoom.k,me=typeof S=="function"?S.apply(this,arguments):S;return se*me},F,j)},L.scaleTo=function(O,S,F,j){L.transform(O,function(){var se=t.apply(this,arguments),me=this.__zoom,_e=F==null?M(se):typeof F=="function"?F.apply(this,arguments):F,Pe=me.invert(_e),qe=typeof S=="function"?S.apply(this,arguments):S;return r(R(A(me,qe),_e,Pe),se,f)},F,j)},L.translateBy=function(O,S,F,j){L.transform(O,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof F=="function"?F.apply(this,arguments):F),t.apply(this,arguments),f)},null,j)},L.translateTo=function(O,S,F,j,se){L.transform(O,function(){var me=t.apply(this,arguments),_e=this.__zoom,Pe=j==null?M(me):typeof j=="function"?j.apply(this,arguments):j;return r(tp.translate(Pe[0],Pe[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof F=="function"?-F.apply(this,arguments):-F),me,f)},j,se)};function A(O,S){return S=Math.max(c[0],Math.min(c[1],S)),S===O.k?O:new hi(S,O.x,O.y)}function R(O,S,F){var j=S[0]-F[0]*O.k,se=S[1]-F[1]*O.k;return j===O.x&&se===O.y?O:new hi(O.k,j,se)}function M(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function B(O,S,F,j){O.on("start.zoom",function(){V(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(j).end()}).tween("zoom",function(){var se=this,me=arguments,_e=V(se,me).event(j),Pe=t.apply(se,me),qe=F==null?M(Pe):typeof F=="function"?F.apply(se,me):F,Ze=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ke=se.__zoom,Xe=typeof S=="function"?S.apply(se,me):S,te=h(Ke.invert(qe).concat(Ze/Ke.k),Xe.invert(qe).concat(Ze/Xe.k));return function(z){if(z===1)z=Xe;else{var J=te(z),X=Ze/J[2];z=new hi(X,qe[0]-J[0]*X,qe[1]-J[1]*X)}_e.zoom(null,z)}})}function V(O,S,F){return!F&&O.__zooming||new G(O,S)}function G(O,S){this.that=O,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,S),this.taps=0}G.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,S){return this.mouse&&O!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var S=Vn(this.that).datum();p.call(O,this.that,new zhe(O,{sourceEvent:this.sourceEvent,target:L,transform:this.that.__zoom,dispatch:p}),S)}};function ee(O,...S){if(!e.apply(this,arguments))return;var F=V(this,S).event(O),j=this.__zoom,se=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),me=ui(O);if(F.wheel)(F.mouse[0][0]!==me[0]||F.mouse[0][1]!==me[1])&&(F.mouse[1]=j.invert(F.mouse[0]=me)),clearTimeout(F.wheel);else{if(j.k===se)return;F.mouse=[me,j.invert(me)],Pc(this),F.start()}Tl(O),F.wheel=setTimeout(_e,E),F.zoom("mouse",r(R(A(j,se),F.mouse[0],F.mouse[1]),F.extent,f));function _e(){F.wheel=null,F.end()}}function ne(O,...S){if(b||!e.apply(this,arguments))return;var F=O.currentTarget,j=V(this,S,!0).event(O),se=Vn(O.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",Ze,!0),me=ui(O,F),_e=O.clientX,Pe=O.clientY;i1(O.view),hd(O),j.mouse=[me,this.__zoom.invert(me)],Pc(this),j.start();function qe(Ke){if(Tl(Ke),!j.moved){var Xe=Ke.clientX-_e,te=Ke.clientY-Pe;j.moved=Xe*Xe+te*te>N}j.event(Ke).zoom("mouse",r(R(j.that.__zoom,j.mouse[0]=ui(Ke,F),j.mouse[1]),j.extent,f))}function Ze(Ke){se.on("mousemove.zoom mouseup.zoom",null),o1(Ke.view,j.moved),Tl(Ke),j.event(Ke).end()}}function K(O,...S){if(e.apply(this,arguments)){var F=this.__zoom,j=ui(O.changedTouches?O.changedTouches[0]:O,this),se=F.invert(j),me=F.k*(O.shiftKey?.5:2),_e=r(R(A(F,me),j,se),t.apply(this,S),f);Tl(O),d>0?Vn(this).transition().duration(d).call(B,_e,j,O):Vn(this).call(L.transform,_e,j,O)}}function re(O,...S){if(e.apply(this,arguments)){var F=O.touches,j=F.length,se=V(this,S,O.changedTouches.length===j).event(O),me,_e,Pe,qe;for(hd(O),_e=0;_e<j;++_e)Pe=F[_e],qe=ui(Pe,this),qe=[qe,this.__zoom.invert(qe),Pe.identifier],se.touch0?!se.touch1&&se.touch0[2]!==qe[2]&&(se.touch1=qe,se.taps=0):(se.touch0=qe,me=!0,se.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(se.taps<2&&(m=qe[0],v=setTimeout(function(){v=null},w)),Pc(this),se.start())}}function $(O,...S){if(this.__zooming){var F=V(this,S).event(O),j=O.changedTouches,se=j.length,me,_e,Pe,qe;for(Tl(O),me=0;me<se;++me)_e=j[me],Pe=ui(_e,this),F.touch0&&F.touch0[2]===_e.identifier?F.touch0[0]=Pe:F.touch1&&F.touch1[2]===_e.identifier&&(F.touch1[0]=Pe);if(_e=F.that.__zoom,F.touch1){var Ze=F.touch0[0],Ke=F.touch0[1],Xe=F.touch1[0],te=F.touch1[1],z=(z=Xe[0]-Ze[0])*z+(z=Xe[1]-Ze[1])*z,J=(J=te[0]-Ke[0])*J+(J=te[1]-Ke[1])*J;_e=A(_e,Math.sqrt(z/J)),Pe=[(Ze[0]+Xe[0])/2,(Ze[1]+Xe[1])/2],qe=[(Ke[0]+te[0])/2,(Ke[1]+te[1])/2]}else if(F.touch0)Pe=F.touch0[0],qe=F.touch0[1];else return;F.zoom("touch",r(R(_e,Pe,qe),F.extent,f))}}function P(O,...S){if(this.__zooming){var F=V(this,S).event(O),j=O.changedTouches,se=j.length,me,_e;for(hd(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),me=0;me<se;++me)_e=j[me],F.touch0&&F.touch0[2]===_e.identifier?delete F.touch0:F.touch1&&F.touch1[2]===_e.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(_e=ui(_e,this),Math.hypot(m[0]-_e[0],m[1]-_e[1])<T)){var Pe=Vn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return L.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:Sc(+O),L):o},L.filter=function(O){return arguments.length?(e=typeof O=="function"?O:Sc(!!O),L):e},L.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:Sc(!!O),L):s},L.extent=function(O){return arguments.length?(t=typeof O=="function"?O:Sc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),L):t},L.scaleExtent=function(O){return arguments.length?(c[0]=+O[0],c[1]=+O[1],L):[c[0],c[1]]},L.translateExtent=function(O){return arguments.length?(f[0][0]=+O[0][0],f[1][0]=+O[1][0],f[0][1]=+O[0][1],f[1][1]=+O[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(O){return arguments.length?(r=O,L):r},L.duration=function(O){return arguments.length?(d=+O,L):d},L.interpolate=function(O){return arguments.length?(h=O,L):h},L.on=function(){var O=p.on.apply(p,arguments);return O===p?L:O},L.clickDistance=function(O){return arguments.length?(N=(O=+O)*O,L):Math.sqrt(N)},L.tapDistance=function(O){return arguments.length?(T=+O,L):T},L}function jhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return y1(this.cover(t,r),t,r,e)}function y1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,E,N,T,L,A;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(T=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=T<<1|N]))return s[L]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(T=r>=(b=(h+v)/2))?h=b:v=b;while((L=T<<1|N)===(A=(E>=b)<<1|w>=m));return s[A]=c,s[L]=f,e}function Vhe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)y1(this,f[r],d[r],e[r]);return this}function Ghe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Khe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Xhe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function On(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Yhe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,E,N;for(w&&b.push(new On(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>v||(d=E.y0)>m||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var T=(f+h)/2,L=(d+p)/2;b.push(new On(w[3],T,L,h,p),new On(w[2],f,L,T,p),new On(w[1],T,d,h,L),new On(w[0],f,d,T,L)),(N=(t>=L)<<1|e>=T)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=E)}else{var A=e-+this._x.call(null,w.data),R=t-+this._y.call(null,w.data),M=A*A+R*R;if(M<r){var B=Math.sqrt(r=M);s=e-B,c=t-B,v=e+B,m=t+B,o=w.data}}return o}function Zhe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,E,N,T,L;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(N=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[T=N<<1|E]))return this;if(!r.length)break;(t[T+1&3]||t[T+2&3]||t[T+3&3])&&(o=t,L=T)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[T]=c:delete t[T],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function Jhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Qhe(){return this._root}function epe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function tpe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new On(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new On(s,p,v,d,h)),(s=o[2])&&t.push(new On(s,c,v,p,h)),(s=o[1])&&t.push(new On(s,p,f,d,v)),(s=o[0])&&t.push(new On(s,c,f,p,v))}return this}function npe(e){var t=[],r=[],o;for(this._root&&t.push(new On(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new On(c,f,d,v,m)),(c=s[1])&&t.push(new On(c,v,d,h,m)),(c=s[2])&&t.push(new On(c,f,m,v,p)),(c=s[3])&&t.push(new On(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function rpe(e){return e[0]}function ipe(e){return arguments.length?(this._x=e,this):this._x}function ope(e){return e[1]}function spe(e){return arguments.length?(this._y=e,this):this._y}function np(e,t,r){var o=new rp(t??rpe,r??ope,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function rp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function m0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var In=np.prototype=rp.prototype;In.copy=function(){var e=new rp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=m0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=m0(o));return e};In.add=jhe;In.addAll=Vhe;In.cover=Ghe;In.data=Khe;In.extent=Xhe;In.find=Yhe;In.remove=Zhe;In.removeAll=Jhe;In.root=Qhe;In.size=epe;In.visit=tpe;In.visitAfter=npe;In.x=ipe;In.y=spe;function Pn(e){return function(){return e}}function Xi(e){return(e()-.5)*1e-6}function lpe(e){return e.x+e.vx}function ape(e){return e.y+e.vy}function cpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Pn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,E,N,T,L=0;L<c;++L)for(m=np(t,lpe,ape).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],T=N*N,w=b.x+b.vx,E=b.y+b.vy,m.visit(A);function A(R,M,B,V,G){var ee=R.data,ne=R.r,K=N+ne;if(ee){if(ee.index>b.index){var re=w-ee.x-ee.vx,$=E-ee.y-ee.vy,P=re*re+$*$;P<K*K&&(re===0&&(re=Xi(o),P+=re*re),$===0&&($=Xi(o),P+=$*$),P=(K-(P=Math.sqrt(P)))/P*s,b.vx+=(re*=P)*(K=(ne*=ne)/(T+ne)),b.vy+=($*=P)*K,ee.vx-=re*(K=1-K),ee.vy-=$*K)}return}return M>w+K||V<w-K||B>E+K||G<E-K}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Pn(+p),h(),f):e},f}function upe(e){return e.index}function y0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function fpe(e){var t=upe,r=m,o,s=Pn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(T){return 1/Math.min(d[T.source.index],d[T.target.index])}function b(T){for(var L=0,A=e.length;L<v;++L)for(var R=0,M,B,V,G,ee,ne,K;R<A;++R)M=e[R],B=M.source,V=M.target,G=V.x+V.vx-B.x-B.vx||Xi(p),ee=V.y+V.vy-B.y-B.vy||Xi(p),ne=Math.sqrt(G*G+ee*ee),ne=(ne-c[R])/ne*T*o[R],G*=ne,ee*=ne,V.vx-=G*(K=h[R]),V.vy-=ee*K,B.vx+=G*(K=1-K),B.vy+=ee*K}function w(){if(f){var T,L=f.length,A=e.length,R=new Map(f.map((B,V)=>[t(B,V,f),B])),M;for(T=0,d=new Array(L);T<A;++T)M=e[T],M.index=T,typeof M.source!="object"&&(M.source=y0(R,M.source)),typeof M.target!="object"&&(M.target=y0(R,M.target)),d[M.source.index]=(d[M.source.index]||0)+1,d[M.target.index]=(d[M.target.index]||0)+1;for(T=0,h=new Array(A);T<A;++T)M=e[T],h[T]=d[M.source.index]/(d[M.source.index]+d[M.target.index]);o=new Array(A),E(),c=new Array(A),N()}}function E(){if(f)for(var T=0,L=e.length;T<L;++T)o[T]=+r(e[T],T,e)}function N(){if(f)for(var T=0,L=e.length;T<L;++T)c[T]=+s(e[T],T,e)}return b.initialize=function(T,L){f=T,p=L,w()},b.links=function(T){return arguments.length?(e=T,w(),b):e},b.id=function(T){return arguments.length?(t=T,b):t},b.iterations=function(T){return arguments.length?(v=+T,b):v},b.strength=function(T){return arguments.length?(r=typeof T=="function"?T:Pn(+T),E(),b):r},b.distance=function(T){return arguments.length?(s=typeof T=="function"?T:Pn(+T),N(),b):s},b}const dpe=1664525,hpe=1013904223,b0=4294967296;function ppe(){let e=1;return()=>(e=(dpe*e+hpe)%b0)/b0}function gpe(e){return e.x}function vpe(e){return e.y}var mpe=10,ype=Math.PI*(3-Math.sqrt(5));function bpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Jh(m),p=Ea("tick","end"),v=ppe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var T,L=e.length,A;N===void 0&&(N=1);for(var R=0;R<N;++R)for(r+=(c-r)*s,d.forEach(function(M){M(r)}),T=0;T<L;++T)A=e[T],A.fx==null?A.x+=A.vx*=f:(A.x=A.fx,A.vx=0),A.fy==null?A.y+=A.vy*=f:(A.y=A.fy,A.vy=0);return t}function w(){for(var N=0,T=e.length,L;N<T;++N){if(L=e[N],L.index=N,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var A=mpe*Math.sqrt(.5+N),R=N*ype;L.x=A*Math.cos(R),L.y=A*Math.sin(R)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function E(N){return N.initialize&&N.initialize(e,v),N}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(N){return arguments.length?(e=N,w(),d.forEach(E),t):e},alpha:function(N){return arguments.length?(r=+N,t):r},alphaMin:function(N){return arguments.length?(o=+N,t):o},alphaDecay:function(N){return arguments.length?(s=+N,t):+s},alphaTarget:function(N){return arguments.length?(c=+N,t):c},velocityDecay:function(N){return arguments.length?(f=1-N,t):1-f},randomSource:function(N){return arguments.length?(v=N,d.forEach(E),t):v},force:function(N,T){return arguments.length>1?(T==null?d.delete(N):d.set(N,E(T)),t):d.get(N)},find:function(N,T,L){var A=0,R=e.length,M,B,V,G,ee;for(L==null?L=1/0:L*=L,A=0;A<R;++A)G=e[A],M=N-G.x,B=T-G.y,V=M*M+B*B,V<L&&(ee=G,L=V);return ee},on:function(N,T){return arguments.length>1?(p.on(N,T),t):p.on(N)}}}function wpe(){var e,t,r,o,s=Pn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,N=e.length,T=np(e,gpe,vpe).visitAfter(m);for(o=w,E=0;E<N;++E)t=e[E],T.visit(b)}function v(){if(e){var w,E=e.length,N;for(c=new Array(E),w=0;w<E;++w)N=e[w],c[N.index]=+s(N,w,e)}}function m(w){var E=0,N,T,L=0,A,R,M;if(w.length){for(A=R=M=0;M<4;++M)(N=w[M])&&(T=Math.abs(N.value))&&(E+=N.value,L+=T,A+=T*N.x,R+=T*N.y);w.x=A/L,w.y=R/L}else{N=w,N.x=N.data.x,N.y=N.data.y;do E+=c[N.data.index];while(N=N.next)}w.value=E}function b(w,E,N,T){if(!w.value)return!0;var L=w.x-t.x,A=w.y-t.y,R=T-E,M=L*L+A*A;if(R*R/h<M)return M<d&&(L===0&&(L=Xi(r),M+=L*L),A===0&&(A=Xi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)),t.vx+=L*w.value*o/M,t.vy+=A*w.value*o/M),!0;if(w.length||M>=d)return;(w.data!==t||w.next)&&(L===0&&(L=Xi(r),M+=L*L),A===0&&(A=Xi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)));do w.data!==t&&(R=c[w.data.index]*o/M,t.vx+=L*R,t.vy+=A*R);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Pn(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function xpe(e){var t=Pn(.1),r,o,s;typeof e!="function"&&(e=Pn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Pn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Pn(+d),f(),c):e},c}function _pe(e){var t=Pn(.1),r,o,s;typeof e!="function"&&(e=Pn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Pn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Pn(+d),f(),c):e},c}var Spe=Object.defineProperty,kpe=(e,t,r)=>t in e?Spe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t,r)=>kpe(e,typeof t!="symbol"?t+"":t,r);function Tpe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function w0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Yi(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=Yi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:w0(t[o])&&w0(r[o])?t[o]=Yi(t[o],r[o]):t[o]=r[o])}),t},{})}const b1={mergeArrays:!0};Yi.options=b1;Yi.withOptions=(e,...t)=>{Yi.options={mergeArrays:!0,...e};const r=Yi(...t);return Yi.options=b1,r};function Cpe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Epe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function w1(e){e.preventDefault(),e.stopPropagation()}function x1(e){return typeof e=="number"}function ao(e,t){return x1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Ape(e){return`${e.source.id}-${e.target.id}`}function _1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Lpe(e){return`url(#${_1(e.color)})`}function Mpe(e){return{size:e,padding:(t,r)=>ao(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const S1={Arrow:e=>Mpe(e)},Npe=(e,t,r)=>[t/2,r/2],$pe=(e,t,r)=>[x0(0,t),x0(0,r)];function x0(e,t){return Math.random()*(t-e)+e}const nh={Centered:Npe,Randomized:$pe};function Ope(){return{autoResize:!1,callbacks:{},hooks:{},initial:Epe(),nodeRadius:16,marker:S1.Arrow(4),modifiers:{},positionInitializer:nh.Centered,simulation:{alphas:Tpe(),forces:Cpe()},zoom:{initial:1,min:.1,max:2}}}function Rpe(e={}){return Yi.withOptions({mergeArrays:!1},Ope(),e)}function Ppe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>w1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,tp.translate(c,f).scale(d)),p.append("g")}function Ipe({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Dpe({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=ede().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Vn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Vn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function zpe({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Fpe({links:c},r)}function Fpe(e,t){const r=[...Hpe(e,t),...Bpe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Hpe(e,t){return k1(e,t,(r,o)=>r.target.id===o.id)}function Bpe(e,t){return k1(e,t,(r,o)=>r.source.id===o.id)}function k1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function rh(e){return e.x??0}function ih(e){return e.y??0}function ip({source:e,target:t}){const r=new Nn(rh(e),ih(e)),o=new Nn(rh(t),ih(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function T1({center:e,node:t}){const r=new Nn(rh(t),ih(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Nn(0,1))),{n:r,c:o}}function C1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=ip({source:t,target:r}),f=o.add(c.multiply(ao(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function Wpe(e){const{start:t,end:r}=C1(e);return`M${t.x},${t.y}
45
+ L${r.x},${r.y}`}function qpe(e){const{start:t,end:r}=C1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Upe({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=ip({source:t,target:r}),h=10,p=f.rotateByDegrees(-10).multiply(ao(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(ao(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
46
+ A${m},${m},0,0,1,${v.x},${v.y}`}function jpe({center:e,config:t,node:r}){const{n:o,c:s}=T1({center:e,node:r}),c=ao(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=d.rotateByDegrees(40).multiply(c-1).add(o),p=d.rotateByDegrees(-40).multiply(c).add(o).add(d.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}
47
+ A${c},${c},0,1,0,${p.x},${p.y}`}function Vpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=ip({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Gpe({center:e,config:t,node:r}){const{n:o,c:s}=T1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ao(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Os={line:{labelTransform:qpe,path:Wpe},arc:{labelTransform:Vpe,path:Upe},reflexive:{labelTransform:Gpe,path:jpe}};function Kpe(e){return e.append("g").classed("links",!0).selectAll("path")}function Xpe({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Ape(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>Lpe(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Ype(e){Zpe(e),Jpe(e)}function Zpe({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Os.reflexive.path({config:t,node:s.source,center:e}):E1(r,s.source,s.target)?Os.arc.path({config:t,source:s.source,target:s.target}):Os.line.path({config:t,source:s.source,target:s.target}))}function Jpe({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Os.reflexive.labelTransform({config:e,node:s.source,center:t}):E1(r,s.source,s.target)?Os.arc.labelTransform({config:e,source:s.source,target:s.target}):Os.line.labelTransform({config:e,source:s.source,target:s.target}))}function E1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Qpe(e){return e.append("defs").selectAll("marker")}function ege({config:e,graph:t,selection:r}){return r==null?void 0:r.data(tge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>_1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",nge(e.marker.path)),s})}function tge(e){return[...new Set(e.links.map(t=>t.color))]}function nge(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function rge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function ige({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const E=w.append("circle").classed("node",!0).attr("r",T=>ao(e,T)).on("contextmenu",(T,L)=>{w1(T),o(L)}).on("pointerdown",(T,L)=>sge(T,L,s??o)).style("fill",T=>T.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const N=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",T=>T.label?T.label.color:null).style("font-size",T=>T.label?T.label.fontSize:null).style("stroke","none").text(T=>T.label?T.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,N),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const oge=500;function sge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>oge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function lge(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function age({center:e,config:t,graph:r,onTick:o}){var s,c;const f=bpe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",xpe(()=>e().x).strength(m)).force("y",_pe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",wpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",cpe().radius(m=>p.radiusMultiplier*ao(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",fpe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function cge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Uhe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class uge{constructor(t,r,o){if(Nt(this,"nodeTypes"),Nt(this,"_nodeTypeFilter"),Nt(this,"_includeUnlinked",!0),Nt(this,"_linkFilter",()=>!0),Nt(this,"_showLinkLabels",!0),Nt(this,"_showNodeLabels",!0),Nt(this,"filteredGraph"),Nt(this,"width",0),Nt(this,"height",0),Nt(this,"simulation"),Nt(this,"canvas"),Nt(this,"linkSelection"),Nt(this,"nodeSelection"),Nt(this,"markerSelection"),Nt(this,"zoom"),Nt(this,"drag"),Nt(this,"xOffset",0),Nt(this,"yOffset",0),Nt(this,"scale"),Nt(this,"focusedNode"),Nt(this,"resizeObserver"),Nt(this,"container"),Nt(this,"graph"),Nt(this,"config"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(uue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Nn.of([this.width,this.height]).divide(2).subtract(Nn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(x1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=ege({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Xpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=ige({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=age({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=cge({config:this.config,canvasContainer:()=>Vn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Ppe({applyZoom:this.scale!==1,container:Vn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Kpe(this.canvas),this.nodeSelection=rge(this.canvas),this.markerSelection=Qpe(this.canvas),this.drag=Dpe({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){lge(this.nodeSelection),Ype({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Vn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){Ipe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=zpe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function _0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function fge(e){return{...e}}function A1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const dge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},hge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},pge={flex:"~ gap-1","items-center":"","select-none":""},gge=["id","checked","onChange"],vge=["for"],mge=ut({__name:"ViewModuleGraph",props:Gl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Eu(e,"modelValue"),{graph:o}=NS(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();Lh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),co(()=>{v()}),Tu(()=>{var w;(w=d.value)==null||w.shutdown()}),xt(o,()=>v());function h(w,E){var N;(N=d.value)==null||N.filterNodesByType(E,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var E;if((E=d.value)==null||E.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new uge(s.value,o.value,Rpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:N,newWidth:T})=>N===0&&T===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:S1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?nh.Randomized:nh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(Ar)return;let E=0,N=0,T=0;w.on("pointerdown",(L,A)=>{A.type!=="external"&&(!A.x||!A.y||!m(L)||(E=A.x,N=A.y,T=Date.now()))}).on("pointerup",(L,A)=>{if(A.type==="external"||!A.x||!A.y||!m(L)||Date.now()-T>500)return;const R=A.x-E,M=A.y-N;R**2+M**2<100&&p(A.id)})}return(w,E)=>{var R;const N=Si,T=cue,L=Ww,A=Xr("tooltip");return ce(),xe("div",dge,[ie("div",null,[ie("div",hge,[ie("div",pge,[gt(ie("input",{id:"hide-node-modules","onUpdate:modelValue":E[0]||(E[0]=M=>r.value=M),type:"checkbox"},null,512),[[db,r.value]]),E[4]||(E[4]=ie("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ce(!0),xe(ct,null,mi((R=U(d))==null?void 0:R.nodeTypes.sort(),M=>{var B;return ce(),xe("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ie("input",{id:`type-${M}`,type:"checkbox",checked:(B=U(d))==null?void 0:B.nodeTypeFilter.includes(M),onChange:V=>h(M,V.target.checked)},null,40,gge),ie("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${M}`,"border-b-2":"",style:nn({"border-color":`var(--color-node-${M})`})},We(M)+" Modules",13,vge)])}),128)),E[5]||(E[5]=ie("div",{"flex-auto":""},null,-1)),ie("div",null,[gt(Oe(N,{icon:"i-carbon-reset",onClick:E[1]||(E[1]=M=>v(!0))},null,512),[[A,"Reset",void 0,{bottom:!0}]])])])]),ie("div",{ref_key:"el",ref:s},null,512),Oe(L,{modelValue:U(c),"onUpdate:modelValue":E[3]||(E[3]=M=>Ct(c)?c.value=M:null),direction:"right"},{default:rt(()=>[U(f)?(ce(),nt(eb,{key:0},{default:rt(()=>[Oe(T,{id:U(f),"project-name":w.projectName,onClose:E[2]||(E[2]=M=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),yge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},bge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},wge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},xge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},_ge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Sge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},L1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Xr("tooltip");return t.state==="pass"?(ce(),xe("div",yge)):t.failedSnapshot?gt((ce(),xe("div",bge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(ce(),xe("div",wge)):t.mode==="todo"?gt((ce(),xe("div",xge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((ce(),xe("div",_ge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ce(),xe("div",Sge))}}});function kge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.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 Tge(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 Cge(e){const t=e.map(o=>Tge(o)),r=kge(t);return t.map(({raw:o,id:s})=>A1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function Ege(e,t){return A1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Age(e,t){if(!e)return _0({});const r=Cge(e.externalized),o=e.inlined.map(d=>Ege(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return fge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return _0({nodes:s,links:f})}const Lge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Mge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},$ge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Oge={class:"flex text-lg"},Rge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Pge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Ige={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Dge={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},zge=["flex-1"],Fge=ut({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=Se(()=>{const A=en.value;if(!(!A||!A.filepath))return{filepath:A.filepath,projectName:A.file.projectName||""}}),h=Se(()=>en.value&&Uh(en.value)),p=Se(()=>{var A,R;return!!((R=(A=en.value)==null?void 0:A.meta)!=null&&R.typecheck)});function v(){var R;const A=(R=en.value)==null?void 0:R.filepath;A&&fetch(`/__open-in-editor?file=${encodeURIComponent(A)}`)}function m(A){A==="graph"&&(o.value=!0),Jn.value=A}const b=Se(()=>{var A;return((A=Hw.value)==null?void 0:A.reduce((R,{size:M})=>R+M,0))??0});function w(A){r.value=A}const E=/[/\\]node_modules[/\\]/;async function N(A=!1){var R;if(!(s.value||((R=d.value)==null?void 0:R.filepath)===c.value&&!A)){s.value=!0,await Tt();try{const M=d.value;if(!M){s.value=!1;return}if(A||!c.value||M.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let B=await mt.rpc.getModuleGraph(M.projectName,M.filepath,!!Ht);f.value&&(Ar&&(B=typeof window.structuredClone<"u"?window.structuredClone(B):YC(B)),B.inlined=B.inlined.filter(V=>!E.test(V)),B.externalized=B.externalized.filter(V=>!E.test(V))),t.value=Age(B,M.filepath),c.value=M.filepath}m("graph")}finally{await new Promise(M=>setTimeout(M,100)),s.value=!1}}}Bh(()=>[d.value,Jn.value,f.value],([,A,R],M)=>{A==="graph"&&N(M&&R!==M[2])},{debounce:100,immediate:!0});const T=Se(()=>{var A;return cw((A=en.value)==null?void 0:A.file.projectName)}),L=Se(()=>{switch(T.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(A,R)=>{var re,$,P,O;const M=L1,B=Si,V=mge,G=tue,ee=Vce,ne=Hce,K=Xr("tooltip");return U(en)?(ce(),xe("div",Lge,[ie("div",null,[ie("div",Mge,[Oe(M,{state:(re=U(en).result)==null?void 0:re.state,mode:U(en).mode,"failed-snapshot":U(h)},null,8,["state","mode","failed-snapshot"]),U(p)?gt((ce(),xe("div",Nge,null,512)),[[K,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),($=U(en))!=null&&$.file.projectName?(ce(),xe("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:nn({backgroundColor:U(T),color:U(L)})},We(U(en).file.projectName),5)):Ye("",!0),ie("div",$ge,We((P=U(en))==null?void 0:P.name),1),ie("div",Oge,[U(Ar)?Ye("",!0):gt((ce(),nt(B,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=U(en))!=null&&O.filepath),onClick:v},null,8,["disabled"])),[[K,"Open in editor",void 0,{bottom:!0}]])])]),ie("div",Rge,[ie("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":U(Jn)==null}]),"data-testid":"btn-report",onClick:R[0]||(R[0]=S=>m(null))},R[5]||(R[5]=[ie("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),ie("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":U(Jn)==="graph"}]),onClick:R[1]||(R[1]=S=>m("graph"))},[U(s)?(ce(),xe("span",Pge)):(ce(),xe("span",Ige)),R[6]||(R[6]=pt(" Module Graph "))],2),ie("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":U(Jn)==="editor"}]),onClick:R[2]||(R[2]=S=>m("editor"))},[R[7]||(R[7]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+We(U(r)?"* ":"")+"Code ",1)],2),ie("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":U(Jn)==="console",op20:U(Jn)!=="console"&&U(b)===0}]),onClick:R[3]||(R[3]=S=>m("console"))},[R[8]||(R[8]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+We(U(b))+") ",1)],2)])]),ie("div",Dge,[U(o)?(ce(),xe("div",{key:0,"flex-1":U(Jn)==="graph"&&""},[gt(Oe(V,{modelValue:U(f),"onUpdate:modelValue":R[4]||(R[4]=S=>Ct(f)?f.value=S:null),graph:U(t),"data-testid":"graph","project-name":U(en).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Ki,U(Jn)==="graph"&&!U(s)]])],8,zge)):Ye("",!0),U(Jn)==="editor"?(ce(),nt(G,{key:U(en).id,file:U(en),"data-testid":"editor",onDraft:w},null,8,["file"])):U(Jn)==="console"?(ce(),nt(ee,{key:2,file:U(en),"data-testid":"console"},null,8,["file"])):U(Jn)?Ye("",!0):(ce(),nt(ne,{key:3,file:U(en),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),Hge={h:"full",flex:"~ col"},Bge={"flex-auto":"","py-1":"","bg-white":""},Wge=["src"],qge=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ce(),xe("div",Hge,[r[0]||(r[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon:folder-details-reference"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ie("div",Bge,[ie("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Wge)])]))}}),Uge={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},jge={"font-bold":""},Vge={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Gge=["font-bold"],Kge={text:"red500/70"},Xge={key:1,text:"sm","mb-2":""},Yge={"font-bold":""},Zge={key:2,text:"sm","mb-2":""},Jge={"font-bold":""},Qge={key:3,text:"sm","font-thin":""},eve=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return ce(),xe(ct,null,[ie("h4",Uge,[ie("span",jge,[pt(We(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(ce(),xe(ct,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+We(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(ce(),xe("p",Vge,[(ce(!0),xe(ct,null,mi(t.error.stacks,(s,c)=>(ce(),xe("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+We(s.method)+" "+We(s.file)+":",1),ie("span",Kge,We(s.line)+":"+We(s.column),1),r[0]||(r[0]=ie("br",null,null,-1))],8,Gge))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(ce(),xe("p",Xge,[r[1]||(r[1]=pt(" This error originated in ")),ie("span",Yge,We(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Ye("",!0),t.error.VITEST_TEST_NAME?(ce(),xe("p",Zge,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),ie("span",Jge,We(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=ie("br",null,null,-1)),r[6]||(r[6]=ie("ul",null,[ie("li",null," The error was thrown, while Vitest was running this test. "),ie("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(ce(),xe("p",Qge,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),ie("br",null,null,-1),ie("ul",null,[ie("li",null," Cancel timeouts using clearTimeout and clearInterval. "),ie("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ye("",!0)],64)}}}),tve={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},nve={class:"number","data-testid":"num-files"},rve={class:"number"},ive={class:"number","text-red5":""},ove={class:"number","text-red5":""},sve={class:"number","text-red5":""},lve={class:"number","data-testid":"run-time"},ave={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},cve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},uve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},fve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=eve;return ce(),xe(ct,null,[ie("div",tve,[r[8]||(r[8]=ie("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ie("div",null,"Files",-1)),ie("div",nve,We(U(Le).summary.files),1),U(Le).summary.filesSuccess?(ce(),xe(ct,{key:0},[r[0]||(r[0]=ie("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ie("div",null,"Pass",-1)),ie("div",rve,We(U(Le).summary.filesSuccess),1)],64)):Ye("",!0),U(Le).summary.filesFailed?(ce(),xe(ct,{key:1},[r[2]||(r[2]=ie("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ie("div",null," Fail ",-1)),ie("div",ive,We(U(Le).summary.filesFailed),1)],64)):Ye("",!0),U(Le).summary.filesSnapshotFailed?(ce(),xe(ct,{key:2},[r[4]||(r[4]=ie("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ie("div",null," Snapshot Fail ",-1)),ie("div",ove,We(U(Le).summary.filesSnapshotFailed),1)],64)):Ye("",!0),U(ji).length?(ce(),xe(ct,{key:3},[r[6]||(r[6]=ie("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ie("div",null," Errors ",-1)),ie("div",sve,We(U(ji).length),1)],64)):Ye("",!0),r[10]||(r[10]=ie("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ie("div",null,"Time",-1)),ie("div",lve,We(U(Le).summary.time),1)]),U(ji).length?(ce(),xe("div",ave,[r[15]||(r[15]=ie("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ie("p",cve,[pt(" Vitest caught "+We(U(ji).length)+" error"+We(U(ji).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ie("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),ie("details",uve,[r[14]||(r[14]=ie("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ce(!0),xe(ct,null,mi(U(ji),(s,c)=>(ce(),nt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),dve=_i(fve,[["__scopeId","data-v-0178ddee"]]),hve={"p-2":"","text-center":"",flex:""},pve={"text-4xl":"","min-w-2em":""},gve={"text-md":""},vve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(ce(),xe("div",hve,[ie("div",null,[ie("div",pve,[xn(t.$slots,"body")]),ie("div",gve,[xn(t.$slots,"header")])])]))}}),mve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},yve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=vve;return ce(),xe("div",mve,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(We(U(Le).summary.testsSuccess),1)]),_:1}),Oe(o,{class:it({"text-red5":U(Le).summary.testsFailed,op50:!U(Le).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(We(U(Le).summary.testsFailed),1)]),_:1},8,["class"]),U(Le).summary.testsSkipped?(ce(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(We(U(Le).summary.testsSkipped),1)]),_:1})):Ye("",!0),U(Le).summary.testsTodo?(ce(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(We(U(Le).summary.testsTodo),1)]),_:1})):Ye("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(We(U(Le).summary.totalTests),1)]),_:1})])}}}),bve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},wve={key:0,class:"text-gray-5"},xve={"aria-labelledby":"tests",m:"y-4 x-2"},_ve=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=yve,s=dve;return ce(),xe("div",bve,[U(Le).summary.files===0&&U(ms)?(ce(),xe("div",wve," No tests found ")):Ye("",!0),ie("section",xve,[Oe(o)]),Oe(s)])}}}),Sve={},kve={h:"full",flex:"~ col"},Tve={class:"scrolls","flex-auto":"","py-1":""};function Cve(e,t){const r=_ve;return ce(),xe("div",kve,[t[0]||(t[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon-dashboard"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ie("div",Tve,[Oe(r)])])}const Eve=_i(Sve,[["render",Cve]]),Ave=["open"],Lve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(ce(),xe("div",{open:U(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ie("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:it(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),xn(r.$slots,"summary",{open:U(t)}),o[2]||(o[2]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),xn(r.$slots,"default")],40,Ave))}}),Mve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Nve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(ce(),xe("button",Mve,[ie("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},$ve=["aria-label","data-current"],Ove={key:1,"w-4":""},Rve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Pve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Ive={"text-sm":"",truncate:"","font-light":""},Dve=["text","innerHTML"],zve={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Fve={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Hve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Bve={key:1},Wve=ut({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>mt.state.idMap.get(e.taskId)),r=Se(()=>{if(Ar)return!1;const T=t.value;return T&&Uh(T)});function o(){var T;if(!e.expandable){(T=e.onItemClick)==null||T.call(e,t.value);return}e.opened?Le.collapseNode(e.taskId):Le.expandNode(e.taskId)}async function s(T){var L;(L=e.onItemClick)==null||L.call(e,T),bs.value&&(ou.value=!0,await Tt()),e.type==="file"?await Gh([T.file]):await rce(T)}function c(T){return mt.rpc.updateSnapshot(T.file)}const f=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(T,L)=>`${e.taskId}-${L}`)),d=Se(()=>{const T=f.value,L=[];return(e.type==="file"||e.type==="suite")&&L.push("min-content"),L.push("min-content"),e.type==="suite"&&e.typecheck&&L.push("min-content"),L.push("minmax(0, 1fr)"),L.push("min-content"),`grid-template-columns: ${T.map(()=>"1rem").join(" ")} ${L.join(" ")};`}),h=Se(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>lw(e.name)),v=Se(()=>{const T=SE.value,L=p.value;return T?L.replace(T,A=>`<span class="highlight">${A}</span>`):L}),m=Se(()=>e.type!=="file"&&e.disableTaskLocation),b=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>m.value?"color-red5 dark:color-#f43f5e":null);function E(){var L;const T=t.value;e.type==="file"?(L=e.onItemClick)==null||L.call(e,T):eue(T)}const N=Se(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}});return(T,L)=>{const A=L1,R=Nve,M=Si,B=Xr("tooltip");return U(t)?(ce(),xe("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:nn(U(d)),"aria-label":T.name,"data-current":T.current,onClick:L[2]||(L[2]=V=>o())},[T.indent>0?(ce(!0),xe(ct,{key:0},mi(U(f),V=>(ce(),xe("div",{key:V,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),T.type==="file"||T.type==="suite"?(ce(),xe("div",Ove,[ie("div",{class:it(T.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Oe(A,{state:T.state,mode:U(t).mode,"failed-snapshot":U(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),ie("div",Rve,[T.type==="file"&&T.typecheck?gt((ce(),xe("div",Pve,null,512)),[[B,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),ie("span",Ive,[T.type==="file"&&T.projectName?(ce(),xe("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:nn({backgroundColor:T.projectNameColor,color:U(N)})},We(T.projectName),5)):Ye("",!0),ie("span",{text:T.state==="fail"?"red-500":"",innerHTML:U(v)},null,8,Dve)]),typeof T.duration=="number"?(ce(),xe("span",zve,We(T.duration>0?T.duration:"< 1")+"ms ",1)):Ye("",!0)]),ie("div",Fve,[!U(Ar)&&U(r)?gt((ce(),nt(R,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:L[0]||(L[0]=Lc(V=>c(U(t)),["prevent","stop"]))},null,512)),[[B,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Oe(U(Pb),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",U(w)])},{popper:rt(()=>[U(m)?(ce(),xe("div",Hve,[L[5]||(L[5]=ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ie("div",null,[pt(We(U(b))+": this feature is not available, you have disabled ",1),L[3]||(L[3]=ie("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),L[4]||(L[4]=pt(" in your configuration file."))]),L[6]||(L[6]=ie("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ce(),xe("div",Bve,We(U(b)),1))]),default:rt(()=>[Oe(M,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Lc(E,["prevent","stop"])})]),_:1},8,["class"]),U(Ar)?Ye("",!0):gt((ce(),nt(M,{key:1,"data-testid":"btn-run-test",title:U(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:L[1]||(L[1]=Lc(V=>s(U(t)),["prevent","stop"]))},null,8,["title"])),[[B,U(h),void 0,{bottom:!0}]])])],12,$ve)):Ye("",!0)}}}),qve=_i(Wve,[["__scopeId","data-v-12eebfd4"]]),Uve={"flex-1":"","ms-2":"","select-none":""},jve=ut({__name:"FilterStatus",props:Gl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eu(e,"modelValue");return(r,o)=>(ce(),xe("label",pi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Lc(s=>t.value=!t.value,["prevent"]))}),[ie("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(ie("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[db,t.value]]),ie("span",Uve,We(r.label),1)],16))}});function Vve(){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 Ic;function oh(){oh.init||(oh.init=!0,Ic=Vve()!==-1)}var Uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){oh(),Tt(()=>{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",Ic&&this.$el.appendChild(e),e.data="about:blank",Ic||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&&(!Ic&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Gve=ky();_y("data-v-b329ee4c");const Kve={class:"resize-observer",tabindex:"-1"};Sy();const Xve=Gve((e,t,r,o,s,c)=>(ce(),nt("div",Kve)));Uu.render=Xve;Uu.__scopeId="data-v-b329ee4c";Uu.__file="src/components/ResizeObserver.vue";function Dc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dc=function(t){return typeof t}:Dc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Yve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zve(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jve(e,t,r){return t&&Zve(e.prototype,t),e}function S0(e){return Qve(e)||eme(e)||tme(e)||nme()}function Qve(e){if(Array.isArray(e))return sh(e)}function eme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tme(e,t){if(e){if(typeof e=="string")return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sh(e,t)}}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function nme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
48
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function ime(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(S0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(S0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function M1(e,t){if(e===t)return!0;if(Dc(e)==="object"){for(var r in e)if(!M1(e[r],t[r]))return!1;return!0}return!1}var ome=function(){function e(t,r,o){Yve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Jve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=rme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=ime(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Tt(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function N1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new ome(e,o,r);e._vue_visibilityState=s}}function sme(e,t,r){var o=t.value,s=t.oldValue;if(!M1(o,s)){var c=e._vue_visibilityState;if(!o){$1(e);return}c?c.createObserver(o,r):N1(e,{value:o},r)}}function $1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var lme={beforeMount:N1,updated:sme,unmounted:$1},ame={itemsLimit:1e3},cme=/(auto|scroll)/;function O1(e,t){return e.parentNode===null?t:O1(e.parentNode,t.concat([e]))}var pd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},ume=function(t){return pd(t,"overflow")+pd(t,"overflow-y")+pd(t,"overflow-x")},fme=function(t){return cme.test(ume(t))};function k0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=O1(e.parentNode,[]),r=0;r<t.length;r+=1)if(fme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}var dme={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function hme(){return this.items.length&&lh(this.items[0])!=="object"}var ah=!1;if(typeof window<"u"){ah=!1;try{var pme=Object.defineProperty({},"passive",{get:function(){ah=!0}});window.addEventListener("test",null,pme)}catch{}}let gme=0;var op={name:"RecycleScroller",components:{ResizeObserver:Uu},directives:{ObserveVisibility:lme},props:{...dme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:hme,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Sh({id:gme++,index:t,used:!0,key:o,type:s}),f=wh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let N,T,L,A,R;if(!p)N=T=A=R=L=0;else if(this.$_prerender)N=A=0,T=R=Math.min(this.prerender,h.length),L=null;else{const K=this.getScroll();if(t){let P=K.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),r===null&&P<c||P<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=K.start;const re=this.buffer;K.start-=re,K.end+=re;let $=0;if(this.$refs.before&&($=this.$refs.before.scrollHeight,K.start-=$),this.$refs.after){const P=this.$refs.after.scrollHeight;K.end+=P}if(r===null){let P,O=0,S=p-1,F=~~(p/2),j;do j=F,P=v[F].accumulator,P<K.start?O=F:F<p-1&&v[F+1].accumulator>K.start&&(S=F),F=~~((O+S)/2);while(F!==j);for(F<0&&(F=0),N=F,L=v[p-1].accumulator,T=F;T<p&&v[T].accumulator<K.end;T++);for(T===-1?T=h.length-1:(T++,T>p&&(T=p)),A=N;A<p&&$+v[A].accumulator<K.start;A++);for(R=A;R<p&&$+v[R].accumulator<K.end;R++);}else{N=~~(K.start/r*o);const P=N%o;N-=P,T=Math.ceil(K.end/r*o),A=Math.max(0,Math.floor((K.start-$)/r*o)),R=Math.floor((K.end-$)/r*o),N<0&&(N=0),T>p&&(T=p),A<0&&(A=0),R>p&&(R=p),L=Math.ceil(p/o)*r}}T-N>ame.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let M;const B=N<=this.$_endIndex&&T>=this.$_startIndex;if(B)for(let K=0,re=w.length;K<re;K++)M=w[K],M.nr.used&&(e&&(M.nr.index=E[M.item[d]]),(M.nr.index==null||M.nr.index<N||M.nr.index>=T)&&this.unuseView(M));const V=B?null:new Map;let G,ee,ne;for(let K=N;K<T;K++){G=h[K];const re=d?G[d]:G;if(re==null)throw new Error(`Key is ${re} on item (keyField is '${d}')`);if(M=m.get(re),!r&&!v[K].size){M&&this.unuseView(M);continue}ee=G[f];let $=b.get(ee),P=!1;if(!M)B?$&&$.length?M=$.pop():M=this.addView(w,K,G,re,ee):(ne=V.get(ee)||0,(!$||ne>=$.length)&&(M=this.addView(w,K,G,re,ee),this.unuseView(M,!0),$=b.get(ee)),M=$[ne],V.set(ee,ne+1)),m.delete(M.nr.key),M.nr.used=!0,M.nr.index=K,M.nr.key=re,M.nr.type=ee,m.set(re,M),P=!0;else if(!M.nr.used&&(M.nr.used=!0,P=!0,$)){const O=$.indexOf(M);O!==-1&&$.splice(O,1)}M.item=G,P&&(K===h.length-1&&this.$emit("scroll-end"),K===0&&this.$emit("scroll-start")),r===null?(M.position=v[K-1].accumulator,M.offset=0):(M.position=Math.floor(K/o)*r,M.offset=K%o*s)}return this.$_startIndex=N,this.$_endIndex=T,this.emitUpdate&&this.$emit("update",N,T,A,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=k0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ah?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=k0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const vme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},mme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function yme(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Xr("observe-visibility");return gt((ce(),xe("div",{class:it(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(ce(),xe("div",vme,[xn(e.$slots,"before")],512)):Ye("v-if",!0),(ce(),nt(kd(r.listTag),{ref:"wrapper",style:nn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(ce(!0),xe(ct,null,mi(s.pool,h=>(ce(),nt(kd(r.itemTag),pi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},nk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[xn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),xn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ce(),xe("div",mme,[xn(e.$slots,"after")],512)):Ye("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}op.render=yme;op.__file="src/components/RecycleScroller.vue";function bme(e){const t=Se(()=>Wd.value?!1:!Qe.onlyTests),r=Se(()=>Un.value===""),o=Ue(Un.value);Bh(()=>Un.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Un.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Qe.failed=!1,Qe.success=!1,Qe.skipped=!1,Qe.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Is.value&&(pn.value.search=(h==null?void 0:h.trim())??"",pn.value.failed=p,pn.value.success=v,pn.value.skipped=m,pn.value.onlyTests=b)}return xt(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Le.filterNodes()},{flush:"post"}),xt(()=>$r.value.length,h=>{h&&(pn.value.expandAll=void 0)},{flush:"post"}),{initialized:Is,filter:Qe,search:Un,disableFilter:t,isFiltered:aw,isFilteredByStatus:Wd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Du,testsTotal:kE,uiEntries:Xn}}const wme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},xme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},_me=["op"],Sme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},kme={"text-red5":""},Tme={"text-yellow5":""},Cme={"text-green5":""},Eme={class:"text-purple5:50"},Ame={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Lme=["disabled"],Mme=["disabled"],Nme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},$me=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Se(()=>Hu.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:N,testsTotal:T,uiEntries:L}=bme(s),A=Ue("grid-cols-2"),R=Ue("grid-col-span-2"),M=Ue();return ow(()=>M.value,([{contentRect:B}])=>{B.width<420?(A.value="grid-cols-2",R.value="grid-col-span-2"):(A.value="grid-cols-4",R.value="grid-col-span-4")}),(B,V)=>{const G=Si,ee=jve,ne=qve,K=Lve,re=Xr("tooltip");return ce(),xe("div",{ref_key:"testExplorerRef",ref:M,h:"full",flex:"~ col"},[ie("div",null,[ie("div",wme,[xn(B.$slots,"header",{filteredFiles:U(p)||U(v)?U(N):void 0})]),ie("div",xme,[V[13]||(V[13]=ie("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(ie("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":V[0]||(V[0]=$=>Ct(d)?d.value=$:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:U(d).length?"100":"50",onKeydown:[V[1]||(V[1]=Od($=>U(w)(!1),["esc"])),V[2]||(V[2]=Od($=>r("run",U(p)||U(v)?U(N):void 0),["enter"]))]},null,40,_me),[[wT,U(d)]]),gt(Oe(G,{disabled:U(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:V[3]||(V[3]=$=>U(w)(!0))},null,8,["disabled"]),[[re,"Clear search",void 0,{bottom:!0}]])]),ie("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(U(A))},[ie("div",{class:it(U(R)),flex:"~ gap-2 items-center"},[V[14]||(V[14]=ie("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),V[15]||(V[15]=ie("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Oe(G,{disabled:U(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:V[4]||(V[4]=$=>U(E)(!1))},null,8,["disabled"]),[[re,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(ee,{modelValue:U(f).failed,"onUpdate:modelValue":V[5]||(V[5]=$=>U(f).failed=$),label:"Fail"},null,8,["modelValue"]),Oe(ee,{modelValue:U(f).success,"onUpdate:modelValue":V[6]||(V[6]=$=>U(f).success=$),label:"Pass"},null,8,["modelValue"]),Oe(ee,{modelValue:U(f).skipped,"onUpdate:modelValue":V[7]||(V[7]=$=>U(f).skipped=$),label:"Skip"},null,8,["modelValue"]),Oe(ee,{modelValue:U(f).onlyTests,"onUpdate:modelValue":V[8]||(V[8]=$=>U(f).onlyTests=$),label:"Only Tests"},null,8,["modelValue"])],2)]),ie("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:V[12]||(V[12]=(...$)=>U(sm)&&U(sm)(...$))},[Oe(K,null,tk({default:rt(()=>[(U(p)||U(v))&&U(L).length===0?(ce(),xe(ct,{key:0},[U(c)?(ce(),xe("div",Ame,[V[18]||(V[18]=ie("div",{op30:""}," No matched test ",-1)),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(U(m)?null:"hover:op100"),disabled:U(m),onClickPassive:V[9]||(V[9]=$=>U(w)(!0))}," Clear Search ",42,Lme),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(U(h)?null:"hover:op100"),disabled:U(h),onClickPassive:V[10]||(V[10]=$=>U(E)(!0))}," Clear Filter ",42,Mme),ie("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:V[11]||(V[11]=(...$)=>U(b)&&U(b)(...$))}," Clear All ",32)])):(ce(),xe("div",Nme,V[19]||(V[19]=[ie("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ie("div",{op30:""}," Loading... ",-1)])))],64)):(ce(),nt(U(op),{key:1,"page-mode":"","key-field":"id","item-size":28,items:U(L),buffer:100},{default:rt(({item:$})=>[Oe(ne,{class:it(["h-28px m-0 p-0",U(oo)===$.id?"bg-active":""]),"task-id":$.id,expandable:$.expandable,type:$.type,current:U(oo)===$.id,indent:$.indent,name:$.name,typecheck:$.typecheck===!0,"project-name":$.projectName??"","project-name-color":$.projectNameColor??"",state:$.state,duration:$.duration,opened:$.expanded,"disable-task-location":!U(o),"on-item-click":B.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[U(c)?{name:"summary",fn:rt(()=>[ie("div",Sme,[ie("span",kme," FAIL ("+We(U(T).failed)+") ",1),V[16]||(V[16]=ie("span",null,"/",-1)),ie("span",Tme," RUNNING ("+We(U(T).running)+") ",1),ie("span",Cme," PASS ("+We(U(T).success)+") ",1),V[17]||(V[17]=ie("span",null,"/",-1)),ie("span",Eme," SKIP ("+We(U(f).onlyTests?U(T).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Ome=""+new URL("../favicon.svg",import.meta.url).href,Rme={class:"flex text-lg"},Pme=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=Se(()=>Ta.value?"light":"dark");async function o(f){bs.value&&(ou.value=!0,await Tt(),so.value&&(su(!0),await Tt())),f!=null&&f.length?await Gh(f):await tce()}function s(){Le.collapseAllNodes()}function c(){Le.expandAllNodes()}return(f,d)=>{const h=Si,p=$me,v=Xr("tooltip");return ce(),nt(p,{border:"r base","on-item-click":U(QE),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=ie("img",{"w-6":"","h-6":"",src:Ome,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ie("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ie("div",Rme,[gt(Oe(h,{title:"Collapse tests",disabled:!U(Is),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Ki,!U(bm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Oe(h,{disabled:!U(Is),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Ki,U(bm)],[v,"Expand tests",void 0,{bottom:!0}]]),gt(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>U(su)(!0))},null,512),[[Ki,U(jd)&&!U(bs)||!U(Ls)],[v,"Dashboard",void 0,{bottom:!0}]]),U(jd)&&!U(bs)?(ce(),nt(U(Pb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:rt(()=>d[6]||(d[6]=[ie("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ie("div",null,"Coverage enabled but missing html reporter."),ie("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=ie("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1,__:[7]})):Ye("",!0),U(bs)?gt((ce(),nt(h,{key:1,disabled:U(ou),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>U(eA)())},null,8,["disabled"])),[[Ki,!U(so)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),U(Le).summary.failedSnapshot&&!U(Ar)?gt((ce(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!U(Le).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>U(Le).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),U(Ar)?Ye("",!0):gt((ce(),nt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),gt(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>U(Ece)())},null,512),[[v,`Toggle to ${U(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Ime={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Dme=ut({__name:"ProgressBar",setup(e){const{width:t}=sw(),r=Se(()=>[Le.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ms.value&&"in-progress"].filter(Boolean).join(" ")),o=Se(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesSuccess/d:0}),s=Se(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesFailed/d:0}),c=Se(()=>Le.summary.files-Le.summary.filesFailed-Le.summary.filesSuccess),f=Se(()=>{const d=Le.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ce(),xe("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:it(U(r))},[ie("div",Ime,[ie("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(U(r)),style:nn(`width: ${U(s)}px;`)},"   ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(U(r)),style:nn(`left: ${U(s)}px; width: ${U(o)}px;`)},"   ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(U(r)),style:nn(`left: ${U(o)+U(s)}px; width: ${U(f)}px;`)},"   ",6)])],2))}}),zme=_i(Dme,[["__scopeId","data-v-16879415"]]),T0={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const r=t,o=e,s=ik(),c=Ue([]),f=Se(()=>c.value.reduce((te,z)=>(te[~~z.id]=z)&&te,{})),d=Se(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=Se(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),w=()=>{document.addEventListener("mousemove",T,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",L))},E=()=>{document.removeEventListener("mousemove",T,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",T,{passive:!1}),document.removeEventListener("touchend",L))},N=(te,z)=>{const J=te.target.closest(".splitpanes__splitter");if(J){const{left:X,top:le}=J.getBoundingClientRect(),{clientX:pe,clientY:I}="ontouchstart"in window&&te.touches?te.touches[0]:te;v.value.cursorOffset=o.horizontal?I-le:pe-X}w(),v.value.mouseDown=!0,v.value.activeSplitter=z},T=te=>{v.value.mouseDown&&(te.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{G(B(te)),r("resize",c.value.map(z=>({min:z.min,max:z.max,size:z.size})))}))},L=()=>{v.value.dragging&&r("resized",c.value.map(te=>({min:te.min,max:te.max,size:te.size}))),v.value.mouseDown=!1,setTimeout(()=>{v.value.dragging=!1,E()},100)},A=(te,z)=>{"ontouchstart"in window&&(te.preventDefault(),o.dblClickSplitter&&(m.value.splitter===z?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,R(te,z),m.value.splitter=null):(m.value.splitter=z,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),v.value.dragging||r("splitter-click",c.value[z])},R=(te,z)=>{let J=0;c.value=c.value.map((X,le)=>(X.size=le===z?X.max:X.min,le!==z&&(J+=X.min),X)),c.value[z].size-=J,r("pane-maximize",c.value[z]),r("resized",c.value.map(X=>({min:X.min,max:X.max,size:X.size})))},M=(te,z)=>{r("pane-click",f.value[z])},B=te=>{const z=h.value.getBoundingClientRect(),{clientX:J,clientY:X}="ontouchstart"in window&&te.touches?te.touches[0]:te;return{x:J-(o.horizontal?0:v.value.cursorOffset)-z.left,y:X-(o.horizontal?v.value.cursorOffset:0)-z.top}},V=te=>{te=te[o.horizontal?"y":"x"];const z=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(te=z-te),te*100/z},G=te=>{const z=v.value.activeSplitter;let J={prevPanesSize:ne(z),nextPanesSize:K(z),prevReachedMinPanes:0,nextReachedMinPanes:0};const X=0+(o.pushOtherPanes?0:J.prevPanesSize),le=100-(o.pushOtherPanes?0:J.nextPanesSize),pe=Math.max(Math.min(V(te),le),X);let I=[z,z+1],H=c.value[I[0]]||null,Y=c.value[I[1]]||null;const ue=H.max<100&&pe>=H.max+J.prevPanesSize,he=Y.max<100&&pe<=100-(Y.max+K(z+1));if(ue||he){ue?(H.size=H.max,Y.size=Math.max(100-H.max-J.prevPanesSize-J.nextPanesSize,0)):(H.size=Math.max(100-Y.max-J.prevPanesSize-K(z+1),0),Y.size=Y.max);return}if(o.pushOtherPanes){const de=ee(J,pe);if(!de)return;({sums:J,panesToResize:I}=de),H=c.value[I[0]]||null,Y=c.value[I[1]]||null}H!==null&&(H.size=Math.min(Math.max(pe-J.prevPanesSize-J.prevReachedMinPanes,H.min),H.max)),Y!==null&&(Y.size=Math.min(Math.max(100-pe-J.nextPanesSize-J.nextReachedMinPanes,Y.min),Y.max))},ee=(te,z)=>{const J=v.value.activeSplitter,X=[J,J+1];return z<te.prevPanesSize+c.value[X[0]].min&&(X[0]=re(J).index,te.prevReachedMinPanes=0,X[0]<J&&c.value.forEach((le,pe)=>{pe>X[0]&&pe<=J&&(le.size=le.min,te.prevReachedMinPanes+=le.min)}),te.prevPanesSize=ne(X[0]),X[0]===void 0)?(te.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((le,pe)=>{pe>0&&pe<=J&&(le.size=le.min,te.prevReachedMinPanes+=le.min)}),c.value[X[1]].size=100-te.prevReachedMinPanes-c.value[0].min-te.prevPanesSize-te.nextPanesSize,null):z>100-te.nextPanesSize-c.value[X[1]].min&&(X[1]=$(J).index,te.nextReachedMinPanes=0,X[1]>J+1&&c.value.forEach((le,pe)=>{pe>J&&pe<X[1]&&(le.size=le.min,te.nextReachedMinPanes+=le.min)}),te.nextPanesSize=K(X[1]-1),X[1]===void 0)?(te.nextReachedMinPanes=0,c.value.forEach((le,pe)=>{pe<d.value-1&&pe>=J+1&&(le.size=le.min,te.nextReachedMinPanes+=le.min)}),c.value[X[0]].size=100-te.prevPanesSize-K(X[0]-1),null):{sums:te,panesToResize:X}},ne=te=>c.value.reduce((z,J,X)=>z+(X<te?J.size:0),0),K=te=>c.value.reduce((z,J,X)=>z+(X>te+1?J.size:0),0),re=te=>[...c.value].reverse().find(z=>z.index<te&&z.size>z.min)||{},$=te=>c.value.find(z=>z.index>te+1&&z.size>z.min)||{},P=()=>{var te;Array.from(((te=h.value)==null?void 0:te.children)||[]).forEach(z=>{const J=z.classList.contains("splitpanes__pane"),X=z.classList.contains("splitpanes__splitter");!J&&!X&&(z.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},O=(te,z,J=!1)=>{const X=te-1,le=document.createElement("div");le.classList.add("splitpanes__splitter"),J||(le.onmousedown=pe=>N(pe,X),typeof window<"u"&&"ontouchstart"in window&&(le.ontouchstart=pe=>N(pe,X)),le.onclick=pe=>A(pe,X+1)),o.dblClickSplitter&&(le.ondblclick=pe=>R(pe,X+1)),z.parentNode.insertBefore(le,z)},S=te=>{te.onmousedown=void 0,te.onclick=void 0,te.ondblclick=void 0,te.remove()},F=()=>{var te;const z=Array.from(((te=h.value)==null?void 0:te.children)||[]);z.forEach(X=>{X.className.includes("splitpanes__splitter")&&S(X)});let J=0;z.forEach(X=>{X.className.includes("splitpanes__pane")&&(!J&&o.firstSplitter?O(J,X,!0):J&&O(J,X),J++)})},j=({uid:te,...z})=>{const J=f.value[te];Object.entries(z).forEach(([X,le])=>J[X]=le)},se=te=>{var z;let J=-1;Array.from(((z=h.value)==null?void 0:z.children)||[]).some(X=>(X.className.includes("splitpanes__pane")&&J++,X.isSameNode(te.el))),c.value.splice(J,0,{...te,index:J}),c.value.forEach((X,le)=>X.index=le),p.value&&Tt(()=>{F(),_e({addedPane:c.value[J]}),r("pane-add",{index:J,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},me=te=>{const z=c.value.findIndex(X=>X.id===te),J=c.value.splice(z,1)[0];c.value.forEach((X,le)=>X.index=le),Tt(()=>{F(),_e({removedPane:{...J}}),r("pane-remove",{removed:J,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},_e=(te={})=>{!te.addedPane&&!te.removedPane?qe():c.value.some(z=>z.givenSize!==null||z.min||z.max<100)?Ze(te):Pe(),p.value&&r("resized",c.value.map(z=>({min:z.min,max:z.max,size:z.size})))},Pe=()=>{const te=100/d.value;let z=0;const J=[],X=[];c.value.forEach(le=>{le.size=Math.max(Math.min(te,le.max),le.min),z-=le.size,le.size>=le.max&&J.push(le.id),le.size<=le.min&&X.push(le.id)}),z>.1&&Ke(z,J,X)},qe=()=>{let te=100;const z=[],J=[];let X=0;c.value.forEach(pe=>{te-=pe.size,pe.givenSize!==null&&X++,pe.size>=pe.max&&z.push(pe.id),pe.size<=pe.min&&J.push(pe.id)});let le=100;te>.1&&(c.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(te/(d.value-X),pe.max),pe.min)),le-=pe.size}),le>.1&&Ke(le,z,J))},Ze=({addedPane:te,removedPane:z}={})=>{let J=100/d.value,X=0;const le=[],pe=[];((te==null?void 0:te.givenSize)??null)!==null&&(J=(100-te.givenSize)/(d.value-1).value),c.value.forEach(I=>{X-=I.size,I.size>=I.max&&le.push(I.id),I.size<=I.min&&pe.push(I.id)}),!(Math.abs(X)<.1)&&(c.value.forEach(I=>{(te==null?void 0:te.givenSize)!==null&&(te==null?void 0:te.id)===I.id||(I.size=Math.max(Math.min(J,I.max),I.min)),X-=I.size,I.size>=I.max&&le.push(I.id),I.size<=I.min&&pe.push(I.id)}),X>.1&&Ke(X,le,pe))},Ke=(te,z,J)=>{let X;te>0?X=te/(d.value-z.length):X=te/(d.value-J.length),c.value.forEach((le,pe)=>{if(te>0&&!z.includes(le.id)){const I=Math.max(Math.min(le.size+X,le.max),le.min),H=I-le.size;te-=H,le.size=I}else if(!J.includes(le.id)){const I=Math.max(Math.min(le.size+X,le.max),le.min),H=I-le.size;te-=H,le.size=I}}),Math.abs(te)>.1&&Tt(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};xt(()=>o.firstSplitter,()=>F()),xt(()=>o.dblClickSplitter,te=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((z,J)=>{z.ondblclick=te?X=>R(X,J):void 0})}),ya(()=>p.value=!1),co(()=>{P(),F(),_e(),r("ready"),p.value=!0});const Xe=()=>{var te;return wa("div",{ref:h,class:b.value},(te=s.default)==null?void 0:te.call(s))};return Sr("panes",c),Sr("indexedPanes",f),Sr("horizontal",Se(()=>o.horizontal)),Sr("requestUpdate",j),Sr("onPaneAdd",se),Sr("onPaneRemove",me),Sr("onPaneClick",M),(te,z)=>(ce(),nt(kd(Xe)))}},kc={__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=wn("requestUpdate"),s=wn("onPaneAdd"),c=wn("horizontal"),f=wn("onPaneRemove"),d=wn("onPaneClick"),h=(t=Do())==null?void 0:t.uid,p=wn("indexedPanes"),v=Se(()=>p.value[h]),m=Ue(null),b=Se(()=>{const T=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(T,E.value),w.value)}),w=Se(()=>{const T=parseFloat(r.minSize);return isNaN(T)?0:T}),E=Se(()=>{const T=parseFloat(r.maxSize);return isNaN(T)?100:T}),N=Se(()=>{var T;return`${c.value?"height":"width"}: ${(T=v.value)==null?void 0:T.size}%`});return co(()=>{s({id:h,el:m.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),xt(()=>b.value,T=>o({uid:h,size:T})),xt(()=>w.value,T=>o({uid:h,min:T})),xt(()=>E.value,T=>o({uid:h,max:T})),ya(()=>f(h)),(T,L)=>(ce(),xe("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:L[0]||(L[0]=A=>U(d)(A,T._.uid)),style:nn(N.value)},[xn(T.$slots,"default")],4))}},Fme={"h-screen":"","w-screen":"",overflow:"hidden"},Hme=ut({__name:"index",setup(e){const t=JE(),r=pc(v=>{h(),d(v)},0),o=pc(v=>{v.forEach((m,b)=>{Ms.value[b]=m.size}),f(v),p()},0),s=pc(v=>{v.forEach((m,b)=>{eo.value[b]=m.size}),d(v),p()},0),c=pc(v=>{f(v),h()},0);function f(v){At.navigation=v[0].size,At.details.size=v[1].size}function d(v){At.details.browser=v[0].size,At.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>{const b=zme,w=Pme,E=Eve,N=qge,T=Fge,L=mce,A=sce;return ce(),xe(ct,null,[Oe(b),ie("div",Fme,[Oe(U(T0),{class:"pt-4px",onResized:U(o),onResize:U(c)},{default:rt(()=>[Oe(U(kc),{size:U(Ms)[0]},{default:rt(()=>[Oe(w)]),_:1},8,["size"]),Oe(U(kc),{size:U(Ms)[1]},{default:rt(()=>[U(Ht)?(ce(),nt(U(T0),{id:"details-splitpanes",key:"browser-detail",onResize:U(r),onResized:U(s)},{default:rt(()=>[Oe(U(kc),{size:U(eo)[0],"min-size":"10"},{default:rt(()=>[m[0]||(Vc(-1,!0),(m[0]=Oe(L)).cacheIndex=0,Vc(1),m[0])]),_:1},8,["size"]),Oe(U(kc),{size:U(eo)[1]},{default:rt(()=>[U(t)?(ce(),nt(E,{key:"summary"})):U(so)?(ce(),nt(N,{key:"coverage",src:U(Sm)},null,8,["src"])):(ce(),nt(T,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ce(),nt(eT,{key:"ui-detail"},{default:rt(()=>[U(t)?(ce(),nt(E,{key:"summary"})):U(so)?(ce(),nt(N,{key:"coverage",src:U(Sm)},null,8,["src"])):(ce(),nt(T,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(A)],64)}}}),Bme=[{name:"index",path:"/",component:Hme,props:!0}];/*!
49
+ * vue-router v4.5.1
50
+ * (c) 2025 Eduardo San Martin Morote
51
+ * @license MIT
52
+ */const vs=typeof document<"u";function R1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wme(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&R1(e.default)}const bt=Object.assign;function gd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Or(s)?s.map(e):e(s)}return r}const Bl=()=>{},Or=Array.isArray,P1=/#/g,qme=/&/g,Ume=/\//g,jme=/=/g,Vme=/\?/g,I1=/\+/g,Gme=/%5B/g,Kme=/%5D/g,D1=/%5E/g,Xme=/%60/g,z1=/%7B/g,Yme=/%7C/g,F1=/%7D/g,Zme=/%20/g;function sp(e){return encodeURI(""+e).replace(Yme,"|").replace(Gme,"[").replace(Kme,"]")}function Jme(e){return sp(e).replace(z1,"{").replace(F1,"}").replace(D1,"^")}function ch(e){return sp(e).replace(I1,"%2B").replace(Zme,"+").replace(P1,"%23").replace(qme,"%26").replace(Xme,"`").replace(z1,"{").replace(F1,"}").replace(D1,"^")}function Qme(e){return ch(e).replace(jme,"%3D")}function e0e(e){return sp(e).replace(P1,"%23").replace(Vme,"%3F")}function t0e(e){return e==null?"":e0e(e).replace(Ume,"%2F")}function fa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const n0e=/\/$/,r0e=e=>e.replace(n0e,"");function vd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=l0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:fa(f)}}function i0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function C0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function o0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Hs(t.matched[o],r.matched[s])&&H1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Hs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function H1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!s0e(e[r],t[r]))return!1;return!0}function s0e(e,t){return Or(e)?E0(e,t):Or(t)?E0(t,e):e===t}function E0(e,t){return Or(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function l0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Fi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var da;(function(e){e.pop="pop",e.push="push"})(da||(da={}));var Wl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wl||(Wl={}));function a0e(e){if(!e)if(vs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),r0e(e)}const c0e=/^[^#]+#/;function u0e(e,t){return e.replace(c0e,"#")+t}function f0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const ju=()=>({left:window.scrollX,top:window.scrollY});function d0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=f0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function A0(e,t){return(history.state?history.state.position-t:-1)+e}const uh=new Map;function h0e(e,t){uh.set(e,t)}function p0e(e){const t=uh.get(e);return uh.delete(e),t}let g0e=()=>location.protocol+"//"+location.host;function B1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),C0(h,"")}return C0(r,e)+o+s}function v0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=B1(e,location),E=r.value,N=t.value;let T=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}T=N?b.position-N.position:0}else o(w);s.forEach(L=>{L(r.value,E,{delta:T,type:da.pop,direction:T?T>0?Wl.forward:Wl.back:Wl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:ju()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function L0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?ju():null}}function m0e(e){const{history:t,location:r}=window,o={value:B1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:g0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,L0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:ju()});c(v.current,v,!0);const m=bt({},L0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function y0e(e){e=a0e(e);const t=m0e(e),r=v0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:u0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function b0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),y0e(e)}function w0e(e){return typeof e=="string"||e&&typeof e=="object"}function W1(e){return typeof e=="string"||typeof e=="symbol"}const q1=Symbol("");var M0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(M0||(M0={}));function Bs(e,t){return bt(new Error,{type:e,[q1]:!0},t)}function ai(e,t){return e instanceof Error&&q1 in e&&(t==null||!!(e.type&t))}const N0="[^/]+?",x0e={sensitive:!1,strict:!1,start:!0,end:!0},_0e=/[.+*?^${}()[\]/\\]/g;function S0e(e,t){const r=bt({},x0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(_0e,"\\$&"),w+=40;else if(b.type===1){const{value:E,repeatable:N,optional:T,regexp:L}=b;c.push({name:E,repeatable:N,optional:T});const A=L||N0;if(A!==N0){w+=10;try{new RegExp(`(${A})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${E}" (${A}): `+M.message)}}let R=N?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;m||(R=T&&p.length<2?`(?:/${R})`:"/"+R),T&&(R+="?"),s+=R,w+=20,T&&(w+=-8),N&&(w+=-20),A===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",E=c[b-1];m[E.name]=w&&E.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:E,repeatable:N,optional:T}=w,L=E in p?p[E]:"";if(Or(L)&&!N)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const A=Or(L)?L.join("/"):L;if(!A)if(T)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${E}"`);v+=A}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function k0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function U1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=k0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if($0(o))return 1;if($0(s))return-1}return s.length-o.length}function $0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const T0e={type:0,value:""},C0e=/[a-zA-Z0-9_]/;function E0e(e){if(!e)return[[]];if(e==="/")return[[T0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:C0e.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function A0e(e,t,r){const o=S0e(E0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function L0e(e,t){const r=[],o=new Map;t=I0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const E=!w,N=R0(m);N.aliasOf=w&&w.record;const T=I0(t,m),L=[N];if("alias"in m){const M=typeof m.alias=="string"?[m.alias]:m.alias;for(const B of M)L.push(R0(bt({},N,{components:w?w.record.components:N.components,path:B,aliasOf:w?w.record:N})))}let A,R;for(const M of L){const{path:B}=M;if(b&&B[0]!=="/"){const V=b.record.path,G=V[V.length-1]==="/"?"":"/";M.path=b.record.path+(B&&G+B)}if(A=A0e(M,b,T),w?w.alias.push(A):(R=R||A,R!==A&&R.alias.push(A),E&&m.name&&!P0(A)&&f(m.name)),j1(A)&&h(A),N.children){const V=N.children;for(let G=0;G<V.length;G++)c(V[G],A,w&&w.children[G])}w=w||A}return R?()=>{f(R)}:Bl}function f(m){if(W1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=$0e(m,r);r.splice(b,0,m),m.record.name&&!P0(m)&&o.set(m.record.name,m)}function p(m,b){let w,E={},N,T;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Bs(1,{location:m});T=w.record.name,E=bt(O0(b.params,w.keys.filter(R=>!R.optional).concat(w.parent?w.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),m.params&&O0(m.params,w.keys.map(R=>R.name))),N=w.stringify(E)}else if(m.path!=null)N=m.path,w=r.find(R=>R.re.test(N)),w&&(E=w.parse(N),T=w.record.name);else{if(w=b.name?o.get(b.name):r.find(R=>R.re.test(b.path)),!w)throw Bs(1,{location:m,currentLocation:b});T=w.record.name,E=bt({},b.params,m.params),N=w.stringify(E)}const L=[];let A=w;for(;A;)L.unshift(A.record),A=A.parent;return{name:T,path:N,params:E,matched:L,meta:N0e(L)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function O0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function R0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:M0e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function M0e(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function P0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function N0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function I0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function $0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;U1(e,t[c])<0?o=c:r=c+1}const s=O0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function O0e(e){let t=e;for(;t=t.parent;)if(j1(t)&&U1(e,t)===0)return t}function j1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function R0e(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(I1," "),f=c.indexOf("="),d=fa(f<0?c:c.slice(0,f)),h=f<0?null:fa(c.slice(f+1));if(d in t){let p=t[d];Or(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function D0(e){let t="";for(let r in e){const o=e[r];if(r=Qme(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Or(o)?o.map(c=>c&&ch(c)):[o&&ch(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function P0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Or(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const I0e=Symbol(""),z0=Symbol(""),lp=Symbol(""),V1=Symbol(""),fh=Symbol("");function Cl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Gi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Bs(4,{from:r,to:t})):b instanceof Error?h(b):w0e(b)?h(Bs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function md(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(R1(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Gi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=Wme(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Gi(w,r,o,f,d,s)()}))}}return c}function F0(e){const t=wn(lp),r=wn(V1),o=Se(()=>{const h=U(e.to);return t.resolve(h)}),s=Se(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Hs.bind(null,v));if(b>-1)return b;const w=H0(h[p-2]);return p>1&&H0(v)===w&&m[m.length-1].path!==w?m.findIndex(Hs.bind(null,h[p-2])):b}),c=Se(()=>s.value>-1&&B0e(r.params,o.value.params)),f=Se(()=>s.value>-1&&s.value===r.matched.length-1&&H1(r.params,o.value.params));function d(h={}){if(H0e(h)){const p=t[U(e.replace)?"replace":"push"](U(e.to)).catch(Bl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Se(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function D0e(e){return e.length===1?e[0]:e}const z0e=ut({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:F0,setup(e,{slots:t}){const r=rr(F0(e)),{options:o}=wn(lp),s=Se(()=>({[B0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[B0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&D0e(t.default(r));return e.custom?c:wa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),F0e=z0e;function H0e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function B0e(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!Or(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function H0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const B0=(e,t,r)=>e??t??r,W0e=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=wn(fh),s=Se(()=>e.route||o.value),c=wn(z0,0),f=Se(()=>{let p=U(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Se(()=>s.value.matched[f.value]);Sr(z0,Se(()=>f.value+1)),Sr(I0e,d),Sr(fh,s);const h=Ue();return xt(()=>[h.value,d.value,e.name],([p,v,m],[b,w,E])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Hs(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(N=>N(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return W0(r.default,{Component:b,route:p});const w=m.props[v],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,T=wa(b,bt({},E,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return W0(r.default,{Component:T,route:p})||T}}});function W0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const q0e=W0e;function U0e(e){const t=L0e(e.routes,e),r=e.parseQuery||R0e,o=e.stringifyQuery||D0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=rn(Fi);let p=Fi;vs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=gd.bind(null,z=>""+z),m=gd.bind(null,t0e),b=gd.bind(null,fa);function w(z,J){let X,le;return W1(z)?(X=t.getRecordMatcher(z),le=J):le=z,t.addRoute(le,X)}function E(z){const J=t.getRecordMatcher(z);J&&t.removeRoute(J)}function N(){return t.getRoutes().map(z=>z.record)}function T(z){return!!t.getRecordMatcher(z)}function L(z,J){if(J=bt({},J||h.value),typeof z=="string"){const Y=vd(r,z,J.path),ue=t.resolve({path:Y.path},J),he=s.createHref(Y.fullPath);return bt(Y,ue,{params:b(ue.params),hash:fa(Y.hash),redirectedFrom:void 0,href:he})}let X;if(z.path!=null)X=bt({},z,{path:vd(r,z.path,J.path).path});else{const Y=bt({},z.params);for(const ue in Y)Y[ue]==null&&delete Y[ue];X=bt({},z,{params:m(Y)}),J.params=m(J.params)}const le=t.resolve(X,J),pe=z.hash||"";le.params=v(b(le.params));const I=i0e(o,bt({},z,{hash:Jme(pe),path:le.path})),H=s.createHref(I);return bt({fullPath:I,hash:pe,query:o===D0?P0e(z.query):z.query||{}},le,{redirectedFrom:void 0,href:H})}function A(z){return typeof z=="string"?vd(r,z,h.value.path):bt({},z)}function R(z,J){if(p!==z)return Bs(8,{from:J,to:z})}function M(z){return G(z)}function B(z){return M(bt(A(z),{replace:!0}))}function V(z){const J=z.matched[z.matched.length-1];if(J&&J.redirect){const{redirect:X}=J;let le=typeof X=="function"?X(z):X;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=A(le):{path:le},le.params={}),bt({query:z.query,hash:z.hash,params:le.path!=null?{}:z.params},le)}}function G(z,J){const X=p=L(z),le=h.value,pe=z.state,I=z.force,H=z.replace===!0,Y=V(X);if(Y)return G(bt(A(Y),{state:typeof Y=="object"?bt({},pe,Y.state):pe,force:I,replace:H}),J||X);const ue=X;ue.redirectedFrom=J;let he;return!I&&o0e(o,le,X)&&(he=Bs(16,{to:ue,from:le}),Pe(le,le,!0,!1)),(he?Promise.resolve(he):K(ue,le)).catch(de=>ai(de)?ai(de,2)?de:_e(de):se(de,ue,le)).then(de=>{if(de){if(ai(de,2))return G(bt({replace:H},A(de.to),{state:typeof de.to=="object"?bt({},pe,de.to.state):pe,force:I}),J||ue)}else de=$(ue,le,!0,H,pe);return re(ue,le,de),de})}function ee(z,J){const X=R(z,J);return X?Promise.reject(X):Promise.resolve()}function ne(z){const J=Ke.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(z):z()}function K(z,J){let X;const[le,pe,I]=j0e(z,J);X=md(le.reverse(),"beforeRouteLeave",z,J);for(const Y of le)Y.leaveGuards.forEach(ue=>{X.push(Gi(ue,z,J))});const H=ee.bind(null,z,J);return X.push(H),te(X).then(()=>{X=[];for(const Y of c.list())X.push(Gi(Y,z,J));return X.push(H),te(X)}).then(()=>{X=md(pe,"beforeRouteUpdate",z,J);for(const Y of pe)Y.updateGuards.forEach(ue=>{X.push(Gi(ue,z,J))});return X.push(H),te(X)}).then(()=>{X=[];for(const Y of I)if(Y.beforeEnter)if(Or(Y.beforeEnter))for(const ue of Y.beforeEnter)X.push(Gi(ue,z,J));else X.push(Gi(Y.beforeEnter,z,J));return X.push(H),te(X)}).then(()=>(z.matched.forEach(Y=>Y.enterCallbacks={}),X=md(I,"beforeRouteEnter",z,J,ne),X.push(H),te(X))).then(()=>{X=[];for(const Y of f.list())X.push(Gi(Y,z,J));return X.push(H),te(X)}).catch(Y=>ai(Y,8)?Y:Promise.reject(Y))}function re(z,J,X){d.list().forEach(le=>ne(()=>le(z,J,X)))}function $(z,J,X,le,pe){const I=R(z,J);if(I)return I;const H=J===Fi,Y=vs?history.state:{};X&&(le||H?s.replace(z.fullPath,bt({scroll:H&&Y&&Y.scroll},pe)):s.push(z.fullPath,pe)),h.value=z,Pe(z,J,X,H),_e()}let P;function O(){P||(P=s.listen((z,J,X)=>{if(!Xe.listening)return;const le=L(z),pe=V(le);if(pe){G(bt(pe,{replace:!0,force:!0}),le).catch(Bl);return}p=le;const I=h.value;vs&&h0e(A0(I.fullPath,X.delta),ju()),K(le,I).catch(H=>ai(H,12)?H:ai(H,2)?(G(bt(A(H.to),{force:!0}),le).then(Y=>{ai(Y,20)&&!X.delta&&X.type===da.pop&&s.go(-1,!1)}).catch(Bl),Promise.reject()):(X.delta&&s.go(-X.delta,!1),se(H,le,I))).then(H=>{H=H||$(le,I,!1),H&&(X.delta&&!ai(H,8)?s.go(-X.delta,!1):X.type===da.pop&&ai(H,20)&&s.go(-1,!1)),re(le,I,H)}).catch(Bl)}))}let S=Cl(),F=Cl(),j;function se(z,J,X){_e(z);const le=F.list();return le.length?le.forEach(pe=>pe(z,J,X)):console.error(z),Promise.reject(z)}function me(){return j&&h.value!==Fi?Promise.resolve():new Promise((z,J)=>{S.add([z,J])})}function _e(z){return j||(j=!z,O(),S.list().forEach(([J,X])=>z?X(z):J()),S.reset()),z}function Pe(z,J,X,le){const{scrollBehavior:pe}=e;if(!vs||!pe)return Promise.resolve();const I=!X&&p0e(A0(z.fullPath,0))||(le||!X)&&history.state&&history.state.scroll||null;return Tt().then(()=>pe(z,J,I)).then(H=>H&&d0e(H)).catch(H=>se(H,z,J))}const qe=z=>s.go(z);let Ze;const Ke=new Set,Xe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:N,resolve:L,options:e,push:M,replace:B,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:F.add,isReady:me,install(z){const J=this;z.component("RouterLink",F0e),z.component("RouterView",q0e),z.config.globalProperties.$router=J,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>U(h)}),vs&&!Ze&&h.value===Fi&&(Ze=!0,M(s.location).catch(pe=>{}));const X={};for(const pe in Fi)Object.defineProperty(X,pe,{get:()=>h.value[pe],enumerable:!0});z.provide(lp,J),z.provide(V1,wh(X)),z.provide(fh,h);const le=z.unmount;Ke.add(z),z.unmount=function(){Ke.delete(z),Ke.size<1&&(p=Fi,P&&P(),P=null,h.value=Fi,Ze=!1,j=!1),le()}}};function te(z){return z.reduce((J,X)=>J.then(()=>ne(X)),Promise.resolve())}return Xe}function j0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Hs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Hs(p,h))||s.push(h))}return[r,o,s]}const V0e={tooltip:AC};Ib.options.instantMove=!0;Ib.options.distance=10;function G0e(){return U0e({history:b0e(),routes:Bme})}const K0e=[G0e],ap=pb(NT);K0e.forEach(e=>{ap.use(e())});Object.entries(V0e).forEach(([e,t])=>{ap.directive(e,t)});ap.mount("#app");