@vitest/browser 4.0.0-beta.5 → 4.0.0-beta.6

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.
@@ -1,57 +1,57 @@
1
- var xk=Object.defineProperty;var Sk=(e,t,n)=>t in e?xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ji=(e,t,n)=>Sk(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();/**
2
- * @vue/shared v3.5.17
1
+ var wk=Object.defineProperty;var xk=(e,t,n)=>t in e?wk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qi=(e,t,n)=>xk(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();/**
2
+ * @vue/shared v3.5.18
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function Yh(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const vt={},Ps=[],Yr=()=>{},_k=()=>!1,Bu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zh=e=>e.startsWith("onUpdate:"),on=Object.assign,Qh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},kk=Object.prototype.hasOwnProperty,wt=(e,t)=>kk.call(e,t),Fe=Array.isArray,Os=e=>Ra(e)==="[object Map]",Wu=e=>Ra(e)==="[object Set]",Qm=e=>Ra(e)==="[object Date]",Ge=e=>typeof e=="function",Dt=e=>typeof e=="string",Nr=e=>typeof e=="symbol",_t=e=>e!==null&&typeof e=="object",eb=e=>(_t(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),tb=Object.prototype.toString,Ra=e=>tb.call(e),Tk=e=>Ra(e).slice(8,-1),nb=e=>Ra(e)==="[object Object]",ep=e=>Dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yl=Yh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ju=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ck=/-(\w)/g,ir=ju(e=>e.replace(Ck,(t,n)=>n?n.toUpperCase():"")),Ek=/\B([A-Z])/g,Ai=ju(e=>e.replace(Ek,"-$1").toLowerCase()),qu=ju(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kc=ju(e=>e?`on${qu(e)}`:""),Vn=(e,t)=>!Object.is(e,t),Jc=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Yd=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Zd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},rb=e=>{const t=Dt(e)?Number(e):NaN;return isNaN(t)?e:t};let ev;const Uu=()=>ev||(ev=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(Fe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],s=Dt(i)?Mk(i):nn(i);if(s)for(const l in s)t[l]=s[l]}return t}else if(Dt(e)||_t(e))return e}const Ak=/;(?![^(]*\))/g,Lk=/:([^]+)/,$k=/\/\*[^]*?\*\//g;function Mk(e){const t={};return e.replace($k,"").split(Ak).forEach(n=>{if(n){const i=n.split(Lk);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ot(e){let t="";if(Dt(e))t=e;else if(Fe(e))for(let n=0;n<e.length;n++){const i=ot(e[n]);i&&(t+=i+" ")}else if(_t(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Nk(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Dt(t)&&(e.class=ot(t)),n&&(e.style=nn(n)),e}const Ik="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pk=Yh(Ik);function ib(e){return!!e||e===""}function Ok(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Vu(e[i],t[i]);return n}function Vu(e,t){if(e===t)return!0;let n=Qm(e),i=Qm(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Nr(e),i=Nr(t),n||i)return e===t;if(n=Fe(e),i=Fe(t),n||i)return n&&i?Ok(e,t):!1;if(n=_t(e),i=_t(t),n||i){if(!n||!i)return!1;const s=Object.keys(e).length,l=Object.keys(t).length;if(s!==l)return!1;for(const u in e){const f=e.hasOwnProperty(u),h=t.hasOwnProperty(u);if(f&&!h||!f&&h||!Vu(e[u],t[u]))return!1}}return String(e)===String(t)}function ob(e,t){return e.findIndex(n=>Vu(n,t))}const sb=e=>!!(e&&e.__v_isRef===!0),Re=e=>Dt(e)?e:e==null?"":Fe(e)||_t(e)&&(e.toString===tb||!Ge(e.toString))?sb(e)?Re(e.value):JSON.stringify(e,lb,2):String(e),lb=(e,t)=>sb(t)?lb(e,t.value):Os(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],l)=>(n[pd(i,l)+" =>"]=s,n),{})}:Wu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>pd(n))}:Nr(t)?pd(t):_t(t)&&!Fe(t)&&!nb(t)?String(t):t,pd=(e,t="")=>{var n;return Nr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.5.17
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Yh(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const vt={},Os=[],Yr=()=>{},Sk=()=>!1,Bu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zh=e=>e.startsWith("onUpdate:"),rn=Object.assign,Qh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_k=Object.prototype.hasOwnProperty,wt=(e,t)=>_k.call(e,t),Fe=Array.isArray,Rs=e=>za(e)==="[object Map]",Wu=e=>za(e)==="[object Set]",Qm=e=>za(e)==="[object Date]",Ge=e=>typeof e=="function",Dt=e=>typeof e=="string",Nr=e=>typeof e=="symbol",_t=e=>e!==null&&typeof e=="object",eb=e=>(_t(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),tb=Object.prototype.toString,za=e=>tb.call(e),kk=e=>za(e).slice(8,-1),nb=e=>za(e)==="[object Object]",ep=e=>Dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zl=Yh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ju=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tk=/-(\w)/g,ir=ju(e=>e.replace(Tk,(t,n)=>n?n.toUpperCase():"")),Ck=/\B([A-Z])/g,Ai=ju(e=>e.replace(Ck,"-$1").toLowerCase()),qu=ju(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kc=ju(e=>e?`on${qu(e)}`:""),Vn=(e,t)=>!Object.is(e,t),Jc=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Yd=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Zd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},rb=e=>{const t=Dt(e)?Number(e):NaN;return isNaN(t)?e:t};let ev;const Uu=()=>ev||(ev=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tn(e){if(Fe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],s=Dt(i)?$k(i):tn(i);if(s)for(const l in s)t[l]=s[l]}return t}else if(Dt(e)||_t(e))return e}const Ek=/;(?![^(]*\))/g,Ak=/:([^]+)/,Lk=/\/\*[^]*?\*\//g;function $k(e){const t={};return e.replace(Lk,"").split(Ek).forEach(n=>{if(n){const i=n.split(Ak);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ot(e){let t="";if(Dt(e))t=e;else if(Fe(e))for(let n=0;n<e.length;n++){const i=ot(e[n]);i&&(t+=i+" ")}else if(_t(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Mk(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Dt(t)&&(e.class=ot(t)),n&&(e.style=tn(n)),e}const Nk="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ik=Yh(Nk);function ib(e){return!!e||e===""}function Pk(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Vu(e[i],t[i]);return n}function Vu(e,t){if(e===t)return!0;let n=Qm(e),i=Qm(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Nr(e),i=Nr(t),n||i)return e===t;if(n=Fe(e),i=Fe(t),n||i)return n&&i?Pk(e,t):!1;if(n=_t(e),i=_t(t),n||i){if(!n||!i)return!1;const s=Object.keys(e).length,l=Object.keys(t).length;if(s!==l)return!1;for(const u in e){const f=e.hasOwnProperty(u),h=t.hasOwnProperty(u);if(f&&!h||!f&&h||!Vu(e[u],t[u]))return!1}}return String(e)===String(t)}function ob(e,t){return e.findIndex(n=>Vu(n,t))}const sb=e=>!!(e&&e.__v_isRef===!0),Re=e=>Dt(e)?e:e==null?"":Fe(e)||_t(e)&&(e.toString===tb||!Ge(e.toString))?sb(e)?Re(e.value):JSON.stringify(e,lb,2):String(e),lb=(e,t)=>sb(t)?lb(e,t.value):Rs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],l)=>(n[pd(i,l)+" =>"]=s,n),{})}:Wu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>pd(n))}:Nr(t)?pd(t):_t(t)&&!Fe(t)&&!nb(t)?String(t):t,pd=(e,t="")=>{var n;return Nr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.18
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let yn;class Rk{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,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=yn;try{return yn=this,t()}finally{yn=n}}}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 n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].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 ab(){return yn}function zk(e,t=!1){yn&&yn.cleanups.push(e)}let Tt;const gd=new WeakSet;class cb{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,gd.has(this)&&(gd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tv(this),db(this);const t=Tt,n=$r;Tt=this,$r=!0;try{return this.fn()}finally{hb(this),Tt=t,$r=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rp(t);this.deps=this.depsTail=void 0,tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qd(this)&&this.run()}get dirty(){return Qd(this)}}let ub=0,Zl,Ql;function fb(e,t=!1){if(e.flags|=8,t){e.next=Ql,Ql=e;return}e.next=Zl,Zl=e}function tp(){ub++}function np(){if(--ub>0)return;if(Ql){let t=Ql;for(Ql=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Zl;){let t=Zl;for(Zl=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function db(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hb(e){let t,n=e.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),rp(i),Dk(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=t,e.depsTail=n}function Qd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(pb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function pb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fa)||(e.globalVersion=fa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qd(e))))return;e.flags|=2;const t=e.dep,n=Tt,i=$r;Tt=e,$r=!0;try{db(e);const s=e.fn(e._value);(t.version===0||Vn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=n,$r=i,hb(e),e.flags&=-3}}function rp(e,t=!1){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)rp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Dk(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let $r=!0;const gb=[];function ki(){gb.push($r),$r=!1}function Ti(){const e=gb.pop();$r=e===void 0?!0:e}function tv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Tt;Tt=void 0;try{t()}finally{Tt=n}}}let fa=0;class Fk{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Gu{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,this.__v_skip=!0}track(t){if(!Tt||!$r||Tt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Tt)n=this.activeLink=new Fk(Tt,this),Tt.deps?(n.prevDep=Tt.depsTail,Tt.depsTail.nextDep=n,Tt.depsTail=n):Tt.deps=Tt.depsTail=n,mb(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=Tt.depsTail,n.nextDep=void 0,Tt.depsTail.nextDep=n,Tt.depsTail=n,Tt.deps===n&&(Tt.deps=i)}return n}trigger(t){this.version++,fa++,this.notify(t)}notify(t){tp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{np()}}}function mb(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)mb(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const uu=new WeakMap,jo=Symbol(""),eh=Symbol(""),da=Symbol("");function bn(e,t,n){if($r&&Tt){let i=uu.get(e);i||uu.set(e,i=new Map);let s=i.get(n);s||(i.set(n,s=new Gu),s.map=i,s.key=n),s.track()}}function wi(e,t,n,i,s,l){const u=uu.get(e);if(!u){fa++;return}const f=h=>{h&&h.trigger()};if(tp(),t==="clear")u.forEach(f);else{const h=Fe(e),p=h&&ep(n);if(h&&n==="length"){const g=Number(i);u.forEach((v,y)=>{(y==="length"||y===da||!Nr(y)&&y>=g)&&f(v)})}else switch((n!==void 0||u.has(void 0))&&f(u.get(n)),p&&f(u.get(da)),t){case"add":h?p&&f(u.get("length")):(f(u.get(jo)),Os(e)&&f(u.get(eh)));break;case"delete":h||(f(u.get(jo)),Os(e)&&f(u.get(eh)));break;case"set":Os(e)&&f(u.get(jo));break}}np()}function Hk(e,t){const n=uu.get(e);return n&&n.get(t)}function ks(e){const t=mt(e);return t===e?t:(bn(t,"iterate",da),dr(e)?t:t.map(hn))}function Xu(e){return bn(e=mt(e),"iterate",da),e}const Bk={__proto__:null,[Symbol.iterator](){return md(this,Symbol.iterator,hn)},concat(...e){return ks(this).concat(...e.map(t=>Fe(t)?ks(t):t))},entries(){return md(this,"entries",e=>(e[1]=hn(e[1]),e))},every(e,t){return hi(this,"every",e,t,void 0,arguments)},filter(e,t){return hi(this,"filter",e,t,n=>n.map(hn),arguments)},find(e,t){return hi(this,"find",e,t,hn,arguments)},findIndex(e,t){return hi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return hi(this,"findLast",e,t,hn,arguments)},findLastIndex(e,t){return hi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return hi(this,"forEach",e,t,void 0,arguments)},includes(...e){return vd(this,"includes",e)},indexOf(...e){return vd(this,"indexOf",e)},join(e){return ks(this).join(e)},lastIndexOf(...e){return vd(this,"lastIndexOf",e)},map(e,t){return hi(this,"map",e,t,void 0,arguments)},pop(){return Fl(this,"pop")},push(...e){return Fl(this,"push",e)},reduce(e,...t){return nv(this,"reduce",e,t)},reduceRight(e,...t){return nv(this,"reduceRight",e,t)},shift(){return Fl(this,"shift")},some(e,t){return hi(this,"some",e,t,void 0,arguments)},splice(...e){return Fl(this,"splice",e)},toReversed(){return ks(this).toReversed()},toSorted(e){return ks(this).toSorted(e)},toSpliced(...e){return ks(this).toSpliced(...e)},unshift(...e){return Fl(this,"unshift",e)},values(){return md(this,"values",hn)}};function md(e,t,n){const i=Xu(e),s=i[t]();return i!==e&&!dr(e)&&(s._next=s.next,s.next=()=>{const l=s._next();return l.value&&(l.value=n(l.value)),l}),s}const Wk=Array.prototype;function hi(e,t,n,i,s,l){const u=Xu(e),f=u!==e&&!dr(e),h=u[t];if(h!==Wk[t]){const v=h.apply(e,l);return f?hn(v):v}let p=n;u!==e&&(f?p=function(v,y){return n.call(this,hn(v),y,e)}:n.length>2&&(p=function(v,y){return n.call(this,v,y,e)}));const g=h.call(u,p,i);return f&&s?s(g):g}function nv(e,t,n,i){const s=Xu(e);let l=n;return s!==e&&(dr(e)?n.length>3&&(l=function(u,f,h){return n.call(this,u,f,h,e)}):l=function(u,f,h){return n.call(this,u,hn(f),h,e)}),s[t](l,...i)}function vd(e,t,n){const i=mt(e);bn(i,"iterate",da);const s=i[t](...n);return(s===-1||s===!1)&&lp(n[0])?(n[0]=mt(n[0]),i[t](...n)):s}function Fl(e,t,n=[]){ki(),tp();const i=mt(e)[t].apply(e,n);return np(),Ti(),i}const jk=Yh("__proto__,__v_isRef,__isVue"),vb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nr));function qk(e){Nr(e)||(e=String(e));const t=mt(this);return bn(t,"has",e),t.hasOwnProperty(e)}class yb{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return l;if(n==="__v_raw")return i===(s?l?eT:Sb:l?xb:wb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const u=Fe(t);if(!s){let h;if(u&&(h=Bk[n]))return h;if(n==="hasOwnProperty")return qk}const f=Reflect.get(t,n,kt(t)?t:i);return(Nr(n)?vb.has(n):jk(n))||(s||bn(t,"get",n),l)?f:kt(f)?u&&ep(n)?f:f.value:_t(f)?s?za(f):rr(f):f}}class bb extends yb{constructor(t=!1){super(!1,t)}set(t,n,i,s){let l=t[n];if(!this._isShallow){const h=uo(l);if(!dr(i)&&!uo(i)&&(l=mt(l),i=mt(i)),!Fe(t)&&kt(l)&&!kt(i))return h?!1:(l.value=i,!0)}const u=Fe(t)&&ep(n)?Number(n)<t.length:wt(t,n),f=Reflect.set(t,n,i,kt(t)?t:s);return t===mt(s)&&(u?Vn(i,l)&&wi(t,"set",n,i):wi(t,"add",n,i)),f}deleteProperty(t,n){const i=wt(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&i&&wi(t,"delete",n,void 0),s}has(t,n){const i=Reflect.has(t,n);return(!Nr(n)||!vb.has(n))&&bn(t,"has",n),i}ownKeys(t){return bn(t,"iterate",Fe(t)?"length":jo),Reflect.ownKeys(t)}}class Uk extends yb{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Vk=new bb,Gk=new Uk,Xk=new bb(!0);const th=e=>e,Mc=e=>Reflect.getPrototypeOf(e);function Kk(e,t,n){return function(...i){const s=this.__v_raw,l=mt(s),u=Os(l),f=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,p=s[e](...i),g=n?th:t?fu:hn;return!t&&bn(l,"iterate",h?eh:jo),{next(){const{value:v,done:y}=p.next();return y?{value:v,done:y}:{value:f?[g(v[0]),g(v[1])]:g(v),done:y}},[Symbol.iterator](){return this}}}}function Nc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jk(e,t){const n={get(s){const l=this.__v_raw,u=mt(l),f=mt(s);e||(Vn(s,f)&&bn(u,"get",s),bn(u,"get",f));const{has:h}=Mc(u),p=t?th:e?fu:hn;if(h.call(u,s))return p(l.get(s));if(h.call(u,f))return p(l.get(f));l!==u&&l.get(s)},get size(){const s=this.__v_raw;return!e&&bn(mt(s),"iterate",jo),Reflect.get(s,"size",s)},has(s){const l=this.__v_raw,u=mt(l),f=mt(s);return e||(Vn(s,f)&&bn(u,"has",s),bn(u,"has",f)),s===f?l.has(s):l.has(s)||l.has(f)},forEach(s,l){const u=this,f=u.__v_raw,h=mt(f),p=t?th:e?fu:hn;return!e&&bn(h,"iterate",jo),f.forEach((g,v)=>s.call(l,p(g),p(v),u))}};return on(n,e?{add:Nc("add"),set:Nc("set"),delete:Nc("delete"),clear:Nc("clear")}:{add(s){!t&&!dr(s)&&!uo(s)&&(s=mt(s));const l=mt(this);return Mc(l).has.call(l,s)||(l.add(s),wi(l,"add",s,s)),this},set(s,l){!t&&!dr(l)&&!uo(l)&&(l=mt(l));const u=mt(this),{has:f,get:h}=Mc(u);let p=f.call(u,s);p||(s=mt(s),p=f.call(u,s));const g=h.call(u,s);return u.set(s,l),p?Vn(l,g)&&wi(u,"set",s,l):wi(u,"add",s,l),this},delete(s){const l=mt(this),{has:u,get:f}=Mc(l);let h=u.call(l,s);h||(s=mt(s),h=u.call(l,s)),f&&f.call(l,s);const p=l.delete(s);return h&&wi(l,"delete",s,void 0),p},clear(){const s=mt(this),l=s.size!==0,u=s.clear();return l&&wi(s,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Kk(s,e,t)}),n}function ip(e,t){const n=Jk(e,t);return(i,s,l)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(wt(n,s)&&s in i?n:i,s,l)}const Yk={get:ip(!1,!1)},Zk={get:ip(!1,!0)},Qk={get:ip(!0,!1)};const wb=new WeakMap,xb=new WeakMap,Sb=new WeakMap,eT=new WeakMap;function tT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nT(e){return e.__v_skip||!Object.isExtensible(e)?0:tT(Tk(e))}function rr(e){return uo(e)?e:sp(e,!1,Vk,Yk,wb)}function op(e){return sp(e,!1,Xk,Zk,xb)}function za(e){return sp(e,!0,Gk,Qk,Sb)}function sp(e,t,n,i,s){if(!_t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=nT(e);if(l===0)return e;const u=s.get(e);if(u)return u;const f=new Proxy(e,l===2?i:n);return s.set(e,f),f}function Rs(e){return uo(e)?Rs(e.__v_raw):!!(e&&e.__v_isReactive)}function uo(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function lp(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function ap(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&Yd(e,"__v_skip",!0),e}const hn=e=>_t(e)?rr(e):e,fu=e=>_t(e)?za(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return _b(e,!1)}function rn(e){return _b(e,!0)}function _b(e,t){return kt(e)?e:new rT(e,t)}class rT{constructor(t,n){this.dep=new Gu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:mt(t),this._value=n?t:hn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||dr(t)||uo(t);t=i?t:mt(t),Vn(t,n)&&(this._rawValue=t,this._value=i?t:hn(t),this.dep.trigger())}}function j(e){return kt(e)?e.value:e}function Gt(e){return Ge(e)?e():j(e)}const iT={get:(e,t,n)=>t==="__v_raw"?e:j(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return kt(s)&&!kt(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function kb(e){return Rs(e)?e:new Proxy(e,iT)}class oT{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gu,{get:i,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Tb(e){return new oT(e)}function sT(e){const t=Fe(e)?new Array(e.length):{};for(const n in e)t[n]=Cb(e,n);return t}class lT{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,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 Hk(mt(this._object),this._key)}}class aT{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 ol(e,t,n){return kt(e)?e:Ge(e)?new aT(e):_t(e)&&arguments.length>1?Cb(e,t,n):Ue(e)}function Cb(e,t,n){const i=e[t];return kt(i)?i:new lT(e,t,n)}class cT{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return fb(this,!0),!0}get value(){const t=this.dep.track();return pb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function uT(e,t,n=!1){let i,s;return Ge(e)?i=e:(i=e.get,s=e.set),new cT(i,s,n)}const Ic={},du=new WeakMap;let zo;function fT(e,t=!1,n=zo){if(n){let i=du.get(n);i||du.set(n,i=[]),i.push(e)}}function dT(e,t,n=vt){const{immediate:i,deep:s,once:l,scheduler:u,augmentJob:f,call:h}=n,p=k=>s?k:dr(k)||s===!1||s===0?xi(k,1):xi(k);let g,v,y,w,L=!1,$=!1;if(kt(e)?(v=()=>e.value,L=dr(e)):Rs(e)?(v=()=>p(e),L=!0):Fe(e)?($=!0,L=e.some(k=>Rs(k)||dr(k)),v=()=>e.map(k=>{if(kt(k))return k.value;if(Rs(k))return p(k);if(Ge(k))return h?h(k,2):k()})):Ge(e)?t?v=h?()=>h(e,2):e:v=()=>{if(y){ki();try{y()}finally{Ti()}}const k=zo;zo=g;try{return h?h(e,3,[w]):e(w)}finally{zo=k}}:v=Yr,t&&s){const k=v,z=s===!0?1/0:s;v=()=>xi(k(),z)}const C=ab(),E=()=>{g.stop(),C&&C.active&&Qh(C.effects,g)};if(l&&t){const k=t;t=(...z)=>{k(...z),E()}}let N=$?new Array(e.length).fill(Ic):Ic;const O=k=>{if(!(!(g.flags&1)||!g.dirty&&!k))if(t){const z=g.run();if(s||L||($?z.some((D,oe)=>Vn(D,N[oe])):Vn(z,N))){y&&y();const D=zo;zo=g;try{const oe=[z,N===Ic?void 0:$&&N[0]===Ic?[]:N,w];N=z,h?h(t,3,oe):t(...oe)}finally{zo=D}}}else g.run()};return f&&f(O),g=new cb(v),g.scheduler=u?()=>u(O,!1):O,w=k=>fT(k,!1,g),y=g.onStop=()=>{const k=du.get(g);if(k){if(h)h(k,4);else for(const z of k)z();du.delete(g)}},t?i?O(!0):N=g.run():u?u(O.bind(null,!0),!0):g.run(),E.pause=g.pause.bind(g),E.resume=g.resume.bind(g),E.stop=E,E}function xi(e,t=1/0,n){if(t<=0||!_t(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,kt(e))xi(e.value,t,n);else if(Fe(e))for(let i=0;i<e.length;i++)xi(e[i],t,n);else if(Wu(e)||Os(e))e.forEach(i=>{xi(i,t,n)});else if(nb(e)){for(const i in e)xi(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&xi(e[i],t,n)}return e}/**
10
- * @vue/runtime-core v3.5.17
9
+ **/let vn;class Ok{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=vn,!t&&vn&&(this.index=(vn.scopes||(vn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=vn;try{return vn=this,t()}finally{vn=n}}}on(){++this._on===1&&(this.prevScope=vn,vn=this)}off(){this._on>0&&--this._on===0&&(vn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].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 ab(){return vn}function Rk(e,t=!1){vn&&vn.cleanups.push(e)}let Tt;const gd=new WeakSet;class cb{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,vn&&vn.active&&vn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gd.has(this)&&(gd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tv(this),db(this);const t=Tt,n=$r;Tt=this,$r=!0;try{return this.fn()}finally{hb(this),Tt=t,$r=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rp(t);this.deps=this.depsTail=void 0,tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qd(this)&&this.run()}get dirty(){return Qd(this)}}let ub=0,Ql,ea;function fb(e,t=!1){if(e.flags|=8,t){e.next=ea,ea=e;return}e.next=Ql,Ql=e}function tp(){ub++}function np(){if(--ub>0)return;if(ea){let t=ea;for(ea=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ql;){let t=Ql;for(Ql=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function db(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hb(e){let t,n=e.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),rp(i),zk(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=t,e.depsTail=n}function Qd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(pb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function pb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===da)||(e.globalVersion=da,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qd(e))))return;e.flags|=2;const t=e.dep,n=Tt,i=$r;Tt=e,$r=!0;try{db(e);const s=e.fn(e._value);(t.version===0||Vn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=n,$r=i,hb(e),e.flags&=-3}}function rp(e,t=!1){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)rp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zk(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let $r=!0;const gb=[];function ki(){gb.push($r),$r=!1}function Ti(){const e=gb.pop();$r=e===void 0?!0:e}function tv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Tt;Tt=void 0;try{t()}finally{Tt=n}}}let da=0;class Dk{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Gu{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,this.__v_skip=!0}track(t){if(!Tt||!$r||Tt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Tt)n=this.activeLink=new Dk(Tt,this),Tt.deps?(n.prevDep=Tt.depsTail,Tt.depsTail.nextDep=n,Tt.depsTail=n):Tt.deps=Tt.depsTail=n,mb(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=Tt.depsTail,n.nextDep=void 0,Tt.depsTail.nextDep=n,Tt.depsTail=n,Tt.deps===n&&(Tt.deps=i)}return n}trigger(t){this.version++,da++,this.notify(t)}notify(t){tp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{np()}}}function mb(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)mb(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const uu=new WeakMap,Uo=Symbol(""),eh=Symbol(""),ha=Symbol("");function yn(e,t,n){if($r&&Tt){let i=uu.get(e);i||uu.set(e,i=new Map);let s=i.get(n);s||(i.set(n,s=new Gu),s.map=i,s.key=n),s.track()}}function wi(e,t,n,i,s,l){const u=uu.get(e);if(!u){da++;return}const f=h=>{h&&h.trigger()};if(tp(),t==="clear")u.forEach(f);else{const h=Fe(e),p=h&&ep(n);if(h&&n==="length"){const g=Number(i);u.forEach((v,y)=>{(y==="length"||y===ha||!Nr(y)&&y>=g)&&f(v)})}else switch((n!==void 0||u.has(void 0))&&f(u.get(n)),p&&f(u.get(ha)),t){case"add":h?p&&f(u.get("length")):(f(u.get(Uo)),Rs(e)&&f(u.get(eh)));break;case"delete":h||(f(u.get(Uo)),Rs(e)&&f(u.get(eh)));break;case"set":Rs(e)&&f(u.get(Uo));break}}np()}function Fk(e,t){const n=uu.get(e);return n&&n.get(t)}function Ts(e){const t=mt(e);return t===e?t:(yn(t,"iterate",ha),dr(e)?t:t.map(fn))}function Xu(e){return yn(e=mt(e),"iterate",ha),e}const Hk={__proto__:null,[Symbol.iterator](){return md(this,Symbol.iterator,fn)},concat(...e){return Ts(this).concat(...e.map(t=>Fe(t)?Ts(t):t))},entries(){return md(this,"entries",e=>(e[1]=fn(e[1]),e))},every(e,t){return hi(this,"every",e,t,void 0,arguments)},filter(e,t){return hi(this,"filter",e,t,n=>n.map(fn),arguments)},find(e,t){return hi(this,"find",e,t,fn,arguments)},findIndex(e,t){return hi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return hi(this,"findLast",e,t,fn,arguments)},findLastIndex(e,t){return hi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return hi(this,"forEach",e,t,void 0,arguments)},includes(...e){return vd(this,"includes",e)},indexOf(...e){return vd(this,"indexOf",e)},join(e){return Ts(this).join(e)},lastIndexOf(...e){return vd(this,"lastIndexOf",e)},map(e,t){return hi(this,"map",e,t,void 0,arguments)},pop(){return Hl(this,"pop")},push(...e){return Hl(this,"push",e)},reduce(e,...t){return nv(this,"reduce",e,t)},reduceRight(e,...t){return nv(this,"reduceRight",e,t)},shift(){return Hl(this,"shift")},some(e,t){return hi(this,"some",e,t,void 0,arguments)},splice(...e){return Hl(this,"splice",e)},toReversed(){return Ts(this).toReversed()},toSorted(e){return Ts(this).toSorted(e)},toSpliced(...e){return Ts(this).toSpliced(...e)},unshift(...e){return Hl(this,"unshift",e)},values(){return md(this,"values",fn)}};function md(e,t,n){const i=Xu(e),s=i[t]();return i!==e&&!dr(e)&&(s._next=s.next,s.next=()=>{const l=s._next();return l.value&&(l.value=n(l.value)),l}),s}const Bk=Array.prototype;function hi(e,t,n,i,s,l){const u=Xu(e),f=u!==e&&!dr(e),h=u[t];if(h!==Bk[t]){const v=h.apply(e,l);return f?fn(v):v}let p=n;u!==e&&(f?p=function(v,y){return n.call(this,fn(v),y,e)}:n.length>2&&(p=function(v,y){return n.call(this,v,y,e)}));const g=h.call(u,p,i);return f&&s?s(g):g}function nv(e,t,n,i){const s=Xu(e);let l=n;return s!==e&&(dr(e)?n.length>3&&(l=function(u,f,h){return n.call(this,u,f,h,e)}):l=function(u,f,h){return n.call(this,u,fn(f),h,e)}),s[t](l,...i)}function vd(e,t,n){const i=mt(e);yn(i,"iterate",ha);const s=i[t](...n);return(s===-1||s===!1)&&lp(n[0])?(n[0]=mt(n[0]),i[t](...n)):s}function Hl(e,t,n=[]){ki(),tp();const i=mt(e)[t].apply(e,n);return np(),Ti(),i}const Wk=Yh("__proto__,__v_isRef,__isVue"),vb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nr));function jk(e){Nr(e)||(e=String(e));const t=mt(this);return yn(t,"has",e),t.hasOwnProperty(e)}class yb{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return l;if(n==="__v_raw")return i===(s?l?Qk:Sb:l?xb:wb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const u=Fe(t);if(!s){let h;if(u&&(h=Hk[n]))return h;if(n==="hasOwnProperty")return jk}const f=Reflect.get(t,n,kt(t)?t:i);return(Nr(n)?vb.has(n):Wk(n))||(s||yn(t,"get",n),l)?f:kt(f)?u&&ep(n)?f:f.value:_t(f)?s?Da(f):rr(f):f}}class bb extends yb{constructor(t=!1){super(!1,t)}set(t,n,i,s){let l=t[n];if(!this._isShallow){const h=fo(l);if(!dr(i)&&!fo(i)&&(l=mt(l),i=mt(i)),!Fe(t)&&kt(l)&&!kt(i))return h?!1:(l.value=i,!0)}const u=Fe(t)&&ep(n)?Number(n)<t.length:wt(t,n),f=Reflect.set(t,n,i,kt(t)?t:s);return t===mt(s)&&(u?Vn(i,l)&&wi(t,"set",n,i):wi(t,"add",n,i)),f}deleteProperty(t,n){const i=wt(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&i&&wi(t,"delete",n,void 0),s}has(t,n){const i=Reflect.has(t,n);return(!Nr(n)||!vb.has(n))&&yn(t,"has",n),i}ownKeys(t){return yn(t,"iterate",Fe(t)?"length":Uo),Reflect.ownKeys(t)}}class qk extends yb{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Uk=new bb,Vk=new qk,Gk=new bb(!0);const th=e=>e,Mc=e=>Reflect.getPrototypeOf(e);function Xk(e,t,n){return function(...i){const s=this.__v_raw,l=mt(s),u=Rs(l),f=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,p=s[e](...i),g=n?th:t?fu:fn;return!t&&yn(l,"iterate",h?eh:Uo),{next(){const{value:v,done:y}=p.next();return y?{value:v,done:y}:{value:f?[g(v[0]),g(v[1])]:g(v),done:y}},[Symbol.iterator](){return this}}}}function Nc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Kk(e,t){const n={get(s){const l=this.__v_raw,u=mt(l),f=mt(s);e||(Vn(s,f)&&yn(u,"get",s),yn(u,"get",f));const{has:h}=Mc(u),p=t?th:e?fu:fn;if(h.call(u,s))return p(l.get(s));if(h.call(u,f))return p(l.get(f));l!==u&&l.get(s)},get size(){const s=this.__v_raw;return!e&&yn(mt(s),"iterate",Uo),Reflect.get(s,"size",s)},has(s){const l=this.__v_raw,u=mt(l),f=mt(s);return e||(Vn(s,f)&&yn(u,"has",s),yn(u,"has",f)),s===f?l.has(s):l.has(s)||l.has(f)},forEach(s,l){const u=this,f=u.__v_raw,h=mt(f),p=t?th:e?fu:fn;return!e&&yn(h,"iterate",Uo),f.forEach((g,v)=>s.call(l,p(g),p(v),u))}};return rn(n,e?{add:Nc("add"),set:Nc("set"),delete:Nc("delete"),clear:Nc("clear")}:{add(s){!t&&!dr(s)&&!fo(s)&&(s=mt(s));const l=mt(this);return Mc(l).has.call(l,s)||(l.add(s),wi(l,"add",s,s)),this},set(s,l){!t&&!dr(l)&&!fo(l)&&(l=mt(l));const u=mt(this),{has:f,get:h}=Mc(u);let p=f.call(u,s);p||(s=mt(s),p=f.call(u,s));const g=h.call(u,s);return u.set(s,l),p?Vn(l,g)&&wi(u,"set",s,l):wi(u,"add",s,l),this},delete(s){const l=mt(this),{has:u,get:f}=Mc(l);let h=u.call(l,s);h||(s=mt(s),h=u.call(l,s)),f&&f.call(l,s);const p=l.delete(s);return h&&wi(l,"delete",s,void 0),p},clear(){const s=mt(this),l=s.size!==0,u=s.clear();return l&&wi(s,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Xk(s,e,t)}),n}function ip(e,t){const n=Kk(e,t);return(i,s,l)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(wt(n,s)&&s in i?n:i,s,l)}const Jk={get:ip(!1,!1)},Yk={get:ip(!1,!0)},Zk={get:ip(!0,!1)};const wb=new WeakMap,xb=new WeakMap,Sb=new WeakMap,Qk=new WeakMap;function eT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tT(e){return e.__v_skip||!Object.isExtensible(e)?0:eT(kk(e))}function rr(e){return fo(e)?e:sp(e,!1,Uk,Jk,wb)}function op(e){return sp(e,!1,Gk,Yk,xb)}function Da(e){return sp(e,!0,Vk,Zk,Sb)}function sp(e,t,n,i,s){if(!_t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=tT(e);if(l===0)return e;const u=s.get(e);if(u)return u;const f=new Proxy(e,l===2?i:n);return s.set(e,f),f}function zs(e){return fo(e)?zs(e.__v_raw):!!(e&&e.__v_isReactive)}function fo(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function lp(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function ap(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&Yd(e,"__v_skip",!0),e}const fn=e=>_t(e)?rr(e):e,fu=e=>_t(e)?Da(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return _b(e,!1)}function nn(e){return _b(e,!0)}function _b(e,t){return kt(e)?e:new nT(e,t)}class nT{constructor(t,n){this.dep=new Gu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:mt(t),this._value=n?t:fn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||dr(t)||fo(t);t=i?t:mt(t),Vn(t,n)&&(this._rawValue=t,this._value=i?t:fn(t),this.dep.trigger())}}function j(e){return kt(e)?e.value:e}function Gt(e){return Ge(e)?e():j(e)}const rT={get:(e,t,n)=>t==="__v_raw"?e:j(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return kt(s)&&!kt(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function kb(e){return zs(e)?e:new Proxy(e,rT)}class iT{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gu,{get:i,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Tb(e){return new iT(e)}function oT(e){const t=Fe(e)?new Array(e.length):{};for(const n in e)t[n]=Cb(e,n);return t}class sT{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,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 Fk(mt(this._object),this._key)}}class lT{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 sl(e,t,n){return kt(e)?e:Ge(e)?new lT(e):_t(e)&&arguments.length>1?Cb(e,t,n):Ue(e)}function Cb(e,t,n){const i=e[t];return kt(i)?i:new sT(e,t,n)}class aT{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=da-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return fb(this,!0),!0}get value(){const t=this.dep.track();return pb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cT(e,t,n=!1){let i,s;return Ge(e)?i=e:(i=e.get,s=e.set),new aT(i,s,n)}const Ic={},du=new WeakMap;let Fo;function uT(e,t=!1,n=Fo){if(n){let i=du.get(n);i||du.set(n,i=[]),i.push(e)}}function fT(e,t,n=vt){const{immediate:i,deep:s,once:l,scheduler:u,augmentJob:f,call:h}=n,p=k=>s?k:dr(k)||s===!1||s===0?xi(k,1):xi(k);let g,v,y,w,L=!1,$=!1;if(kt(e)?(v=()=>e.value,L=dr(e)):zs(e)?(v=()=>p(e),L=!0):Fe(e)?($=!0,L=e.some(k=>zs(k)||dr(k)),v=()=>e.map(k=>{if(kt(k))return k.value;if(zs(k))return p(k);if(Ge(k))return h?h(k,2):k()})):Ge(e)?t?v=h?()=>h(e,2):e:v=()=>{if(y){ki();try{y()}finally{Ti()}}const k=Fo;Fo=g;try{return h?h(e,3,[w]):e(w)}finally{Fo=k}}:v=Yr,t&&s){const k=v,z=s===!0?1/0:s;v=()=>xi(k(),z)}const C=ab(),E=()=>{g.stop(),C&&C.active&&Qh(C.effects,g)};if(l&&t){const k=t;t=(...z)=>{k(...z),E()}}let N=$?new Array(e.length).fill(Ic):Ic;const O=k=>{if(!(!(g.flags&1)||!g.dirty&&!k))if(t){const z=g.run();if(s||L||($?z.some((D,oe)=>Vn(D,N[oe])):Vn(z,N))){y&&y();const D=Fo;Fo=g;try{const oe=[z,N===Ic?void 0:$&&N[0]===Ic?[]:N,w];N=z,h?h(t,3,oe):t(...oe)}finally{Fo=D}}}else g.run()};return f&&f(O),g=new cb(v),g.scheduler=u?()=>u(O,!1):O,w=k=>uT(k,!1,g),y=g.onStop=()=>{const k=du.get(g);if(k){if(h)h(k,4);else for(const z of k)z();du.delete(g)}},t?i?O(!0):N=g.run():u?u(O.bind(null,!0),!0):g.run(),E.pause=g.pause.bind(g),E.resume=g.resume.bind(g),E.stop=E,E}function xi(e,t=1/0,n){if(t<=0||!_t(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,kt(e))xi(e.value,t,n);else if(Fe(e))for(let i=0;i<e.length;i++)xi(e[i],t,n);else if(Wu(e)||Rs(e))e.forEach(i=>{xi(i,t,n)});else if(nb(e)){for(const i in e)xi(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&xi(e[i],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.18
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/function Da(e,t,n,i){try{return i?e(...i):e()}catch(s){Fa(s,t,n)}}function Ir(e,t,n,i){if(Ge(e)){const s=Da(e,t,n,i);return s&&eb(s)&&s.catch(l=>{Fa(l,t,n)}),s}if(Fe(e)){const s=[];for(let l=0;l<e.length;l++)s.push(Ir(e[l],t,n,i));return s}}function Fa(e,t,n,i=!0){const s=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||vt;if(t){let f=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;f;){const g=f.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}f=f.parent}if(l){ki(),Da(l,null,10,[e,h,p]),Ti();return}}hT(e,n,s,i,u)}function hT(e,t,n,i=!0,s=!1){if(s)throw e;console.error(e)}const In=[];let Gr=-1;const zs=[];let Ki=null,Cs=0;const Eb=Promise.resolve();let hu=null;function Et(e){const t=hu||Eb;return e?t.then(this?e.bind(this):e):t}function pT(e){let t=Gr+1,n=In.length;for(;t<n;){const i=t+n>>>1,s=In[i],l=ha(s);l<e||l===e&&s.flags&2?t=i+1:n=i}return t}function cp(e){if(!(e.flags&1)){const t=ha(e),n=In[In.length-1];!n||!(e.flags&2)&&t>=ha(n)?In.push(e):In.splice(pT(t),0,e),e.flags|=1,Ab()}}function Ab(){hu||(hu=Eb.then($b))}function nh(e){Fe(e)?zs.push(...e):Ki&&e.id===-1?Ki.splice(Cs+1,0,e):e.flags&1||(zs.push(e),e.flags|=1),Ab()}function rv(e,t,n=Gr+1){for(;n<In.length;n++){const i=In[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;In.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Lb(e){if(zs.length){const t=[...new Set(zs)].sort((n,i)=>ha(n)-ha(i));if(zs.length=0,Ki){Ki.push(...t);return}for(Ki=t,Cs=0;Cs<Ki.length;Cs++){const n=Ki[Cs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ki=null,Cs=0}}const ha=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $b(e){try{for(Gr=0;Gr<In.length;Gr++){const t=In[Gr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Da(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gr<In.length;Gr++){const t=In[Gr];t&&(t.flags&=-2)}Gr=-1,In.length=0,Lb(),hu=null,(In.length||zs.length)&&$b()}}let tn=null,Ku=null;function pu(e){const t=tn;return tn=e,Ku=e&&e.type.__scopeId||null,t}function Mb(e){Ku=e}function Nb(){Ku=null}const Ib=e=>it;function it(e,t=tn,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&vu(-1);const l=pu(t);let u;try{u=e(...s)}finally{pu(l),i._d&&vu(1)}return u};return i._n=!0,i._c=!0,i._d=!0,i}function ct(e,t){if(tn===null)return e;const n=rf(tn),i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,u,f,h=vt]=t[s];l&&(Ge(l)&&(l={mounted:l,updated:l}),l.deep&&xi(u),i.push({dir:l,instance:n,value:u,oldValue:void 0,arg:f,modifiers:h}))}return e}function No(e,t,n,i){const s=e.dirs,l=t&&t.dirs;for(let u=0;u<s.length;u++){const f=s[u];l&&(f.oldValue=l[u].value);let h=f.dir[i];h&&(ki(),Ir(h,n,8,[e.el,f,e,t]),Ti())}}const gT=Symbol("_vte"),Pb=e=>e.__isTeleport,Ji=Symbol("_leaveCb"),Pc=Symbol("_enterCb");function mT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return bo(()=>{e.isMounted=!0}),Ha(()=>{e.isUnmounting=!0}),e}const ar=[Function,Array],Ob={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},Rb=e=>{const t=e.subTree;return t.component?Rb(t.component):t},vT={name:"BaseTransition",props:Ob,setup(e,{slots:t}){const n=Ko(),i=mT();return()=>{const s=t.default&&Fb(t.default(),!0);if(!s||!s.length)return;const l=zb(s),u=mt(e),{mode:f}=u;if(i.isLeaving)return yd(l);const h=iv(l);if(!h)return yd(l);let p=rh(h,u,i,n,v=>p=v);h.type!==ln&&pa(h,p);let g=n.subTree&&iv(n.subTree);if(g&&g.type!==ln&&!Kr(h,g)&&Rb(n).type!==ln){let v=rh(g,u,i,n);if(pa(g,v),f==="out-in"&&h.type!==ln)return i.isLeaving=!0,v.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete v.afterLeave,g=void 0},yd(l);f==="in-out"&&h.type!==ln?v.delayLeave=(y,w,L)=>{const $=Db(i,g);$[String(g.key)]=g,y[Ji]=()=>{w(),y[Ji]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{L(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return l}}};function zb(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ln){t=n;break}}return t}const yT=vT;function Db(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function rh(e,t,n,i,s){const{appear:l,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:y,onLeave:w,onAfterLeave:L,onLeaveCancelled:$,onBeforeAppear:C,onAppear:E,onAfterAppear:N,onAppearCancelled:O}=t,k=String(e.key),z=Db(n,e),D=(W,q)=>{W&&Ir(W,i,9,q)},oe=(W,q)=>{const U=q[1];D(W,q),Fe(W)?W.every(A=>A.length<=1)&&U():W.length<=1&&U()},Q={mode:u,persisted:f,beforeEnter(W){let q=h;if(!n.isMounted)if(l)q=C||h;else return;W[Ji]&&W[Ji](!0);const U=z[k];U&&Kr(e,U)&&U.el[Ji]&&U.el[Ji](),D(q,[W])},enter(W){let q=p,U=g,A=v;if(!n.isMounted)if(l)q=E||p,U=N||g,A=O||v;else return;let I=!1;const P=W[Pc]=S=>{I||(I=!0,S?D(A,[W]):D(U,[W]),Q.delayedLeave&&Q.delayedLeave(),W[Pc]=void 0)};q?oe(q,[W,P]):P()},leave(W,q){const U=String(e.key);if(W[Pc]&&W[Pc](!0),n.isUnmounting)return q();D(y,[W]);let A=!1;const I=W[Ji]=P=>{A||(A=!0,q(),P?D($,[W]):D(L,[W]),W[Ji]=void 0,z[U]===e&&delete z[U])};z[U]=e,w?oe(w,[W,I]):I()},clone(W){const q=rh(W,t,n,i,s);return s&&s(q),q}};return Q}function yd(e){if(Ju(e))return e=fo(e),e.children=null,e}function iv(e){if(!Ju(e))return Pb(e.type)&&e.children?zb(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ge(n.default))return n.default()}}function pa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,pa(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 Fb(e,t=!1,n){let i=[],s=0;for(let l=0;l<e.length;l++){let u=e[l];const f=n==null?u.key:String(n)+String(u.key!=null?u.key:l);u.type===nt?(u.patchFlag&128&&s++,i=i.concat(Fb(u.children,t,f))):(t||u.type!==ln)&&i.push(f!=null?fo(u,{key:f}):u)}if(s>1)for(let l=0;l<i.length;l++)i[l].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function at(e,t){return Ge(e)?on({name:e.name},t,{setup:e}):e}function Hb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ea(e,t,n,i,s=!1){if(Fe(e)){e.forEach((L,$)=>ea(L,t&&(Fe(t)?t[$]:t),n,i,s));return}if(Ds(i)&&!s){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ea(e,t,n,i.component.subTree);return}const l=i.shapeFlag&4?rf(i.component):i.el,u=s?null:l,{i:f,r:h}=e,p=t&&t.r,g=f.refs===vt?f.refs={}:f.refs,v=f.setupState,y=mt(v),w=v===vt?()=>!1:L=>wt(y,L);if(p!=null&&p!==h&&(Dt(p)?(g[p]=null,w(p)&&(v[p]=null)):kt(p)&&(p.value=null)),Ge(h))Da(h,f,12,[u,g]);else{const L=Dt(h),$=kt(h);if(L||$){const C=()=>{if(e.f){const E=L?w(h)?v[h]:g[h]:h.value;s?Fe(E)&&Qh(E,l):Fe(E)?E.includes(l)||E.push(l):L?(g[h]=[l],w(h)&&(v[h]=g[h])):(h.value=[l],e.k&&(g[e.k]=h.value))}else L?(g[h]=u,w(h)&&(v[h]=u)):$&&(h.value=u,e.k&&(g[e.k]=u))};u?(C.id=-1,Qn(C,n)):C()}}}Uu().requestIdleCallback;Uu().cancelIdleCallback;const Ds=e=>!!e.type.__asyncLoader,Ju=e=>e.type.__isKeepAlive;function bT(e,t){Bb(e,"a",t)}function wT(e,t){Bb(e,"da",t)}function Bb(e,t,n=an){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yu(t,i,n),n){let s=n.parent;for(;s&&s.parent;)Ju(s.parent.vnode)&&xT(i,t,n,s),s=s.parent}}function xT(e,t,n,i){const s=Yu(t,e,i,!0);Zu(()=>{Qh(i[t],s)},n)}function Yu(e,t,n=an,i=!1){if(n){const s=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...u)=>{ki();const f=Ba(n),h=Ir(t,n,e,u);return f(),Ti(),h});return i?s.unshift(l):s.push(l),l}}const Li=e=>(t,n=an)=>{(!va||e==="sp")&&Yu(e,(...i)=>t(...i),n)},ST=Li("bm"),bo=Li("m"),_T=Li("bu"),kT=Li("u"),Ha=Li("bum"),Zu=Li("um"),TT=Li("sp"),CT=Li("rtg"),ET=Li("rtc");function AT(e,t=an){Yu("ec",e,t)}const up="components",LT="directives";function Go(e,t){return fp(up,e,!0,t)||e}const Wb=Symbol.for("v-ndc");function ih(e){return Dt(e)?fp(up,e,!1)||e:e||Wb}function Dr(e){return fp(LT,e)}function fp(e,t,n=!0,i=!1){const s=tn||an;if(s){const l=s.type;if(e===up){const f=xC(l,!1);if(f&&(f===t||f===ir(t)||f===qu(ir(t))))return l}const u=ov(s[e]||l[e],t)||ov(s.appContext[e],t);return!u&&i?l:u}}function ov(e,t){return e&&(e[t]||e[ir(t)]||e[qu(ir(t))])}function hr(e,t,n,i){let s;const l=n,u=Fe(e);if(u||Dt(e)){const f=u&&Rs(e);let h=!1,p=!1;f&&(h=!dr(e),p=uo(e),e=Xu(e)),s=new Array(e.length);for(let g=0,v=e.length;g<v;g++)s[g]=t(h?p?fu(hn(e[g])):hn(e[g]):e[g],g,void 0,l)}else if(typeof e=="number"){s=new Array(e);for(let f=0;f<e;f++)s[f]=t(f+1,f,void 0,l)}else if(_t(e))if(e[Symbol.iterator])s=Array.from(e,(f,h)=>t(f,h,void 0,l));else{const f=Object.keys(e);s=new Array(f.length);for(let h=0,p=f.length;h<p;h++){const g=f[h];s[h]=t(e[g],g,h,l)}}else s=[];return s}function $T(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(Fe(i))for(let s=0;s<i.length;s++)e[i[s].name]=i[s].fn;else i&&(e[i.name]=i.key?(...s)=>{const l=i.fn(...s);return l&&(l.key=i.key),l}:i.fn)}return e}function xn(e,t,n={},i,s){if(tn.ce||tn.parent&&Ds(tn.parent)&&tn.parent.ce)return t!=="default"&&(n.name=t),se(),Ye(nt,null,[Ie("slot",n,i&&i())],64);let l=e[t];l&&l._c&&(l._d=!1),se();const u=l&&jb(l(n)),f=n.key||u&&u.key,h=Ye(nt,{key:(f&&!Nr(f)?f:`_${t}`)+(!u&&i?"_fb":"")},u||(i?i():[]),u&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),l&&l._c&&(l._d=!0),h}function jb(e){return e.some(t=>Js(t)?!(t.type===ln||t.type===nt&&!jb(t.children)):!0)?e:null}function MT(e,t){const n={};for(const i in e)n[Kc(i)]=e[i];return n}const oh=e=>e?pw(e)?rf(e):oh(e.parent):null,ta=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=>oh(e.parent),$root:e=>oh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vb(e),$forceUpdate:e=>e.f||(e.f=()=>{cp(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>tC.bind(e)}),bd=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),NT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:l,accessCache:u,type:f,appContext:h}=e;let p;if(t[0]!=="$"){const w=u[t];if(w!==void 0)switch(w){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return l[t]}else{if(bd(i,t))return u[t]=1,i[t];if(s!==vt&&wt(s,t))return u[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return u[t]=3,l[t];if(n!==vt&&wt(n,t))return u[t]=4,n[t];sh&&(u[t]=0)}}const g=ta[t];let v,y;if(g)return t==="$attrs"&&bn(e.attrs,"get",""),g(e);if((v=f.__cssModules)&&(v=v[t]))return v;if(n!==vt&&wt(n,t))return u[t]=4,n[t];if(y=h.config.globalProperties,wt(y,t))return y[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:l}=e;return bd(s,t)?(s[t]=n,!0):i!==vt&&wt(i,t)?(i[t]=n,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:l}},u){let f;return!!n[u]||e!==vt&&wt(e,u)||bd(t,u)||(f=l[0])&&wt(f,u)||wt(i,u)||wt(ta,u)||wt(s.config.globalProperties,u)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function IT(){return qb().slots}function PT(){return qb().attrs}function qb(){const e=Ko();return e.setupContext||(e.setupContext=mw(e))}function gu(e){return Fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ga(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):on({},gu(e),gu(t))}let sh=!0;function OT(e){const t=Vb(e),n=e.proxy,i=e.ctx;sh=!1,t.beforeCreate&&sv(t.beforeCreate,e,"bc");const{data:s,computed:l,methods:u,watch:f,provide:h,inject:p,created:g,beforeMount:v,mounted:y,beforeUpdate:w,updated:L,activated:$,deactivated:C,beforeDestroy:E,beforeUnmount:N,destroyed:O,unmounted:k,render:z,renderTracked:D,renderTriggered:oe,errorCaptured:Q,serverPrefetch:W,expose:q,inheritAttrs:U,components:A,directives:I,filters:P}=t;if(p&&RT(p,i,null),u)for(const B in u){const ie=u[B];Ge(ie)&&(i[B]=ie.bind(n))}if(s){const B=s.call(n,n);_t(B)&&(e.data=rr(B))}if(sh=!0,l)for(const B in l){const ie=l[B],ue=Ge(ie)?ie.bind(n,n):Ge(ie.get)?ie.get.bind(n,n):Yr,we=!Ge(ie)&&Ge(ie.set)?ie.set.bind(n):Yr,Pe=_e({get:ue,set:we});Object.defineProperty(i,B,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:qe=>Pe.value=qe})}if(f)for(const B in f)Ub(f[B],i,n,B);if(h){const B=Ge(h)?h.call(n):h;Reflect.ownKeys(B).forEach(ie=>{Er(ie,B[ie])})}g&&sv(g,e,"c");function R(B,ie){Fe(ie)?ie.forEach(ue=>B(ue.bind(n))):ie&&B(ie.bind(n))}if(R(ST,v),R(bo,y),R(_T,w),R(kT,L),R(bT,$),R(wT,C),R(AT,Q),R(ET,D),R(CT,oe),R(Ha,N),R(Zu,k),R(TT,W),Fe(q))if(q.length){const B=e.exposed||(e.exposed={});q.forEach(ie=>{Object.defineProperty(B,ie,{get:()=>n[ie],set:ue=>n[ie]=ue})})}else e.exposed||(e.exposed={});z&&e.render===Yr&&(e.render=z),U!=null&&(e.inheritAttrs=U),A&&(e.components=A),I&&(e.directives=I),W&&Hb(e)}function RT(e,t,n=Yr){Fe(e)&&(e=lh(e));for(const i in e){const s=e[i];let l;_t(s)?"default"in s?l=wn(s.from||i,s.default,!0):l=wn(s.from||i):l=wn(s),kt(l)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[i]=l}}function sv(e,t,n){Ir(Fe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ub(e,t,n,i){let s=i.includes(".")?ow(n,i):()=>n[i];if(Dt(e)){const l=t[e];Ge(l)&&St(s,l)}else if(Ge(e))St(s,e.bind(n));else if(_t(e))if(Fe(e))e.forEach(l=>Ub(l,t,n,i));else{const l=Ge(e.handler)?e.handler.bind(n):t[e.handler];Ge(l)&&St(s,l,e)}}function Vb(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,f=l.get(t);let h;return f?h=f:!s.length&&!n&&!i?h=t:(h={},s.length&&s.forEach(p=>mu(h,p,u,!0)),mu(h,t,u)),_t(t)&&l.set(t,h),h}function mu(e,t,n,i=!1){const{mixins:s,extends:l}=t;l&&mu(e,l,n,!0),s&&s.forEach(u=>mu(e,u,n,!0));for(const u in t)if(!(i&&u==="expose")){const f=zT[u]||n&&n[u];e[u]=f?f(e[u],t[u]):t[u]}return e}const zT={data:lv,props:av,emits:av,methods:Gl,computed:Gl,beforeCreate:$n,created:$n,beforeMount:$n,mounted:$n,beforeUpdate:$n,updated:$n,beforeDestroy:$n,beforeUnmount:$n,destroyed:$n,unmounted:$n,activated:$n,deactivated:$n,errorCaptured:$n,serverPrefetch:$n,components:Gl,directives:Gl,watch:FT,provide:lv,inject:DT};function lv(e,t){return t?e?function(){return on(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function DT(e,t){return Gl(lh(e),lh(t))}function lh(e){if(Fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function $n(e,t){return e?[...new Set([].concat(e,t))]:t}function Gl(e,t){return e?on(Object.create(null),e,t):t}function av(e,t){return e?Fe(e)&&Fe(t)?[...new Set([...e,...t])]:on(Object.create(null),gu(e),gu(t??{})):t}function FT(e,t){if(!e)return t;if(!t)return e;const n=on(Object.create(null),e);for(const i in t)n[i]=$n(e[i],t[i]);return n}function Gb(){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 HT=0;function BT(e,t){return function(i,s=null){Ge(i)||(i=on({},i)),s!=null&&!_t(s)&&(s=null);const l=Gb(),u=new WeakSet,f=[];let h=!1;const p=l.app={_uid:HT++,_component:i,_props:s,_container:null,_context:l,_instance:null,version:_C,get config(){return l.config},set config(g){},use(g,...v){return u.has(g)||(g&&Ge(g.install)?(u.add(g),g.install(p,...v)):Ge(g)&&(u.add(g),g(p,...v))),p},mixin(g){return l.mixins.includes(g)||l.mixins.push(g),p},component(g,v){return v?(l.components[g]=v,p):l.components[g]},directive(g,v){return v?(l.directives[g]=v,p):l.directives[g]},mount(g,v,y){if(!h){const w=p._ceVNode||Ie(i,s);return w.appContext=l,y===!0?y="svg":y===!1&&(y=void 0),e(w,g,y),h=!0,p._container=g,g.__vue_app__=p,rf(w.component)}},onUnmount(g){f.push(g)},unmount(){h&&(Ir(f,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return l.provides[g]=v,p},runWithContext(g){const v=qo;qo=p;try{return g()}finally{qo=v}}};return p}}let qo=null;function Er(e,t){if(an){let n=an.provides;const i=an.parent&&an.parent.provides;i===n&&(n=an.provides=Object.create(i)),n[e]=t}}function wn(e,t,n=!1){const i=an||tn;if(i||qo){let s=qo?qo._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Ge(t)?t.call(i&&i.proxy):t}}function Xb(){return!!(an||tn||qo)}const Kb={},Jb=()=>Object.create(Kb),Yb=e=>Object.getPrototypeOf(e)===Kb;function WT(e,t,n,i=!1){const s={},l=Jb();e.propsDefaults=Object.create(null),Zb(e,t,s,l);for(const u in e.propsOptions[0])u in s||(s[u]=void 0);n?e.props=i?s:op(s):e.type.props?e.props=s:e.props=l,e.attrs=l}function jT(e,t,n,i){const{props:s,attrs:l,vnode:{patchFlag:u}}=e,f=mt(s),[h]=e.propsOptions;let p=!1;if((i||u>0)&&!(u&16)){if(u&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let y=g[v];if(tf(e.emitsOptions,y))continue;const w=t[y];if(h)if(wt(l,y))w!==l[y]&&(l[y]=w,p=!0);else{const L=ir(y);s[L]=ah(h,f,L,w,e,!1)}else w!==l[y]&&(l[y]=w,p=!0)}}}else{Zb(e,t,s,l)&&(p=!0);let g;for(const v in f)(!t||!wt(t,v)&&((g=Ai(v))===v||!wt(t,g)))&&(h?n&&(n[v]!==void 0||n[g]!==void 0)&&(s[v]=ah(h,f,v,void 0,e,!0)):delete s[v]);if(l!==f)for(const v in l)(!t||!wt(t,v))&&(delete l[v],p=!0)}p&&wi(e.attrs,"set","")}function Zb(e,t,n,i){const[s,l]=e.propsOptions;let u=!1,f;if(t)for(let h in t){if(Yl(h))continue;const p=t[h];let g;s&&wt(s,g=ir(h))?!l||!l.includes(g)?n[g]=p:(f||(f={}))[g]=p:tf(e.emitsOptions,h)||(!(h in i)||p!==i[h])&&(i[h]=p,u=!0)}if(l){const h=mt(n),p=f||vt;for(let g=0;g<l.length;g++){const v=l[g];n[v]=ah(s,h,v,p[v],e,!wt(p,v))}}return u}function ah(e,t,n,i,s,l){const u=e[n];if(u!=null){const f=wt(u,"default");if(f&&i===void 0){const h=u.default;if(u.type!==Function&&!u.skipFactory&&Ge(h)){const{propsDefaults:p}=s;if(n in p)i=p[n];else{const g=Ba(s);i=p[n]=h.call(null,t),g()}}else i=h;s.ce&&s.ce._setProp(n,i)}u[0]&&(l&&!f?i=!1:u[1]&&(i===""||i===Ai(n))&&(i=!0))}return i}const qT=new WeakMap;function Qb(e,t,n=!1){const i=n?qT:t.propsCache,s=i.get(e);if(s)return s;const l=e.props,u={},f=[];let h=!1;if(!Ge(e)){const g=v=>{h=!0;const[y,w]=Qb(v,t,!0);on(u,y),w&&f.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!l&&!h)return _t(e)&&i.set(e,Ps),Ps;if(Fe(l))for(let g=0;g<l.length;g++){const v=ir(l[g]);cv(v)&&(u[v]=vt)}else if(l)for(const g in l){const v=ir(g);if(cv(v)){const y=l[g],w=u[v]=Fe(y)||Ge(y)?{type:y}:on({},y),L=w.type;let $=!1,C=!0;if(Fe(L))for(let E=0;E<L.length;++E){const N=L[E],O=Ge(N)&&N.name;if(O==="Boolean"){$=!0;break}else O==="String"&&(C=!1)}else $=Ge(L)&&L.name==="Boolean";w[0]=$,w[1]=C,($||wt(w,"default"))&&f.push(v)}}const p=[u,f];return _t(e)&&i.set(e,p),p}function cv(e){return e[0]!=="$"&&!Yl(e)}const dp=e=>e[0]==="_"||e==="$stable",hp=e=>Fe(e)?e.map(Ar):[Ar(e)],UT=(e,t,n)=>{if(t._n)return t;const i=it((...s)=>hp(t(...s)),n);return i._c=!1,i},ew=(e,t,n)=>{const i=e._ctx;for(const s in e){if(dp(s))continue;const l=e[s];if(Ge(l))t[s]=UT(s,l,i);else if(l!=null){const u=hp(l);t[s]=()=>u}}},tw=(e,t)=>{const n=hp(t);e.slots.default=()=>n},nw=(e,t,n)=>{for(const i in t)(n||!dp(i))&&(e[i]=t[i])},VT=(e,t,n)=>{const i=e.slots=Jb();if(e.vnode.shapeFlag&32){const s=t.__;s&&Yd(i,"__",s,!0);const l=t._;l?(nw(i,t,n),n&&Yd(i,"_",l,!0)):ew(t,i)}else t&&tw(e,t)},GT=(e,t,n)=>{const{vnode:i,slots:s}=e;let l=!0,u=vt;if(i.shapeFlag&32){const f=t._;f?n&&f===1?l=!1:nw(s,t,n):(l=!t.$stable,ew(t,s)),u=t}else t&&(tw(e,t),u={default:1});if(l)for(const f in s)!dp(f)&&u[f]==null&&delete s[f]},Qn=dC;function XT(e){return KT(e)}function KT(e,t){const n=Uu();n.__VUE__=!0;const{insert:i,remove:s,patchProp:l,createElement:u,createText:f,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:y,setScopeId:w=Yr,insertStaticContent:L}=e,$=(F,G,Y,fe=null,pe=null,he=null,Ce=void 0,Ee=null,ve=!!G.dynamicChildren)=>{if(F===G)return;F&&!Kr(F,G)&&(fe=V(F),qe(F,pe,he,!0),F=null),G.patchFlag===-2&&(ve=!1,G.dynamicChildren=null);const{type:be,ref:He,shapeFlag:Me}=G;switch(be){case nf:C(F,G,Y,fe);break;case ln:E(F,G,Y,fe);break;case xd:F==null&&N(G,Y,fe,Ce);break;case nt:A(F,G,Y,fe,pe,he,Ce,Ee,ve);break;default:Me&1?z(F,G,Y,fe,pe,he,Ce,Ee,ve):Me&6?I(F,G,Y,fe,pe,he,Ce,Ee,ve):(Me&64||Me&128)&&be.process(F,G,Y,fe,pe,he,Ce,Ee,ve,ae)}He!=null&&pe?ea(He,F&&F.ref,he,G||F,!G):He==null&&F&&F.ref!=null&&ea(F.ref,null,he,F,!0)},C=(F,G,Y,fe)=>{if(F==null)i(G.el=f(G.children),Y,fe);else{const pe=G.el=F.el;G.children!==F.children&&p(pe,G.children)}},E=(F,G,Y,fe)=>{F==null?i(G.el=h(G.children||""),Y,fe):G.el=F.el},N=(F,G,Y,fe)=>{[F.el,F.anchor]=L(F.children,G,Y,fe,F.el,F.anchor)},O=({el:F,anchor:G},Y,fe)=>{let pe;for(;F&&F!==G;)pe=y(F),i(F,Y,fe),F=pe;i(G,Y,fe)},k=({el:F,anchor:G})=>{let Y;for(;F&&F!==G;)Y=y(F),s(F),F=Y;s(G)},z=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{G.type==="svg"?Ce="svg":G.type==="math"&&(Ce="mathml"),F==null?D(G,Y,fe,pe,he,Ce,Ee,ve):W(F,G,pe,he,Ce,Ee,ve)},D=(F,G,Y,fe,pe,he,Ce,Ee)=>{let ve,be;const{props:He,shapeFlag:Me,transition:De,dirs:Ve}=F;if(ve=F.el=u(F.type,he,He&&He.is,He),Me&8?g(ve,F.children):Me&16&&Q(F.children,ve,null,fe,pe,wd(F,he),Ce,Ee),Ve&&No(F,null,fe,"created"),oe(ve,F,F.scopeId,Ce,fe),He){for(const st in He)st!=="value"&&!Yl(st)&&l(ve,st,null,He[st],he,fe);"value"in He&&l(ve,"value",null,He.value,he),(be=He.onVnodeBeforeMount)&&Vr(be,fe,F)}Ve&&No(F,null,fe,"beforeMount");const rt=JT(pe,De);rt&&De.beforeEnter(ve),i(ve,G,Y),((be=He&&He.onVnodeMounted)||rt||Ve)&&Qn(()=>{be&&Vr(be,fe,F),rt&&De.enter(ve),Ve&&No(F,null,fe,"mounted")},pe)},oe=(F,G,Y,fe,pe)=>{if(Y&&w(F,Y),fe)for(let he=0;he<fe.length;he++)w(F,fe[he]);if(pe){let he=pe.subTree;if(G===he||aw(he.type)&&(he.ssContent===G||he.ssFallback===G)){const Ce=pe.vnode;oe(F,Ce,Ce.scopeId,Ce.slotScopeIds,pe.parent)}}},Q=(F,G,Y,fe,pe,he,Ce,Ee,ve=0)=>{for(let be=ve;be<F.length;be++){const He=F[be]=Ee?Yi(F[be]):Ar(F[be]);$(null,He,G,Y,fe,pe,he,Ce,Ee)}},W=(F,G,Y,fe,pe,he,Ce)=>{const Ee=G.el=F.el;let{patchFlag:ve,dynamicChildren:be,dirs:He}=G;ve|=F.patchFlag&16;const Me=F.props||vt,De=G.props||vt;let Ve;if(Y&&Io(Y,!1),(Ve=De.onVnodeBeforeUpdate)&&Vr(Ve,Y,G,F),He&&No(G,F,Y,"beforeUpdate"),Y&&Io(Y,!0),(Me.innerHTML&&De.innerHTML==null||Me.textContent&&De.textContent==null)&&g(Ee,""),be?q(F.dynamicChildren,be,Ee,Y,fe,wd(G,pe),he):Ce||ie(F,G,Ee,null,Y,fe,wd(G,pe),he,!1),ve>0){if(ve&16)U(Ee,Me,De,Y,pe);else if(ve&2&&Me.class!==De.class&&l(Ee,"class",null,De.class,pe),ve&4&&l(Ee,"style",Me.style,De.style,pe),ve&8){const rt=G.dynamicProps;for(let st=0;st<rt.length;st++){const ut=rt[st],$t=Me[ut],lt=De[ut];(lt!==$t||ut==="value")&&l(Ee,ut,$t,lt,pe,Y)}}ve&1&&F.children!==G.children&&g(Ee,G.children)}else!Ce&&be==null&&U(Ee,Me,De,Y,pe);((Ve=De.onVnodeUpdated)||He)&&Qn(()=>{Ve&&Vr(Ve,Y,G,F),He&&No(G,F,Y,"updated")},fe)},q=(F,G,Y,fe,pe,he,Ce)=>{for(let Ee=0;Ee<G.length;Ee++){const ve=F[Ee],be=G[Ee],He=ve.el&&(ve.type===nt||!Kr(ve,be)||ve.shapeFlag&198)?v(ve.el):Y;$(ve,be,He,null,fe,pe,he,Ce,!0)}},U=(F,G,Y,fe,pe)=>{if(G!==Y){if(G!==vt)for(const he in G)!Yl(he)&&!(he in Y)&&l(F,he,G[he],null,pe,fe);for(const he in Y){if(Yl(he))continue;const Ce=Y[he],Ee=G[he];Ce!==Ee&&he!=="value"&&l(F,he,Ee,Ce,pe,fe)}"value"in Y&&l(F,"value",G.value,Y.value,pe)}},A=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{const be=G.el=F?F.el:f(""),He=G.anchor=F?F.anchor:f("");let{patchFlag:Me,dynamicChildren:De,slotScopeIds:Ve}=G;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),F==null?(i(be,Y,fe),i(He,Y,fe),Q(G.children||[],Y,He,pe,he,Ce,Ee,ve)):Me>0&&Me&64&&De&&F.dynamicChildren?(q(F.dynamicChildren,De,Y,pe,he,Ce,Ee),(G.key!=null||pe&&G===pe.subTree)&&rw(F,G,!0)):ie(F,G,Y,He,pe,he,Ce,Ee,ve)},I=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{G.slotScopeIds=Ee,F==null?G.shapeFlag&512?pe.ctx.activate(G,Y,fe,Ce,ve):P(G,Y,fe,pe,he,Ce,ve):S(F,G,ve)},P=(F,G,Y,fe,pe,he,Ce)=>{const Ee=F.component=vC(F,fe,pe);if(Ju(F)&&(Ee.ctx.renderer=ae),yC(Ee,!1,Ce),Ee.asyncDep){if(pe&&pe.registerDep(Ee,R,Ce),!F.el){const ve=Ee.subTree=Ie(ln);E(null,ve,G,Y)}}else R(Ee,F,G,Y,pe,he,Ce)},S=(F,G,Y)=>{const fe=G.component=F.component;if(sC(F,G,Y))if(fe.asyncDep&&!fe.asyncResolved){B(fe,G,Y);return}else fe.next=G,fe.update();else G.el=F.el,fe.vnode=G},R=(F,G,Y,fe,pe,he,Ce)=>{const Ee=()=>{if(F.isMounted){let{next:Me,bu:De,u:Ve,parent:rt,vnode:st}=F;{const Bt=iw(F);if(Bt){Me&&(Me.el=st.el,B(F,Me,Ce)),Bt.asyncDep.then(()=>{F.isUnmounted||Ee()});return}}let ut=Me,$t;Io(F,!1),Me?(Me.el=st.el,B(F,Me,Ce)):Me=st,De&&Jc(De),($t=Me.props&&Me.props.onVnodeBeforeUpdate)&&Vr($t,rt,Me,st),Io(F,!0);const lt=fv(F),Xt=F.subTree;F.subTree=lt,$(Xt,lt,v(Xt.el),V(Xt),F,pe,he),Me.el=lt.el,ut===null&&gp(F,lt.el),Ve&&Qn(Ve,pe),($t=Me.props&&Me.props.onVnodeUpdated)&&Qn(()=>Vr($t,rt,Me,st),pe)}else{let Me;const{el:De,props:Ve}=G,{bm:rt,m:st,parent:ut,root:$t,type:lt}=F,Xt=Ds(G);Io(F,!1),rt&&Jc(rt),!Xt&&(Me=Ve&&Ve.onVnodeBeforeMount)&&Vr(Me,ut,G),Io(F,!0);{$t.ce&&$t.ce._def.shadowRoot!==!1&&$t.ce._injectChildStyle(lt);const Bt=F.subTree=fv(F);$(null,Bt,Y,fe,F,pe,he),G.el=Bt.el}if(st&&Qn(st,pe),!Xt&&(Me=Ve&&Ve.onVnodeMounted)){const Bt=G;Qn(()=>Vr(Me,ut,Bt),pe)}(G.shapeFlag&256||ut&&Ds(ut.vnode)&&ut.vnode.shapeFlag&256)&&F.a&&Qn(F.a,pe),F.isMounted=!0,G=Y=fe=null}};F.scope.on();const ve=F.effect=new cb(Ee);F.scope.off();const be=F.update=ve.run.bind(ve),He=F.job=ve.runIfDirty.bind(ve);He.i=F,He.id=F.uid,ve.scheduler=()=>cp(He),Io(F,!0),be()},B=(F,G,Y)=>{G.component=F;const fe=F.vnode.props;F.vnode=G,F.next=null,jT(F,G.props,fe,Y),GT(F,G.children,Y),ki(),rv(F),Ti()},ie=(F,G,Y,fe,pe,he,Ce,Ee,ve=!1)=>{const be=F&&F.children,He=F?F.shapeFlag:0,Me=G.children,{patchFlag:De,shapeFlag:Ve}=G;if(De>0){if(De&128){we(be,Me,Y,fe,pe,he,Ce,Ee,ve);return}else if(De&256){ue(be,Me,Y,fe,pe,he,Ce,Ee,ve);return}}Ve&8?(He&16&&re(be,pe,he),Me!==be&&g(Y,Me)):He&16?Ve&16?we(be,Me,Y,fe,pe,he,Ce,Ee,ve):re(be,pe,he,!0):(He&8&&g(Y,""),Ve&16&&Q(Me,Y,fe,pe,he,Ce,Ee,ve))},ue=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{F=F||Ps,G=G||Ps;const be=F.length,He=G.length,Me=Math.min(be,He);let De;for(De=0;De<Me;De++){const Ve=G[De]=ve?Yi(G[De]):Ar(G[De]);$(F[De],Ve,Y,null,pe,he,Ce,Ee,ve)}be>He?re(F,pe,he,!0,!1,Me):Q(G,Y,fe,pe,he,Ce,Ee,ve,Me)},we=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{let be=0;const He=G.length;let Me=F.length-1,De=He-1;for(;be<=Me&&be<=De;){const Ve=F[be],rt=G[be]=ve?Yi(G[be]):Ar(G[be]);if(Kr(Ve,rt))$(Ve,rt,Y,null,pe,he,Ce,Ee,ve);else break;be++}for(;be<=Me&&be<=De;){const Ve=F[Me],rt=G[De]=ve?Yi(G[De]):Ar(G[De]);if(Kr(Ve,rt))$(Ve,rt,Y,null,pe,he,Ce,Ee,ve);else break;Me--,De--}if(be>Me){if(be<=De){const Ve=De+1,rt=Ve<He?G[Ve].el:fe;for(;be<=De;)$(null,G[be]=ve?Yi(G[be]):Ar(G[be]),Y,rt,pe,he,Ce,Ee,ve),be++}}else if(be>De)for(;be<=Me;)qe(F[be],pe,he,!0),be++;else{const Ve=be,rt=be,st=new Map;for(be=rt;be<=De;be++){const Ft=G[be]=ve?Yi(G[be]):Ar(G[be]);Ft.key!=null&&st.set(Ft.key,be)}let ut,$t=0;const lt=De-rt+1;let Xt=!1,Bt=0;const Dn=new Array(lt);for(be=0;be<lt;be++)Dn[be]=0;for(be=Ve;be<=Me;be++){const Ft=F[be];if($t>=lt){qe(Ft,pe,he,!0);continue}let Fn;if(Ft.key!=null)Fn=st.get(Ft.key);else for(ut=rt;ut<=De;ut++)if(Dn[ut-rt]===0&&Kr(Ft,G[ut])){Fn=ut;break}Fn===void 0?qe(Ft,pe,he,!0):(Dn[Fn-rt]=be+1,Fn>=Bt?Bt=Fn:Xt=!0,$(Ft,G[Fn],Y,null,pe,he,Ce,Ee,ve),$t++)}const Hr=Xt?YT(Dn):Ps;for(ut=Hr.length-1,be=lt-1;be>=0;be--){const Ft=rt+be,Fn=G[Ft],tt=Ft+1<He?G[Ft+1].el:fe;Dn[be]===0?$(null,Fn,Y,tt,pe,he,Ce,Ee,ve):Xt&&(ut<0||be!==Hr[ut]?Pe(Fn,Y,tt,2):ut--)}}},Pe=(F,G,Y,fe,pe=null)=>{const{el:he,type:Ce,transition:Ee,children:ve,shapeFlag:be}=F;if(be&6){Pe(F.component.subTree,G,Y,fe);return}if(be&128){F.suspense.move(G,Y,fe);return}if(be&64){Ce.move(F,G,Y,ae);return}if(Ce===nt){i(he,G,Y);for(let Me=0;Me<ve.length;Me++)Pe(ve[Me],G,Y,fe);i(F.anchor,G,Y);return}if(Ce===xd){O(F,G,Y);return}if(fe!==2&&be&1&&Ee)if(fe===0)Ee.beforeEnter(he),i(he,G,Y),Qn(()=>Ee.enter(he),pe);else{const{leave:Me,delayLeave:De,afterLeave:Ve}=Ee,rt=()=>{F.ctx.isUnmounted?s(he):i(he,G,Y)},st=()=>{Me(he,()=>{rt(),Ve&&Ve()})};De?De(he,rt,st):st()}else i(he,G,Y)},qe=(F,G,Y,fe=!1,pe=!1)=>{const{type:he,props:Ce,ref:Ee,children:ve,dynamicChildren:be,shapeFlag:He,patchFlag:Me,dirs:De,cacheIndex:Ve}=F;if(Me===-2&&(pe=!1),Ee!=null&&(ki(),ea(Ee,null,Y,F,!0),Ti()),Ve!=null&&(G.renderCache[Ve]=void 0),He&256){G.ctx.deactivate(F);return}const rt=He&1&&De,st=!Ds(F);let ut;if(st&&(ut=Ce&&Ce.onVnodeBeforeUnmount)&&Vr(ut,G,F),He&6)Je(F.component,Y,fe);else{if(He&128){F.suspense.unmount(Y,fe);return}rt&&No(F,null,G,"beforeUnmount"),He&64?F.type.remove(F,G,Y,ae,fe):be&&!be.hasOnce&&(he!==nt||Me>0&&Me&64)?re(be,G,Y,!1,!0):(he===nt&&Me&384||!pe&&He&16)&&re(ve,G,Y),fe&&Ze(F)}(st&&(ut=Ce&&Ce.onVnodeUnmounted)||rt)&&Qn(()=>{ut&&Vr(ut,G,F),rt&&No(F,null,G,"unmounted")},Y)},Ze=F=>{const{type:G,el:Y,anchor:fe,transition:pe}=F;if(G===nt){Ke(Y,fe);return}if(G===xd){k(F);return}const he=()=>{s(Y),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(F.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ce,delayLeave:Ee}=pe,ve=()=>Ce(Y,he);Ee?Ee(F.el,he,ve):ve()}else he()},Ke=(F,G)=>{let Y;for(;F!==G;)Y=y(F),s(F),F=Y;s(G)},Je=(F,G,Y)=>{const{bum:fe,scope:pe,job:he,subTree:Ce,um:Ee,m:ve,a:be,parent:He,slots:{__:Me}}=F;uv(ve),uv(be),fe&&Jc(fe),He&&Fe(Me)&&Me.forEach(De=>{He.renderCache[De]=void 0}),pe.stop(),he&&(he.flags|=8,qe(Ce,F,G,Y)),Ee&&Qn(Ee,G),Qn(()=>{F.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},re=(F,G,Y,fe=!1,pe=!1,he=0)=>{for(let Ce=he;Ce<F.length;Ce++)qe(F[Ce],G,Y,fe,pe)},V=F=>{if(F.shapeFlag&6)return V(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const G=y(F.anchor||F.el),Y=G&&G[gT];return Y?y(Y):G};let ee=!1;const J=(F,G,Y)=>{F==null?G._vnode&&qe(G._vnode,null,null,!0):$(G._vnode||null,F,G,null,null,null,Y),G._vnode=F,ee||(ee=!0,rv(),Lb(),ee=!1)},ae={p:$,um:qe,m:Pe,r:Ze,mt:P,mc:Q,pc:ie,pbc:q,n:V,o:e};return{render:J,hydrate:void 0,createApp:BT(J)}}function wd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Io({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function JT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rw(e,t,n=!1){const i=e.children,s=t.children;if(Fe(i)&&Fe(s))for(let l=0;l<i.length;l++){const u=i[l];let f=s[l];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=s[l]=Yi(s[l]),f.el=u.el),!n&&f.patchFlag!==-2&&rw(u,f)),f.type===nf&&(f.el=u.el),f.type===ln&&!f.el&&(f.el=u.el)}}function YT(e){const t=e.slice(),n=[0];let i,s,l,u,f;const h=e.length;for(i=0;i<h;i++){const p=e[i];if(p!==0){if(s=n[n.length-1],e[s]<p){t[i]=s,n.push(i);continue}for(l=0,u=n.length-1;l<u;)f=l+u>>1,e[n[f]]<p?l=f+1:u=f;p<e[n[l]]&&(l>0&&(t[i]=n[l-1]),n[l]=i)}}for(l=n.length,u=n[l-1];l-- >0;)n[l]=u,u=t[u];return n}function iw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:iw(t)}function uv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ZT=Symbol.for("v-scx"),QT=()=>wn(ZT);function pp(e,t){return Qu(e,null,t)}function eC(e,t){return Qu(e,null,{flush:"sync"})}function St(e,t,n){return Qu(e,t,n)}function Qu(e,t,n=vt){const{immediate:i,deep:s,flush:l,once:u}=n,f=on({},n),h=t&&i||!t&&l!=="post";let p;if(va){if(l==="sync"){const w=QT();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Yr,w.resume=Yr,w.pause=Yr,w}}const g=an;f.call=(w,L,$)=>Ir(w,g,L,$);let v=!1;l==="post"?f.scheduler=w=>{Qn(w,g&&g.suspense)}:l!=="sync"&&(v=!0,f.scheduler=(w,L)=>{L?w():cp(w)}),f.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const y=dT(e,t,f);return va&&(p?p.push(y):h&&y()),y}function tC(e,t,n){const i=this.proxy,s=Dt(e)?e.includes(".")?ow(i,e):()=>i[e]:e.bind(i,i);let l;Ge(t)?l=t:(l=t.handler,n=t);const u=Ba(this),f=Qu(s,l.bind(i),n);return u(),f}function ow(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}function ef(e,t,n=vt){const i=Ko(),s=ir(t),l=Ai(t),u=sw(e,s),f=Tb((h,p)=>{let g,v=vt,y;return eC(()=>{const w=e[s];Vn(g,w)&&(g=w,p())}),{get(){return h(),n.get?n.get(g):g},set(w){const L=n.set?n.set(w):w;if(!Vn(L,g)&&!(v!==vt&&Vn(w,v)))return;const $=i.vnode.props;$&&(t in $||s in $||l in $)&&(`onUpdate:${t}`in $||`onUpdate:${s}`in $||`onUpdate:${l}`in $)||(g=w,p()),i.emit(`update:${t}`,L),Vn(w,L)&&Vn(w,v)&&!Vn(L,y)&&p(),v=w,y=L}}});return f[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?u||vt:f,done:!1}:{done:!0}}}},f}const sw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${Ai(t)}Modifiers`];function nC(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||vt;let s=n;const l=t.startsWith("update:"),u=l&&sw(i,t.slice(7));u&&(u.trim&&(s=n.map(g=>Dt(g)?g.trim():g)),u.number&&(s=n.map(Zd)));let f,h=i[f=Kc(t)]||i[f=Kc(ir(t))];!h&&l&&(h=i[f=Kc(Ai(t))]),h&&Ir(h,e,6,s);const p=i[f+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Ir(p,e,6,s)}}function lw(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const l=e.emits;let u={},f=!1;if(!Ge(e)){const h=p=>{const g=lw(p,t,!0);g&&(f=!0,on(u,g))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!l&&!f?(_t(e)&&i.set(e,null),null):(Fe(l)?l.forEach(h=>u[h]=null):on(u,l),_t(e)&&i.set(e,u),u)}function tf(e,t){return!e||!Bu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ai(t))||wt(e,t))}function fv(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[l],slots:u,attrs:f,emit:h,render:p,renderCache:g,props:v,data:y,setupState:w,ctx:L,inheritAttrs:$}=e,C=pu(e);let E,N;try{if(n.shapeFlag&4){const k=s||i,z=k;E=Ar(p.call(z,k,g,v,w,y,L)),N=f}else{const k=t;E=Ar(k.length>1?k(v,{attrs:f,slots:u,emit:h}):k(v,null)),N=t.props?f:iC(f)}}catch(k){na.length=0,Fa(k,e,1),E=Ie(ln)}let O=E;if(N&&$!==!1){const k=Object.keys(N),{shapeFlag:z}=O;k.length&&z&7&&(l&&k.some(Zh)&&(N=oC(N,l)),O=fo(O,N,!1,!0))}return n.dirs&&(O=fo(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&pa(O,n.transition),E=O,pu(C),E}function rC(e,t=!0){let n;for(let i=0;i<e.length;i++){const s=e[i];if(Js(s)){if(s.type!==ln||s.children==="v-if"){if(n)return;n=s}}else return}return n}const iC=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bu(n))&&((t||(t={}))[n]=e[n]);return t},oC=(e,t)=>{const n={};for(const i in e)(!Zh(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function sC(e,t,n){const{props:i,children:s,component:l}=e,{props:u,children:f,patchFlag:h}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return i?dv(i,u,p):!!u;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const y=g[v];if(u[y]!==i[y]&&!tf(p,y))return!0}}}else return(s||f)&&(!f||!f.$stable)?!0:i===u?!1:i?u?dv(i,u,p):!0:!!u;return!1}function dv(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let s=0;s<i.length;s++){const l=i[s];if(t[l]!==e[l]&&!tf(n,l))return!0}return!1}function gp({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const aw=e=>e.__isSuspense;let ch=0;const lC={name:"Suspense",__isSuspense:!0,process(e,t,n,i,s,l,u,f,h,p){if(e==null)aC(t,n,i,s,l,u,f,h,p);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}cC(e,t,n,i,s,u,f,h,p)}},hydrate:uC,normalize:fC},mp=lC;function ma(e,t){const n=e.props&&e.props[t];Ge(n)&&n()}function aC(e,t,n,i,s,l,u,f,h){const{p,o:{createElement:g}}=h,v=g("div"),y=e.suspense=cw(e,s,i,t,v,n,l,u,f,h);p(null,y.pendingBranch=e.ssContent,v,null,i,y,l,u),y.deps>0?(ma(e,"onPending"),ma(e,"onFallback"),p(null,e.ssFallback,t,n,i,null,l,u),Fs(y,e.ssFallback)):y.resolve(!1,!0)}function cC(e,t,n,i,s,l,u,f,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const y=t.ssContent,w=t.ssFallback,{activeBranch:L,pendingBranch:$,isInFallback:C,isHydrating:E}=v;if($)v.pendingBranch=y,Kr(y,$)?(h($,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0?v.resolve():C&&(E||(h(L,w,n,i,s,null,l,u,f),Fs(v,w)))):(v.pendingId=ch++,E?(v.isHydrating=!1,v.activeBranch=$):p($,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),C?(h(null,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0?v.resolve():(h(L,w,n,i,s,null,l,u,f),Fs(v,w))):L&&Kr(y,L)?(h(L,y,n,i,s,v,l,u,f),v.resolve(!0)):(h(null,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0&&v.resolve()));else if(L&&Kr(y,L))h(L,y,n,i,s,v,l,u,f),Fs(v,y);else if(ma(t,"onPending"),v.pendingBranch=y,y.shapeFlag&512?v.pendingId=y.component.suspenseId:v.pendingId=ch++,h(null,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0)v.resolve();else{const{timeout:N,pendingId:O}=v;N>0?setTimeout(()=>{v.pendingId===O&&v.fallback(w)},N):N===0&&v.fallback(w)}}function cw(e,t,n,i,s,l,u,f,h,p,g=!1){const{p:v,m:y,um:w,n:L,o:{parentNode:$,remove:C}}=p;let E;const N=hC(e);N&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const O=e.props?rb(e.props.timeout):void 0,k=l,z={vnode:e,parent:t,parentComponent:n,namespace:u,container:i,hiddenContainer:s,deps:0,pendingId:ch++,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(D=!1,oe=!1){const{vnode:Q,activeBranch:W,pendingBranch:q,pendingId:U,effects:A,parentComponent:I,container:P}=z;let S=!1;z.isHydrating?z.isHydrating=!1:D||(S=W&&q.transition&&q.transition.mode==="out-in",S&&(W.transition.afterLeave=()=>{U===z.pendingId&&(y(q,P,l===k?L(W):l,0),nh(A))}),W&&($(W.el)===P&&(l=L(W)),w(W,I,z,!0)),S||y(q,P,l,0)),Fs(z,q),z.pendingBranch=null,z.isInFallback=!1;let R=z.parent,B=!1;for(;R;){if(R.pendingBranch){R.effects.push(...A),B=!0;break}R=R.parent}!B&&!S&&nh(A),z.effects=[],N&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!oe&&t.resolve()),ma(Q,"onResolve")},fallback(D){if(!z.pendingBranch)return;const{vnode:oe,activeBranch:Q,parentComponent:W,container:q,namespace:U}=z;ma(oe,"onFallback");const A=L(Q),I=()=>{z.isInFallback&&(v(null,D,q,A,W,null,U,f,h),Fs(z,D))},P=D.transition&&D.transition.mode==="out-in";P&&(Q.transition.afterLeave=I),z.isInFallback=!0,w(Q,W,null,!0),P||I()},move(D,oe,Q){z.activeBranch&&y(z.activeBranch,D,oe,Q),z.container=D},next(){return z.activeBranch&&L(z.activeBranch)},registerDep(D,oe,Q){const W=!!z.pendingBranch;W&&z.deps++;const q=D.vnode.el;D.asyncDep.catch(U=>{Fa(U,D,0)}).then(U=>{if(D.isUnmounted||z.isUnmounted||z.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:A}=D;fh(D,U),q&&(A.el=q);const I=!q&&D.subTree.el;oe(D,A,$(q||D.subTree.el),q?null:L(D.subTree),z,u,Q),I&&C(I),gp(D,A.el),W&&--z.deps===0&&z.resolve()})},unmount(D,oe){z.isUnmounted=!0,z.activeBranch&&w(z.activeBranch,n,D,oe),z.pendingBranch&&w(z.pendingBranch,n,D,oe)}};return z}function uC(e,t,n,i,s,l,u,f,h){const p=t.suspense=cw(t,i,n,e.parentNode,document.createElement("div"),null,s,l,u,f,!0),g=h(e,p.pendingBranch=t.ssContent,n,p,l,u);return p.deps===0&&p.resolve(!1,!0),g}function fC(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=hv(i?n.default:n),e.ssFallback=i?hv(n.fallback):Ie(ln)}function hv(e){let t;if(Ge(e)){const n=Ks&&e._c;n&&(e._d=!1,se()),e=e(),n&&(e._d=!0,t=Xn,uw())}return Fe(e)&&(e=rC(e)),e=Ar(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function dC(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):nh(e)}function Fs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,i&&i.subTree===n&&(i.vnode.el=s,gp(i,s))}function hC(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),nf=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),xd=Symbol.for("v-stc"),na=[];let Xn=null;function se(e=!1){na.push(Xn=e?null:[])}function uw(){na.pop(),Xn=na[na.length-1]||null}let Ks=1;function vu(e,t=!1){Ks+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function fw(e){return e.dynamicChildren=Ks>0?Xn||Ps:null,uw(),Ks>0&&Xn&&Xn.push(e),e}function ye(e,t,n,i,s,l){return fw(te(e,t,n,i,s,l,!0))}function Ye(e,t,n,i,s){return fw(Ie(e,t,n,i,s,!0))}function Js(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}const dw=({key:e})=>e??null,Yc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||kt(e)||Ge(e)?{i:tn,r:e,k:t,f:!!n}:e:null);function te(e,t=null,n=null,i=0,s=null,l=e===nt?0:1,u=!1,f=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dw(t),ref:t&&Yc(t),scopeId:Ku,slotScopeIds:null,children:n,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:l,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:tn};return f?(vp(h,n),l&128&&e.normalize(h)):n&&(h.shapeFlag|=Dt(n)?8:16),Ks>0&&!u&&Xn&&(h.patchFlag>0||l&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ie=pC;function pC(e,t=null,n=null,i=0,s=null,l=!1){if((!e||e===Wb)&&(e=ln),Js(e)){const f=fo(e,t,!0);return n&&vp(f,n),Ks>0&&!l&&Xn&&(f.shapeFlag&6?Xn[Xn.indexOf(e)]=f:Xn.push(f)),f.patchFlag=-2,f}if(SC(e)&&(e=e.__vccOpts),t){t=hw(t);let{class:f,style:h}=t;f&&!Dt(f)&&(t.class=ot(f)),_t(h)&&(lp(h)&&!Fe(h)&&(h=on({},h)),t.style=nn(h))}const u=Dt(e)?1:aw(e)?128:Pb(e)?64:_t(e)?4:Ge(e)?2:0;return te(e,t,n,i,s,u,l,!0)}function hw(e){return e?lp(e)||Yb(e)?on({},e):e:null}function fo(e,t,n=!1,i=!1){const{props:s,ref:l,patchFlag:u,children:f,transition:h}=e,p=t?_i(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&dw(p),ref:t&&t.ref?n&&l?Fe(l)?l.concat(Yc(t)):[l,Yc(t)]:Yc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&i&&pa(g,h.clone(g)),g}function dt(e=" ",t=0){return Ie(nf,null,e,t)}function je(e="",t=!1){return t?(se(),Ye(ln,null,e)):Ie(ln,null,e)}function Ar(e){return e==null||typeof e=="boolean"?Ie(ln):Fe(e)?Ie(nt,null,e.slice()):Js(e)?Yi(e):Ie(nf,null,String(e))}function Yi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function vp(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Fe(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),vp(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Yb(t)?t._ctx=tn:s===3&&tn&&(tn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:tn},n=32):(t=String(t),i&64?(n=16,t=[dt(t)]):n=8);e.children=t,e.shapeFlag|=n}function _i(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const s in i)if(s==="class")t.class!==i.class&&(t.class=ot([t.class,i.class]));else if(s==="style")t.style=nn([t.style,i.style]);else if(Bu(s)){const l=t[s],u=i[s];u&&l!==u&&!(Fe(l)&&l.includes(u))&&(t[s]=l?[].concat(l,u):u)}else s!==""&&(t[s]=i[s])}return t}function Vr(e,t,n,i=null){Ir(e,t,7,[n,i])}const gC=Gb();let mC=0;function vC(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||gC,l={uid:mC++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Rk(!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:Qb(i,s),emitsOptions:lw(i,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:i.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:n,suspenseId:n?n.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 l.ctx={_:l},l.root=t?t.root:l,l.emit=nC.bind(null,l),e.ce&&e.ce(l),l}let an=null;const Ko=()=>an||tn;let yu,uh;{const e=Uu(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),l=>{s.length>1?s.forEach(u=>u(l)):s[0](l)}};yu=t("__VUE_INSTANCE_SETTERS__",n=>an=n),uh=t("__VUE_SSR_SETTERS__",n=>va=n)}const Ba=e=>{const t=an;return yu(e),e.scope.on(),()=>{e.scope.off(),yu(t)}},pv=()=>{an&&an.scope.off(),yu(null)};function pw(e){return e.vnode.shapeFlag&4}let va=!1;function yC(e,t=!1,n=!1){t&&uh(t);const{props:i,children:s}=e.vnode,l=pw(e);WT(e,i,l,t),VT(e,s,n||t);const u=l?bC(e,t):void 0;return t&&uh(!1),u}function bC(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,NT);const{setup:i}=n;if(i){ki();const s=e.setupContext=i.length>1?mw(e):null,l=Ba(e),u=Da(i,e,0,[e.props,s]),f=eb(u);if(Ti(),l(),(f||e.sp)&&!Ds(e)&&Hb(e),f){if(u.then(pv,pv),t)return u.then(h=>{fh(e,h)}).catch(h=>{Fa(h,e,0)});e.asyncDep=u}else fh(e,u)}else gw(e)}function fh(e,t,n){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_t(t)&&(e.setupState=kb(t)),gw(e)}function gw(e,t,n){const i=e.type;e.render||(e.render=i.render||Yr);{const s=Ba(e);ki();try{OT(e)}finally{Ti(),s()}}}const wC={get(e,t){return bn(e,"get",""),e[t]}};function mw(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wC),slots:e.slots,emit:e.emit,expose:t}}function rf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kb(ap(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ta)return ta[n](e)},has(t,n){return n in t||n in ta}})):e.proxy}function xC(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function SC(e){return Ge(e)&&"__vccOpts"in e}const _e=(e,t)=>uT(e,t,va);function Wa(e,t,n){const i=arguments.length;return i===2?_t(t)&&!Fe(t)?Js(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Js(n)&&(n=[n]),Ie(e,t,n))}const _C="3.5.17";/**
14
- * @vue/runtime-dom v3.5.17
13
+ **/function Fa(e,t,n,i){try{return i?e(...i):e()}catch(s){Ha(s,t,n)}}function Ir(e,t,n,i){if(Ge(e)){const s=Fa(e,t,n,i);return s&&eb(s)&&s.catch(l=>{Ha(l,t,n)}),s}if(Fe(e)){const s=[];for(let l=0;l<e.length;l++)s.push(Ir(e[l],t,n,i));return s}}function Ha(e,t,n,i=!0){const s=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||vt;if(t){let f=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;f;){const g=f.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}f=f.parent}if(l){ki(),Fa(l,null,10,[e,h,p]),Ti();return}}dT(e,n,s,i,u)}function dT(e,t,n,i=!0,s=!1){if(s)throw e;console.error(e)}const In=[];let Gr=-1;const Ds=[];let Ji=null,Es=0;const Eb=Promise.resolve();let hu=null;function Et(e){const t=hu||Eb;return e?t.then(this?e.bind(this):e):t}function hT(e){let t=Gr+1,n=In.length;for(;t<n;){const i=t+n>>>1,s=In[i],l=pa(s);l<e||l===e&&s.flags&2?t=i+1:n=i}return t}function cp(e){if(!(e.flags&1)){const t=pa(e),n=In[In.length-1];!n||!(e.flags&2)&&t>=pa(n)?In.push(e):In.splice(hT(t),0,e),e.flags|=1,Ab()}}function Ab(){hu||(hu=Eb.then($b))}function nh(e){Fe(e)?Ds.push(...e):Ji&&e.id===-1?Ji.splice(Es+1,0,e):e.flags&1||(Ds.push(e),e.flags|=1),Ab()}function rv(e,t,n=Gr+1){for(;n<In.length;n++){const i=In[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;In.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Lb(e){if(Ds.length){const t=[...new Set(Ds)].sort((n,i)=>pa(n)-pa(i));if(Ds.length=0,Ji){Ji.push(...t);return}for(Ji=t,Es=0;Es<Ji.length;Es++){const n=Ji[Es];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ji=null,Es=0}}const pa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $b(e){try{for(Gr=0;Gr<In.length;Gr++){const t=In[Gr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gr<In.length;Gr++){const t=In[Gr];t&&(t.flags&=-2)}Gr=-1,In.length=0,Lb(),hu=null,(In.length||Ds.length)&&$b()}}let hn=null,Ku=null;function pu(e){const t=hn;return hn=e,Ku=e&&e.type.__scopeId||null,t}function Mb(e){Ku=e}function Nb(){Ku=null}const Ib=e=>it;function it(e,t=hn,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&vu(-1);const l=pu(t);let u;try{u=e(...s)}finally{pu(l),i._d&&vu(1)}return u};return i._n=!0,i._c=!0,i._d=!0,i}function ct(e,t){if(hn===null)return e;const n=rf(hn),i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,u,f,h=vt]=t[s];l&&(Ge(l)&&(l={mounted:l,updated:l}),l.deep&&xi(u),i.push({dir:l,instance:n,value:u,oldValue:void 0,arg:f,modifiers:h}))}return e}function Po(e,t,n,i){const s=e.dirs,l=t&&t.dirs;for(let u=0;u<s.length;u++){const f=s[u];l&&(f.oldValue=l[u].value);let h=f.dir[i];h&&(ki(),Ir(h,n,8,[e.el,f,e,t]),Ti())}}const pT=Symbol("_vte"),Pb=e=>e.__isTeleport,Yi=Symbol("_leaveCb"),Pc=Symbol("_enterCb");function gT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wo(()=>{e.isMounted=!0}),Ba(()=>{e.isUnmounting=!0}),e}const ar=[Function,Array],Ob={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},Rb=e=>{const t=e.subTree;return t.component?Rb(t.component):t},mT={name:"BaseTransition",props:Ob,setup(e,{slots:t}){const n=$i(),i=gT();return()=>{const s=t.default&&Fb(t.default(),!0);if(!s||!s.length)return;const l=zb(s),u=mt(e),{mode:f}=u;if(i.isLeaving)return yd(l);const h=iv(l);if(!h)return yd(l);let p=rh(h,u,i,n,v=>p=v);h.type!==sn&&ga(h,p);let g=n.subTree&&iv(n.subTree);if(g&&g.type!==sn&&!Kr(h,g)&&Rb(n).type!==sn){let v=rh(g,u,i,n);if(ga(g,v),f==="out-in"&&h.type!==sn)return i.isLeaving=!0,v.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete v.afterLeave,g=void 0},yd(l);f==="in-out"&&h.type!==sn?v.delayLeave=(y,w,L)=>{const $=Db(i,g);$[String(g.key)]=g,y[Yi]=()=>{w(),y[Yi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{L(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return l}}};function zb(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==sn){t=n;break}}return t}const vT=mT;function Db(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function rh(e,t,n,i,s){const{appear:l,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:y,onLeave:w,onAfterLeave:L,onLeaveCancelled:$,onBeforeAppear:C,onAppear:E,onAfterAppear:N,onAppearCancelled:O}=t,k=String(e.key),z=Db(n,e),D=(W,q)=>{W&&Ir(W,i,9,q)},oe=(W,q)=>{const U=q[1];D(W,q),Fe(W)?W.every(A=>A.length<=1)&&U():W.length<=1&&U()},Q={mode:u,persisted:f,beforeEnter(W){let q=h;if(!n.isMounted)if(l)q=C||h;else return;W[Yi]&&W[Yi](!0);const U=z[k];U&&Kr(e,U)&&U.el[Yi]&&U.el[Yi](),D(q,[W])},enter(W){let q=p,U=g,A=v;if(!n.isMounted)if(l)q=E||p,U=N||g,A=O||v;else return;let I=!1;const P=W[Pc]=S=>{I||(I=!0,S?D(A,[W]):D(U,[W]),Q.delayedLeave&&Q.delayedLeave(),W[Pc]=void 0)};q?oe(q,[W,P]):P()},leave(W,q){const U=String(e.key);if(W[Pc]&&W[Pc](!0),n.isUnmounting)return q();D(y,[W]);let A=!1;const I=W[Yi]=P=>{A||(A=!0,q(),P?D($,[W]):D(L,[W]),W[Yi]=void 0,z[U]===e&&delete z[U])};z[U]=e,w?oe(w,[W,I]):I()},clone(W){const q=rh(W,t,n,i,s);return s&&s(q),q}};return Q}function yd(e){if(Ju(e))return e=ho(e),e.children=null,e}function iv(e){if(!Ju(e))return Pb(e.type)&&e.children?zb(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ge(n.default))return n.default()}}function ga(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ga(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 Fb(e,t=!1,n){let i=[],s=0;for(let l=0;l<e.length;l++){let u=e[l];const f=n==null?u.key:String(n)+String(u.key!=null?u.key:l);u.type===nt?(u.patchFlag&128&&s++,i=i.concat(Fb(u.children,t,f))):(t||u.type!==sn)&&i.push(f!=null?ho(u,{key:f}):u)}if(s>1)for(let l=0;l<i.length;l++)i[l].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function at(e,t){return Ge(e)?rn({name:e.name},t,{setup:e}):e}function Hb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ta(e,t,n,i,s=!1){if(Fe(e)){e.forEach((L,$)=>ta(L,t&&(Fe(t)?t[$]:t),n,i,s));return}if(Fs(i)&&!s){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ta(e,t,n,i.component.subTree);return}const l=i.shapeFlag&4?rf(i.component):i.el,u=s?null:l,{i:f,r:h}=e,p=t&&t.r,g=f.refs===vt?f.refs={}:f.refs,v=f.setupState,y=mt(v),w=v===vt?()=>!1:L=>wt(y,L);if(p!=null&&p!==h&&(Dt(p)?(g[p]=null,w(p)&&(v[p]=null)):kt(p)&&(p.value=null)),Ge(h))Fa(h,f,12,[u,g]);else{const L=Dt(h),$=kt(h);if(L||$){const C=()=>{if(e.f){const E=L?w(h)?v[h]:g[h]:h.value;s?Fe(E)&&Qh(E,l):Fe(E)?E.includes(l)||E.push(l):L?(g[h]=[l],w(h)&&(v[h]=g[h])):(h.value=[l],e.k&&(g[e.k]=h.value))}else L?(g[h]=u,w(h)&&(v[h]=u)):$&&(h.value=u,e.k&&(g[e.k]=u))};u?(C.id=-1,Qn(C,n)):C()}}}Uu().requestIdleCallback;Uu().cancelIdleCallback;const Fs=e=>!!e.type.__asyncLoader,Ju=e=>e.type.__isKeepAlive;function yT(e,t){Bb(e,"a",t)}function bT(e,t){Bb(e,"da",t)}function Bb(e,t,n=wn){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yu(t,i,n),n){let s=n.parent;for(;s&&s.parent;)Ju(s.parent.vnode)&&wT(i,t,n,s),s=s.parent}}function wT(e,t,n,i){const s=Yu(t,e,i,!0);Zu(()=>{Qh(i[t],s)},n)}function Yu(e,t,n=wn,i=!1){if(n){const s=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...u)=>{ki();const f=Wa(n),h=Ir(t,n,e,u);return f(),Ti(),h});return i?s.unshift(l):s.push(l),l}}const Li=e=>(t,n=wn)=>{(!ya||e==="sp")&&Yu(e,(...i)=>t(...i),n)},xT=Li("bm"),wo=Li("m"),ST=Li("bu"),_T=Li("u"),Ba=Li("bum"),Zu=Li("um"),kT=Li("sp"),TT=Li("rtg"),CT=Li("rtc");function ET(e,t=wn){Yu("ec",e,t)}const up="components",AT="directives";function Ko(e,t){return fp(up,e,!0,t)||e}const Wb=Symbol.for("v-ndc");function ih(e){return Dt(e)?fp(up,e,!1)||e:e||Wb}function Dr(e){return fp(AT,e)}function fp(e,t,n=!0,i=!1){const s=hn||wn;if(s){const l=s.type;if(e===up){const f=wC(l,!1);if(f&&(f===t||f===ir(t)||f===qu(ir(t))))return l}const u=ov(s[e]||l[e],t)||ov(s.appContext[e],t);return!u&&i?l:u}}function ov(e,t){return e&&(e[t]||e[ir(t)]||e[qu(ir(t))])}function hr(e,t,n,i){let s;const l=n,u=Fe(e);if(u||Dt(e)){const f=u&&zs(e);let h=!1,p=!1;f&&(h=!dr(e),p=fo(e),e=Xu(e)),s=new Array(e.length);for(let g=0,v=e.length;g<v;g++)s[g]=t(h?p?fu(fn(e[g])):fn(e[g]):e[g],g,void 0,l)}else if(typeof e=="number"){s=new Array(e);for(let f=0;f<e;f++)s[f]=t(f+1,f,void 0,l)}else if(_t(e))if(e[Symbol.iterator])s=Array.from(e,(f,h)=>t(f,h,void 0,l));else{const f=Object.keys(e);s=new Array(f.length);for(let h=0,p=f.length;h<p;h++){const g=f[h];s[h]=t(e[g],g,h,l)}}else s=[];return s}function LT(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(Fe(i))for(let s=0;s<i.length;s++)e[i[s].name]=i[s].fn;else i&&(e[i.name]=i.key?(...s)=>{const l=i.fn(...s);return l&&(l.key=i.key),l}:i.fn)}return e}function xn(e,t,n={},i,s){if(hn.ce||hn.parent&&Fs(hn.parent)&&hn.parent.ce)return t!=="default"&&(n.name=t),se(),Ye(nt,null,[Ie("slot",n,i&&i())],64);let l=e[t];l&&l._c&&(l._d=!1),se();const u=l&&jb(l(n)),f=n.key||u&&u.key,h=Ye(nt,{key:(f&&!Nr(f)?f:`_${t}`)+(!u&&i?"_fb":"")},u||(i?i():[]),u&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),l&&l._c&&(l._d=!0),h}function jb(e){return e.some(t=>Ys(t)?!(t.type===sn||t.type===nt&&!jb(t.children)):!0)?e:null}function $T(e,t){const n={};for(const i in e)n[Kc(i)]=e[i];return n}const oh=e=>e?pw(e)?rf(e):oh(e.parent):null,na=rn(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=>oh(e.parent),$root:e=>oh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vb(e),$forceUpdate:e=>e.f||(e.f=()=>{cp(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>eC.bind(e)}),bd=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),MT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:l,accessCache:u,type:f,appContext:h}=e;let p;if(t[0]!=="$"){const w=u[t];if(w!==void 0)switch(w){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return l[t]}else{if(bd(i,t))return u[t]=1,i[t];if(s!==vt&&wt(s,t))return u[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return u[t]=3,l[t];if(n!==vt&&wt(n,t))return u[t]=4,n[t];sh&&(u[t]=0)}}const g=na[t];let v,y;if(g)return t==="$attrs"&&yn(e.attrs,"get",""),g(e);if((v=f.__cssModules)&&(v=v[t]))return v;if(n!==vt&&wt(n,t))return u[t]=4,n[t];if(y=h.config.globalProperties,wt(y,t))return y[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:l}=e;return bd(s,t)?(s[t]=n,!0):i!==vt&&wt(i,t)?(i[t]=n,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:l}},u){let f;return!!n[u]||e!==vt&&wt(e,u)||bd(t,u)||(f=l[0])&&wt(f,u)||wt(i,u)||wt(na,u)||wt(s.config.globalProperties,u)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function NT(){return qb().slots}function IT(){return qb().attrs}function qb(e){const t=$i();return t.setupContext||(t.setupContext=mw(t))}function gu(e){return Fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ma(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):rn({},gu(e),gu(t))}let sh=!0;function PT(e){const t=Vb(e),n=e.proxy,i=e.ctx;sh=!1,t.beforeCreate&&sv(t.beforeCreate,e,"bc");const{data:s,computed:l,methods:u,watch:f,provide:h,inject:p,created:g,beforeMount:v,mounted:y,beforeUpdate:w,updated:L,activated:$,deactivated:C,beforeDestroy:E,beforeUnmount:N,destroyed:O,unmounted:k,render:z,renderTracked:D,renderTriggered:oe,errorCaptured:Q,serverPrefetch:W,expose:q,inheritAttrs:U,components:A,directives:I,filters:P}=t;if(p&&OT(p,i,null),u)for(const B in u){const ie=u[B];Ge(ie)&&(i[B]=ie.bind(n))}if(s){const B=s.call(n,n);_t(B)&&(e.data=rr(B))}if(sh=!0,l)for(const B in l){const ie=l[B],ue=Ge(ie)?ie.bind(n,n):Ge(ie.get)?ie.get.bind(n,n):Yr,we=!Ge(ie)&&Ge(ie.set)?ie.set.bind(n):Yr,Pe=_e({get:ue,set:we});Object.defineProperty(i,B,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:qe=>Pe.value=qe})}if(f)for(const B in f)Ub(f[B],i,n,B);if(h){const B=Ge(h)?h.call(n):h;Reflect.ownKeys(B).forEach(ie=>{Er(ie,B[ie])})}g&&sv(g,e,"c");function R(B,ie){Fe(ie)?ie.forEach(ue=>B(ue.bind(n))):ie&&B(ie.bind(n))}if(R(xT,v),R(wo,y),R(ST,w),R(_T,L),R(yT,$),R(bT,C),R(ET,Q),R(CT,D),R(TT,oe),R(Ba,N),R(Zu,k),R(kT,W),Fe(q))if(q.length){const B=e.exposed||(e.exposed={});q.forEach(ie=>{Object.defineProperty(B,ie,{get:()=>n[ie],set:ue=>n[ie]=ue,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===Yr&&(e.render=z),U!=null&&(e.inheritAttrs=U),A&&(e.components=A),I&&(e.directives=I),W&&Hb(e)}function OT(e,t,n=Yr){Fe(e)&&(e=lh(e));for(const i in e){const s=e[i];let l;_t(s)?"default"in s?l=bn(s.from||i,s.default,!0):l=bn(s.from||i):l=bn(s),kt(l)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[i]=l}}function sv(e,t,n){Ir(Fe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ub(e,t,n,i){let s=i.includes(".")?ow(n,i):()=>n[i];if(Dt(e)){const l=t[e];Ge(l)&&St(s,l)}else if(Ge(e))St(s,e.bind(n));else if(_t(e))if(Fe(e))e.forEach(l=>Ub(l,t,n,i));else{const l=Ge(e.handler)?e.handler.bind(n):t[e.handler];Ge(l)&&St(s,l,e)}}function Vb(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,f=l.get(t);let h;return f?h=f:!s.length&&!n&&!i?h=t:(h={},s.length&&s.forEach(p=>mu(h,p,u,!0)),mu(h,t,u)),_t(t)&&l.set(t,h),h}function mu(e,t,n,i=!1){const{mixins:s,extends:l}=t;l&&mu(e,l,n,!0),s&&s.forEach(u=>mu(e,u,n,!0));for(const u in t)if(!(i&&u==="expose")){const f=RT[u]||n&&n[u];e[u]=f?f(e[u],t[u]):t[u]}return e}const RT={data:lv,props:av,emits:av,methods:Xl,computed:Xl,beforeCreate:$n,created:$n,beforeMount:$n,mounted:$n,beforeUpdate:$n,updated:$n,beforeDestroy:$n,beforeUnmount:$n,destroyed:$n,unmounted:$n,activated:$n,deactivated:$n,errorCaptured:$n,serverPrefetch:$n,components:Xl,directives:Xl,watch:DT,provide:lv,inject:zT};function lv(e,t){return t?e?function(){return rn(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function zT(e,t){return Xl(lh(e),lh(t))}function lh(e){if(Fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function $n(e,t){return e?[...new Set([].concat(e,t))]:t}function Xl(e,t){return e?rn(Object.create(null),e,t):t}function av(e,t){return e?Fe(e)&&Fe(t)?[...new Set([...e,...t])]:rn(Object.create(null),gu(e),gu(t??{})):t}function DT(e,t){if(!e)return t;if(!t)return e;const n=rn(Object.create(null),e);for(const i in t)n[i]=$n(e[i],t[i]);return n}function Gb(){return{app:null,config:{isNativeTag:Sk,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 FT=0;function HT(e,t){return function(i,s=null){Ge(i)||(i=rn({},i)),s!=null&&!_t(s)&&(s=null);const l=Gb(),u=new WeakSet,f=[];let h=!1;const p=l.app={_uid:FT++,_component:i,_props:s,_container:null,_context:l,_instance:null,version:SC,get config(){return l.config},set config(g){},use(g,...v){return u.has(g)||(g&&Ge(g.install)?(u.add(g),g.install(p,...v)):Ge(g)&&(u.add(g),g(p,...v))),p},mixin(g){return l.mixins.includes(g)||l.mixins.push(g),p},component(g,v){return v?(l.components[g]=v,p):l.components[g]},directive(g,v){return v?(l.directives[g]=v,p):l.directives[g]},mount(g,v,y){if(!h){const w=p._ceVNode||Ie(i,s);return w.appContext=l,y===!0?y="svg":y===!1&&(y=void 0),e(w,g,y),h=!0,p._container=g,g.__vue_app__=p,rf(w.component)}},onUnmount(g){f.push(g)},unmount(){h&&(Ir(f,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return l.provides[g]=v,p},runWithContext(g){const v=Vo;Vo=p;try{return g()}finally{Vo=v}}};return p}}let Vo=null;function Er(e,t){if(wn){let n=wn.provides;const i=wn.parent&&wn.parent.provides;i===n&&(n=wn.provides=Object.create(i)),n[e]=t}}function bn(e,t,n=!1){const i=$i();if(i||Vo){let s=Vo?Vo._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Ge(t)?t.call(i&&i.proxy):t}}function Xb(){return!!($i()||Vo)}const Kb={},Jb=()=>Object.create(Kb),Yb=e=>Object.getPrototypeOf(e)===Kb;function BT(e,t,n,i=!1){const s={},l=Jb();e.propsDefaults=Object.create(null),Zb(e,t,s,l);for(const u in e.propsOptions[0])u in s||(s[u]=void 0);n?e.props=i?s:op(s):e.type.props?e.props=s:e.props=l,e.attrs=l}function WT(e,t,n,i){const{props:s,attrs:l,vnode:{patchFlag:u}}=e,f=mt(s),[h]=e.propsOptions;let p=!1;if((i||u>0)&&!(u&16)){if(u&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let y=g[v];if(tf(e.emitsOptions,y))continue;const w=t[y];if(h)if(wt(l,y))w!==l[y]&&(l[y]=w,p=!0);else{const L=ir(y);s[L]=ah(h,f,L,w,e,!1)}else w!==l[y]&&(l[y]=w,p=!0)}}}else{Zb(e,t,s,l)&&(p=!0);let g;for(const v in f)(!t||!wt(t,v)&&((g=Ai(v))===v||!wt(t,g)))&&(h?n&&(n[v]!==void 0||n[g]!==void 0)&&(s[v]=ah(h,f,v,void 0,e,!0)):delete s[v]);if(l!==f)for(const v in l)(!t||!wt(t,v))&&(delete l[v],p=!0)}p&&wi(e.attrs,"set","")}function Zb(e,t,n,i){const[s,l]=e.propsOptions;let u=!1,f;if(t)for(let h in t){if(Zl(h))continue;const p=t[h];let g;s&&wt(s,g=ir(h))?!l||!l.includes(g)?n[g]=p:(f||(f={}))[g]=p:tf(e.emitsOptions,h)||(!(h in i)||p!==i[h])&&(i[h]=p,u=!0)}if(l){const h=mt(n),p=f||vt;for(let g=0;g<l.length;g++){const v=l[g];n[v]=ah(s,h,v,p[v],e,!wt(p,v))}}return u}function ah(e,t,n,i,s,l){const u=e[n];if(u!=null){const f=wt(u,"default");if(f&&i===void 0){const h=u.default;if(u.type!==Function&&!u.skipFactory&&Ge(h)){const{propsDefaults:p}=s;if(n in p)i=p[n];else{const g=Wa(s);i=p[n]=h.call(null,t),g()}}else i=h;s.ce&&s.ce._setProp(n,i)}u[0]&&(l&&!f?i=!1:u[1]&&(i===""||i===Ai(n))&&(i=!0))}return i}const jT=new WeakMap;function Qb(e,t,n=!1){const i=n?jT:t.propsCache,s=i.get(e);if(s)return s;const l=e.props,u={},f=[];let h=!1;if(!Ge(e)){const g=v=>{h=!0;const[y,w]=Qb(v,t,!0);rn(u,y),w&&f.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!l&&!h)return _t(e)&&i.set(e,Os),Os;if(Fe(l))for(let g=0;g<l.length;g++){const v=ir(l[g]);cv(v)&&(u[v]=vt)}else if(l)for(const g in l){const v=ir(g);if(cv(v)){const y=l[g],w=u[v]=Fe(y)||Ge(y)?{type:y}:rn({},y),L=w.type;let $=!1,C=!0;if(Fe(L))for(let E=0;E<L.length;++E){const N=L[E],O=Ge(N)&&N.name;if(O==="Boolean"){$=!0;break}else O==="String"&&(C=!1)}else $=Ge(L)&&L.name==="Boolean";w[0]=$,w[1]=C,($||wt(w,"default"))&&f.push(v)}}const p=[u,f];return _t(e)&&i.set(e,p),p}function cv(e){return e[0]!=="$"&&!Zl(e)}const dp=e=>e==="_"||e==="__"||e==="_ctx"||e==="$stable",hp=e=>Fe(e)?e.map(Ar):[Ar(e)],qT=(e,t,n)=>{if(t._n)return t;const i=it((...s)=>hp(t(...s)),n);return i._c=!1,i},ew=(e,t,n)=>{const i=e._ctx;for(const s in e){if(dp(s))continue;const l=e[s];if(Ge(l))t[s]=qT(s,l,i);else if(l!=null){const u=hp(l);t[s]=()=>u}}},tw=(e,t)=>{const n=hp(t);e.slots.default=()=>n},nw=(e,t,n)=>{for(const i in t)(n||!dp(i))&&(e[i]=t[i])},UT=(e,t,n)=>{const i=e.slots=Jb();if(e.vnode.shapeFlag&32){const s=t.__;s&&Yd(i,"__",s,!0);const l=t._;l?(nw(i,t,n),n&&Yd(i,"_",l,!0)):ew(t,i)}else t&&tw(e,t)},VT=(e,t,n)=>{const{vnode:i,slots:s}=e;let l=!0,u=vt;if(i.shapeFlag&32){const f=t._;f?n&&f===1?l=!1:nw(s,t,n):(l=!t.$stable,ew(t,s)),u=t}else t&&(tw(e,t),u={default:1});if(l)for(const f in s)!dp(f)&&u[f]==null&&delete s[f]},Qn=fC;function GT(e){return XT(e)}function XT(e,t){const n=Uu();n.__VUE__=!0;const{insert:i,remove:s,patchProp:l,createElement:u,createText:f,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:y,setScopeId:w=Yr,insertStaticContent:L}=e,$=(F,G,Y,fe=null,pe=null,he=null,Ce=void 0,Ee=null,ve=!!G.dynamicChildren)=>{if(F===G)return;F&&!Kr(F,G)&&(fe=V(F),qe(F,pe,he,!0),F=null),G.patchFlag===-2&&(ve=!1,G.dynamicChildren=null);const{type:be,ref:He,shapeFlag:Me}=G;switch(be){case nf:C(F,G,Y,fe);break;case sn:E(F,G,Y,fe);break;case xd:F==null&&N(G,Y,fe,Ce);break;case nt:A(F,G,Y,fe,pe,he,Ce,Ee,ve);break;default:Me&1?z(F,G,Y,fe,pe,he,Ce,Ee,ve):Me&6?I(F,G,Y,fe,pe,he,Ce,Ee,ve):(Me&64||Me&128)&&be.process(F,G,Y,fe,pe,he,Ce,Ee,ve,ae)}He!=null&&pe?ta(He,F&&F.ref,he,G||F,!G):He==null&&F&&F.ref!=null&&ta(F.ref,null,he,F,!0)},C=(F,G,Y,fe)=>{if(F==null)i(G.el=f(G.children),Y,fe);else{const pe=G.el=F.el;G.children!==F.children&&p(pe,G.children)}},E=(F,G,Y,fe)=>{F==null?i(G.el=h(G.children||""),Y,fe):G.el=F.el},N=(F,G,Y,fe)=>{[F.el,F.anchor]=L(F.children,G,Y,fe,F.el,F.anchor)},O=({el:F,anchor:G},Y,fe)=>{let pe;for(;F&&F!==G;)pe=y(F),i(F,Y,fe),F=pe;i(G,Y,fe)},k=({el:F,anchor:G})=>{let Y;for(;F&&F!==G;)Y=y(F),s(F),F=Y;s(G)},z=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{G.type==="svg"?Ce="svg":G.type==="math"&&(Ce="mathml"),F==null?D(G,Y,fe,pe,he,Ce,Ee,ve):W(F,G,pe,he,Ce,Ee,ve)},D=(F,G,Y,fe,pe,he,Ce,Ee)=>{let ve,be;const{props:He,shapeFlag:Me,transition:De,dirs:Ve}=F;if(ve=F.el=u(F.type,he,He&&He.is,He),Me&8?g(ve,F.children):Me&16&&Q(F.children,ve,null,fe,pe,wd(F,he),Ce,Ee),Ve&&Po(F,null,fe,"created"),oe(ve,F,F.scopeId,Ce,fe),He){for(const st in He)st!=="value"&&!Zl(st)&&l(ve,st,null,He[st],he,fe);"value"in He&&l(ve,"value",null,He.value,he),(be=He.onVnodeBeforeMount)&&Vr(be,fe,F)}Ve&&Po(F,null,fe,"beforeMount");const rt=KT(pe,De);rt&&De.beforeEnter(ve),i(ve,G,Y),((be=He&&He.onVnodeMounted)||rt||Ve)&&Qn(()=>{be&&Vr(be,fe,F),rt&&De.enter(ve),Ve&&Po(F,null,fe,"mounted")},pe)},oe=(F,G,Y,fe,pe)=>{if(Y&&w(F,Y),fe)for(let he=0;he<fe.length;he++)w(F,fe[he]);if(pe){let he=pe.subTree;if(G===he||aw(he.type)&&(he.ssContent===G||he.ssFallback===G)){const Ce=pe.vnode;oe(F,Ce,Ce.scopeId,Ce.slotScopeIds,pe.parent)}}},Q=(F,G,Y,fe,pe,he,Ce,Ee,ve=0)=>{for(let be=ve;be<F.length;be++){const He=F[be]=Ee?Zi(F[be]):Ar(F[be]);$(null,He,G,Y,fe,pe,he,Ce,Ee)}},W=(F,G,Y,fe,pe,he,Ce)=>{const Ee=G.el=F.el;let{patchFlag:ve,dynamicChildren:be,dirs:He}=G;ve|=F.patchFlag&16;const Me=F.props||vt,De=G.props||vt;let Ve;if(Y&&Oo(Y,!1),(Ve=De.onVnodeBeforeUpdate)&&Vr(Ve,Y,G,F),He&&Po(G,F,Y,"beforeUpdate"),Y&&Oo(Y,!0),(Me.innerHTML&&De.innerHTML==null||Me.textContent&&De.textContent==null)&&g(Ee,""),be?q(F.dynamicChildren,be,Ee,Y,fe,wd(G,pe),he):Ce||ie(F,G,Ee,null,Y,fe,wd(G,pe),he,!1),ve>0){if(ve&16)U(Ee,Me,De,Y,pe);else if(ve&2&&Me.class!==De.class&&l(Ee,"class",null,De.class,pe),ve&4&&l(Ee,"style",Me.style,De.style,pe),ve&8){const rt=G.dynamicProps;for(let st=0;st<rt.length;st++){const ut=rt[st],$t=Me[ut],lt=De[ut];(lt!==$t||ut==="value")&&l(Ee,ut,$t,lt,pe,Y)}}ve&1&&F.children!==G.children&&g(Ee,G.children)}else!Ce&&be==null&&U(Ee,Me,De,Y,pe);((Ve=De.onVnodeUpdated)||He)&&Qn(()=>{Ve&&Vr(Ve,Y,G,F),He&&Po(G,F,Y,"updated")},fe)},q=(F,G,Y,fe,pe,he,Ce)=>{for(let Ee=0;Ee<G.length;Ee++){const ve=F[Ee],be=G[Ee],He=ve.el&&(ve.type===nt||!Kr(ve,be)||ve.shapeFlag&198)?v(ve.el):Y;$(ve,be,He,null,fe,pe,he,Ce,!0)}},U=(F,G,Y,fe,pe)=>{if(G!==Y){if(G!==vt)for(const he in G)!Zl(he)&&!(he in Y)&&l(F,he,G[he],null,pe,fe);for(const he in Y){if(Zl(he))continue;const Ce=Y[he],Ee=G[he];Ce!==Ee&&he!=="value"&&l(F,he,Ee,Ce,pe,fe)}"value"in Y&&l(F,"value",G.value,Y.value,pe)}},A=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{const be=G.el=F?F.el:f(""),He=G.anchor=F?F.anchor:f("");let{patchFlag:Me,dynamicChildren:De,slotScopeIds:Ve}=G;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),F==null?(i(be,Y,fe),i(He,Y,fe),Q(G.children||[],Y,He,pe,he,Ce,Ee,ve)):Me>0&&Me&64&&De&&F.dynamicChildren?(q(F.dynamicChildren,De,Y,pe,he,Ce,Ee),(G.key!=null||pe&&G===pe.subTree)&&rw(F,G,!0)):ie(F,G,Y,He,pe,he,Ce,Ee,ve)},I=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{G.slotScopeIds=Ee,F==null?G.shapeFlag&512?pe.ctx.activate(G,Y,fe,Ce,ve):P(G,Y,fe,pe,he,Ce,ve):S(F,G,ve)},P=(F,G,Y,fe,pe,he,Ce)=>{const Ee=F.component=mC(F,fe,pe);if(Ju(F)&&(Ee.ctx.renderer=ae),vC(Ee,!1,Ce),Ee.asyncDep){if(pe&&pe.registerDep(Ee,R,Ce),!F.el){const ve=Ee.subTree=Ie(sn);E(null,ve,G,Y),F.placeholder=ve.el}}else R(Ee,F,G,Y,pe,he,Ce)},S=(F,G,Y)=>{const fe=G.component=F.component;if(oC(F,G,Y))if(fe.asyncDep&&!fe.asyncResolved){B(fe,G,Y);return}else fe.next=G,fe.update();else G.el=F.el,fe.vnode=G},R=(F,G,Y,fe,pe,he,Ce)=>{const Ee=()=>{if(F.isMounted){let{next:Me,bu:De,u:Ve,parent:rt,vnode:st}=F;{const Bt=iw(F);if(Bt){Me&&(Me.el=st.el,B(F,Me,Ce)),Bt.asyncDep.then(()=>{F.isUnmounted||Ee()});return}}let ut=Me,$t;Oo(F,!1),Me?(Me.el=st.el,B(F,Me,Ce)):Me=st,De&&Jc(De),($t=Me.props&&Me.props.onVnodeBeforeUpdate)&&Vr($t,rt,Me,st),Oo(F,!0);const lt=fv(F),Xt=F.subTree;F.subTree=lt,$(Xt,lt,v(Xt.el),V(Xt),F,pe,he),Me.el=lt.el,ut===null&&gp(F,lt.el),Ve&&Qn(Ve,pe),($t=Me.props&&Me.props.onVnodeUpdated)&&Qn(()=>Vr($t,rt,Me,st),pe)}else{let Me;const{el:De,props:Ve}=G,{bm:rt,m:st,parent:ut,root:$t,type:lt}=F,Xt=Fs(G);Oo(F,!1),rt&&Jc(rt),!Xt&&(Me=Ve&&Ve.onVnodeBeforeMount)&&Vr(Me,ut,G),Oo(F,!0);{$t.ce&&$t.ce._def.shadowRoot!==!1&&$t.ce._injectChildStyle(lt);const Bt=F.subTree=fv(F);$(null,Bt,Y,fe,F,pe,he),G.el=Bt.el}if(st&&Qn(st,pe),!Xt&&(Me=Ve&&Ve.onVnodeMounted)){const Bt=G;Qn(()=>Vr(Me,ut,Bt),pe)}(G.shapeFlag&256||ut&&Fs(ut.vnode)&&ut.vnode.shapeFlag&256)&&F.a&&Qn(F.a,pe),F.isMounted=!0,G=Y=fe=null}};F.scope.on();const ve=F.effect=new cb(Ee);F.scope.off();const be=F.update=ve.run.bind(ve),He=F.job=ve.runIfDirty.bind(ve);He.i=F,He.id=F.uid,ve.scheduler=()=>cp(He),Oo(F,!0),be()},B=(F,G,Y)=>{G.component=F;const fe=F.vnode.props;F.vnode=G,F.next=null,WT(F,G.props,fe,Y),VT(F,G.children,Y),ki(),rv(F),Ti()},ie=(F,G,Y,fe,pe,he,Ce,Ee,ve=!1)=>{const be=F&&F.children,He=F?F.shapeFlag:0,Me=G.children,{patchFlag:De,shapeFlag:Ve}=G;if(De>0){if(De&128){we(be,Me,Y,fe,pe,he,Ce,Ee,ve);return}else if(De&256){ue(be,Me,Y,fe,pe,he,Ce,Ee,ve);return}}Ve&8?(He&16&&re(be,pe,he),Me!==be&&g(Y,Me)):He&16?Ve&16?we(be,Me,Y,fe,pe,he,Ce,Ee,ve):re(be,pe,he,!0):(He&8&&g(Y,""),Ve&16&&Q(Me,Y,fe,pe,he,Ce,Ee,ve))},ue=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{F=F||Os,G=G||Os;const be=F.length,He=G.length,Me=Math.min(be,He);let De;for(De=0;De<Me;De++){const Ve=G[De]=ve?Zi(G[De]):Ar(G[De]);$(F[De],Ve,Y,null,pe,he,Ce,Ee,ve)}be>He?re(F,pe,he,!0,!1,Me):Q(G,Y,fe,pe,he,Ce,Ee,ve,Me)},we=(F,G,Y,fe,pe,he,Ce,Ee,ve)=>{let be=0;const He=G.length;let Me=F.length-1,De=He-1;for(;be<=Me&&be<=De;){const Ve=F[be],rt=G[be]=ve?Zi(G[be]):Ar(G[be]);if(Kr(Ve,rt))$(Ve,rt,Y,null,pe,he,Ce,Ee,ve);else break;be++}for(;be<=Me&&be<=De;){const Ve=F[Me],rt=G[De]=ve?Zi(G[De]):Ar(G[De]);if(Kr(Ve,rt))$(Ve,rt,Y,null,pe,he,Ce,Ee,ve);else break;Me--,De--}if(be>Me){if(be<=De){const Ve=De+1,rt=Ve<He?G[Ve].el:fe;for(;be<=De;)$(null,G[be]=ve?Zi(G[be]):Ar(G[be]),Y,rt,pe,he,Ce,Ee,ve),be++}}else if(be>De)for(;be<=Me;)qe(F[be],pe,he,!0),be++;else{const Ve=be,rt=be,st=new Map;for(be=rt;be<=De;be++){const Ft=G[be]=ve?Zi(G[be]):Ar(G[be]);Ft.key!=null&&st.set(Ft.key,be)}let ut,$t=0;const lt=De-rt+1;let Xt=!1,Bt=0;const Dn=new Array(lt);for(be=0;be<lt;be++)Dn[be]=0;for(be=Ve;be<=Me;be++){const Ft=F[be];if($t>=lt){qe(Ft,pe,he,!0);continue}let Fn;if(Ft.key!=null)Fn=st.get(Ft.key);else for(ut=rt;ut<=De;ut++)if(Dn[ut-rt]===0&&Kr(Ft,G[ut])){Fn=ut;break}Fn===void 0?qe(Ft,pe,he,!0):(Dn[Fn-rt]=be+1,Fn>=Bt?Bt=Fn:Xt=!0,$(Ft,G[Fn],Y,null,pe,he,Ce,Ee,ve),$t++)}const Hr=Xt?JT(Dn):Os;for(ut=Hr.length-1,be=lt-1;be>=0;be--){const Ft=rt+be,Fn=G[Ft],tt=G[Ft+1],So=Ft+1<He?tt.el||tt.placeholder:fe;Dn[be]===0?$(null,Fn,Y,So,pe,he,Ce,Ee,ve):Xt&&(ut<0||be!==Hr[ut]?Pe(Fn,Y,So,2):ut--)}}},Pe=(F,G,Y,fe,pe=null)=>{const{el:he,type:Ce,transition:Ee,children:ve,shapeFlag:be}=F;if(be&6){Pe(F.component.subTree,G,Y,fe);return}if(be&128){F.suspense.move(G,Y,fe);return}if(be&64){Ce.move(F,G,Y,ae);return}if(Ce===nt){i(he,G,Y);for(let Me=0;Me<ve.length;Me++)Pe(ve[Me],G,Y,fe);i(F.anchor,G,Y);return}if(Ce===xd){O(F,G,Y);return}if(fe!==2&&be&1&&Ee)if(fe===0)Ee.beforeEnter(he),i(he,G,Y),Qn(()=>Ee.enter(he),pe);else{const{leave:Me,delayLeave:De,afterLeave:Ve}=Ee,rt=()=>{F.ctx.isUnmounted?s(he):i(he,G,Y)},st=()=>{Me(he,()=>{rt(),Ve&&Ve()})};De?De(he,rt,st):st()}else i(he,G,Y)},qe=(F,G,Y,fe=!1,pe=!1)=>{const{type:he,props:Ce,ref:Ee,children:ve,dynamicChildren:be,shapeFlag:He,patchFlag:Me,dirs:De,cacheIndex:Ve}=F;if(Me===-2&&(pe=!1),Ee!=null&&(ki(),ta(Ee,null,Y,F,!0),Ti()),Ve!=null&&(G.renderCache[Ve]=void 0),He&256){G.ctx.deactivate(F);return}const rt=He&1&&De,st=!Fs(F);let ut;if(st&&(ut=Ce&&Ce.onVnodeBeforeUnmount)&&Vr(ut,G,F),He&6)Je(F.component,Y,fe);else{if(He&128){F.suspense.unmount(Y,fe);return}rt&&Po(F,null,G,"beforeUnmount"),He&64?F.type.remove(F,G,Y,ae,fe):be&&!be.hasOnce&&(he!==nt||Me>0&&Me&64)?re(be,G,Y,!1,!0):(he===nt&&Me&384||!pe&&He&16)&&re(ve,G,Y),fe&&Ze(F)}(st&&(ut=Ce&&Ce.onVnodeUnmounted)||rt)&&Qn(()=>{ut&&Vr(ut,G,F),rt&&Po(F,null,G,"unmounted")},Y)},Ze=F=>{const{type:G,el:Y,anchor:fe,transition:pe}=F;if(G===nt){Ke(Y,fe);return}if(G===xd){k(F);return}const he=()=>{s(Y),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(F.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ce,delayLeave:Ee}=pe,ve=()=>Ce(Y,he);Ee?Ee(F.el,he,ve):ve()}else he()},Ke=(F,G)=>{let Y;for(;F!==G;)Y=y(F),s(F),F=Y;s(G)},Je=(F,G,Y)=>{const{bum:fe,scope:pe,job:he,subTree:Ce,um:Ee,m:ve,a:be,parent:He,slots:{__:Me}}=F;uv(ve),uv(be),fe&&Jc(fe),He&&Fe(Me)&&Me.forEach(De=>{He.renderCache[De]=void 0}),pe.stop(),he&&(he.flags|=8,qe(Ce,F,G,Y)),Ee&&Qn(Ee,G),Qn(()=>{F.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},re=(F,G,Y,fe=!1,pe=!1,he=0)=>{for(let Ce=he;Ce<F.length;Ce++)qe(F[Ce],G,Y,fe,pe)},V=F=>{if(F.shapeFlag&6)return V(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const G=y(F.anchor||F.el),Y=G&&G[pT];return Y?y(Y):G};let ee=!1;const J=(F,G,Y)=>{F==null?G._vnode&&qe(G._vnode,null,null,!0):$(G._vnode||null,F,G,null,null,null,Y),G._vnode=F,ee||(ee=!0,rv(),Lb(),ee=!1)},ae={p:$,um:qe,m:Pe,r:Ze,mt:P,mc:Q,pc:ie,pbc:q,n:V,o:e};return{render:J,hydrate:void 0,createApp:HT(J)}}function wd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Oo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function KT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rw(e,t,n=!1){const i=e.children,s=t.children;if(Fe(i)&&Fe(s))for(let l=0;l<i.length;l++){const u=i[l];let f=s[l];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=s[l]=Zi(s[l]),f.el=u.el),!n&&f.patchFlag!==-2&&rw(u,f)),f.type===nf&&(f.el=u.el),f.type===sn&&!f.el&&(f.el=u.el)}}function JT(e){const t=e.slice(),n=[0];let i,s,l,u,f;const h=e.length;for(i=0;i<h;i++){const p=e[i];if(p!==0){if(s=n[n.length-1],e[s]<p){t[i]=s,n.push(i);continue}for(l=0,u=n.length-1;l<u;)f=l+u>>1,e[n[f]]<p?l=f+1:u=f;p<e[n[l]]&&(l>0&&(t[i]=n[l-1]),n[l]=i)}}for(l=n.length,u=n[l-1];l-- >0;)n[l]=u,u=t[u];return n}function iw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:iw(t)}function uv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const YT=Symbol.for("v-scx"),ZT=()=>bn(YT);function pp(e,t){return Qu(e,null,t)}function QT(e,t){return Qu(e,null,{flush:"sync"})}function St(e,t,n){return Qu(e,t,n)}function Qu(e,t,n=vt){const{immediate:i,deep:s,flush:l,once:u}=n,f=rn({},n),h=t&&i||!t&&l!=="post";let p;if(ya){if(l==="sync"){const w=ZT();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Yr,w.resume=Yr,w.pause=Yr,w}}const g=wn;f.call=(w,L,$)=>Ir(w,g,L,$);let v=!1;l==="post"?f.scheduler=w=>{Qn(w,g&&g.suspense)}:l!=="sync"&&(v=!0,f.scheduler=(w,L)=>{L?w():cp(w)}),f.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const y=fT(e,t,f);return ya&&(p?p.push(y):h&&y()),y}function eC(e,t,n){const i=this.proxy,s=Dt(e)?e.includes(".")?ow(i,e):()=>i[e]:e.bind(i,i);let l;Ge(t)?l=t:(l=t.handler,n=t);const u=Wa(this),f=Qu(s,l.bind(i),n);return u(),f}function ow(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}function ef(e,t,n=vt){const i=$i(),s=ir(t),l=Ai(t),u=sw(e,s),f=Tb((h,p)=>{let g,v=vt,y;return QT(()=>{const w=e[s];Vn(g,w)&&(g=w,p())}),{get(){return h(),n.get?n.get(g):g},set(w){const L=n.set?n.set(w):w;if(!Vn(L,g)&&!(v!==vt&&Vn(w,v)))return;const $=i.vnode.props;$&&(t in $||s in $||l in $)&&(`onUpdate:${t}`in $||`onUpdate:${s}`in $||`onUpdate:${l}`in $)||(g=w,p()),i.emit(`update:${t}`,L),Vn(w,L)&&Vn(w,v)&&!Vn(L,y)&&p(),v=w,y=L}}});return f[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?u||vt:f,done:!1}:{done:!0}}}},f}const sw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${Ai(t)}Modifiers`];function tC(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||vt;let s=n;const l=t.startsWith("update:"),u=l&&sw(i,t.slice(7));u&&(u.trim&&(s=n.map(g=>Dt(g)?g.trim():g)),u.number&&(s=n.map(Zd)));let f,h=i[f=Kc(t)]||i[f=Kc(ir(t))];!h&&l&&(h=i[f=Kc(Ai(t))]),h&&Ir(h,e,6,s);const p=i[f+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Ir(p,e,6,s)}}function lw(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const l=e.emits;let u={},f=!1;if(!Ge(e)){const h=p=>{const g=lw(p,t,!0);g&&(f=!0,rn(u,g))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!l&&!f?(_t(e)&&i.set(e,null),null):(Fe(l)?l.forEach(h=>u[h]=null):rn(u,l),_t(e)&&i.set(e,u),u)}function tf(e,t){return!e||!Bu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ai(t))||wt(e,t))}function fv(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[l],slots:u,attrs:f,emit:h,render:p,renderCache:g,props:v,data:y,setupState:w,ctx:L,inheritAttrs:$}=e,C=pu(e);let E,N;try{if(n.shapeFlag&4){const k=s||i,z=k;E=Ar(p.call(z,k,g,v,w,y,L)),N=f}else{const k=t;E=Ar(k.length>1?k(v,{attrs:f,slots:u,emit:h}):k(v,null)),N=t.props?f:rC(f)}}catch(k){ra.length=0,Ha(k,e,1),E=Ie(sn)}let O=E;if(N&&$!==!1){const k=Object.keys(N),{shapeFlag:z}=O;k.length&&z&7&&(l&&k.some(Zh)&&(N=iC(N,l)),O=ho(O,N,!1,!0))}return n.dirs&&(O=ho(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&ga(O,n.transition),E=O,pu(C),E}function nC(e,t=!0){let n;for(let i=0;i<e.length;i++){const s=e[i];if(Ys(s)){if(s.type!==sn||s.children==="v-if"){if(n)return;n=s}}else return}return n}const rC=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bu(n))&&((t||(t={}))[n]=e[n]);return t},iC=(e,t)=>{const n={};for(const i in e)(!Zh(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function oC(e,t,n){const{props:i,children:s,component:l}=e,{props:u,children:f,patchFlag:h}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return i?dv(i,u,p):!!u;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const y=g[v];if(u[y]!==i[y]&&!tf(p,y))return!0}}}else return(s||f)&&(!f||!f.$stable)?!0:i===u?!1:i?u?dv(i,u,p):!0:!!u;return!1}function dv(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let s=0;s<i.length;s++){const l=i[s];if(t[l]!==e[l]&&!tf(n,l))return!0}return!1}function gp({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const aw=e=>e.__isSuspense;let ch=0;const sC={name:"Suspense",__isSuspense:!0,process(e,t,n,i,s,l,u,f,h,p){if(e==null)lC(t,n,i,s,l,u,f,h,p);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}aC(e,t,n,i,s,u,f,h,p)}},hydrate:cC,normalize:uC},mp=sC;function va(e,t){const n=e.props&&e.props[t];Ge(n)&&n()}function lC(e,t,n,i,s,l,u,f,h){const{p,o:{createElement:g}}=h,v=g("div"),y=e.suspense=cw(e,s,i,t,v,n,l,u,f,h);p(null,y.pendingBranch=e.ssContent,v,null,i,y,l,u),y.deps>0?(va(e,"onPending"),va(e,"onFallback"),p(null,e.ssFallback,t,n,i,null,l,u),Hs(y,e.ssFallback)):y.resolve(!1,!0)}function aC(e,t,n,i,s,l,u,f,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const y=t.ssContent,w=t.ssFallback,{activeBranch:L,pendingBranch:$,isInFallback:C,isHydrating:E}=v;if($)v.pendingBranch=y,Kr(y,$)?(h($,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0?v.resolve():C&&(E||(h(L,w,n,i,s,null,l,u,f),Hs(v,w)))):(v.pendingId=ch++,E?(v.isHydrating=!1,v.activeBranch=$):p($,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),C?(h(null,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0?v.resolve():(h(L,w,n,i,s,null,l,u,f),Hs(v,w))):L&&Kr(y,L)?(h(L,y,n,i,s,v,l,u,f),v.resolve(!0)):(h(null,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0&&v.resolve()));else if(L&&Kr(y,L))h(L,y,n,i,s,v,l,u,f),Hs(v,y);else if(va(t,"onPending"),v.pendingBranch=y,y.shapeFlag&512?v.pendingId=y.component.suspenseId:v.pendingId=ch++,h(null,y,v.hiddenContainer,null,s,v,l,u,f),v.deps<=0)v.resolve();else{const{timeout:N,pendingId:O}=v;N>0?setTimeout(()=>{v.pendingId===O&&v.fallback(w)},N):N===0&&v.fallback(w)}}function cw(e,t,n,i,s,l,u,f,h,p,g=!1){const{p:v,m:y,um:w,n:L,o:{parentNode:$,remove:C}}=p;let E;const N=dC(e);N&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const O=e.props?rb(e.props.timeout):void 0,k=l,z={vnode:e,parent:t,parentComponent:n,namespace:u,container:i,hiddenContainer:s,deps:0,pendingId:ch++,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(D=!1,oe=!1){const{vnode:Q,activeBranch:W,pendingBranch:q,pendingId:U,effects:A,parentComponent:I,container:P}=z;let S=!1;z.isHydrating?z.isHydrating=!1:D||(S=W&&q.transition&&q.transition.mode==="out-in",S&&(W.transition.afterLeave=()=>{U===z.pendingId&&(y(q,P,l===k?L(W):l,0),nh(A))}),W&&($(W.el)===P&&(l=L(W)),w(W,I,z,!0)),S||y(q,P,l,0)),Hs(z,q),z.pendingBranch=null,z.isInFallback=!1;let R=z.parent,B=!1;for(;R;){if(R.pendingBranch){R.effects.push(...A),B=!0;break}R=R.parent}!B&&!S&&nh(A),z.effects=[],N&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!oe&&t.resolve()),va(Q,"onResolve")},fallback(D){if(!z.pendingBranch)return;const{vnode:oe,activeBranch:Q,parentComponent:W,container:q,namespace:U}=z;va(oe,"onFallback");const A=L(Q),I=()=>{z.isInFallback&&(v(null,D,q,A,W,null,U,f,h),Hs(z,D))},P=D.transition&&D.transition.mode==="out-in";P&&(Q.transition.afterLeave=I),z.isInFallback=!0,w(Q,W,null,!0),P||I()},move(D,oe,Q){z.activeBranch&&y(z.activeBranch,D,oe,Q),z.container=D},next(){return z.activeBranch&&L(z.activeBranch)},registerDep(D,oe,Q){const W=!!z.pendingBranch;W&&z.deps++;const q=D.vnode.el;D.asyncDep.catch(U=>{Ha(U,D,0)}).then(U=>{if(D.isUnmounted||z.isUnmounted||z.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:A}=D;fh(D,U),q&&(A.el=q);const I=!q&&D.subTree.el;oe(D,A,$(q||D.subTree.el),q?null:L(D.subTree),z,u,Q),I&&C(I),gp(D,A.el),W&&--z.deps===0&&z.resolve()})},unmount(D,oe){z.isUnmounted=!0,z.activeBranch&&w(z.activeBranch,n,D,oe),z.pendingBranch&&w(z.pendingBranch,n,D,oe)}};return z}function cC(e,t,n,i,s,l,u,f,h){const p=t.suspense=cw(t,i,n,e.parentNode,document.createElement("div"),null,s,l,u,f,!0),g=h(e,p.pendingBranch=t.ssContent,n,p,l,u);return p.deps===0&&p.resolve(!1,!0),g}function uC(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=hv(i?n.default:n),e.ssFallback=i?hv(n.fallback):Ie(sn)}function hv(e){let t;if(Ge(e)){const n=Js&&e._c;n&&(e._d=!1,se()),e=e(),n&&(e._d=!0,t=Xn,uw())}return Fe(e)&&(e=nC(e)),e=Ar(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function fC(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):nh(e)}function Hs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,i&&i.subTree===n&&(i.vnode.el=s,gp(i,s))}function dC(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),nf=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),xd=Symbol.for("v-stc"),ra=[];let Xn=null;function se(e=!1){ra.push(Xn=e?null:[])}function uw(){ra.pop(),Xn=ra[ra.length-1]||null}let Js=1;function vu(e,t=!1){Js+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function fw(e){return e.dynamicChildren=Js>0?Xn||Os:null,uw(),Js>0&&Xn&&Xn.push(e),e}function ye(e,t,n,i,s,l){return fw(te(e,t,n,i,s,l,!0))}function Ye(e,t,n,i,s){return fw(Ie(e,t,n,i,s,!0))}function Ys(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}const dw=({key:e})=>e??null,Yc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||kt(e)||Ge(e)?{i:hn,r:e,k:t,f:!!n}:e:null);function te(e,t=null,n=null,i=0,s=null,l=e===nt?0:1,u=!1,f=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dw(t),ref:t&&Yc(t),scopeId:Ku,slotScopeIds:null,children:n,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:l,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:hn};return f?(vp(h,n),l&128&&e.normalize(h)):n&&(h.shapeFlag|=Dt(n)?8:16),Js>0&&!u&&Xn&&(h.patchFlag>0||l&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ie=hC;function hC(e,t=null,n=null,i=0,s=null,l=!1){if((!e||e===Wb)&&(e=sn),Ys(e)){const f=ho(e,t,!0);return n&&vp(f,n),Js>0&&!l&&Xn&&(f.shapeFlag&6?Xn[Xn.indexOf(e)]=f:Xn.push(f)),f.patchFlag=-2,f}if(xC(e)&&(e=e.__vccOpts),t){t=hw(t);let{class:f,style:h}=t;f&&!Dt(f)&&(t.class=ot(f)),_t(h)&&(lp(h)&&!Fe(h)&&(h=rn({},h)),t.style=tn(h))}const u=Dt(e)?1:aw(e)?128:Pb(e)?64:_t(e)?4:Ge(e)?2:0;return te(e,t,n,i,s,u,l,!0)}function hw(e){return e?lp(e)||Yb(e)?rn({},e):e:null}function ho(e,t,n=!1,i=!1){const{props:s,ref:l,patchFlag:u,children:f,transition:h}=e,p=t?_i(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&dw(p),ref:t&&t.ref?n&&l?Fe(l)?l.concat(Yc(t)):[l,Yc(t)]:Yc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ho(e.ssContent),ssFallback:e.ssFallback&&ho(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&i&&ga(g,h.clone(g)),g}function dt(e=" ",t=0){return Ie(nf,null,e,t)}function je(e="",t=!1){return t?(se(),Ye(sn,null,e)):Ie(sn,null,e)}function Ar(e){return e==null||typeof e=="boolean"?Ie(sn):Fe(e)?Ie(nt,null,e.slice()):Ys(e)?Zi(e):Ie(nf,null,String(e))}function Zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ho(e)}function vp(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Fe(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),vp(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Yb(t)?t._ctx=hn:s===3&&hn&&(hn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:hn},n=32):(t=String(t),i&64?(n=16,t=[dt(t)]):n=8);e.children=t,e.shapeFlag|=n}function _i(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const s in i)if(s==="class")t.class!==i.class&&(t.class=ot([t.class,i.class]));else if(s==="style")t.style=tn([t.style,i.style]);else if(Bu(s)){const l=t[s],u=i[s];u&&l!==u&&!(Fe(l)&&l.includes(u))&&(t[s]=l?[].concat(l,u):u)}else s!==""&&(t[s]=i[s])}return t}function Vr(e,t,n,i=null){Ir(e,t,7,[n,i])}const pC=Gb();let gC=0;function mC(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||pC,l={uid:gC++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ok(!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:Qb(i,s),emitsOptions:lw(i,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:i.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:n,suspenseId:n?n.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 l.ctx={_:l},l.root=t?t.root:l,l.emit=tC.bind(null,l),e.ce&&e.ce(l),l}let wn=null;const $i=()=>wn||hn;let yu,uh;{const e=Uu(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),l=>{s.length>1?s.forEach(u=>u(l)):s[0](l)}};yu=t("__VUE_INSTANCE_SETTERS__",n=>wn=n),uh=t("__VUE_SSR_SETTERS__",n=>ya=n)}const Wa=e=>{const t=wn;return yu(e),e.scope.on(),()=>{e.scope.off(),yu(t)}},pv=()=>{wn&&wn.scope.off(),yu(null)};function pw(e){return e.vnode.shapeFlag&4}let ya=!1;function vC(e,t=!1,n=!1){t&&uh(t);const{props:i,children:s}=e.vnode,l=pw(e);BT(e,i,l,t),UT(e,s,n||t);const u=l?yC(e,t):void 0;return t&&uh(!1),u}function yC(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,MT);const{setup:i}=n;if(i){ki();const s=e.setupContext=i.length>1?mw(e):null,l=Wa(e),u=Fa(i,e,0,[e.props,s]),f=eb(u);if(Ti(),l(),(f||e.sp)&&!Fs(e)&&Hb(e),f){if(u.then(pv,pv),t)return u.then(h=>{fh(e,h)}).catch(h=>{Ha(h,e,0)});e.asyncDep=u}else fh(e,u)}else gw(e)}function fh(e,t,n){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_t(t)&&(e.setupState=kb(t)),gw(e)}function gw(e,t,n){const i=e.type;e.render||(e.render=i.render||Yr);{const s=Wa(e);ki();try{PT(e)}finally{Ti(),s()}}}const bC={get(e,t){return yn(e,"get",""),e[t]}};function mw(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,bC),slots:e.slots,emit:e.emit,expose:t}}function rf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kb(ap(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in na)return na[n](e)},has(t,n){return n in t||n in na}})):e.proxy}function wC(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function xC(e){return Ge(e)&&"__vccOpts"in e}const _e=(e,t)=>cT(e,t,ya);function ja(e,t,n){const i=arguments.length;return i===2?_t(t)&&!Fe(t)?Ys(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ys(n)&&(n=[n]),Ie(e,t,n))}const SC="3.5.18";/**
14
+ * @vue/runtime-dom v3.5.18
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let dh;const gv=typeof window<"u"&&window.trustedTypes;if(gv)try{dh=gv.createPolicy("vue",{createHTML:e=>e})}catch{}const vw=dh?e=>dh.createHTML(e):e=>e,kC="http://www.w3.org/2000/svg",TC="http://www.w3.org/1998/Math/MathML",yi=typeof document<"u"?document:null,mv=yi&&yi.createElement("template"),CC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t==="svg"?yi.createElementNS(kC,e):t==="mathml"?yi.createElementNS(TC,e):n?yi.createElement(e,{is:n}):yi.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>yi.createTextNode(e),createComment:e=>yi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,l){const u=n?n.previousSibling:t.lastChild;if(s&&(s===l||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===l||!(s=s.nextSibling)););else{mv.innerHTML=vw(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const f=mv.content;if(i==="svg"||i==="mathml"){const h=f.firstChild;for(;h.firstChild;)f.appendChild(h.firstChild);f.removeChild(h)}t.insertBefore(f,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qi="transition",Hl="animation",ya=Symbol("_vtc"),yw={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},EC=on({},Ob,yw),AC=e=>(e.displayName="Transition",e.props=EC,e),LC=AC((e,{slots:t})=>Wa(yT,$C(e),t)),Po=(e,t=[])=>{Fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},vv=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function $C(e){const t={};for(const A in e)A in yw||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:i,duration:s,enterFromClass:l=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:f=`${n}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:g=f,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,L=MC(s),$=L&&L[0],C=L&&L[1],{onBeforeEnter:E,onEnter:N,onEnterCancelled:O,onLeave:k,onLeaveCancelled:z,onBeforeAppear:D=E,onAppear:oe=N,onAppearCancelled:Q=O}=t,W=(A,I,P,S)=>{A._enterCancelled=S,Oo(A,I?g:f),Oo(A,I?p:u),P&&P()},q=(A,I)=>{A._isLeaving=!1,Oo(A,v),Oo(A,w),Oo(A,y),I&&I()},U=A=>(I,P)=>{const S=A?oe:N,R=()=>W(I,A,P);Po(S,[I,R]),yv(()=>{Oo(I,A?h:l),pi(I,A?g:f),vv(S)||bv(I,i,$,R)})};return on(t,{onBeforeEnter(A){Po(E,[A]),pi(A,l),pi(A,u)},onBeforeAppear(A){Po(D,[A]),pi(A,h),pi(A,p)},onEnter:U(!1),onAppear:U(!0),onLeave(A,I){A._isLeaving=!0;const P=()=>q(A,I);pi(A,v),A._enterCancelled?(pi(A,y),Sv()):(Sv(),pi(A,y)),yv(()=>{A._isLeaving&&(Oo(A,v),pi(A,w),vv(k)||bv(A,i,C,P))}),Po(k,[A,P])},onEnterCancelled(A){W(A,!1,void 0,!0),Po(O,[A])},onAppearCancelled(A){W(A,!0,void 0,!0),Po(Q,[A])},onLeaveCancelled(A){q(A),Po(z,[A])}})}function MC(e){if(e==null)return null;if(_t(e))return[Sd(e.enter),Sd(e.leave)];{const t=Sd(e);return[t,t]}}function Sd(e){return rb(e)}function pi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ya]||(e[ya]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[ya];n&&(n.delete(t),n.size||(e[ya]=void 0))}function yv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let NC=0;function bv(e,t,n,i){const s=e._endId=++NC,l=()=>{s===e._endId&&i()};if(n!=null)return setTimeout(l,n);const{type:u,timeout:f,propCount:h}=IC(e,t);if(!u)return i();const p=u+"end";let g=0;const v=()=>{e.removeEventListener(p,y),l()},y=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},f+1),e.addEventListener(p,y)}function IC(e,t){const n=window.getComputedStyle(e),i=L=>(n[L]||"").split(", "),s=i(`${qi}Delay`),l=i(`${qi}Duration`),u=wv(s,l),f=i(`${Hl}Delay`),h=i(`${Hl}Duration`),p=wv(f,h);let g=null,v=0,y=0;t===qi?u>0&&(g=qi,v=u,y=l.length):t===Hl?p>0&&(g=Hl,v=p,y=h.length):(v=Math.max(u,p),g=v>0?u>p?qi:Hl:null,y=g?g===qi?l.length:h.length:0);const w=g===qi&&/\b(transform|all)(,|$)/.test(i(`${qi}Property`).toString());return{type:g,timeout:v,propCount:y,hasTransform:w}}function wv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>xv(n)+xv(e[i])))}function xv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sv(){return document.body.offsetHeight}function PC(e,t,n){const i=e[ya];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bu=Symbol("_vod"),bw=Symbol("_vsh"),to={beforeMount(e,{value:t},{transition:n}){e[bu]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Bl(e,!0),i.enter(e)):i.leave(e,()=>{Bl(e,!1)}):Bl(e,t))},beforeUnmount(e,{value:t}){Bl(e,t)}};function Bl(e,t){e.style.display=t?e[bu]:"none",e[bw]=!t}const OC=Symbol(""),RC=/(^|;)\s*display\s*:/;function zC(e,t,n){const i=e.style,s=Dt(n);let l=!1;if(n&&!s){if(t)if(Dt(t))for(const u of t.split(";")){const f=u.slice(0,u.indexOf(":")).trim();n[f]==null&&Zc(i,f,"")}else for(const u in t)n[u]==null&&Zc(i,u,"");for(const u in n)u==="display"&&(l=!0),Zc(i,u,n[u])}else if(s){if(t!==n){const u=i[OC];u&&(n+=";"+u),i.cssText=n,l=RC.test(n)}}else t&&e.removeAttribute("style");bu in e&&(e[bu]=l?i.display:"",e[bw]&&(i.display="none"))}const _v=/\s*!important$/;function Zc(e,t,n){if(Fe(n))n.forEach(i=>Zc(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=DC(e,t);_v.test(n)?e.setProperty(Ai(i),n.replace(_v,""),"important"):e[i]=n}}const kv=["Webkit","Moz","ms"],_d={};function DC(e,t){const n=_d[t];if(n)return n;let i=ir(t);if(i!=="filter"&&i in e)return _d[t]=i;i=qu(i);for(let s=0;s<kv.length;s++){const l=kv[s]+i;if(l in e)return _d[t]=l}return t}const Tv="http://www.w3.org/1999/xlink";function Cv(e,t,n,i,s,l=Pk(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Tv,t.slice(6,t.length)):e.setAttributeNS(Tv,t,n):n==null||l&&!ib(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Nr(n)?String(n):n)}function Ev(e,t,n,i,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vw(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const f=l==="OPTION"?e.getAttribute("value")||"":e.value,h=n==null?e.type==="checkbox"?"on":"":String(n);(f!==h||!("_value"in e))&&(e.value=h),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=ib(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(s||t)}function Ho(e,t,n,i){e.addEventListener(t,n,i)}function FC(e,t,n,i){e.removeEventListener(t,n,i)}const Av=Symbol("_vei");function HC(e,t,n,i,s=null){const l=e[Av]||(e[Av]={}),u=l[t];if(i&&u)u.value=i;else{const[f,h]=BC(t);if(i){const p=l[t]=qC(i,s);Ho(e,f,p,h)}else u&&(FC(e,f,u,h),l[t]=void 0)}}const Lv=/(?:Once|Passive|Capture)$/;function BC(e){let t;if(Lv.test(e)){t={};let i;for(;i=e.match(Lv);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ai(e.slice(2)),t]}let kd=0;const WC=Promise.resolve(),jC=()=>kd||(WC.then(()=>kd=0),kd=Date.now());function qC(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ir(UC(i,n.value),t,5,[i])};return n.value=e,n.attached=jC(),n}function UC(e,t){if(Fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const $v=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,VC=(e,t,n,i,s,l)=>{const u=s==="svg";t==="class"?PC(e,i,u):t==="style"?zC(e,n,i):Bu(t)?Zh(t)||HC(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):GC(e,t,i,u))?(Ev(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cv(e,t,i,u,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(i))?Ev(e,ir(t),i,l,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Cv(e,t,i,u))};function GC(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&$v(t)&&Ge(n));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 $v(t)&&Dt(n)?!1:t in e}const wu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?n=>Jc(t,n):t};function XC(e){e.target.composing=!0}function Mv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hs=Symbol("_assign"),KC={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Hs]=wu(s);const l=i||s.props&&s.props.type==="number";Ho(e,t?"change":"input",u=>{if(u.target.composing)return;let f=e.value;n&&(f=f.trim()),l&&(f=Zd(f)),e[Hs](f)}),n&&Ho(e,"change",()=>{e.value=e.value.trim()}),t||(Ho(e,"compositionstart",XC),Ho(e,"compositionend",Mv),Ho(e,"change",Mv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:s,number:l}},u){if(e[Hs]=wu(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?Zd(e.value):e.value,h=t??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||s&&e.value.trim()===h)||(e.value=h))}},ww={deep:!0,created(e,t,n){e[Hs]=wu(n),Ho(e,"change",()=>{const i=e._modelValue,s=JC(e),l=e.checked,u=e[Hs];if(Fe(i)){const f=ob(i,s),h=f!==-1;if(l&&!h)u(i.concat(s));else if(!l&&h){const p=[...i];p.splice(f,1),u(p)}}else if(Wu(i)){const f=new Set(i);l?f.add(s):f.delete(s),u(f)}else u(xw(e,l))})},mounted:Nv,beforeUpdate(e,t,n){e[Hs]=wu(n),Nv(e,t,n)}};function Nv(e,{value:t,oldValue:n},i){e._modelValue=t;let s;if(Fe(t))s=ob(t,i.props.value)>-1;else if(Wu(t))s=t.has(i.props.value);else{if(t===n)return;s=Vu(t,xw(e,!0))}e.checked!==s&&(e.checked=s)}function JC(e){return"_value"in e?e._value:e.value}function xw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const YC=["ctrl","shift","alt","meta"],ZC={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)=>YC.some(n=>e[`${n}Key`]&&!t.includes(n))},Qc=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(s,...l)=>{for(let u=0;u<t.length;u++){const f=ZC[t[u]];if(f&&f(s,t))return}return e(s,...l)})},QC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hh=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=s=>{if(!("key"in s))return;const l=Ai(s.key);if(t.some(u=>u===l||QC[u]===l))return e(s)})},eE=on({patchProp:VC},CC);let Iv;function tE(){return Iv||(Iv=XT(eE))}const Sw=(...e)=>{const t=tE().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=rE(i);if(!s)return;const l=t._component;!Ge(l)&&!l.render&&!l.template&&(l.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=n(s,!1,nE(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t};function nE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rE(e){return Dt(e)?document.querySelector(e):e}const ni=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},iE={};function oE(e,t){const n=Go("RouterView");return se(),Ye(n)}const sE=ni(iE,[["render",oE]]),lE=["top","right","bottom","left"],Pv=["start","end"],Ov=lE.reduce((e,t)=>e.concat(t,t+"-"+Pv[0],t+"-"+Pv[1]),[]),ba=Math.min,Do=Math.max,aE={left:"right",right:"left",bottom:"top",top:"bottom"},cE={start:"end",end:"start"};function ph(e,t,n){return Do(e,ba(t,n))}function Jo(e,t){return typeof e=="function"?e(t):e}function ti(e){return e.split("-")[0]}function Mr(e){return e.split("-")[1]}function _w(e){return e==="x"?"y":"x"}function yp(e){return e==="y"?"height":"width"}function ja(e){return["top","bottom"].includes(ti(e))?"y":"x"}function bp(e){return _w(ja(e))}function kw(e,t,n){n===void 0&&(n=!1);const i=Mr(e),s=bp(e),l=yp(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Su(u)),[u,Su(u)]}function uE(e){const t=Su(e);return[xu(e),t,xu(t)]}function xu(e){return e.replace(/start|end/g,t=>cE[t])}function fE(e,t,n){const i=["left","right"],s=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:i:t?i:s;case"left":case"right":return t?l:u;default:return[]}}function dE(e,t,n,i){const s=Mr(e);let l=fE(ti(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(xu)))),l}function Su(e){return e.replace(/left|right|bottom|top/g,t=>aE[t])}function hE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tw(e){return typeof e!="number"?hE(e):{top:e,right:e,bottom:e,left:e}}function ra(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Rv(e,t,n){let{reference:i,floating:s}=e;const l=ja(t),u=bp(t),f=yp(u),h=ti(t),p=l==="y",g=i.x+i.width/2-s.width/2,v=i.y+i.height/2-s.height/2,y=i[f]/2-s[f]/2;let w;switch(h){case"top":w={x:g,y:i.y-s.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:v};break;case"left":w={x:i.x-s.width,y:v};break;default:w={x:i.x,y:i.y}}switch(Mr(t)){case"start":w[u]-=y*(n&&p?-1:1);break;case"end":w[u]+=y*(n&&p?-1:1);break}return w}const pE=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Rv(p,i,h),y=i,w={},L=0;for(let $=0;$<f.length;$++){const{name:C,fn:E}=f[$],{x:N,y:O,data:k,reset:z}=await E({x:g,y:v,initialPlacement:i,placement:y,strategy:s,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});g=N??g,v=O??v,w={...w,[C]:{...w[C],...k}},z&&L<=50&&(L++,typeof z=="object"&&(z.placement&&(y=z.placement),z.rects&&(p=z.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:g,y:v}=Rv(p,y,h)),$=-1)}return{x:g,y:v,placement:y,strategy:s,middlewareData:w}};async function of(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:y=!1,padding:w=0}=Jo(t,e),L=Tw(w),C=f[y?v==="floating"?"reference":"floating":v],E=ra(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(C)))==null||n?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:h})),N=v==="floating"?{...u.floating,x:i,y:s}:u.reference,O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),k=await(l.isElement==null?void 0:l.isElement(O))?await(l.getScale==null?void 0:l.getScale(O))||{x:1,y:1}:{x:1,y:1},z=ra(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:O,strategy:h}):N);return{top:(E.top-z.top+L.top)/k.y,bottom:(z.bottom-E.bottom+L.bottom)/k.y,left:(E.left-z.left+L.left)/k.x,right:(z.right-E.right+L.right)/k.x}}const gE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:p,padding:g=0}=Jo(e,t)||{};if(p==null)return{};const v=Tw(g),y={x:n,y:i},w=bp(s),L=yp(w),$=await u.getDimensions(p),C=w==="y",E=C?"top":"left",N=C?"bottom":"right",O=C?"clientHeight":"clientWidth",k=l.reference[L]+l.reference[w]-y[w]-l.floating[L],z=y[w]-l.reference[w],D=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let oe=D?D[O]:0;(!oe||!await(u.isElement==null?void 0:u.isElement(D)))&&(oe=f.floating[O]||l.floating[L]);const Q=k/2-z/2,W=oe/2-$[L]/2-1,q=ba(v[E],W),U=ba(v[N],W),A=q,I=oe-$[L]-U,P=oe/2-$[L]/2+Q,S=ph(A,P,I),R=!h.arrow&&Mr(s)!=null&&P!==S&&l.reference[L]/2-(P<A?q:U)-$[L]/2<0,B=R?P<A?P-A:P-I:0;return{[w]:y[w]+B,data:{[w]:S,centerOffset:P-S-B,...R&&{alignmentOffset:B}},reset:R}}});function mE(e,t,n){return(e?[...n.filter(s=>Mr(s)===e),...n.filter(s=>Mr(s)!==e)]:n.filter(s=>ti(s)===s)).filter(s=>e?Mr(s)===e||(t?xu(s)!==s:!1):!0)}const vE=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,s;const{rects:l,middlewareData:u,placement:f,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:y=Ov,autoAlignment:w=!0,...L}=Jo(e,t),$=v!==void 0||y===Ov?mE(v||null,w,y):y,C=await of(t,L),E=((n=u.autoPlacement)==null?void 0:n.index)||0,N=$[E];if(N==null)return{};const O=kw(N,l,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(f!==N)return{reset:{placement:$[0]}};const k=[C[ti(N)],C[O[0]],C[O[1]]],z=[...((i=u.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:k}],D=$[E+1];if(D)return{data:{index:E+1,overflows:z},reset:{placement:D}};const oe=z.map(q=>{const U=Mr(q.placement);return[q.placement,U&&g?q.overflows.slice(0,2).reduce((A,I)=>A+I,0):q.overflows[0],q.overflows]}).sort((q,U)=>q[1]-U[1]),W=((s=oe.filter(q=>q[2].slice(0,Mr(q[0])?2:3).every(U=>U<=0))[0])==null?void 0:s[0])||oe[0][0];return W!==f?{data:{index:E+1,overflows:z},reset:{placement:W}}:{}}}},yE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:$=!0,...C}=Jo(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=ti(s),N=ti(f)===f,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),k=y||(N||!$?[Su(f)]:uE(f));!y&&L!=="none"&&k.push(...dE(f,$,L,O));const z=[f,...k],D=await of(t,C),oe=[];let Q=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&oe.push(D[E]),v){const A=kw(s,u,O);oe.push(D[A[0]],D[A[1]])}if(Q=[...Q,{placement:s,overflows:oe}],!oe.every(A=>A<=0)){var W,q;const A=(((W=l.flip)==null?void 0:W.index)||0)+1,I=z[A];if(I)return{data:{index:A,overflows:Q},reset:{placement:I}};let P=(q=Q.filter(S=>S.overflows[0]<=0).sort((S,R)=>S.overflows[1]-R.overflows[1])[0])==null?void 0:q.placement;if(!P)switch(w){case"bestFit":{var U;const S=(U=Q.map(R=>[R.placement,R.overflows.filter(B=>B>0).reduce((B,ie)=>B+ie,0)]).sort((R,B)=>R[1]-B[1])[0])==null?void 0:U[0];S&&(P=S);break}case"initialPlacement":P=f;break}if(s!==P)return{reset:{placement:P}}}return{}}}};async function bE(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=ti(n),f=Mr(n),h=ja(n)==="y",p=["left","top"].includes(u)?-1:1,g=l&&h?-1:1,v=Jo(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:L}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return f&&typeof L=="number"&&(w=f==="end"?L*-1:L),h?{x:w*g,y:y*p}:{x:y*p,y:w*g}}const wE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:u,middlewareData:f}=t,h=await bE(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:l+h.y,data:{...h,placement:u}}}}},xE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:C=>{let{x:E,y:N}=C;return{x:E,y:N}}},...h}=Jo(e,t),p={x:n,y:i},g=await of(t,h),v=ja(ti(s)),y=_w(v);let w=p[y],L=p[v];if(l){const C=y==="y"?"top":"left",E=y==="y"?"bottom":"right",N=w+g[C],O=w-g[E];w=ph(N,w,O)}if(u){const C=v==="y"?"top":"left",E=v==="y"?"bottom":"right",N=L+g[C],O=L-g[E];L=ph(N,L,O)}const $=f.fn({...t,[y]:w,[v]:L});return{...$,data:{x:$.x-n,y:$.y-i}}}}},SE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:l}=t,{apply:u=()=>{},...f}=Jo(e,t),h=await of(t,f),p=ti(n),g=Mr(n),v=ja(n)==="y",{width:y,height:w}=i.floating;let L,$;p==="top"||p==="bottom"?(L=p,$=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):($=p,L=g==="end"?"top":"bottom");const C=w-h[L],E=y-h[$],N=!t.middlewareData.shift;let O=C,k=E;if(v){const D=y-h.left-h.right;k=g||N?ba(E,D):D}else{const D=w-h.top-h.bottom;O=g||N?ba(C,D):D}if(N&&!g){const D=Do(h.left,0),oe=Do(h.right,0),Q=Do(h.top,0),W=Do(h.bottom,0);v?k=y-2*(D!==0||oe!==0?D+oe:Do(h.left,h.right)):O=w-2*(Q!==0||W!==0?Q+W:Do(h.top,h.bottom))}await u({...t,availableWidth:k,availableHeight:O});const z=await s.getDimensions(l.floating);return y!==z.width||w!==z.height?{reset:{rects:!0}}:{}}}};function fr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zr(e){return fr(e).getComputedStyle(e)}const zv=Math.min,ia=Math.max,_u=Math.round;function Cw(e){const t=Zr(e);let n=parseFloat(t.width),i=parseFloat(t.height);const s=e.offsetWidth,l=e.offsetHeight,u=_u(n)!==s||_u(i)!==l;return u&&(n=s,i=l),{width:n,height:i,fallback:u}}function ho(e){return Aw(e)?(e.nodeName||"").toLowerCase():""}let Oc;function Ew(){if(Oc)return Oc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Oc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Oc):navigator.userAgent}function Qr(e){return e instanceof fr(e).HTMLElement}function io(e){return e instanceof fr(e).Element}function Aw(e){return e instanceof fr(e).Node}function Dv(e){return typeof ShadowRoot>"u"?!1:e instanceof fr(e).ShadowRoot||e instanceof ShadowRoot}function sf(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(s)}function _E(e){return["table","td","th"].includes(ho(e))}function gh(e){const t=/firefox/i.test(Ew()),n=Zr(e),i=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!i&&i!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(s=>n.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const l=n.contain;return l!=null&&l.includes(s)})}function Lw(){return!/^((?!chrome|android).)*safari/i.test(Ew())}function wp(e){return["html","body","#document"].includes(ho(e))}function $w(e){return io(e)?e:e.contextElement}const Mw={x:1,y:1};function Bs(e){const t=$w(e);if(!Qr(t))return Mw;const n=t.getBoundingClientRect(),{width:i,height:s,fallback:l}=Cw(t);let u=(l?_u(n.width):n.width)/i,f=(l?_u(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}function wa(e,t,n,i){var s,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),f=$w(e);let h=Mw;t&&(i?io(i)&&(h=Bs(i)):h=Bs(e));const p=f?fr(f):window,g=!Lw()&&n;let v=(u.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,y=(u.top+(g&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/h.y,w=u.width/h.x,L=u.height/h.y;if(f){const $=fr(f),C=i&&io(i)?fr(i):i;let E=$.frameElement;for(;E&&i&&C!==$;){const N=Bs(E),O=E.getBoundingClientRect(),k=getComputedStyle(E);O.x+=(E.clientLeft+parseFloat(k.paddingLeft))*N.x,O.y+=(E.clientTop+parseFloat(k.paddingTop))*N.y,v*=N.x,y*=N.y,w*=N.x,L*=N.y,v+=O.x,y+=O.y,E=fr(E).frameElement}}return{width:w,height:L,top:y,right:v+w,bottom:y+L,left:v,x:v,y}}function oo(e){return((Aw(e)?e.ownerDocument:e.document)||window.document).documentElement}function lf(e){return io(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nw(e){return wa(oo(e)).left+lf(e).scrollLeft}function xa(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dv(e)&&e.host||oo(e);return Dv(t)?t.host:t}function Iw(e){const t=xa(e);return wp(t)?t.ownerDocument.body:Qr(t)&&sf(t)?t:Iw(t)}function ku(e,t){var n;t===void 0&&(t=[]);const i=Iw(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=fr(i);return s?t.concat(l,l.visualViewport||[],sf(i)?i:[]):t.concat(i,ku(i))}function Fv(e,t,n){return t==="viewport"?ra(function(i,s){const l=fr(i),u=oo(i),f=l.visualViewport;let h=u.clientWidth,p=u.clientHeight,g=0,v=0;if(f){h=f.width,p=f.height;const y=Lw();(y||!y&&s==="fixed")&&(g=f.offsetLeft,v=f.offsetTop)}return{width:h,height:p,x:g,y:v}}(e,n)):io(t)?ra(function(i,s){const l=wa(i,!0,s==="fixed"),u=l.top+i.clientTop,f=l.left+i.clientLeft,h=Qr(i)?Bs(i):{x:1,y:1};return{width:i.clientWidth*h.x,height:i.clientHeight*h.y,x:f*h.x,y:u*h.y}}(t,n)):ra(function(i){const s=oo(i),l=lf(i),u=i.ownerDocument.body,f=ia(s.scrollWidth,s.clientWidth,u.scrollWidth,u.clientWidth),h=ia(s.scrollHeight,s.clientHeight,u.scrollHeight,u.clientHeight);let p=-l.scrollLeft+Nw(i);const g=-l.scrollTop;return Zr(u).direction==="rtl"&&(p+=ia(s.clientWidth,u.clientWidth)-f),{width:f,height:h,x:p,y:g}}(oo(e)))}function Hv(e){return Qr(e)&&Zr(e).position!=="fixed"?e.offsetParent:null}function Bv(e){const t=fr(e);let n=Hv(e);for(;n&&_E(n)&&Zr(n).position==="static";)n=Hv(n);return n&&(ho(n)==="html"||ho(n)==="body"&&Zr(n).position==="static"&&!gh(n))?t:n||function(i){let s=xa(i);for(;Qr(s)&&!wp(s);){if(gh(s))return s;s=xa(s)}return null}(e)||t}function kE(e,t,n){const i=Qr(t),s=oo(t),l=wa(e,!0,n==="fixed",t);let u={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(i||!i&&n!=="fixed")if((ho(t)!=="body"||sf(s))&&(u=lf(t)),Qr(t)){const h=wa(t,!0);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else s&&(f.x=Nw(s));return{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}const TE={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const l=n==="clippingAncestors"?function(p,g){const v=g.get(p);if(v)return v;let y=ku(p).filter(C=>io(C)&&ho(C)!=="body"),w=null;const L=Zr(p).position==="fixed";let $=L?xa(p):p;for(;io($)&&!wp($);){const C=Zr($),E=gh($);(L?E||w:E||C.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=C:y=y.filter(N=>N!==$),$=xa($)}return g.set(p,y),y}(t,this._c):[].concat(n),u=[...l,i],f=u[0],h=u.reduce((p,g)=>{const v=Fv(t,g,s);return p.top=ia(v.top,p.top),p.right=zv(v.right,p.right),p.bottom=zv(v.bottom,p.bottom),p.left=ia(v.left,p.left),p},Fv(t,f,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:n,strategy:i}=e;const s=Qr(n),l=oo(n);if(n===l)return t;let u={scrollLeft:0,scrollTop:0},f={x:1,y:1};const h={x:0,y:0};if((s||!s&&i!=="fixed")&&((ho(n)!=="body"||sf(l))&&(u=lf(n)),Qr(n))){const p=wa(n);f=Bs(n),h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x,y:t.y*f.y-u.scrollTop*f.y+h.y}},isElement:io,getDimensions:function(e){return Qr(e)?Cw(e):e.getBoundingClientRect()},getOffsetParent:Bv,getDocumentElement:oo,getScale:Bs,async getElementRects(e){let{reference:t,floating:n,strategy:i}=e;const s=this.getOffsetParent||Bv,l=this.getDimensions;return{reference:kE(t,await s(n),i),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Zr(e).direction==="rtl"},CE=(e,t,n)=>{const i=new Map,s={platform:TE,...n},l={...s.platform,_c:i};return pE(e,t,{...s,platform:l})},so={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 Sa(e,t){let n=so.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=so.themes[n.$extend]||{}:(n=null,i=so[t]):n=null;while(n);return i}function EE(e){const t=[e];let n=so.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=so.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}function Wv(e){const t=[e];let n=so.themes[e]||{};do n.$extend?(t.push(n.$extend),n=so.themes[n.$extend]||{}):n=null;while(n);return t}let _a=!1;if(typeof window<"u"){_a=!1;try{const e=Object.defineProperty({},"passive",{get(){_a=!0}});window.addEventListener("test",null,e)}catch{}}let Pw=!1;typeof window<"u"&&typeof navigator<"u"&&(Pw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ow=["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 Uv(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Td(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const tr=[];let Ro=null;const Vv={};function Gv(e){let t=Vv[e];return t||(t=Vv[e]=[]),t}let mh=function(){};typeof window<"u"&&(mh=window.Element);function ft(e){return function(t){return Sa(t.theme,e)}}const Cd="__floating-vue__popper",Rw=()=>at({name:"VPopper",provide(){return{[Cd]:{parentPopper:this}}},inject:{[Cd]:{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:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Ow.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,mh,Boolean],default:ft("container")},boundary:{type:[String,mh],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("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[Cd])==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:n=!1}={}){var i,s;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!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 n;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}((n=this.parentPopper)==null?void 0:n.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(wE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(vE({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(xE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(yE({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(gE({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:s,middlewareData:l})=>{let u;const{centerOffset:f}=l.arrow;return i.startsWith("top")||i.startsWith("bottom")?u=Math.abs(f)>s.reference.width/2:u=Math.abs(f)>s.reference.height/2,{data:{overflow:u}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:l,middlewareData:u})=>{var f;if((f=u.autoSize)!=null&&f.skip)return{};let h,p;return l.startsWith("top")||l.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="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(SE({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:s})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const n=await CE(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ro&&this.instantMove&&Ro.instantMove&&Ro!==this.parentPopper){Ro.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ro=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Td(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ku(this.$_referenceNode),...ku(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(i.left+n.offsetLeft),l=t.y+t.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${s}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<tr.length;n++)t=tr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}tr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Wv(this.theme))Gv(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 Td(),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,Uv(tr,this),tr.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Wv(this.theme)){const i=Gv(n);Uv(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Ro===this&&(Ro=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Td(),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=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,jv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],jv,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,qv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],qv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(i=>i.addEventListener(t,n,_a?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,i,s){let l=n;i!=null&&(l=typeof i=="function"?i(l):i),l.forEach(u=>{const f=t[u];f&&this.$_registerEventListeners(e,f,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:s,handler:l}=n;!e||e===s?i.forEach(u=>u.removeEventListener(s,l)):t.push(n)}),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 n of this.$_targetNodes){const i=n.getAttribute(e);i&&(n.removeAttribute(e),n.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const i=e[n];i==null?t.removeAttribute(n):t.setAttribute(n,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(oa>=e.left&&oa<=e.right&&sa>=e.top&&sa<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=oa-Gi,i=sa-Xi,s=t.left+t.width/2-Gi+(t.top+t.height/2)-Xi+t.width+t.height,l=Gi+n*s,u=Xi+i*s;return Rc(Gi,Xi,l,u,t.left,t.top,t.left,t.bottom)||Rc(Gi,Xi,l,u,t.left,t.top,t.right,t.top)||Rc(Gi,Xi,l,u,t.right,t.top,t.right,t.bottom)||Rc(Gi,Xi,l,u,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(Pw){const e=_a?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Xv(t),e),document.addEventListener("touchend",t=>Kv(t,!0),e)}else window.addEventListener("mousedown",e=>Xv(e),!0),window.addEventListener("click",e=>Kv(e,!1),!0);window.addEventListener("resize",$E)}function Xv(e,t){for(let n=0;n<tr.length;n++){const i=tr[n];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function Kv(e,t){AE(e,t)}function AE(e,t){const n={};for(let i=tr.length-1;i>=0;i--){const s=tr[i];try{const l=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Jv(s,l,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let f=s.parentPopper;for(;f;)n[f.randomId]=!0,f=f.parentPopper;return}let u=s.parentPopper;for(;u&&Jv(u,u.containsGlobalTarget,e);)u.$_handleGlobalClose(e,t),u=u.parentPopper}})}catch{}}}function Jv(e,t,n){return n.closeAllPopover||n.closePopover&&t||LE(e,n)&&!t}function LE(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function $E(){for(let e=0;e<tr.length;e++)tr[e].$_computePosition()}function Yv(){for(let e=0;e<tr.length;e++)tr[e].hide()}let Gi=0,Xi=0,oa=0,sa=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Gi=oa,Xi=sa,oa=e.clientX,sa=e.clientY},_a?{passive:!0}:void 0);function Rc(e,t,n,i,s,l,u,f){const h=((u-s)*(t-l)-(f-l)*(e-s))/((f-l)*(n-e)-(u-s)*(i-t)),p=((n-e)*(t-l)-(i-t)*(e-s))/((f-l)*(n-e)-(u-s)*(i-t));return h>=0&&h<=1&&p>=0&&p<=1}const ME={extends:Rw()},af=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n};function NE(e,t,n,i,s,l){return se(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[xn(e.$slots,"default",Nk(hw(e.slotData)))],2)}const IE=af(ME,[["render",NE]]);function PE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let eu;function vh(){vh.init||(vh.init=!0,eu=PE()!==-1)}var cf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){vh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",eu&&this.$el.appendChild(e),e.data="about:blank",eu||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&&(!eu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const OE=Ib();Mb("data-v-b329ee4c");const RE={class:"resize-observer",tabindex:"-1"};Nb();const zE=OE((e,t,n,i,s,l)=>(se(),Ye("div",RE)));cf.render=zE;cf.__scopeId="data-v-b329ee4c";cf.__file="src/components/ResizeObserver.vue";const zw=(e="theme")=>({computed:{themeClass(){return EE(this[e])}}}),DE=at({name:"VPopperContent",components:{ResizeObserver:cf},mixins:[zw()],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}}}),FE=["id","aria-hidden","tabindex","data-popper-placement"],HE={ref:"inner",class:"v-popper__inner"},BE=te("div",{class:"v-popper__arrow-outer"},null,-1),WE=te("div",{class:"v-popper__arrow-inner"},null,-1),jE=[BE,WE];function qE(e,t,n,i,s,l){const u=Go("ResizeObserver");return se(),ye("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style: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]=hh(f=>e.autoHide&&e.$emit("hide"),["esc"]))},[te("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=f=>e.autoHide&&e.$emit("hide"))}),te("div",{class:"v-popper__wrapper",style:nn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[te("div",HE,[e.mounted?(se(),ye(nt,{key:0},[te("div",null,[xn(e.$slots,"default")]),e.handleResize?(se(),Ye(u,{key:0,onNotify:t[1]||(t[1]=f=>e.$emit("resize",f))})):je("",!0)],64)):je("",!0)],512),te("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)},jE,4)],4)],46,FE)}const Dw=af(DE,[["render",qE]]),Fw={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 yh=function(){};typeof window<"u"&&(yh=window.Element);const UE=at({name:"VPopperWrapper",components:{Popper:IE,PopperContent:Dw},mixins:[Fw,zw("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,yh,Boolean],default:void 0},boundary:{type:[String,yh],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 VE(e,t,n,i,s,l){const u=Go("PopperContent"),f=Go("Popper");return se(),Ye(f,_i({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:it(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,show:w,hide:L,handleResize:$,onResize:C,classes:E,result:N})=>[xn(e.$slots,"default",{shown:p,show:w,hide:L}),Ie(u,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":$,classes:E,result:N,onHide:L,onResize:C},{default:it(()=>[xn(e.$slots,"popper",{shown:p,hide:L})]),_: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 xp=af(UE,[["render",VE]]);({...xp});({...xp});const GE={...xp,name:"VTooltip",vPopperTheme:"tooltip"},XE=at({name:"VTooltipDirective",components:{Popper:Rw(),PopperContent:Dw},mixins:[Fw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Sa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Sa(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,n=this.content(this);n.then?n.then(i=>this.onResult(t,i)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),KE=["innerHTML"],JE=["textContent"];function YE(e,t,n,i,s,l){const u=Go("PopperContent"),f=Go("Popper");return se(),Ye(f,_i({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,hide:w,handleResize:L,onResize:$,classes:C,result:E})=>[Ie(u,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":L,classes:C,result:E,onHide:w,onResize:$},{default:it(()=>[e.html?(se(),ye("div",{key:0,innerHTML:e.finalContent},null,8,KE)):(se(),ye("div",{key:1,textContent:Re(e.finalContent)},null,8,JE))]),_: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 ZE=af(XE,[["render",YE]]),Hw="v-popper--has-tooltip";function QE(e,t){let n=e.placement;if(!n&&t)for(const i of Ow)t[i]&&(n=i);return n||(n=Sa(e.theme||"tooltip","placement")),n}function Bw(e,t,n){let i;const s=typeof t;return s==="string"?i={content:t}:t&&s==="object"?i=t:i={content:!1},i.placement=QE(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Ed,ka,eA=0;function tA(){if(Ed)return;ka=Ue([]),Ed=Sw({name:"VTooltipDirectiveApp",setup(){return{directives:ka}},render(){return this.directives.map(t=>Wa(ZE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Ed.mount(e)}function Ww(e,t,n){tA();const i=Ue(Bw(e,t,n)),s=Ue(!1),l={id:eA++,options:i,shown:s};return ka.value.push(l),e.classList&&e.classList.add(Hw),e.$_popper={options:i,item:l,show(){s.value=!0},hide(){s.value=!1}}}function Sp(e){if(e.$_popper){const t=ka.value.indexOf(e.$_popper.item);t!==-1&&ka.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Hw)}function Zv(e,{value:t,modifiers:n}){const i=Bw(e,t,n);if(!i.content||Sa(i.theme||"tooltip","disabled"))Sp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=i):s=Ww(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const nA={beforeMount:Zv,updated:Zv,beforeUnmount(e){Sp(e)}},rA=nA,jw=GE,qw={options:so};function Uw(e){return e!=null}function qa(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function Vw(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Qv(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let s=e;for(const l of i)if(s=new Object(s)[l],s===void 0)return n;return s}function e0(){let e=null,t=null;const n=new Promise((i,s)=>{e=i,t=s});return n.resolve=e,n.reject=t,n}function iA(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}var oA={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},sA=Object.entries(oA);function _p(e){return String(e)}_p.open="";_p.close="";function lA(e=!1){let t=typeof process<"u"?process:void 0,n=(t==null?void 0:t.env)||{},i=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in n||i.includes("--no-color"))&&("FORCE_COLOR"in n||i.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function aA(e=!1){let t=lA(e),n=(u,f,h,p)=>{let g="",v=0;do g+=u.substring(v,p)+h,v=p+f.length,p=u.indexOf(f,v);while(~p);return g+u.substring(v)},i=(u,f,h=u)=>{let p=g=>{let v=String(g),y=v.indexOf(f,u.length);return~y?u+n(v,f,h,y)+f:u+v+f};return p.open=u,p.close=f,p},s={isColorSupported:t},l=u=>`\x1B[${u}m`;for(let[u,f]of sA)s[u]=t?i(l(f[0]),l(f[1]),f[2]):_p;return s}aA();const t0={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},cA={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Ys="…";function uA(e,t){const n=t0[cA[t]]||t0[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function fA({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:i=!0,showProxy:s=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:f=[],truncate:h=1/0,stylize:p=String}={},g){const v={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!i,showProxy:!!s,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:f,inspect:g,stylize:p};return v.colors&&(v.stylize=uA),v}function dA(e){return e>="\uD800"&&e<="\uDBFF"}function wo(e,t,n=Ys){e=String(e);const i=n.length,s=e.length;if(i>t&&s>i)return n;if(s>t&&s>i){let l=t-i;return l>0&&dA(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function Pr(e,t,n,i=", "){n=n||t.inspect;const s=e.length;if(s===0)return"";const l=t.truncate;let u="",f="",h="";for(let p=0;p<s;p+=1){const g=p+1===e.length,v=p+2===e.length;h=`${Ys}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:i.length);const w=f||n(y,t)+(g?"":i),L=u.length+w.length,$=L+h.length;if(g&&L>l&&u.length+h.length<=l||!g&&!v&&$>l||(f=g?"":n(e[p+1],t)+(v?"":i),!g&&v&&$>l&&L+f.length>l))break;if(u+=w,!g&&!v&&L+f.length>=l){h=`${Ys}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function hA(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ta([e,t],n){return n.truncate-=2,typeof e=="string"?e=hA(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function pA(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const i=Pr(e,t);t.truncate-=i.length;let s="";return n.length&&(s=Pr(n.map(l=>[l,e[l]]),t,Ta)),`[ ${i}${s?`, ${s}`:""} ]`}const gA=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function gi(e,t){const n=gA(e);t.truncate-=n.length+4;const i=Object.keys(e).slice(e.length);if(!e.length&&!i.length)return`${n}[]`;let s="";for(let u=0;u<e.length;u++){const f=`${t.stylize(wo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=f.length,e[u]!==e.length&&t.truncate<=3){s+=`${Ys}(${e.length-e[u]+1})`;break}s+=f}let l="";return i.length&&(l=Pr(i.map(u=>[u,e[u]]),t,Ta)),`${n}[ ${s}${l?`, ${l}`:""} ]`}function mA(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const i=n.split("T"),s=i[0];return t.stylize(`${s}T${wo(i[1],t.truncate-s.length-1)}`,"date")}function n0(e,t){const n=e[Symbol.toStringTag]||"Function",i=e.name;return i?t.stylize(`[${n} ${wo(i,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function vA([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function yA(e){const t=[];return e.forEach((n,i)=>{t.push([i,n])}),t}function bA(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Pr(yA(e),t,vA)} }`)}const wA=Number.isNaN||(e=>e!==e);function r0(e,t){return wA(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(wo(String(e),t.truncate),"number")}function i0(e,t){let n=wo(e.toString(),t.truncate-1);return n!==Ys&&(n+="n"),t.stylize(n,"bigint")}function xA(e,t){const n=e.toString().split("/")[2],i=t.truncate-(2+n.length),s=e.source;return t.stylize(`/${wo(s,i)}/${n}`,"regexp")}function SA(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function _A(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Pr(SA(e),t)} }`)}const o0=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),kA={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},TA=16;function CA(e){return kA[e]||`\\u${`0000${e.charCodeAt(0).toString(TA)}`.slice(-4)}`}function s0(e,t){return o0.test(e)&&(e=e.replace(o0,CA)),t.stylize(`'${wo(e,t.truncate-2)}'`,"string")}function l0(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}let Gw=()=>"Promise{…}";try{const{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Gw=(i,s)=>{const[l,u]=e(i);return l===t?"Promise{<pending>}":`Promise${l===n?"!":""}{${s.inspect(u,s)}}`})}catch{}function tu(e,t){const n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&i.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const s=Pr(n.map(f=>[f,e[f]]),t,Ta),l=Pr(i.map(f=>[f,e[f]]),t,Ta);t.seen.pop();let u="";return s&&l&&(u=", "),`{ ${s}${u}${l} }`}const Ad=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function EA(e,t){let n="";return Ad&&Ad in e&&(n=e[Ad]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${tu(e,t)}`}function AA(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Pr(e,t)} ]`)}const LA=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function $A(e,t){const n=Object.getOwnPropertyNames(e).filter(u=>LA.indexOf(u)===-1),i=e.name;t.truncate-=i.length;let s="";if(typeof e.message=="string"?s=wo(e.message,t.truncate):n.unshift("message"),s=s?`: ${s}`:"",t.truncate-=s.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Pr(n.map(u=>[u,e[u]]),t,Ta);return`${i}${s}${l?` { ${l} }`:""}`}function MA([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function bh(e,t){return Pr(e,t,NA,`
18
- `)}function NA(e,t){switch(e.nodeType){case 1:return Xw(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Xw(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),s=t.stylize(`<${i}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${i}>`,"special");t.truncate-=i.length*2+5;let f="";n.length>0&&(f+=" ",f+=Pr(n.map(g=>[g,e.getAttribute(g)]),t,MA," ")),t.truncate-=f.length;const h=t.truncate;let p=bh(e.children,t);return p&&p.length>h&&(p=`${Ys}(${e.children.length})`),`${s}${f}${l}${p}${u}`}const IA=typeof Symbol=="function"&&typeof Symbol.for=="function",Ld=IA?Symbol.for("chai/inspect"):"@@chai/inspect",$d=Symbol.for("nodejs.util.inspect.custom"),a0=new WeakMap,c0={},u0={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:r0,Number:r0,bigint:i0,BigInt:i0,string:s0,String:s0,function:n0,Function:n0,symbol:l0,Symbol:l0,Array:pA,Date:mA,Map:bA,Set:_A,RegExp:xA,Promise:Gw,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:AA,Int8Array:gi,Uint8Array:gi,Uint8ClampedArray:gi,Int16Array:gi,Uint16Array:gi,Int32Array:gi,Uint32Array:gi,Float32Array:gi,Float64Array:gi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:$A,HTMLCollection:bh,NodeList:bh},PA=(e,t,n)=>Ld in e&&typeof e[Ld]=="function"?e[Ld](t):$d in e&&typeof e[$d]=="function"?e[$d](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&a0.has(e.constructor)?a0.get(e.constructor)(e,t):c0[n]?c0[n](e,t):"",OA=Object.prototype.toString;function wh(e,t={}){const n=fA(t,wh),{customInspect:i}=n;let s=e===null?"null":typeof e;if(s==="object"&&(s=OA.call(e).slice(8,-1)),s in u0)return u0[s](e,n);if(i&&e){const u=PA(e,n,s);if(u)return typeof u=="string"?u:wh(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?tu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Xw(e,n):"constructor"in e?e.constructor!==Object?EA(e,n):tu(e,n):e===Object(e)?tu(e,n):n.stylize(String(e),s)}const RA=/%[sdjifoOc%]/g;function zA(...e){if(typeof e[0]!="string"){const l=[];for(let u=0;u<e.length;u++)l.push(Es(e[u],{depth:0,colors:!1}));return l.join(" ")}const t=e.length;let n=1;const i=e[0];let s=String(i).replace(RA,l=>{if(l==="%%")return"%";if(n>=t)return l;switch(l){case"%s":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():Es(u,{depth:0,colors:!1}):String(u)}case"%d":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case"%i":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return Es(e[n++],{showHidden:!0,showProxy:!0});case"%O":return Es(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(u){const f=u.message;if(f.includes("circular structure")||f.includes("cyclic structures")||f.includes("cyclic object"))return"[Circular]";throw u}default:return l}});for(let l=e[n];n<t;l=e[++n])l===null||typeof l!="object"?s+=` ${l}`:s+=` ${Es(l)}`;return s}function Es(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),wh(e,t)}function DA(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=Es(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const s=e;return s.name?`[Function: ${s.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const s=Object.keys(e);return`{ Object (${s.length>2?`${s.splice(0,2).join(", ")}, ...`:s.join(", ")}) }`}else return n}return n}var Md,f0;function FA(){if(f0)return Md;f0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,C,E,N;return y=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,v=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,L=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,g=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,$=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,N=/[\t\v\f\ufeff\p{Zs}]+/yu,f=/\r?\n|[\r\u2028\u2029]/y,h=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,w=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:(?!\1)[^])*(\1)?/y,s=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,C=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,l=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(f.source),Md=function*(O,{jsx:k=!1}={}){var z,D,oe,Q,W,q,U,A,I,P,S,R,B,ie;for({length:q}=O,Q=0,W="",ie=[{tag:"JS"}],z=[],S=0,R=!1;Q<q;){switch(A=ie[ie.length-1],A.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(O[Q]==="/"&&(E.test(W)||l.test(W))&&(y.lastIndex=Q,U=y.exec(O))){Q=y.lastIndex,W=U[0],R=!0,yield{type:"RegularExpressionLiteral",value:U[0],closed:U[1]!==void 0&&U[1]!=="\\"};continue}if(v.lastIndex=Q,U=v.exec(O)){switch(B=U[0],I=v.lastIndex,P=B,B){case"(":W==="?NonExpressionParenKeyword"&&ie.push({tag:"JSNonExpressionParen",nesting:S}),S++,R=!1;break;case")":S--,R=!0,A.tag==="JSNonExpressionParen"&&S===A.nesting&&(ie.pop(),P="?NonExpressionParenEnd",R=!1);break;case"{":v.lastIndex=0,oe=!C.test(W)&&(E.test(W)||l.test(W)),z.push(oe),R=!1;break;case"}":switch(A.tag){case"InterpolationInTemplate":if(z.length===A.nesting){$.lastIndex=Q,U=$.exec(O),Q=$.lastIndex,W=U[0],U[1]==="${"?(W="?InterpolationInTemplate",R=!1,yield{type:"TemplateMiddle",value:U[0]}):(ie.pop(),R=!0,yield{type:"TemplateTail",value:U[0],closed:U[1]==="`"});continue}break;case"InterpolationInJSX":if(z.length===A.nesting){ie.pop(),Q+=1,W="}",yield{type:"JSXPunctuator",value:"}"};continue}}R=z.pop(),P=R?"?ExpressionBraceEnd":"}";break;case"]":R=!0;break;case"++":case"--":P=R?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(k&&(E.test(W)||l.test(W))){ie.push({tag:"JSXTag"}),Q+=1,W="<",yield{type:"JSXPunctuator",value:B};continue}R=!1;break;default:R=!1}Q=I,W=P,yield{type:"Punctuator",value:B};continue}if(e.lastIndex=Q,U=e.exec(O)){switch(Q=e.lastIndex,P=U[0],U[0]){case"for":case"if":case"while":case"with":W!=="."&&W!=="?."&&(P="?NonExpressionParenKeyword")}W=P,R=!l.test(U[0]),yield{type:U[1]==="#"?"PrivateIdentifier":"IdentifierName",value:U[0]};continue}if(L.lastIndex=Q,U=L.exec(O)){Q=L.lastIndex,W=U[0],R=!0,yield{type:"StringLiteral",value:U[0],closed:U[2]!==void 0};continue}if(g.lastIndex=Q,U=g.exec(O)){Q=g.lastIndex,W=U[0],R=!0,yield{type:"NumericLiteral",value:U[0]};continue}if($.lastIndex=Q,U=$.exec(O)){Q=$.lastIndex,W=U[0],U[1]==="${"?(W="?InterpolationInTemplate",ie.push({tag:"InterpolationInTemplate",nesting:z.length}),R=!1,yield{type:"TemplateHead",value:U[0]}):(R=!0,yield{type:"NoSubstitutionTemplate",value:U[0],closed:U[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=Q,U=n.exec(O)){switch(Q=n.lastIndex,P=U[0],U[0]){case"<":ie.push({tag:"JSXTag"});break;case">":ie.pop(),W==="/"||A.tag==="JSXTagEnd"?(P="?JSX",R=!0):ie.push({tag:"JSXChildren"});break;case"{":ie.push({tag:"InterpolationInJSX",nesting:z.length}),P="?InterpolationInJSX",R=!1;break;case"/":W==="<"&&(ie.pop(),ie[ie.length-1].tag==="JSXChildren"&&ie.pop(),ie.push({tag:"JSXTagEnd"}))}W=P,yield{type:"JSXPunctuator",value:U[0]};continue}if(t.lastIndex=Q,U=t.exec(O)){Q=t.lastIndex,W=U[0],yield{type:"JSXIdentifier",value:U[0]};continue}if(i.lastIndex=Q,U=i.exec(O)){Q=i.lastIndex,W=U[0],yield{type:"JSXString",value:U[0],closed:U[2]!==void 0};continue}break;case"JSXChildren":if(s.lastIndex=Q,U=s.exec(O)){Q=s.lastIndex,W=U[0],yield{type:"JSXText",value:U[0]};continue}switch(O[Q]){case"<":ie.push({tag:"JSXTag"}),Q++,W="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ie.push({tag:"InterpolationInJSX",nesting:z.length}),Q++,W="?InterpolationInJSX",R=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(N.lastIndex=Q,U=N.exec(O)){Q=N.lastIndex,yield{type:"WhiteSpace",value:U[0]};continue}if(f.lastIndex=Q,U=f.exec(O)){Q=f.lastIndex,R=!1,u.test(W)&&(W="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:U[0]};continue}if(h.lastIndex=Q,U=h.exec(O)){Q=h.lastIndex,p.test(U[0])&&(R=!1,u.test(W)&&(W="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:U[0],closed:U[1]!==void 0};continue}if(w.lastIndex=Q,U=w.exec(O)){Q=w.lastIndex,R=!1,yield{type:"SingleLineComment",value:U[0]};continue}D=String.fromCodePoint(O.codePointAt(Q)),Q+=D.length,W=D,R=!1,yield{type:A.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:D}}},Md}FA();var Kw={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Kw.keyword);new Set(Kw.strict);const d0=Symbol("vitest:SAFE_TIMERS");function Jw(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}=globalThis[d0]||globalThis,{nextTick:f}=globalThis[d0]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}}function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd,h0;function HA(){if(h0)return Nd;h0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,C,E,N,O;return w=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,$=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,v=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,C=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,O=/[\t\v\f\ufeff\p{Zs}]+/yu,h=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,L=/\/\/.*/y,e=/^#!.*/,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,l=/[^<>{}]+/y,N=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,u=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,f=/^(?:return|throw|yield)$/,g=RegExp(h.source),Nd=function*(k,{jsx:z=!1}={}){var D,oe,Q,W,q,U,A,I,P,S,R,B,ie,ue;for({length:U}=k,W=0,q="",ue=[{tag:"JS"}],D=[],R=0,B=!1,(A=e.exec(k))&&(yield{type:"HashbangComment",value:A[0]},W=A[0].length);W<U;){switch(I=ue[ue.length-1],I.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(k[W]==="/"&&(N.test(q)||u.test(q))&&(w.lastIndex=W,A=w.exec(k))){W=w.lastIndex,q=A[0],B=!0,yield{type:"RegularExpressionLiteral",value:A[0],closed:A[1]!==void 0&&A[1]!=="\\"};continue}if(y.lastIndex=W,A=y.exec(k)){switch(ie=A[0],P=y.lastIndex,S=ie,ie){case"(":q==="?NonExpressionParenKeyword"&&ue.push({tag:"JSNonExpressionParen",nesting:R}),R++,B=!1;break;case")":R--,B=!0,I.tag==="JSNonExpressionParen"&&R===I.nesting&&(ue.pop(),S="?NonExpressionParenEnd",B=!1);break;case"{":y.lastIndex=0,Q=!E.test(q)&&(N.test(q)||u.test(q)),D.push(Q),B=!1;break;case"}":switch(I.tag){case"InterpolationInTemplate":if(D.length===I.nesting){C.lastIndex=W,A=C.exec(k),W=C.lastIndex,q=A[0],A[1]==="${"?(q="?InterpolationInTemplate",B=!1,yield{type:"TemplateMiddle",value:A[0]}):(ue.pop(),B=!0,yield{type:"TemplateTail",value:A[0],closed:A[1]==="`"});continue}break;case"InterpolationInJSX":if(D.length===I.nesting){ue.pop(),W+=1,q="}",yield{type:"JSXPunctuator",value:"}"};continue}}B=D.pop(),S=B?"?ExpressionBraceEnd":"}";break;case"]":B=!0;break;case"++":case"--":S=B?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(N.test(q)||u.test(q))){ue.push({tag:"JSXTag"}),W+=1,q="<",yield{type:"JSXPunctuator",value:ie};continue}B=!1;break;default:B=!1}W=P,q=S,yield{type:"Punctuator",value:ie};continue}if(t.lastIndex=W,A=t.exec(k)){switch(W=t.lastIndex,S=A[0],A[0]){case"for":case"if":case"while":case"with":q!=="."&&q!=="?."&&(S="?NonExpressionParenKeyword")}q=S,B=!u.test(A[0]),yield{type:A[1]==="#"?"PrivateIdentifier":"IdentifierName",value:A[0]};continue}if($.lastIndex=W,A=$.exec(k)){W=$.lastIndex,q=A[0],B=!0,yield{type:"StringLiteral",value:A[0],closed:A[2]!==void 0};continue}if(v.lastIndex=W,A=v.exec(k)){W=v.lastIndex,q=A[0],B=!0,yield{type:"NumericLiteral",value:A[0]};continue}if(C.lastIndex=W,A=C.exec(k)){W=C.lastIndex,q=A[0],A[1]==="${"?(q="?InterpolationInTemplate",ue.push({tag:"InterpolationInTemplate",nesting:D.length}),B=!1,yield{type:"TemplateHead",value:A[0]}):(B=!0,yield{type:"NoSubstitutionTemplate",value:A[0],closed:A[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=W,A=i.exec(k)){switch(W=i.lastIndex,S=A[0],A[0]){case"<":ue.push({tag:"JSXTag"});break;case">":ue.pop(),q==="/"||I.tag==="JSXTagEnd"?(S="?JSX",B=!0):ue.push({tag:"JSXChildren"});break;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),S="?InterpolationInJSX",B=!1;break;case"/":q==="<"&&(ue.pop(),ue[ue.length-1].tag==="JSXChildren"&&ue.pop(),ue.push({tag:"JSXTagEnd"}))}q=S,yield{type:"JSXPunctuator",value:A[0]};continue}if(n.lastIndex=W,A=n.exec(k)){W=n.lastIndex,q=A[0],yield{type:"JSXIdentifier",value:A[0]};continue}if(s.lastIndex=W,A=s.exec(k)){W=s.lastIndex,q=A[0],yield{type:"JSXString",value:A[0],closed:A[2]!==void 0};continue}break;case"JSXChildren":if(l.lastIndex=W,A=l.exec(k)){W=l.lastIndex,q=A[0],yield{type:"JSXText",value:A[0]};continue}switch(k[W]){case"<":ue.push({tag:"JSXTag"}),W++,q="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),W++,q="?InterpolationInJSX",B=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(O.lastIndex=W,A=O.exec(k)){W=O.lastIndex,yield{type:"WhiteSpace",value:A[0]};continue}if(h.lastIndex=W,A=h.exec(k)){W=h.lastIndex,B=!1,f.test(q)&&(q="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:A[0]};continue}if(p.lastIndex=W,A=p.exec(k)){W=p.lastIndex,g.test(A[0])&&(B=!1,f.test(q)&&(q="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:A[0],closed:A[1]!==void 0};continue}if(L.lastIndex=W,A=L.exec(k)){W=L.lastIndex,B=!1,yield{type:"SingleLineComment",value:A[0]};continue}oe=String.fromCodePoint(k.codePointAt(W)),W+=oe.length,q=oe,B=!1,yield{type:I.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:oe}}},Nd}var BA=HA();const WA=kp(BA);function jA(e,t){const n=" ",i=" ";let s="";const l=[];for(const u of WA(e,{jsx:!1})){if(l.push(u),u.type==="SingleLineComment"){s+=i.repeat(u.value.length);continue}if(u.type==="MultiLineComment"){s+=u.value.replace(/[^\n]/g,i);continue}if(u.type==="StringLiteral"){if(!u.closed){s+=u.value;continue}const f=u.value.slice(1,-1);{s+=u.value[0]+n.repeat(f.length)+u.value[u.value.length-1];continue}}if(u.type==="NoSubstitutionTemplate"){const f=u.value.slice(1,-1);{s+=`\`${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="RegularExpressionLiteral"){const f=u.value;{s+=f.replace(/\/(.*)\/(\w?)$/g,(h,p,g)=>`/${n.repeat(p.length)}/${g}`);continue}}if(u.type==="TemplateHead"){const f=u.value.slice(1,-2);{s+=`\`${f.replace(/[^\n]/g,n)}\${`;continue}}if(u.type==="TemplateTail"){const f=u.value.slice(0,-2);{s+=`}${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="TemplateMiddle"){const f=u.value.slice(1,-2);{s+=`}${f.replace(/[^\n]/g,n)}\${`;continue}}s+=u.value}return{result:s,tokens:l}}function qA(e,t){return UA(e).result}function UA(e,t){return jA(e)}const VA=/^[A-Za-z]:\//;function GA(e=""){return e&&e.replace(/\\/g,"/").replace(VA,t=>t.toUpperCase())}const XA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const JA=function(...e){e=e.map(i=>GA(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:KA();!s||s.length===0||(t=`${s}/${t}`,n=p0(s))}return t=YA(t,!n),n&&!p0(t)?`/${t}`:t.length>0?t:"."};function YA(e,t){let n="",i=0,s=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(s===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const p0=function(e){return XA.test(e)},ZA=44,g0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QA=new Uint8Array(64),Yw=new Uint8Array(128);for(let e=0;e<g0.length;e++){const t=g0.charCodeAt(e);QA[e]=t,Yw[t]=e}function Wl(e,t){let n=0,i=0,s=0;do{const u=e.next();s=Yw[u],n|=(s&31)<<i,i+=5}while(s&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function m0(e,t){return e.pos>=t?!1:e.peek()!==ZA}class eL{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:n,pos:i}=this,s=n.indexOf(t,i);return s===-1?n.length:s}}function tL(e){const{length:t}=e,n=new eL(e),i=[];let s=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(s=0;n.pos<p;){let w;s=Wl(n,s),s<y&&(v=!1),y=s,m0(n,p)?(l=Wl(n,l),u=Wl(n,u),f=Wl(n,f),m0(n,p)?(h=Wl(n,h),w=[s,l,u,f,h]):w=[s,l,u,f]):w=[s],g.push(w),n.pos++}v||nL(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function nL(e){e.sort(rL)}function rL(e,t){return e[0]-t[0]}const iL=/^[\w+.-]+:\/\//,oL=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,sL=/^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 lL(e){return iL.test(e)}function aL(e){return e.startsWith("//")}function Zw(e){return e.startsWith("/")}function cL(e){return e.startsWith("file:")}function v0(e){return/^[.?#]/.test(e)}function zc(e){const t=oL.exec(e);return Qw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function uL(e){const t=sL.exec(e),n=t[2];return Qw("file:","",t[1]||"","",Zw(n)?n:"/"+n,t[3]||"",t[4]||"")}function Qw(e,t,n,i,s,l,u){return{scheme:e,user:t,host:n,port:i,path:s,query:l,hash:u,type:Ut.Absolute}}function y0(e){if(aL(e)){const n=zc("http:"+e);return n.scheme="",n.type=Ut.SchemeRelative,n}if(Zw(e)){const n=zc("http://foo.com"+e);return n.scheme="",n.host="",n.type=Ut.AbsolutePath,n}if(cL(e))return uL(e);if(lL(e))return zc(e);const t=zc("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 fL(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function dL(e,t){ex(t,t.type),e.path==="/"?e.path=t.path:e.path=fL(t.path)+e.path}function ex(e,t){const n=t<=Ut.RelativePath,i=e.path.split("/");let s=1,l=0,u=!1;for(let h=1;h<i.length;h++){const p=i[h];if(!p){u=!0;continue}if(u=!1,p!=="."){if(p===".."){l?(u=!0,l--,s--):n&&(i[s++]=p);continue}i[s++]=p,l++}}let f="";for(let h=1;h<s;h++)f+="/"+i[h];(!f||u&&!f.endsWith("/.."))&&(f+="/"),e.path=f}function hL(e,t){if(!e&&!t)return"";const n=y0(e);let i=n.type;if(t&&i!==Ut.Absolute){const l=y0(t),u=l.type;switch(i){case Ut.Empty:n.hash=l.hash;case Ut.Hash:n.query=l.query;case Ut.Query:case Ut.RelativePath:dL(n,l);case Ut.AbsolutePath:n.user=l.user,n.host=l.host,n.port=l.port;case Ut.SchemeRelative:n.scheme=l.scheme}u>i&&(i=u)}ex(n,i);const s=n.query+n.hash;switch(i){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const l=n.path.slice(1);return l?v0(t||e)&&!v0(l)?"./"+l+s:l+s:s||"."}case Ut.AbsolutePath:return n.path+s;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+s}}function pL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function gL(e,t){const n=pL(e),i=t?t+"/":"";return s=>hL(i+(s||""),n)}var po=0,mL=1,vL=2,yL=3,bL=4;function wL(e,t){const n=b0(e,0);if(n===e.length)return e;t||(e=e.slice());for(let i=n;i<e.length;i=b0(e,i+1))e[i]=SL(e[i],t);return e}function b0(e,t){for(let n=t;n<e.length;n++)if(!xL(e[n]))return n;return e.length}function xL(e){for(let t=1;t<e.length;t++)if(e[t][po]<e[t-1][po])return!1;return!0}function SL(e,t){return t||(e=e.slice()),e.sort(_L)}function _L(e,t){return e[po]-t[po]}var Tu=!1;function kL(e,t,n,i){for(;n<=i;){const s=n+(i-n>>1),l=e[s][po]-t;if(l===0)return Tu=!0,s;l<0?n=s+1:i=s-1}return Tu=!1,n-1}function TL(e,t,n){for(let i=n+1;i<e.length&&e[i][po]===t;n=i++);return n}function CL(e,t,n){for(let i=n-1;i>=0&&e[i][po]===t;n=i--);return n}function EL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function AL(e,t,n,i){const{lastKey:s,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===s){if(t===l)return Tu=u!==-1&&e[u][po]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=kL(e,t,f,h)}function LL(e){return typeof e=="string"?JSON.parse(e):e}var $L="`line` must be greater than 0 (lines start at line 1)",ML="`column` must be greater than or equal to 0 (columns start at column 0)",w0=-1,NL=1,IL=class{constructor(e,t){const n=typeof e=="string";if(!n&&e._decodedMemo)return e;const i=LL(e),{version:s,file:l,names:u,sourceRoot:f,sources:h,sourcesContent:p}=i;this.version=s,this.file=l,this.names=u||[],this.sourceRoot=f,this.sources=h,this.sourcesContent=p,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const g=gL(t,f);this.resolvedSources=h.map(g);const{mappings:v}=i;if(typeof v=="string")this._encoded=v,this._decoded=void 0;else if(Array.isArray(v))this._encoded=void 0,this._decoded=wL(v,n);else throw i.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(i)}`);this._decodedMemo=EL(),this._bySources=void 0,this._bySourceMemos=void 0}};function PL(e){var t;return(t=e)._decoded||(t._decoded=tL(e._encoded))}function OL(e,t){let{line:n,column:i,bias:s}=t;if(n--,n<0)throw new Error($L);if(i<0)throw new Error(ML);const l=PL(e);if(n>=l.length)return Dc(null,null,null,null);const u=l[n],f=RL(u,e._decodedMemo,n,i,s||NL);if(f===-1)return Dc(null,null,null,null);const h=u[f];if(h.length===1)return Dc(null,null,null,null);const{names:p,resolvedSources:g}=e;return Dc(g[h[mL]],h[vL]+1,h[yL],h.length===5?p[h[bL]]:null)}function Dc(e,t,n,i){return{source:e,line:t,column:n,name:i}}function RL(e,t,n,i,s){let l=AL(e,i,t,n);return Tu?l=(s===w0?TL:CL)(e,i,l):s===w0&&l++,l===-1||l===e.length?-1:l}const Tp=/^\s*at .*(?:\S:\d+|\(native\))/m,zL=/^(?:eval@)?(?:\[native code\])?$/,DL=["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/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function tx(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const s=new URL(i);s.searchParams.delete("import"),s.searchParams.delete("browserv"),i=s.pathname+s.hash+s.search}if(i.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(s?5:4)}return[i,n[2]||void 0,n[3]||void 0]}function nx(e){let t=e.trim();if(zL.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 n=/((.*".+"[^@]*)?[^@]*)(@)/,i=t.match(n),s=i&&i[1]?i[1]:void 0,[l,u,f]=tx(t.replace(n,""));return!l||!u||!f?null:{file:l,method:s||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function FL(e){const t=e.trim();return Tp.test(t)?rx(t):nx(t)}function rx(e){let t=e.trim();if(!Tp.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[s,l,u]=tx(i?i[1]:n);let f=i&&n||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:JA(h),f&&(f=f.replace(/__vite_ssr_import_\d+__\./g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function HL(e,t={}){const{ignoreStackEntries:n=DL}=t;return(Tp.test(e)?WL(e):BL(e)).map(s=>{var l;t.getUrlId&&(s.file=t.getUrlId(s.file));const u=(l=t.getSourceMap)===null||l===void 0?void 0:l.call(t,s.file);if(!u||typeof u!="object"||!u.version)return x0(n,s.file)?null:s;const f=new IL(u),{line:h,column:p,source:g,name:v}=OL(f,s);let y=s.file;if(g){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,L=u.sourceRoot?new URL(u.sourceRoot,w):w;y=new URL(g,L).pathname,y.match(/\/\w:\//)&&(y=y.slice(1))}return x0(n,y)?null:h!=null&&p!=null?{line:h,column:p,file:y,method:v||s.method}:s}).filter(s=>s!=null)}function x0(e,t){return e.some(n=>t.match(n))}function BL(e){return e.split(`
19
- `).map(t=>nx(t)).filter(Uw)}function WL(e){return e.split(`
20
- `).map(t=>rx(t)).filter(Uw)}const jL=/^[A-Za-z]:\//;function qL(e=""){return e&&e.replace(/\\/g,"/").replace(jL,t=>t.toUpperCase())}const UL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,S0=/^\/([A-Za-z]:)?$/;function VL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const _0=function(...e){e=e.map(i=>qL(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:VL();!s||s.length===0||(t=`${s}/${t}`,n=k0(s))}return t=GL(t,!n),n&&!k0(t)?`/${t}`:t.length>0?t:"."};function GL(e,t){let n="",i=0,s=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(s===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const k0=function(e){return UL.test(e)},ix=function(e,t){const n=_0(e).replace(S0,"$1").split("/"),i=_0(t).replace(S0,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const s=[...n];for(const l of s){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")};class XL extends Error{constructor(n,i,s){super(n);ji(this,"code","VITEST_PENDING");ji(this,"taskId");this.message=n,this.note=s,this.taskId=i.id}}const KL=new WeakMap,ox=new WeakMap,sx=new WeakMap;function JL(e,t){KL.set(e,t)}function YL(e,t){ox.set(e,t)}function ZL(e){return ox.get(e)}function QL(e,t){sx.set(e,t)}function e$(e){return sx.get(e)}function t$(e,t){const n=t.reduce((l,u)=>(l[u.prop]=u,l),{}),i={};e.forEach(l=>{const u=n[l.prop]||{...l};i[u.prop]=u});for(const l in i){var s;const u=i[l];u.deps=(s=u.deps)===null||s===void 0?void 0:s.map(f=>i[f.prop])}return Object.values(i)}function lx(e,t,n){const i=["auto","injected","scope"],s=Object.entries(e).map(([l,u])=>{const f={value:u};if(Array.isArray(u)&&u.length>=2&&Vw(u[1])&&Object.keys(u[1]).some(p=>i.includes(p))){var h;Object.assign(f,u[1]);const p=u[0];f.value=f.injected?((h=n.injectValue)===null||h===void 0?void 0:h.call(n,l))??p:p}return f.scope=f.scope||"test",f.scope==="worker"&&!n.getWorkerContext&&(f.scope="file"),f.prop=l,f.isFn=typeof f.value=="function",f});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(s):t.fixtures=s,s.forEach(l=>{if(l.isFn){const f=cx(l.value);if(f.length&&(l.deps=t.fixtures.filter(({prop:h})=>h!==l.prop&&f.includes(h))),l.scope!=="test"){var u;(u=l.deps)===null||u===void 0||u.forEach(h=>{if(h.isFn&&!(l.scope==="worker"&&h.scope==="worker")&&!(l.scope==="file"&&h.scope!=="test"))throw new SyntaxError(`cannot use the ${h.scope} fixture "${h.prop}" inside the ${l.scope} fixture "${l.prop}"`)})}}}),t}const Id=new Map,Ws=new Map;function n$(e,t,n){return i=>{const s=i||n;if(!s)return t({});const l=ZL(s);if(!(l!=null&&l.length))return t(s);const u=cx(t),f=l.some(({auto:w})=>w);if(!u.length&&!f)return t(s);Id.get(s)||Id.set(s,new Map);const h=Id.get(s);Ws.has(s)||Ws.set(s,[]);const p=Ws.get(s),g=l.filter(({prop:w,auto:L})=>L||u.includes(w)),v=ax(g);if(!v.length)return t(s);async function y(){for(const w of v){if(h.has(w))continue;const L=await r$(e,w,s,p);s[w.prop]=L,h.set(w,L),w.scope==="test"&&p.unshift(()=>{h.delete(w)})}}return y().then(()=>t(s))}}const Fc=new WeakMap;function r$(e,t,n,i){var s;const l=S$(n.task.file),u=(s=e.getWorkerContext)===null||s===void 0?void 0:s.call(e);if(!t.isFn){var f;if(l[f=t.prop]??(l[f]=t.value),u){var h;u[h=t.prop]??(u[h]=t.value)}return t.value}if(t.scope==="test")return T0(t.value,n,i);if(Fc.has(t))return Fc.get(t);let p;if(t.scope==="worker"){if(!u)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");p=u}else p=l;if(t.prop in p)return p[t.prop];Ws.has(p)||Ws.set(p,[]);const g=Ws.get(p),v=T0(t.value,p,g).then(y=>(p[t.prop]=y,Fc.delete(t),y));return Fc.set(t,v),v}async function T0(e,t,n){const i=e0();let s=!1;const l=e(t,async u=>{s=!0,i.resolve(u);const f=e0();n.push(async()=>{f.resolve(),await l}),await f}).catch(u=>{if(!s){i.reject(u);return}throw u});return i}function ax(e,t=new Set,n=[]){return e.forEach(i=>{if(!n.includes(i)){if(!i.isFn||!i.deps){n.push(i);return}if(t.has(i))throw new Error(`Circular fixture dependency detected: ${i.prop} <- ${[...t].reverse().map(s=>s.prop).join(" <- ")}`);t.add(i),ax(i.deps,t,n),n.push(i),t.clear()}}),n}function cx(e){let t=qA(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);const n=t.match(/[^(]*\(([^)]*)/);if(!n)return[];const i=C0(n[1]);if(!i.length)return[];let s=i[0];if("__VITEST_FIXTURE_INDEX__"in e&&(s=i[e.__VITEST_FIXTURE_INDEX__],!s))return[];if(!(s.startsWith("{")&&s.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${s}".`);const l=s.slice(1,-1).replace(/\s/g,""),u=C0(l).map(h=>h.replace(/:.*|=.*/g,"")),f=u.at(-1);if(f&&f.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${f}".`);return u}function C0(e){const t=[],n=[];let i=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n[n.length-1])n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const s=e.substring(i).trim();return s&&t.push(s),t}function ux(e,t){function n(s){const l=function(...u){return t.apply(s,u)};Object.assign(l,t),l.withContext=()=>l.bind(s),l.setContext=(u,f)=>{s[u]=f},l.mergeContext=u=>{Object.assign(s,u)};for(const u of e)Object.defineProperty(l,u,{get(){return n({...s,[u]:!0})}});return l}const i=n({});return i.fn=t,i}function i$(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return`${t}`}function fx(e,t,n,i){const s=ix(t,e),l={id:o$(s,n),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:n,file:void 0,pool:i};return l.file=l,_$(l,Object.create(null)),l}function o$(e,t){return i$(`${e}${t||""}`)}function dx(e,t){const n=t.split(`
21
- `).slice(1);for(const i of n){const s=FL(i);if(s&&s.file===e)return s}}function hx(e){return Ca(e)}function Ca(e){return e.type==="test"}function px(e){const t=[],n=qa(e);for(const i of n)if(Ca(i))t.push(i);else for(const s of i.tasks)if(Ca(s))t.push(s);else{const l=px(s);for(const u of l)t.push(u)}return t}function Cp(e=[]){return qa(e).flatMap(t=>Ca(t)?[t]:[t,...Cp(t.tasks)])}function s$(e){const t=[e.name];let n=e;for(;n!=null&&n.suite;)n=n.suite,n!=null&&n.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}const jl=d$();Ep(function(e,t,n){xh().test.fn.call(this,lo(e),t,n)});let Xr,gx,l$;function mx(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function a$(){return mx(Xr,"the runner"),Xr}function xh(){const e=ao.currentSuite||gx;return mx(e,"the current suite"),e}function c$(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function Uo(e,t){let n={},i;if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=t}else typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function u$(e,t=()=>{},n,i,s,l){const u=[];let f;w();const h=function(C="",E={}){var N;const O=(E==null?void 0:E.timeout)??Xr.config.testTimeout,k={id:"",name:C,suite:(N=ao.currentSuite)===null||N===void 0?void 0:N.suite,each:E.each,fails:E.fails,context:void 0,type:"test",file:void 0,timeout:O,retry:E.retry??Xr.config.retry,repeats:E.repeats,mode:E.only?"only":E.skip?"skip":E.todo?"todo":"run",meta:E.meta??Object.create(null),annotations:[]},z=E.handler;k.mode==="run"&&!z&&(k.mode="todo"),(E.concurrent||!E.sequential&&Xr.config.sequence.concurrent)&&(k.concurrent=!0),k.shuffle=s==null?void 0:s.shuffle;const D=w$(k,Xr);Object.defineProperty(k,"context",{value:D,enumerable:!1}),YL(D,E.fixtures);const oe=Error.stackTraceLimit;Error.stackTraceLimit=15;const Q=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=oe,z&&JL(k,Sh(f$(n$(Xr,z,D),k),O,!1,Q,(W,q)=>y$([D],q))),Xr.config.includeTaskLocation){const W=Q.stack,q=dx(l$,W);q&&(k.location={line:q.line,column:q.column})}return u.push(k),k},p=Ep(function(C,E,N){let{options:O,handler:k}=Uo(E,N);typeof s=="object"&&(O=Object.assign({},s,O)),O.concurrent=this.concurrent||!this.sequential&&(O==null?void 0:O.concurrent),O.sequential=this.sequential||!this.concurrent&&(O==null?void 0:O.sequential);const z=h(lo(C),{...this,...O,handler:k});z.type="test"});let g=l;const v={type:"collector",name:e,mode:n,suite:f,options:s,test:p,tasks:u,collect:$,task:h,clear:L,on:y,fixtures(){return g},scoped(C){const E=lx(C,{fixtures:g},Xr);E.fixtures&&(g=E.fixtures)}};function y(C,...E){e$(f)[C].push(...E)}function w(C){var E;typeof s=="number"&&(s={timeout:s}),f={id:"",type:"suite",name:e,suite:(E=ao.currentSuite)===null||E===void 0?void 0:E.suite,mode:n,each:i,file:void 0,shuffle:s==null?void 0:s.shuffle,tasks:[],meta:Object.create(null),concurrent:s==null?void 0:s.concurrent},QL(f,c$())}function L(){u.length=0,w()}async function $(C){if(!C)throw new TypeError("File is required to collect tasks.");t&&await v$(v,()=>t(p));const E=[];for(const N of u)E.push(N.type==="collector"?await N.collect(C):N);return f.file=C,f.tasks=E,E.forEach(N=>{N.file=C}),f}return m$(v),v}function f$(e,t){return async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i}}function d$(){function e(t,n,i){var s;let l=this.only?"only":this.skip?"skip":this.todo?"todo":"run";const u=ao.currentSuite||gx;let{options:f,handler:h}=Uo(n,i);l==="run"&&!h&&(l="todo");const p=f.concurrent||this.concurrent||f.sequential===!1,g=f.sequential||this.sequential||f.concurrent===!1;f={...u==null?void 0:u.options,...f,shuffle:this.shuffle??f.shuffle??(u==null||(s=u.options)===null||s===void 0?void 0:s.shuffle)??void 0};const v=p||f.concurrent&&!g,y=g||f.sequential&&!p;return f.concurrent=v&&!y,f.sequential=y&&!v,u$(lo(t),h,l,this.each,f,u==null?void 0:u.fixtures())}return e.each=function(t,...n){const i=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Cu(t,n)),(s,l,u)=>{const f=lo(s),h=t.every(Array.isArray),{options:p,handler:g}=Uo(l,u),v=typeof l=="function"&&typeof u=="object";t.forEach((y,w)=>{const L=Array.isArray(y)?y:[y];v?h?i(Jr(f,L,w),g?()=>g(...L):void 0,p):i(Jr(f,L,w),g?()=>g(y):void 0,p):h?i(Jr(f,L,w),p,g?()=>g(...L):void 0):i(Jr(f,L,w),p,g?()=>g(y):void 0)}),this.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Cu(t,n)),(i,s,l)=>{const u=lo(i),{options:f,handler:h}=Uo(s,l);t.forEach((p,g)=>{jl(Jr(u,qa(p),g),f,h?()=>h(p):void 0)})}},e.skipIf=t=>t?jl.skip:jl,e.runIf=t=>t?jl:jl.skip,ux(["concurrent","sequential","shuffle","skip","only","todo"],e)}function h$(e,t){const n=e;n.each=function(s,...l){const u=this.withContext();return this.setContext("each",!0),Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=lo(f),v=s.every(Array.isArray),{options:y,handler:w}=Uo(h,p),L=typeof h=="function"&&typeof p=="object";s.forEach(($,C)=>{const E=Array.isArray($)?$:[$];L?v?u(Jr(g,E,C),w?()=>w(...E):void 0,y):u(Jr(g,E,C),w?()=>w($):void 0,y):v?u(Jr(g,E,C),y,w?()=>w(...E):void 0):u(Jr(g,E,C),y,w?()=>w($):void 0)}),this.setContext("each",void 0)}},n.for=function(s,...l){const u=this.withContext();return Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=lo(f),{options:v,handler:y}=Uo(h,p);s.forEach((w,L)=>{const $=y?C=>y(w,C):void 0;$&&($.__VITEST_FIXTURE_INDEX__=1,$.toString=()=>y.toString()),u(Jr(g,qa(w),L),v,$)})}},n.skipIf=function(s){return s?this.skip:this},n.runIf=function(s){return s?this:this.skip},n.scoped=function(s){xh().scoped(s)},n.extend=function(s){const l=lx(s,t||{},Xr),u=e;return Ep(function(f,h,p){var g;const v=xh(),y=v.fixtures(),w={...this};y&&(w.fixtures=t$(w.fixtures||[],y));const{handler:L,options:$}=Uo(h,p),C=$.timeout??((g=v.options)===null||g===void 0?void 0:g.timeout)??void 0;u.call(w,lo(f),L,C)},l)};const i=ux(["concurrent","sequential","skip","only","todo","fails"],n);return t&&i.mergeContext(t),i}function Ep(e,t){return h$(e,t)}function lo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function Jr(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((f,h)=>{if(iA(t[h])||Object.is(t[h],-0)){let p=0;e=e.replace(/%f/g,g=>(p++,p===h+1?"-%f":g))}});let s=zA(e,...t.slice(0,i));const l=Vw(t[0]);return s=s.replace(/\$([$\w.]+)/g,(u,f)=>{const h=/^\d+$/.test(f);if(!l&&!h)return`$${f}`;const p=h?Qv(t,f):void 0,g=l?Qv(t[0],f,p):p;return DA(g,{truncate:void 0})}),s}function Cu(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
22
- `).map(s=>s.split("|"))[0],i=[];for(let s=0;s<Math.floor(t.length/n.length);s++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[s*n.length+u];i.push(l)}return i}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;Jw();const Pd=new Map,E0=[],nu=[];function p$(e){if(Pd.size){var t;const n=Array.from(Pd).map(([s,l])=>[s,l[0],l[1]]),i=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,E0);i&&(nu.push(i),i.then(()=>nu.splice(nu.indexOf(i),1),()=>{})),E0.length=0,Pd.clear()}}async function g$(e){p$(e),await Promise.all(nu)}const A0=Date.now,ao={currentSuite:null};function m$(e){var t;(t=ao.currentSuite)===null||t===void 0||t.tasks.push(e)}async function v$(e,t){const n=ao.currentSuite;ao.currentSuite=e,await t(),ao.currentSuite=n}function Sh(e,t,n=!1,i,s){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=Jw();return function(...h){const p=A0(),g=a$();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{var w;const L=l(()=>{u(L),$()},t);(w=L.unref)===null||w===void 0||w.call(L);function $(){const N=x$(n,t,i);s==null||s(h,N),y(N)}function C(N){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(L),A0()-p>=t){$();return}v(N)}function E(N){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(L),y(N)}try{const N=e(...h);typeof N=="object"&&N!=null&&typeof N.then=="function"?N.then(C,E):C(N)}catch(N){E(N)}})}}const _h=new WeakMap;function y$([e],t){e&&b$(e,t)}function b$(e,t){const n=_h.get(e);n==null||n.abort(t)}function w$(e,t){var n;const i=function(){throw new Error("done() callback is deprecated, use promise instead")};let s=_h.get(i);s||(s=new AbortController,_h.set(i,s)),i.signal=s.signal,i.task=e,i.skip=(u,f)=>{if(u!==!1)throw e.result??(e.result={state:"skip"}),e.result.pending=!0,new XL("test is skipped; abort execution",e,typeof u=="string"?u:f)};async function l(u,f,h,p){const g={message:u,type:h||"notice"};if(p){if(!p.body&&!p.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(p.body&&p.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');g.attachment=p,p.body instanceof Uint8Array&&(p.body=k$(p.body))}if(f&&(g.location=f),!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await g$(t);const v=await t.onTestAnnotate(e,g);return e.annotations.push(v),v}return i.annotate=(u,f,h)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const p=dx(e.file.filepath,new Error("STACK_TRACE").stack);let g;return p&&(g={file:p.file,line:p.line,column:p.column}),typeof f=="object"?L0(e,l(u,g,void 0,f)):L0(e,l(u,g,f,h))},i.onTestFailed=(u,f)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(Sh(u,f??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},i.onTestFinished=(u,f)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(Sh(u,f??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,i))||i}function x$(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
23
- If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,s=new Error(i);return n!=null&&n.stack&&(s.stack=n.stack.replace(s.message,n.message)),s}const vx=new WeakMap;function S$(e){const t=vx.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}function _$(e,t){vx.set(e,t)}const ur=[];for(let e=65;e<91;e++)ur.push(String.fromCharCode(e));for(let e=97;e<123;e++)ur.push(String.fromCharCode(e));for(let e=0;e<10;e++)ur.push(e.toString(10));function k$(e){let t="";const n=e.byteLength;for(let i=0;i<n;i+=3)if(n===i+1){const s=(e[i]&252)>>2,l=(e[i]&3)<<4;t+=ur[s],t+=ur[l],t+="=="}else if(n===i+2){const s=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ur[s],t+=ur[l],t+=ur[u],t+="="}else{const s=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ur[s],t+=ur[l],t+=ur[u],t+=ur[f]}return t}function L0(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}const $0="q",M0="s",T$=6e4;function yx(e){return e}const C$=yx,{clearTimeout:E$,setTimeout:A$}=globalThis,L$=Math.random.bind(Math);function $$(e,t){const{post:n,on:i,off:s=()=>{},eventNames:l=[],serialize:u=yx,deserialize:f=C$,resolver:h,bind:p="rpc",timeout:g=T$}=t,v=new Map;let y,w=!1;const L=new Proxy({},{get(N,O){if(O==="$functions")return e;if(O==="$close")return $;if(O==="$rejectPendingCalls")return C;if(O==="$closed")return w;if(O==="then"&&!l.includes("then")&&!("then"in e))return;const k=(...D)=>{n(u({m:O,a:D,t:$0}))};if(l.includes(O))return k.asEvent=k,k;const z=async(...D)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${O}"`);if(y)try{await y}finally{y=void 0}return new Promise((oe,Q)=>{var U;const W=N$();let q;g>=0&&(q=A$(()=>{var A;try{if(((A=t.onTimeoutError)==null?void 0:A.call(t,O,D))!==!0)throw new Error(`[birpc] timeout on calling "${O}"`)}catch(I){Q(I)}v.delete(W)},g),typeof q=="object"&&(q=(U=q.unref)==null?void 0:U.call(q))),v.set(W,{resolve:oe,reject:Q,timeoutId:q,method:O}),n(u({m:O,a:D,i:W,t:"q"}))})};return z.asEvent=k,z}});function $(N){w=!0,v.forEach(({reject:O,method:k})=>{const z=new Error(`[birpc] rpc is closed, cannot call "${k}"`);if(N)return N.cause??(N.cause=z),O(N);O(z)}),v.clear(),s(E)}function C(N){const k=Array.from(v.values()).map(({method:z,reject:D})=>N?N({method:z,reject:D}):D(new Error(`[birpc]: rejected pending call "${z}".`)));return v.clear(),k}async function E(N,...O){var z,D,oe;let k;try{k=f(N)}catch(Q){if(((z=t.onGeneralError)==null?void 0:z.call(t,Q))!==!0)throw Q;return}if(k.t===$0){const{m:Q,a:W}=k;let q,U;const A=h?h(Q,e[Q]):e[Q];if(!A)U=new Error(`[birpc] function "${Q}" not found`);else try{q=await A.apply(p==="rpc"?L:e,W)}catch(I){U=I}if(k.i){if(U&&t.onError&&t.onError(U,Q,W),U&&t.onFunctionError&&t.onFunctionError(U,Q,W)===!0)return;if(!U)try{n(u({t:M0,i:k.i,r:q}),...O);return}catch(I){if(U=I,((D=t.onGeneralError)==null?void 0:D.call(t,I,Q,W))!==!0)throw I}try{n(u({t:M0,i:k.i,e:U}),...O)}catch(I){if(((oe=t.onGeneralError)==null?void 0:oe.call(t,I,Q,W))!==!0)throw I}}}else{const{i:Q,r:W,e:q}=k,U=v.get(Q);U&&(E$(U.timeoutId),q?U.reject(q):U.resolve(W)),v.delete(Q)}}return y=i(E),L}const M$="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function N$(e=21){let t="",n=e;for(;n--;)t+=M$[L$()*64|0];return t}const{parse:bx,stringify:I$}=JSON,{keys:P$}=Object,Ea=String,wx="string",N0={},Eu="object",xx=(e,t)=>t,O$=e=>e instanceof Ea?Ea(e):e,R$=(e,t)=>typeof t===wx?new Ea(t):t,Sx=(e,t,n,i)=>{const s=[];for(let l=P$(n),{length:u}=l,f=0;f<u;f++){const h=l[f],p=n[h];if(p instanceof Ea){const g=e[p];typeof g===Eu&&!t.has(g)?(t.add(g),n[h]=N0,s.push({k:h,a:[e,t,g,i]})):n[h]=i.call(n,h,g)}else n[h]!==N0&&(n[h]=i.call(n,h,p))}for(let{length:l}=s,u=0;u<l;u++){const{k:f,a:h}=s[u];n[f]=i.call(n,f,Sx.apply(null,h))}return n},I0=(e,t,n)=>{const i=Ea(t.push(n)-1);return e.set(n,i),i},kh=(e,t)=>{const n=bx(e,R$).map(O$),i=n[0],s=t||xx,l=typeof i===Eu&&i?Sx(n,new Set,i,s):i;return s.call({"":l},"",l)},_x=(e,t,n)=>{const i=t&&typeof t===Eu?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||xx,s=new Map,l=[],u=[];let f=+I0(s,l,i.call({"":e},"",e)),h=!f;for(;f<l.length;)h=!0,u[f]=I$(l[f++],p,n);return"["+u.join(",")+"]";function p(g,v){if(h)return h=!h,v;const y=i.call(this,g,v);switch(typeof y){case Eu:if(y===null)return y;case wx:return s.get(y)||I0(s,l,y)}return y}},z$=e=>bx(_x(e));class kx{constructor(){ji(this,"filesMap",new Map);ji(this,"pathsSet",new Set);ji(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],s=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),s.push(n),this.filesMap.set(n.filepath,s),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(s=>{const l=this.filesMap.get(s),u=fx(s,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(s,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(s,[...f,u]):this.filesMap.set(s,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,s]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=s,(i==null?void 0:i.state)==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function D$(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:s=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=N=>N,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new kx,waitForConnection:E,reconnect:$},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(N,O){var k;(k=n.onTestAnnotate)==null||k.call(n,N,O)},onSpecsCollected(N){var O;N==null||N.forEach(([k,z])=>{g.state.clearFiles({config:k},[z])}),(O=n.onSpecsCollected)==null||O.call(n,N)},onPathsCollected(N){var O;g.state.collectPaths(N),(O=n.onPathsCollected)==null||O.call(n,N)},onCollected(N){var O;g.state.collectFiles(N),(O=n.onCollected)==null||O.call(n,N)},onTaskUpdate(N,O){var k;g.state.updateTasks(N),(k=n.onTaskUpdate)==null||k.call(n,N,O)},onUserConsoleLog(N){var O;g.state.updateUserLog(N),(O=n.onUserConsoleLog)==null||O.call(n,N)},onFinished(N,O){var k;(k=n.onFinished)==null||k.call(n,N,O)},onFinishedReportCoverage(){var N;(N=n.onFinishedReportCoverage)==null||N.call(n)}},w={post:N=>g.ws.send(N),on:N=>v=N,serialize:N=>_x(N,(O,k)=>k instanceof Error?{name:k.name,message:k.message,stack:k.stack}:k),deserialize:kh,timeout:-1};g.rpc=$$(y,w);let L;function $(N=!1){N&&(p=l),g.ws=new h(e),C()}function C(){L=new Promise((N,O)=>{var z,D;const k=(D=(z=setTimeout(()=>{O(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u))==null?void 0:z.unref)==null?void 0:D.call(z);g.ws.OPEN===g.ws.readyState&&N(),g.ws.addEventListener("open",()=>{p=l,N(),clearTimeout(k)})}),g.ws.addEventListener("message",N=>{v(N.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout($,s)})}C();function E(){return L}return g}function Ap(e){return ab()?(zk(e),!0):!1}const Od=new WeakMap,F$=(...e)=>{var t;const n=e[0],i=(t=Ko())==null?void 0:t.proxy;if(i==null&&!Xb())throw new Error("injectLocal must be called in setup");return i&&Od.has(i)&&n in Od.get(i)?Od.get(i)[n]:wn(...e)},H$=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const B$=Object.prototype.toString,W$=e=>B$.call(e)==="[object Object]",Au=()=>{};function Tx(e,t){function n(...i){return new Promise((s,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(s).catch(l)})}return n}const Cx=e=>e();function Ex(e,t={}){let n,i,s=Au;const l=h=>{clearTimeout(h),s(),s=Au};let u;return h=>{const p=Gt(e),g=Gt(t.maxWait);return n&&l(n),p<=0||g!==void 0&&g<=0?(i&&(l(i),i=null),Promise.resolve(h())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,u=h,g&&!i&&(i=setTimeout(()=>{n&&l(n),i=null,v(u())},g)),n=setTimeout(()=>{i&&l(i),i=null,v(h())},p)})}}function j$(e=Cx,t={}){const{initialState:n="active"}=t,i=Ax(n==="active");function s(){i.value=!1}function l(){i.value=!0}const u=(...f)=>{i.value&&e(...f)};return{isActive:za(i),pause:s,resume:l,eventFilter:u}}function P0(e,t=!1,n="Timeout"){return new Promise((i,s)=>{setTimeout(t?()=>s(n):i,e)})}function O0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function q$(e){return Ko()}function Rd(e){return Array.isArray(e)?e:[e]}function Ax(...e){if(e.length!==1)return ol(...e);const t=e[0];return typeof t=="function"?za(Tb(()=>({get:t,set:Au}))):Ue(t)}function Hc(e,t=200,n={}){return Tx(Ex(t,n),e)}function Lx(e,t,n={}){const{eventFilter:i=Cx,...s}=n;return St(e,Tx(i,t),s)}function $x(e,t,n={}){const{eventFilter:i,initialState:s="active",...l}=n,{eventFilter:u,pause:f,resume:h,isActive:p}=j$(i,{initialState:s});return{stop:Lx(e,t,{...l,eventFilter:u}),pause:f,resume:h,isActive:p}}function Lp(e,t=!0,n){q$()?bo(e,n):t?e():Et(e)}function Th(e,t=!1){function n(v,{flush:y="sync",deep:w=!1,timeout:L,throwOnTimeout:$}={}){let C=null;const N=[new Promise(O=>{C=St(e,k=>{v(k)!==t&&(C?C():Et(()=>C==null?void 0:C()),O(k))},{flush:y,deep:w,immediate:!0})})];return L!=null&&N.push(P0(L,$).then(()=>Gt(e)).finally(()=>C==null?void 0:C())),Promise.race(N)}function i(v,y){if(!kt(v))return n(k=>k===v,y);const{flush:w="sync",deep:L=!1,timeout:$,throwOnTimeout:C}=y??{};let E=null;const O=[new Promise(k=>{E=St([e,v],([z,D])=>{t!==(z===D)&&(E?E():Et(()=>E==null?void 0:E()),k(z))},{flush:w,deep:L,immediate:!0})})];return $!=null&&O.push(P0($,C).then(()=>Gt(e)).finally(()=>(E==null||E(),Gt(e)))),Promise.race(O)}function s(v){return n(y=>!!y,v)}function l(v){return i(null,v)}function u(v){return i(void 0,v)}function f(v){return n(Number.isNaN,v)}function h(v,y){return n(w=>{const L=Array.from(w);return L.includes(v)||L.includes(Gt(v))},y)}function p(v){return g(1,v)}function g(v=1,y){let w=-1;return n(()=>(w+=1,w>=v),y)}return Array.isArray(Gt(e))?{toMatch:n,toContains:h,changed:p,changedTimes:g,get not(){return Th(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:s,toBeNull:l,toBeNaN:f,toBeUndefined:u,changed:p,changedTimes:g,get not(){return Th(e,!t)}}}function R0(e){return Th(e)}function U$(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,s=kt(e),l=rn(e);function u(f){if(arguments.length)return l.value=f,l.value;{const h=Gt(n);return l.value=l.value===h?Gt(i):h,l.value}}return s?u:[l,u]}function $p(e,t,n={}){const{debounce:i=0,maxWait:s=void 0,...l}=n;return Lx(e,t,{...l,eventFilter:Ex(i,{maxWait:s})})}function V$(e,t,n){return St(e,t,{...n,immediate:!0})}function G$(e,t,n){const i=St(e,(...s)=>(Et(()=>i()),t(...s)),n);return i}function X$(e,t,n){let i;kt(n)?i={evaluating:n}:i={};const{lazy:s=!1,evaluating:l=void 0,shallow:u=!0,onError:f=Au}=i,h=rn(!s),p=u?rn(t):Ue(t);let g=0;return pp(async v=>{if(!h.value)return;g++;const y=g;let w=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const L=await e($=>{v(()=>{l&&(l.value=!1),w||$()})});y===g&&(p.value=L)}catch(L){f(L)}finally{l&&y===g&&(l.value=!1),w=!0}}),s?_e(()=>(h.value=!0,p.value)):p}const Or=H$?window:void 0;function Lu(e){var t;const n=Gt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function go(...e){const t=[],n=()=>{t.forEach(f=>f()),t.length=0},i=(f,h,p,g)=>(f.addEventListener(h,p,g),()=>f.removeEventListener(h,p,g)),s=_e(()=>{const f=Rd(Gt(e[0])).filter(h=>h!=null);return f.every(h=>typeof h!="string")?f:void 0}),l=V$(()=>{var f,h;return[(h=(f=s.value)==null?void 0:f.map(p=>Lu(p)))!=null?h:[Or].filter(p=>p!=null),Rd(Gt(s.value?e[1]:e[0])),Rd(j(s.value?e[2]:e[1])),Gt(s.value?e[3]:e[2])]},([f,h,p,g])=>{if(n(),!(f!=null&&f.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const v=W$(g)?{...g}:g;t.push(...f.flatMap(y=>h.flatMap(w=>p.map(L=>i(y,w,L,v)))))},{flush:"post"}),u=()=>{l(),n()};return Ap(n),u}function K$(){const e=rn(!1),t=Ko();return t&&bo(()=>{e.value=!0},t),e}function Mx(e){const t=K$();return _e(()=>(t.value,!!e()))}function J$(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Nx(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Or,eventName:l="keydown",passive:u=!1,dedupe:f=!1}=i,h=J$(t);return go(s,l,g=>{g.repeat&&Gt(f)||h(g)&&n(g)},u)}function Y$(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:s=Or,once:l=!1}=t,u=rn(!1),f=_e(()=>i?1e3/Gt(i):null);let h=0,p=null;function g(w){if(!u.value||!s)return;h||(h=w);const L=w-h;if(f.value&&L<f.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:L,timestamp:w}),l){u.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!u.value&&s&&(u.value=!0,h=0,p=s.requestAnimationFrame(g))}function y(){u.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return n&&v(),Ap(y),{isActive:za(u),pause:y,resume:v}}const Z$=Symbol("vueuse-ssr-width");function Q$(){const e=Xb()?F$(Z$,null):null;return typeof e=="number"?e:void 0}function Ix(e,t={}){const{window:n=Or,ssrWidth:i=Q$()}=t,s=Mx(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=rn(typeof i=="number"),u=rn(),f=rn(!1),h=p=>{f.value=p.matches};return pp(()=>{if(l.value){l.value=!s.value;const p=Gt(e).split(",");f.value=p.some(g=>{const v=g.includes("not all"),y=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let L=!!(y||w);return y&&L&&(L=i>=O0(y[1])),w&&L&&(L=i<=O0(w[1])),v?!L:L});return}s.value&&(u.value=n.matchMedia(Gt(e)),f.value=u.value.matches)}),go(u,"change",h,{passive:!0}),_e(()=>f.value)}const Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wc="__vueuse_ssr_handlers__",eM=tM();function tM(){return Wc in Bc||(Bc[Wc]=Bc[Wc]||{}),Bc[Wc]}function Px(e,t){return eM[e]||t}function nM(e){return Ix("(prefers-color-scheme: dark)",e)}function rM(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 iM={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()}},z0="vueuse-storage";function Ox(e,t,n,i={}){var s;const{flush:l="pre",deep:u=!0,listenToStorageChanges:f=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Or,eventFilter:y,onError:w=U=>{console.error(U)},initOnMounted:L}=i,$=(g?rn:Ue)(typeof t=="function"?t():t),C=_e(()=>Gt(e));if(!n)try{n=Px("getDefaultStorage",()=>{var U;return(U=Or)==null?void 0:U.localStorage})()}catch(U){w(U)}if(!n)return $;const E=Gt(t),N=rM(E),O=(s=i.serializer)!=null?s:iM[N],{pause:k,resume:z}=$x($,()=>oe($.value),{flush:l,deep:u,eventFilter:y});St(C,()=>W(),{flush:l}),v&&f&&Lp(()=>{n instanceof Storage?go(v,"storage",W,{passive:!0}):go(v,z0,q),L&&W()}),L||W();function D(U,A){if(v){const I={key:C.value,oldValue:U,newValue:A,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",I):new CustomEvent(z0,{detail:I}))}}function oe(U){try{const A=n.getItem(C.value);if(U==null)D(A,null),n.removeItem(C.value);else{const I=O.write(U);A!==I&&(n.setItem(C.value,I),D(A,I))}}catch(A){w(A)}}function Q(U){const A=U?U.newValue:n.getItem(C.value);if(A==null)return h&&E!=null&&n.setItem(C.value,O.write(E)),E;if(!U&&p){const I=O.read(A);return typeof p=="function"?p(I,E):N==="object"&&!Array.isArray(I)?{...E,...I}:I}else return typeof A!="string"?A:O.read(A)}function W(U){if(!(U&&U.storageArea!==n)){if(U&&U.key==null){$.value=E;return}if(!(U&&U.key!==C.value)){k();try{(U==null?void 0:U.newValue)!==O.write($.value)&&($.value=Q(U))}catch(A){w(A)}finally{U?Et(z):z()}}}}function q(U){W(U.detail)}return $}const oM="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function sM(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:s=Or,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},y=nM({window:s}),w=_e(()=>y.value?"dark":"light"),L=h||(u==null?Ax(i):Ox(u,i,l,{window:s,listenToStorageChanges:f})),$=_e(()=>L.value==="auto"?w.value:L.value),C=Px("updateHTMLAttrs",(k,z,D)=>{const oe=typeof k=="string"?s==null?void 0:s.document.querySelector(k):Lu(k);if(!oe)return;const Q=new Set,W=new Set;let q=null;if(z==="class"){const A=D.split(/\s/g);Object.values(v).flatMap(I=>(I||"").split(/\s/g)).filter(Boolean).forEach(I=>{A.includes(I)?Q.add(I):W.add(I)})}else q={key:z,value:D};if(Q.size===0&&W.size===0&&q===null)return;let U;g&&(U=s.document.createElement("style"),U.appendChild(document.createTextNode(oM)),s.document.head.appendChild(U));for(const A of Q)oe.classList.add(A);for(const A of W)oe.classList.remove(A);q&&oe.setAttribute(q.key,q.value),g&&(s.getComputedStyle(U).opacity,document.head.removeChild(U))});function E(k){var z;C(t,n,(z=v[k])!=null?z:k)}function N(k){e.onChanged?e.onChanged(k,E):E(k)}St($,N,{flush:"post",immediate:!0}),Lp(()=>N($.value));const O=_e({get(){return p?L.value:$.value},set(k){L.value=k}});return Object.assign(O,{store:L,system:w,state:$})}function lM(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=sM({...e,onChanged:(u,f)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,u==="dark",f,u):f(u)},modes:{dark:t,light:n}}),s=_e(()=>i.system.value);return _e({get(){return i.value==="dark"},set(u){const f=u?"dark":"light";s.value===f?i.value="auto":i.value=f}})}function Rx(e,t,n={}){const{window:i=Or,...s}=n;let l;const u=Mx(()=>i&&"ResizeObserver"in i),f=()=>{l&&(l.disconnect(),l=void 0)},h=_e(()=>{const v=Gt(e);return Array.isArray(v)?v.map(y=>Lu(y)):[Lu(v)]}),p=St(h,v=>{if(f(),u.value&&i){l=new ResizeObserver(t);for(const y of v)y&&l.observe(y,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),p()};return Ap(g),{isSupported:u,stop:g}}function uf(e,t,n={}){const{window:i=Or}=n;return Ox(e,t,i==null?void 0:i.localStorage,n)}function aM(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:s=!1,write:l=!0,writeMode:u="replace",window:f=Or}=t;if(!f)return rr(n);const h=rr({});function p(){if(e==="history")return f.location.search||"";if(e==="hash"){const O=f.location.hash||"",k=O.indexOf("?");return k>0?O.slice(k):""}else return(f.location.hash||"").replace(/^#/,"")}function g(O){const k=O.toString();if(e==="history")return`${k?`?${k}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${k?`#${k}`:""}`;const z=f.location.hash||"#",D=z.indexOf("?");return D>0?`${f.location.search||""}${z.slice(0,D)}${k?`?${k}`:""}`:`${f.location.search||""}${z}${k?`?${k}`:""}`}function v(){return new URLSearchParams(p())}function y(O){const k=new Set(Object.keys(h));for(const z of O.keys()){const D=O.getAll(z);h[z]=D.length>1?D:O.get(z)||"",k.delete(z)}Array.from(k).forEach(z=>delete h[z])}const{pause:w,resume:L}=$x(h,()=>{const O=new URLSearchParams("");Object.keys(h).forEach(k=>{const z=h[k];Array.isArray(z)?z.forEach(D=>O.append(k,D)):i&&z==null||s&&!z?O.delete(k):O.set(k,z)}),$(O,!1)},{deep:!0});function $(O,k){w(),k&&y(O),u==="replace"?f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(O)):f.history.pushState(f.history.state,f.document.title,f.location.pathname+g(O)),L()}function C(){l&&$(v(),!0)}const E={passive:!0};go(f,"popstate",C,E),e!=="history"&&go(f,"hashchange",C,E);const N=v();return N.keys().next().value?y(N):Object.assign(h,n),h}function zx(e={}){const{window:t=Or,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:l=!0,type:u="inner"}=e,f=rn(n),h=rn(i),p=()=>{if(t)if(u==="outer")f.value=t.outerWidth,h.value=t.outerHeight;else if(u==="visual"&&t.visualViewport){const{width:v,height:y,scale:w}=t.visualViewport;f.value=Math.round(v*w),h.value=Math.round(y*w)}else l?(f.value=t.innerWidth,h.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Lp(p);const g={passive:!0};if(go("resize",p,g),t&&u==="visual"&&t.visualViewport&&go(t.visualViewport,"resize",p,g),s){const v=Ix("(orientation: portrait)");St(v,()=>p())}return{width:f,height:h}}const Ch=rn([]),Jn=rn([]),Rr=uf("vitest-ui_task-tree-opened",[],{shallow:!0}),$u=_e(()=>new Set(Rr.value)),pn=uf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ue(pn.value.search),cM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Dx(e){return e.replace(/[&<>"']/g,t=>cM[t])}const uM=_e(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${Dx(e)})`,"gi"):null}),Fx=_e(()=>Un.value.trim()!==""),et=rr({failed:pn.value.failed,success:pn.value.success,skipped:pn.value.skipped,onlyTests:pn.value.onlyTests}),Eh=_e(()=>!!(et.failed||et.success||et.skipped)),ff=rn([]),Zs=Ue(!1),D0=_e(()=>{const e=pn.value.expandAll;return Rr.value.length>0?e!==!0:e!==!1}),fM=_e(()=>{const e=Fx.value,t=Eh.value,n=et.onlyTests,i=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,l=Ae.summary.filesSkipped,u=Ae.summary.filesRunning,f=ff.value;return Ae.collectTestsTotal(e||t,n,f,{failed:i,success:s,skipped:l,running:u})});function Ua(e){return Object.hasOwnProperty.call(e,"tasks")}function dM(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Hx(e){if(!e)return"";const t=e.split("").reduce((i,s,l)=>i+s.charCodeAt(0)+l,0),n=["yellow","cyan","green","magenta"];return n[t%n.length]}function Bx(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function hM(e){return e.type==="test"}function pM(e){return e.mode==="run"&&e.type==="test"}function On(e){return e.type==="file"}function Ci(e){return e.type==="file"||e.type==="suite"}function gM(e=Ae.root.tasks){return e.sort((t,n)=>`${t.filepath}:${t.projectName}`.localeCompare(`${n.filepath}:${n.projectName}`))}function Aa(e,t=!1){var i,s,l,u,f;let n=Ae.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.state=(i=e.result)==null?void 0:i.state,n.mode=e.mode,n.duration=(s=e.result)==null?void 0:s.duration,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:$u.value.size>0&&$u.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((l=e.result)==null?void 0:l.duration)!=null?Math.round((u=e.result)==null?void 0:u.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||Hx(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(f=e.result)==null?void 0:f.state},Ae.nodes.set(e.id,n),Ae.root.tasks.push(n)),t)for(let h=0;h<e.tasks.length;h++)Va(e.id,e.tasks[h],!0)}function Wx(e,t){const n=Ae.nodes.get(e);if(!n||!Ci(n))return;const i=ht.state.idMap.get(e);if(!(!i||!Ua(i)))return Va(n.parentId,i,t&&i.tasks.length>0),[n,i]}function mM(e){const t=Ae.nodes.get(e);if(!t)return;const n=ht.state.idMap.get(e);!n||!hx(n)||Va(t.parentId,n,!1)}function Va(e,t,n){var u,f,h,p,g;const i=Ae.nodes.get(e);let s;const l=((u=t.result)==null?void 0:u.duration)!=null?Math.round((f=t.result)==null?void 0:f.duration):void 0;if(i&&(s=Ae.nodes.get(t.id),s?(i.children.has(t.id)||(i.tasks.push(s),i.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=l,s.state=(h=t.result)==null?void 0:h.state):(hx(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:i.indent+1,duration:l,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:$u.value.size>0&&$u.value.has(t.id),children:new Set,tasks:[],indent:i.indent+1,duration:l,state:(g=t.result)==null?void 0:g.state},Ae.nodes.set(t.id,s),i.tasks.push(s),i.children.add(t.id)),s&&n&&Ua(t)))for(let v=0;v<t.tasks.length;v++)Va(s.id,t.tasks[v],n)}function vM(e){const t=Ae.nodes.get(e);if(!t||!Ci(t))return;const n=new Set(Rr.value);n.delete(t.id);const i=[...bM(t)];Rr.value=Array.from(n),Jn.value=i}function yM(){Ah(Ae.root.tasks);const e=[...Jn.value.filter(On)];Ah(e),Rr.value=[],pn.value.expandAll=!0,Jn.value=e}function Ah(e){for(const t of e)Ci(t)&&(t.expanded=!1,Ah(t.tasks))}function*jx(e,t){if(t&&(yield e.id),Ci(e))for(let n=0;n<e.tasks.length;n++)yield*jx(e.tasks[n],!0)}function*bM(e){const t=e.id,n=new Set(jx(e,!1));for(let i=0;i<Jn.value.length;i++){const s=Jn.value[i];if(s.id===t){s.expanded=!1,yield s;continue}if(n.has(s.id)){n.delete(s.id);continue}yield s}}const df=Ue("idle"),$s=_e(()=>df.value==="idle"),Zi=Ue([]);function wM(e,t,n){return e?Vx(e,t,n):!1}function Mp(e,t){const n=[...qx(e,t)];Jn.value=n,ff.value=n.filter(On).map(i=>gr(i.id))}function*qx(e,t){for(const n of gM())yield*Ux(n,e,t)}function*Ux(e,t,n){const i=new Set,s=new Map,l=[];let u;if(n.onlyTests)for(const[v,y]of Lh(e,i,w=>F0(w,t,n)))l.push([v,y]);else{for(const[v,y]of Lh(e,i,w=>F0(w,t,n)))Ci(y)?(s.set(y.id,v),On(y)?(v&&(u=y.id),l.push([v,y])):l.push([v||s.get(y.parentId)===!0,y])):l.push([v||s.get(y.parentId)===!0,y]);!u&&!On(e)&&"fileId"in e&&(u=e.fileId)}const f=new Set,h=[...SM(l,n.onlyTests,i,f,u)].reverse(),p=Ae.nodes,g=new Set(h.filter(v=>{var y;return On(v)||Ci(v)&&((y=p.get(v.parentId))==null?void 0:y.expanded)}).map(v=>v.id));yield*h.filter(v=>{var y;return On(v)||g.has(v.parentId)&&((y=p.get(v.parentId))==null?void 0:y.expanded)})}function xM(e,t,n,i,s){if(i){if(On(t))return s.has(t.id)?t:void 0;if(n.has(t.id)){const l=Ae.nodes.get(t.parentId);return l&&On(l)&&s.add(l.id),t}}else if(e||n.has(t.id)||s.has(t.id)){const l=Ae.nodes.get(t.parentId);return l&&On(l)&&s.add(l.id),t}}function*SM(e,t,n,i,s){for(let l=e.length-1;l>=0;l--){const[u,f]=e[l],h=Ci(f);if(!t&&s&&n.has(s)&&"fileId"in f&&f.fileId===s){h&&n.add(f.id);let p=Ae.nodes.get(f.parentId);for(;p;)n.add(p.id),On(p)&&i.add(p.id),p=Ae.nodes.get(p.parentId);yield f;continue}if(h){const p=xM(u,f,n,t,i);p&&(yield p)}else if(u){const p=Ae.nodes.get(f.parentId);p&&On(p)&&i.add(p.id),yield f}}}function _M(e,t){var n,i;return(t.success||t.failed)&&"result"in e&&(t.success&&((n=e.result)==null?void 0:n.state)==="pass"||t.failed&&((i=e.result)==null?void 0:i.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Vx(e,t,n){if(t.length===0||dM(e.name,t))if(n.success||n.failed||n.skipped){if(_M(e,n))return!0}else return!0;return!1}function*Lh(e,t,n){const i=n(e);if(i)if(hM(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(On(e))t.add(e.id);else{t.add(e.id);let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}if(yield[i,e],Ci(e))for(let s=0;s<e.tasks.length;s++)yield*Lh(e.tasks[s],t,n)}function F0(e,t,n){const i=ht.state.idMap.get(e.id);return i?Vx(i,t,n):!1}function kM(e,t,n){const i=Wx(e,!1);if(!i)return;const[s,l]=i;for(const p of l.tasks)Va(s.id,p,!1);s.expanded=!0;const u=new Set(Rr.value);u.add(s.id);const f=new Set(Ux(s,t,n)),h=[...EM(s,f)];Rr.value=Array.from(u),Jn.value=h}function TM(e,t){Np(Ae.root.tasks,!1);const n=[...qx(e,t)];pn.value.expandAll=!1,Rr.value=[],Jn.value=n,ff.value=n.filter(On).map(i=>gr(i.id))}function CM(e,t){if(e.size)for(const n of Jn.value)e.has(n.id)&&(n.expanded=!0);else t&&Np(Jn.value.filter(On),!0)}function Np(e,t){for(const n of e)Ci(n)&&(n.expanded=!0,Np(n.tasks,!1));t&&(pn.value.expandAll=!1,Rr.value=[])}function*EM(e,t){const n=e.id,i=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===n?(s.expanded=!0,i.has(s.id)||(yield e),yield*t):i.has(s.id)||(yield s)}function Ip(e){return px(e).some(t=>{var n,i;return(i=(n=t.result)==null?void 0:n.errors)==null?void 0:i.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function AM(e,t,n,i){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[l])=>s.localeCompare(l)).map(([,s])=>Aa(s,t)),Ch.value=[...Ae.root.tasks],Mp(n.trim(),{failed:i.failed,success:i.success,skipped:i.skipped,onlyTests:i.onlyTests})}function LM(e){queueMicrotask(()=>{const t=Ae.pendingTasks,n=ht.state.idMap;for(const i of e)if(i[1]){const l=n.get(i[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function $M(e,t){const n=Ae.pendingTasks,s=ht.state.idMap.get(e);if((s==null?void 0:s.type)==="test"){let l=n.get(s.file.id);l||(l=new Set,n.set(s.file.id,l)),l.add(s.id),s.annotations.push(t)}}function H0(e,t,n,i,s){e&&RM(n);const l=!e;queueMicrotask(()=>{t?IM(l):PM(l)}),queueMicrotask(()=>{zM(n)}),queueMicrotask(()=>{t&&(n.failedSnapshot=Ch.value&&Ip(Ch.value.map(u=>gr(u.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{OM(i,s,t)})}function*MM(){yield*Jn.value.filter(pM)}function NM(){const e=ht.state.idMap;let t;for(const n of MM())t=e.get(n.parentId),t&&Ua(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function IM(e){const t=ht.state.getFiles(),n=Ae.nodes,i=t.filter(l=>!n.has(l.id));for(let l=0;l<i.length;l++)Aa(i[l],e),Mu(i[l].tasks);const s=Ae.root.tasks;for(let l=0;l<s.length;l++){const u=s[l],f=gr(u.id);if(!f)continue;Aa(f,e);const h=f.tasks;h!=null&&h.length&&Mu(f.tasks)}}function PM(e){const t=new Map(Ae.pendingTasks.entries());Ae.pendingTasks.clear();const n=Ae.nodes,i=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>gr(f)).filter(Boolean);let s;for(let f=0;f<i.length;f++)s=i[f],Aa(s,!1),Mu(s.tasks),t.delete(s.id);const l=ht.state.idMap,u=Ae.root.tasks;for(let f=0;f<u.length;f++){const h=u[f],p=gr(h.id);if(!p)continue;const g=t.get(p.id);g&&(Aa(p,e),Mu(Array.from(g).map(v=>l.get(v)).filter(Boolean)))}}function OM(e,t,n=!1){const i=pn.value.expandAll,s=i!==!0,l=new Set(Rr.value),u=l.size>0&&i===!1||s;queueMicrotask(()=>{B0(e,t,n)}),Zs.value||queueMicrotask(()=>{(Jn.value.length||n)&&(Zs.value=!0)}),u&&(queueMicrotask(()=>{CM(l,n),s&&(pn.value.expandAll=!1)}),queueMicrotask(()=>{B0(e,t,n)}))}function B0(e,t,n){Mp(e,t),n&&(NM(),df.value="idle")}function Mu(e){let t;for(let n=0;n<e.length;n++)t=e[n],Ua(t)?Wx(t.id,!0):mM(t.id)}function RM(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 zM(e){var u,f,h,p,g,v;const t=ht.state.idMap,n=new Map(Ae.root.tasks.filter(y=>t.has(y.id)).map(y=>[y.id,y])),i=Array.from(n.values()).map(y=>[y.id,gr(y.id)]),s={files:n.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 l=0;for(const[y,w]of i){if(!w)continue;const L=n.get(y);L&&(L.mode=w.mode,L.setupDuration=w.setupDuration,L.prepareDuration=w.prepareDuration,L.environmentLoad=w.environmentLoad,L.collectDuration=w.collectDuration,L.duration=((u=w.result)==null?void 0:u.duration)!=null?Math.round((f=w.result)==null?void 0:f.duration):void 0,L.state=(h=w.result)==null?void 0:h.state),l+=Math.max(0,w.collectDuration||0),l+=Math.max(0,w.setupDuration||0),l+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),l+=Math.max(0,w.environmentLoad||0),l+=Math.max(0,w.prepareDuration||0),s.time=l>1e3?`${(l/1e3).toFixed(2)}s`:`${Math.round(l)}ms`,((g=w.result)==null?void 0:g.state)==="fail"?s.filesFailed++:((v=w.result)==null?void 0:v.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:$,success:C,skipped:E,total:N,ignored:O,todo:k}=Gx(w);s.totalTests+=N,s.testsFailed+=$,s.testsSuccess+=C,s.testsSkipped+=E,s.testsTodo+=k,s.testsIgnore+=O}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 Gx(e,t="",n){var s,l;const i={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const u of Xx(e))(!n||wM(u,t,n))&&(i.total++,((s=u.result)==null?void 0:s.state)==="fail"?i.failed++:((l=u.result)==null?void 0:l.state)==="pass"?i.success++:u.mode==="skip"?(i.ignored++,i.skipped++):u.mode==="todo"&&(i.ignored++,i.todo++));return i.running=i.total-i.failed-i.success-i.ignored,i}function DM(e,t,n,i,s,l){var u,f;if(t)return n.map(h=>Gx(h,s,l)).reduce((h,{failed:p,success:g,ignored:v,running:y})=>(h.failed+=p,h.success+=g,h.skipped+=v,h.running+=y,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!l.success&&!l.failed,g=l.failed||p,v=l.success||p;for(const y of n)((u=y.result)==null?void 0:u.state)==="fail"?h.failed+=g?1:0:((f=y.result)==null?void 0:f.state)==="pass"?h.success+=v?1:0:y.mode==="skip"||y.mode==="todo"||h.running++;return h}return i}function*Xx(e){const t=qa(e);let n;for(let i=0;i<t.length;i++)n=t[i],Ca(n)?yield n:yield*Xx(n.tasks)}class FM{constructor(t=[],n=new Map,i=!1,s=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=new Map,f=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})){ji(this,"rafCollector");ji(this,"resumeEndRunId");this.projects=t,this.colors=n,this.onTaskUpdateCalled=i,this.resumeEndTimeout=s,this.root=l,this.pendingTasks=u,this.nodes=f,this.summary=h,this.rafCollector=Y$(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(i=>i.name)),this.colors=new Map(n.map(i=>[i.name,i.color])),AM(t,!0,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,n){$M(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){LM(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,n,i=!0){i?queueMicrotask(()=>{H0(t,n,this.summary,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):H0(t,n,this.summary,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,n,i,s){return DM(t,n,i,s,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{vM(t)})}expandNode(t){queueMicrotask(()=>{kM(t,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{yM()})}expandAllNodes(){queueMicrotask(()=>{TM(Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Mp(Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Ae=new FM,er=Ue([414,896]),Ga=aM("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),mo=ol(Ga,"file"),jn=ol(Ga,"view"),Kx=ol(Ga,"line"),Jx=ol(Ga,"column"),js=ol(Ga,"test"),Qs=Ue(),qs=Ue(!0),vo=Ue(!1),Nu=Ue(!0),Ms=_e(()=>{var e;return(e=el.value)==null?void 0:e.coverage}),$h=_e(()=>{var e;return(e=Ms.value)==null?void 0:e.enabled}),Ns=_e(()=>$h.value&&!!Ms.value.htmlReporter),Us=uf("vitest-ui_splitpanes-mainSizes",[33,67]);var Qy;const co=uf("vitest-ui_splitpanes-detailSizes",[((Qy=window.__vitest_browser_runner__)==null?void 0:Qy.provider)==="webdriverio"?er.value[0]/window.outerWidth*100:33,67]),At=rr({navigation:Us.value[0],details:{size:Us.value[1],browser:co.value[0],main:co.value[1]}}),W0=_e(()=>{var e;if(Ns.value){const t=Ms.value.reportsDirectory.lastIndexOf("/"),n=(e=Ms.value.htmlReporter)==null?void 0:e.subdir;return n?`/${Ms.value.reportsDirectory.slice(t+1)}/${n}/index.html`:`/${Ms.value.reportsDirectory.slice(t+1)}/index.html`}});St(df,e=>{Nu.value=e==="running"},{immediate:!0});function HM(){const e=mo.value;if(e&&e.length>0){const t=gr(e);t?(Qs.value=t,qs.value=!1,vo.value=!1):G$(()=>ht.state.getFiles(),()=>{Qs.value=gr(e),qs.value=!1,vo.value=!1})}return qs}function Iu(e){qs.value=e,vo.value=!1,e&&(Qs.value=void 0,mo.value="")}function hf({file:e,line:t,view:n,test:i,column:s}){mo.value=e,Kx.value=t,Jx.value=s,jn.value=n,js.value=i,Qs.value=gr(e),Iu(!1)}function BM(e){hf({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null,column:null})}function WM(){vo.value=!0,qs.value=!1,Qs.value=void 0,mo.value=""}function jM(){At.details.browser=100,At.details.main=0,co.value=[100,0]}function Yx(){if((It==null?void 0:It.provider)==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(er.value[0]+20)/e*100}return 33}function qM(){At.details.browser=Yx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main]}function UM(){At.navigation=33,At.details.size=67,Us.value=[33,67]}function Zx(){At.details.main!==0&&(At.details.browser=Yx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main])}const VM={setCurrentFileId(e){mo.value=e,Qs.value=gr(e),Iu(!1)},async setIframeViewport(e,t){er.value=[e,t],(It==null?void 0:It.provider)==="webdriverio"&&Zx(),await new Promise(n=>requestAnimationFrame(n))}},GM=location.port,XM=[location.hostname,GM].filter(Boolean).join(":"),KM=`${location.protocol==="https:"?"wss:":"ws:"}//${XM}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var zd={},Tr={};const JM="Á",YM="á",ZM="Ă",QM="ă",eN="∾",tN="∿",nN="∾̳",rN="Â",iN="â",oN="´",sN="А",lN="а",aN="Æ",cN="æ",uN="⁡",fN="𝔄",dN="𝔞",hN="À",pN="à",gN="ℵ",mN="ℵ",vN="Α",yN="α",bN="Ā",wN="ā",xN="⨿",SN="&",_N="&",kN="⩕",TN="⩓",CN="∧",EN="⩜",AN="⩘",LN="⩚",$N="∠",MN="⦤",NN="∠",IN="⦨",PN="⦩",ON="⦪",RN="⦫",zN="⦬",DN="⦭",FN="⦮",HN="⦯",BN="∡",WN="∟",jN="⊾",qN="⦝",UN="∢",VN="Å",GN="⍼",XN="Ą",KN="ą",JN="𝔸",YN="𝕒",ZN="⩯",QN="≈",e2="⩰",t2="≊",n2="≋",r2="'",i2="⁡",o2="≈",s2="≊",l2="Å",a2="å",c2="𝒜",u2="𝒶",f2="≔",d2="*",h2="≈",p2="≍",g2="Ã",m2="ã",v2="Ä",y2="ä",b2="∳",w2="⨑",x2="≌",S2="϶",_2="‵",k2="∽",T2="⋍",C2="∖",E2="⫧",A2="⊽",L2="⌅",$2="⌆",M2="⌅",N2="⎵",I2="⎶",P2="≌",O2="Б",R2="б",z2="„",D2="∵",F2="∵",H2="∵",B2="⦰",W2="϶",j2="ℬ",q2="ℬ",U2="Β",V2="β",G2="ℶ",X2="≬",K2="𝔅",J2="𝔟",Y2="⋂",Z2="◯",Q2="⋃",eI="⨀",tI="⨁",nI="⨂",rI="⨆",iI="★",oI="▽",sI="△",lI="⨄",aI="⋁",cI="⋀",uI="⤍",fI="⧫",dI="▪",hI="▴",pI="▾",gI="◂",mI="▸",vI="␣",yI="▒",bI="░",wI="▓",xI="█",SI="=⃥",_I="≡⃥",kI="⫭",TI="⌐",CI="𝔹",EI="𝕓",AI="⊥",LI="⊥",$I="⋈",MI="⧉",NI="┐",II="╕",PI="╖",OI="╗",RI="┌",zI="╒",DI="╓",FI="╔",HI="─",BI="═",WI="┬",jI="╤",qI="╥",UI="╦",VI="┴",GI="╧",XI="╨",KI="╩",JI="⊟",YI="⊞",ZI="⊠",QI="┘",eP="╛",tP="╜",nP="╝",rP="└",iP="╘",oP="╙",sP="╚",lP="│",aP="║",cP="┼",uP="╪",fP="╫",dP="╬",hP="┤",pP="╡",gP="╢",mP="╣",vP="├",yP="╞",bP="╟",wP="╠",xP="‵",SP="˘",_P="˘",kP="¦",TP="𝒷",CP="ℬ",EP="⁏",AP="∽",LP="⋍",$P="⧅",MP="\\",NP="⟈",IP="•",PP="•",OP="≎",RP="⪮",zP="≏",DP="≎",FP="≏",HP="Ć",BP="ć",WP="⩄",jP="⩉",qP="⩋",UP="∩",VP="⋒",GP="⩇",XP="⩀",KP="ⅅ",JP="∩︀",YP="⁁",ZP="ˇ",QP="ℭ",eO="⩍",tO="Č",nO="č",rO="Ç",iO="ç",oO="Ĉ",sO="ĉ",lO="∰",aO="⩌",cO="⩐",uO="Ċ",fO="ċ",dO="¸",hO="¸",pO="⦲",gO="¢",mO="·",vO="·",yO="𝔠",bO="ℭ",wO="Ч",xO="ч",SO="✓",_O="✓",kO="Χ",TO="χ",CO="ˆ",EO="≗",AO="↺",LO="↻",$O="⊛",MO="⊚",NO="⊝",IO="⊙",PO="®",OO="Ⓢ",RO="⊖",zO="⊕",DO="⊗",FO="○",HO="⧃",BO="≗",WO="⨐",jO="⫯",qO="⧂",UO="∲",VO="”",GO="’",XO="♣",KO="♣",JO=":",YO="∷",ZO="⩴",QO="≔",eR="≔",tR=",",nR="@",rR="∁",iR="∘",oR="∁",sR="ℂ",lR="≅",aR="⩭",cR="≡",uR="∮",fR="∯",dR="∮",hR="𝕔",pR="ℂ",gR="∐",mR="∐",vR="©",yR="©",bR="℗",wR="∳",xR="↵",SR="✗",_R="⨯",kR="𝒞",TR="𝒸",CR="⫏",ER="⫑",AR="⫐",LR="⫒",$R="⋯",MR="⤸",NR="⤵",IR="⋞",PR="⋟",OR="↶",RR="⤽",zR="⩈",DR="⩆",FR="≍",HR="∪",BR="⋓",WR="⩊",jR="⊍",qR="⩅",UR="∪︀",VR="↷",GR="⤼",XR="⋞",KR="⋟",JR="⋎",YR="⋏",ZR="¤",QR="↶",ez="↷",tz="⋎",nz="⋏",rz="∲",iz="∱",oz="⌭",sz="†",lz="‡",az="ℸ",cz="↓",uz="↡",fz="⇓",dz="‐",hz="⫤",pz="⊣",gz="⤏",mz="˝",vz="Ď",yz="ď",bz="Д",wz="д",xz="‡",Sz="⇊",_z="ⅅ",kz="ⅆ",Tz="⤑",Cz="⩷",Ez="°",Az="∇",Lz="Δ",$z="δ",Mz="⦱",Nz="⥿",Iz="𝔇",Pz="𝔡",Oz="⥥",Rz="⇃",zz="⇂",Dz="´",Fz="˙",Hz="˝",Bz="`",Wz="˜",jz="⋄",qz="⋄",Uz="⋄",Vz="♦",Gz="♦",Xz="¨",Kz="ⅆ",Jz="ϝ",Yz="⋲",Zz="÷",Qz="÷",eD="⋇",tD="⋇",nD="Ђ",rD="ђ",iD="⌞",oD="⌍",sD="$",lD="𝔻",aD="𝕕",cD="¨",uD="˙",fD="⃜",dD="≐",hD="≑",pD="≐",gD="∸",mD="∔",vD="⊡",yD="⌆",bD="∯",wD="¨",xD="⇓",SD="⇐",_D="⇔",kD="⫤",TD="⟸",CD="⟺",ED="⟹",AD="⇒",LD="⊨",$D="⇑",MD="⇕",ND="∥",ID="⤓",PD="↓",OD="↓",RD="⇓",zD="⇵",DD="̑",FD="⇊",HD="⇃",BD="⇂",WD="⥐",jD="⥞",qD="⥖",UD="↽",VD="⥟",GD="⥗",XD="⇁",KD="↧",JD="⊤",YD="⤐",ZD="⌟",QD="⌌",eF="𝒟",tF="𝒹",nF="Ѕ",rF="ѕ",iF="⧶",oF="Đ",sF="đ",lF="⋱",aF="▿",cF="▾",uF="⇵",fF="⥯",dF="⦦",hF="Џ",pF="џ",gF="⟿",mF="É",vF="é",yF="⩮",bF="Ě",wF="ě",xF="Ê",SF="ê",_F="≖",kF="≕",TF="Э",CF="э",EF="⩷",AF="Ė",LF="ė",$F="≑",MF="ⅇ",NF="≒",IF="𝔈",PF="𝔢",OF="⪚",RF="È",zF="è",DF="⪖",FF="⪘",HF="⪙",BF="∈",WF="⏧",jF="ℓ",qF="⪕",UF="⪗",VF="Ē",GF="ē",XF="∅",KF="∅",JF="◻",YF="∅",ZF="▫",QF=" ",e3=" ",t3=" ",n3="Ŋ",r3="ŋ",i3=" ",o3="Ę",s3="ę",l3="𝔼",a3="𝕖",c3="⋕",u3="⧣",f3="⩱",d3="ε",h3="Ε",p3="ε",g3="ϵ",m3="≖",v3="≕",y3="≂",b3="⪖",w3="⪕",x3="⩵",S3="=",_3="≂",k3="≟",T3="⇌",C3="≡",E3="⩸",A3="⧥",L3="⥱",$3="≓",M3="ℯ",N3="ℰ",I3="≐",P3="⩳",O3="≂",R3="Η",z3="η",D3="Ð",F3="ð",H3="Ë",B3="ë",W3="€",j3="!",q3="∃",U3="∃",V3="ℰ",G3="ⅇ",X3="ⅇ",K3="≒",J3="Ф",Y3="ф",Z3="♀",Q3="ffi",eH="ff",tH="ffl",nH="𝔉",rH="𝔣",iH="fi",oH="◼",sH="▪",lH="fj",aH="♭",cH="fl",uH="▱",fH="ƒ",dH="𝔽",hH="𝕗",pH="∀",gH="∀",mH="⋔",vH="⫙",yH="ℱ",bH="⨍",wH="½",xH="⅓",SH="¼",_H="⅕",kH="⅙",TH="⅛",CH="⅔",EH="⅖",AH="¾",LH="⅗",$H="⅜",MH="⅘",NH="⅚",IH="⅝",PH="⅞",OH="⁄",RH="⌢",zH="𝒻",DH="ℱ",FH="ǵ",HH="Γ",BH="γ",WH="Ϝ",jH="ϝ",qH="⪆",UH="Ğ",VH="ğ",GH="Ģ",XH="Ĝ",KH="ĝ",JH="Г",YH="г",ZH="Ġ",QH="ġ",eB="≥",tB="≧",nB="⪌",rB="⋛",iB="≥",oB="≧",sB="⩾",lB="⪩",aB="⩾",cB="⪀",uB="⪂",fB="⪄",dB="⋛︀",hB="⪔",pB="𝔊",gB="𝔤",mB="≫",vB="⋙",yB="⋙",bB="ℷ",wB="Ѓ",xB="ѓ",SB="⪥",_B="≷",kB="⪒",TB="⪤",CB="⪊",EB="⪊",AB="⪈",LB="≩",$B="⪈",MB="≩",NB="⋧",IB="𝔾",PB="𝕘",OB="`",RB="≥",zB="⋛",DB="≧",FB="⪢",HB="≷",BB="⩾",WB="≳",jB="𝒢",qB="ℊ",UB="≳",VB="⪎",GB="⪐",XB="⪧",KB="⩺",JB=">",YB=">",ZB="≫",QB="⋗",e5="⦕",t5="⩼",n5="⪆",r5="⥸",i5="⋗",o5="⋛",s5="⪌",l5="≷",a5="≳",c5="≩︀",u5="≩︀",f5="ˇ",d5=" ",h5="½",p5="ℋ",g5="Ъ",m5="ъ",v5="⥈",y5="↔",b5="⇔",w5="↭",x5="^",S5="ℏ",_5="Ĥ",k5="ĥ",T5="♥",C5="♥",E5="…",A5="⊹",L5="𝔥",$5="ℌ",M5="ℋ",N5="⤥",I5="⤦",P5="⇿",O5="∻",R5="↩",z5="↪",D5="𝕙",F5="ℍ",H5="―",B5="─",W5="𝒽",j5="ℋ",q5="ℏ",U5="Ħ",V5="ħ",G5="≎",X5="≏",K5="⁃",J5="‐",Y5="Í",Z5="í",Q5="⁣",e4="Î",t4="î",n4="И",r4="и",i4="İ",o4="Е",s4="е",l4="¡",a4="⇔",c4="𝔦",u4="ℑ",f4="Ì",d4="ì",h4="ⅈ",p4="⨌",g4="∭",m4="⧜",v4="℩",y4="IJ",b4="ij",w4="Ī",x4="ī",S4="ℑ",_4="ⅈ",k4="ℐ",T4="ℑ",C4="ı",E4="ℑ",A4="⊷",L4="Ƶ",$4="⇒",M4="℅",N4="∞",I4="⧝",P4="ı",O4="⊺",R4="∫",z4="∬",D4="ℤ",F4="∫",H4="⊺",B4="⋂",W4="⨗",j4="⨼",q4="⁣",U4="⁢",V4="Ё",G4="ё",X4="Į",K4="į",J4="𝕀",Y4="𝕚",Z4="Ι",Q4="ι",e8="⨼",t8="¿",n8="𝒾",r8="ℐ",i8="∈",o8="⋵",s8="⋹",l8="⋴",a8="⋳",c8="∈",u8="⁢",f8="Ĩ",d8="ĩ",h8="І",p8="і",g8="Ï",m8="ï",v8="Ĵ",y8="ĵ",b8="Й",w8="й",x8="𝔍",S8="𝔧",_8="ȷ",k8="𝕁",T8="𝕛",C8="𝒥",E8="𝒿",A8="Ј",L8="ј",$8="Є",M8="є",N8="Κ",I8="κ",P8="ϰ",O8="Ķ",R8="ķ",z8="К",D8="к",F8="𝔎",H8="𝔨",B8="ĸ",W8="Х",j8="х",q8="Ќ",U8="ќ",V8="𝕂",G8="𝕜",X8="𝒦",K8="𝓀",J8="⇚",Y8="Ĺ",Z8="ĺ",Q8="⦴",eW="ℒ",tW="Λ",nW="λ",rW="⟨",iW="⟪",oW="⦑",sW="⟨",lW="⪅",aW="ℒ",cW="«",uW="⇤",fW="⤟",dW="←",hW="↞",pW="⇐",gW="⤝",mW="↩",vW="↫",yW="⤹",bW="⥳",wW="↢",xW="⤙",SW="⤛",_W="⪫",kW="⪭",TW="⪭︀",CW="⤌",EW="⤎",AW="❲",LW="{",$W="[",MW="⦋",NW="⦏",IW="⦍",PW="Ľ",OW="ľ",RW="Ļ",zW="ļ",DW="⌈",FW="{",HW="Л",BW="л",WW="⤶",jW="“",qW="„",UW="⥧",VW="⥋",GW="↲",XW="≤",KW="≦",JW="⟨",YW="⇤",ZW="←",QW="←",ej="⇐",tj="⇆",nj="↢",rj="⌈",ij="⟦",oj="⥡",sj="⥙",lj="⇃",aj="⌊",cj="↽",uj="↼",fj="⇇",dj="↔",hj="↔",pj="⇔",gj="⇆",mj="⇋",vj="↭",yj="⥎",bj="↤",wj="⊣",xj="⥚",Sj="⋋",_j="⧏",kj="⊲",Tj="⊴",Cj="⥑",Ej="⥠",Aj="⥘",Lj="↿",$j="⥒",Mj="↼",Nj="⪋",Ij="⋚",Pj="≤",Oj="≦",Rj="⩽",zj="⪨",Dj="⩽",Fj="⩿",Hj="⪁",Bj="⪃",Wj="⋚︀",jj="⪓",qj="⪅",Uj="⋖",Vj="⋚",Gj="⪋",Xj="⋚",Kj="≦",Jj="≶",Yj="≶",Zj="⪡",Qj="≲",eq="⩽",tq="≲",nq="⥼",rq="⌊",iq="𝔏",oq="𝔩",sq="≶",lq="⪑",aq="⥢",cq="↽",uq="↼",fq="⥪",dq="▄",hq="Љ",pq="љ",gq="⇇",mq="≪",vq="⋘",yq="⌞",bq="⇚",wq="⥫",xq="◺",Sq="Ŀ",_q="ŀ",kq="⎰",Tq="⎰",Cq="⪉",Eq="⪉",Aq="⪇",Lq="≨",$q="⪇",Mq="≨",Nq="⋦",Iq="⟬",Pq="⇽",Oq="⟦",Rq="⟵",zq="⟵",Dq="⟸",Fq="⟷",Hq="⟷",Bq="⟺",Wq="⟼",jq="⟶",qq="⟶",Uq="⟹",Vq="↫",Gq="↬",Xq="⦅",Kq="𝕃",Jq="𝕝",Yq="⨭",Zq="⨴",Qq="∗",e6="_",t6="↙",n6="↘",r6="◊",i6="◊",o6="⧫",s6="(",l6="⦓",a6="⇆",c6="⌟",u6="⇋",f6="⥭",d6="‎",h6="⊿",p6="‹",g6="𝓁",m6="ℒ",v6="↰",y6="↰",b6="≲",w6="⪍",x6="⪏",S6="[",_6="‘",k6="‚",T6="Ł",C6="ł",E6="⪦",A6="⩹",L6="<",$6="<",M6="≪",N6="⋖",I6="⋋",P6="⋉",O6="⥶",R6="⩻",z6="◃",D6="⊴",F6="◂",H6="⦖",B6="⥊",W6="⥦",j6="≨︀",q6="≨︀",U6="¯",V6="♂",G6="✠",X6="✠",K6="↦",J6="↦",Y6="↧",Z6="↤",Q6="↥",eU="▮",tU="⨩",nU="М",rU="м",iU="—",oU="∺",sU="∡",lU=" ",aU="ℳ",cU="𝔐",uU="𝔪",fU="℧",dU="µ",hU="*",pU="⫰",gU="∣",mU="·",vU="⊟",yU="−",bU="∸",wU="⨪",xU="∓",SU="⫛",_U="…",kU="∓",TU="⊧",CU="𝕄",EU="𝕞",AU="∓",LU="𝓂",$U="ℳ",MU="∾",NU="Μ",IU="μ",PU="⊸",OU="⊸",RU="∇",zU="Ń",DU="ń",FU="∠⃒",HU="≉",BU="⩰̸",WU="≋̸",jU="ʼn",qU="≉",UU="♮",VU="ℕ",GU="♮",XU=" ",KU="≎̸",JU="≏̸",YU="⩃",ZU="Ň",QU="ň",e9="Ņ",t9="ņ",n9="≇",r9="⩭̸",i9="⩂",o9="Н",s9="н",l9="–",a9="⤤",c9="↗",u9="⇗",f9="↗",d9="≠",h9="≐̸",p9="​",g9="​",m9="​",v9="​",y9="≢",b9="⤨",w9="≂̸",x9="≫",S9="≪",_9=`
24
- `,k9="∄",T9="∄",C9="𝔑",E9="𝔫",A9="≧̸",L9="≱",$9="≱",M9="≧̸",N9="⩾̸",I9="⩾̸",P9="⋙̸",O9="≵",R9="≫⃒",z9="≯",D9="≯",F9="≫̸",H9="↮",B9="⇎",W9="⫲",j9="∋",q9="⋼",U9="⋺",V9="∋",G9="Њ",X9="њ",K9="↚",J9="⇍",Y9="‥",Z9="≦̸",Q9="≰",eV="↚",tV="⇍",nV="↮",rV="⇎",iV="≰",oV="≦̸",sV="⩽̸",lV="⩽̸",aV="≮",cV="⋘̸",uV="≴",fV="≪⃒",dV="≮",hV="⋪",pV="⋬",gV="≪̸",mV="∤",vV="⁠",yV=" ",bV="𝕟",wV="ℕ",xV="⫬",SV="¬",_V="≢",kV="≭",TV="∦",CV="∉",EV="≠",AV="≂̸",LV="∄",$V="≯",MV="≱",NV="≧̸",IV="≫̸",PV="≹",OV="⩾̸",RV="≵",zV="≎̸",DV="≏̸",FV="∉",HV="⋵̸",BV="⋹̸",WV="∉",jV="⋷",qV="⋶",UV="⧏̸",VV="⋪",GV="⋬",XV="≮",KV="≰",JV="≸",YV="≪̸",ZV="⩽̸",QV="≴",eG="⪢̸",tG="⪡̸",nG="∌",rG="∌",iG="⋾",oG="⋽",sG="⊀",lG="⪯̸",aG="⋠",cG="∌",uG="⧐̸",fG="⋫",dG="⋭",hG="⊏̸",pG="⋢",gG="⊐̸",mG="⋣",vG="⊂⃒",yG="⊈",bG="⊁",wG="⪰̸",xG="⋡",SG="≿̸",_G="⊃⃒",kG="⊉",TG="≁",CG="≄",EG="≇",AG="≉",LG="∤",$G="∦",MG="∦",NG="⫽⃥",IG="∂̸",PG="⨔",OG="⊀",RG="⋠",zG="⊀",DG="⪯̸",FG="⪯̸",HG="⤳̸",BG="↛",WG="⇏",jG="↝̸",qG="↛",UG="⇏",VG="⋫",GG="⋭",XG="⊁",KG="⋡",JG="⪰̸",YG="𝒩",ZG="𝓃",QG="∤",e7="∦",t7="≁",n7="≄",r7="≄",i7="∤",o7="∦",s7="⋢",l7="⋣",a7="⊄",c7="⫅̸",u7="⊈",f7="⊂⃒",d7="⊈",h7="⫅̸",p7="⊁",g7="⪰̸",m7="⊅",v7="⫆̸",y7="⊉",b7="⊃⃒",w7="⊉",x7="⫆̸",S7="≹",_7="Ñ",k7="ñ",T7="≸",C7="⋪",E7="⋬",A7="⋫",L7="⋭",$7="Ν",M7="ν",N7="#",I7="№",P7=" ",O7="≍⃒",R7="⊬",z7="⊭",D7="⊮",F7="⊯",H7="≥⃒",B7=">⃒",W7="⤄",j7="⧞",q7="⤂",U7="≤⃒",V7="<⃒",G7="⊴⃒",X7="⤃",K7="⊵⃒",J7="∼⃒",Y7="⤣",Z7="↖",Q7="⇖",eX="↖",tX="⤧",nX="Ó",rX="ó",iX="⊛",oX="Ô",sX="ô",lX="⊚",aX="О",cX="о",uX="⊝",fX="Ő",dX="ő",hX="⨸",pX="⊙",gX="⦼",mX="Œ",vX="œ",yX="⦿",bX="𝔒",wX="𝔬",xX="˛",SX="Ò",_X="ò",kX="⧁",TX="⦵",CX="Ω",EX="∮",AX="↺",LX="⦾",$X="⦻",MX="‾",NX="⧀",IX="Ō",PX="ō",OX="Ω",RX="ω",zX="Ο",DX="ο",FX="⦶",HX="⊖",BX="𝕆",WX="𝕠",jX="⦷",qX="“",UX="‘",VX="⦹",GX="⊕",XX="↻",KX="⩔",JX="∨",YX="⩝",ZX="ℴ",QX="ℴ",eK="ª",tK="º",nK="⊶",rK="⩖",iK="⩗",oK="⩛",sK="Ⓢ",lK="𝒪",aK="ℴ",cK="Ø",uK="ø",fK="⊘",dK="Õ",hK="õ",pK="⨶",gK="⨷",mK="⊗",vK="Ö",yK="ö",bK="⌽",wK="‾",xK="⏞",SK="⎴",_K="⏜",kK="¶",TK="∥",CK="∥",EK="⫳",AK="⫽",LK="∂",$K="∂",MK="П",NK="п",IK="%",PK=".",OK="‰",RK="⊥",zK="‱",DK="𝔓",FK="𝔭",HK="Φ",BK="φ",WK="ϕ",jK="ℳ",qK="☎",UK="Π",VK="π",GK="⋔",XK="ϖ",KK="ℏ",JK="ℎ",YK="ℏ",ZK="⨣",QK="⊞",eJ="⨢",tJ="+",nJ="∔",rJ="⨥",iJ="⩲",oJ="±",sJ="±",lJ="⨦",aJ="⨧",cJ="±",uJ="ℌ",fJ="⨕",dJ="𝕡",hJ="ℙ",pJ="£",gJ="⪷",mJ="⪻",vJ="≺",yJ="≼",bJ="⪷",wJ="≺",xJ="≼",SJ="≺",_J="⪯",kJ="≼",TJ="≾",CJ="⪯",EJ="⪹",AJ="⪵",LJ="⋨",$J="⪯",MJ="⪳",NJ="≾",IJ="′",PJ="″",OJ="ℙ",RJ="⪹",zJ="⪵",DJ="⋨",FJ="∏",HJ="∏",BJ="⌮",WJ="⌒",jJ="⌓",qJ="∝",UJ="∝",VJ="∷",GJ="∝",XJ="≾",KJ="⊰",JJ="𝒫",YJ="𝓅",ZJ="Ψ",QJ="ψ",eY=" ",tY="𝔔",nY="𝔮",rY="⨌",iY="𝕢",oY="ℚ",sY="⁗",lY="𝒬",aY="𝓆",cY="ℍ",uY="⨖",fY="?",dY="≟",hY='"',pY='"',gY="⇛",mY="∽̱",vY="Ŕ",yY="ŕ",bY="√",wY="⦳",xY="⟩",SY="⟫",_Y="⦒",kY="⦥",TY="⟩",CY="»",EY="⥵",AY="⇥",LY="⤠",$Y="⤳",MY="→",NY="↠",IY="⇒",PY="⤞",OY="↪",RY="↬",zY="⥅",DY="⥴",FY="⤖",HY="↣",BY="↝",WY="⤚",jY="⤜",qY="∶",UY="ℚ",VY="⤍",GY="⤏",XY="⤐",KY="❳",JY="}",YY="]",ZY="⦌",QY="⦎",eZ="⦐",tZ="Ř",nZ="ř",rZ="Ŗ",iZ="ŗ",oZ="⌉",sZ="}",lZ="Р",aZ="р",cZ="⤷",uZ="⥩",fZ="”",dZ="”",hZ="↳",pZ="ℜ",gZ="ℛ",mZ="ℜ",vZ="ℝ",yZ="ℜ",bZ="▭",wZ="®",xZ="®",SZ="∋",_Z="⇋",kZ="⥯",TZ="⥽",CZ="⌋",EZ="𝔯",AZ="ℜ",LZ="⥤",$Z="⇁",MZ="⇀",NZ="⥬",IZ="Ρ",PZ="ρ",OZ="ϱ",RZ="⟩",zZ="⇥",DZ="→",FZ="→",HZ="⇒",BZ="⇄",WZ="↣",jZ="⌉",qZ="⟧",UZ="⥝",VZ="⥕",GZ="⇂",XZ="⌋",KZ="⇁",JZ="⇀",YZ="⇄",ZZ="⇌",QZ="⇉",eQ="↝",tQ="↦",nQ="⊢",rQ="⥛",iQ="⋌",oQ="⧐",sQ="⊳",lQ="⊵",aQ="⥏",cQ="⥜",uQ="⥔",fQ="↾",dQ="⥓",hQ="⇀",pQ="˚",gQ="≓",mQ="⇄",vQ="⇌",yQ="‏",bQ="⎱",wQ="⎱",xQ="⫮",SQ="⟭",_Q="⇾",kQ="⟧",TQ="⦆",CQ="𝕣",EQ="ℝ",AQ="⨮",LQ="⨵",$Q="⥰",MQ=")",NQ="⦔",IQ="⨒",PQ="⇉",OQ="⇛",RQ="›",zQ="𝓇",DQ="ℛ",FQ="↱",HQ="↱",BQ="]",WQ="’",jQ="’",qQ="⋌",UQ="⋊",VQ="▹",GQ="⊵",XQ="▸",KQ="⧎",JQ="⧴",YQ="⥨",ZQ="℞",QQ="Ś",eee="ś",tee="‚",nee="⪸",ree="Š",iee="š",oee="⪼",see="≻",lee="≽",aee="⪰",cee="⪴",uee="Ş",fee="ş",dee="Ŝ",hee="ŝ",pee="⪺",gee="⪶",mee="⋩",vee="⨓",yee="≿",bee="С",wee="с",xee="⊡",See="⋅",_ee="⩦",kee="⤥",Tee="↘",Cee="⇘",Eee="↘",Aee="§",Lee=";",$ee="⤩",Mee="∖",Nee="∖",Iee="✶",Pee="𝔖",Oee="𝔰",Ree="⌢",zee="♯",Dee="Щ",Fee="щ",Hee="Ш",Bee="ш",Wee="↓",jee="←",qee="∣",Uee="∥",Vee="→",Gee="↑",Xee="­",Kee="Σ",Jee="σ",Yee="ς",Zee="ς",Qee="∼",ete="⩪",tte="≃",nte="≃",rte="⪞",ite="⪠",ote="⪝",ste="⪟",lte="≆",ate="⨤",cte="⥲",ute="←",fte="∘",dte="∖",hte="⨳",pte="⧤",gte="∣",mte="⌣",vte="⪪",yte="⪬",bte="⪬︀",wte="Ь",xte="ь",Ste="⌿",_te="⧄",kte="/",Tte="𝕊",Cte="𝕤",Ete="♠",Ate="♠",Lte="∥",$te="⊓",Mte="⊓︀",Nte="⊔",Ite="⊔︀",Pte="√",Ote="⊏",Rte="⊑",zte="⊏",Dte="⊑",Fte="⊐",Hte="⊒",Bte="⊐",Wte="⊒",jte="□",qte="□",Ute="⊓",Vte="⊏",Gte="⊑",Xte="⊐",Kte="⊒",Jte="⊔",Yte="▪",Zte="□",Qte="▪",ene="→",tne="𝒮",nne="𝓈",rne="∖",ine="⌣",one="⋆",sne="⋆",lne="☆",ane="★",cne="ϵ",une="ϕ",fne="¯",dne="⊂",hne="⋐",pne="⪽",gne="⫅",mne="⊆",vne="⫃",yne="⫁",bne="⫋",wne="⊊",xne="⪿",Sne="⥹",_ne="⊂",kne="⋐",Tne="⊆",Cne="⫅",Ene="⊆",Ane="⊊",Lne="⫋",$ne="⫇",Mne="⫕",Nne="⫓",Ine="⪸",Pne="≻",One="≽",Rne="≻",zne="⪰",Dne="≽",Fne="≿",Hne="⪰",Bne="⪺",Wne="⪶",jne="⋩",qne="≿",Une="∋",Vne="∑",Gne="∑",Xne="♪",Kne="¹",Jne="²",Yne="³",Zne="⊃",Qne="⋑",ere="⪾",tre="⫘",nre="⫆",rre="⊇",ire="⫄",ore="⊃",sre="⊇",lre="⟉",are="⫗",cre="⥻",ure="⫂",fre="⫌",dre="⊋",hre="⫀",pre="⊃",gre="⋑",mre="⊇",vre="⫆",yre="⊋",bre="⫌",wre="⫈",xre="⫔",Sre="⫖",_re="⤦",kre="↙",Tre="⇙",Cre="↙",Ere="⤪",Are="ß",Lre=" ",$re="⌖",Mre="Τ",Nre="τ",Ire="⎴",Pre="Ť",Ore="ť",Rre="Ţ",zre="ţ",Dre="Т",Fre="т",Hre="⃛",Bre="⌕",Wre="𝔗",jre="𝔱",qre="∴",Ure="∴",Vre="∴",Gre="Θ",Xre="θ",Kre="ϑ",Jre="ϑ",Yre="≈",Zre="∼",Qre="  ",eie=" ",tie=" ",nie="≈",rie="∼",iie="Þ",oie="þ",sie="˜",lie="∼",aie="≃",cie="≅",uie="≈",fie="⨱",die="⊠",hie="×",pie="⨰",gie="∭",mie="⤨",vie="⌶",yie="⫱",bie="⊤",wie="𝕋",xie="𝕥",Sie="⫚",_ie="⤩",kie="‴",Tie="™",Cie="™",Eie="▵",Aie="▿",Lie="◃",$ie="⊴",Mie="≜",Nie="▹",Iie="⊵",Pie="◬",Oie="≜",Rie="⨺",zie="⃛",Die="⨹",Fie="⧍",Hie="⨻",Bie="⏢",Wie="𝒯",jie="𝓉",qie="Ц",Uie="ц",Vie="Ћ",Gie="ћ",Xie="Ŧ",Kie="ŧ",Jie="≬",Yie="↞",Zie="↠",Qie="Ú",eoe="ú",toe="↑",noe="↟",roe="⇑",ioe="⥉",ooe="Ў",soe="ў",loe="Ŭ",aoe="ŭ",coe="Û",uoe="û",foe="У",doe="у",hoe="⇅",poe="Ű",goe="ű",moe="⥮",voe="⥾",yoe="𝔘",boe="𝔲",woe="Ù",xoe="ù",Soe="⥣",_oe="↿",koe="↾",Toe="▀",Coe="⌜",Eoe="⌜",Aoe="⌏",Loe="◸",$oe="Ū",Moe="ū",Noe="¨",Ioe="_",Poe="⏟",Ooe="⎵",Roe="⏝",zoe="⋃",Doe="⊎",Foe="Ų",Hoe="ų",Boe="𝕌",Woe="𝕦",joe="⤒",qoe="↑",Uoe="↑",Voe="⇑",Goe="⇅",Xoe="↕",Koe="↕",Joe="⇕",Yoe="⥮",Zoe="↿",Qoe="↾",ese="⊎",tse="↖",nse="↗",rse="υ",ise="ϒ",ose="ϒ",sse="Υ",lse="υ",ase="↥",cse="⊥",use="⇈",fse="⌝",dse="⌝",hse="⌎",pse="Ů",gse="ů",mse="◹",vse="𝒰",yse="𝓊",bse="⋰",wse="Ũ",xse="ũ",Sse="▵",_se="▴",kse="⇈",Tse="Ü",Cse="ü",Ese="⦧",Ase="⦜",Lse="ϵ",$se="ϰ",Mse="∅",Nse="ϕ",Ise="ϖ",Pse="∝",Ose="↕",Rse="⇕",zse="ϱ",Dse="ς",Fse="⊊︀",Hse="⫋︀",Bse="⊋︀",Wse="⫌︀",jse="ϑ",qse="⊲",Use="⊳",Vse="⫨",Gse="⫫",Xse="⫩",Kse="В",Jse="в",Yse="⊢",Zse="⊨",Qse="⊩",ele="⊫",tle="⫦",nle="⊻",rle="∨",ile="⋁",ole="≚",sle="⋮",lle="|",ale="‖",cle="|",ule="‖",fle="∣",dle="|",hle="❘",ple="≀",gle=" ",mle="𝔙",vle="𝔳",yle="⊲",ble="⊂⃒",wle="⊃⃒",xle="𝕍",Sle="𝕧",_le="∝",kle="⊳",Tle="𝒱",Cle="𝓋",Ele="⫋︀",Ale="⊊︀",Lle="⫌︀",$le="⊋︀",Mle="⊪",Nle="⦚",Ile="Ŵ",Ple="ŵ",Ole="⩟",Rle="∧",zle="⋀",Dle="≙",Fle="℘",Hle="𝔚",Ble="𝔴",Wle="𝕎",jle="𝕨",qle="℘",Ule="≀",Vle="≀",Gle="𝒲",Xle="𝓌",Kle="⋂",Jle="◯",Yle="⋃",Zle="▽",Qle="𝔛",eae="𝔵",tae="⟷",nae="⟺",rae="Ξ",iae="ξ",oae="⟵",sae="⟸",lae="⟼",aae="⋻",cae="⨀",uae="𝕏",fae="𝕩",dae="⨁",hae="⨂",pae="⟶",gae="⟹",mae="𝒳",vae="𝓍",yae="⨆",bae="⨄",wae="△",xae="⋁",Sae="⋀",_ae="Ý",kae="ý",Tae="Я",Cae="я",Eae="Ŷ",Aae="ŷ",Lae="Ы",$ae="ы",Mae="¥",Nae="𝔜",Iae="𝔶",Pae="Ї",Oae="ї",Rae="𝕐",zae="𝕪",Dae="𝒴",Fae="𝓎",Hae="Ю",Bae="ю",Wae="ÿ",jae="Ÿ",qae="Ź",Uae="ź",Vae="Ž",Gae="ž",Xae="З",Kae="з",Jae="Ż",Yae="ż",Zae="ℨ",Qae="​",ece="Ζ",tce="ζ",nce="𝔷",rce="ℨ",ice="Ж",oce="ж",sce="⇝",lce="𝕫",ace="ℤ",cce="𝒵",uce="𝓏",fce="‍",dce="‌",Qx={Aacute:JM,aacute:YM,Abreve:ZM,abreve:QM,ac:eN,acd:tN,acE:nN,Acirc:rN,acirc:iN,acute:oN,Acy:sN,acy:lN,AElig:aN,aelig:cN,af:uN,Afr:fN,afr:dN,Agrave:hN,agrave:pN,alefsym:gN,aleph:mN,Alpha:vN,alpha:yN,Amacr:bN,amacr:wN,amalg:xN,amp:SN,AMP:_N,andand:kN,And:TN,and:CN,andd:EN,andslope:AN,andv:LN,ang:$N,ange:MN,angle:NN,angmsdaa:IN,angmsdab:PN,angmsdac:ON,angmsdad:RN,angmsdae:zN,angmsdaf:DN,angmsdag:FN,angmsdah:HN,angmsd:BN,angrt:WN,angrtvb:jN,angrtvbd:qN,angsph:UN,angst:VN,angzarr:GN,Aogon:XN,aogon:KN,Aopf:JN,aopf:YN,apacir:ZN,ap:QN,apE:e2,ape:t2,apid:n2,apos:r2,ApplyFunction:i2,approx:o2,approxeq:s2,Aring:l2,aring:a2,Ascr:c2,ascr:u2,Assign:f2,ast:d2,asymp:h2,asympeq:p2,Atilde:g2,atilde:m2,Auml:v2,auml:y2,awconint:b2,awint:w2,backcong:x2,backepsilon:S2,backprime:_2,backsim:k2,backsimeq:T2,Backslash:C2,Barv:E2,barvee:A2,barwed:L2,Barwed:$2,barwedge:M2,bbrk:N2,bbrktbrk:I2,bcong:P2,Bcy:O2,bcy:R2,bdquo:z2,becaus:D2,because:F2,Because:H2,bemptyv:B2,bepsi:W2,bernou:j2,Bernoullis:q2,Beta:U2,beta:V2,beth:G2,between:X2,Bfr:K2,bfr:J2,bigcap:Y2,bigcirc:Z2,bigcup:Q2,bigodot:eI,bigoplus:tI,bigotimes:nI,bigsqcup:rI,bigstar:iI,bigtriangledown:oI,bigtriangleup:sI,biguplus:lI,bigvee:aI,bigwedge:cI,bkarow:uI,blacklozenge:fI,blacksquare:dI,blacktriangle:hI,blacktriangledown:pI,blacktriangleleft:gI,blacktriangleright:mI,blank:vI,blk12:yI,blk14:bI,blk34:wI,block:xI,bne:SI,bnequiv:_I,bNot:kI,bnot:TI,Bopf:CI,bopf:EI,bot:AI,bottom:LI,bowtie:$I,boxbox:MI,boxdl:NI,boxdL:II,boxDl:PI,boxDL:OI,boxdr:RI,boxdR:zI,boxDr:DI,boxDR:FI,boxh:HI,boxH:BI,boxhd:WI,boxHd:jI,boxhD:qI,boxHD:UI,boxhu:VI,boxHu:GI,boxhU:XI,boxHU:KI,boxminus:JI,boxplus:YI,boxtimes:ZI,boxul:QI,boxuL:eP,boxUl:tP,boxUL:nP,boxur:rP,boxuR:iP,boxUr:oP,boxUR:sP,boxv:lP,boxV:aP,boxvh:cP,boxvH:uP,boxVh:fP,boxVH:dP,boxvl:hP,boxvL:pP,boxVl:gP,boxVL:mP,boxvr:vP,boxvR:yP,boxVr:bP,boxVR:wP,bprime:xP,breve:SP,Breve:_P,brvbar:kP,bscr:TP,Bscr:CP,bsemi:EP,bsim:AP,bsime:LP,bsolb:$P,bsol:MP,bsolhsub:NP,bull:IP,bullet:PP,bump:OP,bumpE:RP,bumpe:zP,Bumpeq:DP,bumpeq:FP,Cacute:HP,cacute:BP,capand:WP,capbrcup:jP,capcap:qP,cap:UP,Cap:VP,capcup:GP,capdot:XP,CapitalDifferentialD:KP,caps:JP,caret:YP,caron:ZP,Cayleys:QP,ccaps:eO,Ccaron:tO,ccaron:nO,Ccedil:rO,ccedil:iO,Ccirc:oO,ccirc:sO,Cconint:lO,ccups:aO,ccupssm:cO,Cdot:uO,cdot:fO,cedil:dO,Cedilla:hO,cemptyv:pO,cent:gO,centerdot:mO,CenterDot:vO,cfr:yO,Cfr:bO,CHcy:wO,chcy:xO,check:SO,checkmark:_O,Chi:kO,chi:TO,circ:CO,circeq:EO,circlearrowleft:AO,circlearrowright:LO,circledast:$O,circledcirc:MO,circleddash:NO,CircleDot:IO,circledR:PO,circledS:OO,CircleMinus:RO,CirclePlus:zO,CircleTimes:DO,cir:FO,cirE:HO,cire:BO,cirfnint:WO,cirmid:jO,cirscir:qO,ClockwiseContourIntegral:UO,CloseCurlyDoubleQuote:VO,CloseCurlyQuote:GO,clubs:XO,clubsuit:KO,colon:JO,Colon:YO,Colone:ZO,colone:QO,coloneq:eR,comma:tR,commat:nR,comp:rR,compfn:iR,complement:oR,complexes:sR,cong:lR,congdot:aR,Congruent:cR,conint:uR,Conint:fR,ContourIntegral:dR,copf:hR,Copf:pR,coprod:gR,Coproduct:mR,copy:vR,COPY:yR,copysr:bR,CounterClockwiseContourIntegral:wR,crarr:xR,cross:SR,Cross:_R,Cscr:kR,cscr:TR,csub:CR,csube:ER,csup:AR,csupe:LR,ctdot:$R,cudarrl:MR,cudarrr:NR,cuepr:IR,cuesc:PR,cularr:OR,cularrp:RR,cupbrcap:zR,cupcap:DR,CupCap:FR,cup:HR,Cup:BR,cupcup:WR,cupdot:jR,cupor:qR,cups:UR,curarr:VR,curarrm:GR,curlyeqprec:XR,curlyeqsucc:KR,curlyvee:JR,curlywedge:YR,curren:ZR,curvearrowleft:QR,curvearrowright:ez,cuvee:tz,cuwed:nz,cwconint:rz,cwint:iz,cylcty:oz,dagger:sz,Dagger:lz,daleth:az,darr:cz,Darr:uz,dArr:fz,dash:dz,Dashv:hz,dashv:pz,dbkarow:gz,dblac:mz,Dcaron:vz,dcaron:yz,Dcy:bz,dcy:wz,ddagger:xz,ddarr:Sz,DD:_z,dd:kz,DDotrahd:Tz,ddotseq:Cz,deg:Ez,Del:Az,Delta:Lz,delta:$z,demptyv:Mz,dfisht:Nz,Dfr:Iz,dfr:Pz,dHar:Oz,dharl:Rz,dharr:zz,DiacriticalAcute:Dz,DiacriticalDot:Fz,DiacriticalDoubleAcute:Hz,DiacriticalGrave:Bz,DiacriticalTilde:Wz,diam:jz,diamond:qz,Diamond:Uz,diamondsuit:Vz,diams:Gz,die:Xz,DifferentialD:Kz,digamma:Jz,disin:Yz,div:Zz,divide:Qz,divideontimes:eD,divonx:tD,DJcy:nD,djcy:rD,dlcorn:iD,dlcrop:oD,dollar:sD,Dopf:lD,dopf:aD,Dot:cD,dot:uD,DotDot:fD,doteq:dD,doteqdot:hD,DotEqual:pD,dotminus:gD,dotplus:mD,dotsquare:vD,doublebarwedge:yD,DoubleContourIntegral:bD,DoubleDot:wD,DoubleDownArrow:xD,DoubleLeftArrow:SD,DoubleLeftRightArrow:_D,DoubleLeftTee:kD,DoubleLongLeftArrow:TD,DoubleLongLeftRightArrow:CD,DoubleLongRightArrow:ED,DoubleRightArrow:AD,DoubleRightTee:LD,DoubleUpArrow:$D,DoubleUpDownArrow:MD,DoubleVerticalBar:ND,DownArrowBar:ID,downarrow:PD,DownArrow:OD,Downarrow:RD,DownArrowUpArrow:zD,DownBreve:DD,downdownarrows:FD,downharpoonleft:HD,downharpoonright:BD,DownLeftRightVector:WD,DownLeftTeeVector:jD,DownLeftVectorBar:qD,DownLeftVector:UD,DownRightTeeVector:VD,DownRightVectorBar:GD,DownRightVector:XD,DownTeeArrow:KD,DownTee:JD,drbkarow:YD,drcorn:ZD,drcrop:QD,Dscr:eF,dscr:tF,DScy:nF,dscy:rF,dsol:iF,Dstrok:oF,dstrok:sF,dtdot:lF,dtri:aF,dtrif:cF,duarr:uF,duhar:fF,dwangle:dF,DZcy:hF,dzcy:pF,dzigrarr:gF,Eacute:mF,eacute:vF,easter:yF,Ecaron:bF,ecaron:wF,Ecirc:xF,ecirc:SF,ecir:_F,ecolon:kF,Ecy:TF,ecy:CF,eDDot:EF,Edot:AF,edot:LF,eDot:$F,ee:MF,efDot:NF,Efr:IF,efr:PF,eg:OF,Egrave:RF,egrave:zF,egs:DF,egsdot:FF,el:HF,Element:BF,elinters:WF,ell:jF,els:qF,elsdot:UF,Emacr:VF,emacr:GF,empty:XF,emptyset:KF,EmptySmallSquare:JF,emptyv:YF,EmptyVerySmallSquare:ZF,emsp13:QF,emsp14:e3,emsp:t3,ENG:n3,eng:r3,ensp:i3,Eogon:o3,eogon:s3,Eopf:l3,eopf:a3,epar:c3,eparsl:u3,eplus:f3,epsi:d3,Epsilon:h3,epsilon:p3,epsiv:g3,eqcirc:m3,eqcolon:v3,eqsim:y3,eqslantgtr:b3,eqslantless:w3,Equal:x3,equals:S3,EqualTilde:_3,equest:k3,Equilibrium:T3,equiv:C3,equivDD:E3,eqvparsl:A3,erarr:L3,erDot:$3,escr:M3,Escr:N3,esdot:I3,Esim:P3,esim:O3,Eta:R3,eta:z3,ETH:D3,eth:F3,Euml:H3,euml:B3,euro:W3,excl:j3,exist:q3,Exists:U3,expectation:V3,exponentiale:G3,ExponentialE:X3,fallingdotseq:K3,Fcy:J3,fcy:Y3,female:Z3,ffilig:Q3,fflig:eH,ffllig:tH,Ffr:nH,ffr:rH,filig:iH,FilledSmallSquare:oH,FilledVerySmallSquare:sH,fjlig:lH,flat:aH,fllig:cH,fltns:uH,fnof:fH,Fopf:dH,fopf:hH,forall:pH,ForAll:gH,fork:mH,forkv:vH,Fouriertrf:yH,fpartint:bH,frac12:wH,frac13:xH,frac14:SH,frac15:_H,frac16:kH,frac18:TH,frac23:CH,frac25:EH,frac34:AH,frac35:LH,frac38:$H,frac45:MH,frac56:NH,frac58:IH,frac78:PH,frasl:OH,frown:RH,fscr:zH,Fscr:DH,gacute:FH,Gamma:HH,gamma:BH,Gammad:WH,gammad:jH,gap:qH,Gbreve:UH,gbreve:VH,Gcedil:GH,Gcirc:XH,gcirc:KH,Gcy:JH,gcy:YH,Gdot:ZH,gdot:QH,ge:eB,gE:tB,gEl:nB,gel:rB,geq:iB,geqq:oB,geqslant:sB,gescc:lB,ges:aB,gesdot:cB,gesdoto:uB,gesdotol:fB,gesl:dB,gesles:hB,Gfr:pB,gfr:gB,gg:mB,Gg:vB,ggg:yB,gimel:bB,GJcy:wB,gjcy:xB,gla:SB,gl:_B,glE:kB,glj:TB,gnap:CB,gnapprox:EB,gne:AB,gnE:LB,gneq:$B,gneqq:MB,gnsim:NB,Gopf:IB,gopf:PB,grave:OB,GreaterEqual:RB,GreaterEqualLess:zB,GreaterFullEqual:DB,GreaterGreater:FB,GreaterLess:HB,GreaterSlantEqual:BB,GreaterTilde:WB,Gscr:jB,gscr:qB,gsim:UB,gsime:VB,gsiml:GB,gtcc:XB,gtcir:KB,gt:JB,GT:YB,Gt:ZB,gtdot:QB,gtlPar:e5,gtquest:t5,gtrapprox:n5,gtrarr:r5,gtrdot:i5,gtreqless:o5,gtreqqless:s5,gtrless:l5,gtrsim:a5,gvertneqq:c5,gvnE:u5,Hacek:f5,hairsp:d5,half:h5,hamilt:p5,HARDcy:g5,hardcy:m5,harrcir:v5,harr:y5,hArr:b5,harrw:w5,Hat:x5,hbar:S5,Hcirc:_5,hcirc:k5,hearts:T5,heartsuit:C5,hellip:E5,hercon:A5,hfr:L5,Hfr:$5,HilbertSpace:M5,hksearow:N5,hkswarow:I5,hoarr:P5,homtht:O5,hookleftarrow:R5,hookrightarrow:z5,hopf:D5,Hopf:F5,horbar:H5,HorizontalLine:B5,hscr:W5,Hscr:j5,hslash:q5,Hstrok:U5,hstrok:V5,HumpDownHump:G5,HumpEqual:X5,hybull:K5,hyphen:J5,Iacute:Y5,iacute:Z5,ic:Q5,Icirc:e4,icirc:t4,Icy:n4,icy:r4,Idot:i4,IEcy:o4,iecy:s4,iexcl:l4,iff:a4,ifr:c4,Ifr:u4,Igrave:f4,igrave:d4,ii:h4,iiiint:p4,iiint:g4,iinfin:m4,iiota:v4,IJlig:y4,ijlig:b4,Imacr:w4,imacr:x4,image:S4,ImaginaryI:_4,imagline:k4,imagpart:T4,imath:C4,Im:E4,imof:A4,imped:L4,Implies:$4,incare:M4,in:"∈",infin:N4,infintie:I4,inodot:P4,intcal:O4,int:R4,Int:z4,integers:D4,Integral:F4,intercal:H4,Intersection:B4,intlarhk:W4,intprod:j4,InvisibleComma:q4,InvisibleTimes:U4,IOcy:V4,iocy:G4,Iogon:X4,iogon:K4,Iopf:J4,iopf:Y4,Iota:Z4,iota:Q4,iprod:e8,iquest:t8,iscr:n8,Iscr:r8,isin:i8,isindot:o8,isinE:s8,isins:l8,isinsv:a8,isinv:c8,it:u8,Itilde:f8,itilde:d8,Iukcy:h8,iukcy:p8,Iuml:g8,iuml:m8,Jcirc:v8,jcirc:y8,Jcy:b8,jcy:w8,Jfr:x8,jfr:S8,jmath:_8,Jopf:k8,jopf:T8,Jscr:C8,jscr:E8,Jsercy:A8,jsercy:L8,Jukcy:$8,jukcy:M8,Kappa:N8,kappa:I8,kappav:P8,Kcedil:O8,kcedil:R8,Kcy:z8,kcy:D8,Kfr:F8,kfr:H8,kgreen:B8,KHcy:W8,khcy:j8,KJcy:q8,kjcy:U8,Kopf:V8,kopf:G8,Kscr:X8,kscr:K8,lAarr:J8,Lacute:Y8,lacute:Z8,laemptyv:Q8,lagran:eW,Lambda:tW,lambda:nW,lang:rW,Lang:iW,langd:oW,langle:sW,lap:lW,Laplacetrf:aW,laquo:cW,larrb:uW,larrbfs:fW,larr:dW,Larr:hW,lArr:pW,larrfs:gW,larrhk:mW,larrlp:vW,larrpl:yW,larrsim:bW,larrtl:wW,latail:xW,lAtail:SW,lat:_W,late:kW,lates:TW,lbarr:CW,lBarr:EW,lbbrk:AW,lbrace:LW,lbrack:$W,lbrke:MW,lbrksld:NW,lbrkslu:IW,Lcaron:PW,lcaron:OW,Lcedil:RW,lcedil:zW,lceil:DW,lcub:FW,Lcy:HW,lcy:BW,ldca:WW,ldquo:jW,ldquor:qW,ldrdhar:UW,ldrushar:VW,ldsh:GW,le:XW,lE:KW,LeftAngleBracket:JW,LeftArrowBar:YW,leftarrow:ZW,LeftArrow:QW,Leftarrow:ej,LeftArrowRightArrow:tj,leftarrowtail:nj,LeftCeiling:rj,LeftDoubleBracket:ij,LeftDownTeeVector:oj,LeftDownVectorBar:sj,LeftDownVector:lj,LeftFloor:aj,leftharpoondown:cj,leftharpoonup:uj,leftleftarrows:fj,leftrightarrow:dj,LeftRightArrow:hj,Leftrightarrow:pj,leftrightarrows:gj,leftrightharpoons:mj,leftrightsquigarrow:vj,LeftRightVector:yj,LeftTeeArrow:bj,LeftTee:wj,LeftTeeVector:xj,leftthreetimes:Sj,LeftTriangleBar:_j,LeftTriangle:kj,LeftTriangleEqual:Tj,LeftUpDownVector:Cj,LeftUpTeeVector:Ej,LeftUpVectorBar:Aj,LeftUpVector:Lj,LeftVectorBar:$j,LeftVector:Mj,lEg:Nj,leg:Ij,leq:Pj,leqq:Oj,leqslant:Rj,lescc:zj,les:Dj,lesdot:Fj,lesdoto:Hj,lesdotor:Bj,lesg:Wj,lesges:jj,lessapprox:qj,lessdot:Uj,lesseqgtr:Vj,lesseqqgtr:Gj,LessEqualGreater:Xj,LessFullEqual:Kj,LessGreater:Jj,lessgtr:Yj,LessLess:Zj,lesssim:Qj,LessSlantEqual:eq,LessTilde:tq,lfisht:nq,lfloor:rq,Lfr:iq,lfr:oq,lg:sq,lgE:lq,lHar:aq,lhard:cq,lharu:uq,lharul:fq,lhblk:dq,LJcy:hq,ljcy:pq,llarr:gq,ll:mq,Ll:vq,llcorner:yq,Lleftarrow:bq,llhard:wq,lltri:xq,Lmidot:Sq,lmidot:_q,lmoustache:kq,lmoust:Tq,lnap:Cq,lnapprox:Eq,lne:Aq,lnE:Lq,lneq:$q,lneqq:Mq,lnsim:Nq,loang:Iq,loarr:Pq,lobrk:Oq,longleftarrow:Rq,LongLeftArrow:zq,Longleftarrow:Dq,longleftrightarrow:Fq,LongLeftRightArrow:Hq,Longleftrightarrow:Bq,longmapsto:Wq,longrightarrow:jq,LongRightArrow:qq,Longrightarrow:Uq,looparrowleft:Vq,looparrowright:Gq,lopar:Xq,Lopf:Kq,lopf:Jq,loplus:Yq,lotimes:Zq,lowast:Qq,lowbar:e6,LowerLeftArrow:t6,LowerRightArrow:n6,loz:r6,lozenge:i6,lozf:o6,lpar:s6,lparlt:l6,lrarr:a6,lrcorner:c6,lrhar:u6,lrhard:f6,lrm:d6,lrtri:h6,lsaquo:p6,lscr:g6,Lscr:m6,lsh:v6,Lsh:y6,lsim:b6,lsime:w6,lsimg:x6,lsqb:S6,lsquo:_6,lsquor:k6,Lstrok:T6,lstrok:C6,ltcc:E6,ltcir:A6,lt:L6,LT:$6,Lt:M6,ltdot:N6,lthree:I6,ltimes:P6,ltlarr:O6,ltquest:R6,ltri:z6,ltrie:D6,ltrif:F6,ltrPar:H6,lurdshar:B6,luruhar:W6,lvertneqq:j6,lvnE:q6,macr:U6,male:V6,malt:G6,maltese:X6,Map:"⤅",map:K6,mapsto:J6,mapstodown:Y6,mapstoleft:Z6,mapstoup:Q6,marker:eU,mcomma:tU,Mcy:nU,mcy:rU,mdash:iU,mDDot:oU,measuredangle:sU,MediumSpace:lU,Mellintrf:aU,Mfr:cU,mfr:uU,mho:fU,micro:dU,midast:hU,midcir:pU,mid:gU,middot:mU,minusb:vU,minus:yU,minusd:bU,minusdu:wU,MinusPlus:xU,mlcp:SU,mldr:_U,mnplus:kU,models:TU,Mopf:CU,mopf:EU,mp:AU,mscr:LU,Mscr:$U,mstpos:MU,Mu:NU,mu:IU,multimap:PU,mumap:OU,nabla:RU,Nacute:zU,nacute:DU,nang:FU,nap:HU,napE:BU,napid:WU,napos:jU,napprox:qU,natural:UU,naturals:VU,natur:GU,nbsp:XU,nbump:KU,nbumpe:JU,ncap:YU,Ncaron:ZU,ncaron:QU,Ncedil:e9,ncedil:t9,ncong:n9,ncongdot:r9,ncup:i9,Ncy:o9,ncy:s9,ndash:l9,nearhk:a9,nearr:c9,neArr:u9,nearrow:f9,ne:d9,nedot:h9,NegativeMediumSpace:p9,NegativeThickSpace:g9,NegativeThinSpace:m9,NegativeVeryThinSpace:v9,nequiv:y9,nesear:b9,nesim:w9,NestedGreaterGreater:x9,NestedLessLess:S9,NewLine:_9,nexist:k9,nexists:T9,Nfr:C9,nfr:E9,ngE:A9,nge:L9,ngeq:$9,ngeqq:M9,ngeqslant:N9,nges:I9,nGg:P9,ngsim:O9,nGt:R9,ngt:z9,ngtr:D9,nGtv:F9,nharr:H9,nhArr:B9,nhpar:W9,ni:j9,nis:q9,nisd:U9,niv:V9,NJcy:G9,njcy:X9,nlarr:K9,nlArr:J9,nldr:Y9,nlE:Z9,nle:Q9,nleftarrow:eV,nLeftarrow:tV,nleftrightarrow:nV,nLeftrightarrow:rV,nleq:iV,nleqq:oV,nleqslant:sV,nles:lV,nless:aV,nLl:cV,nlsim:uV,nLt:fV,nlt:dV,nltri:hV,nltrie:pV,nLtv:gV,nmid:mV,NoBreak:vV,NonBreakingSpace:yV,nopf:bV,Nopf:wV,Not:xV,not:SV,NotCongruent:_V,NotCupCap:kV,NotDoubleVerticalBar:TV,NotElement:CV,NotEqual:EV,NotEqualTilde:AV,NotExists:LV,NotGreater:$V,NotGreaterEqual:MV,NotGreaterFullEqual:NV,NotGreaterGreater:IV,NotGreaterLess:PV,NotGreaterSlantEqual:OV,NotGreaterTilde:RV,NotHumpDownHump:zV,NotHumpEqual:DV,notin:FV,notindot:HV,notinE:BV,notinva:WV,notinvb:jV,notinvc:qV,NotLeftTriangleBar:UV,NotLeftTriangle:VV,NotLeftTriangleEqual:GV,NotLess:XV,NotLessEqual:KV,NotLessGreater:JV,NotLessLess:YV,NotLessSlantEqual:ZV,NotLessTilde:QV,NotNestedGreaterGreater:eG,NotNestedLessLess:tG,notni:nG,notniva:rG,notnivb:iG,notnivc:oG,NotPrecedes:sG,NotPrecedesEqual:lG,NotPrecedesSlantEqual:aG,NotReverseElement:cG,NotRightTriangleBar:uG,NotRightTriangle:fG,NotRightTriangleEqual:dG,NotSquareSubset:hG,NotSquareSubsetEqual:pG,NotSquareSuperset:gG,NotSquareSupersetEqual:mG,NotSubset:vG,NotSubsetEqual:yG,NotSucceeds:bG,NotSucceedsEqual:wG,NotSucceedsSlantEqual:xG,NotSucceedsTilde:SG,NotSuperset:_G,NotSupersetEqual:kG,NotTilde:TG,NotTildeEqual:CG,NotTildeFullEqual:EG,NotTildeTilde:AG,NotVerticalBar:LG,nparallel:$G,npar:MG,nparsl:NG,npart:IG,npolint:PG,npr:OG,nprcue:RG,nprec:zG,npreceq:DG,npre:FG,nrarrc:HG,nrarr:BG,nrArr:WG,nrarrw:jG,nrightarrow:qG,nRightarrow:UG,nrtri:VG,nrtrie:GG,nsc:XG,nsccue:KG,nsce:JG,Nscr:YG,nscr:ZG,nshortmid:QG,nshortparallel:e7,nsim:t7,nsime:n7,nsimeq:r7,nsmid:i7,nspar:o7,nsqsube:s7,nsqsupe:l7,nsub:a7,nsubE:c7,nsube:u7,nsubset:f7,nsubseteq:d7,nsubseteqq:h7,nsucc:p7,nsucceq:g7,nsup:m7,nsupE:v7,nsupe:y7,nsupset:b7,nsupseteq:w7,nsupseteqq:x7,ntgl:S7,Ntilde:_7,ntilde:k7,ntlg:T7,ntriangleleft:C7,ntrianglelefteq:E7,ntriangleright:A7,ntrianglerighteq:L7,Nu:$7,nu:M7,num:N7,numero:I7,numsp:P7,nvap:O7,nvdash:R7,nvDash:z7,nVdash:D7,nVDash:F7,nvge:H7,nvgt:B7,nvHarr:W7,nvinfin:j7,nvlArr:q7,nvle:U7,nvlt:V7,nvltrie:G7,nvrArr:X7,nvrtrie:K7,nvsim:J7,nwarhk:Y7,nwarr:Z7,nwArr:Q7,nwarrow:eX,nwnear:tX,Oacute:nX,oacute:rX,oast:iX,Ocirc:oX,ocirc:sX,ocir:lX,Ocy:aX,ocy:cX,odash:uX,Odblac:fX,odblac:dX,odiv:hX,odot:pX,odsold:gX,OElig:mX,oelig:vX,ofcir:yX,Ofr:bX,ofr:wX,ogon:xX,Ograve:SX,ograve:_X,ogt:kX,ohbar:TX,ohm:CX,oint:EX,olarr:AX,olcir:LX,olcross:$X,oline:MX,olt:NX,Omacr:IX,omacr:PX,Omega:OX,omega:RX,Omicron:zX,omicron:DX,omid:FX,ominus:HX,Oopf:BX,oopf:WX,opar:jX,OpenCurlyDoubleQuote:qX,OpenCurlyQuote:UX,operp:VX,oplus:GX,orarr:XX,Or:KX,or:JX,ord:YX,order:ZX,orderof:QX,ordf:eK,ordm:tK,origof:nK,oror:rK,orslope:iK,orv:oK,oS:sK,Oscr:lK,oscr:aK,Oslash:cK,oslash:uK,osol:fK,Otilde:dK,otilde:hK,otimesas:pK,Otimes:gK,otimes:mK,Ouml:vK,ouml:yK,ovbar:bK,OverBar:wK,OverBrace:xK,OverBracket:SK,OverParenthesis:_K,para:kK,parallel:TK,par:CK,parsim:EK,parsl:AK,part:LK,PartialD:$K,Pcy:MK,pcy:NK,percnt:IK,period:PK,permil:OK,perp:RK,pertenk:zK,Pfr:DK,pfr:FK,Phi:HK,phi:BK,phiv:WK,phmmat:jK,phone:qK,Pi:UK,pi:VK,pitchfork:GK,piv:XK,planck:KK,planckh:JK,plankv:YK,plusacir:ZK,plusb:QK,pluscir:eJ,plus:tJ,plusdo:nJ,plusdu:rJ,pluse:iJ,PlusMinus:oJ,plusmn:sJ,plussim:lJ,plustwo:aJ,pm:cJ,Poincareplane:uJ,pointint:fJ,popf:dJ,Popf:hJ,pound:pJ,prap:gJ,Pr:mJ,pr:vJ,prcue:yJ,precapprox:bJ,prec:wJ,preccurlyeq:xJ,Precedes:SJ,PrecedesEqual:_J,PrecedesSlantEqual:kJ,PrecedesTilde:TJ,preceq:CJ,precnapprox:EJ,precneqq:AJ,precnsim:LJ,pre:$J,prE:MJ,precsim:NJ,prime:IJ,Prime:PJ,primes:OJ,prnap:RJ,prnE:zJ,prnsim:DJ,prod:FJ,Product:HJ,profalar:BJ,profline:WJ,profsurf:jJ,prop:qJ,Proportional:UJ,Proportion:VJ,propto:GJ,prsim:XJ,prurel:KJ,Pscr:JJ,pscr:YJ,Psi:ZJ,psi:QJ,puncsp:eY,Qfr:tY,qfr:nY,qint:rY,qopf:iY,Qopf:oY,qprime:sY,Qscr:lY,qscr:aY,quaternions:cY,quatint:uY,quest:fY,questeq:dY,quot:hY,QUOT:pY,rAarr:gY,race:mY,Racute:vY,racute:yY,radic:bY,raemptyv:wY,rang:xY,Rang:SY,rangd:_Y,range:kY,rangle:TY,raquo:CY,rarrap:EY,rarrb:AY,rarrbfs:LY,rarrc:$Y,rarr:MY,Rarr:NY,rArr:IY,rarrfs:PY,rarrhk:OY,rarrlp:RY,rarrpl:zY,rarrsim:DY,Rarrtl:FY,rarrtl:HY,rarrw:BY,ratail:WY,rAtail:jY,ratio:qY,rationals:UY,rbarr:VY,rBarr:GY,RBarr:XY,rbbrk:KY,rbrace:JY,rbrack:YY,rbrke:ZY,rbrksld:QY,rbrkslu:eZ,Rcaron:tZ,rcaron:nZ,Rcedil:rZ,rcedil:iZ,rceil:oZ,rcub:sZ,Rcy:lZ,rcy:aZ,rdca:cZ,rdldhar:uZ,rdquo:fZ,rdquor:dZ,rdsh:hZ,real:pZ,realine:gZ,realpart:mZ,reals:vZ,Re:yZ,rect:bZ,reg:wZ,REG:xZ,ReverseElement:SZ,ReverseEquilibrium:_Z,ReverseUpEquilibrium:kZ,rfisht:TZ,rfloor:CZ,rfr:EZ,Rfr:AZ,rHar:LZ,rhard:$Z,rharu:MZ,rharul:NZ,Rho:IZ,rho:PZ,rhov:OZ,RightAngleBracket:RZ,RightArrowBar:zZ,rightarrow:DZ,RightArrow:FZ,Rightarrow:HZ,RightArrowLeftArrow:BZ,rightarrowtail:WZ,RightCeiling:jZ,RightDoubleBracket:qZ,RightDownTeeVector:UZ,RightDownVectorBar:VZ,RightDownVector:GZ,RightFloor:XZ,rightharpoondown:KZ,rightharpoonup:JZ,rightleftarrows:YZ,rightleftharpoons:ZZ,rightrightarrows:QZ,rightsquigarrow:eQ,RightTeeArrow:tQ,RightTee:nQ,RightTeeVector:rQ,rightthreetimes:iQ,RightTriangleBar:oQ,RightTriangle:sQ,RightTriangleEqual:lQ,RightUpDownVector:aQ,RightUpTeeVector:cQ,RightUpVectorBar:uQ,RightUpVector:fQ,RightVectorBar:dQ,RightVector:hQ,ring:pQ,risingdotseq:gQ,rlarr:mQ,rlhar:vQ,rlm:yQ,rmoustache:bQ,rmoust:wQ,rnmid:xQ,roang:SQ,roarr:_Q,robrk:kQ,ropar:TQ,ropf:CQ,Ropf:EQ,roplus:AQ,rotimes:LQ,RoundImplies:$Q,rpar:MQ,rpargt:NQ,rppolint:IQ,rrarr:PQ,Rrightarrow:OQ,rsaquo:RQ,rscr:zQ,Rscr:DQ,rsh:FQ,Rsh:HQ,rsqb:BQ,rsquo:WQ,rsquor:jQ,rthree:qQ,rtimes:UQ,rtri:VQ,rtrie:GQ,rtrif:XQ,rtriltri:KQ,RuleDelayed:JQ,ruluhar:YQ,rx:ZQ,Sacute:QQ,sacute:eee,sbquo:tee,scap:nee,Scaron:ree,scaron:iee,Sc:oee,sc:see,sccue:lee,sce:aee,scE:cee,Scedil:uee,scedil:fee,Scirc:dee,scirc:hee,scnap:pee,scnE:gee,scnsim:mee,scpolint:vee,scsim:yee,Scy:bee,scy:wee,sdotb:xee,sdot:See,sdote:_ee,searhk:kee,searr:Tee,seArr:Cee,searrow:Eee,sect:Aee,semi:Lee,seswar:$ee,setminus:Mee,setmn:Nee,sext:Iee,Sfr:Pee,sfr:Oee,sfrown:Ree,sharp:zee,SHCHcy:Dee,shchcy:Fee,SHcy:Hee,shcy:Bee,ShortDownArrow:Wee,ShortLeftArrow:jee,shortmid:qee,shortparallel:Uee,ShortRightArrow:Vee,ShortUpArrow:Gee,shy:Xee,Sigma:Kee,sigma:Jee,sigmaf:Yee,sigmav:Zee,sim:Qee,simdot:ete,sime:tte,simeq:nte,simg:rte,simgE:ite,siml:ote,simlE:ste,simne:lte,simplus:ate,simrarr:cte,slarr:ute,SmallCircle:fte,smallsetminus:dte,smashp:hte,smeparsl:pte,smid:gte,smile:mte,smt:vte,smte:yte,smtes:bte,SOFTcy:wte,softcy:xte,solbar:Ste,solb:_te,sol:kte,Sopf:Tte,sopf:Cte,spades:Ete,spadesuit:Ate,spar:Lte,sqcap:$te,sqcaps:Mte,sqcup:Nte,sqcups:Ite,Sqrt:Pte,sqsub:Ote,sqsube:Rte,sqsubset:zte,sqsubseteq:Dte,sqsup:Fte,sqsupe:Hte,sqsupset:Bte,sqsupseteq:Wte,square:jte,Square:qte,SquareIntersection:Ute,SquareSubset:Vte,SquareSubsetEqual:Gte,SquareSuperset:Xte,SquareSupersetEqual:Kte,SquareUnion:Jte,squarf:Yte,squ:Zte,squf:Qte,srarr:ene,Sscr:tne,sscr:nne,ssetmn:rne,ssmile:ine,sstarf:one,Star:sne,star:lne,starf:ane,straightepsilon:cne,straightphi:une,strns:fne,sub:dne,Sub:hne,subdot:pne,subE:gne,sube:mne,subedot:vne,submult:yne,subnE:bne,subne:wne,subplus:xne,subrarr:Sne,subset:_ne,Subset:kne,subseteq:Tne,subseteqq:Cne,SubsetEqual:Ene,subsetneq:Ane,subsetneqq:Lne,subsim:$ne,subsub:Mne,subsup:Nne,succapprox:Ine,succ:Pne,succcurlyeq:One,Succeeds:Rne,SucceedsEqual:zne,SucceedsSlantEqual:Dne,SucceedsTilde:Fne,succeq:Hne,succnapprox:Bne,succneqq:Wne,succnsim:jne,succsim:qne,SuchThat:Une,sum:Vne,Sum:Gne,sung:Xne,sup1:Kne,sup2:Jne,sup3:Yne,sup:Zne,Sup:Qne,supdot:ere,supdsub:tre,supE:nre,supe:rre,supedot:ire,Superset:ore,SupersetEqual:sre,suphsol:lre,suphsub:are,suplarr:cre,supmult:ure,supnE:fre,supne:dre,supplus:hre,supset:pre,Supset:gre,supseteq:mre,supseteqq:vre,supsetneq:yre,supsetneqq:bre,supsim:wre,supsub:xre,supsup:Sre,swarhk:_re,swarr:kre,swArr:Tre,swarrow:Cre,swnwar:Ere,szlig:Are,Tab:Lre,target:$re,Tau:Mre,tau:Nre,tbrk:Ire,Tcaron:Pre,tcaron:Ore,Tcedil:Rre,tcedil:zre,Tcy:Dre,tcy:Fre,tdot:Hre,telrec:Bre,Tfr:Wre,tfr:jre,there4:qre,therefore:Ure,Therefore:Vre,Theta:Gre,theta:Xre,thetasym:Kre,thetav:Jre,thickapprox:Yre,thicksim:Zre,ThickSpace:Qre,ThinSpace:eie,thinsp:tie,thkap:nie,thksim:rie,THORN:iie,thorn:oie,tilde:sie,Tilde:lie,TildeEqual:aie,TildeFullEqual:cie,TildeTilde:uie,timesbar:fie,timesb:die,times:hie,timesd:pie,tint:gie,toea:mie,topbot:vie,topcir:yie,top:bie,Topf:wie,topf:xie,topfork:Sie,tosa:_ie,tprime:kie,trade:Tie,TRADE:Cie,triangle:Eie,triangledown:Aie,triangleleft:Lie,trianglelefteq:$ie,triangleq:Mie,triangleright:Nie,trianglerighteq:Iie,tridot:Pie,trie:Oie,triminus:Rie,TripleDot:zie,triplus:Die,trisb:Fie,tritime:Hie,trpezium:Bie,Tscr:Wie,tscr:jie,TScy:qie,tscy:Uie,TSHcy:Vie,tshcy:Gie,Tstrok:Xie,tstrok:Kie,twixt:Jie,twoheadleftarrow:Yie,twoheadrightarrow:Zie,Uacute:Qie,uacute:eoe,uarr:toe,Uarr:noe,uArr:roe,Uarrocir:ioe,Ubrcy:ooe,ubrcy:soe,Ubreve:loe,ubreve:aoe,Ucirc:coe,ucirc:uoe,Ucy:foe,ucy:doe,udarr:hoe,Udblac:poe,udblac:goe,udhar:moe,ufisht:voe,Ufr:yoe,ufr:boe,Ugrave:woe,ugrave:xoe,uHar:Soe,uharl:_oe,uharr:koe,uhblk:Toe,ulcorn:Coe,ulcorner:Eoe,ulcrop:Aoe,ultri:Loe,Umacr:$oe,umacr:Moe,uml:Noe,UnderBar:Ioe,UnderBrace:Poe,UnderBracket:Ooe,UnderParenthesis:Roe,Union:zoe,UnionPlus:Doe,Uogon:Foe,uogon:Hoe,Uopf:Boe,uopf:Woe,UpArrowBar:joe,uparrow:qoe,UpArrow:Uoe,Uparrow:Voe,UpArrowDownArrow:Goe,updownarrow:Xoe,UpDownArrow:Koe,Updownarrow:Joe,UpEquilibrium:Yoe,upharpoonleft:Zoe,upharpoonright:Qoe,uplus:ese,UpperLeftArrow:tse,UpperRightArrow:nse,upsi:rse,Upsi:ise,upsih:ose,Upsilon:sse,upsilon:lse,UpTeeArrow:ase,UpTee:cse,upuparrows:use,urcorn:fse,urcorner:dse,urcrop:hse,Uring:pse,uring:gse,urtri:mse,Uscr:vse,uscr:yse,utdot:bse,Utilde:wse,utilde:xse,utri:Sse,utrif:_se,uuarr:kse,Uuml:Tse,uuml:Cse,uwangle:Ese,vangrt:Ase,varepsilon:Lse,varkappa:$se,varnothing:Mse,varphi:Nse,varpi:Ise,varpropto:Pse,varr:Ose,vArr:Rse,varrho:zse,varsigma:Dse,varsubsetneq:Fse,varsubsetneqq:Hse,varsupsetneq:Bse,varsupsetneqq:Wse,vartheta:jse,vartriangleleft:qse,vartriangleright:Use,vBar:Vse,Vbar:Gse,vBarv:Xse,Vcy:Kse,vcy:Jse,vdash:Yse,vDash:Zse,Vdash:Qse,VDash:ele,Vdashl:tle,veebar:nle,vee:rle,Vee:ile,veeeq:ole,vellip:sle,verbar:lle,Verbar:ale,vert:cle,Vert:ule,VerticalBar:fle,VerticalLine:dle,VerticalSeparator:hle,VerticalTilde:ple,VeryThinSpace:gle,Vfr:mle,vfr:vle,vltri:yle,vnsub:ble,vnsup:wle,Vopf:xle,vopf:Sle,vprop:_le,vrtri:kle,Vscr:Tle,vscr:Cle,vsubnE:Ele,vsubne:Ale,vsupnE:Lle,vsupne:$le,Vvdash:Mle,vzigzag:Nle,Wcirc:Ile,wcirc:Ple,wedbar:Ole,wedge:Rle,Wedge:zle,wedgeq:Dle,weierp:Fle,Wfr:Hle,wfr:Ble,Wopf:Wle,wopf:jle,wp:qle,wr:Ule,wreath:Vle,Wscr:Gle,wscr:Xle,xcap:Kle,xcirc:Jle,xcup:Yle,xdtri:Zle,Xfr:Qle,xfr:eae,xharr:tae,xhArr:nae,Xi:rae,xi:iae,xlarr:oae,xlArr:sae,xmap:lae,xnis:aae,xodot:cae,Xopf:uae,xopf:fae,xoplus:dae,xotime:hae,xrarr:pae,xrArr:gae,Xscr:mae,xscr:vae,xsqcup:yae,xuplus:bae,xutri:wae,xvee:xae,xwedge:Sae,Yacute:_ae,yacute:kae,YAcy:Tae,yacy:Cae,Ycirc:Eae,ycirc:Aae,Ycy:Lae,ycy:$ae,yen:Mae,Yfr:Nae,yfr:Iae,YIcy:Pae,yicy:Oae,Yopf:Rae,yopf:zae,Yscr:Dae,yscr:Fae,YUcy:Hae,yucy:Bae,yuml:Wae,Yuml:jae,Zacute:qae,zacute:Uae,Zcaron:Vae,zcaron:Gae,Zcy:Xae,zcy:Kae,Zdot:Jae,zdot:Yae,zeetrf:Zae,ZeroWidthSpace:Qae,Zeta:ece,zeta:tce,zfr:nce,Zfr:rce,ZHcy:ice,zhcy:oce,zigrarr:sce,zopf:lce,Zopf:ace,Zscr:cce,zscr:uce,zwj:fce,zwnj:dce},hce="Á",pce="á",gce="Â",mce="â",vce="´",yce="Æ",bce="æ",wce="À",xce="à",Sce="&",_ce="&",kce="Å",Tce="å",Cce="Ã",Ece="ã",Ace="Ä",Lce="ä",$ce="¦",Mce="Ç",Nce="ç",Ice="¸",Pce="¢",Oce="©",Rce="©",zce="¤",Dce="°",Fce="÷",Hce="É",Bce="é",Wce="Ê",jce="ê",qce="È",Uce="è",Vce="Ð",Gce="ð",Xce="Ë",Kce="ë",Jce="½",Yce="¼",Zce="¾",Qce=">",eue=">",tue="Í",nue="í",rue="Î",iue="î",oue="¡",sue="Ì",lue="ì",aue="¿",cue="Ï",uue="ï",fue="«",due="<",hue="<",pue="¯",gue="µ",mue="·",vue=" ",yue="¬",bue="Ñ",wue="ñ",xue="Ó",Sue="ó",_ue="Ô",kue="ô",Tue="Ò",Cue="ò",Eue="ª",Aue="º",Lue="Ø",$ue="ø",Mue="Õ",Nue="õ",Iue="Ö",Pue="ö",Oue="¶",Rue="±",zue="£",Due='"',Fue='"',Hue="»",Bue="®",Wue="®",jue="§",que="­",Uue="¹",Vue="²",Gue="³",Xue="ß",Kue="Þ",Jue="þ",Yue="×",Zue="Ú",Que="ú",efe="Û",tfe="û",nfe="Ù",rfe="ù",ife="¨",ofe="Ü",sfe="ü",lfe="Ý",afe="ý",cfe="¥",ufe="ÿ",ffe={Aacute:hce,aacute:pce,Acirc:gce,acirc:mce,acute:vce,AElig:yce,aelig:bce,Agrave:wce,agrave:xce,amp:Sce,AMP:_ce,Aring:kce,aring:Tce,Atilde:Cce,atilde:Ece,Auml:Ace,auml:Lce,brvbar:$ce,Ccedil:Mce,ccedil:Nce,cedil:Ice,cent:Pce,copy:Oce,COPY:Rce,curren:zce,deg:Dce,divide:Fce,Eacute:Hce,eacute:Bce,Ecirc:Wce,ecirc:jce,Egrave:qce,egrave:Uce,ETH:Vce,eth:Gce,Euml:Xce,euml:Kce,frac12:Jce,frac14:Yce,frac34:Zce,gt:Qce,GT:eue,Iacute:tue,iacute:nue,Icirc:rue,icirc:iue,iexcl:oue,Igrave:sue,igrave:lue,iquest:aue,Iuml:cue,iuml:uue,laquo:fue,lt:due,LT:hue,macr:pue,micro:gue,middot:mue,nbsp:vue,not:yue,Ntilde:bue,ntilde:wue,Oacute:xue,oacute:Sue,Ocirc:_ue,ocirc:kue,Ograve:Tue,ograve:Cue,ordf:Eue,ordm:Aue,Oslash:Lue,oslash:$ue,Otilde:Mue,otilde:Nue,Ouml:Iue,ouml:Pue,para:Oue,plusmn:Rue,pound:zue,quot:Due,QUOT:Fue,raquo:Hue,reg:Bue,REG:Wue,sect:jue,shy:que,sup1:Uue,sup2:Vue,sup3:Gue,szlig:Xue,THORN:Kue,thorn:Jue,times:Yue,Uacute:Zue,uacute:Que,Ucirc:efe,ucirc:tfe,Ugrave:nfe,ugrave:rfe,uml:ife,Uuml:ofe,uuml:sfe,Yacute:lfe,yacute:afe,yen:cfe,yuml:ufe},dfe="&",hfe="'",pfe=">",gfe="<",mfe='"',e1={amp:dfe,apos:hfe,gt:pfe,lt:gfe,quot:mfe};var Ts={};const vfe={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 j0;function yfe(){if(j0)return Ts;j0=1;var e=Ts&&Ts.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ts,"__esModule",{value:!0});var t=e(vfe),n=String.fromCodePoint||function(s){var l="";return s>65535&&(s-=65536,l+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),l+=String.fromCharCode(s),l};function i(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),n(s))}return Ts.default=i,Ts}var q0;function U0(){if(q0)return Tr;q0=1;var e=Tr&&Tr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.decodeHTML=Tr.decodeHTMLStrict=Tr.decodeXML=void 0;var t=e(Qx),n=e(ffe),i=e(e1),s=e(yfe()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tr.decodeXML=u(i.default),Tr.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(v){return String(v).replace(l,g)}}var f=function(p,g){return p<g?1:-1};Tr.decodeHTML=function(){for(var p=Object.keys(n.default).sort(f),g=Object.keys(t.default).sort(f),v=0,y=0;v<g.length;v++)p[y]===g[v]?(g[v]+=";?",y++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),L=h(t.default);function $(C){return C.substr(-1)!==";"&&(C+=";"),L(C)}return function(C){return String(C).replace(w,$)}}();function h(p){return function(v){if(v.charAt(1)==="#"){var y=v.charAt(2);return y==="X"||y==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Tr}var Ln={},V0;function G0(){if(V0)return Ln;V0=1;var e=Ln&&Ln.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(e1),n=f(t.default),i=h(n);Ln.encodeXML=C(n);var s=e(Qx),l=f(s.default),u=h(l);Ln.encodeHTML=y(l,u),Ln.encodeNonAsciiHTML=C(l);function f(E){return Object.keys(E).sort().reduce(function(N,O){return N[E[O]]="&"+O+";",N},{})}function h(E){for(var N=[],O=[],k=0,z=Object.keys(E);k<z.length;k++){var D=z[k];D.length===1?N.push("\\"+D):O.push(D)}N.sort();for(var oe=0;oe<N.length-1;oe++){for(var Q=oe;Q<N.length-1&&N[Q].charCodeAt(1)+1===N[Q+1].charCodeAt(1);)Q+=1;var W=1+Q-oe;W<3||N.splice(oe,W,N[oe]+"-"+N[Q])}return O.unshift("["+N.join("")+"]"),new RegExp(O.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(E,N){return function(O){return O.replace(N,function(k){return E[k]}).replace(p,v)}}var w=new RegExp(i.source+"|"+p.source,"g");function L(E){return E.replace(w,v)}Ln.escape=L;function $(E){return E.replace(i,v)}Ln.escapeUTF8=$;function C(E){return function(N){return N.replace(w,function(O){return E[O]||v(O)})}}return Ln}var X0;function bfe(){return X0||(X0=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=U0(),n=G0();function i(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=i;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function l(h,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(h)}e.encode=l;var u=G0();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var f=U0();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})}(zd)),zd}var Dd,K0;function wfe(){if(K0)return Dd;K0=1;function e(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function t(A,I){for(var P=0;P<I.length;P++){var S=I[P];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}function n(A,I,P){return I&&t(A.prototype,I),A}function i(A,I){var P=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!P){if(Array.isArray(A)||(P=s(A))||I){P&&(A=P);var S=0,R=function(){};return{s:R,n:function(){return S>=A.length?{done:!0}:{done:!1,value:A[S++]}},e:function(Pe){throw Pe},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ie=!1,ue;return{s:function(){P=P.call(A)},n:function(){var Pe=P.next();return B=Pe.done,Pe},e:function(Pe){ie=!0,ue=Pe},f:function(){try{!B&&P.return!=null&&P.return()}finally{if(ie)throw ue}}}}function s(A,I){if(A){if(typeof A=="string")return l(A,I);var P=Object.prototype.toString.call(A).slice(8,-1);if(P==="Object"&&A.constructor&&(P=A.constructor.name),P==="Map"||P==="Set")return Array.from(A);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return l(A,I)}}function l(A,I){(I==null||I>A.length)&&(I=A.length);for(var P=0,S=new Array(I);P<I;P++)S[P]=A[P];return S}var u=bfe(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var A={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 C(0,5).forEach(function(I){C(0,5).forEach(function(P){C(0,5).forEach(function(S){return p(I,P,S,A)})})}),C(0,23).forEach(function(I){var P=I+232,S=g(I*10+8);A[P]="#"+S+S+S}),A}function p(A,I,P,S){var R=16+A*36+I*6+P,B=A>0?A*40+55:0,ie=I>0?I*40+55:0,ue=P>0?P*40+55:0;S[R]=v([B,ie,ue])}function g(A){for(var I=A.toString(16);I.length<2;)I="0"+I;return I}function v(A){var I=[],P=i(A),S;try{for(P.s();!(S=P.n()).done;){var R=S.value;I.push(g(R))}}catch(B){P.e(B)}finally{P.f()}return"#"+I.join("")}function y(A,I,P,S){var R;return I==="text"?R=O(P,S):I==="display"?R=L(A,P,S):I==="xterm256Foreground"?R=D(A,S.colors[P]):I==="xterm256Background"?R=oe(A,S.colors[P]):I==="rgb"&&(R=w(A,P)),R}function w(A,I){I=I.substring(2).slice(0,-1);var P=+I.substr(0,2),S=I.substring(5).split(";"),R=S.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return z(A,(P===38?"color:#":"background-color:#")+R)}function L(A,I,P){I=parseInt(I,10);var S={"-1":function(){return"<br/>"},0:function(){return A.length&&$(A)},1:function(){return k(A,"b")},3:function(){return k(A,"i")},4:function(){return k(A,"u")},8:function(){return z(A,"display:none")},9:function(){return k(A,"strike")},22:function(){return z(A,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Q(A,"i")},24:function(){return Q(A,"u")},39:function(){return D(A,P.fg)},49:function(){return oe(A,P.bg)},53:function(){return z(A,"text-decoration:overline")}},R;return S[I]?R=S[I]():4<I&&I<7?R=k(A,"blink"):29<I&&I<38?R=D(A,P.colors[I-30]):39<I&&I<48?R=oe(A,P.colors[I-40]):89<I&&I<98?R=D(A,P.colors[8+(I-90)]):99<I&&I<108&&(R=oe(A,P.colors[8+(I-100)])),R}function $(A){var I=A.slice(0);return A.length=0,I.reverse().map(function(P){return"</"+P+">"}).join("")}function C(A,I){for(var P=[],S=A;S<=I;S++)P.push(S);return P}function E(A){return function(I){return(A===null||I.category!==A)&&A!=="all"}}function N(A){A=parseInt(A,10);var I=null;return A===0?I="all":A===1?I="bold":2<A&&A<5?I="underline":4<A&&A<7?I="blink":A===8?I="hide":A===9?I="strike":29<A&&A<38||A===39||89<A&&A<98?I="foreground-color":(39<A&&A<48||A===49||99<A&&A<108)&&(I="background-color"),I}function O(A,I){return I.escapeXML?u.encodeXML(A):A}function k(A,I,P){return P||(P=""),A.push(I),"<".concat(I).concat(P?' style="'.concat(P,'"'):"",">")}function z(A,I){return k(A,"span",I)}function D(A,I){return k(A,"span","color:"+I)}function oe(A,I){return k(A,"span","background-color:"+I)}function Q(A,I){var P;if(A.slice(-1)[0]===I&&(P=A.pop()),P)return"</"+I+">"}function W(A,I,P){var S=!1,R=3;function B(){return""}function ie(G,Y){return P("xterm256Foreground",Y),""}function ue(G,Y){return P("xterm256Background",Y),""}function we(G){return I.newline?P("display",-1):P("text",G),""}function Pe(G,Y){S=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var fe=i(Y),pe;try{for(fe.s();!(pe=fe.n()).done;){var he=pe.value;P("display",he)}}catch(Ce){fe.e(Ce)}finally{fe.f()}return""}function qe(G){return P("text",G),""}function Ze(G){return P("rgb",G),""}var Ke=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ze},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ie},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ue},{pattern:/^\n/,sub:we},{pattern:/^\r+\n/,sub:we},{pattern:/^\r/,sub:we},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:qe}];function Je(G,Y){Y>R&&S||(S=!1,A=A.replace(G.pattern,G.sub))}var re=[],V=A,ee=V.length;e:for(;ee>0;){for(var J=0,ae=0,ge=Ke.length;ae<ge;J=++ae){var F=Ke[J];if(Je(F,J),A.length!==ee){ee=A.length;continue e}}if(A.length===ee)break;re.push(0),ee=A.length}return re}function q(A,I,P){return I!=="text"&&(A=A.filter(E(N(P))),A.push({token:I,data:P,category:N(P)})),A}var U=function(){function A(I){e(this,A),I=I||{},I.colors&&(I.colors=Object.assign({},f.colors,I.colors)),this.options=Object.assign({},f,I),this.stack=[],this.stickyStack=[]}return n(A,[{key:"toHtml",value:function(P){var S=this;P=typeof P=="string"?[P]:P;var R=this.stack,B=this.options,ie=[];return this.stickyStack.forEach(function(ue){var we=y(R,ue.token,ue.data,B);we&&ie.push(we)}),W(P.join(""),B,function(ue,we){var Pe=y(R,ue,we,B);Pe&&ie.push(Pe),B.stream&&(S.stickyStack=q(S.stickyStack,ue,we))}),R.length&&ie.push($(R)),ie.join("")}}]),A}();return Dd=U,Dd}var xfe=wfe();const Sfe=kp(xfe);function la(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _fe(e,t){return t&&e.endsWith(t)}async function Pp(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function Op(e){return new Sfe({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function kfe(e){return e===null||typeof e!="function"&&typeof e!="object"}function t1(e){let t=e;if(kfe(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:""}}return t.stacks=HL(t.stack||"",{ignoreStackEntries:[]}),t}function Tfe(e,t){var s,l;let n="";return(s=t.message)!=null&&s.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(la(t.message))}`),((l=t.stack)==null?void 0:l.includes("\x1B"))&&(n.length>0?n+=e.toHtml(la(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(la(t.stack))}`),n.length>0?n:null}function n1(e,t){const n=Op(e);return t.map(i=>{var u;const s=i.result;if(!s||s.htmlError)return i;const l=(u=s.errors)==null?void 0:u.map(f=>Tfe(n,f)).filter(f=>f!=null).join("<br><br>");return l!=null&&l.length&&(s.htmlError=l),i})}var nr=Uint8Array,Is=Uint16Array,Cfe=Int32Array,r1=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]),i1=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]),Efe=new nr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o1=function(e,t){for(var n=new Is(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var s=new Cfe(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)s[l]=l-n[i]<<5|i;return{b:n,r:s}},s1=o1(r1,2),l1=s1.b,Afe=s1.r;l1[28]=258,Afe[258]=28;var Lfe=o1(i1,0),$fe=Lfe.b,Mh=new Is(32768);for(var Lt=0;Lt<32768;++Lt){var Ui=(Lt&43690)>>1|(Lt&21845)<<1;Ui=(Ui&52428)>>2|(Ui&13107)<<2,Ui=(Ui&61680)>>4|(Ui&3855)<<4,Mh[Lt]=((Ui&65280)>>8|(Ui&255)<<8)>>1}var aa=function(e,t,n){for(var i=e.length,s=0,l=new Is(t);s<i;++s)e[s]&&++l[e[s]-1];var u=new Is(t);for(s=1;s<t;++s)u[s]=u[s-1]+l[s-1]<<1;var f;if(n){f=new Is(1<<t);var h=15-t;for(s=0;s<i;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=u[e[s]-1]++<<g,y=v|(1<<g)-1;v<=y;++v)f[Mh[v]>>h]=p}else for(f=new Is(i),s=0;s<i;++s)e[s]&&(f[s]=Mh[u[e[s]-1]++]>>15-e[s]);return f},Xa=new nr(288);for(var Lt=0;Lt<144;++Lt)Xa[Lt]=8;for(var Lt=144;Lt<256;++Lt)Xa[Lt]=9;for(var Lt=256;Lt<280;++Lt)Xa[Lt]=7;for(var Lt=280;Lt<288;++Lt)Xa[Lt]=8;var a1=new nr(32);for(var Lt=0;Lt<32;++Lt)a1[Lt]=5;var Mfe=aa(Xa,9,1),Nfe=aa(a1,5,1),Fd=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Cr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Hd=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Ife=function(e){return(e+7)/8|0},c1=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new nr(e.subarray(t,n))},Pfe=["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,n){var i=new Error(t||Pfe[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,qn),!n)throw i;return i},Rp=function(e,t,n,i){var s=e.length,l=0;if(!s||t.f&&!t.l)return n||new nr(0);var u=!n,f=u||t.i!=2,h=t.i;u&&(n=new nr(s*3));var p=function(ge){var F=n.length;if(ge>F){var G=new nr(Math.max(F*2,ge));G.set(n),n=G}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,L=t.d,$=t.m,C=t.n,E=s*8;do{if(!w){g=Cr(e,v,1);var N=Cr(e,v+1,3);if(v+=3,N)if(N==1)w=Mfe,L=Nfe,$=9,C=5;else if(N==2){var D=Cr(e,v,31)+257,oe=Cr(e,v+10,15)+4,Q=D+Cr(e,v+5,31)+1;v+=14;for(var W=new nr(Q),q=new nr(19),U=0;U<oe;++U)q[Efe[U]]=Cr(e,v+U*3,7);v+=oe*3;for(var A=Fd(q),I=(1<<A)-1,P=aa(q,A,1),U=0;U<Q;){var S=P[Cr(e,v,I)];v+=S&15;var O=S>>4;if(O<16)W[U++]=O;else{var R=0,B=0;for(O==16?(B=3+Cr(e,v,3),v+=2,R=W[U-1]):O==17?(B=3+Cr(e,v,7),v+=3):O==18&&(B=11+Cr(e,v,127),v+=7);B--;)W[U++]=R}}var ie=W.subarray(0,D),ue=W.subarray(D);$=Fd(ie),C=Fd(ue),w=aa(ie,$,1),L=aa(ue,C,1)}else qn(1);else{var O=Ife(v)+4,k=e[O-4]|e[O-3]<<8,z=O+k;if(z>s){h&&qn(0);break}f&&p(y+k),n.set(e.subarray(O,z),y),t.b=y+=k,t.p=v=z*8,t.f=g;continue}if(v>E){h&&qn(0);break}}f&&p(y+131072);for(var we=(1<<$)-1,Pe=(1<<C)-1,qe=v;;qe=v){var R=w[Hd(e,v)&we],Ze=R>>4;if(v+=R&15,v>E){h&&qn(0);break}if(R||qn(2),Ze<256)n[y++]=Ze;else if(Ze==256){qe=v,w=null;break}else{var Ke=Ze-254;if(Ze>264){var U=Ze-257,Je=r1[U];Ke=Cr(e,v,(1<<Je)-1)+l1[U],v+=Je}var re=L[Hd(e,v)&Pe],V=re>>4;re||qn(3),v+=re&15;var ue=$fe[V];if(V>3){var Je=i1[V];ue+=Hd(e,v)&(1<<Je)-1,v+=Je}if(v>E){h&&qn(0);break}f&&p(y+131072);var ee=y+Ke;if(y<ue){var J=l-ue,ae=Math.min(ue,ee);for(J+y<0&&qn(3);y<ae;++y)n[y]=i[J+y]}for(;y<ee;++y)n[y]=n[y-ue]}}t.l=w,t.p=qe,t.b=y,t.f=g,w&&(g=1,t.m=$,t.d=L,t.n=C)}while(!g);return y!=n.length&&u?c1(n,0,y):n.subarray(0,y)},Ofe=new nr(0),Rfe=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&qn(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},zfe=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Dfe=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 Ffe(e,t){return Rp(e,{i:2},t,t)}function Hfe(e,t){var n=Rfe(e);return n+8>e.length&&qn(6,"invalid gzip data"),Rp(e.subarray(n,-8),{i:2},new nr(zfe(e)),t)}function Bfe(e,t){return Rp(e.subarray(Dfe(e),-4),{i:2},t,t)}function Wfe(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hfe(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Ffe(e,t):Bfe(e,t)}var Nh=typeof TextDecoder<"u"&&new TextDecoder,jfe=0;try{Nh.decode(Ofe,{stream:!0}),jfe=1}catch{}var qfe=function(e){for(var t="",n=0;;){var i=e[n++],s=(i>127)+(i>223)+(i>239);if(n+s>e.length)return{s:t,r:c1(e,n-1)};s?s==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):s&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function Ufe(e,t){var n;if(Nh)return Nh.decode(e);var i=qfe(e),s=i.s,n=i.r;return n.length&&qn(8),s}const Bd=()=>{},vn=()=>Promise.resolve();function Vfe(){const e=rr({state:new kx,waitForConnection:u,reconnect:s,ws:new EventTarget});e.state.filesMap=rr(e.state.filesMap),e.state.idMap=rr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(f,h)=>{var p;return(p=t.moduleGraph[f])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:vn,onDone:Bd,onTaskUpdate:Bd,writeFile:vn,rerun:vn,rerunTask:vn,updateSnapshot:vn,resolveSnapshotPath:vn,snapshotSaved:vn,onAfterSuiteRun:vn,onCancel:vn,getCountOfFailedTests:()=>0,sendLog:vn,resolveSnapshotRawPath:vn,readSnapshotFile:vn,saveSnapshotFile:vn,readTestFile:async f=>t.sources[f],removeSnapshotFile:vn,onUnhandledError:Bd,saveTestFile:vn,getProvidedContext:()=>({}),getTestFiles:vn};e.rpc=n;const i=Promise.resolve();function s(){l()}async function l(){var g;const f=await fetch(window.METADATA_PATH),h=((g=f.headers.get("content-type"))==null?void 0:g.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await f.arrayBuffer()),y=Ufe(Wfe(v));t=kh(y)}else t=kh(await f.text());const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return i}return e}const ht=function(){return pr?Vfe():D$(KM,{reactive:(t,n)=>n==="state"?rr(t):rn(t),handlers:{onTestAnnotate(t,n){Ae.annotateTest(t,n)},onTaskUpdate(t,n){Ae.resumeRun(t,n),df.value="running"},onFinished(t,n){Ae.endRun(),Zi.value=(n||[]).map(t1)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),el=rn({}),Bo=Ue("CONNECTING"),qt=_e(()=>{const e=mo.value;return e?gr(e):void 0}),u1=_e(()=>Cp(qt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function gr(e){const t=ht.state.idMap.get(e);return t||void 0}const Gfe=_e(()=>Bo.value==="OPEN"),Wd=_e(()=>Bo.value==="CONNECTING");_e(()=>Bo.value==="CLOSED");function Xfe(){return zp(ht.state.getFiles())}function f1(e){delete e.result;const t=Ae.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ua(e)))for(const n of e.tasks)f1(n)}function Kfe(e){const t=Ae.nodes;e.forEach(n=>{delete n.result,Cp(n).forEach(s=>{if(delete s.result,t.has(s.id)){const l=t.get(s.id);l&&(l.state=void 0,l.duration=void 0)}});const i=t.get(n.id);i&&(i.state=void 0,i.duration=void 0,On(i)&&(i.collectDuration=void 0))})}function zp(e){return Kfe(e),Ae.startRun(),ht.rpc.rerun(e.map(t=>t.filepath),!0)}function Jfe(e){return f1(e),Ae.startRun(),ht.rpc.rerunTask(e.id)}const It=window.__vitest_browser_runner__;window.__vitest_ui_api__=VM;St(()=>ht.ws,e=>{Bo.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Bo.value="OPEN",ht.state.filesMap.clear();let[t,n,i,s]=await Promise.all([ht.rpc.getFiles(),ht.rpc.getConfig(),ht.rpc.getUnhandledErrors(),ht.rpc.getResolvedProjectLabels()]);n.standalone&&(t=(await ht.rpc.getTestFiles()).map(([{name:u,root:f},h])=>{const p=fx(h,f,u);return p.mode="skip",p})),Ae.loadFiles(t,s),ht.state.collectFiles(t),Ae.startRun(),Zi.value=(i||[]).map(t1),el.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{Bo.value==="CONNECTING"&&(Bo.value="CLOSED")},1e3)})},{immediate:!0});const Yfe={"text-2xl":""},Zfe={"text-lg":"",op50:""},Qfe=at({__name:"ConnectionOverlay",setup(e){return(t,n)=>j(Gfe)?je("",!0):(se(),ye("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>j(ht).reconnect&&j(ht).reconnect(...i))},[te("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(j(Wd)?"animate-pulse":"")},[te("div",{text:"5xl",class:ot(j(Wd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),te("div",Yfe,Re(j(Wd)?"Connecting...":"Disconnected"),1),te("div",Zfe," Check your terminal or start a new server with `"+Re(j(It)?`vitest --browser=${j(It).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),ede=["aria-label","opacity","disabled","hover"],ri=at({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(se(),ye("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:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[xn(t.$slots,"default",{},()=>[te("span",{class:ot(t.icon),ma:"",block:""},null,2)])],10,ede))}}),tde={h:"full",flex:"~ col"},nde={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rde={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},ide={class:"pointer-events-none","text-sm":""},ode={key:0},sde={id:"tester-container",relative:""},lde=["data-scale"],J0=20,ade=100,cde=at({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(p){const g=t[p];return er.value[0]===g[0]&&er.value[1]===g[1]}const{width:i,height:s}=zx();async function l(p){er.value=t[p],(It==null?void 0:It.provider)==="webdriverio"&&Zx()}const u=_e(()=>{if((It==null?void 0:It.provider)==="webdriverio"){const[w,L]=er.value;return{width:w,height:L}}const v=i.value*(At.details.size/100)*(At.details.browser/100)-J0,y=s.value-ade;return{width:v,height:y}}),f=_e(()=>{if((It==null?void 0:It.provider)==="webdriverio")return 1;const[p,g]=er.value,{width:v,height:y}=u.value,w=v>p?1:v/p,L=y>g?1:y/g;return Math.min(1,w,L)}),h=_e(()=>{const p=u.value.width,g=er.value[0];return`${Math.trunc((p+J0-g)/2)}px`});return(p,g)=>{const v=ri,y=Dr("tooltip");return se(),ye("div",tde,[te("div",nde,[ct(Ie(v,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=w=>j(UM)())},null,512),[[to,j(At).navigation<=15],[y,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=te("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Ie(v,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=w=>j(jM)())},null,512),[[to,j(At).details.main>0],[y,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Ie(v,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=w=>j(qM)())},null,512),[[to,j(At).details.main===0],[y,"Show Right Panel",void 0,{bottom:!0}]])]),te("div",rde,[ct(Ie(v,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:g[3]||(g[3]=w=>l("small-mobile"))},null,8,["active"]),[[y,"Small mobile",void 0,{bottom:!0}]]),ct(Ie(v,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:g[4]||(g[4]=w=>l("large-mobile"))},null,8,["active"]),[[y,"Large mobile",void 0,{bottom:!0}]]),ct(Ie(v,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:g[5]||(g[5]=w=>l("tablet"))},null,8,["active"]),[[y,"Tablet",void 0,{bottom:!0}]]),te("span",ide,[dt(Re(j(er)[0])+"x"+Re(j(er)[1])+"px ",1),j(f)<1?(se(),ye("span",ode,"("+Re((j(f)*100).toFixed(0))+"%)",1)):je("",!0)])]),te("div",sde,[te("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":j(f),style:nn({"--viewport-width":`${j(er)[0]}px`,"--viewport-height":`${j(er)[1]}px`,"--tester-transform":`scale(${j(f)})`,"--tester-margin-left":j(h)})}," Select a test to run ",12,lde)])])}}}),ude=ni(cde,[["__scopeId","data-v-9fd23e63"]]),Dp=at({__name:"Modal",props:ga({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ef(e,"modelValue"),n=_e(()=>{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""}}),i=_e(()=>{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(l,u)=>(se(),ye("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[te("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),te("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[j(n)]]),style:nn(t.value?{}:{transform:j(i)})},[xn(l.$slots,"default")],6)],2))}}),fde={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},dde={"p-4":"",relative:"",border:"base b"},hde={op50:"","font-mono":"","text-sm":""},pde={op50:"","font-mono":"","text-sm":""},gde={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},mde=["src","alt"],vde={key:1},yde=at({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return Nx("Escape",()=>{n("close")}),(i,s)=>{const l=ri;return se(),ye("div",fde,[te("div",dde,[s[1]||(s[1]=te("p",null,"Screenshot error",-1)),te("p",hde,Re(i.file),1),te("p",pde,Re(i.name),1),Ie(l,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=u=>n("close"))})]),te("div",gde,[i.url?(se(),ye("img",{key:0,src:i.url,alt:`Screenshot error for '${i.name}' test in file '${i.file}'`,border:"base t r b l dotted red-500"},null,8,mde)):(se(),ye("div",vde," Something was wrong, the image cannot be resolved. "))])])}}}),d1=ni(yde,[["__scopeId","data-v-93900314"]]),h1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(h1);var cr=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},As,Xl,Fo;class bde{constructor(...t){As.set(this,new Map),Xl.set(this,new Map),Fo.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[i,s]of Object.entries(t)){i=i.toLowerCase(),s=s.map(f=>f.toLowerCase()),cr(this,Fo,"f").has(i)||cr(this,Fo,"f").set(i,new Set);const l=cr(this,Fo,"f").get(i);let u=!0;for(let f of s){const h=f.startsWith("*");if(f=h?f.slice(1):f,l==null||l.add(f),u&&cr(this,Xl,"f").set(i,f),u=!1,h)continue;const p=cr(this,As,"f").get(f);if(p&&p!=i&&!n)throw new Error(`"${i} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);cr(this,As,"f").set(f,i)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),s=n.length<t.length;return!(i.length<n.length-1)&&s?null:cr(this,As,"f").get(i)??null}getExtension(t){var n;return typeof t!="string"?null:(t=(n=t==null?void 0:t.split)==null?void 0:n.call(t,";")[0],(t&&cr(this,Xl,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:cr(this,Fo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of cr(this,Fo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:cr(this,As,"f"),extensions:cr(this,Xl,"f")}}}As=new WeakMap,Xl=new WeakMap,Fo=new WeakMap;const wde=new bde(h1)._freeze();function Pu(e){if(pr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function p1(e,t){const n=t?wde.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function xde(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const Sde=["href","referrerPolicy"],_de=["src"],kde=at({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=_e(()=>{const i=t.annotation.attachment,s=i.path||i.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Pu(i)});return(i,s)=>{var l;return i.annotation.attachment&&((l=i.annotation.attachment.contentType)!=null&&l.startsWith("image/"))?(se(),ye("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:j(n),referrerPolicy:j(xde)(i.annotation.attachment)?"no-referrer":void 0},[te("img",{src:j(n)},null,8,_de)],8,Sde)):je("",!0)}}});var ru={exports:{}},Tde=ru.exports,Y0;function sl(){return Y0||(Y0=1,function(e,t){(function(n,i){e.exports=i()})(Tde,function(){var n=navigator.userAgent,i=navigator.platform,s=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),h=l||u||f,p=h&&(l?document.documentMode||6:+(f||u)[1]),g=!f&&/WebKit\//.test(n),v=g&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],L=/Opera\//.test(n),$=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/PhantomJS/.test(n),N=$&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),k=N||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),z=N||/Mac/.test(i),D=/\bCrOS\b/.test(n),oe=/win/i.test(i),Q=L&&n.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(L=!1,g=!0);var W=z&&(v||L&&(Q==null||Q<12.11)),q=s||h&&p>=9;function U(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var A=function(r,o){var c=r.className,a=U(o).exec(c);if(a){var d=c.slice(a.index+a[0].length);r.className=c.slice(0,a.index)+(d?a[1]+d:"")}};function I(r){for(var o=r.childNodes.length;o>0;--o)r.removeChild(r.firstChild);return r}function P(r,o){return I(r).appendChild(o)}function S(r,o,c,a){var d=document.createElement(r);if(c&&(d.className=c),a&&(d.style.cssText=a),typeof o=="string")d.appendChild(document.createTextNode(o));else if(o)for(var m=0;m<o.length;++m)d.appendChild(o[m]);return d}function R(r,o,c,a){var d=S(r,o,c,a);return d.setAttribute("role","presentation"),d}var B;document.createRange?B=function(r,o,c,a){var d=document.createRange();return d.setEnd(a||r,c),d.setStart(r,o),d}:B=function(r,o,c){var a=document.body.createTextRange();try{a.moveToElementText(r.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",o),a};function ie(r,o){if(o.nodeType==3&&(o=o.parentNode),r.contains)return r.contains(o);do if(o.nodeType==11&&(o=o.host),o==r)return!0;while(o=o.parentNode)}function ue(r){var o=r.ownerDocument||r,c;try{c=r.activeElement}catch{c=o.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function we(r,o){var c=r.className;U(o).test(c)||(r.className+=(c?" ":"")+o)}function Pe(r,o){for(var c=r.split(" "),a=0;a<c.length;a++)c[a]&&!U(c[a]).test(o)&&(o+=" "+c[a]);return o}var qe=function(r){r.select()};N?qe=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:h&&(qe=function(r){try{r.select()}catch{}});function Ze(r){return r.display.wrapper.ownerDocument}function Ke(r){return Je(r.display.wrapper)}function Je(r){return r.getRootNode?r.getRootNode():r.ownerDocument}function re(r){return Ze(r).defaultView}function V(r){var o=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,o)}}function ee(r,o,c){o||(o={});for(var a in r)r.hasOwnProperty(a)&&(c!==!1||!o.hasOwnProperty(a))&&(o[a]=r[a]);return o}function J(r,o,c,a,d){o==null&&(o=r.search(/[^\s\u00a0]/),o==-1&&(o=r.length));for(var m=a||0,b=d||0;;){var x=r.indexOf(" ",m);if(x<0||x>=o)return b+(o-m);b+=x-m,b+=c-b%c,m=x+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};ae.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},ae.prototype.set=function(r,o){this.f=o;var c=+new Date+r;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=c)};function ge(r,o){for(var c=0;c<r.length;++c)if(r[c]==o)return c;return-1}var F=50,G={toString:function(){return"CodeMirror.Pass"}},Y={scroll:!1},fe={origin:"*mouse"},pe={origin:"+move"};function he(r,o,c){for(var a=0,d=0;;){var m=r.indexOf(" ",a);m==-1&&(m=r.length);var b=m-a;if(m==r.length||d+b>=o)return a+Math.min(b,o-d);if(d+=m-a,d+=c-d%c,a=m+1,d>=o)return a}}var Ce=[""];function Ee(r){for(;Ce.length<=r;)Ce.push(ve(Ce)+" ");return Ce[r]}function ve(r){return r[r.length-1]}function be(r,o){for(var c=[],a=0;a<r.length;a++)c[a]=o(r[a],a);return c}function He(r,o,c){for(var a=0,d=c(o);a<r.length&&c(r[a])<=d;)a++;r.splice(a,0,o)}function Me(){}function De(r,o){var c;return Object.create?c=Object.create(r):(Me.prototype=r,c=new Me),o&&ee(o,c),c}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Ve.test(r))}function st(r,o){return o?o.source.indexOf("\\w")>-1&&rt(r)?!0:o.test(r):rt(r)}function ut(r){for(var o in r)if(r.hasOwnProperty(o)&&r[o])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 lt(r){return r.charCodeAt(0)>=768&&$t.test(r)}function Xt(r,o,c){for(;(c<0?o>0:o<r.length)&&lt(r.charAt(o));)o+=c;return o}function Bt(r,o,c){for(var a=o>c?-1:1;;){if(o==c)return o;var d=(o+c)/2,m=a<0?Math.ceil(d):Math.floor(d);if(m==o)return r(m)?o:c;r(m)?c=m:o=m+a}}function Dn(r,o,c,a){if(!r)return a(o,c,"ltr",0);for(var d=!1,m=0;m<r.length;++m){var b=r[m];(b.from<c&&b.to>o||o==c&&b.to==o)&&(a(Math.max(b.from,o),Math.min(b.to,c),b.level==1?"rtl":"ltr",m),d=!0)}d||a(o,c,"ltr")}var Hr=null;function Ft(r,o,c){var a;Hr=null;for(var d=0;d<r.length;++d){var m=r[d];if(m.from<o&&m.to>o)return d;m.to==o&&(m.from!=m.to&&c=="before"?a=d:Hr=d),m.from==o&&(m.from!=m.to&&c!="before"?a=d:Hr=d)}return a??Hr}var Fn=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",o="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(T){return T<=247?r.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?o.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function _(T,H,K){this.level=T,this.from=H,this.to=K}return function(T,H){var K=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!a.test(T))return!1;for(var ne=T.length,Z=[],ce=0;ce<ne;++ce)Z.push(c(T.charCodeAt(ce)));for(var me=0,Se=K;me<ne;++me){var ke=Z[me];ke=="m"?Z[me]=Se:Se=ke}for(var $e=0,Te=K;$e<ne;++$e){var Ne=Z[$e];Ne=="1"&&Te=="r"?Z[$e]="n":m.test(Ne)&&(Te=Ne,Ne=="r"&&(Z[$e]="R"))}for(var We=1,ze=Z[0];We<ne-1;++We){var Qe=Z[We];Qe=="+"&&ze=="1"&&Z[We+1]=="1"?Z[We]="1":Qe==","&&ze==Z[We+1]&&(ze=="1"||ze=="n")&&(Z[We]=ze),ze=Qe}for(var xt=0;xt<ne;++xt){var Qt=Z[xt];if(Qt==",")Z[xt]="N";else if(Qt=="%"){var Mt=void 0;for(Mt=xt+1;Mt<ne&&Z[Mt]=="%";++Mt);for(var Wn=xt&&Z[xt-1]=="!"||Mt<ne&&Z[Mt]=="1"?"1":"N",Cn=xt;Cn<Mt;++Cn)Z[Cn]=Wn;xt=Mt-1}}for(var Wt=0,En=K;Wt<ne;++Wt){var sn=Z[Wt];En=="L"&&sn=="1"?Z[Wt]="L":m.test(sn)&&(En=sn)}for(var Vt=0;Vt<ne;++Vt)if(d.test(Z[Vt])){var jt=void 0;for(jt=Vt+1;jt<ne&&d.test(Z[jt]);++jt);for(var zt=(Vt?Z[Vt-1]:K)=="L",An=(jt<ne?Z[jt]:K)=="L",Ss=zt==An?zt?"L":"R":K,Wi=Vt;Wi<jt;++Wi)Z[Wi]=Ss;Vt=jt-1}for(var dn=[],Ur,en=0;en<ne;)if(b.test(Z[en])){var dd=en;for(++en;en<ne&&b.test(Z[en]);++en);dn.push(new _(0,dd,en))}else{var di=en,$o=dn.length,Mo=H=="rtl"?1:0;for(++en;en<ne&&Z[en]!="L";++en);for(var mn=di;mn<en;)if(x.test(Z[mn])){di<mn&&(dn.splice($o,0,new _(1,di,mn)),$o+=Mo);var _s=mn;for(++mn;mn<en&&x.test(Z[mn]);++mn);dn.splice($o,0,new _(2,_s,mn)),$o+=Mo,di=mn}else++mn;di<en&&dn.splice($o,0,new _(1,di,en))}return H=="ltr"&&(dn[0].level==1&&(Ur=T.match(/^\s+/))&&(dn[0].from=Ur[0].length,dn.unshift(new _(0,0,Ur[0].length))),ve(dn).level==1&&(Ur=T.match(/\s+$/))&&(ve(dn).to-=Ur[0].length,dn.push(new _(0,ne-Ur[0].length,ne)))),H=="rtl"?dn.reverse():dn}}();function tt(r,o){var c=r.order;return c==null&&(c=r.order=Fn(r.text,o)),c}var Za=[],Be=function(r,o,c){if(r.addEventListener)r.addEventListener(o,c,!1);else if(r.attachEvent)r.attachEvent("on"+o,c);else{var a=r._handlers||(r._handlers={});a[o]=(a[o]||Za).concat(c)}};function oi(r,o){return r._handlers&&r._handlers[o]||Za}function cn(r,o,c){if(r.removeEventListener)r.removeEventListener(o,c,!1);else if(r.detachEvent)r.detachEvent("on"+o,c);else{var a=r._handlers,d=a&&a[o];if(d){var m=ge(d,c);m>-1&&(a[o]=d.slice(0,m).concat(d.slice(m+1)))}}}function Pt(r,o){var c=oi(r,o);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<c.length;++d)c[d].apply(null,a)}function Ot(r,o,c){return typeof o=="string"&&(o={type:o,preventDefault:function(){this.defaultPrevented=!0}}),Pt(r,c||o.type,r,o),Sn(o)||o.codemirrorIgnore}function sr(r){var o=r._handlers&&r._handlers.cursorActivity;if(o)for(var c=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),a=0;a<o.length;++a)ge(c,o[a])==-1&&c.push(o[a])}function Hn(r,o){return oi(r,o).length>0}function mr(r){r.prototype.on=function(o,c){Be(this,o,c)},r.prototype.off=function(o,c){cn(this,o,c)}}function un(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Yo(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function Sn(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function $i(r){un(r),Yo(r)}function al(r){return r.target||r.srcElement}function vr(r){var o=r.which;return o==null&&(r.button&1?o=1:r.button&2?o=3:r.button&4&&(o=2)),z&&r.ctrlKey&&o==1&&(o=3),o}var bf=function(){if(h&&p<9)return!1;var r=S("div");return"draggable"in r||"dragDrop"in r}(),Zo;function Qa(r){if(Zo==null){var o=S("span","​");P(r,S("span",[o,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Zo=o.offsetWidth<=1&&o.offsetHeight>2&&!(h&&p<8))}var c=Zo?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var cl;function Mi(r){if(cl!=null)return cl;var o=P(r,document.createTextNode("AخA")),c=B(o,0,1).getBoundingClientRect(),a=B(o,1,2).getBoundingClientRect();return I(r),!c||c.left==c.right?!1:cl=a.right-c.right<3}var lr=`
17
+ **/let dh;const gv=typeof window<"u"&&window.trustedTypes;if(gv)try{dh=gv.createPolicy("vue",{createHTML:e=>e})}catch{}const vw=dh?e=>dh.createHTML(e):e=>e,_C="http://www.w3.org/2000/svg",kC="http://www.w3.org/1998/Math/MathML",yi=typeof document<"u"?document:null,mv=yi&&yi.createElement("template"),TC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t==="svg"?yi.createElementNS(_C,e):t==="mathml"?yi.createElementNS(kC,e):n?yi.createElement(e,{is:n}):yi.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>yi.createTextNode(e),createComment:e=>yi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,l){const u=n?n.previousSibling:t.lastChild;if(s&&(s===l||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===l||!(s=s.nextSibling)););else{mv.innerHTML=vw(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const f=mv.content;if(i==="svg"||i==="mathml"){const h=f.firstChild;for(;h.firstChild;)f.appendChild(h.firstChild);f.removeChild(h)}t.insertBefore(f,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ui="transition",Bl="animation",ba=Symbol("_vtc"),yw={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},CC=rn({},Ob,yw),EC=e=>(e.displayName="Transition",e.props=CC,e),AC=EC((e,{slots:t})=>ja(vT,LC(e),t)),Ro=(e,t=[])=>{Fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},vv=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function LC(e){const t={};for(const A in e)A in yw||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:i,duration:s,enterFromClass:l=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:f=`${n}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:g=f,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,L=$C(s),$=L&&L[0],C=L&&L[1],{onBeforeEnter:E,onEnter:N,onEnterCancelled:O,onLeave:k,onLeaveCancelled:z,onBeforeAppear:D=E,onAppear:oe=N,onAppearCancelled:Q=O}=t,W=(A,I,P,S)=>{A._enterCancelled=S,zo(A,I?g:f),zo(A,I?p:u),P&&P()},q=(A,I)=>{A._isLeaving=!1,zo(A,v),zo(A,w),zo(A,y),I&&I()},U=A=>(I,P)=>{const S=A?oe:N,R=()=>W(I,A,P);Ro(S,[I,R]),yv(()=>{zo(I,A?h:l),pi(I,A?g:f),vv(S)||bv(I,i,$,R)})};return rn(t,{onBeforeEnter(A){Ro(E,[A]),pi(A,l),pi(A,u)},onBeforeAppear(A){Ro(D,[A]),pi(A,h),pi(A,p)},onEnter:U(!1),onAppear:U(!0),onLeave(A,I){A._isLeaving=!0;const P=()=>q(A,I);pi(A,v),A._enterCancelled?(pi(A,y),Sv()):(Sv(),pi(A,y)),yv(()=>{A._isLeaving&&(zo(A,v),pi(A,w),vv(k)||bv(A,i,C,P))}),Ro(k,[A,P])},onEnterCancelled(A){W(A,!1,void 0,!0),Ro(O,[A])},onAppearCancelled(A){W(A,!0,void 0,!0),Ro(Q,[A])},onLeaveCancelled(A){q(A),Ro(z,[A])}})}function $C(e){if(e==null)return null;if(_t(e))return[Sd(e.enter),Sd(e.leave)];{const t=Sd(e);return[t,t]}}function Sd(e){return rb(e)}function pi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ba]||(e[ba]=new Set)).add(t)}function zo(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[ba];n&&(n.delete(t),n.size||(e[ba]=void 0))}function yv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let MC=0;function bv(e,t,n,i){const s=e._endId=++MC,l=()=>{s===e._endId&&i()};if(n!=null)return setTimeout(l,n);const{type:u,timeout:f,propCount:h}=NC(e,t);if(!u)return i();const p=u+"end";let g=0;const v=()=>{e.removeEventListener(p,y),l()},y=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},f+1),e.addEventListener(p,y)}function NC(e,t){const n=window.getComputedStyle(e),i=L=>(n[L]||"").split(", "),s=i(`${Ui}Delay`),l=i(`${Ui}Duration`),u=wv(s,l),f=i(`${Bl}Delay`),h=i(`${Bl}Duration`),p=wv(f,h);let g=null,v=0,y=0;t===Ui?u>0&&(g=Ui,v=u,y=l.length):t===Bl?p>0&&(g=Bl,v=p,y=h.length):(v=Math.max(u,p),g=v>0?u>p?Ui:Bl:null,y=g?g===Ui?l.length:h.length:0);const w=g===Ui&&/\b(transform|all)(,|$)/.test(i(`${Ui}Property`).toString());return{type:g,timeout:v,propCount:y,hasTransform:w}}function wv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>xv(n)+xv(e[i])))}function xv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sv(){return document.body.offsetHeight}function IC(e,t,n){const i=e[ba];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bu=Symbol("_vod"),bw=Symbol("_vsh"),no={beforeMount(e,{value:t},{transition:n}){e[bu]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Wl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Wl(e,!0),i.enter(e)):i.leave(e,()=>{Wl(e,!1)}):Wl(e,t))},beforeUnmount(e,{value:t}){Wl(e,t)}};function Wl(e,t){e.style.display=t?e[bu]:"none",e[bw]=!t}const PC=Symbol(""),OC=/(^|;)\s*display\s*:/;function RC(e,t,n){const i=e.style,s=Dt(n);let l=!1;if(n&&!s){if(t)if(Dt(t))for(const u of t.split(";")){const f=u.slice(0,u.indexOf(":")).trim();n[f]==null&&Zc(i,f,"")}else for(const u in t)n[u]==null&&Zc(i,u,"");for(const u in n)u==="display"&&(l=!0),Zc(i,u,n[u])}else if(s){if(t!==n){const u=i[PC];u&&(n+=";"+u),i.cssText=n,l=OC.test(n)}}else t&&e.removeAttribute("style");bu in e&&(e[bu]=l?i.display:"",e[bw]&&(i.display="none"))}const _v=/\s*!important$/;function Zc(e,t,n){if(Fe(n))n.forEach(i=>Zc(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=zC(e,t);_v.test(n)?e.setProperty(Ai(i),n.replace(_v,""),"important"):e[i]=n}}const kv=["Webkit","Moz","ms"],_d={};function zC(e,t){const n=_d[t];if(n)return n;let i=ir(t);if(i!=="filter"&&i in e)return _d[t]=i;i=qu(i);for(let s=0;s<kv.length;s++){const l=kv[s]+i;if(l in e)return _d[t]=l}return t}const Tv="http://www.w3.org/1999/xlink";function Cv(e,t,n,i,s,l=Ik(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Tv,t.slice(6,t.length)):e.setAttributeNS(Tv,t,n):n==null||l&&!ib(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Nr(n)?String(n):n)}function Ev(e,t,n,i,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vw(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const f=l==="OPTION"?e.getAttribute("value")||"":e.value,h=n==null?e.type==="checkbox"?"on":"":String(n);(f!==h||!("_value"in e))&&(e.value=h),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=ib(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(s||t)}function Wo(e,t,n,i){e.addEventListener(t,n,i)}function DC(e,t,n,i){e.removeEventListener(t,n,i)}const Av=Symbol("_vei");function FC(e,t,n,i,s=null){const l=e[Av]||(e[Av]={}),u=l[t];if(i&&u)u.value=i;else{const[f,h]=HC(t);if(i){const p=l[t]=jC(i,s);Wo(e,f,p,h)}else u&&(DC(e,f,u,h),l[t]=void 0)}}const Lv=/(?:Once|Passive|Capture)$/;function HC(e){let t;if(Lv.test(e)){t={};let i;for(;i=e.match(Lv);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ai(e.slice(2)),t]}let kd=0;const BC=Promise.resolve(),WC=()=>kd||(BC.then(()=>kd=0),kd=Date.now());function jC(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ir(qC(i,n.value),t,5,[i])};return n.value=e,n.attached=WC(),n}function qC(e,t){if(Fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const $v=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,UC=(e,t,n,i,s,l)=>{const u=s==="svg";t==="class"?IC(e,i,u):t==="style"?RC(e,n,i):Bu(t)?Zh(t)||FC(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):VC(e,t,i,u))?(Ev(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cv(e,t,i,u,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(i))?Ev(e,ir(t),i,l,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Cv(e,t,i,u))};function VC(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&$v(t)&&Ge(n));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 $v(t)&&Dt(n)?!1:t in e}const wu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?n=>Jc(t,n):t};function GC(e){e.target.composing=!0}function Mv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Bs=Symbol("_assign"),XC={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Bs]=wu(s);const l=i||s.props&&s.props.type==="number";Wo(e,t?"change":"input",u=>{if(u.target.composing)return;let f=e.value;n&&(f=f.trim()),l&&(f=Zd(f)),e[Bs](f)}),n&&Wo(e,"change",()=>{e.value=e.value.trim()}),t||(Wo(e,"compositionstart",GC),Wo(e,"compositionend",Mv),Wo(e,"change",Mv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:s,number:l}},u){if(e[Bs]=wu(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?Zd(e.value):e.value,h=t??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||s&&e.value.trim()===h)||(e.value=h))}},ww={deep:!0,created(e,t,n){e[Bs]=wu(n),Wo(e,"change",()=>{const i=e._modelValue,s=KC(e),l=e.checked,u=e[Bs];if(Fe(i)){const f=ob(i,s),h=f!==-1;if(l&&!h)u(i.concat(s));else if(!l&&h){const p=[...i];p.splice(f,1),u(p)}}else if(Wu(i)){const f=new Set(i);l?f.add(s):f.delete(s),u(f)}else u(xw(e,l))})},mounted:Nv,beforeUpdate(e,t,n){e[Bs]=wu(n),Nv(e,t,n)}};function Nv(e,{value:t,oldValue:n},i){e._modelValue=t;let s;if(Fe(t))s=ob(t,i.props.value)>-1;else if(Wu(t))s=t.has(i.props.value);else{if(t===n)return;s=Vu(t,xw(e,!0))}e.checked!==s&&(e.checked=s)}function KC(e){return"_value"in e?e._value:e.value}function xw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const JC=["ctrl","shift","alt","meta"],YC={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)=>JC.some(n=>e[`${n}Key`]&&!t.includes(n))},Qc=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(s,...l)=>{for(let u=0;u<t.length;u++){const f=YC[t[u]];if(f&&f(s,t))return}return e(s,...l)})},ZC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hh=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=s=>{if(!("key"in s))return;const l=Ai(s.key);if(t.some(u=>u===l||ZC[u]===l))return e(s)})},QC=rn({patchProp:UC},TC);let Iv;function eE(){return Iv||(Iv=GT(QC))}const Sw=(...e)=>{const t=eE().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=nE(i);if(!s)return;const l=t._component;!Ge(l)&&!l.render&&!l.template&&(l.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=n(s,!1,tE(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t};function tE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nE(e){return Dt(e)?document.querySelector(e):e}const ni=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},rE={};function iE(e,t){const n=Ko("RouterView");return se(),Ye(n)}const oE=ni(rE,[["render",iE]]),sE=["top","right","bottom","left"],Pv=["start","end"],Ov=sE.reduce((e,t)=>e.concat(t,t+"-"+Pv[0],t+"-"+Pv[1]),[]),wa=Math.min,Ho=Math.max,lE={left:"right",right:"left",bottom:"top",top:"bottom"},aE={start:"end",end:"start"};function ph(e,t,n){return Ho(e,wa(t,n))}function Yo(e,t){return typeof e=="function"?e(t):e}function ti(e){return e.split("-")[0]}function Mr(e){return e.split("-")[1]}function _w(e){return e==="x"?"y":"x"}function yp(e){return e==="y"?"height":"width"}function qa(e){return["top","bottom"].includes(ti(e))?"y":"x"}function bp(e){return _w(qa(e))}function kw(e,t,n){n===void 0&&(n=!1);const i=Mr(e),s=bp(e),l=yp(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Su(u)),[u,Su(u)]}function cE(e){const t=Su(e);return[xu(e),t,xu(t)]}function xu(e){return e.replace(/start|end/g,t=>aE[t])}function uE(e,t,n){const i=["left","right"],s=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:i:t?i:s;case"left":case"right":return t?l:u;default:return[]}}function fE(e,t,n,i){const s=Mr(e);let l=uE(ti(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(xu)))),l}function Su(e){return e.replace(/left|right|bottom|top/g,t=>lE[t])}function dE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tw(e){return typeof e!="number"?dE(e):{top:e,right:e,bottom:e,left:e}}function ia(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Rv(e,t,n){let{reference:i,floating:s}=e;const l=qa(t),u=bp(t),f=yp(u),h=ti(t),p=l==="y",g=i.x+i.width/2-s.width/2,v=i.y+i.height/2-s.height/2,y=i[f]/2-s[f]/2;let w;switch(h){case"top":w={x:g,y:i.y-s.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:v};break;case"left":w={x:i.x-s.width,y:v};break;default:w={x:i.x,y:i.y}}switch(Mr(t)){case"start":w[u]-=y*(n&&p?-1:1);break;case"end":w[u]+=y*(n&&p?-1:1);break}return w}const hE=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Rv(p,i,h),y=i,w={},L=0;for(let $=0;$<f.length;$++){const{name:C,fn:E}=f[$],{x:N,y:O,data:k,reset:z}=await E({x:g,y:v,initialPlacement:i,placement:y,strategy:s,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});g=N??g,v=O??v,w={...w,[C]:{...w[C],...k}},z&&L<=50&&(L++,typeof z=="object"&&(z.placement&&(y=z.placement),z.rects&&(p=z.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:g,y:v}=Rv(p,y,h)),$=-1)}return{x:g,y:v,placement:y,strategy:s,middlewareData:w}};async function of(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:y=!1,padding:w=0}=Yo(t,e),L=Tw(w),C=f[y?v==="floating"?"reference":"floating":v],E=ia(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(C)))==null||n?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:h})),N=v==="floating"?{...u.floating,x:i,y:s}:u.reference,O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),k=await(l.isElement==null?void 0:l.isElement(O))?await(l.getScale==null?void 0:l.getScale(O))||{x:1,y:1}:{x:1,y:1},z=ia(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:O,strategy:h}):N);return{top:(E.top-z.top+L.top)/k.y,bottom:(z.bottom-E.bottom+L.bottom)/k.y,left:(E.left-z.left+L.left)/k.x,right:(z.right-E.right+L.right)/k.x}}const pE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:p,padding:g=0}=Yo(e,t)||{};if(p==null)return{};const v=Tw(g),y={x:n,y:i},w=bp(s),L=yp(w),$=await u.getDimensions(p),C=w==="y",E=C?"top":"left",N=C?"bottom":"right",O=C?"clientHeight":"clientWidth",k=l.reference[L]+l.reference[w]-y[w]-l.floating[L],z=y[w]-l.reference[w],D=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let oe=D?D[O]:0;(!oe||!await(u.isElement==null?void 0:u.isElement(D)))&&(oe=f.floating[O]||l.floating[L]);const Q=k/2-z/2,W=oe/2-$[L]/2-1,q=wa(v[E],W),U=wa(v[N],W),A=q,I=oe-$[L]-U,P=oe/2-$[L]/2+Q,S=ph(A,P,I),R=!h.arrow&&Mr(s)!=null&&P!==S&&l.reference[L]/2-(P<A?q:U)-$[L]/2<0,B=R?P<A?P-A:P-I:0;return{[w]:y[w]+B,data:{[w]:S,centerOffset:P-S-B,...R&&{alignmentOffset:B}},reset:R}}});function gE(e,t,n){return(e?[...n.filter(s=>Mr(s)===e),...n.filter(s=>Mr(s)!==e)]:n.filter(s=>ti(s)===s)).filter(s=>e?Mr(s)===e||(t?xu(s)!==s:!1):!0)}const mE=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,s;const{rects:l,middlewareData:u,placement:f,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:y=Ov,autoAlignment:w=!0,...L}=Yo(e,t),$=v!==void 0||y===Ov?gE(v||null,w,y):y,C=await of(t,L),E=((n=u.autoPlacement)==null?void 0:n.index)||0,N=$[E];if(N==null)return{};const O=kw(N,l,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(f!==N)return{reset:{placement:$[0]}};const k=[C[ti(N)],C[O[0]],C[O[1]]],z=[...((i=u.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:k}],D=$[E+1];if(D)return{data:{index:E+1,overflows:z},reset:{placement:D}};const oe=z.map(q=>{const U=Mr(q.placement);return[q.placement,U&&g?q.overflows.slice(0,2).reduce((A,I)=>A+I,0):q.overflows[0],q.overflows]}).sort((q,U)=>q[1]-U[1]),W=((s=oe.filter(q=>q[2].slice(0,Mr(q[0])?2:3).every(U=>U<=0))[0])==null?void 0:s[0])||oe[0][0];return W!==f?{data:{index:E+1,overflows:z},reset:{placement:W}}:{}}}},vE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:$=!0,...C}=Yo(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=ti(s),N=ti(f)===f,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),k=y||(N||!$?[Su(f)]:cE(f));!y&&L!=="none"&&k.push(...fE(f,$,L,O));const z=[f,...k],D=await of(t,C),oe=[];let Q=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&oe.push(D[E]),v){const A=kw(s,u,O);oe.push(D[A[0]],D[A[1]])}if(Q=[...Q,{placement:s,overflows:oe}],!oe.every(A=>A<=0)){var W,q;const A=(((W=l.flip)==null?void 0:W.index)||0)+1,I=z[A];if(I)return{data:{index:A,overflows:Q},reset:{placement:I}};let P=(q=Q.filter(S=>S.overflows[0]<=0).sort((S,R)=>S.overflows[1]-R.overflows[1])[0])==null?void 0:q.placement;if(!P)switch(w){case"bestFit":{var U;const S=(U=Q.map(R=>[R.placement,R.overflows.filter(B=>B>0).reduce((B,ie)=>B+ie,0)]).sort((R,B)=>R[1]-B[1])[0])==null?void 0:U[0];S&&(P=S);break}case"initialPlacement":P=f;break}if(s!==P)return{reset:{placement:P}}}return{}}}};async function yE(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=ti(n),f=Mr(n),h=qa(n)==="y",p=["left","top"].includes(u)?-1:1,g=l&&h?-1:1,v=Yo(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:L}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return f&&typeof L=="number"&&(w=f==="end"?L*-1:L),h?{x:w*g,y:y*p}:{x:y*p,y:w*g}}const bE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:u,middlewareData:f}=t,h=await yE(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:l+h.y,data:{...h,placement:u}}}}},wE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:C=>{let{x:E,y:N}=C;return{x:E,y:N}}},...h}=Yo(e,t),p={x:n,y:i},g=await of(t,h),v=qa(ti(s)),y=_w(v);let w=p[y],L=p[v];if(l){const C=y==="y"?"top":"left",E=y==="y"?"bottom":"right",N=w+g[C],O=w-g[E];w=ph(N,w,O)}if(u){const C=v==="y"?"top":"left",E=v==="y"?"bottom":"right",N=L+g[C],O=L-g[E];L=ph(N,L,O)}const $=f.fn({...t,[y]:w,[v]:L});return{...$,data:{x:$.x-n,y:$.y-i}}}}},xE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:l}=t,{apply:u=()=>{},...f}=Yo(e,t),h=await of(t,f),p=ti(n),g=Mr(n),v=qa(n)==="y",{width:y,height:w}=i.floating;let L,$;p==="top"||p==="bottom"?(L=p,$=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):($=p,L=g==="end"?"top":"bottom");const C=w-h[L],E=y-h[$],N=!t.middlewareData.shift;let O=C,k=E;if(v){const D=y-h.left-h.right;k=g||N?wa(E,D):D}else{const D=w-h.top-h.bottom;O=g||N?wa(C,D):D}if(N&&!g){const D=Ho(h.left,0),oe=Ho(h.right,0),Q=Ho(h.top,0),W=Ho(h.bottom,0);v?k=y-2*(D!==0||oe!==0?D+oe:Ho(h.left,h.right)):O=w-2*(Q!==0||W!==0?Q+W:Ho(h.top,h.bottom))}await u({...t,availableWidth:k,availableHeight:O});const z=await s.getDimensions(l.floating);return y!==z.width||w!==z.height?{reset:{rects:!0}}:{}}}};function fr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zr(e){return fr(e).getComputedStyle(e)}const zv=Math.min,oa=Math.max,_u=Math.round;function Cw(e){const t=Zr(e);let n=parseFloat(t.width),i=parseFloat(t.height);const s=e.offsetWidth,l=e.offsetHeight,u=_u(n)!==s||_u(i)!==l;return u&&(n=s,i=l),{width:n,height:i,fallback:u}}function po(e){return Aw(e)?(e.nodeName||"").toLowerCase():""}let Oc;function Ew(){if(Oc)return Oc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Oc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Oc):navigator.userAgent}function Qr(e){return e instanceof fr(e).HTMLElement}function oo(e){return e instanceof fr(e).Element}function Aw(e){return e instanceof fr(e).Node}function Dv(e){return typeof ShadowRoot>"u"?!1:e instanceof fr(e).ShadowRoot||e instanceof ShadowRoot}function sf(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(s)}function SE(e){return["table","td","th"].includes(po(e))}function gh(e){const t=/firefox/i.test(Ew()),n=Zr(e),i=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!i&&i!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(s=>n.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const l=n.contain;return l!=null&&l.includes(s)})}function Lw(){return!/^((?!chrome|android).)*safari/i.test(Ew())}function wp(e){return["html","body","#document"].includes(po(e))}function $w(e){return oo(e)?e:e.contextElement}const Mw={x:1,y:1};function Ws(e){const t=$w(e);if(!Qr(t))return Mw;const n=t.getBoundingClientRect(),{width:i,height:s,fallback:l}=Cw(t);let u=(l?_u(n.width):n.width)/i,f=(l?_u(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}function xa(e,t,n,i){var s,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),f=$w(e);let h=Mw;t&&(i?oo(i)&&(h=Ws(i)):h=Ws(e));const p=f?fr(f):window,g=!Lw()&&n;let v=(u.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,y=(u.top+(g&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/h.y,w=u.width/h.x,L=u.height/h.y;if(f){const $=fr(f),C=i&&oo(i)?fr(i):i;let E=$.frameElement;for(;E&&i&&C!==$;){const N=Ws(E),O=E.getBoundingClientRect(),k=getComputedStyle(E);O.x+=(E.clientLeft+parseFloat(k.paddingLeft))*N.x,O.y+=(E.clientTop+parseFloat(k.paddingTop))*N.y,v*=N.x,y*=N.y,w*=N.x,L*=N.y,v+=O.x,y+=O.y,E=fr(E).frameElement}}return{width:w,height:L,top:y,right:v+w,bottom:y+L,left:v,x:v,y}}function so(e){return((Aw(e)?e.ownerDocument:e.document)||window.document).documentElement}function lf(e){return oo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nw(e){return xa(so(e)).left+lf(e).scrollLeft}function Sa(e){if(po(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dv(e)&&e.host||so(e);return Dv(t)?t.host:t}function Iw(e){const t=Sa(e);return wp(t)?t.ownerDocument.body:Qr(t)&&sf(t)?t:Iw(t)}function ku(e,t){var n;t===void 0&&(t=[]);const i=Iw(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=fr(i);return s?t.concat(l,l.visualViewport||[],sf(i)?i:[]):t.concat(i,ku(i))}function Fv(e,t,n){return t==="viewport"?ia(function(i,s){const l=fr(i),u=so(i),f=l.visualViewport;let h=u.clientWidth,p=u.clientHeight,g=0,v=0;if(f){h=f.width,p=f.height;const y=Lw();(y||!y&&s==="fixed")&&(g=f.offsetLeft,v=f.offsetTop)}return{width:h,height:p,x:g,y:v}}(e,n)):oo(t)?ia(function(i,s){const l=xa(i,!0,s==="fixed"),u=l.top+i.clientTop,f=l.left+i.clientLeft,h=Qr(i)?Ws(i):{x:1,y:1};return{width:i.clientWidth*h.x,height:i.clientHeight*h.y,x:f*h.x,y:u*h.y}}(t,n)):ia(function(i){const s=so(i),l=lf(i),u=i.ownerDocument.body,f=oa(s.scrollWidth,s.clientWidth,u.scrollWidth,u.clientWidth),h=oa(s.scrollHeight,s.clientHeight,u.scrollHeight,u.clientHeight);let p=-l.scrollLeft+Nw(i);const g=-l.scrollTop;return Zr(u).direction==="rtl"&&(p+=oa(s.clientWidth,u.clientWidth)-f),{width:f,height:h,x:p,y:g}}(so(e)))}function Hv(e){return Qr(e)&&Zr(e).position!=="fixed"?e.offsetParent:null}function Bv(e){const t=fr(e);let n=Hv(e);for(;n&&SE(n)&&Zr(n).position==="static";)n=Hv(n);return n&&(po(n)==="html"||po(n)==="body"&&Zr(n).position==="static"&&!gh(n))?t:n||function(i){let s=Sa(i);for(;Qr(s)&&!wp(s);){if(gh(s))return s;s=Sa(s)}return null}(e)||t}function _E(e,t,n){const i=Qr(t),s=so(t),l=xa(e,!0,n==="fixed",t);let u={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(i||!i&&n!=="fixed")if((po(t)!=="body"||sf(s))&&(u=lf(t)),Qr(t)){const h=xa(t,!0);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else s&&(f.x=Nw(s));return{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}const kE={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const l=n==="clippingAncestors"?function(p,g){const v=g.get(p);if(v)return v;let y=ku(p).filter(C=>oo(C)&&po(C)!=="body"),w=null;const L=Zr(p).position==="fixed";let $=L?Sa(p):p;for(;oo($)&&!wp($);){const C=Zr($),E=gh($);(L?E||w:E||C.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=C:y=y.filter(N=>N!==$),$=Sa($)}return g.set(p,y),y}(t,this._c):[].concat(n),u=[...l,i],f=u[0],h=u.reduce((p,g)=>{const v=Fv(t,g,s);return p.top=oa(v.top,p.top),p.right=zv(v.right,p.right),p.bottom=zv(v.bottom,p.bottom),p.left=oa(v.left,p.left),p},Fv(t,f,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:n,strategy:i}=e;const s=Qr(n),l=so(n);if(n===l)return t;let u={scrollLeft:0,scrollTop:0},f={x:1,y:1};const h={x:0,y:0};if((s||!s&&i!=="fixed")&&((po(n)!=="body"||sf(l))&&(u=lf(n)),Qr(n))){const p=xa(n);f=Ws(n),h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x,y:t.y*f.y-u.scrollTop*f.y+h.y}},isElement:oo,getDimensions:function(e){return Qr(e)?Cw(e):e.getBoundingClientRect()},getOffsetParent:Bv,getDocumentElement:so,getScale:Ws,async getElementRects(e){let{reference:t,floating:n,strategy:i}=e;const s=this.getOffsetParent||Bv,l=this.getDimensions;return{reference:_E(t,await s(n),i),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Zr(e).direction==="rtl"},TE=(e,t,n)=>{const i=new Map,s={platform:kE,...n},l={...s.platform,_c:i};return hE(e,t,{...s,platform:l})},lo={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 _a(e,t){let n=lo.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=lo.themes[n.$extend]||{}:(n=null,i=lo[t]):n=null;while(n);return i}function CE(e){const t=[e];let n=lo.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=lo.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}function Wv(e){const t=[e];let n=lo.themes[e]||{};do n.$extend?(t.push(n.$extend),n=lo.themes[n.$extend]||{}):n=null;while(n);return t}let ka=!1;if(typeof window<"u"){ka=!1;try{const e=Object.defineProperty({},"passive",{get(){ka=!0}});window.addEventListener("test",null,e)}catch{}}let Pw=!1;typeof window<"u"&&typeof navigator<"u"&&(Pw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ow=["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 Uv(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Td(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const tr=[];let Do=null;const Vv={};function Gv(e){let t=Vv[e];return t||(t=Vv[e]=[]),t}let mh=function(){};typeof window<"u"&&(mh=window.Element);function ft(e){return function(t){return _a(t.theme,e)}}const Cd="__floating-vue__popper",Rw=()=>at({name:"VPopper",provide(){return{[Cd]:{parentPopper:this}}},inject:{[Cd]:{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:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Ow.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,mh,Boolean],default:ft("container")},boundary:{type:[String,mh],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("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[Cd])==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:n=!1}={}){var i,s;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!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 n;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}((n=this.parentPopper)==null?void 0:n.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(bE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(mE({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(wE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(vE({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(pE({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:s,middlewareData:l})=>{let u;const{centerOffset:f}=l.arrow;return i.startsWith("top")||i.startsWith("bottom")?u=Math.abs(f)>s.reference.width/2:u=Math.abs(f)>s.reference.height/2,{data:{overflow:u}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:l,middlewareData:u})=>{var f;if((f=u.autoSize)!=null&&f.skip)return{};let h,p;return l.startsWith("top")||l.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="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(xE({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:s})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const n=await TE(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Do&&this.instantMove&&Do.instantMove&&Do!==this.parentPopper){Do.$_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&&(Do=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 Td(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ku(this.$_referenceNode),...ku(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(i.left+n.offsetLeft),l=t.y+t.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${s}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<tr.length;n++)t=tr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}tr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Wv(this.theme))Gv(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 Td(),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,Uv(tr,this),tr.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Wv(this.theme)){const i=Gv(n);Uv(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Do===this&&(Do=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 Td(),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=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,jv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],jv,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,qv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],qv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(i=>i.addEventListener(t,n,ka?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,i,s){let l=n;i!=null&&(l=typeof i=="function"?i(l):i),l.forEach(u=>{const f=t[u];f&&this.$_registerEventListeners(e,f,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:s,handler:l}=n;!e||e===s?i.forEach(u=>u.removeEventListener(s,l)):t.push(n)}),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 n of this.$_targetNodes){const i=n.getAttribute(e);i&&(n.removeAttribute(e),n.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const i=e[n];i==null?t.removeAttribute(n):t.setAttribute(n,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(sa>=e.left&&sa<=e.right&&la>=e.top&&la<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=sa-Xi,i=la-Ki,s=t.left+t.width/2-Xi+(t.top+t.height/2)-Ki+t.width+t.height,l=Xi+n*s,u=Ki+i*s;return Rc(Xi,Ki,l,u,t.left,t.top,t.left,t.bottom)||Rc(Xi,Ki,l,u,t.left,t.top,t.right,t.top)||Rc(Xi,Ki,l,u,t.right,t.top,t.right,t.bottom)||Rc(Xi,Ki,l,u,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(Pw){const e=ka?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Xv(t),e),document.addEventListener("touchend",t=>Kv(t,!0),e)}else window.addEventListener("mousedown",e=>Xv(e),!0),window.addEventListener("click",e=>Kv(e,!1),!0);window.addEventListener("resize",LE)}function Xv(e,t){for(let n=0;n<tr.length;n++){const i=tr[n];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function Kv(e,t){EE(e,t)}function EE(e,t){const n={};for(let i=tr.length-1;i>=0;i--){const s=tr[i];try{const l=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Jv(s,l,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let f=s.parentPopper;for(;f;)n[f.randomId]=!0,f=f.parentPopper;return}let u=s.parentPopper;for(;u&&Jv(u,u.containsGlobalTarget,e);)u.$_handleGlobalClose(e,t),u=u.parentPopper}})}catch{}}}function Jv(e,t,n){return n.closeAllPopover||n.closePopover&&t||AE(e,n)&&!t}function AE(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function LE(){for(let e=0;e<tr.length;e++)tr[e].$_computePosition()}function Yv(){for(let e=0;e<tr.length;e++)tr[e].hide()}let Xi=0,Ki=0,sa=0,la=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Xi=sa,Ki=la,sa=e.clientX,la=e.clientY},ka?{passive:!0}:void 0);function Rc(e,t,n,i,s,l,u,f){const h=((u-s)*(t-l)-(f-l)*(e-s))/((f-l)*(n-e)-(u-s)*(i-t)),p=((n-e)*(t-l)-(i-t)*(e-s))/((f-l)*(n-e)-(u-s)*(i-t));return h>=0&&h<=1&&p>=0&&p<=1}const $E={extends:Rw()},af=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n};function ME(e,t,n,i,s,l){return se(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[xn(e.$slots,"default",Mk(hw(e.slotData)))],2)}const NE=af($E,[["render",ME]]);function IE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let eu;function vh(){vh.init||(vh.init=!0,eu=IE()!==-1)}var cf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){vh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",eu&&this.$el.appendChild(e),e.data="about:blank",eu||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&&(!eu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const PE=Ib();Mb("data-v-b329ee4c");const OE={class:"resize-observer",tabindex:"-1"};Nb();const RE=PE((e,t,n,i,s,l)=>(se(),Ye("div",OE)));cf.render=RE;cf.__scopeId="data-v-b329ee4c";cf.__file="src/components/ResizeObserver.vue";const zw=(e="theme")=>({computed:{themeClass(){return CE(this[e])}}}),zE=at({name:"VPopperContent",components:{ResizeObserver:cf},mixins:[zw()],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}}}),DE=["id","aria-hidden","tabindex","data-popper-placement"],FE={ref:"inner",class:"v-popper__inner"},HE=te("div",{class:"v-popper__arrow-outer"},null,-1),BE=te("div",{class:"v-popper__arrow-inner"},null,-1),WE=[HE,BE];function jE(e,t,n,i,s,l){const u=Ko("ResizeObserver");return se(),ye("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:tn(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]=hh(f=>e.autoHide&&e.$emit("hide"),["esc"]))},[te("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=f=>e.autoHide&&e.$emit("hide"))}),te("div",{class:"v-popper__wrapper",style:tn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[te("div",FE,[e.mounted?(se(),ye(nt,{key:0},[te("div",null,[xn(e.$slots,"default")]),e.handleResize?(se(),Ye(u,{key:0,onNotify:t[1]||(t[1]=f=>e.$emit("resize",f))})):je("",!0)],64)):je("",!0)],512),te("div",{ref:"arrow",class:"v-popper__arrow-container",style:tn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},WE,4)],4)],46,DE)}const Dw=af(zE,[["render",jE]]),Fw={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 yh=function(){};typeof window<"u"&&(yh=window.Element);const qE=at({name:"VPopperWrapper",components:{Popper:NE,PopperContent:Dw},mixins:[Fw,zw("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,yh,Boolean],default:void 0},boundary:{type:[String,yh],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 UE(e,t,n,i,s,l){const u=Ko("PopperContent"),f=Ko("Popper");return se(),Ye(f,_i({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:it(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,show:w,hide:L,handleResize:$,onResize:C,classes:E,result:N})=>[xn(e.$slots,"default",{shown:p,show:w,hide:L}),Ie(u,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":$,classes:E,result:N,onHide:L,onResize:C},{default:it(()=>[xn(e.$slots,"popper",{shown:p,hide:L})]),_: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 xp=af(qE,[["render",UE]]);({...xp});({...xp});const VE={...xp,name:"VTooltip",vPopperTheme:"tooltip"},GE=at({name:"VTooltipDirective",components:{Popper:Rw(),PopperContent:Dw},mixins:[Fw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>_a(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>_a(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,n=this.content(this);n.then?n.then(i=>this.onResult(t,i)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),XE=["innerHTML"],KE=["textContent"];function JE(e,t,n,i,s,l){const u=Ko("PopperContent"),f=Ko("Popper");return se(),Ye(f,_i({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,hide:w,handleResize:L,onResize:$,classes:C,result:E})=>[Ie(u,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":L,classes:C,result:E,onHide:w,onResize:$},{default:it(()=>[e.html?(se(),ye("div",{key:0,innerHTML:e.finalContent},null,8,XE)):(se(),ye("div",{key:1,textContent:Re(e.finalContent)},null,8,KE))]),_: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 YE=af(GE,[["render",JE]]),Hw="v-popper--has-tooltip";function ZE(e,t){let n=e.placement;if(!n&&t)for(const i of Ow)t[i]&&(n=i);return n||(n=_a(e.theme||"tooltip","placement")),n}function Bw(e,t,n){let i;const s=typeof t;return s==="string"?i={content:t}:t&&s==="object"?i=t:i={content:!1},i.placement=ZE(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Ed,Ta,QE=0;function eA(){if(Ed)return;Ta=Ue([]),Ed=Sw({name:"VTooltipDirectiveApp",setup(){return{directives:Ta}},render(){return this.directives.map(t=>ja(YE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Ed.mount(e)}function Ww(e,t,n){eA();const i=Ue(Bw(e,t,n)),s=Ue(!1),l={id:QE++,options:i,shown:s};return Ta.value.push(l),e.classList&&e.classList.add(Hw),e.$_popper={options:i,item:l,show(){s.value=!0},hide(){s.value=!1}}}function Sp(e){if(e.$_popper){const t=Ta.value.indexOf(e.$_popper.item);t!==-1&&Ta.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Hw)}function Zv(e,{value:t,modifiers:n}){const i=Bw(e,t,n);if(!i.content||_a(i.theme||"tooltip","disabled"))Sp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=i):s=Ww(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const tA={beforeMount:Zv,updated:Zv,beforeUnmount(e){Sp(e)}},nA=tA,jw=VE,qw={options:lo};function Uw(e){return e!=null}function Ua(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function Vw(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Qv(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let s=e;for(const l of i)if(s=new Object(s)[l],s===void 0)return n;return s}function e0(){let e=null,t=null;const n=new Promise((i,s)=>{e=i,t=s});return n.resolve=e,n.reject=t,n}function rA(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}var iA={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},oA=Object.entries(iA);function _p(e){return String(e)}_p.open="";_p.close="";function sA(e=!1){let t=typeof process<"u"?process:void 0,n=(t==null?void 0:t.env)||{},i=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in n||i.includes("--no-color"))&&("FORCE_COLOR"in n||i.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function lA(e=!1){let t=sA(e),n=(u,f,h,p)=>{let g="",v=0;do g+=u.substring(v,p)+h,v=p+f.length,p=u.indexOf(f,v);while(~p);return g+u.substring(v)},i=(u,f,h=u)=>{let p=g=>{let v=String(g),y=v.indexOf(f,u.length);return~y?u+n(v,f,h,y)+f:u+v+f};return p.open=u,p.close=f,p},s={isColorSupported:t},l=u=>`\x1B[${u}m`;for(let[u,f]of oA)s[u]=t?i(l(f[0]),l(f[1]),f[2]):_p;return s}lA();const t0={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},aA={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Zs="…";function cA(e,t){const n=t0[aA[t]]||t0[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function uA({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:i=!0,showProxy:s=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:f=[],truncate:h=1/0,stylize:p=String}={},g){const v={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!i,showProxy:!!s,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:f,inspect:g,stylize:p};return v.colors&&(v.stylize=cA),v}function fA(e){return e>="\uD800"&&e<="\uDBFF"}function xo(e,t,n=Zs){e=String(e);const i=n.length,s=e.length;if(i>t&&s>i)return n;if(s>t&&s>i){let l=t-i;return l>0&&fA(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function Pr(e,t,n,i=", "){n=n||t.inspect;const s=e.length;if(s===0)return"";const l=t.truncate;let u="",f="",h="";for(let p=0;p<s;p+=1){const g=p+1===e.length,v=p+2===e.length;h=`${Zs}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:i.length);const w=f||n(y,t)+(g?"":i),L=u.length+w.length,$=L+h.length;if(g&&L>l&&u.length+h.length<=l||!g&&!v&&$>l||(f=g?"":n(e[p+1],t)+(v?"":i),!g&&v&&$>l&&L+f.length>l))break;if(u+=w,!g&&!v&&L+f.length>=l){h=`${Zs}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function dA(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ca([e,t],n){return n.truncate-=2,typeof e=="string"?e=dA(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function hA(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const i=Pr(e,t);t.truncate-=i.length;let s="";return n.length&&(s=Pr(n.map(l=>[l,e[l]]),t,Ca)),`[ ${i}${s?`, ${s}`:""} ]`}const pA=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function gi(e,t){const n=pA(e);t.truncate-=n.length+4;const i=Object.keys(e).slice(e.length);if(!e.length&&!i.length)return`${n}[]`;let s="";for(let u=0;u<e.length;u++){const f=`${t.stylize(xo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=f.length,e[u]!==e.length&&t.truncate<=3){s+=`${Zs}(${e.length-e[u]+1})`;break}s+=f}let l="";return i.length&&(l=Pr(i.map(u=>[u,e[u]]),t,Ca)),`${n}[ ${s}${l?`, ${l}`:""} ]`}function gA(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const i=n.split("T"),s=i[0];return t.stylize(`${s}T${xo(i[1],t.truncate-s.length-1)}`,"date")}function n0(e,t){const n=e[Symbol.toStringTag]||"Function",i=e.name;return i?t.stylize(`[${n} ${xo(i,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function mA([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function vA(e){const t=[];return e.forEach((n,i)=>{t.push([i,n])}),t}function yA(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Pr(vA(e),t,mA)} }`)}const bA=Number.isNaN||(e=>e!==e);function r0(e,t){return bA(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(xo(String(e),t.truncate),"number")}function i0(e,t){let n=xo(e.toString(),t.truncate-1);return n!==Zs&&(n+="n"),t.stylize(n,"bigint")}function wA(e,t){const n=e.toString().split("/")[2],i=t.truncate-(2+n.length),s=e.source;return t.stylize(`/${xo(s,i)}/${n}`,"regexp")}function xA(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function SA(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Pr(xA(e),t)} }`)}const o0=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),_A={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},kA=16;function TA(e){return _A[e]||`\\u${`0000${e.charCodeAt(0).toString(kA)}`.slice(-4)}`}function s0(e,t){return o0.test(e)&&(e=e.replace(o0,TA)),t.stylize(`'${xo(e,t.truncate-2)}'`,"string")}function l0(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}const CA=()=>"Promise{…}";function tu(e,t){const n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&i.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const s=Pr(n.map(f=>[f,e[f]]),t,Ca),l=Pr(i.map(f=>[f,e[f]]),t,Ca);t.seen.pop();let u="";return s&&l&&(u=", "),`{ ${s}${u}${l} }`}const Ad=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function EA(e,t){let n="";return Ad&&Ad in e&&(n=e[Ad]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${tu(e,t)}`}function AA(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Pr(e,t)} ]`)}const LA=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function $A(e,t){const n=Object.getOwnPropertyNames(e).filter(u=>LA.indexOf(u)===-1),i=e.name;t.truncate-=i.length;let s="";if(typeof e.message=="string"?s=xo(e.message,t.truncate):n.unshift("message"),s=s?`: ${s}`:"",t.truncate-=s.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Pr(n.map(u=>[u,e[u]]),t,Ca);return`${i}${s}${l?` { ${l} }`:""}`}function MA([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function bh(e,t){return Pr(e,t,NA,`
18
+ `)}function NA(e,t){switch(e.nodeType){case 1:return Gw(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Gw(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),s=t.stylize(`<${i}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${i}>`,"special");t.truncate-=i.length*2+5;let f="";n.length>0&&(f+=" ",f+=Pr(n.map(g=>[g,e.getAttribute(g)]),t,MA," ")),t.truncate-=f.length;const h=t.truncate;let p=bh(e.children,t);return p&&p.length>h&&(p=`${Zs}(${e.children.length})`),`${s}${f}${l}${p}${u}`}const IA=typeof Symbol=="function"&&typeof Symbol.for=="function",Ld=IA?Symbol.for("chai/inspect"):"@@chai/inspect",$d=Symbol.for("nodejs.util.inspect.custom"),a0=new WeakMap,c0={},u0={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:r0,Number:r0,bigint:i0,BigInt:i0,string:s0,String:s0,function:n0,Function:n0,symbol:l0,Symbol:l0,Array:hA,Date:gA,Map:yA,Set:SA,RegExp:wA,Promise:CA,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:AA,Int8Array:gi,Uint8Array:gi,Uint8ClampedArray:gi,Int16Array:gi,Uint16Array:gi,Int32Array:gi,Uint32Array:gi,Float32Array:gi,Float64Array:gi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:$A,HTMLCollection:bh,NodeList:bh},PA=(e,t,n)=>Ld in e&&typeof e[Ld]=="function"?e[Ld](t):$d in e&&typeof e[$d]=="function"?e[$d](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&a0.has(e.constructor)?a0.get(e.constructor)(e,t):c0[n]?c0[n](e,t):"",OA=Object.prototype.toString;function wh(e,t={}){const n=uA(t,wh),{customInspect:i}=n;let s=e===null?"null":typeof e;if(s==="object"&&(s=OA.call(e).slice(8,-1)),s in u0)return u0[s](e,n);if(i&&e){const u=PA(e,n,s);if(u)return typeof u=="string"?u:wh(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?tu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Gw(e,n):"constructor"in e?e.constructor!==Object?EA(e,n):tu(e,n):e===Object(e)?tu(e,n):n.stylize(String(e),s)}const RA=/%[sdjifoOc%]/g;function zA(...e){if(typeof e[0]!="string"){const l=[];for(let u=0;u<e.length;u++)l.push(As(e[u],{depth:0,colors:!1}));return l.join(" ")}const t=e.length;let n=1;const i=e[0];let s=String(i).replace(RA,l=>{if(l==="%%")return"%";if(n>=t)return l;switch(l){case"%s":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():As(u,{depth:0,colors:!1}):String(u)}case"%d":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case"%i":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return As(e[n++],{showHidden:!0,showProxy:!0});case"%O":return As(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(u){const f=u.message;if(f.includes("circular structure")||f.includes("cyclic structures")||f.includes("cyclic object"))return"[Circular]";throw u}default:return l}});for(let l=e[n];n<t;l=e[++n])l===null||typeof l!="object"?s+=` ${l}`:s+=` ${As(l)}`;return s}function As(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),wh(e,t)}function DA(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=As(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const s=e;return s.name?`[Function: ${s.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const s=Object.keys(e);return`{ Object (${s.length>2?`${s.splice(0,2).join(", ")}, ...`:s.join(", ")}) }`}else return n}return n}var Md,f0;function FA(){if(f0)return Md;f0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,C,E,N;return y=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,v=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,L=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,g=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,$=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,N=/[\t\v\f\ufeff\p{Zs}]+/yu,f=/\r?\n|[\r\u2028\u2029]/y,h=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,w=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:(?!\1)[^])*(\1)?/y,s=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,C=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,l=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(f.source),Md=function*(O,{jsx:k=!1}={}){var z,D,oe,Q,W,q,U,A,I,P,S,R,B,ie;for({length:q}=O,Q=0,W="",ie=[{tag:"JS"}],z=[],S=0,R=!1;Q<q;){switch(A=ie[ie.length-1],A.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(O[Q]==="/"&&(E.test(W)||l.test(W))&&(y.lastIndex=Q,U=y.exec(O))){Q=y.lastIndex,W=U[0],R=!0,yield{type:"RegularExpressionLiteral",value:U[0],closed:U[1]!==void 0&&U[1]!=="\\"};continue}if(v.lastIndex=Q,U=v.exec(O)){switch(B=U[0],I=v.lastIndex,P=B,B){case"(":W==="?NonExpressionParenKeyword"&&ie.push({tag:"JSNonExpressionParen",nesting:S}),S++,R=!1;break;case")":S--,R=!0,A.tag==="JSNonExpressionParen"&&S===A.nesting&&(ie.pop(),P="?NonExpressionParenEnd",R=!1);break;case"{":v.lastIndex=0,oe=!C.test(W)&&(E.test(W)||l.test(W)),z.push(oe),R=!1;break;case"}":switch(A.tag){case"InterpolationInTemplate":if(z.length===A.nesting){$.lastIndex=Q,U=$.exec(O),Q=$.lastIndex,W=U[0],U[1]==="${"?(W="?InterpolationInTemplate",R=!1,yield{type:"TemplateMiddle",value:U[0]}):(ie.pop(),R=!0,yield{type:"TemplateTail",value:U[0],closed:U[1]==="`"});continue}break;case"InterpolationInJSX":if(z.length===A.nesting){ie.pop(),Q+=1,W="}",yield{type:"JSXPunctuator",value:"}"};continue}}R=z.pop(),P=R?"?ExpressionBraceEnd":"}";break;case"]":R=!0;break;case"++":case"--":P=R?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(k&&(E.test(W)||l.test(W))){ie.push({tag:"JSXTag"}),Q+=1,W="<",yield{type:"JSXPunctuator",value:B};continue}R=!1;break;default:R=!1}Q=I,W=P,yield{type:"Punctuator",value:B};continue}if(e.lastIndex=Q,U=e.exec(O)){switch(Q=e.lastIndex,P=U[0],U[0]){case"for":case"if":case"while":case"with":W!=="."&&W!=="?."&&(P="?NonExpressionParenKeyword")}W=P,R=!l.test(U[0]),yield{type:U[1]==="#"?"PrivateIdentifier":"IdentifierName",value:U[0]};continue}if(L.lastIndex=Q,U=L.exec(O)){Q=L.lastIndex,W=U[0],R=!0,yield{type:"StringLiteral",value:U[0],closed:U[2]!==void 0};continue}if(g.lastIndex=Q,U=g.exec(O)){Q=g.lastIndex,W=U[0],R=!0,yield{type:"NumericLiteral",value:U[0]};continue}if($.lastIndex=Q,U=$.exec(O)){Q=$.lastIndex,W=U[0],U[1]==="${"?(W="?InterpolationInTemplate",ie.push({tag:"InterpolationInTemplate",nesting:z.length}),R=!1,yield{type:"TemplateHead",value:U[0]}):(R=!0,yield{type:"NoSubstitutionTemplate",value:U[0],closed:U[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=Q,U=n.exec(O)){switch(Q=n.lastIndex,P=U[0],U[0]){case"<":ie.push({tag:"JSXTag"});break;case">":ie.pop(),W==="/"||A.tag==="JSXTagEnd"?(P="?JSX",R=!0):ie.push({tag:"JSXChildren"});break;case"{":ie.push({tag:"InterpolationInJSX",nesting:z.length}),P="?InterpolationInJSX",R=!1;break;case"/":W==="<"&&(ie.pop(),ie[ie.length-1].tag==="JSXChildren"&&ie.pop(),ie.push({tag:"JSXTagEnd"}))}W=P,yield{type:"JSXPunctuator",value:U[0]};continue}if(t.lastIndex=Q,U=t.exec(O)){Q=t.lastIndex,W=U[0],yield{type:"JSXIdentifier",value:U[0]};continue}if(i.lastIndex=Q,U=i.exec(O)){Q=i.lastIndex,W=U[0],yield{type:"JSXString",value:U[0],closed:U[2]!==void 0};continue}break;case"JSXChildren":if(s.lastIndex=Q,U=s.exec(O)){Q=s.lastIndex,W=U[0],yield{type:"JSXText",value:U[0]};continue}switch(O[Q]){case"<":ie.push({tag:"JSXTag"}),Q++,W="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ie.push({tag:"InterpolationInJSX",nesting:z.length}),Q++,W="?InterpolationInJSX",R=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(N.lastIndex=Q,U=N.exec(O)){Q=N.lastIndex,yield{type:"WhiteSpace",value:U[0]};continue}if(f.lastIndex=Q,U=f.exec(O)){Q=f.lastIndex,R=!1,u.test(W)&&(W="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:U[0]};continue}if(h.lastIndex=Q,U=h.exec(O)){Q=h.lastIndex,p.test(U[0])&&(R=!1,u.test(W)&&(W="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:U[0],closed:U[1]!==void 0};continue}if(w.lastIndex=Q,U=w.exec(O)){Q=w.lastIndex,R=!1,yield{type:"SingleLineComment",value:U[0]};continue}D=String.fromCodePoint(O.codePointAt(Q)),Q+=D.length,W=D,R=!1,yield{type:A.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:D}}},Md}FA();var Xw={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Xw.keyword);new Set(Xw.strict);const d0=Symbol("vitest:SAFE_TIMERS");function Kw(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}=globalThis[d0]||globalThis,{nextTick:f}=globalThis[d0]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}}function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd,h0;function HA(){if(h0)return Nd;h0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,C,E,N,O;return w=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,$=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,v=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,C=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,O=/[\t\v\f\ufeff\p{Zs}]+/yu,h=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,L=/\/\/.*/y,e=/^#!.*/,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,l=/[^<>{}]+/y,N=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,u=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,f=/^(?:return|throw|yield)$/,g=RegExp(h.source),Nd=function*(k,{jsx:z=!1}={}){var D,oe,Q,W,q,U,A,I,P,S,R,B,ie,ue;for({length:U}=k,W=0,q="",ue=[{tag:"JS"}],D=[],R=0,B=!1,(A=e.exec(k))&&(yield{type:"HashbangComment",value:A[0]},W=A[0].length);W<U;){switch(I=ue[ue.length-1],I.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(k[W]==="/"&&(N.test(q)||u.test(q))&&(w.lastIndex=W,A=w.exec(k))){W=w.lastIndex,q=A[0],B=!0,yield{type:"RegularExpressionLiteral",value:A[0],closed:A[1]!==void 0&&A[1]!=="\\"};continue}if(y.lastIndex=W,A=y.exec(k)){switch(ie=A[0],P=y.lastIndex,S=ie,ie){case"(":q==="?NonExpressionParenKeyword"&&ue.push({tag:"JSNonExpressionParen",nesting:R}),R++,B=!1;break;case")":R--,B=!0,I.tag==="JSNonExpressionParen"&&R===I.nesting&&(ue.pop(),S="?NonExpressionParenEnd",B=!1);break;case"{":y.lastIndex=0,Q=!E.test(q)&&(N.test(q)||u.test(q)),D.push(Q),B=!1;break;case"}":switch(I.tag){case"InterpolationInTemplate":if(D.length===I.nesting){C.lastIndex=W,A=C.exec(k),W=C.lastIndex,q=A[0],A[1]==="${"?(q="?InterpolationInTemplate",B=!1,yield{type:"TemplateMiddle",value:A[0]}):(ue.pop(),B=!0,yield{type:"TemplateTail",value:A[0],closed:A[1]==="`"});continue}break;case"InterpolationInJSX":if(D.length===I.nesting){ue.pop(),W+=1,q="}",yield{type:"JSXPunctuator",value:"}"};continue}}B=D.pop(),S=B?"?ExpressionBraceEnd":"}";break;case"]":B=!0;break;case"++":case"--":S=B?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(N.test(q)||u.test(q))){ue.push({tag:"JSXTag"}),W+=1,q="<",yield{type:"JSXPunctuator",value:ie};continue}B=!1;break;default:B=!1}W=P,q=S,yield{type:"Punctuator",value:ie};continue}if(t.lastIndex=W,A=t.exec(k)){switch(W=t.lastIndex,S=A[0],A[0]){case"for":case"if":case"while":case"with":q!=="."&&q!=="?."&&(S="?NonExpressionParenKeyword")}q=S,B=!u.test(A[0]),yield{type:A[1]==="#"?"PrivateIdentifier":"IdentifierName",value:A[0]};continue}if($.lastIndex=W,A=$.exec(k)){W=$.lastIndex,q=A[0],B=!0,yield{type:"StringLiteral",value:A[0],closed:A[2]!==void 0};continue}if(v.lastIndex=W,A=v.exec(k)){W=v.lastIndex,q=A[0],B=!0,yield{type:"NumericLiteral",value:A[0]};continue}if(C.lastIndex=W,A=C.exec(k)){W=C.lastIndex,q=A[0],A[1]==="${"?(q="?InterpolationInTemplate",ue.push({tag:"InterpolationInTemplate",nesting:D.length}),B=!1,yield{type:"TemplateHead",value:A[0]}):(B=!0,yield{type:"NoSubstitutionTemplate",value:A[0],closed:A[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=W,A=i.exec(k)){switch(W=i.lastIndex,S=A[0],A[0]){case"<":ue.push({tag:"JSXTag"});break;case">":ue.pop(),q==="/"||I.tag==="JSXTagEnd"?(S="?JSX",B=!0):ue.push({tag:"JSXChildren"});break;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),S="?InterpolationInJSX",B=!1;break;case"/":q==="<"&&(ue.pop(),ue[ue.length-1].tag==="JSXChildren"&&ue.pop(),ue.push({tag:"JSXTagEnd"}))}q=S,yield{type:"JSXPunctuator",value:A[0]};continue}if(n.lastIndex=W,A=n.exec(k)){W=n.lastIndex,q=A[0],yield{type:"JSXIdentifier",value:A[0]};continue}if(s.lastIndex=W,A=s.exec(k)){W=s.lastIndex,q=A[0],yield{type:"JSXString",value:A[0],closed:A[2]!==void 0};continue}break;case"JSXChildren":if(l.lastIndex=W,A=l.exec(k)){W=l.lastIndex,q=A[0],yield{type:"JSXText",value:A[0]};continue}switch(k[W]){case"<":ue.push({tag:"JSXTag"}),W++,q="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),W++,q="?InterpolationInJSX",B=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(O.lastIndex=W,A=O.exec(k)){W=O.lastIndex,yield{type:"WhiteSpace",value:A[0]};continue}if(h.lastIndex=W,A=h.exec(k)){W=h.lastIndex,B=!1,f.test(q)&&(q="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:A[0]};continue}if(p.lastIndex=W,A=p.exec(k)){W=p.lastIndex,g.test(A[0])&&(B=!1,f.test(q)&&(q="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:A[0],closed:A[1]!==void 0};continue}if(L.lastIndex=W,A=L.exec(k)){W=L.lastIndex,B=!1,yield{type:"SingleLineComment",value:A[0]};continue}oe=String.fromCodePoint(k.codePointAt(W)),W+=oe.length,q=oe,B=!1,yield{type:I.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:oe}}},Nd}var BA=HA();const WA=kp(BA);function jA(e,t){const n=" ",i=" ";let s="";const l=[];for(const u of WA(e,{jsx:!1})){if(l.push(u),u.type==="SingleLineComment"){s+=i.repeat(u.value.length);continue}if(u.type==="MultiLineComment"){s+=u.value.replace(/[^\n]/g,i);continue}if(u.type==="StringLiteral"){if(!u.closed){s+=u.value;continue}const f=u.value.slice(1,-1);{s+=u.value[0]+n.repeat(f.length)+u.value[u.value.length-1];continue}}if(u.type==="NoSubstitutionTemplate"){const f=u.value.slice(1,-1);{s+=`\`${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="RegularExpressionLiteral"){const f=u.value;{s+=f.replace(/\/(.*)\/(\w?)$/g,(h,p,g)=>`/${n.repeat(p.length)}/${g}`);continue}}if(u.type==="TemplateHead"){const f=u.value.slice(1,-2);{s+=`\`${f.replace(/[^\n]/g,n)}\${`;continue}}if(u.type==="TemplateTail"){const f=u.value.slice(0,-2);{s+=`}${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="TemplateMiddle"){const f=u.value.slice(1,-2);{s+=`}${f.replace(/[^\n]/g,n)}\${`;continue}}s+=u.value}return{result:s,tokens:l}}function qA(e,t){return UA(e).result}function UA(e,t){return jA(e)}const VA=/^[A-Za-z]:\//;function GA(e=""){return e&&e.replace(/\\/g,"/").replace(VA,t=>t.toUpperCase())}const XA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const JA=function(...e){e=e.map(i=>GA(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:KA();!s||s.length===0||(t=`${s}/${t}`,n=p0(s))}return t=YA(t,!n),n&&!p0(t)?`/${t}`:t.length>0?t:"."};function YA(e,t){let n="",i=0,s=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(s===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const p0=function(e){return XA.test(e)},ZA=44,g0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QA=new Uint8Array(64),Jw=new Uint8Array(128);for(let e=0;e<g0.length;e++){const t=g0.charCodeAt(e);QA[e]=t,Jw[t]=e}function jl(e,t){let n=0,i=0,s=0;do{const u=e.next();s=Jw[u],n|=(s&31)<<i,i+=5}while(s&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function m0(e,t){return e.pos>=t?!1:e.peek()!==ZA}class eL{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:n,pos:i}=this,s=n.indexOf(t,i);return s===-1?n.length:s}}function tL(e){const{length:t}=e,n=new eL(e),i=[];let s=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(s=0;n.pos<p;){let w;s=jl(n,s),s<y&&(v=!1),y=s,m0(n,p)?(l=jl(n,l),u=jl(n,u),f=jl(n,f),m0(n,p)?(h=jl(n,h),w=[s,l,u,f,h]):w=[s,l,u,f]):w=[s],g.push(w),n.pos++}v||nL(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function nL(e){e.sort(rL)}function rL(e,t){return e[0]-t[0]}const iL=/^[\w+.-]+:\/\//,oL=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,sL=/^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 lL(e){return iL.test(e)}function aL(e){return e.startsWith("//")}function Yw(e){return e.startsWith("/")}function cL(e){return e.startsWith("file:")}function v0(e){return/^[.?#]/.test(e)}function zc(e){const t=oL.exec(e);return Zw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function uL(e){const t=sL.exec(e),n=t[2];return Zw("file:","",t[1]||"","",Yw(n)?n:"/"+n,t[3]||"",t[4]||"")}function Zw(e,t,n,i,s,l,u){return{scheme:e,user:t,host:n,port:i,path:s,query:l,hash:u,type:Ut.Absolute}}function y0(e){if(aL(e)){const n=zc("http:"+e);return n.scheme="",n.type=Ut.SchemeRelative,n}if(Yw(e)){const n=zc("http://foo.com"+e);return n.scheme="",n.host="",n.type=Ut.AbsolutePath,n}if(cL(e))return uL(e);if(lL(e))return zc(e);const t=zc("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 fL(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function dL(e,t){Qw(t,t.type),e.path==="/"?e.path=t.path:e.path=fL(t.path)+e.path}function Qw(e,t){const n=t<=Ut.RelativePath,i=e.path.split("/");let s=1,l=0,u=!1;for(let h=1;h<i.length;h++){const p=i[h];if(!p){u=!0;continue}if(u=!1,p!=="."){if(p===".."){l?(u=!0,l--,s--):n&&(i[s++]=p);continue}i[s++]=p,l++}}let f="";for(let h=1;h<s;h++)f+="/"+i[h];(!f||u&&!f.endsWith("/.."))&&(f+="/"),e.path=f}function hL(e,t){if(!e&&!t)return"";const n=y0(e);let i=n.type;if(t&&i!==Ut.Absolute){const l=y0(t),u=l.type;switch(i){case Ut.Empty:n.hash=l.hash;case Ut.Hash:n.query=l.query;case Ut.Query:case Ut.RelativePath:dL(n,l);case Ut.AbsolutePath:n.user=l.user,n.host=l.host,n.port=l.port;case Ut.SchemeRelative:n.scheme=l.scheme}u>i&&(i=u)}Qw(n,i);const s=n.query+n.hash;switch(i){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const l=n.path.slice(1);return l?v0(t||e)&&!v0(l)?"./"+l+s:l+s:s||"."}case Ut.AbsolutePath:return n.path+s;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+s}}function pL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function gL(e,t){const n=pL(e),i=t?t+"/":"";return s=>hL(i+(s||""),n)}var go=0,mL=1,vL=2,yL=3,bL=4;function wL(e,t){const n=b0(e,0);if(n===e.length)return e;t||(e=e.slice());for(let i=n;i<e.length;i=b0(e,i+1))e[i]=SL(e[i],t);return e}function b0(e,t){for(let n=t;n<e.length;n++)if(!xL(e[n]))return n;return e.length}function xL(e){for(let t=1;t<e.length;t++)if(e[t][go]<e[t-1][go])return!1;return!0}function SL(e,t){return t||(e=e.slice()),e.sort(_L)}function _L(e,t){return e[go]-t[go]}var Tu=!1;function kL(e,t,n,i){for(;n<=i;){const s=n+(i-n>>1),l=e[s][go]-t;if(l===0)return Tu=!0,s;l<0?n=s+1:i=s-1}return Tu=!1,n-1}function TL(e,t,n){for(let i=n+1;i<e.length&&e[i][go]===t;n=i++);return n}function CL(e,t,n){for(let i=n-1;i>=0&&e[i][go]===t;n=i--);return n}function EL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function AL(e,t,n,i){const{lastKey:s,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===s){if(t===l)return Tu=u!==-1&&e[u][go]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=kL(e,t,f,h)}function LL(e){return typeof e=="string"?JSON.parse(e):e}var $L="`line` must be greater than 0 (lines start at line 1)",ML="`column` must be greater than or equal to 0 (columns start at column 0)",w0=-1,NL=1,IL=class{constructor(e,t){const n=typeof e=="string";if(!n&&e._decodedMemo)return e;const i=LL(e),{version:s,file:l,names:u,sourceRoot:f,sources:h,sourcesContent:p}=i;this.version=s,this.file=l,this.names=u||[],this.sourceRoot=f,this.sources=h,this.sourcesContent=p,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const g=gL(t,f);this.resolvedSources=h.map(g);const{mappings:v}=i;if(typeof v=="string")this._encoded=v,this._decoded=void 0;else if(Array.isArray(v))this._encoded=void 0,this._decoded=wL(v,n);else throw i.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(i)}`);this._decodedMemo=EL(),this._bySources=void 0,this._bySourceMemos=void 0}};function PL(e){var t;return(t=e)._decoded||(t._decoded=tL(e._encoded))}function OL(e,t){let{line:n,column:i,bias:s}=t;if(n--,n<0)throw new Error($L);if(i<0)throw new Error(ML);const l=PL(e);if(n>=l.length)return Dc(null,null,null,null);const u=l[n],f=RL(u,e._decodedMemo,n,i,s||NL);if(f===-1)return Dc(null,null,null,null);const h=u[f];if(h.length===1)return Dc(null,null,null,null);const{names:p,resolvedSources:g}=e;return Dc(g[h[mL]],h[vL]+1,h[yL],h.length===5?p[h[bL]]:null)}function Dc(e,t,n,i){return{source:e,line:t,column:n,name:i}}function RL(e,t,n,i,s){let l=AL(e,i,t,n);return Tu?l=(s===w0?TL:CL)(e,i,l):s===w0&&l++,l===-1||l===e.length?-1:l}const Tp=/^\s*at .*(?:\S:\d+|\(native\))/m,zL=/^(?:eval@)?(?:\[native code\])?$/,DL=["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/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function ex(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const s=new URL(i);s.searchParams.delete("import"),s.searchParams.delete("browserv"),i=s.pathname+s.hash+s.search}if(i.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(s?5:4)}return[i,n[2]||void 0,n[3]||void 0]}function tx(e){let t=e.trim();if(zL.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 n=/((.*".+"[^@]*)?[^@]*)(@)/,i=t.match(n),s=i&&i[1]?i[1]:void 0,[l,u,f]=ex(t.replace(n,""));return!l||!u||!f?null:{file:l,method:s||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function FL(e){const t=e.trim();return Tp.test(t)?nx(t):tx(t)}function nx(e){let t=e.trim();if(!Tp.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[s,l,u]=ex(i?i[1]:n);let f=i&&n||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:JA(h),f&&(f=f.replace(/__vite_ssr_import_\d+__\./g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function HL(e,t={}){const{ignoreStackEntries:n=DL}=t;return(Tp.test(e)?WL(e):BL(e)).map(s=>{var l;t.getUrlId&&(s.file=t.getUrlId(s.file));const u=(l=t.getSourceMap)===null||l===void 0?void 0:l.call(t,s.file);if(!u||typeof u!="object"||!u.version)return x0(n,s.file)?null:s;const f=new IL(u),{line:h,column:p,source:g,name:v}=OL(f,s);let y=s.file;if(g){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,L=u.sourceRoot?new URL(u.sourceRoot,w):w;y=new URL(g,L).pathname,y.match(/\/\w:\//)&&(y=y.slice(1))}return x0(n,y)?null:h!=null&&p!=null?{line:h,column:p,file:y,method:v||s.method}:s}).filter(s=>s!=null)}function x0(e,t){return e.some(n=>t.match(n))}function BL(e){return e.split(`
19
+ `).map(t=>tx(t)).filter(Uw)}function WL(e){return e.split(`
20
+ `).map(t=>nx(t)).filter(Uw)}const jL=/^[A-Za-z]:\//;function qL(e=""){return e&&e.replace(/\\/g,"/").replace(jL,t=>t.toUpperCase())}const UL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,S0=/^\/([A-Za-z]:)?$/;function VL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const _0=function(...e){e=e.map(i=>qL(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:VL();!s||s.length===0||(t=`${s}/${t}`,n=k0(s))}return t=GL(t,!n),n&&!k0(t)?`/${t}`:t.length>0?t:"."};function GL(e,t){let n="",i=0,s=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(s===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const k0=function(e){return UL.test(e)},rx=function(e,t){const n=_0(e).replace(S0,"$1").split("/"),i=_0(t).replace(S0,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const s=[...n];for(const l of s){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")};class XL extends Error{constructor(n,i,s){super(n);qi(this,"code","VITEST_PENDING");qi(this,"taskId");this.message=n,this.note=s,this.taskId=i.id}}const KL=new WeakMap,ix=new WeakMap,ox=new WeakMap;function JL(e,t){KL.set(e,t)}function YL(e,t){ix.set(e,t)}function ZL(e){return ix.get(e)}function QL(e,t){ox.set(e,t)}function e$(e){return ox.get(e)}function t$(e,t){const n=t.reduce((l,u)=>(l[u.prop]=u,l),{}),i={};e.forEach(l=>{const u=n[l.prop]||{...l};i[u.prop]=u});for(const l in i){var s;const u=i[l];u.deps=(s=u.deps)===null||s===void 0?void 0:s.map(f=>i[f.prop])}return Object.values(i)}function sx(e,t,n){const i=["auto","injected","scope"],s=Object.entries(e).map(([l,u])=>{const f={value:u};if(Array.isArray(u)&&u.length>=2&&Vw(u[1])&&Object.keys(u[1]).some(p=>i.includes(p))){var h;Object.assign(f,u[1]);const p=u[0];f.value=f.injected?((h=n.injectValue)===null||h===void 0?void 0:h.call(n,l))??p:p}return f.scope=f.scope||"test",f.scope==="worker"&&!n.getWorkerContext&&(f.scope="file"),f.prop=l,f.isFn=typeof f.value=="function",f});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(s):t.fixtures=s,s.forEach(l=>{if(l.isFn){const f=ax(l.value);if(f.length&&(l.deps=t.fixtures.filter(({prop:h})=>h!==l.prop&&f.includes(h))),l.scope!=="test"){var u;(u=l.deps)===null||u===void 0||u.forEach(h=>{if(h.isFn&&!(l.scope==="worker"&&h.scope==="worker")&&!(l.scope==="file"&&h.scope!=="test"))throw new SyntaxError(`cannot use the ${h.scope} fixture "${h.prop}" inside the ${l.scope} fixture "${l.prop}"`)})}}}),t}const Id=new Map,js=new Map;function n$(e,t,n){return i=>{const s=i||n;if(!s)return t({});const l=ZL(s);if(!(l!=null&&l.length))return t(s);const u=ax(t),f=l.some(({auto:w})=>w);if(!u.length&&!f)return t(s);Id.get(s)||Id.set(s,new Map);const h=Id.get(s);js.has(s)||js.set(s,[]);const p=js.get(s),g=l.filter(({prop:w,auto:L})=>L||u.includes(w)),v=lx(g);if(!v.length)return t(s);async function y(){for(const w of v){if(h.has(w))continue;const L=await r$(e,w,s,p);s[w.prop]=L,h.set(w,L),w.scope==="test"&&p.unshift(()=>{h.delete(w)})}}return y().then(()=>t(s))}}const Fc=new WeakMap;function r$(e,t,n,i){var s;const l=S$(n.task.file),u=(s=e.getWorkerContext)===null||s===void 0?void 0:s.call(e);if(!t.isFn){var f;if(l[f=t.prop]??(l[f]=t.value),u){var h;u[h=t.prop]??(u[h]=t.value)}return t.value}if(t.scope==="test")return T0(t.value,n,i);if(Fc.has(t))return Fc.get(t);let p;if(t.scope==="worker"){if(!u)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");p=u}else p=l;if(t.prop in p)return p[t.prop];js.has(p)||js.set(p,[]);const g=js.get(p),v=T0(t.value,p,g).then(y=>(p[t.prop]=y,Fc.delete(t),y));return Fc.set(t,v),v}async function T0(e,t,n){const i=e0();let s=!1;const l=e(t,async u=>{s=!0,i.resolve(u);const f=e0();n.push(async()=>{f.resolve(),await l}),await f}).catch(u=>{if(!s){i.reject(u);return}throw u});return i}function lx(e,t=new Set,n=[]){return e.forEach(i=>{if(!n.includes(i)){if(!i.isFn||!i.deps){n.push(i);return}if(t.has(i))throw new Error(`Circular fixture dependency detected: ${i.prop} <- ${[...t].reverse().map(s=>s.prop).join(" <- ")}`);t.add(i),lx(i.deps,t,n),n.push(i),t.clear()}}),n}function ax(e){let t=qA(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);const n=t.match(/[^(]*\(([^)]*)/);if(!n)return[];const i=C0(n[1]);if(!i.length)return[];let s=i[0];if("__VITEST_FIXTURE_INDEX__"in e&&(s=i[e.__VITEST_FIXTURE_INDEX__],!s))return[];if(!(s.startsWith("{")&&s.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${s}".`);const l=s.slice(1,-1).replace(/\s/g,""),u=C0(l).map(h=>h.replace(/:.*|=.*/g,"")),f=u.at(-1);if(f&&f.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${f}".`);return u}function C0(e){const t=[],n=[];let i=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n[n.length-1])n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const s=e.substring(i).trim();return s&&t.push(s),t}function cx(e,t){function n(s){const l=function(...u){return t.apply(s,u)};Object.assign(l,t),l.withContext=()=>l.bind(s),l.setContext=(u,f)=>{s[u]=f},l.mergeContext=u=>{Object.assign(s,u)};for(const u of e)Object.defineProperty(l,u,{get(){return n({...s,[u]:!0})}});return l}const i=n({});return i.fn=t,i}function i$(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return`${t}`}function ux(e,t,n,i){const s=rx(t,e),l={id:o$(s,n),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:n,file:void 0,pool:i};return l.file=l,_$(l,Object.create(null)),l}function o$(e,t){return i$(`${e}${t||""}`)}function fx(e,t){const n=t.split(`
21
+ `).slice(1);for(const i of n){const s=FL(i);if(s&&s.file===e)return s}}function dx(e){return Ea(e)}function Ea(e){return e.type==="test"}function hx(e){const t=[],n=Ua(e);for(const i of n)if(Ea(i))t.push(i);else for(const s of i.tasks)if(Ea(s))t.push(s);else{const l=hx(s);for(const u of l)t.push(u)}return t}function Cp(e=[]){return Ua(e).flatMap(t=>Ea(t)?[t]:[t,...Cp(t.tasks)])}function s$(e){const t=[e.name];let n=e;for(;n!=null&&n.suite;)n=n.suite,n!=null&&n.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}const ql=d$();Ep(function(e,t,n){xh().test.fn.call(this,ao(e),t,n)});let Xr,px,l$;function gx(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function a$(){return gx(Xr,"the runner"),Xr}function xh(){const e=co.currentSuite||px;return gx(e,"the current suite"),e}function c$(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function Go(e,t){let n={},i;if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=t}else typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function u$(e,t=()=>{},n,i,s,l){const u=[];let f;w();const h=function(C="",E={}){var N;const O=(E==null?void 0:E.timeout)??Xr.config.testTimeout,k={id:"",name:C,suite:(N=co.currentSuite)===null||N===void 0?void 0:N.suite,each:E.each,fails:E.fails,context:void 0,type:"test",file:void 0,timeout:O,retry:E.retry??Xr.config.retry,repeats:E.repeats,mode:E.only?"only":E.skip?"skip":E.todo?"todo":"run",meta:E.meta??Object.create(null),annotations:[]},z=E.handler;k.mode==="run"&&!z&&(k.mode="todo"),(E.concurrent||!E.sequential&&Xr.config.sequence.concurrent)&&(k.concurrent=!0),k.shuffle=s==null?void 0:s.shuffle;const D=w$(k,Xr);Object.defineProperty(k,"context",{value:D,enumerable:!1}),YL(D,E.fixtures);const oe=Error.stackTraceLimit;Error.stackTraceLimit=15;const Q=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=oe,z&&JL(k,Sh(f$(n$(Xr,z,D),k),O,!1,Q,(W,q)=>y$([D],q))),Xr.config.includeTaskLocation){const W=Q.stack,q=fx(l$,W);q&&(k.location={line:q.line,column:q.column})}return u.push(k),k},p=Ep(function(C,E,N){let{options:O,handler:k}=Go(E,N);typeof s=="object"&&(O=Object.assign({},s,O)),O.concurrent=this.concurrent||!this.sequential&&(O==null?void 0:O.concurrent),O.sequential=this.sequential||!this.concurrent&&(O==null?void 0:O.sequential);const z=h(ao(C),{...this,...O,handler:k});z.type="test"});let g=l;const v={type:"collector",name:e,mode:n,suite:f,options:s,test:p,tasks:u,collect:$,task:h,clear:L,on:y,fixtures(){return g},scoped(C){const E=sx(C,{fixtures:g},Xr);E.fixtures&&(g=E.fixtures)}};function y(C,...E){e$(f)[C].push(...E)}function w(C){var E;typeof s=="number"&&(s={timeout:s}),f={id:"",type:"suite",name:e,suite:(E=co.currentSuite)===null||E===void 0?void 0:E.suite,mode:n,each:i,file:void 0,shuffle:s==null?void 0:s.shuffle,tasks:[],meta:Object.create(null),concurrent:s==null?void 0:s.concurrent},QL(f,c$())}function L(){u.length=0,w()}async function $(C){if(!C)throw new TypeError("File is required to collect tasks.");t&&await v$(v,()=>t(p));const E=[];for(const N of u)E.push(N.type==="collector"?await N.collect(C):N);return f.file=C,f.tasks=E,E.forEach(N=>{N.file=C}),f}return m$(v),v}function f$(e,t){return async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i}}function d$(){function e(t,n,i){var s;let l=this.only?"only":this.skip?"skip":this.todo?"todo":"run";const u=co.currentSuite||px;let{options:f,handler:h}=Go(n,i);l==="run"&&!h&&(l="todo");const p=f.concurrent||this.concurrent||f.sequential===!1,g=f.sequential||this.sequential||f.concurrent===!1;f={...u==null?void 0:u.options,...f,shuffle:this.shuffle??f.shuffle??(u==null||(s=u.options)===null||s===void 0?void 0:s.shuffle)??void 0};const v=p||f.concurrent&&!g,y=g||f.sequential&&!p;return f.concurrent=v&&!y,f.sequential=y&&!v,u$(ao(t),h,l,this.each,f,u==null?void 0:u.fixtures())}return e.each=function(t,...n){const i=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Cu(t,n)),(s,l,u)=>{const f=ao(s),h=t.every(Array.isArray),{options:p,handler:g}=Go(l,u),v=typeof l=="function"&&typeof u=="object";t.forEach((y,w)=>{const L=Array.isArray(y)?y:[y];v?h?i(Jr(f,L,w),g?()=>g(...L):void 0,p):i(Jr(f,L,w),g?()=>g(y):void 0,p):h?i(Jr(f,L,w),p,g?()=>g(...L):void 0):i(Jr(f,L,w),p,g?()=>g(y):void 0)}),this.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Cu(t,n)),(i,s,l)=>{const u=ao(i),{options:f,handler:h}=Go(s,l);t.forEach((p,g)=>{ql(Jr(u,Ua(p),g),f,h?()=>h(p):void 0)})}},e.skipIf=t=>t?ql.skip:ql,e.runIf=t=>t?ql:ql.skip,cx(["concurrent","sequential","shuffle","skip","only","todo"],e)}function h$(e,t){const n=e;n.each=function(s,...l){const u=this.withContext();return this.setContext("each",!0),Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=ao(f),v=s.every(Array.isArray),{options:y,handler:w}=Go(h,p),L=typeof h=="function"&&typeof p=="object";s.forEach(($,C)=>{const E=Array.isArray($)?$:[$];L?v?u(Jr(g,E,C),w?()=>w(...E):void 0,y):u(Jr(g,E,C),w?()=>w($):void 0,y):v?u(Jr(g,E,C),y,w?()=>w(...E):void 0):u(Jr(g,E,C),y,w?()=>w($):void 0)}),this.setContext("each",void 0)}},n.for=function(s,...l){const u=this.withContext();return Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=ao(f),{options:v,handler:y}=Go(h,p);s.forEach((w,L)=>{const $=y?C=>y(w,C):void 0;$&&($.__VITEST_FIXTURE_INDEX__=1,$.toString=()=>y.toString()),u(Jr(g,Ua(w),L),v,$)})}},n.skipIf=function(s){return s?this.skip:this},n.runIf=function(s){return s?this:this.skip},n.scoped=function(s){xh().scoped(s)},n.extend=function(s){const l=sx(s,t||{},Xr),u=e;return Ep(function(f,h,p){var g;const v=xh(),y=v.fixtures(),w={...this};y&&(w.fixtures=t$(w.fixtures||[],y));const{handler:L,options:$}=Go(h,p),C=$.timeout??((g=v.options)===null||g===void 0?void 0:g.timeout)??void 0;u.call(w,ao(f),L,C)},l)};const i=cx(["concurrent","sequential","skip","only","todo","fails"],n);return t&&i.mergeContext(t),i}function Ep(e,t){return h$(e,t)}function ao(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function Jr(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((f,h)=>{if(rA(t[h])||Object.is(t[h],-0)){let p=0;e=e.replace(/%f/g,g=>(p++,p===h+1?"-%f":g))}});let s=zA(e,...t.slice(0,i));const l=Vw(t[0]);return s=s.replace(/\$([$\w.]+)/g,(u,f)=>{const h=/^\d+$/.test(f);if(!l&&!h)return`$${f}`;const p=h?Qv(t,f):void 0,g=l?Qv(t[0],f,p):p;return DA(g,{truncate:void 0})}),s}function Cu(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
22
+ `).map(s=>s.split("|"))[0],i=[];for(let s=0;s<Math.floor(t.length/n.length);s++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[s*n.length+u];i.push(l)}return i}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;Kw();const Pd=new Map,E0=[],nu=[];function p$(e){if(Pd.size){var t;const n=Array.from(Pd).map(([s,l])=>[s,l[0],l[1]]),i=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,E0);i&&(nu.push(i),i.then(()=>nu.splice(nu.indexOf(i),1),()=>{})),E0.length=0,Pd.clear()}}async function g$(e){p$(e),await Promise.all(nu)}const A0=Date.now,co={currentSuite:null};function m$(e){var t;(t=co.currentSuite)===null||t===void 0||t.tasks.push(e)}async function v$(e,t){const n=co.currentSuite;co.currentSuite=e,await t(),co.currentSuite=n}function Sh(e,t,n=!1,i,s){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=Kw();return function(...h){const p=A0(),g=a$();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{var w;const L=l(()=>{u(L),$()},t);(w=L.unref)===null||w===void 0||w.call(L);function $(){const N=x$(n,t,i);s==null||s(h,N),y(N)}function C(N){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(L),A0()-p>=t){$();return}v(N)}function E(N){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(L),y(N)}try{const N=e(...h);typeof N=="object"&&N!=null&&typeof N.then=="function"?N.then(C,E):C(N)}catch(N){E(N)}})}}const _h=new WeakMap;function y$([e],t){e&&b$(e,t)}function b$(e,t){const n=_h.get(e);n==null||n.abort(t)}function w$(e,t){var n;const i=function(){throw new Error("done() callback is deprecated, use promise instead")};let s=_h.get(i);s||(s=new AbortController,_h.set(i,s)),i.signal=s.signal,i.task=e,i.skip=(u,f)=>{if(u!==!1)throw e.result??(e.result={state:"skip"}),e.result.pending=!0,new XL("test is skipped; abort execution",e,typeof u=="string"?u:f)};async function l(u,f,h,p){const g={message:u,type:h||"notice"};if(p){if(!p.body&&!p.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(p.body&&p.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');g.attachment=p,p.body instanceof Uint8Array&&(p.body=k$(p.body))}if(f&&(g.location=f),!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await g$(t);const v=await t.onTestAnnotate(e,g);return e.annotations.push(v),v}return i.annotate=(u,f,h)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const p=fx(e.file.filepath,new Error("STACK_TRACE").stack);let g;return p&&(g={file:p.file,line:p.line,column:p.column}),typeof f=="object"?L0(e,l(u,g,void 0,f)):L0(e,l(u,g,f,h))},i.onTestFailed=(u,f)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(Sh(u,f??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},i.onTestFinished=(u,f)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(Sh(u,f??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,i))||i}function x$(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
23
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,s=new Error(i);return n!=null&&n.stack&&(s.stack=n.stack.replace(s.message,n.message)),s}const mx=new WeakMap;function S$(e){const t=mx.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}function _$(e,t){mx.set(e,t)}const ur=[];for(let e=65;e<91;e++)ur.push(String.fromCharCode(e));for(let e=97;e<123;e++)ur.push(String.fromCharCode(e));for(let e=0;e<10;e++)ur.push(e.toString(10));function k$(e){let t="";const n=e.byteLength;for(let i=0;i<n;i+=3)if(n===i+1){const s=(e[i]&252)>>2,l=(e[i]&3)<<4;t+=ur[s],t+=ur[l],t+="=="}else if(n===i+2){const s=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ur[s],t+=ur[l],t+=ur[u],t+="="}else{const s=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ur[s],t+=ur[l],t+=ur[u],t+=ur[f]}return t}function L0(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}const $0="q",M0="s",T$=6e4;function vx(e){return e}const C$=vx,{clearTimeout:E$,setTimeout:A$}=globalThis,L$=Math.random.bind(Math);function $$(e,t){const{post:n,on:i,off:s=()=>{},eventNames:l=[],serialize:u=vx,deserialize:f=C$,resolver:h,bind:p="rpc",timeout:g=T$}=t,v=new Map;let y,w=!1;const L=new Proxy({},{get(N,O){if(O==="$functions")return e;if(O==="$close")return $;if(O==="$rejectPendingCalls")return C;if(O==="$closed")return w;if(O==="then"&&!l.includes("then")&&!("then"in e))return;const k=(...D)=>{n(u({m:O,a:D,t:$0}))};if(l.includes(O))return k.asEvent=k,k;const z=async(...D)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${O}"`);if(y)try{await y}finally{y=void 0}return new Promise((oe,Q)=>{var U;const W=N$();let q;g>=0&&(q=A$(()=>{var A;try{if(((A=t.onTimeoutError)==null?void 0:A.call(t,O,D))!==!0)throw new Error(`[birpc] timeout on calling "${O}"`)}catch(I){Q(I)}v.delete(W)},g),typeof q=="object"&&(q=(U=q.unref)==null?void 0:U.call(q))),v.set(W,{resolve:oe,reject:Q,timeoutId:q,method:O}),n(u({m:O,a:D,i:W,t:"q"}))})};return z.asEvent=k,z}});function $(N){w=!0,v.forEach(({reject:O,method:k})=>{const z=new Error(`[birpc] rpc is closed, cannot call "${k}"`);if(N)return N.cause??(N.cause=z),O(N);O(z)}),v.clear(),s(E)}function C(N){const k=Array.from(v.values()).map(({method:z,reject:D})=>N?N({method:z,reject:D}):D(new Error(`[birpc]: rejected pending call "${z}".`)));return v.clear(),k}async function E(N,...O){var z,D,oe;let k;try{k=f(N)}catch(Q){if(((z=t.onGeneralError)==null?void 0:z.call(t,Q))!==!0)throw Q;return}if(k.t===$0){const{m:Q,a:W}=k;let q,U;const A=h?h(Q,e[Q]):e[Q];if(!A)U=new Error(`[birpc] function "${Q}" not found`);else try{q=await A.apply(p==="rpc"?L:e,W)}catch(I){U=I}if(k.i){if(U&&t.onError&&t.onError(U,Q,W),U&&t.onFunctionError&&t.onFunctionError(U,Q,W)===!0)return;if(!U)try{n(u({t:M0,i:k.i,r:q}),...O);return}catch(I){if(U=I,((D=t.onGeneralError)==null?void 0:D.call(t,I,Q,W))!==!0)throw I}try{n(u({t:M0,i:k.i,e:U}),...O)}catch(I){if(((oe=t.onGeneralError)==null?void 0:oe.call(t,I,Q,W))!==!0)throw I}}}else{const{i:Q,r:W,e:q}=k,U=v.get(Q);U&&(E$(U.timeoutId),q?U.reject(q):U.resolve(W)),v.delete(Q)}}return y=i(E),L}const M$="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function N$(e=21){let t="",n=e;for(;n--;)t+=M$[L$()*64|0];return t}const{parse:yx,stringify:I$}=JSON,{keys:P$}=Object,Aa=String,bx="string",N0={},Eu="object",wx=(e,t)=>t,O$=e=>e instanceof Aa?Aa(e):e,R$=(e,t)=>typeof t===bx?new Aa(t):t,xx=(e,t,n,i)=>{const s=[];for(let l=P$(n),{length:u}=l,f=0;f<u;f++){const h=l[f],p=n[h];if(p instanceof Aa){const g=e[p];typeof g===Eu&&!t.has(g)?(t.add(g),n[h]=N0,s.push({k:h,a:[e,t,g,i]})):n[h]=i.call(n,h,g)}else n[h]!==N0&&(n[h]=i.call(n,h,p))}for(let{length:l}=s,u=0;u<l;u++){const{k:f,a:h}=s[u];n[f]=i.call(n,f,xx.apply(null,h))}return n},I0=(e,t,n)=>{const i=Aa(t.push(n)-1);return e.set(n,i),i},kh=(e,t)=>{const n=yx(e,R$).map(O$),i=n[0],s=t||wx,l=typeof i===Eu&&i?xx(n,new Set,i,s):i;return s.call({"":l},"",l)},Sx=(e,t,n)=>{const i=t&&typeof t===Eu?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||wx,s=new Map,l=[],u=[];let f=+I0(s,l,i.call({"":e},"",e)),h=!f;for(;f<l.length;)h=!0,u[f]=I$(l[f++],p,n);return"["+u.join(",")+"]";function p(g,v){if(h)return h=!h,v;const y=i.call(this,g,v);switch(typeof y){case Eu:if(y===null)return y;case bx:return s.get(y)||I0(s,l,y)}return y}},z$=e=>yx(Sx(e));class _x{constructor(){qi(this,"filesMap",new Map);qi(this,"pathsSet",new Set);qi(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],s=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),s.push(n),this.filesMap.set(n.filepath,s),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(s=>{const l=this.filesMap.get(s),u=ux(s,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(s,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(s,[...f,u]):this.filesMap.set(s,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,s]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=s,(i==null?void 0:i.state)==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function D$(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:s=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=N=>N,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new _x,waitForConnection:E,reconnect:$},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(N,O){var k;(k=n.onTestAnnotate)==null||k.call(n,N,O)},onSpecsCollected(N){var O;N==null||N.forEach(([k,z])=>{g.state.clearFiles({config:k},[z])}),(O=n.onSpecsCollected)==null||O.call(n,N)},onPathsCollected(N){var O;g.state.collectPaths(N),(O=n.onPathsCollected)==null||O.call(n,N)},onCollected(N){var O;g.state.collectFiles(N),(O=n.onCollected)==null||O.call(n,N)},onTaskUpdate(N,O){var k;g.state.updateTasks(N),(k=n.onTaskUpdate)==null||k.call(n,N,O)},onUserConsoleLog(N){var O;g.state.updateUserLog(N),(O=n.onUserConsoleLog)==null||O.call(n,N)},onFinished(N,O){var k;(k=n.onFinished)==null||k.call(n,N,O)},onFinishedReportCoverage(){var N;(N=n.onFinishedReportCoverage)==null||N.call(n)}},w={post:N=>g.ws.send(N),on:N=>v=N,serialize:N=>Sx(N,(O,k)=>k instanceof Error?{name:k.name,message:k.message,stack:k.stack}:k),deserialize:kh,timeout:-1};g.rpc=$$(y,w);let L;function $(N=!1){N&&(p=l),g.ws=new h(e),C()}function C(){L=new Promise((N,O)=>{var z,D;const k=(D=(z=setTimeout(()=>{O(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u))==null?void 0:z.unref)==null?void 0:D.call(z);g.ws.OPEN===g.ws.readyState&&N(),g.ws.addEventListener("open",()=>{p=l,N(),clearTimeout(k)})}),g.ws.addEventListener("message",N=>{v(N.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout($,s)})}C();function E(){return L}return g}function Ap(e){return ab()?(Rk(e),!0):!1}const Od=new WeakMap,F$=(...e)=>{var t;const n=e[0],i=(t=$i())==null?void 0:t.proxy;if(i==null&&!Xb())throw new Error("injectLocal must be called in setup");return i&&Od.has(i)&&n in Od.get(i)?Od.get(i)[n]:bn(...e)},H$=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const B$=Object.prototype.toString,W$=e=>B$.call(e)==="[object Object]",Au=()=>{};function kx(e,t){function n(...i){return new Promise((s,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(s).catch(l)})}return n}const Tx=e=>e();function Cx(e,t={}){let n,i,s=Au;const l=h=>{clearTimeout(h),s(),s=Au};let u;return h=>{const p=Gt(e),g=Gt(t.maxWait);return n&&l(n),p<=0||g!==void 0&&g<=0?(i&&(l(i),i=null),Promise.resolve(h())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,u=h,g&&!i&&(i=setTimeout(()=>{n&&l(n),i=null,v(u())},g)),n=setTimeout(()=>{i&&l(i),i=null,v(h())},p)})}}function j$(e=Tx,t={}){const{initialState:n="active"}=t,i=Ex(n==="active");function s(){i.value=!1}function l(){i.value=!0}const u=(...f)=>{i.value&&e(...f)};return{isActive:Da(i),pause:s,resume:l,eventFilter:u}}function P0(e,t=!1,n="Timeout"){return new Promise((i,s)=>{setTimeout(t?()=>s(n):i,e)})}function O0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function q$(e){return $i()}function Rd(e){return Array.isArray(e)?e:[e]}function Ex(...e){if(e.length!==1)return sl(...e);const t=e[0];return typeof t=="function"?Da(Tb(()=>({get:t,set:Au}))):Ue(t)}function Hc(e,t=200,n={}){return kx(Cx(t,n),e)}function Ax(e,t,n={}){const{eventFilter:i=Tx,...s}=n;return St(e,kx(i,t),s)}function Lx(e,t,n={}){const{eventFilter:i,initialState:s="active",...l}=n,{eventFilter:u,pause:f,resume:h,isActive:p}=j$(i,{initialState:s});return{stop:Ax(e,t,{...l,eventFilter:u}),pause:f,resume:h,isActive:p}}function Lp(e,t=!0,n){q$()?wo(e,n):t?e():Et(e)}function Th(e,t=!1){function n(v,{flush:y="sync",deep:w=!1,timeout:L,throwOnTimeout:$}={}){let C=null;const N=[new Promise(O=>{C=St(e,k=>{v(k)!==t&&(C?C():Et(()=>C==null?void 0:C()),O(k))},{flush:y,deep:w,immediate:!0})})];return L!=null&&N.push(P0(L,$).then(()=>Gt(e)).finally(()=>C==null?void 0:C())),Promise.race(N)}function i(v,y){if(!kt(v))return n(k=>k===v,y);const{flush:w="sync",deep:L=!1,timeout:$,throwOnTimeout:C}=y??{};let E=null;const O=[new Promise(k=>{E=St([e,v],([z,D])=>{t!==(z===D)&&(E?E():Et(()=>E==null?void 0:E()),k(z))},{flush:w,deep:L,immediate:!0})})];return $!=null&&O.push(P0($,C).then(()=>Gt(e)).finally(()=>(E==null||E(),Gt(e)))),Promise.race(O)}function s(v){return n(y=>!!y,v)}function l(v){return i(null,v)}function u(v){return i(void 0,v)}function f(v){return n(Number.isNaN,v)}function h(v,y){return n(w=>{const L=Array.from(w);return L.includes(v)||L.includes(Gt(v))},y)}function p(v){return g(1,v)}function g(v=1,y){let w=-1;return n(()=>(w+=1,w>=v),y)}return Array.isArray(Gt(e))?{toMatch:n,toContains:h,changed:p,changedTimes:g,get not(){return Th(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:s,toBeNull:l,toBeNaN:f,toBeUndefined:u,changed:p,changedTimes:g,get not(){return Th(e,!t)}}}function R0(e){return Th(e)}function U$(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,s=kt(e),l=nn(e);function u(f){if(arguments.length)return l.value=f,l.value;{const h=Gt(n);return l.value=l.value===h?Gt(i):h,l.value}}return s?u:[l,u]}function $p(e,t,n={}){const{debounce:i=0,maxWait:s=void 0,...l}=n;return Ax(e,t,{...l,eventFilter:Cx(i,{maxWait:s})})}function V$(e,t,n){return St(e,t,{...n,immediate:!0})}function G$(e,t,n){const i=St(e,(...s)=>(Et(()=>i()),t(...s)),n);return i}function X$(e,t,n){let i;kt(n)?i={evaluating:n}:i={};const{lazy:s=!1,evaluating:l=void 0,shallow:u=!0,onError:f=Au}=i,h=nn(!s),p=u?nn(t):Ue(t);let g=0;return pp(async v=>{if(!h.value)return;g++;const y=g;let w=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const L=await e($=>{v(()=>{l&&(l.value=!1),w||$()})});y===g&&(p.value=L)}catch(L){f(L)}finally{l&&y===g&&(l.value=!1),w=!0}}),s?_e(()=>(h.value=!0,p.value)):p}const Or=H$?window:void 0;function Lu(e){var t;const n=Gt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function mo(...e){const t=[],n=()=>{t.forEach(f=>f()),t.length=0},i=(f,h,p,g)=>(f.addEventListener(h,p,g),()=>f.removeEventListener(h,p,g)),s=_e(()=>{const f=Rd(Gt(e[0])).filter(h=>h!=null);return f.every(h=>typeof h!="string")?f:void 0}),l=V$(()=>{var f,h;return[(h=(f=s.value)==null?void 0:f.map(p=>Lu(p)))!=null?h:[Or].filter(p=>p!=null),Rd(Gt(s.value?e[1]:e[0])),Rd(j(s.value?e[2]:e[1])),Gt(s.value?e[3]:e[2])]},([f,h,p,g])=>{if(n(),!(f!=null&&f.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const v=W$(g)?{...g}:g;t.push(...f.flatMap(y=>h.flatMap(w=>p.map(L=>i(y,w,L,v)))))},{flush:"post"}),u=()=>{l(),n()};return Ap(n),u}function K$(){const e=nn(!1),t=$i();return t&&wo(()=>{e.value=!0},t),e}function $x(e){const t=K$();return _e(()=>(t.value,!!e()))}function J$(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Mx(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Or,eventName:l="keydown",passive:u=!1,dedupe:f=!1}=i,h=J$(t);return mo(s,l,g=>{g.repeat&&Gt(f)||h(g)&&n(g)},u)}function Y$(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:s=Or,once:l=!1}=t,u=nn(!1),f=_e(()=>i?1e3/Gt(i):null);let h=0,p=null;function g(w){if(!u.value||!s)return;h||(h=w);const L=w-h;if(f.value&&L<f.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:L,timestamp:w}),l){u.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!u.value&&s&&(u.value=!0,h=0,p=s.requestAnimationFrame(g))}function y(){u.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return n&&v(),Ap(y),{isActive:Da(u),pause:y,resume:v}}const Z$=Symbol("vueuse-ssr-width");function Q$(){const e=Xb()?F$(Z$,null):null;return typeof e=="number"?e:void 0}function Nx(e,t={}){const{window:n=Or,ssrWidth:i=Q$()}=t,s=$x(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=nn(typeof i=="number"),u=nn(),f=nn(!1),h=p=>{f.value=p.matches};return pp(()=>{if(l.value){l.value=!s.value;const p=Gt(e).split(",");f.value=p.some(g=>{const v=g.includes("not all"),y=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let L=!!(y||w);return y&&L&&(L=i>=O0(y[1])),w&&L&&(L=i<=O0(w[1])),v?!L:L});return}s.value&&(u.value=n.matchMedia(Gt(e)),f.value=u.value.matches)}),mo(u,"change",h,{passive:!0}),_e(()=>f.value)}const Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wc="__vueuse_ssr_handlers__",eM=tM();function tM(){return Wc in Bc||(Bc[Wc]=Bc[Wc]||{}),Bc[Wc]}function Ix(e,t){return eM[e]||t}function nM(e){return Nx("(prefers-color-scheme: dark)",e)}function rM(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 iM={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()}},z0="vueuse-storage";function Px(e,t,n,i={}){var s;const{flush:l="pre",deep:u=!0,listenToStorageChanges:f=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Or,eventFilter:y,onError:w=U=>{console.error(U)},initOnMounted:L}=i,$=(g?nn:Ue)(typeof t=="function"?t():t),C=_e(()=>Gt(e));if(!n)try{n=Ix("getDefaultStorage",()=>{var U;return(U=Or)==null?void 0:U.localStorage})()}catch(U){w(U)}if(!n)return $;const E=Gt(t),N=rM(E),O=(s=i.serializer)!=null?s:iM[N],{pause:k,resume:z}=Lx($,()=>oe($.value),{flush:l,deep:u,eventFilter:y});St(C,()=>W(),{flush:l}),v&&f&&Lp(()=>{n instanceof Storage?mo(v,"storage",W,{passive:!0}):mo(v,z0,q),L&&W()}),L||W();function D(U,A){if(v){const I={key:C.value,oldValue:U,newValue:A,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",I):new CustomEvent(z0,{detail:I}))}}function oe(U){try{const A=n.getItem(C.value);if(U==null)D(A,null),n.removeItem(C.value);else{const I=O.write(U);A!==I&&(n.setItem(C.value,I),D(A,I))}}catch(A){w(A)}}function Q(U){const A=U?U.newValue:n.getItem(C.value);if(A==null)return h&&E!=null&&n.setItem(C.value,O.write(E)),E;if(!U&&p){const I=O.read(A);return typeof p=="function"?p(I,E):N==="object"&&!Array.isArray(I)?{...E,...I}:I}else return typeof A!="string"?A:O.read(A)}function W(U){if(!(U&&U.storageArea!==n)){if(U&&U.key==null){$.value=E;return}if(!(U&&U.key!==C.value)){k();try{(U==null?void 0:U.newValue)!==O.write($.value)&&($.value=Q(U))}catch(A){w(A)}finally{U?Et(z):z()}}}}function q(U){W(U.detail)}return $}const oM="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function sM(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:s=Or,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},y=nM({window:s}),w=_e(()=>y.value?"dark":"light"),L=h||(u==null?Ex(i):Px(u,i,l,{window:s,listenToStorageChanges:f})),$=_e(()=>L.value==="auto"?w.value:L.value),C=Ix("updateHTMLAttrs",(k,z,D)=>{const oe=typeof k=="string"?s==null?void 0:s.document.querySelector(k):Lu(k);if(!oe)return;const Q=new Set,W=new Set;let q=null;if(z==="class"){const A=D.split(/\s/g);Object.values(v).flatMap(I=>(I||"").split(/\s/g)).filter(Boolean).forEach(I=>{A.includes(I)?Q.add(I):W.add(I)})}else q={key:z,value:D};if(Q.size===0&&W.size===0&&q===null)return;let U;g&&(U=s.document.createElement("style"),U.appendChild(document.createTextNode(oM)),s.document.head.appendChild(U));for(const A of Q)oe.classList.add(A);for(const A of W)oe.classList.remove(A);q&&oe.setAttribute(q.key,q.value),g&&(s.getComputedStyle(U).opacity,document.head.removeChild(U))});function E(k){var z;C(t,n,(z=v[k])!=null?z:k)}function N(k){e.onChanged?e.onChanged(k,E):E(k)}St($,N,{flush:"post",immediate:!0}),Lp(()=>N($.value));const O=_e({get(){return p?L.value:$.value},set(k){L.value=k}});return Object.assign(O,{store:L,system:w,state:$})}function lM(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=sM({...e,onChanged:(u,f)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,u==="dark",f,u):f(u)},modes:{dark:t,light:n}}),s=_e(()=>i.system.value);return _e({get(){return i.value==="dark"},set(u){const f=u?"dark":"light";s.value===f?i.value="auto":i.value=f}})}function Ox(e,t,n={}){const{window:i=Or,...s}=n;let l;const u=$x(()=>i&&"ResizeObserver"in i),f=()=>{l&&(l.disconnect(),l=void 0)},h=_e(()=>{const v=Gt(e);return Array.isArray(v)?v.map(y=>Lu(y)):[Lu(v)]}),p=St(h,v=>{if(f(),u.value&&i){l=new ResizeObserver(t);for(const y of v)y&&l.observe(y,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),p()};return Ap(g),{isSupported:u,stop:g}}function uf(e,t,n={}){const{window:i=Or}=n;return Px(e,t,i==null?void 0:i.localStorage,n)}function aM(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:s=!1,write:l=!0,writeMode:u="replace",window:f=Or}=t;if(!f)return rr(n);const h=rr({});function p(){if(e==="history")return f.location.search||"";if(e==="hash"){const O=f.location.hash||"",k=O.indexOf("?");return k>0?O.slice(k):""}else return(f.location.hash||"").replace(/^#/,"")}function g(O){const k=O.toString();if(e==="history")return`${k?`?${k}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${k?`#${k}`:""}`;const z=f.location.hash||"#",D=z.indexOf("?");return D>0?`${f.location.search||""}${z.slice(0,D)}${k?`?${k}`:""}`:`${f.location.search||""}${z}${k?`?${k}`:""}`}function v(){return new URLSearchParams(p())}function y(O){const k=new Set(Object.keys(h));for(const z of O.keys()){const D=O.getAll(z);h[z]=D.length>1?D:O.get(z)||"",k.delete(z)}Array.from(k).forEach(z=>delete h[z])}const{pause:w,resume:L}=Lx(h,()=>{const O=new URLSearchParams("");Object.keys(h).forEach(k=>{const z=h[k];Array.isArray(z)?z.forEach(D=>O.append(k,D)):i&&z==null||s&&!z?O.delete(k):O.set(k,z)}),$(O,!1)},{deep:!0});function $(O,k){w(),k&&y(O),u==="replace"?f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(O)):f.history.pushState(f.history.state,f.document.title,f.location.pathname+g(O)),L()}function C(){l&&$(v(),!0)}const E={passive:!0};mo(f,"popstate",C,E),e!=="history"&&mo(f,"hashchange",C,E);const N=v();return N.keys().next().value?y(N):Object.assign(h,n),h}function Rx(e={}){const{window:t=Or,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:l=!0,type:u="inner"}=e,f=nn(n),h=nn(i),p=()=>{if(t)if(u==="outer")f.value=t.outerWidth,h.value=t.outerHeight;else if(u==="visual"&&t.visualViewport){const{width:v,height:y,scale:w}=t.visualViewport;f.value=Math.round(v*w),h.value=Math.round(y*w)}else l?(f.value=t.innerWidth,h.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Lp(p);const g={passive:!0};if(mo("resize",p,g),t&&u==="visual"&&t.visualViewport&&mo(t.visualViewport,"resize",p,g),s){const v=Nx("(orientation: portrait)");St(v,()=>p())}return{width:f,height:h}}const Ch=nn([]),Jn=nn([]),Rr=uf("vitest-ui_task-tree-opened",[],{shallow:!0}),$u=_e(()=>new Set(Rr.value)),dn=uf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ue(dn.value.search),cM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function zx(e){return e.replace(/[&<>"']/g,t=>cM[t])}const uM=_e(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${zx(e)})`,"gi"):null}),Dx=_e(()=>Un.value.trim()!==""),et=rr({failed:dn.value.failed,success:dn.value.success,skipped:dn.value.skipped,onlyTests:dn.value.onlyTests}),Eh=_e(()=>!!(et.failed||et.success||et.skipped)),ff=nn([]),Qs=Ue(!1),D0=_e(()=>{const e=dn.value.expandAll;return Rr.value.length>0?e!==!0:e!==!1}),fM=_e(()=>{const e=Dx.value,t=Eh.value,n=et.onlyTests,i=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,l=Ae.summary.filesSkipped,u=Ae.summary.filesRunning,f=ff.value;return Ae.collectTestsTotal(e||t,n,f,{failed:i,success:s,skipped:l,running:u})});function Va(e){return Object.hasOwnProperty.call(e,"tasks")}function dM(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Fx(e){if(!e)return"";const t=e.split("").reduce((i,s,l)=>i+s.charCodeAt(0)+l,0),n=["yellow","cyan","green","magenta"];return n[t%n.length]}function Hx(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function hM(e){return e.type==="test"}function pM(e){return e.mode==="run"&&e.type==="test"}function On(e){return e.type==="file"}function Ci(e){return e.type==="file"||e.type==="suite"}function gM(e=Ae.root.tasks){return e.sort((t,n)=>`${t.filepath}:${t.projectName}`.localeCompare(`${n.filepath}:${n.projectName}`))}function La(e,t=!1){var i,s,l,u,f;let n=Ae.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.state=(i=e.result)==null?void 0:i.state,n.mode=e.mode,n.duration=(s=e.result)==null?void 0:s.duration,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:$u.value.size>0&&$u.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((l=e.result)==null?void 0:l.duration)!=null?Math.round((u=e.result)==null?void 0:u.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||Fx(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(f=e.result)==null?void 0:f.state},Ae.nodes.set(e.id,n),Ae.root.tasks.push(n)),t)for(let h=0;h<e.tasks.length;h++)Ga(e.id,e.tasks[h],!0)}function Bx(e,t){const n=Ae.nodes.get(e);if(!n||!Ci(n))return;const i=ht.state.idMap.get(e);if(!(!i||!Va(i)))return Ga(n.parentId,i,t&&i.tasks.length>0),[n,i]}function mM(e){const t=Ae.nodes.get(e);if(!t)return;const n=ht.state.idMap.get(e);!n||!dx(n)||Ga(t.parentId,n,!1)}function Ga(e,t,n){var u,f,h,p,g;const i=Ae.nodes.get(e);let s;const l=((u=t.result)==null?void 0:u.duration)!=null?Math.round((f=t.result)==null?void 0:f.duration):void 0;if(i&&(s=Ae.nodes.get(t.id),s?(i.children.has(t.id)||(i.tasks.push(s),i.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=l,s.state=(h=t.result)==null?void 0:h.state):(dx(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:i.indent+1,duration:l,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:$u.value.size>0&&$u.value.has(t.id),children:new Set,tasks:[],indent:i.indent+1,duration:l,state:(g=t.result)==null?void 0:g.state},Ae.nodes.set(t.id,s),i.tasks.push(s),i.children.add(t.id)),s&&n&&Va(t)))for(let v=0;v<t.tasks.length;v++)Ga(s.id,t.tasks[v],n)}function vM(e){const t=Ae.nodes.get(e);if(!t||!Ci(t))return;const n=new Set(Rr.value);n.delete(t.id);const i=[...bM(t)];Rr.value=Array.from(n),Jn.value=i}function yM(){Ah(Ae.root.tasks);const e=[...Jn.value.filter(On)];Ah(e),Rr.value=[],dn.value.expandAll=!0,Jn.value=e}function Ah(e){for(const t of e)Ci(t)&&(t.expanded=!1,Ah(t.tasks))}function*Wx(e,t){if(t&&(yield e.id),Ci(e))for(let n=0;n<e.tasks.length;n++)yield*Wx(e.tasks[n],!0)}function*bM(e){const t=e.id,n=new Set(Wx(e,!1));for(let i=0;i<Jn.value.length;i++){const s=Jn.value[i];if(s.id===t){s.expanded=!1,yield s;continue}if(n.has(s.id)){n.delete(s.id);continue}yield s}}const df=Ue("idle"),Ms=_e(()=>df.value==="idle"),Qi=Ue([]);function wM(e,t,n){return e?Ux(e,t,n):!1}function Mp(e,t){const n=[...jx(e,t)];Jn.value=n,ff.value=n.filter(On).map(i=>gr(i.id))}function*jx(e,t){for(const n of gM())yield*qx(n,e,t)}function*qx(e,t,n){const i=new Set,s=new Map,l=[];let u;if(n.onlyTests)for(const[v,y]of Lh(e,i,w=>F0(w,t,n)))l.push([v,y]);else{for(const[v,y]of Lh(e,i,w=>F0(w,t,n)))Ci(y)?(s.set(y.id,v),On(y)?(v&&(u=y.id),l.push([v,y])):l.push([v||s.get(y.parentId)===!0,y])):l.push([v||s.get(y.parentId)===!0,y]);!u&&!On(e)&&"fileId"in e&&(u=e.fileId)}const f=new Set,h=[...SM(l,n.onlyTests,i,f,u)].reverse(),p=Ae.nodes,g=new Set(h.filter(v=>{var y;return On(v)||Ci(v)&&((y=p.get(v.parentId))==null?void 0:y.expanded)}).map(v=>v.id));yield*h.filter(v=>{var y;return On(v)||g.has(v.parentId)&&((y=p.get(v.parentId))==null?void 0:y.expanded)})}function xM(e,t,n,i,s){if(i){if(On(t))return s.has(t.id)?t:void 0;if(n.has(t.id)){const l=Ae.nodes.get(t.parentId);return l&&On(l)&&s.add(l.id),t}}else if(e||n.has(t.id)||s.has(t.id)){const l=Ae.nodes.get(t.parentId);return l&&On(l)&&s.add(l.id),t}}function*SM(e,t,n,i,s){for(let l=e.length-1;l>=0;l--){const[u,f]=e[l],h=Ci(f);if(!t&&s&&n.has(s)&&"fileId"in f&&f.fileId===s){h&&n.add(f.id);let p=Ae.nodes.get(f.parentId);for(;p;)n.add(p.id),On(p)&&i.add(p.id),p=Ae.nodes.get(p.parentId);yield f;continue}if(h){const p=xM(u,f,n,t,i);p&&(yield p)}else if(u){const p=Ae.nodes.get(f.parentId);p&&On(p)&&i.add(p.id),yield f}}}function _M(e,t){var n,i;return(t.success||t.failed)&&"result"in e&&(t.success&&((n=e.result)==null?void 0:n.state)==="pass"||t.failed&&((i=e.result)==null?void 0:i.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Ux(e,t,n){if(t.length===0||dM(e.name,t))if(n.success||n.failed||n.skipped){if(_M(e,n))return!0}else return!0;return!1}function*Lh(e,t,n){const i=n(e);if(i)if(hM(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(On(e))t.add(e.id);else{t.add(e.id);let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}if(yield[i,e],Ci(e))for(let s=0;s<e.tasks.length;s++)yield*Lh(e.tasks[s],t,n)}function F0(e,t,n){const i=ht.state.idMap.get(e.id);return i?Ux(i,t,n):!1}function kM(e,t,n){const i=Bx(e,!1);if(!i)return;const[s,l]=i;for(const p of l.tasks)Ga(s.id,p,!1);s.expanded=!0;const u=new Set(Rr.value);u.add(s.id);const f=new Set(qx(s,t,n)),h=[...EM(s,f)];Rr.value=Array.from(u),Jn.value=h}function TM(e,t){Np(Ae.root.tasks,!1);const n=[...jx(e,t)];dn.value.expandAll=!1,Rr.value=[],Jn.value=n,ff.value=n.filter(On).map(i=>gr(i.id))}function CM(e,t){if(e.size)for(const n of Jn.value)e.has(n.id)&&(n.expanded=!0);else t&&Np(Jn.value.filter(On),!0)}function Np(e,t){for(const n of e)Ci(n)&&(n.expanded=!0,Np(n.tasks,!1));t&&(dn.value.expandAll=!1,Rr.value=[])}function*EM(e,t){const n=e.id,i=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===n?(s.expanded=!0,i.has(s.id)||(yield e),yield*t):i.has(s.id)||(yield s)}function Ip(e){return hx(e).some(t=>{var n,i;return(i=(n=t.result)==null?void 0:n.errors)==null?void 0:i.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function AM(e,t,n,i){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[l])=>s.localeCompare(l)).map(([,s])=>La(s,t)),Ch.value=[...Ae.root.tasks],Mp(n.trim(),{failed:i.failed,success:i.success,skipped:i.skipped,onlyTests:i.onlyTests})}function LM(e){queueMicrotask(()=>{const t=Ae.pendingTasks,n=ht.state.idMap;for(const i of e)if(i[1]){const l=n.get(i[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function $M(e,t){const n=Ae.pendingTasks,s=ht.state.idMap.get(e);if((s==null?void 0:s.type)==="test"){let l=n.get(s.file.id);l||(l=new Set,n.set(s.file.id,l)),l.add(s.id),s.annotations.push(t)}}function H0(e,t,n,i,s){e&&RM(n);const l=!e;queueMicrotask(()=>{t?IM(l):PM(l)}),queueMicrotask(()=>{zM(n)}),queueMicrotask(()=>{t&&(n.failedSnapshot=Ch.value&&Ip(Ch.value.map(u=>gr(u.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{OM(i,s,t)})}function*MM(){yield*Jn.value.filter(pM)}function NM(){const e=ht.state.idMap;let t;for(const n of MM())t=e.get(n.parentId),t&&Va(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function IM(e){const t=ht.state.getFiles(),n=Ae.nodes,i=t.filter(l=>!n.has(l.id));for(let l=0;l<i.length;l++)La(i[l],e),Mu(i[l].tasks);const s=Ae.root.tasks;for(let l=0;l<s.length;l++){const u=s[l],f=gr(u.id);if(!f)continue;La(f,e);const h=f.tasks;h!=null&&h.length&&Mu(f.tasks)}}function PM(e){const t=new Map(Ae.pendingTasks.entries());Ae.pendingTasks.clear();const n=Ae.nodes,i=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>gr(f)).filter(Boolean);let s;for(let f=0;f<i.length;f++)s=i[f],La(s,!1),Mu(s.tasks),t.delete(s.id);const l=ht.state.idMap,u=Ae.root.tasks;for(let f=0;f<u.length;f++){const h=u[f],p=gr(h.id);if(!p)continue;const g=t.get(p.id);g&&(La(p,e),Mu(Array.from(g).map(v=>l.get(v)).filter(Boolean)))}}function OM(e,t,n=!1){const i=dn.value.expandAll,s=i!==!0,l=new Set(Rr.value),u=l.size>0&&i===!1||s;queueMicrotask(()=>{B0(e,t,n)}),Qs.value||queueMicrotask(()=>{(Jn.value.length||n)&&(Qs.value=!0)}),u&&(queueMicrotask(()=>{CM(l,n),s&&(dn.value.expandAll=!1)}),queueMicrotask(()=>{B0(e,t,n)}))}function B0(e,t,n){Mp(e,t),n&&(NM(),df.value="idle")}function Mu(e){let t;for(let n=0;n<e.length;n++)t=e[n],Va(t)?Bx(t.id,!0):mM(t.id)}function RM(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 zM(e){var u,f,h,p,g,v;const t=ht.state.idMap,n=new Map(Ae.root.tasks.filter(y=>t.has(y.id)).map(y=>[y.id,y])),i=Array.from(n.values()).map(y=>[y.id,gr(y.id)]),s={files:n.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 l=0;for(const[y,w]of i){if(!w)continue;const L=n.get(y);L&&(L.mode=w.mode,L.setupDuration=w.setupDuration,L.prepareDuration=w.prepareDuration,L.environmentLoad=w.environmentLoad,L.collectDuration=w.collectDuration,L.duration=((u=w.result)==null?void 0:u.duration)!=null?Math.round((f=w.result)==null?void 0:f.duration):void 0,L.state=(h=w.result)==null?void 0:h.state),l+=Math.max(0,w.collectDuration||0),l+=Math.max(0,w.setupDuration||0),l+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),l+=Math.max(0,w.environmentLoad||0),l+=Math.max(0,w.prepareDuration||0),s.time=l>1e3?`${(l/1e3).toFixed(2)}s`:`${Math.round(l)}ms`,((g=w.result)==null?void 0:g.state)==="fail"?s.filesFailed++:((v=w.result)==null?void 0:v.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:$,success:C,skipped:E,total:N,ignored:O,todo:k}=Vx(w);s.totalTests+=N,s.testsFailed+=$,s.testsSuccess+=C,s.testsSkipped+=E,s.testsTodo+=k,s.testsIgnore+=O}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 Vx(e,t="",n){var s,l;const i={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const u of Gx(e))(!n||wM(u,t,n))&&(i.total++,((s=u.result)==null?void 0:s.state)==="fail"?i.failed++:((l=u.result)==null?void 0:l.state)==="pass"?i.success++:u.mode==="skip"?(i.ignored++,i.skipped++):u.mode==="todo"&&(i.ignored++,i.todo++));return i.running=i.total-i.failed-i.success-i.ignored,i}function DM(e,t,n,i,s,l){var u,f;if(t)return n.map(h=>Vx(h,s,l)).reduce((h,{failed:p,success:g,ignored:v,running:y})=>(h.failed+=p,h.success+=g,h.skipped+=v,h.running+=y,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!l.success&&!l.failed,g=l.failed||p,v=l.success||p;for(const y of n)((u=y.result)==null?void 0:u.state)==="fail"?h.failed+=g?1:0:((f=y.result)==null?void 0:f.state)==="pass"?h.success+=v?1:0:y.mode==="skip"||y.mode==="todo"||h.running++;return h}return i}function*Gx(e){const t=Ua(e);let n;for(let i=0;i<t.length;i++)n=t[i],Ea(n)?yield n:yield*Gx(n.tasks)}class FM{constructor(t=[],n=new Map,i=!1,s=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=new Map,f=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})){qi(this,"rafCollector");qi(this,"resumeEndRunId");this.projects=t,this.colors=n,this.onTaskUpdateCalled=i,this.resumeEndTimeout=s,this.root=l,this.pendingTasks=u,this.nodes=f,this.summary=h,this.rafCollector=Y$(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(i=>i.name)),this.colors=new Map(n.map(i=>[i.name,i.color])),AM(t,!0,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,n){$M(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){LM(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,n,i=!0){i?queueMicrotask(()=>{H0(t,n,this.summary,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):H0(t,n,this.summary,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,n,i,s){return DM(t,n,i,s,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{vM(t)})}expandNode(t){queueMicrotask(()=>{kM(t,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{yM()})}expandAllNodes(){queueMicrotask(()=>{TM(Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Mp(Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Ae=new FM,er=Ue([414,896]),Xa=aM("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),vo=sl(Xa,"file"),jn=sl(Xa,"view"),Xx=sl(Xa,"line"),Kx=sl(Xa,"column"),qs=sl(Xa,"test"),el=Ue(),Us=Ue(!0),yo=Ue(!1),Nu=Ue(!0),Ns=_e(()=>{var e;return(e=tl.value)==null?void 0:e.coverage}),$h=_e(()=>{var e;return(e=Ns.value)==null?void 0:e.enabled}),Is=_e(()=>$h.value&&!!Ns.value.htmlReporter),Vs=uf("vitest-ui_splitpanes-mainSizes",[33,67]);var Qy;const uo=uf("vitest-ui_splitpanes-detailSizes",[((Qy=window.__vitest_browser_runner__)==null?void 0:Qy.provider)==="webdriverio"?er.value[0]/window.outerWidth*100:33,67]),At=rr({navigation:Vs.value[0],details:{size:Vs.value[1],browser:uo.value[0],main:uo.value[1]}}),W0=_e(()=>{var e;if(Is.value){const t=Ns.value.reportsDirectory.lastIndexOf("/"),n=(e=Ns.value.htmlReporter)==null?void 0:e.subdir;return n?`/${Ns.value.reportsDirectory.slice(t+1)}/${n}/index.html`:`/${Ns.value.reportsDirectory.slice(t+1)}/index.html`}});St(df,e=>{Nu.value=e==="running"},{immediate:!0});function HM(){const e=vo.value;if(e&&e.length>0){const t=gr(e);t?(el.value=t,Us.value=!1,yo.value=!1):G$(()=>ht.state.getFiles(),()=>{el.value=gr(e),Us.value=!1,yo.value=!1})}return Us}function Iu(e){Us.value=e,yo.value=!1,e&&(el.value=void 0,vo.value="")}function hf({file:e,line:t,view:n,test:i,column:s}){vo.value=e,Xx.value=t,Kx.value=s,jn.value=n,qs.value=i,el.value=gr(e),Iu(!1)}function BM(e){hf({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null,column:null})}function WM(){yo.value=!0,Us.value=!1,el.value=void 0,vo.value=""}function jM(){At.details.browser=100,At.details.main=0,uo.value=[100,0]}function Jx(){if((It==null?void 0:It.provider)==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(er.value[0]+20)/e*100}return 33}function qM(){At.details.browser=Jx(),At.details.main=100-At.details.browser,uo.value=[At.details.browser,At.details.main]}function UM(){At.navigation=33,At.details.size=67,Vs.value=[33,67]}function Yx(){At.details.main!==0&&(At.details.browser=Jx(),At.details.main=100-At.details.browser,uo.value=[At.details.browser,At.details.main])}const VM={setCurrentFileId(e){vo.value=e,el.value=gr(e),Iu(!1)},async setIframeViewport(e,t){er.value=[e,t],(It==null?void 0:It.provider)==="webdriverio"&&Yx(),await new Promise(n=>requestAnimationFrame(n))}},GM=location.port,XM=[location.hostname,GM].filter(Boolean).join(":"),KM=`${location.protocol==="https:"?"wss:":"ws:"}//${XM}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var zd={},Tr={};const JM="Á",YM="á",ZM="Ă",QM="ă",eN="∾",tN="∿",nN="∾̳",rN="Â",iN="â",oN="´",sN="А",lN="а",aN="Æ",cN="æ",uN="⁡",fN="𝔄",dN="𝔞",hN="À",pN="à",gN="ℵ",mN="ℵ",vN="Α",yN="α",bN="Ā",wN="ā",xN="⨿",SN="&",_N="&",kN="⩕",TN="⩓",CN="∧",EN="⩜",AN="⩘",LN="⩚",$N="∠",MN="⦤",NN="∠",IN="⦨",PN="⦩",ON="⦪",RN="⦫",zN="⦬",DN="⦭",FN="⦮",HN="⦯",BN="∡",WN="∟",jN="⊾",qN="⦝",UN="∢",VN="Å",GN="⍼",XN="Ą",KN="ą",JN="𝔸",YN="𝕒",ZN="⩯",QN="≈",e2="⩰",t2="≊",n2="≋",r2="'",i2="⁡",o2="≈",s2="≊",l2="Å",a2="å",c2="𝒜",u2="𝒶",f2="≔",d2="*",h2="≈",p2="≍",g2="Ã",m2="ã",v2="Ä",y2="ä",b2="∳",w2="⨑",x2="≌",S2="϶",_2="‵",k2="∽",T2="⋍",C2="∖",E2="⫧",A2="⊽",L2="⌅",$2="⌆",M2="⌅",N2="⎵",I2="⎶",P2="≌",O2="Б",R2="б",z2="„",D2="∵",F2="∵",H2="∵",B2="⦰",W2="϶",j2="ℬ",q2="ℬ",U2="Β",V2="β",G2="ℶ",X2="≬",K2="𝔅",J2="𝔟",Y2="⋂",Z2="◯",Q2="⋃",eI="⨀",tI="⨁",nI="⨂",rI="⨆",iI="★",oI="▽",sI="△",lI="⨄",aI="⋁",cI="⋀",uI="⤍",fI="⧫",dI="▪",hI="▴",pI="▾",gI="◂",mI="▸",vI="␣",yI="▒",bI="░",wI="▓",xI="█",SI="=⃥",_I="≡⃥",kI="⫭",TI="⌐",CI="𝔹",EI="𝕓",AI="⊥",LI="⊥",$I="⋈",MI="⧉",NI="┐",II="╕",PI="╖",OI="╗",RI="┌",zI="╒",DI="╓",FI="╔",HI="─",BI="═",WI="┬",jI="╤",qI="╥",UI="╦",VI="┴",GI="╧",XI="╨",KI="╩",JI="⊟",YI="⊞",ZI="⊠",QI="┘",eP="╛",tP="╜",nP="╝",rP="└",iP="╘",oP="╙",sP="╚",lP="│",aP="║",cP="┼",uP="╪",fP="╫",dP="╬",hP="┤",pP="╡",gP="╢",mP="╣",vP="├",yP="╞",bP="╟",wP="╠",xP="‵",SP="˘",_P="˘",kP="¦",TP="𝒷",CP="ℬ",EP="⁏",AP="∽",LP="⋍",$P="⧅",MP="\\",NP="⟈",IP="•",PP="•",OP="≎",RP="⪮",zP="≏",DP="≎",FP="≏",HP="Ć",BP="ć",WP="⩄",jP="⩉",qP="⩋",UP="∩",VP="⋒",GP="⩇",XP="⩀",KP="ⅅ",JP="∩︀",YP="⁁",ZP="ˇ",QP="ℭ",eO="⩍",tO="Č",nO="č",rO="Ç",iO="ç",oO="Ĉ",sO="ĉ",lO="∰",aO="⩌",cO="⩐",uO="Ċ",fO="ċ",dO="¸",hO="¸",pO="⦲",gO="¢",mO="·",vO="·",yO="𝔠",bO="ℭ",wO="Ч",xO="ч",SO="✓",_O="✓",kO="Χ",TO="χ",CO="ˆ",EO="≗",AO="↺",LO="↻",$O="⊛",MO="⊚",NO="⊝",IO="⊙",PO="®",OO="Ⓢ",RO="⊖",zO="⊕",DO="⊗",FO="○",HO="⧃",BO="≗",WO="⨐",jO="⫯",qO="⧂",UO="∲",VO="”",GO="’",XO="♣",KO="♣",JO=":",YO="∷",ZO="⩴",QO="≔",eR="≔",tR=",",nR="@",rR="∁",iR="∘",oR="∁",sR="ℂ",lR="≅",aR="⩭",cR="≡",uR="∮",fR="∯",dR="∮",hR="𝕔",pR="ℂ",gR="∐",mR="∐",vR="©",yR="©",bR="℗",wR="∳",xR="↵",SR="✗",_R="⨯",kR="𝒞",TR="𝒸",CR="⫏",ER="⫑",AR="⫐",LR="⫒",$R="⋯",MR="⤸",NR="⤵",IR="⋞",PR="⋟",OR="↶",RR="⤽",zR="⩈",DR="⩆",FR="≍",HR="∪",BR="⋓",WR="⩊",jR="⊍",qR="⩅",UR="∪︀",VR="↷",GR="⤼",XR="⋞",KR="⋟",JR="⋎",YR="⋏",ZR="¤",QR="↶",ez="↷",tz="⋎",nz="⋏",rz="∲",iz="∱",oz="⌭",sz="†",lz="‡",az="ℸ",cz="↓",uz="↡",fz="⇓",dz="‐",hz="⫤",pz="⊣",gz="⤏",mz="˝",vz="Ď",yz="ď",bz="Д",wz="д",xz="‡",Sz="⇊",_z="ⅅ",kz="ⅆ",Tz="⤑",Cz="⩷",Ez="°",Az="∇",Lz="Δ",$z="δ",Mz="⦱",Nz="⥿",Iz="𝔇",Pz="𝔡",Oz="⥥",Rz="⇃",zz="⇂",Dz="´",Fz="˙",Hz="˝",Bz="`",Wz="˜",jz="⋄",qz="⋄",Uz="⋄",Vz="♦",Gz="♦",Xz="¨",Kz="ⅆ",Jz="ϝ",Yz="⋲",Zz="÷",Qz="÷",eD="⋇",tD="⋇",nD="Ђ",rD="ђ",iD="⌞",oD="⌍",sD="$",lD="𝔻",aD="𝕕",cD="¨",uD="˙",fD="⃜",dD="≐",hD="≑",pD="≐",gD="∸",mD="∔",vD="⊡",yD="⌆",bD="∯",wD="¨",xD="⇓",SD="⇐",_D="⇔",kD="⫤",TD="⟸",CD="⟺",ED="⟹",AD="⇒",LD="⊨",$D="⇑",MD="⇕",ND="∥",ID="⤓",PD="↓",OD="↓",RD="⇓",zD="⇵",DD="̑",FD="⇊",HD="⇃",BD="⇂",WD="⥐",jD="⥞",qD="⥖",UD="↽",VD="⥟",GD="⥗",XD="⇁",KD="↧",JD="⊤",YD="⤐",ZD="⌟",QD="⌌",eF="𝒟",tF="𝒹",nF="Ѕ",rF="ѕ",iF="⧶",oF="Đ",sF="đ",lF="⋱",aF="▿",cF="▾",uF="⇵",fF="⥯",dF="⦦",hF="Џ",pF="џ",gF="⟿",mF="É",vF="é",yF="⩮",bF="Ě",wF="ě",xF="Ê",SF="ê",_F="≖",kF="≕",TF="Э",CF="э",EF="⩷",AF="Ė",LF="ė",$F="≑",MF="ⅇ",NF="≒",IF="𝔈",PF="𝔢",OF="⪚",RF="È",zF="è",DF="⪖",FF="⪘",HF="⪙",BF="∈",WF="⏧",jF="ℓ",qF="⪕",UF="⪗",VF="Ē",GF="ē",XF="∅",KF="∅",JF="◻",YF="∅",ZF="▫",QF=" ",e3=" ",t3=" ",n3="Ŋ",r3="ŋ",i3=" ",o3="Ę",s3="ę",l3="𝔼",a3="𝕖",c3="⋕",u3="⧣",f3="⩱",d3="ε",h3="Ε",p3="ε",g3="ϵ",m3="≖",v3="≕",y3="≂",b3="⪖",w3="⪕",x3="⩵",S3="=",_3="≂",k3="≟",T3="⇌",C3="≡",E3="⩸",A3="⧥",L3="⥱",$3="≓",M3="ℯ",N3="ℰ",I3="≐",P3="⩳",O3="≂",R3="Η",z3="η",D3="Ð",F3="ð",H3="Ë",B3="ë",W3="€",j3="!",q3="∃",U3="∃",V3="ℰ",G3="ⅇ",X3="ⅇ",K3="≒",J3="Ф",Y3="ф",Z3="♀",Q3="ffi",eH="ff",tH="ffl",nH="𝔉",rH="𝔣",iH="fi",oH="◼",sH="▪",lH="fj",aH="♭",cH="fl",uH="▱",fH="ƒ",dH="𝔽",hH="𝕗",pH="∀",gH="∀",mH="⋔",vH="⫙",yH="ℱ",bH="⨍",wH="½",xH="⅓",SH="¼",_H="⅕",kH="⅙",TH="⅛",CH="⅔",EH="⅖",AH="¾",LH="⅗",$H="⅜",MH="⅘",NH="⅚",IH="⅝",PH="⅞",OH="⁄",RH="⌢",zH="𝒻",DH="ℱ",FH="ǵ",HH="Γ",BH="γ",WH="Ϝ",jH="ϝ",qH="⪆",UH="Ğ",VH="ğ",GH="Ģ",XH="Ĝ",KH="ĝ",JH="Г",YH="г",ZH="Ġ",QH="ġ",eB="≥",tB="≧",nB="⪌",rB="⋛",iB="≥",oB="≧",sB="⩾",lB="⪩",aB="⩾",cB="⪀",uB="⪂",fB="⪄",dB="⋛︀",hB="⪔",pB="𝔊",gB="𝔤",mB="≫",vB="⋙",yB="⋙",bB="ℷ",wB="Ѓ",xB="ѓ",SB="⪥",_B="≷",kB="⪒",TB="⪤",CB="⪊",EB="⪊",AB="⪈",LB="≩",$B="⪈",MB="≩",NB="⋧",IB="𝔾",PB="𝕘",OB="`",RB="≥",zB="⋛",DB="≧",FB="⪢",HB="≷",BB="⩾",WB="≳",jB="𝒢",qB="ℊ",UB="≳",VB="⪎",GB="⪐",XB="⪧",KB="⩺",JB=">",YB=">",ZB="≫",QB="⋗",e5="⦕",t5="⩼",n5="⪆",r5="⥸",i5="⋗",o5="⋛",s5="⪌",l5="≷",a5="≳",c5="≩︀",u5="≩︀",f5="ˇ",d5=" ",h5="½",p5="ℋ",g5="Ъ",m5="ъ",v5="⥈",y5="↔",b5="⇔",w5="↭",x5="^",S5="ℏ",_5="Ĥ",k5="ĥ",T5="♥",C5="♥",E5="…",A5="⊹",L5="𝔥",$5="ℌ",M5="ℋ",N5="⤥",I5="⤦",P5="⇿",O5="∻",R5="↩",z5="↪",D5="𝕙",F5="ℍ",H5="―",B5="─",W5="𝒽",j5="ℋ",q5="ℏ",U5="Ħ",V5="ħ",G5="≎",X5="≏",K5="⁃",J5="‐",Y5="Í",Z5="í",Q5="⁣",e4="Î",t4="î",n4="И",r4="и",i4="İ",o4="Е",s4="е",l4="¡",a4="⇔",c4="𝔦",u4="ℑ",f4="Ì",d4="ì",h4="ⅈ",p4="⨌",g4="∭",m4="⧜",v4="℩",y4="IJ",b4="ij",w4="Ī",x4="ī",S4="ℑ",_4="ⅈ",k4="ℐ",T4="ℑ",C4="ı",E4="ℑ",A4="⊷",L4="Ƶ",$4="⇒",M4="℅",N4="∞",I4="⧝",P4="ı",O4="⊺",R4="∫",z4="∬",D4="ℤ",F4="∫",H4="⊺",B4="⋂",W4="⨗",j4="⨼",q4="⁣",U4="⁢",V4="Ё",G4="ё",X4="Į",K4="į",J4="𝕀",Y4="𝕚",Z4="Ι",Q4="ι",e8="⨼",t8="¿",n8="𝒾",r8="ℐ",i8="∈",o8="⋵",s8="⋹",l8="⋴",a8="⋳",c8="∈",u8="⁢",f8="Ĩ",d8="ĩ",h8="І",p8="і",g8="Ï",m8="ï",v8="Ĵ",y8="ĵ",b8="Й",w8="й",x8="𝔍",S8="𝔧",_8="ȷ",k8="𝕁",T8="𝕛",C8="𝒥",E8="𝒿",A8="Ј",L8="ј",$8="Є",M8="є",N8="Κ",I8="κ",P8="ϰ",O8="Ķ",R8="ķ",z8="К",D8="к",F8="𝔎",H8="𝔨",B8="ĸ",W8="Х",j8="х",q8="Ќ",U8="ќ",V8="𝕂",G8="𝕜",X8="𝒦",K8="𝓀",J8="⇚",Y8="Ĺ",Z8="ĺ",Q8="⦴",eW="ℒ",tW="Λ",nW="λ",rW="⟨",iW="⟪",oW="⦑",sW="⟨",lW="⪅",aW="ℒ",cW="«",uW="⇤",fW="⤟",dW="←",hW="↞",pW="⇐",gW="⤝",mW="↩",vW="↫",yW="⤹",bW="⥳",wW="↢",xW="⤙",SW="⤛",_W="⪫",kW="⪭",TW="⪭︀",CW="⤌",EW="⤎",AW="❲",LW="{",$W="[",MW="⦋",NW="⦏",IW="⦍",PW="Ľ",OW="ľ",RW="Ļ",zW="ļ",DW="⌈",FW="{",HW="Л",BW="л",WW="⤶",jW="“",qW="„",UW="⥧",VW="⥋",GW="↲",XW="≤",KW="≦",JW="⟨",YW="⇤",ZW="←",QW="←",ej="⇐",tj="⇆",nj="↢",rj="⌈",ij="⟦",oj="⥡",sj="⥙",lj="⇃",aj="⌊",cj="↽",uj="↼",fj="⇇",dj="↔",hj="↔",pj="⇔",gj="⇆",mj="⇋",vj="↭",yj="⥎",bj="↤",wj="⊣",xj="⥚",Sj="⋋",_j="⧏",kj="⊲",Tj="⊴",Cj="⥑",Ej="⥠",Aj="⥘",Lj="↿",$j="⥒",Mj="↼",Nj="⪋",Ij="⋚",Pj="≤",Oj="≦",Rj="⩽",zj="⪨",Dj="⩽",Fj="⩿",Hj="⪁",Bj="⪃",Wj="⋚︀",jj="⪓",qj="⪅",Uj="⋖",Vj="⋚",Gj="⪋",Xj="⋚",Kj="≦",Jj="≶",Yj="≶",Zj="⪡",Qj="≲",eq="⩽",tq="≲",nq="⥼",rq="⌊",iq="𝔏",oq="𝔩",sq="≶",lq="⪑",aq="⥢",cq="↽",uq="↼",fq="⥪",dq="▄",hq="Љ",pq="љ",gq="⇇",mq="≪",vq="⋘",yq="⌞",bq="⇚",wq="⥫",xq="◺",Sq="Ŀ",_q="ŀ",kq="⎰",Tq="⎰",Cq="⪉",Eq="⪉",Aq="⪇",Lq="≨",$q="⪇",Mq="≨",Nq="⋦",Iq="⟬",Pq="⇽",Oq="⟦",Rq="⟵",zq="⟵",Dq="⟸",Fq="⟷",Hq="⟷",Bq="⟺",Wq="⟼",jq="⟶",qq="⟶",Uq="⟹",Vq="↫",Gq="↬",Xq="⦅",Kq="𝕃",Jq="𝕝",Yq="⨭",Zq="⨴",Qq="∗",e6="_",t6="↙",n6="↘",r6="◊",i6="◊",o6="⧫",s6="(",l6="⦓",a6="⇆",c6="⌟",u6="⇋",f6="⥭",d6="‎",h6="⊿",p6="‹",g6="𝓁",m6="ℒ",v6="↰",y6="↰",b6="≲",w6="⪍",x6="⪏",S6="[",_6="‘",k6="‚",T6="Ł",C6="ł",E6="⪦",A6="⩹",L6="<",$6="<",M6="≪",N6="⋖",I6="⋋",P6="⋉",O6="⥶",R6="⩻",z6="◃",D6="⊴",F6="◂",H6="⦖",B6="⥊",W6="⥦",j6="≨︀",q6="≨︀",U6="¯",V6="♂",G6="✠",X6="✠",K6="↦",J6="↦",Y6="↧",Z6="↤",Q6="↥",eU="▮",tU="⨩",nU="М",rU="м",iU="—",oU="∺",sU="∡",lU=" ",aU="ℳ",cU="𝔐",uU="𝔪",fU="℧",dU="µ",hU="*",pU="⫰",gU="∣",mU="·",vU="⊟",yU="−",bU="∸",wU="⨪",xU="∓",SU="⫛",_U="…",kU="∓",TU="⊧",CU="𝕄",EU="𝕞",AU="∓",LU="𝓂",$U="ℳ",MU="∾",NU="Μ",IU="μ",PU="⊸",OU="⊸",RU="∇",zU="Ń",DU="ń",FU="∠⃒",HU="≉",BU="⩰̸",WU="≋̸",jU="ʼn",qU="≉",UU="♮",VU="ℕ",GU="♮",XU=" ",KU="≎̸",JU="≏̸",YU="⩃",ZU="Ň",QU="ň",e9="Ņ",t9="ņ",n9="≇",r9="⩭̸",i9="⩂",o9="Н",s9="н",l9="–",a9="⤤",c9="↗",u9="⇗",f9="↗",d9="≠",h9="≐̸",p9="​",g9="​",m9="​",v9="​",y9="≢",b9="⤨",w9="≂̸",x9="≫",S9="≪",_9=`
24
+ `,k9="∄",T9="∄",C9="𝔑",E9="𝔫",A9="≧̸",L9="≱",$9="≱",M9="≧̸",N9="⩾̸",I9="⩾̸",P9="⋙̸",O9="≵",R9="≫⃒",z9="≯",D9="≯",F9="≫̸",H9="↮",B9="⇎",W9="⫲",j9="∋",q9="⋼",U9="⋺",V9="∋",G9="Њ",X9="њ",K9="↚",J9="⇍",Y9="‥",Z9="≦̸",Q9="≰",eV="↚",tV="⇍",nV="↮",rV="⇎",iV="≰",oV="≦̸",sV="⩽̸",lV="⩽̸",aV="≮",cV="⋘̸",uV="≴",fV="≪⃒",dV="≮",hV="⋪",pV="⋬",gV="≪̸",mV="∤",vV="⁠",yV=" ",bV="𝕟",wV="ℕ",xV="⫬",SV="¬",_V="≢",kV="≭",TV="∦",CV="∉",EV="≠",AV="≂̸",LV="∄",$V="≯",MV="≱",NV="≧̸",IV="≫̸",PV="≹",OV="⩾̸",RV="≵",zV="≎̸",DV="≏̸",FV="∉",HV="⋵̸",BV="⋹̸",WV="∉",jV="⋷",qV="⋶",UV="⧏̸",VV="⋪",GV="⋬",XV="≮",KV="≰",JV="≸",YV="≪̸",ZV="⩽̸",QV="≴",eG="⪢̸",tG="⪡̸",nG="∌",rG="∌",iG="⋾",oG="⋽",sG="⊀",lG="⪯̸",aG="⋠",cG="∌",uG="⧐̸",fG="⋫",dG="⋭",hG="⊏̸",pG="⋢",gG="⊐̸",mG="⋣",vG="⊂⃒",yG="⊈",bG="⊁",wG="⪰̸",xG="⋡",SG="≿̸",_G="⊃⃒",kG="⊉",TG="≁",CG="≄",EG="≇",AG="≉",LG="∤",$G="∦",MG="∦",NG="⫽⃥",IG="∂̸",PG="⨔",OG="⊀",RG="⋠",zG="⊀",DG="⪯̸",FG="⪯̸",HG="⤳̸",BG="↛",WG="⇏",jG="↝̸",qG="↛",UG="⇏",VG="⋫",GG="⋭",XG="⊁",KG="⋡",JG="⪰̸",YG="𝒩",ZG="𝓃",QG="∤",e7="∦",t7="≁",n7="≄",r7="≄",i7="∤",o7="∦",s7="⋢",l7="⋣",a7="⊄",c7="⫅̸",u7="⊈",f7="⊂⃒",d7="⊈",h7="⫅̸",p7="⊁",g7="⪰̸",m7="⊅",v7="⫆̸",y7="⊉",b7="⊃⃒",w7="⊉",x7="⫆̸",S7="≹",_7="Ñ",k7="ñ",T7="≸",C7="⋪",E7="⋬",A7="⋫",L7="⋭",$7="Ν",M7="ν",N7="#",I7="№",P7=" ",O7="≍⃒",R7="⊬",z7="⊭",D7="⊮",F7="⊯",H7="≥⃒",B7=">⃒",W7="⤄",j7="⧞",q7="⤂",U7="≤⃒",V7="<⃒",G7="⊴⃒",X7="⤃",K7="⊵⃒",J7="∼⃒",Y7="⤣",Z7="↖",Q7="⇖",eX="↖",tX="⤧",nX="Ó",rX="ó",iX="⊛",oX="Ô",sX="ô",lX="⊚",aX="О",cX="о",uX="⊝",fX="Ő",dX="ő",hX="⨸",pX="⊙",gX="⦼",mX="Œ",vX="œ",yX="⦿",bX="𝔒",wX="𝔬",xX="˛",SX="Ò",_X="ò",kX="⧁",TX="⦵",CX="Ω",EX="∮",AX="↺",LX="⦾",$X="⦻",MX="‾",NX="⧀",IX="Ō",PX="ō",OX="Ω",RX="ω",zX="Ο",DX="ο",FX="⦶",HX="⊖",BX="𝕆",WX="𝕠",jX="⦷",qX="“",UX="‘",VX="⦹",GX="⊕",XX="↻",KX="⩔",JX="∨",YX="⩝",ZX="ℴ",QX="ℴ",eK="ª",tK="º",nK="⊶",rK="⩖",iK="⩗",oK="⩛",sK="Ⓢ",lK="𝒪",aK="ℴ",cK="Ø",uK="ø",fK="⊘",dK="Õ",hK="õ",pK="⨶",gK="⨷",mK="⊗",vK="Ö",yK="ö",bK="⌽",wK="‾",xK="⏞",SK="⎴",_K="⏜",kK="¶",TK="∥",CK="∥",EK="⫳",AK="⫽",LK="∂",$K="∂",MK="П",NK="п",IK="%",PK=".",OK="‰",RK="⊥",zK="‱",DK="𝔓",FK="𝔭",HK="Φ",BK="φ",WK="ϕ",jK="ℳ",qK="☎",UK="Π",VK="π",GK="⋔",XK="ϖ",KK="ℏ",JK="ℎ",YK="ℏ",ZK="⨣",QK="⊞",eJ="⨢",tJ="+",nJ="∔",rJ="⨥",iJ="⩲",oJ="±",sJ="±",lJ="⨦",aJ="⨧",cJ="±",uJ="ℌ",fJ="⨕",dJ="𝕡",hJ="ℙ",pJ="£",gJ="⪷",mJ="⪻",vJ="≺",yJ="≼",bJ="⪷",wJ="≺",xJ="≼",SJ="≺",_J="⪯",kJ="≼",TJ="≾",CJ="⪯",EJ="⪹",AJ="⪵",LJ="⋨",$J="⪯",MJ="⪳",NJ="≾",IJ="′",PJ="″",OJ="ℙ",RJ="⪹",zJ="⪵",DJ="⋨",FJ="∏",HJ="∏",BJ="⌮",WJ="⌒",jJ="⌓",qJ="∝",UJ="∝",VJ="∷",GJ="∝",XJ="≾",KJ="⊰",JJ="𝒫",YJ="𝓅",ZJ="Ψ",QJ="ψ",eY=" ",tY="𝔔",nY="𝔮",rY="⨌",iY="𝕢",oY="ℚ",sY="⁗",lY="𝒬",aY="𝓆",cY="ℍ",uY="⨖",fY="?",dY="≟",hY='"',pY='"',gY="⇛",mY="∽̱",vY="Ŕ",yY="ŕ",bY="√",wY="⦳",xY="⟩",SY="⟫",_Y="⦒",kY="⦥",TY="⟩",CY="»",EY="⥵",AY="⇥",LY="⤠",$Y="⤳",MY="→",NY="↠",IY="⇒",PY="⤞",OY="↪",RY="↬",zY="⥅",DY="⥴",FY="⤖",HY="↣",BY="↝",WY="⤚",jY="⤜",qY="∶",UY="ℚ",VY="⤍",GY="⤏",XY="⤐",KY="❳",JY="}",YY="]",ZY="⦌",QY="⦎",eZ="⦐",tZ="Ř",nZ="ř",rZ="Ŗ",iZ="ŗ",oZ="⌉",sZ="}",lZ="Р",aZ="р",cZ="⤷",uZ="⥩",fZ="”",dZ="”",hZ="↳",pZ="ℜ",gZ="ℛ",mZ="ℜ",vZ="ℝ",yZ="ℜ",bZ="▭",wZ="®",xZ="®",SZ="∋",_Z="⇋",kZ="⥯",TZ="⥽",CZ="⌋",EZ="𝔯",AZ="ℜ",LZ="⥤",$Z="⇁",MZ="⇀",NZ="⥬",IZ="Ρ",PZ="ρ",OZ="ϱ",RZ="⟩",zZ="⇥",DZ="→",FZ="→",HZ="⇒",BZ="⇄",WZ="↣",jZ="⌉",qZ="⟧",UZ="⥝",VZ="⥕",GZ="⇂",XZ="⌋",KZ="⇁",JZ="⇀",YZ="⇄",ZZ="⇌",QZ="⇉",eQ="↝",tQ="↦",nQ="⊢",rQ="⥛",iQ="⋌",oQ="⧐",sQ="⊳",lQ="⊵",aQ="⥏",cQ="⥜",uQ="⥔",fQ="↾",dQ="⥓",hQ="⇀",pQ="˚",gQ="≓",mQ="⇄",vQ="⇌",yQ="‏",bQ="⎱",wQ="⎱",xQ="⫮",SQ="⟭",_Q="⇾",kQ="⟧",TQ="⦆",CQ="𝕣",EQ="ℝ",AQ="⨮",LQ="⨵",$Q="⥰",MQ=")",NQ="⦔",IQ="⨒",PQ="⇉",OQ="⇛",RQ="›",zQ="𝓇",DQ="ℛ",FQ="↱",HQ="↱",BQ="]",WQ="’",jQ="’",qQ="⋌",UQ="⋊",VQ="▹",GQ="⊵",XQ="▸",KQ="⧎",JQ="⧴",YQ="⥨",ZQ="℞",QQ="Ś",eee="ś",tee="‚",nee="⪸",ree="Š",iee="š",oee="⪼",see="≻",lee="≽",aee="⪰",cee="⪴",uee="Ş",fee="ş",dee="Ŝ",hee="ŝ",pee="⪺",gee="⪶",mee="⋩",vee="⨓",yee="≿",bee="С",wee="с",xee="⊡",See="⋅",_ee="⩦",kee="⤥",Tee="↘",Cee="⇘",Eee="↘",Aee="§",Lee=";",$ee="⤩",Mee="∖",Nee="∖",Iee="✶",Pee="𝔖",Oee="𝔰",Ree="⌢",zee="♯",Dee="Щ",Fee="щ",Hee="Ш",Bee="ш",Wee="↓",jee="←",qee="∣",Uee="∥",Vee="→",Gee="↑",Xee="­",Kee="Σ",Jee="σ",Yee="ς",Zee="ς",Qee="∼",ete="⩪",tte="≃",nte="≃",rte="⪞",ite="⪠",ote="⪝",ste="⪟",lte="≆",ate="⨤",cte="⥲",ute="←",fte="∘",dte="∖",hte="⨳",pte="⧤",gte="∣",mte="⌣",vte="⪪",yte="⪬",bte="⪬︀",wte="Ь",xte="ь",Ste="⌿",_te="⧄",kte="/",Tte="𝕊",Cte="𝕤",Ete="♠",Ate="♠",Lte="∥",$te="⊓",Mte="⊓︀",Nte="⊔",Ite="⊔︀",Pte="√",Ote="⊏",Rte="⊑",zte="⊏",Dte="⊑",Fte="⊐",Hte="⊒",Bte="⊐",Wte="⊒",jte="□",qte="□",Ute="⊓",Vte="⊏",Gte="⊑",Xte="⊐",Kte="⊒",Jte="⊔",Yte="▪",Zte="□",Qte="▪",ene="→",tne="𝒮",nne="𝓈",rne="∖",ine="⌣",one="⋆",sne="⋆",lne="☆",ane="★",cne="ϵ",une="ϕ",fne="¯",dne="⊂",hne="⋐",pne="⪽",gne="⫅",mne="⊆",vne="⫃",yne="⫁",bne="⫋",wne="⊊",xne="⪿",Sne="⥹",_ne="⊂",kne="⋐",Tne="⊆",Cne="⫅",Ene="⊆",Ane="⊊",Lne="⫋",$ne="⫇",Mne="⫕",Nne="⫓",Ine="⪸",Pne="≻",One="≽",Rne="≻",zne="⪰",Dne="≽",Fne="≿",Hne="⪰",Bne="⪺",Wne="⪶",jne="⋩",qne="≿",Une="∋",Vne="∑",Gne="∑",Xne="♪",Kne="¹",Jne="²",Yne="³",Zne="⊃",Qne="⋑",ere="⪾",tre="⫘",nre="⫆",rre="⊇",ire="⫄",ore="⊃",sre="⊇",lre="⟉",are="⫗",cre="⥻",ure="⫂",fre="⫌",dre="⊋",hre="⫀",pre="⊃",gre="⋑",mre="⊇",vre="⫆",yre="⊋",bre="⫌",wre="⫈",xre="⫔",Sre="⫖",_re="⤦",kre="↙",Tre="⇙",Cre="↙",Ere="⤪",Are="ß",Lre=" ",$re="⌖",Mre="Τ",Nre="τ",Ire="⎴",Pre="Ť",Ore="ť",Rre="Ţ",zre="ţ",Dre="Т",Fre="т",Hre="⃛",Bre="⌕",Wre="𝔗",jre="𝔱",qre="∴",Ure="∴",Vre="∴",Gre="Θ",Xre="θ",Kre="ϑ",Jre="ϑ",Yre="≈",Zre="∼",Qre="  ",eie=" ",tie=" ",nie="≈",rie="∼",iie="Þ",oie="þ",sie="˜",lie="∼",aie="≃",cie="≅",uie="≈",fie="⨱",die="⊠",hie="×",pie="⨰",gie="∭",mie="⤨",vie="⌶",yie="⫱",bie="⊤",wie="𝕋",xie="𝕥",Sie="⫚",_ie="⤩",kie="‴",Tie="™",Cie="™",Eie="▵",Aie="▿",Lie="◃",$ie="⊴",Mie="≜",Nie="▹",Iie="⊵",Pie="◬",Oie="≜",Rie="⨺",zie="⃛",Die="⨹",Fie="⧍",Hie="⨻",Bie="⏢",Wie="𝒯",jie="𝓉",qie="Ц",Uie="ц",Vie="Ћ",Gie="ћ",Xie="Ŧ",Kie="ŧ",Jie="≬",Yie="↞",Zie="↠",Qie="Ú",eoe="ú",toe="↑",noe="↟",roe="⇑",ioe="⥉",ooe="Ў",soe="ў",loe="Ŭ",aoe="ŭ",coe="Û",uoe="û",foe="У",doe="у",hoe="⇅",poe="Ű",goe="ű",moe="⥮",voe="⥾",yoe="𝔘",boe="𝔲",woe="Ù",xoe="ù",Soe="⥣",_oe="↿",koe="↾",Toe="▀",Coe="⌜",Eoe="⌜",Aoe="⌏",Loe="◸",$oe="Ū",Moe="ū",Noe="¨",Ioe="_",Poe="⏟",Ooe="⎵",Roe="⏝",zoe="⋃",Doe="⊎",Foe="Ų",Hoe="ų",Boe="𝕌",Woe="𝕦",joe="⤒",qoe="↑",Uoe="↑",Voe="⇑",Goe="⇅",Xoe="↕",Koe="↕",Joe="⇕",Yoe="⥮",Zoe="↿",Qoe="↾",ese="⊎",tse="↖",nse="↗",rse="υ",ise="ϒ",ose="ϒ",sse="Υ",lse="υ",ase="↥",cse="⊥",use="⇈",fse="⌝",dse="⌝",hse="⌎",pse="Ů",gse="ů",mse="◹",vse="𝒰",yse="𝓊",bse="⋰",wse="Ũ",xse="ũ",Sse="▵",_se="▴",kse="⇈",Tse="Ü",Cse="ü",Ese="⦧",Ase="⦜",Lse="ϵ",$se="ϰ",Mse="∅",Nse="ϕ",Ise="ϖ",Pse="∝",Ose="↕",Rse="⇕",zse="ϱ",Dse="ς",Fse="⊊︀",Hse="⫋︀",Bse="⊋︀",Wse="⫌︀",jse="ϑ",qse="⊲",Use="⊳",Vse="⫨",Gse="⫫",Xse="⫩",Kse="В",Jse="в",Yse="⊢",Zse="⊨",Qse="⊩",ele="⊫",tle="⫦",nle="⊻",rle="∨",ile="⋁",ole="≚",sle="⋮",lle="|",ale="‖",cle="|",ule="‖",fle="∣",dle="|",hle="❘",ple="≀",gle=" ",mle="𝔙",vle="𝔳",yle="⊲",ble="⊂⃒",wle="⊃⃒",xle="𝕍",Sle="𝕧",_le="∝",kle="⊳",Tle="𝒱",Cle="𝓋",Ele="⫋︀",Ale="⊊︀",Lle="⫌︀",$le="⊋︀",Mle="⊪",Nle="⦚",Ile="Ŵ",Ple="ŵ",Ole="⩟",Rle="∧",zle="⋀",Dle="≙",Fle="℘",Hle="𝔚",Ble="𝔴",Wle="𝕎",jle="𝕨",qle="℘",Ule="≀",Vle="≀",Gle="𝒲",Xle="𝓌",Kle="⋂",Jle="◯",Yle="⋃",Zle="▽",Qle="𝔛",eae="𝔵",tae="⟷",nae="⟺",rae="Ξ",iae="ξ",oae="⟵",sae="⟸",lae="⟼",aae="⋻",cae="⨀",uae="𝕏",fae="𝕩",dae="⨁",hae="⨂",pae="⟶",gae="⟹",mae="𝒳",vae="𝓍",yae="⨆",bae="⨄",wae="△",xae="⋁",Sae="⋀",_ae="Ý",kae="ý",Tae="Я",Cae="я",Eae="Ŷ",Aae="ŷ",Lae="Ы",$ae="ы",Mae="¥",Nae="𝔜",Iae="𝔶",Pae="Ї",Oae="ї",Rae="𝕐",zae="𝕪",Dae="𝒴",Fae="𝓎",Hae="Ю",Bae="ю",Wae="ÿ",jae="Ÿ",qae="Ź",Uae="ź",Vae="Ž",Gae="ž",Xae="З",Kae="з",Jae="Ż",Yae="ż",Zae="ℨ",Qae="​",ece="Ζ",tce="ζ",nce="𝔷",rce="ℨ",ice="Ж",oce="ж",sce="⇝",lce="𝕫",ace="ℤ",cce="𝒵",uce="𝓏",fce="‍",dce="‌",Zx={Aacute:JM,aacute:YM,Abreve:ZM,abreve:QM,ac:eN,acd:tN,acE:nN,Acirc:rN,acirc:iN,acute:oN,Acy:sN,acy:lN,AElig:aN,aelig:cN,af:uN,Afr:fN,afr:dN,Agrave:hN,agrave:pN,alefsym:gN,aleph:mN,Alpha:vN,alpha:yN,Amacr:bN,amacr:wN,amalg:xN,amp:SN,AMP:_N,andand:kN,And:TN,and:CN,andd:EN,andslope:AN,andv:LN,ang:$N,ange:MN,angle:NN,angmsdaa:IN,angmsdab:PN,angmsdac:ON,angmsdad:RN,angmsdae:zN,angmsdaf:DN,angmsdag:FN,angmsdah:HN,angmsd:BN,angrt:WN,angrtvb:jN,angrtvbd:qN,angsph:UN,angst:VN,angzarr:GN,Aogon:XN,aogon:KN,Aopf:JN,aopf:YN,apacir:ZN,ap:QN,apE:e2,ape:t2,apid:n2,apos:r2,ApplyFunction:i2,approx:o2,approxeq:s2,Aring:l2,aring:a2,Ascr:c2,ascr:u2,Assign:f2,ast:d2,asymp:h2,asympeq:p2,Atilde:g2,atilde:m2,Auml:v2,auml:y2,awconint:b2,awint:w2,backcong:x2,backepsilon:S2,backprime:_2,backsim:k2,backsimeq:T2,Backslash:C2,Barv:E2,barvee:A2,barwed:L2,Barwed:$2,barwedge:M2,bbrk:N2,bbrktbrk:I2,bcong:P2,Bcy:O2,bcy:R2,bdquo:z2,becaus:D2,because:F2,Because:H2,bemptyv:B2,bepsi:W2,bernou:j2,Bernoullis:q2,Beta:U2,beta:V2,beth:G2,between:X2,Bfr:K2,bfr:J2,bigcap:Y2,bigcirc:Z2,bigcup:Q2,bigodot:eI,bigoplus:tI,bigotimes:nI,bigsqcup:rI,bigstar:iI,bigtriangledown:oI,bigtriangleup:sI,biguplus:lI,bigvee:aI,bigwedge:cI,bkarow:uI,blacklozenge:fI,blacksquare:dI,blacktriangle:hI,blacktriangledown:pI,blacktriangleleft:gI,blacktriangleright:mI,blank:vI,blk12:yI,blk14:bI,blk34:wI,block:xI,bne:SI,bnequiv:_I,bNot:kI,bnot:TI,Bopf:CI,bopf:EI,bot:AI,bottom:LI,bowtie:$I,boxbox:MI,boxdl:NI,boxdL:II,boxDl:PI,boxDL:OI,boxdr:RI,boxdR:zI,boxDr:DI,boxDR:FI,boxh:HI,boxH:BI,boxhd:WI,boxHd:jI,boxhD:qI,boxHD:UI,boxhu:VI,boxHu:GI,boxhU:XI,boxHU:KI,boxminus:JI,boxplus:YI,boxtimes:ZI,boxul:QI,boxuL:eP,boxUl:tP,boxUL:nP,boxur:rP,boxuR:iP,boxUr:oP,boxUR:sP,boxv:lP,boxV:aP,boxvh:cP,boxvH:uP,boxVh:fP,boxVH:dP,boxvl:hP,boxvL:pP,boxVl:gP,boxVL:mP,boxvr:vP,boxvR:yP,boxVr:bP,boxVR:wP,bprime:xP,breve:SP,Breve:_P,brvbar:kP,bscr:TP,Bscr:CP,bsemi:EP,bsim:AP,bsime:LP,bsolb:$P,bsol:MP,bsolhsub:NP,bull:IP,bullet:PP,bump:OP,bumpE:RP,bumpe:zP,Bumpeq:DP,bumpeq:FP,Cacute:HP,cacute:BP,capand:WP,capbrcup:jP,capcap:qP,cap:UP,Cap:VP,capcup:GP,capdot:XP,CapitalDifferentialD:KP,caps:JP,caret:YP,caron:ZP,Cayleys:QP,ccaps:eO,Ccaron:tO,ccaron:nO,Ccedil:rO,ccedil:iO,Ccirc:oO,ccirc:sO,Cconint:lO,ccups:aO,ccupssm:cO,Cdot:uO,cdot:fO,cedil:dO,Cedilla:hO,cemptyv:pO,cent:gO,centerdot:mO,CenterDot:vO,cfr:yO,Cfr:bO,CHcy:wO,chcy:xO,check:SO,checkmark:_O,Chi:kO,chi:TO,circ:CO,circeq:EO,circlearrowleft:AO,circlearrowright:LO,circledast:$O,circledcirc:MO,circleddash:NO,CircleDot:IO,circledR:PO,circledS:OO,CircleMinus:RO,CirclePlus:zO,CircleTimes:DO,cir:FO,cirE:HO,cire:BO,cirfnint:WO,cirmid:jO,cirscir:qO,ClockwiseContourIntegral:UO,CloseCurlyDoubleQuote:VO,CloseCurlyQuote:GO,clubs:XO,clubsuit:KO,colon:JO,Colon:YO,Colone:ZO,colone:QO,coloneq:eR,comma:tR,commat:nR,comp:rR,compfn:iR,complement:oR,complexes:sR,cong:lR,congdot:aR,Congruent:cR,conint:uR,Conint:fR,ContourIntegral:dR,copf:hR,Copf:pR,coprod:gR,Coproduct:mR,copy:vR,COPY:yR,copysr:bR,CounterClockwiseContourIntegral:wR,crarr:xR,cross:SR,Cross:_R,Cscr:kR,cscr:TR,csub:CR,csube:ER,csup:AR,csupe:LR,ctdot:$R,cudarrl:MR,cudarrr:NR,cuepr:IR,cuesc:PR,cularr:OR,cularrp:RR,cupbrcap:zR,cupcap:DR,CupCap:FR,cup:HR,Cup:BR,cupcup:WR,cupdot:jR,cupor:qR,cups:UR,curarr:VR,curarrm:GR,curlyeqprec:XR,curlyeqsucc:KR,curlyvee:JR,curlywedge:YR,curren:ZR,curvearrowleft:QR,curvearrowright:ez,cuvee:tz,cuwed:nz,cwconint:rz,cwint:iz,cylcty:oz,dagger:sz,Dagger:lz,daleth:az,darr:cz,Darr:uz,dArr:fz,dash:dz,Dashv:hz,dashv:pz,dbkarow:gz,dblac:mz,Dcaron:vz,dcaron:yz,Dcy:bz,dcy:wz,ddagger:xz,ddarr:Sz,DD:_z,dd:kz,DDotrahd:Tz,ddotseq:Cz,deg:Ez,Del:Az,Delta:Lz,delta:$z,demptyv:Mz,dfisht:Nz,Dfr:Iz,dfr:Pz,dHar:Oz,dharl:Rz,dharr:zz,DiacriticalAcute:Dz,DiacriticalDot:Fz,DiacriticalDoubleAcute:Hz,DiacriticalGrave:Bz,DiacriticalTilde:Wz,diam:jz,diamond:qz,Diamond:Uz,diamondsuit:Vz,diams:Gz,die:Xz,DifferentialD:Kz,digamma:Jz,disin:Yz,div:Zz,divide:Qz,divideontimes:eD,divonx:tD,DJcy:nD,djcy:rD,dlcorn:iD,dlcrop:oD,dollar:sD,Dopf:lD,dopf:aD,Dot:cD,dot:uD,DotDot:fD,doteq:dD,doteqdot:hD,DotEqual:pD,dotminus:gD,dotplus:mD,dotsquare:vD,doublebarwedge:yD,DoubleContourIntegral:bD,DoubleDot:wD,DoubleDownArrow:xD,DoubleLeftArrow:SD,DoubleLeftRightArrow:_D,DoubleLeftTee:kD,DoubleLongLeftArrow:TD,DoubleLongLeftRightArrow:CD,DoubleLongRightArrow:ED,DoubleRightArrow:AD,DoubleRightTee:LD,DoubleUpArrow:$D,DoubleUpDownArrow:MD,DoubleVerticalBar:ND,DownArrowBar:ID,downarrow:PD,DownArrow:OD,Downarrow:RD,DownArrowUpArrow:zD,DownBreve:DD,downdownarrows:FD,downharpoonleft:HD,downharpoonright:BD,DownLeftRightVector:WD,DownLeftTeeVector:jD,DownLeftVectorBar:qD,DownLeftVector:UD,DownRightTeeVector:VD,DownRightVectorBar:GD,DownRightVector:XD,DownTeeArrow:KD,DownTee:JD,drbkarow:YD,drcorn:ZD,drcrop:QD,Dscr:eF,dscr:tF,DScy:nF,dscy:rF,dsol:iF,Dstrok:oF,dstrok:sF,dtdot:lF,dtri:aF,dtrif:cF,duarr:uF,duhar:fF,dwangle:dF,DZcy:hF,dzcy:pF,dzigrarr:gF,Eacute:mF,eacute:vF,easter:yF,Ecaron:bF,ecaron:wF,Ecirc:xF,ecirc:SF,ecir:_F,ecolon:kF,Ecy:TF,ecy:CF,eDDot:EF,Edot:AF,edot:LF,eDot:$F,ee:MF,efDot:NF,Efr:IF,efr:PF,eg:OF,Egrave:RF,egrave:zF,egs:DF,egsdot:FF,el:HF,Element:BF,elinters:WF,ell:jF,els:qF,elsdot:UF,Emacr:VF,emacr:GF,empty:XF,emptyset:KF,EmptySmallSquare:JF,emptyv:YF,EmptyVerySmallSquare:ZF,emsp13:QF,emsp14:e3,emsp:t3,ENG:n3,eng:r3,ensp:i3,Eogon:o3,eogon:s3,Eopf:l3,eopf:a3,epar:c3,eparsl:u3,eplus:f3,epsi:d3,Epsilon:h3,epsilon:p3,epsiv:g3,eqcirc:m3,eqcolon:v3,eqsim:y3,eqslantgtr:b3,eqslantless:w3,Equal:x3,equals:S3,EqualTilde:_3,equest:k3,Equilibrium:T3,equiv:C3,equivDD:E3,eqvparsl:A3,erarr:L3,erDot:$3,escr:M3,Escr:N3,esdot:I3,Esim:P3,esim:O3,Eta:R3,eta:z3,ETH:D3,eth:F3,Euml:H3,euml:B3,euro:W3,excl:j3,exist:q3,Exists:U3,expectation:V3,exponentiale:G3,ExponentialE:X3,fallingdotseq:K3,Fcy:J3,fcy:Y3,female:Z3,ffilig:Q3,fflig:eH,ffllig:tH,Ffr:nH,ffr:rH,filig:iH,FilledSmallSquare:oH,FilledVerySmallSquare:sH,fjlig:lH,flat:aH,fllig:cH,fltns:uH,fnof:fH,Fopf:dH,fopf:hH,forall:pH,ForAll:gH,fork:mH,forkv:vH,Fouriertrf:yH,fpartint:bH,frac12:wH,frac13:xH,frac14:SH,frac15:_H,frac16:kH,frac18:TH,frac23:CH,frac25:EH,frac34:AH,frac35:LH,frac38:$H,frac45:MH,frac56:NH,frac58:IH,frac78:PH,frasl:OH,frown:RH,fscr:zH,Fscr:DH,gacute:FH,Gamma:HH,gamma:BH,Gammad:WH,gammad:jH,gap:qH,Gbreve:UH,gbreve:VH,Gcedil:GH,Gcirc:XH,gcirc:KH,Gcy:JH,gcy:YH,Gdot:ZH,gdot:QH,ge:eB,gE:tB,gEl:nB,gel:rB,geq:iB,geqq:oB,geqslant:sB,gescc:lB,ges:aB,gesdot:cB,gesdoto:uB,gesdotol:fB,gesl:dB,gesles:hB,Gfr:pB,gfr:gB,gg:mB,Gg:vB,ggg:yB,gimel:bB,GJcy:wB,gjcy:xB,gla:SB,gl:_B,glE:kB,glj:TB,gnap:CB,gnapprox:EB,gne:AB,gnE:LB,gneq:$B,gneqq:MB,gnsim:NB,Gopf:IB,gopf:PB,grave:OB,GreaterEqual:RB,GreaterEqualLess:zB,GreaterFullEqual:DB,GreaterGreater:FB,GreaterLess:HB,GreaterSlantEqual:BB,GreaterTilde:WB,Gscr:jB,gscr:qB,gsim:UB,gsime:VB,gsiml:GB,gtcc:XB,gtcir:KB,gt:JB,GT:YB,Gt:ZB,gtdot:QB,gtlPar:e5,gtquest:t5,gtrapprox:n5,gtrarr:r5,gtrdot:i5,gtreqless:o5,gtreqqless:s5,gtrless:l5,gtrsim:a5,gvertneqq:c5,gvnE:u5,Hacek:f5,hairsp:d5,half:h5,hamilt:p5,HARDcy:g5,hardcy:m5,harrcir:v5,harr:y5,hArr:b5,harrw:w5,Hat:x5,hbar:S5,Hcirc:_5,hcirc:k5,hearts:T5,heartsuit:C5,hellip:E5,hercon:A5,hfr:L5,Hfr:$5,HilbertSpace:M5,hksearow:N5,hkswarow:I5,hoarr:P5,homtht:O5,hookleftarrow:R5,hookrightarrow:z5,hopf:D5,Hopf:F5,horbar:H5,HorizontalLine:B5,hscr:W5,Hscr:j5,hslash:q5,Hstrok:U5,hstrok:V5,HumpDownHump:G5,HumpEqual:X5,hybull:K5,hyphen:J5,Iacute:Y5,iacute:Z5,ic:Q5,Icirc:e4,icirc:t4,Icy:n4,icy:r4,Idot:i4,IEcy:o4,iecy:s4,iexcl:l4,iff:a4,ifr:c4,Ifr:u4,Igrave:f4,igrave:d4,ii:h4,iiiint:p4,iiint:g4,iinfin:m4,iiota:v4,IJlig:y4,ijlig:b4,Imacr:w4,imacr:x4,image:S4,ImaginaryI:_4,imagline:k4,imagpart:T4,imath:C4,Im:E4,imof:A4,imped:L4,Implies:$4,incare:M4,in:"∈",infin:N4,infintie:I4,inodot:P4,intcal:O4,int:R4,Int:z4,integers:D4,Integral:F4,intercal:H4,Intersection:B4,intlarhk:W4,intprod:j4,InvisibleComma:q4,InvisibleTimes:U4,IOcy:V4,iocy:G4,Iogon:X4,iogon:K4,Iopf:J4,iopf:Y4,Iota:Z4,iota:Q4,iprod:e8,iquest:t8,iscr:n8,Iscr:r8,isin:i8,isindot:o8,isinE:s8,isins:l8,isinsv:a8,isinv:c8,it:u8,Itilde:f8,itilde:d8,Iukcy:h8,iukcy:p8,Iuml:g8,iuml:m8,Jcirc:v8,jcirc:y8,Jcy:b8,jcy:w8,Jfr:x8,jfr:S8,jmath:_8,Jopf:k8,jopf:T8,Jscr:C8,jscr:E8,Jsercy:A8,jsercy:L8,Jukcy:$8,jukcy:M8,Kappa:N8,kappa:I8,kappav:P8,Kcedil:O8,kcedil:R8,Kcy:z8,kcy:D8,Kfr:F8,kfr:H8,kgreen:B8,KHcy:W8,khcy:j8,KJcy:q8,kjcy:U8,Kopf:V8,kopf:G8,Kscr:X8,kscr:K8,lAarr:J8,Lacute:Y8,lacute:Z8,laemptyv:Q8,lagran:eW,Lambda:tW,lambda:nW,lang:rW,Lang:iW,langd:oW,langle:sW,lap:lW,Laplacetrf:aW,laquo:cW,larrb:uW,larrbfs:fW,larr:dW,Larr:hW,lArr:pW,larrfs:gW,larrhk:mW,larrlp:vW,larrpl:yW,larrsim:bW,larrtl:wW,latail:xW,lAtail:SW,lat:_W,late:kW,lates:TW,lbarr:CW,lBarr:EW,lbbrk:AW,lbrace:LW,lbrack:$W,lbrke:MW,lbrksld:NW,lbrkslu:IW,Lcaron:PW,lcaron:OW,Lcedil:RW,lcedil:zW,lceil:DW,lcub:FW,Lcy:HW,lcy:BW,ldca:WW,ldquo:jW,ldquor:qW,ldrdhar:UW,ldrushar:VW,ldsh:GW,le:XW,lE:KW,LeftAngleBracket:JW,LeftArrowBar:YW,leftarrow:ZW,LeftArrow:QW,Leftarrow:ej,LeftArrowRightArrow:tj,leftarrowtail:nj,LeftCeiling:rj,LeftDoubleBracket:ij,LeftDownTeeVector:oj,LeftDownVectorBar:sj,LeftDownVector:lj,LeftFloor:aj,leftharpoondown:cj,leftharpoonup:uj,leftleftarrows:fj,leftrightarrow:dj,LeftRightArrow:hj,Leftrightarrow:pj,leftrightarrows:gj,leftrightharpoons:mj,leftrightsquigarrow:vj,LeftRightVector:yj,LeftTeeArrow:bj,LeftTee:wj,LeftTeeVector:xj,leftthreetimes:Sj,LeftTriangleBar:_j,LeftTriangle:kj,LeftTriangleEqual:Tj,LeftUpDownVector:Cj,LeftUpTeeVector:Ej,LeftUpVectorBar:Aj,LeftUpVector:Lj,LeftVectorBar:$j,LeftVector:Mj,lEg:Nj,leg:Ij,leq:Pj,leqq:Oj,leqslant:Rj,lescc:zj,les:Dj,lesdot:Fj,lesdoto:Hj,lesdotor:Bj,lesg:Wj,lesges:jj,lessapprox:qj,lessdot:Uj,lesseqgtr:Vj,lesseqqgtr:Gj,LessEqualGreater:Xj,LessFullEqual:Kj,LessGreater:Jj,lessgtr:Yj,LessLess:Zj,lesssim:Qj,LessSlantEqual:eq,LessTilde:tq,lfisht:nq,lfloor:rq,Lfr:iq,lfr:oq,lg:sq,lgE:lq,lHar:aq,lhard:cq,lharu:uq,lharul:fq,lhblk:dq,LJcy:hq,ljcy:pq,llarr:gq,ll:mq,Ll:vq,llcorner:yq,Lleftarrow:bq,llhard:wq,lltri:xq,Lmidot:Sq,lmidot:_q,lmoustache:kq,lmoust:Tq,lnap:Cq,lnapprox:Eq,lne:Aq,lnE:Lq,lneq:$q,lneqq:Mq,lnsim:Nq,loang:Iq,loarr:Pq,lobrk:Oq,longleftarrow:Rq,LongLeftArrow:zq,Longleftarrow:Dq,longleftrightarrow:Fq,LongLeftRightArrow:Hq,Longleftrightarrow:Bq,longmapsto:Wq,longrightarrow:jq,LongRightArrow:qq,Longrightarrow:Uq,looparrowleft:Vq,looparrowright:Gq,lopar:Xq,Lopf:Kq,lopf:Jq,loplus:Yq,lotimes:Zq,lowast:Qq,lowbar:e6,LowerLeftArrow:t6,LowerRightArrow:n6,loz:r6,lozenge:i6,lozf:o6,lpar:s6,lparlt:l6,lrarr:a6,lrcorner:c6,lrhar:u6,lrhard:f6,lrm:d6,lrtri:h6,lsaquo:p6,lscr:g6,Lscr:m6,lsh:v6,Lsh:y6,lsim:b6,lsime:w6,lsimg:x6,lsqb:S6,lsquo:_6,lsquor:k6,Lstrok:T6,lstrok:C6,ltcc:E6,ltcir:A6,lt:L6,LT:$6,Lt:M6,ltdot:N6,lthree:I6,ltimes:P6,ltlarr:O6,ltquest:R6,ltri:z6,ltrie:D6,ltrif:F6,ltrPar:H6,lurdshar:B6,luruhar:W6,lvertneqq:j6,lvnE:q6,macr:U6,male:V6,malt:G6,maltese:X6,Map:"⤅",map:K6,mapsto:J6,mapstodown:Y6,mapstoleft:Z6,mapstoup:Q6,marker:eU,mcomma:tU,Mcy:nU,mcy:rU,mdash:iU,mDDot:oU,measuredangle:sU,MediumSpace:lU,Mellintrf:aU,Mfr:cU,mfr:uU,mho:fU,micro:dU,midast:hU,midcir:pU,mid:gU,middot:mU,minusb:vU,minus:yU,minusd:bU,minusdu:wU,MinusPlus:xU,mlcp:SU,mldr:_U,mnplus:kU,models:TU,Mopf:CU,mopf:EU,mp:AU,mscr:LU,Mscr:$U,mstpos:MU,Mu:NU,mu:IU,multimap:PU,mumap:OU,nabla:RU,Nacute:zU,nacute:DU,nang:FU,nap:HU,napE:BU,napid:WU,napos:jU,napprox:qU,natural:UU,naturals:VU,natur:GU,nbsp:XU,nbump:KU,nbumpe:JU,ncap:YU,Ncaron:ZU,ncaron:QU,Ncedil:e9,ncedil:t9,ncong:n9,ncongdot:r9,ncup:i9,Ncy:o9,ncy:s9,ndash:l9,nearhk:a9,nearr:c9,neArr:u9,nearrow:f9,ne:d9,nedot:h9,NegativeMediumSpace:p9,NegativeThickSpace:g9,NegativeThinSpace:m9,NegativeVeryThinSpace:v9,nequiv:y9,nesear:b9,nesim:w9,NestedGreaterGreater:x9,NestedLessLess:S9,NewLine:_9,nexist:k9,nexists:T9,Nfr:C9,nfr:E9,ngE:A9,nge:L9,ngeq:$9,ngeqq:M9,ngeqslant:N9,nges:I9,nGg:P9,ngsim:O9,nGt:R9,ngt:z9,ngtr:D9,nGtv:F9,nharr:H9,nhArr:B9,nhpar:W9,ni:j9,nis:q9,nisd:U9,niv:V9,NJcy:G9,njcy:X9,nlarr:K9,nlArr:J9,nldr:Y9,nlE:Z9,nle:Q9,nleftarrow:eV,nLeftarrow:tV,nleftrightarrow:nV,nLeftrightarrow:rV,nleq:iV,nleqq:oV,nleqslant:sV,nles:lV,nless:aV,nLl:cV,nlsim:uV,nLt:fV,nlt:dV,nltri:hV,nltrie:pV,nLtv:gV,nmid:mV,NoBreak:vV,NonBreakingSpace:yV,nopf:bV,Nopf:wV,Not:xV,not:SV,NotCongruent:_V,NotCupCap:kV,NotDoubleVerticalBar:TV,NotElement:CV,NotEqual:EV,NotEqualTilde:AV,NotExists:LV,NotGreater:$V,NotGreaterEqual:MV,NotGreaterFullEqual:NV,NotGreaterGreater:IV,NotGreaterLess:PV,NotGreaterSlantEqual:OV,NotGreaterTilde:RV,NotHumpDownHump:zV,NotHumpEqual:DV,notin:FV,notindot:HV,notinE:BV,notinva:WV,notinvb:jV,notinvc:qV,NotLeftTriangleBar:UV,NotLeftTriangle:VV,NotLeftTriangleEqual:GV,NotLess:XV,NotLessEqual:KV,NotLessGreater:JV,NotLessLess:YV,NotLessSlantEqual:ZV,NotLessTilde:QV,NotNestedGreaterGreater:eG,NotNestedLessLess:tG,notni:nG,notniva:rG,notnivb:iG,notnivc:oG,NotPrecedes:sG,NotPrecedesEqual:lG,NotPrecedesSlantEqual:aG,NotReverseElement:cG,NotRightTriangleBar:uG,NotRightTriangle:fG,NotRightTriangleEqual:dG,NotSquareSubset:hG,NotSquareSubsetEqual:pG,NotSquareSuperset:gG,NotSquareSupersetEqual:mG,NotSubset:vG,NotSubsetEqual:yG,NotSucceeds:bG,NotSucceedsEqual:wG,NotSucceedsSlantEqual:xG,NotSucceedsTilde:SG,NotSuperset:_G,NotSupersetEqual:kG,NotTilde:TG,NotTildeEqual:CG,NotTildeFullEqual:EG,NotTildeTilde:AG,NotVerticalBar:LG,nparallel:$G,npar:MG,nparsl:NG,npart:IG,npolint:PG,npr:OG,nprcue:RG,nprec:zG,npreceq:DG,npre:FG,nrarrc:HG,nrarr:BG,nrArr:WG,nrarrw:jG,nrightarrow:qG,nRightarrow:UG,nrtri:VG,nrtrie:GG,nsc:XG,nsccue:KG,nsce:JG,Nscr:YG,nscr:ZG,nshortmid:QG,nshortparallel:e7,nsim:t7,nsime:n7,nsimeq:r7,nsmid:i7,nspar:o7,nsqsube:s7,nsqsupe:l7,nsub:a7,nsubE:c7,nsube:u7,nsubset:f7,nsubseteq:d7,nsubseteqq:h7,nsucc:p7,nsucceq:g7,nsup:m7,nsupE:v7,nsupe:y7,nsupset:b7,nsupseteq:w7,nsupseteqq:x7,ntgl:S7,Ntilde:_7,ntilde:k7,ntlg:T7,ntriangleleft:C7,ntrianglelefteq:E7,ntriangleright:A7,ntrianglerighteq:L7,Nu:$7,nu:M7,num:N7,numero:I7,numsp:P7,nvap:O7,nvdash:R7,nvDash:z7,nVdash:D7,nVDash:F7,nvge:H7,nvgt:B7,nvHarr:W7,nvinfin:j7,nvlArr:q7,nvle:U7,nvlt:V7,nvltrie:G7,nvrArr:X7,nvrtrie:K7,nvsim:J7,nwarhk:Y7,nwarr:Z7,nwArr:Q7,nwarrow:eX,nwnear:tX,Oacute:nX,oacute:rX,oast:iX,Ocirc:oX,ocirc:sX,ocir:lX,Ocy:aX,ocy:cX,odash:uX,Odblac:fX,odblac:dX,odiv:hX,odot:pX,odsold:gX,OElig:mX,oelig:vX,ofcir:yX,Ofr:bX,ofr:wX,ogon:xX,Ograve:SX,ograve:_X,ogt:kX,ohbar:TX,ohm:CX,oint:EX,olarr:AX,olcir:LX,olcross:$X,oline:MX,olt:NX,Omacr:IX,omacr:PX,Omega:OX,omega:RX,Omicron:zX,omicron:DX,omid:FX,ominus:HX,Oopf:BX,oopf:WX,opar:jX,OpenCurlyDoubleQuote:qX,OpenCurlyQuote:UX,operp:VX,oplus:GX,orarr:XX,Or:KX,or:JX,ord:YX,order:ZX,orderof:QX,ordf:eK,ordm:tK,origof:nK,oror:rK,orslope:iK,orv:oK,oS:sK,Oscr:lK,oscr:aK,Oslash:cK,oslash:uK,osol:fK,Otilde:dK,otilde:hK,otimesas:pK,Otimes:gK,otimes:mK,Ouml:vK,ouml:yK,ovbar:bK,OverBar:wK,OverBrace:xK,OverBracket:SK,OverParenthesis:_K,para:kK,parallel:TK,par:CK,parsim:EK,parsl:AK,part:LK,PartialD:$K,Pcy:MK,pcy:NK,percnt:IK,period:PK,permil:OK,perp:RK,pertenk:zK,Pfr:DK,pfr:FK,Phi:HK,phi:BK,phiv:WK,phmmat:jK,phone:qK,Pi:UK,pi:VK,pitchfork:GK,piv:XK,planck:KK,planckh:JK,plankv:YK,plusacir:ZK,plusb:QK,pluscir:eJ,plus:tJ,plusdo:nJ,plusdu:rJ,pluse:iJ,PlusMinus:oJ,plusmn:sJ,plussim:lJ,plustwo:aJ,pm:cJ,Poincareplane:uJ,pointint:fJ,popf:dJ,Popf:hJ,pound:pJ,prap:gJ,Pr:mJ,pr:vJ,prcue:yJ,precapprox:bJ,prec:wJ,preccurlyeq:xJ,Precedes:SJ,PrecedesEqual:_J,PrecedesSlantEqual:kJ,PrecedesTilde:TJ,preceq:CJ,precnapprox:EJ,precneqq:AJ,precnsim:LJ,pre:$J,prE:MJ,precsim:NJ,prime:IJ,Prime:PJ,primes:OJ,prnap:RJ,prnE:zJ,prnsim:DJ,prod:FJ,Product:HJ,profalar:BJ,profline:WJ,profsurf:jJ,prop:qJ,Proportional:UJ,Proportion:VJ,propto:GJ,prsim:XJ,prurel:KJ,Pscr:JJ,pscr:YJ,Psi:ZJ,psi:QJ,puncsp:eY,Qfr:tY,qfr:nY,qint:rY,qopf:iY,Qopf:oY,qprime:sY,Qscr:lY,qscr:aY,quaternions:cY,quatint:uY,quest:fY,questeq:dY,quot:hY,QUOT:pY,rAarr:gY,race:mY,Racute:vY,racute:yY,radic:bY,raemptyv:wY,rang:xY,Rang:SY,rangd:_Y,range:kY,rangle:TY,raquo:CY,rarrap:EY,rarrb:AY,rarrbfs:LY,rarrc:$Y,rarr:MY,Rarr:NY,rArr:IY,rarrfs:PY,rarrhk:OY,rarrlp:RY,rarrpl:zY,rarrsim:DY,Rarrtl:FY,rarrtl:HY,rarrw:BY,ratail:WY,rAtail:jY,ratio:qY,rationals:UY,rbarr:VY,rBarr:GY,RBarr:XY,rbbrk:KY,rbrace:JY,rbrack:YY,rbrke:ZY,rbrksld:QY,rbrkslu:eZ,Rcaron:tZ,rcaron:nZ,Rcedil:rZ,rcedil:iZ,rceil:oZ,rcub:sZ,Rcy:lZ,rcy:aZ,rdca:cZ,rdldhar:uZ,rdquo:fZ,rdquor:dZ,rdsh:hZ,real:pZ,realine:gZ,realpart:mZ,reals:vZ,Re:yZ,rect:bZ,reg:wZ,REG:xZ,ReverseElement:SZ,ReverseEquilibrium:_Z,ReverseUpEquilibrium:kZ,rfisht:TZ,rfloor:CZ,rfr:EZ,Rfr:AZ,rHar:LZ,rhard:$Z,rharu:MZ,rharul:NZ,Rho:IZ,rho:PZ,rhov:OZ,RightAngleBracket:RZ,RightArrowBar:zZ,rightarrow:DZ,RightArrow:FZ,Rightarrow:HZ,RightArrowLeftArrow:BZ,rightarrowtail:WZ,RightCeiling:jZ,RightDoubleBracket:qZ,RightDownTeeVector:UZ,RightDownVectorBar:VZ,RightDownVector:GZ,RightFloor:XZ,rightharpoondown:KZ,rightharpoonup:JZ,rightleftarrows:YZ,rightleftharpoons:ZZ,rightrightarrows:QZ,rightsquigarrow:eQ,RightTeeArrow:tQ,RightTee:nQ,RightTeeVector:rQ,rightthreetimes:iQ,RightTriangleBar:oQ,RightTriangle:sQ,RightTriangleEqual:lQ,RightUpDownVector:aQ,RightUpTeeVector:cQ,RightUpVectorBar:uQ,RightUpVector:fQ,RightVectorBar:dQ,RightVector:hQ,ring:pQ,risingdotseq:gQ,rlarr:mQ,rlhar:vQ,rlm:yQ,rmoustache:bQ,rmoust:wQ,rnmid:xQ,roang:SQ,roarr:_Q,robrk:kQ,ropar:TQ,ropf:CQ,Ropf:EQ,roplus:AQ,rotimes:LQ,RoundImplies:$Q,rpar:MQ,rpargt:NQ,rppolint:IQ,rrarr:PQ,Rrightarrow:OQ,rsaquo:RQ,rscr:zQ,Rscr:DQ,rsh:FQ,Rsh:HQ,rsqb:BQ,rsquo:WQ,rsquor:jQ,rthree:qQ,rtimes:UQ,rtri:VQ,rtrie:GQ,rtrif:XQ,rtriltri:KQ,RuleDelayed:JQ,ruluhar:YQ,rx:ZQ,Sacute:QQ,sacute:eee,sbquo:tee,scap:nee,Scaron:ree,scaron:iee,Sc:oee,sc:see,sccue:lee,sce:aee,scE:cee,Scedil:uee,scedil:fee,Scirc:dee,scirc:hee,scnap:pee,scnE:gee,scnsim:mee,scpolint:vee,scsim:yee,Scy:bee,scy:wee,sdotb:xee,sdot:See,sdote:_ee,searhk:kee,searr:Tee,seArr:Cee,searrow:Eee,sect:Aee,semi:Lee,seswar:$ee,setminus:Mee,setmn:Nee,sext:Iee,Sfr:Pee,sfr:Oee,sfrown:Ree,sharp:zee,SHCHcy:Dee,shchcy:Fee,SHcy:Hee,shcy:Bee,ShortDownArrow:Wee,ShortLeftArrow:jee,shortmid:qee,shortparallel:Uee,ShortRightArrow:Vee,ShortUpArrow:Gee,shy:Xee,Sigma:Kee,sigma:Jee,sigmaf:Yee,sigmav:Zee,sim:Qee,simdot:ete,sime:tte,simeq:nte,simg:rte,simgE:ite,siml:ote,simlE:ste,simne:lte,simplus:ate,simrarr:cte,slarr:ute,SmallCircle:fte,smallsetminus:dte,smashp:hte,smeparsl:pte,smid:gte,smile:mte,smt:vte,smte:yte,smtes:bte,SOFTcy:wte,softcy:xte,solbar:Ste,solb:_te,sol:kte,Sopf:Tte,sopf:Cte,spades:Ete,spadesuit:Ate,spar:Lte,sqcap:$te,sqcaps:Mte,sqcup:Nte,sqcups:Ite,Sqrt:Pte,sqsub:Ote,sqsube:Rte,sqsubset:zte,sqsubseteq:Dte,sqsup:Fte,sqsupe:Hte,sqsupset:Bte,sqsupseteq:Wte,square:jte,Square:qte,SquareIntersection:Ute,SquareSubset:Vte,SquareSubsetEqual:Gte,SquareSuperset:Xte,SquareSupersetEqual:Kte,SquareUnion:Jte,squarf:Yte,squ:Zte,squf:Qte,srarr:ene,Sscr:tne,sscr:nne,ssetmn:rne,ssmile:ine,sstarf:one,Star:sne,star:lne,starf:ane,straightepsilon:cne,straightphi:une,strns:fne,sub:dne,Sub:hne,subdot:pne,subE:gne,sube:mne,subedot:vne,submult:yne,subnE:bne,subne:wne,subplus:xne,subrarr:Sne,subset:_ne,Subset:kne,subseteq:Tne,subseteqq:Cne,SubsetEqual:Ene,subsetneq:Ane,subsetneqq:Lne,subsim:$ne,subsub:Mne,subsup:Nne,succapprox:Ine,succ:Pne,succcurlyeq:One,Succeeds:Rne,SucceedsEqual:zne,SucceedsSlantEqual:Dne,SucceedsTilde:Fne,succeq:Hne,succnapprox:Bne,succneqq:Wne,succnsim:jne,succsim:qne,SuchThat:Une,sum:Vne,Sum:Gne,sung:Xne,sup1:Kne,sup2:Jne,sup3:Yne,sup:Zne,Sup:Qne,supdot:ere,supdsub:tre,supE:nre,supe:rre,supedot:ire,Superset:ore,SupersetEqual:sre,suphsol:lre,suphsub:are,suplarr:cre,supmult:ure,supnE:fre,supne:dre,supplus:hre,supset:pre,Supset:gre,supseteq:mre,supseteqq:vre,supsetneq:yre,supsetneqq:bre,supsim:wre,supsub:xre,supsup:Sre,swarhk:_re,swarr:kre,swArr:Tre,swarrow:Cre,swnwar:Ere,szlig:Are,Tab:Lre,target:$re,Tau:Mre,tau:Nre,tbrk:Ire,Tcaron:Pre,tcaron:Ore,Tcedil:Rre,tcedil:zre,Tcy:Dre,tcy:Fre,tdot:Hre,telrec:Bre,Tfr:Wre,tfr:jre,there4:qre,therefore:Ure,Therefore:Vre,Theta:Gre,theta:Xre,thetasym:Kre,thetav:Jre,thickapprox:Yre,thicksim:Zre,ThickSpace:Qre,ThinSpace:eie,thinsp:tie,thkap:nie,thksim:rie,THORN:iie,thorn:oie,tilde:sie,Tilde:lie,TildeEqual:aie,TildeFullEqual:cie,TildeTilde:uie,timesbar:fie,timesb:die,times:hie,timesd:pie,tint:gie,toea:mie,topbot:vie,topcir:yie,top:bie,Topf:wie,topf:xie,topfork:Sie,tosa:_ie,tprime:kie,trade:Tie,TRADE:Cie,triangle:Eie,triangledown:Aie,triangleleft:Lie,trianglelefteq:$ie,triangleq:Mie,triangleright:Nie,trianglerighteq:Iie,tridot:Pie,trie:Oie,triminus:Rie,TripleDot:zie,triplus:Die,trisb:Fie,tritime:Hie,trpezium:Bie,Tscr:Wie,tscr:jie,TScy:qie,tscy:Uie,TSHcy:Vie,tshcy:Gie,Tstrok:Xie,tstrok:Kie,twixt:Jie,twoheadleftarrow:Yie,twoheadrightarrow:Zie,Uacute:Qie,uacute:eoe,uarr:toe,Uarr:noe,uArr:roe,Uarrocir:ioe,Ubrcy:ooe,ubrcy:soe,Ubreve:loe,ubreve:aoe,Ucirc:coe,ucirc:uoe,Ucy:foe,ucy:doe,udarr:hoe,Udblac:poe,udblac:goe,udhar:moe,ufisht:voe,Ufr:yoe,ufr:boe,Ugrave:woe,ugrave:xoe,uHar:Soe,uharl:_oe,uharr:koe,uhblk:Toe,ulcorn:Coe,ulcorner:Eoe,ulcrop:Aoe,ultri:Loe,Umacr:$oe,umacr:Moe,uml:Noe,UnderBar:Ioe,UnderBrace:Poe,UnderBracket:Ooe,UnderParenthesis:Roe,Union:zoe,UnionPlus:Doe,Uogon:Foe,uogon:Hoe,Uopf:Boe,uopf:Woe,UpArrowBar:joe,uparrow:qoe,UpArrow:Uoe,Uparrow:Voe,UpArrowDownArrow:Goe,updownarrow:Xoe,UpDownArrow:Koe,Updownarrow:Joe,UpEquilibrium:Yoe,upharpoonleft:Zoe,upharpoonright:Qoe,uplus:ese,UpperLeftArrow:tse,UpperRightArrow:nse,upsi:rse,Upsi:ise,upsih:ose,Upsilon:sse,upsilon:lse,UpTeeArrow:ase,UpTee:cse,upuparrows:use,urcorn:fse,urcorner:dse,urcrop:hse,Uring:pse,uring:gse,urtri:mse,Uscr:vse,uscr:yse,utdot:bse,Utilde:wse,utilde:xse,utri:Sse,utrif:_se,uuarr:kse,Uuml:Tse,uuml:Cse,uwangle:Ese,vangrt:Ase,varepsilon:Lse,varkappa:$se,varnothing:Mse,varphi:Nse,varpi:Ise,varpropto:Pse,varr:Ose,vArr:Rse,varrho:zse,varsigma:Dse,varsubsetneq:Fse,varsubsetneqq:Hse,varsupsetneq:Bse,varsupsetneqq:Wse,vartheta:jse,vartriangleleft:qse,vartriangleright:Use,vBar:Vse,Vbar:Gse,vBarv:Xse,Vcy:Kse,vcy:Jse,vdash:Yse,vDash:Zse,Vdash:Qse,VDash:ele,Vdashl:tle,veebar:nle,vee:rle,Vee:ile,veeeq:ole,vellip:sle,verbar:lle,Verbar:ale,vert:cle,Vert:ule,VerticalBar:fle,VerticalLine:dle,VerticalSeparator:hle,VerticalTilde:ple,VeryThinSpace:gle,Vfr:mle,vfr:vle,vltri:yle,vnsub:ble,vnsup:wle,Vopf:xle,vopf:Sle,vprop:_le,vrtri:kle,Vscr:Tle,vscr:Cle,vsubnE:Ele,vsubne:Ale,vsupnE:Lle,vsupne:$le,Vvdash:Mle,vzigzag:Nle,Wcirc:Ile,wcirc:Ple,wedbar:Ole,wedge:Rle,Wedge:zle,wedgeq:Dle,weierp:Fle,Wfr:Hle,wfr:Ble,Wopf:Wle,wopf:jle,wp:qle,wr:Ule,wreath:Vle,Wscr:Gle,wscr:Xle,xcap:Kle,xcirc:Jle,xcup:Yle,xdtri:Zle,Xfr:Qle,xfr:eae,xharr:tae,xhArr:nae,Xi:rae,xi:iae,xlarr:oae,xlArr:sae,xmap:lae,xnis:aae,xodot:cae,Xopf:uae,xopf:fae,xoplus:dae,xotime:hae,xrarr:pae,xrArr:gae,Xscr:mae,xscr:vae,xsqcup:yae,xuplus:bae,xutri:wae,xvee:xae,xwedge:Sae,Yacute:_ae,yacute:kae,YAcy:Tae,yacy:Cae,Ycirc:Eae,ycirc:Aae,Ycy:Lae,ycy:$ae,yen:Mae,Yfr:Nae,yfr:Iae,YIcy:Pae,yicy:Oae,Yopf:Rae,yopf:zae,Yscr:Dae,yscr:Fae,YUcy:Hae,yucy:Bae,yuml:Wae,Yuml:jae,Zacute:qae,zacute:Uae,Zcaron:Vae,zcaron:Gae,Zcy:Xae,zcy:Kae,Zdot:Jae,zdot:Yae,zeetrf:Zae,ZeroWidthSpace:Qae,Zeta:ece,zeta:tce,zfr:nce,Zfr:rce,ZHcy:ice,zhcy:oce,zigrarr:sce,zopf:lce,Zopf:ace,Zscr:cce,zscr:uce,zwj:fce,zwnj:dce},hce="Á",pce="á",gce="Â",mce="â",vce="´",yce="Æ",bce="æ",wce="À",xce="à",Sce="&",_ce="&",kce="Å",Tce="å",Cce="Ã",Ece="ã",Ace="Ä",Lce="ä",$ce="¦",Mce="Ç",Nce="ç",Ice="¸",Pce="¢",Oce="©",Rce="©",zce="¤",Dce="°",Fce="÷",Hce="É",Bce="é",Wce="Ê",jce="ê",qce="È",Uce="è",Vce="Ð",Gce="ð",Xce="Ë",Kce="ë",Jce="½",Yce="¼",Zce="¾",Qce=">",eue=">",tue="Í",nue="í",rue="Î",iue="î",oue="¡",sue="Ì",lue="ì",aue="¿",cue="Ï",uue="ï",fue="«",due="<",hue="<",pue="¯",gue="µ",mue="·",vue=" ",yue="¬",bue="Ñ",wue="ñ",xue="Ó",Sue="ó",_ue="Ô",kue="ô",Tue="Ò",Cue="ò",Eue="ª",Aue="º",Lue="Ø",$ue="ø",Mue="Õ",Nue="õ",Iue="Ö",Pue="ö",Oue="¶",Rue="±",zue="£",Due='"',Fue='"',Hue="»",Bue="®",Wue="®",jue="§",que="­",Uue="¹",Vue="²",Gue="³",Xue="ß",Kue="Þ",Jue="þ",Yue="×",Zue="Ú",Que="ú",efe="Û",tfe="û",nfe="Ù",rfe="ù",ife="¨",ofe="Ü",sfe="ü",lfe="Ý",afe="ý",cfe="¥",ufe="ÿ",ffe={Aacute:hce,aacute:pce,Acirc:gce,acirc:mce,acute:vce,AElig:yce,aelig:bce,Agrave:wce,agrave:xce,amp:Sce,AMP:_ce,Aring:kce,aring:Tce,Atilde:Cce,atilde:Ece,Auml:Ace,auml:Lce,brvbar:$ce,Ccedil:Mce,ccedil:Nce,cedil:Ice,cent:Pce,copy:Oce,COPY:Rce,curren:zce,deg:Dce,divide:Fce,Eacute:Hce,eacute:Bce,Ecirc:Wce,ecirc:jce,Egrave:qce,egrave:Uce,ETH:Vce,eth:Gce,Euml:Xce,euml:Kce,frac12:Jce,frac14:Yce,frac34:Zce,gt:Qce,GT:eue,Iacute:tue,iacute:nue,Icirc:rue,icirc:iue,iexcl:oue,Igrave:sue,igrave:lue,iquest:aue,Iuml:cue,iuml:uue,laquo:fue,lt:due,LT:hue,macr:pue,micro:gue,middot:mue,nbsp:vue,not:yue,Ntilde:bue,ntilde:wue,Oacute:xue,oacute:Sue,Ocirc:_ue,ocirc:kue,Ograve:Tue,ograve:Cue,ordf:Eue,ordm:Aue,Oslash:Lue,oslash:$ue,Otilde:Mue,otilde:Nue,Ouml:Iue,ouml:Pue,para:Oue,plusmn:Rue,pound:zue,quot:Due,QUOT:Fue,raquo:Hue,reg:Bue,REG:Wue,sect:jue,shy:que,sup1:Uue,sup2:Vue,sup3:Gue,szlig:Xue,THORN:Kue,thorn:Jue,times:Yue,Uacute:Zue,uacute:Que,Ucirc:efe,ucirc:tfe,Ugrave:nfe,ugrave:rfe,uml:ife,Uuml:ofe,uuml:sfe,Yacute:lfe,yacute:afe,yen:cfe,yuml:ufe},dfe="&",hfe="'",pfe=">",gfe="<",mfe='"',Qx={amp:dfe,apos:hfe,gt:pfe,lt:gfe,quot:mfe};var Cs={};const vfe={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 j0;function yfe(){if(j0)return Cs;j0=1;var e=Cs&&Cs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Cs,"__esModule",{value:!0});var t=e(vfe),n=String.fromCodePoint||function(s){var l="";return s>65535&&(s-=65536,l+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),l+=String.fromCharCode(s),l};function i(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),n(s))}return Cs.default=i,Cs}var q0;function U0(){if(q0)return Tr;q0=1;var e=Tr&&Tr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.decodeHTML=Tr.decodeHTMLStrict=Tr.decodeXML=void 0;var t=e(Zx),n=e(ffe),i=e(Qx),s=e(yfe()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tr.decodeXML=u(i.default),Tr.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(v){return String(v).replace(l,g)}}var f=function(p,g){return p<g?1:-1};Tr.decodeHTML=function(){for(var p=Object.keys(n.default).sort(f),g=Object.keys(t.default).sort(f),v=0,y=0;v<g.length;v++)p[y]===g[v]?(g[v]+=";?",y++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),L=h(t.default);function $(C){return C.substr(-1)!==";"&&(C+=";"),L(C)}return function(C){return String(C).replace(w,$)}}();function h(p){return function(v){if(v.charAt(1)==="#"){var y=v.charAt(2);return y==="X"||y==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Tr}var Ln={},V0;function G0(){if(V0)return Ln;V0=1;var e=Ln&&Ln.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(Qx),n=f(t.default),i=h(n);Ln.encodeXML=C(n);var s=e(Zx),l=f(s.default),u=h(l);Ln.encodeHTML=y(l,u),Ln.encodeNonAsciiHTML=C(l);function f(E){return Object.keys(E).sort().reduce(function(N,O){return N[E[O]]="&"+O+";",N},{})}function h(E){for(var N=[],O=[],k=0,z=Object.keys(E);k<z.length;k++){var D=z[k];D.length===1?N.push("\\"+D):O.push(D)}N.sort();for(var oe=0;oe<N.length-1;oe++){for(var Q=oe;Q<N.length-1&&N[Q].charCodeAt(1)+1===N[Q+1].charCodeAt(1);)Q+=1;var W=1+Q-oe;W<3||N.splice(oe,W,N[oe]+"-"+N[Q])}return O.unshift("["+N.join("")+"]"),new RegExp(O.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(E,N){return function(O){return O.replace(N,function(k){return E[k]}).replace(p,v)}}var w=new RegExp(i.source+"|"+p.source,"g");function L(E){return E.replace(w,v)}Ln.escape=L;function $(E){return E.replace(i,v)}Ln.escapeUTF8=$;function C(E){return function(N){return N.replace(w,function(O){return E[O]||v(O)})}}return Ln}var X0;function bfe(){return X0||(X0=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=U0(),n=G0();function i(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=i;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function l(h,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(h)}e.encode=l;var u=G0();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var f=U0();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})}(zd)),zd}var Dd,K0;function wfe(){if(K0)return Dd;K0=1;function e(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function t(A,I){for(var P=0;P<I.length;P++){var S=I[P];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}function n(A,I,P){return I&&t(A.prototype,I),A}function i(A,I){var P=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!P){if(Array.isArray(A)||(P=s(A))||I){P&&(A=P);var S=0,R=function(){};return{s:R,n:function(){return S>=A.length?{done:!0}:{done:!1,value:A[S++]}},e:function(Pe){throw Pe},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ie=!1,ue;return{s:function(){P=P.call(A)},n:function(){var Pe=P.next();return B=Pe.done,Pe},e:function(Pe){ie=!0,ue=Pe},f:function(){try{!B&&P.return!=null&&P.return()}finally{if(ie)throw ue}}}}function s(A,I){if(A){if(typeof A=="string")return l(A,I);var P=Object.prototype.toString.call(A).slice(8,-1);if(P==="Object"&&A.constructor&&(P=A.constructor.name),P==="Map"||P==="Set")return Array.from(A);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return l(A,I)}}function l(A,I){(I==null||I>A.length)&&(I=A.length);for(var P=0,S=new Array(I);P<I;P++)S[P]=A[P];return S}var u=bfe(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var A={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 C(0,5).forEach(function(I){C(0,5).forEach(function(P){C(0,5).forEach(function(S){return p(I,P,S,A)})})}),C(0,23).forEach(function(I){var P=I+232,S=g(I*10+8);A[P]="#"+S+S+S}),A}function p(A,I,P,S){var R=16+A*36+I*6+P,B=A>0?A*40+55:0,ie=I>0?I*40+55:0,ue=P>0?P*40+55:0;S[R]=v([B,ie,ue])}function g(A){for(var I=A.toString(16);I.length<2;)I="0"+I;return I}function v(A){var I=[],P=i(A),S;try{for(P.s();!(S=P.n()).done;){var R=S.value;I.push(g(R))}}catch(B){P.e(B)}finally{P.f()}return"#"+I.join("")}function y(A,I,P,S){var R;return I==="text"?R=O(P,S):I==="display"?R=L(A,P,S):I==="xterm256Foreground"?R=D(A,S.colors[P]):I==="xterm256Background"?R=oe(A,S.colors[P]):I==="rgb"&&(R=w(A,P)),R}function w(A,I){I=I.substring(2).slice(0,-1);var P=+I.substr(0,2),S=I.substring(5).split(";"),R=S.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return z(A,(P===38?"color:#":"background-color:#")+R)}function L(A,I,P){I=parseInt(I,10);var S={"-1":function(){return"<br/>"},0:function(){return A.length&&$(A)},1:function(){return k(A,"b")},3:function(){return k(A,"i")},4:function(){return k(A,"u")},8:function(){return z(A,"display:none")},9:function(){return k(A,"strike")},22:function(){return z(A,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Q(A,"i")},24:function(){return Q(A,"u")},39:function(){return D(A,P.fg)},49:function(){return oe(A,P.bg)},53:function(){return z(A,"text-decoration:overline")}},R;return S[I]?R=S[I]():4<I&&I<7?R=k(A,"blink"):29<I&&I<38?R=D(A,P.colors[I-30]):39<I&&I<48?R=oe(A,P.colors[I-40]):89<I&&I<98?R=D(A,P.colors[8+(I-90)]):99<I&&I<108&&(R=oe(A,P.colors[8+(I-100)])),R}function $(A){var I=A.slice(0);return A.length=0,I.reverse().map(function(P){return"</"+P+">"}).join("")}function C(A,I){for(var P=[],S=A;S<=I;S++)P.push(S);return P}function E(A){return function(I){return(A===null||I.category!==A)&&A!=="all"}}function N(A){A=parseInt(A,10);var I=null;return A===0?I="all":A===1?I="bold":2<A&&A<5?I="underline":4<A&&A<7?I="blink":A===8?I="hide":A===9?I="strike":29<A&&A<38||A===39||89<A&&A<98?I="foreground-color":(39<A&&A<48||A===49||99<A&&A<108)&&(I="background-color"),I}function O(A,I){return I.escapeXML?u.encodeXML(A):A}function k(A,I,P){return P||(P=""),A.push(I),"<".concat(I).concat(P?' style="'.concat(P,'"'):"",">")}function z(A,I){return k(A,"span",I)}function D(A,I){return k(A,"span","color:"+I)}function oe(A,I){return k(A,"span","background-color:"+I)}function Q(A,I){var P;if(A.slice(-1)[0]===I&&(P=A.pop()),P)return"</"+I+">"}function W(A,I,P){var S=!1,R=3;function B(){return""}function ie(G,Y){return P("xterm256Foreground",Y),""}function ue(G,Y){return P("xterm256Background",Y),""}function we(G){return I.newline?P("display",-1):P("text",G),""}function Pe(G,Y){S=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var fe=i(Y),pe;try{for(fe.s();!(pe=fe.n()).done;){var he=pe.value;P("display",he)}}catch(Ce){fe.e(Ce)}finally{fe.f()}return""}function qe(G){return P("text",G),""}function Ze(G){return P("rgb",G),""}var Ke=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ze},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ie},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ue},{pattern:/^\n/,sub:we},{pattern:/^\r+\n/,sub:we},{pattern:/^\r/,sub:we},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:qe}];function Je(G,Y){Y>R&&S||(S=!1,A=A.replace(G.pattern,G.sub))}var re=[],V=A,ee=V.length;e:for(;ee>0;){for(var J=0,ae=0,ge=Ke.length;ae<ge;J=++ae){var F=Ke[J];if(Je(F,J),A.length!==ee){ee=A.length;continue e}}if(A.length===ee)break;re.push(0),ee=A.length}return re}function q(A,I,P){return I!=="text"&&(A=A.filter(E(N(P))),A.push({token:I,data:P,category:N(P)})),A}var U=function(){function A(I){e(this,A),I=I||{},I.colors&&(I.colors=Object.assign({},f.colors,I.colors)),this.options=Object.assign({},f,I),this.stack=[],this.stickyStack=[]}return n(A,[{key:"toHtml",value:function(P){var S=this;P=typeof P=="string"?[P]:P;var R=this.stack,B=this.options,ie=[];return this.stickyStack.forEach(function(ue){var we=y(R,ue.token,ue.data,B);we&&ie.push(we)}),W(P.join(""),B,function(ue,we){var Pe=y(R,ue,we,B);Pe&&ie.push(Pe),B.stream&&(S.stickyStack=q(S.stickyStack,ue,we))}),R.length&&ie.push($(R)),ie.join("")}}]),A}();return Dd=U,Dd}var xfe=wfe();const Sfe=kp(xfe);function aa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _fe(e,t){return t&&e.endsWith(t)}async function Pp(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function Op(e){return new Sfe({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function kfe(e){return e===null||typeof e!="function"&&typeof e!="object"}function e1(e){let t=e;if(kfe(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:""}}return t.stacks=HL(t.stack||"",{ignoreStackEntries:[]}),t}function Tfe(e,t){var s,l;let n="";return(s=t.message)!=null&&s.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(aa(t.message))}`),((l=t.stack)==null?void 0:l.includes("\x1B"))&&(n.length>0?n+=e.toHtml(aa(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(aa(t.stack))}`),n.length>0?n:null}function t1(e,t){const n=Op(e);return t.map(i=>{var u;const s=i.result;if(!s||s.htmlError)return i;const l=(u=s.errors)==null?void 0:u.map(f=>Tfe(n,f)).filter(f=>f!=null).join("<br><br>");return l!=null&&l.length&&(s.htmlError=l),i})}var nr=Uint8Array,Ps=Uint16Array,Cfe=Int32Array,n1=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]),r1=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]),Efe=new nr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i1=function(e,t){for(var n=new Ps(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var s=new Cfe(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)s[l]=l-n[i]<<5|i;return{b:n,r:s}},o1=i1(n1,2),s1=o1.b,Afe=o1.r;s1[28]=258,Afe[258]=28;var Lfe=i1(r1,0),$fe=Lfe.b,Mh=new Ps(32768);for(var Lt=0;Lt<32768;++Lt){var Vi=(Lt&43690)>>1|(Lt&21845)<<1;Vi=(Vi&52428)>>2|(Vi&13107)<<2,Vi=(Vi&61680)>>4|(Vi&3855)<<4,Mh[Lt]=((Vi&65280)>>8|(Vi&255)<<8)>>1}var ca=function(e,t,n){for(var i=e.length,s=0,l=new Ps(t);s<i;++s)e[s]&&++l[e[s]-1];var u=new Ps(t);for(s=1;s<t;++s)u[s]=u[s-1]+l[s-1]<<1;var f;if(n){f=new Ps(1<<t);var h=15-t;for(s=0;s<i;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=u[e[s]-1]++<<g,y=v|(1<<g)-1;v<=y;++v)f[Mh[v]>>h]=p}else for(f=new Ps(i),s=0;s<i;++s)e[s]&&(f[s]=Mh[u[e[s]-1]++]>>15-e[s]);return f},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 l1=new nr(32);for(var Lt=0;Lt<32;++Lt)l1[Lt]=5;var Mfe=ca(Ka,9,1),Nfe=ca(l1,5,1),Fd=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Cr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Hd=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Ife=function(e){return(e+7)/8|0},a1=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new nr(e.subarray(t,n))},Pfe=["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,n){var i=new Error(t||Pfe[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,qn),!n)throw i;return i},Rp=function(e,t,n,i){var s=e.length,l=0;if(!s||t.f&&!t.l)return n||new nr(0);var u=!n,f=u||t.i!=2,h=t.i;u&&(n=new nr(s*3));var p=function(ge){var F=n.length;if(ge>F){var G=new nr(Math.max(F*2,ge));G.set(n),n=G}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,L=t.d,$=t.m,C=t.n,E=s*8;do{if(!w){g=Cr(e,v,1);var N=Cr(e,v+1,3);if(v+=3,N)if(N==1)w=Mfe,L=Nfe,$=9,C=5;else if(N==2){var D=Cr(e,v,31)+257,oe=Cr(e,v+10,15)+4,Q=D+Cr(e,v+5,31)+1;v+=14;for(var W=new nr(Q),q=new nr(19),U=0;U<oe;++U)q[Efe[U]]=Cr(e,v+U*3,7);v+=oe*3;for(var A=Fd(q),I=(1<<A)-1,P=ca(q,A,1),U=0;U<Q;){var S=P[Cr(e,v,I)];v+=S&15;var O=S>>4;if(O<16)W[U++]=O;else{var R=0,B=0;for(O==16?(B=3+Cr(e,v,3),v+=2,R=W[U-1]):O==17?(B=3+Cr(e,v,7),v+=3):O==18&&(B=11+Cr(e,v,127),v+=7);B--;)W[U++]=R}}var ie=W.subarray(0,D),ue=W.subarray(D);$=Fd(ie),C=Fd(ue),w=ca(ie,$,1),L=ca(ue,C,1)}else qn(1);else{var O=Ife(v)+4,k=e[O-4]|e[O-3]<<8,z=O+k;if(z>s){h&&qn(0);break}f&&p(y+k),n.set(e.subarray(O,z),y),t.b=y+=k,t.p=v=z*8,t.f=g;continue}if(v>E){h&&qn(0);break}}f&&p(y+131072);for(var we=(1<<$)-1,Pe=(1<<C)-1,qe=v;;qe=v){var R=w[Hd(e,v)&we],Ze=R>>4;if(v+=R&15,v>E){h&&qn(0);break}if(R||qn(2),Ze<256)n[y++]=Ze;else if(Ze==256){qe=v,w=null;break}else{var Ke=Ze-254;if(Ze>264){var U=Ze-257,Je=n1[U];Ke=Cr(e,v,(1<<Je)-1)+s1[U],v+=Je}var re=L[Hd(e,v)&Pe],V=re>>4;re||qn(3),v+=re&15;var ue=$fe[V];if(V>3){var Je=r1[V];ue+=Hd(e,v)&(1<<Je)-1,v+=Je}if(v>E){h&&qn(0);break}f&&p(y+131072);var ee=y+Ke;if(y<ue){var J=l-ue,ae=Math.min(ue,ee);for(J+y<0&&qn(3);y<ae;++y)n[y]=i[J+y]}for(;y<ee;++y)n[y]=n[y-ue]}}t.l=w,t.p=qe,t.b=y,t.f=g,w&&(g=1,t.m=$,t.d=L,t.n=C)}while(!g);return y!=n.length&&u?a1(n,0,y):n.subarray(0,y)},Ofe=new nr(0),Rfe=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&qn(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},zfe=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Dfe=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 Ffe(e,t){return Rp(e,{i:2},t,t)}function Hfe(e,t){var n=Rfe(e);return n+8>e.length&&qn(6,"invalid gzip data"),Rp(e.subarray(n,-8),{i:2},new nr(zfe(e)),t)}function Bfe(e,t){return Rp(e.subarray(Dfe(e),-4),{i:2},t,t)}function Wfe(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hfe(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Ffe(e,t):Bfe(e,t)}var Nh=typeof TextDecoder<"u"&&new TextDecoder,jfe=0;try{Nh.decode(Ofe,{stream:!0}),jfe=1}catch{}var qfe=function(e){for(var t="",n=0;;){var i=e[n++],s=(i>127)+(i>223)+(i>239);if(n+s>e.length)return{s:t,r:a1(e,n-1)};s?s==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):s&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function Ufe(e,t){var n;if(Nh)return Nh.decode(e);var i=qfe(e),s=i.s,n=i.r;return n.length&&qn(8),s}const Bd=()=>{},mn=()=>Promise.resolve();function Vfe(){const e=rr({state:new _x,waitForConnection:u,reconnect:s,ws:new EventTarget});e.state.filesMap=rr(e.state.filesMap),e.state.idMap=rr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(f,h)=>{var p;return(p=t.moduleGraph[f])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:mn,onDone:Bd,onTaskUpdate:Bd,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 f=>t.sources[f],removeSnapshotFile:mn,onUnhandledError:Bd,saveTestFile:mn,getProvidedContext:()=>({}),getTestFiles:mn};e.rpc=n;const i=Promise.resolve();function s(){l()}async function l(){var g;const f=await fetch(window.METADATA_PATH),h=((g=f.headers.get("content-type"))==null?void 0:g.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await f.arrayBuffer()),y=Ufe(Wfe(v));t=kh(y)}else t=kh(await f.text());const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return i}return e}const ht=function(){return pr?Vfe():D$(KM,{reactive:(t,n)=>n==="state"?rr(t):nn(t),handlers:{onTestAnnotate(t,n){Ae.annotateTest(t,n)},onTaskUpdate(t,n){Ae.resumeRun(t,n),df.value="running"},onFinished(t,n){Ae.endRun(),Qi.value=(n||[]).map(e1)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),tl=nn({}),jo=Ue("CONNECTING"),qt=_e(()=>{const e=vo.value;return e?gr(e):void 0}),c1=_e(()=>Cp(qt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function gr(e){const t=ht.state.idMap.get(e);return t||void 0}const Gfe=_e(()=>jo.value==="OPEN"),Wd=_e(()=>jo.value==="CONNECTING");_e(()=>jo.value==="CLOSED");function Xfe(){return zp(ht.state.getFiles())}function u1(e){delete e.result;const t=Ae.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Va(e)))for(const n of e.tasks)u1(n)}function Kfe(e){const t=Ae.nodes;e.forEach(n=>{delete n.result,Cp(n).forEach(s=>{if(delete s.result,t.has(s.id)){const l=t.get(s.id);l&&(l.state=void 0,l.duration=void 0)}});const i=t.get(n.id);i&&(i.state=void 0,i.duration=void 0,On(i)&&(i.collectDuration=void 0))})}function zp(e){return Kfe(e),Ae.startRun(),ht.rpc.rerun(e.map(t=>t.filepath),!0)}function Jfe(e){return u1(e),Ae.startRun(),ht.rpc.rerunTask(e.id)}const It=window.__vitest_browser_runner__;window.__vitest_ui_api__=VM;St(()=>ht.ws,e=>{jo.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{jo.value="OPEN",ht.state.filesMap.clear();let[t,n,i,s]=await Promise.all([ht.rpc.getFiles(),ht.rpc.getConfig(),ht.rpc.getUnhandledErrors(),ht.rpc.getResolvedProjectLabels()]);n.standalone&&(t=(await ht.rpc.getTestFiles()).map(([{name:u,root:f},h])=>{const p=ux(h,f,u);return p.mode="skip",p})),Ae.loadFiles(t,s),ht.state.collectFiles(t),Ae.startRun(),Qi.value=(i||[]).map(e1),tl.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{jo.value==="CONNECTING"&&(jo.value="CLOSED")},1e3)})},{immediate:!0});const Yfe={"text-2xl":""},Zfe={"text-lg":"",op50:""},Qfe=at({__name:"ConnectionOverlay",setup(e){return(t,n)=>j(Gfe)?je("",!0):(se(),ye("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>j(ht).reconnect&&j(ht).reconnect(...i))},[te("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(j(Wd)?"animate-pulse":"")},[te("div",{text:"5xl",class:ot(j(Wd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),te("div",Yfe,Re(j(Wd)?"Connecting...":"Disconnected"),1),te("div",Zfe," Check your terminal or start a new server with `"+Re(j(It)?`vitest --browser=${j(It).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),ede=["aria-label","opacity","disabled","hover"],ri=at({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(se(),ye("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:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[xn(t.$slots,"default",{},()=>[te("span",{class:ot(t.icon),ma:"",block:""},null,2)])],10,ede))}}),tde={h:"full",flex:"~ col"},nde={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rde={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},ide={class:"pointer-events-none","text-sm":""},ode={key:0},sde={id:"tester-container",relative:""},lde=["data-scale"],J0=20,ade=100,cde=at({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(p){const g=t[p];return er.value[0]===g[0]&&er.value[1]===g[1]}const{width:i,height:s}=Rx();async function l(p){er.value=t[p],(It==null?void 0:It.provider)==="webdriverio"&&Yx()}const u=_e(()=>{if((It==null?void 0:It.provider)==="webdriverio"){const[w,L]=er.value;return{width:w,height:L}}const v=i.value*(At.details.size/100)*(At.details.browser/100)-J0,y=s.value-ade;return{width:v,height:y}}),f=_e(()=>{if((It==null?void 0:It.provider)==="webdriverio")return 1;const[p,g]=er.value,{width:v,height:y}=u.value,w=v>p?1:v/p,L=y>g?1:y/g;return Math.min(1,w,L)}),h=_e(()=>{const p=u.value.width,g=er.value[0];return`${Math.trunc((p+J0-g)/2)}px`});return(p,g)=>{const v=ri,y=Dr("tooltip");return se(),ye("div",tde,[te("div",nde,[ct(Ie(v,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=w=>j(UM)())},null,512),[[no,j(At).navigation<=15],[y,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=te("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Ie(v,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=w=>j(jM)())},null,512),[[no,j(At).details.main>0],[y,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Ie(v,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=w=>j(qM)())},null,512),[[no,j(At).details.main===0],[y,"Show Right Panel",void 0,{bottom:!0}]])]),te("div",rde,[ct(Ie(v,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:g[3]||(g[3]=w=>l("small-mobile"))},null,8,["active"]),[[y,"Small mobile",void 0,{bottom:!0}]]),ct(Ie(v,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:g[4]||(g[4]=w=>l("large-mobile"))},null,8,["active"]),[[y,"Large mobile",void 0,{bottom:!0}]]),ct(Ie(v,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:g[5]||(g[5]=w=>l("tablet"))},null,8,["active"]),[[y,"Tablet",void 0,{bottom:!0}]]),te("span",ide,[dt(Re(j(er)[0])+"x"+Re(j(er)[1])+"px ",1),j(f)<1?(se(),ye("span",ode,"("+Re((j(f)*100).toFixed(0))+"%)",1)):je("",!0)])]),te("div",sde,[te("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":j(f),style:tn({"--viewport-width":`${j(er)[0]}px`,"--viewport-height":`${j(er)[1]}px`,"--tester-transform":`scale(${j(f)})`,"--tester-margin-left":j(h)})}," Select a test to run ",12,lde)])])}}}),ude=ni(cde,[["__scopeId","data-v-9fd23e63"]]),Dp=at({__name:"Modal",props:ma({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ef(e,"modelValue"),n=_e(()=>{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""}}),i=_e(()=>{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(l,u)=>(se(),ye("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[te("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),te("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[j(n)]]),style:tn(t.value?{}:{transform:j(i)})},[xn(l.$slots,"default")],6)],2))}}),fde={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},dde={"p-4":"",relative:"",border:"base b"},hde={op50:"","font-mono":"","text-sm":""},pde={op50:"","font-mono":"","text-sm":""},gde={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},mde=["src","alt"],vde={key:1},yde=at({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return Mx("Escape",()=>{n("close")}),(i,s)=>{const l=ri;return se(),ye("div",fde,[te("div",dde,[s[1]||(s[1]=te("p",null,"Screenshot error",-1)),te("p",hde,Re(i.file),1),te("p",pde,Re(i.name),1),Ie(l,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=u=>n("close"))})]),te("div",gde,[i.url?(se(),ye("img",{key:0,src:i.url,alt:`Screenshot error for '${i.name}' test in file '${i.file}'`,border:"base t r b l dotted red-500"},null,8,mde)):(se(),ye("div",vde," Something was wrong, the image cannot be resolved. "))])])}}}),f1=ni(yde,[["__scopeId","data-v-93900314"]]),d1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(d1);var cr=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},Ls,Kl,Bo;class bde{constructor(...t){Ls.set(this,new Map),Kl.set(this,new Map),Bo.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[i,s]of Object.entries(t)){i=i.toLowerCase(),s=s.map(f=>f.toLowerCase()),cr(this,Bo,"f").has(i)||cr(this,Bo,"f").set(i,new Set);const l=cr(this,Bo,"f").get(i);let u=!0;for(let f of s){const h=f.startsWith("*");if(f=h?f.slice(1):f,l==null||l.add(f),u&&cr(this,Kl,"f").set(i,f),u=!1,h)continue;const p=cr(this,Ls,"f").get(f);if(p&&p!=i&&!n)throw new Error(`"${i} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);cr(this,Ls,"f").set(f,i)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),s=n.length<t.length;return!(i.length<n.length-1)&&s?null:cr(this,Ls,"f").get(i)??null}getExtension(t){var n;return typeof t!="string"?null:(t=(n=t==null?void 0:t.split)==null?void 0:n.call(t,";")[0],(t&&cr(this,Kl,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:cr(this,Bo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of cr(this,Bo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:cr(this,Ls,"f"),extensions:cr(this,Kl,"f")}}}Ls=new WeakMap,Kl=new WeakMap,Bo=new WeakMap;const wde=new bde(d1)._freeze();function Pu(e){if(pr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function h1(e,t){const n=t?wde.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function xde(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const Sde=["href","referrerPolicy"],_de=["src"],kde=at({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=_e(()=>{const i=t.annotation.attachment,s=i.path||i.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Pu(i)});return(i,s)=>{var l;return i.annotation.attachment&&((l=i.annotation.attachment.contentType)!=null&&l.startsWith("image/"))?(se(),ye("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:j(n),referrerPolicy:j(xde)(i.annotation.attachment)?"no-referrer":void 0},[te("img",{src:j(n)},null,8,_de)],8,Sde)):je("",!0)}}});var ru={exports:{}},Tde=ru.exports,Y0;function ll(){return Y0||(Y0=1,function(e,t){(function(n,i){e.exports=i()})(Tde,function(){var n=navigator.userAgent,i=navigator.platform,s=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),h=l||u||f,p=h&&(l?document.documentMode||6:+(f||u)[1]),g=!f&&/WebKit\//.test(n),v=g&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],L=/Opera\//.test(n),$=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/PhantomJS/.test(n),N=$&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),k=N||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),z=N||/Mac/.test(i),D=/\bCrOS\b/.test(n),oe=/win/i.test(i),Q=L&&n.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(L=!1,g=!0);var W=z&&(v||L&&(Q==null||Q<12.11)),q=s||h&&p>=9;function U(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var A=function(r,o){var c=r.className,a=U(o).exec(c);if(a){var d=c.slice(a.index+a[0].length);r.className=c.slice(0,a.index)+(d?a[1]+d:"")}};function I(r){for(var o=r.childNodes.length;o>0;--o)r.removeChild(r.firstChild);return r}function P(r,o){return I(r).appendChild(o)}function S(r,o,c,a){var d=document.createElement(r);if(c&&(d.className=c),a&&(d.style.cssText=a),typeof o=="string")d.appendChild(document.createTextNode(o));else if(o)for(var m=0;m<o.length;++m)d.appendChild(o[m]);return d}function R(r,o,c,a){var d=S(r,o,c,a);return d.setAttribute("role","presentation"),d}var B;document.createRange?B=function(r,o,c,a){var d=document.createRange();return d.setEnd(a||r,c),d.setStart(r,o),d}:B=function(r,o,c){var a=document.body.createTextRange();try{a.moveToElementText(r.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",o),a};function ie(r,o){if(o.nodeType==3&&(o=o.parentNode),r.contains)return r.contains(o);do if(o.nodeType==11&&(o=o.host),o==r)return!0;while(o=o.parentNode)}function ue(r){var o=r.ownerDocument||r,c;try{c=r.activeElement}catch{c=o.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function we(r,o){var c=r.className;U(o).test(c)||(r.className+=(c?" ":"")+o)}function Pe(r,o){for(var c=r.split(" "),a=0;a<c.length;a++)c[a]&&!U(c[a]).test(o)&&(o+=" "+c[a]);return o}var qe=function(r){r.select()};N?qe=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:h&&(qe=function(r){try{r.select()}catch{}});function Ze(r){return r.display.wrapper.ownerDocument}function Ke(r){return Je(r.display.wrapper)}function Je(r){return r.getRootNode?r.getRootNode():r.ownerDocument}function re(r){return Ze(r).defaultView}function V(r){var o=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,o)}}function ee(r,o,c){o||(o={});for(var a in r)r.hasOwnProperty(a)&&(c!==!1||!o.hasOwnProperty(a))&&(o[a]=r[a]);return o}function J(r,o,c,a,d){o==null&&(o=r.search(/[^\s\u00a0]/),o==-1&&(o=r.length));for(var m=a||0,b=d||0;;){var x=r.indexOf(" ",m);if(x<0||x>=o)return b+(o-m);b+=x-m,b+=c-b%c,m=x+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};ae.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},ae.prototype.set=function(r,o){this.f=o;var c=+new Date+r;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=c)};function ge(r,o){for(var c=0;c<r.length;++c)if(r[c]==o)return c;return-1}var F=50,G={toString:function(){return"CodeMirror.Pass"}},Y={scroll:!1},fe={origin:"*mouse"},pe={origin:"+move"};function he(r,o,c){for(var a=0,d=0;;){var m=r.indexOf(" ",a);m==-1&&(m=r.length);var b=m-a;if(m==r.length||d+b>=o)return a+Math.min(b,o-d);if(d+=m-a,d+=c-d%c,a=m+1,d>=o)return a}}var Ce=[""];function Ee(r){for(;Ce.length<=r;)Ce.push(ve(Ce)+" ");return Ce[r]}function ve(r){return r[r.length-1]}function be(r,o){for(var c=[],a=0;a<r.length;a++)c[a]=o(r[a],a);return c}function He(r,o,c){for(var a=0,d=c(o);a<r.length&&c(r[a])<=d;)a++;r.splice(a,0,o)}function Me(){}function De(r,o){var c;return Object.create?c=Object.create(r):(Me.prototype=r,c=new Me),o&&ee(o,c),c}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Ve.test(r))}function st(r,o){return o?o.source.indexOf("\\w")>-1&&rt(r)?!0:o.test(r):rt(r)}function ut(r){for(var o in r)if(r.hasOwnProperty(o)&&r[o])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 lt(r){return r.charCodeAt(0)>=768&&$t.test(r)}function Xt(r,o,c){for(;(c<0?o>0:o<r.length)&&lt(r.charAt(o));)o+=c;return o}function Bt(r,o,c){for(var a=o>c?-1:1;;){if(o==c)return o;var d=(o+c)/2,m=a<0?Math.ceil(d):Math.floor(d);if(m==o)return r(m)?o:c;r(m)?c=m:o=m+a}}function Dn(r,o,c,a){if(!r)return a(o,c,"ltr",0);for(var d=!1,m=0;m<r.length;++m){var b=r[m];(b.from<c&&b.to>o||o==c&&b.to==o)&&(a(Math.max(b.from,o),Math.min(b.to,c),b.level==1?"rtl":"ltr",m),d=!0)}d||a(o,c,"ltr")}var Hr=null;function Ft(r,o,c){var a;Hr=null;for(var d=0;d<r.length;++d){var m=r[d];if(m.from<o&&m.to>o)return d;m.to==o&&(m.from!=m.to&&c=="before"?a=d:Hr=d),m.from==o&&(m.from!=m.to&&c!="before"?a=d:Hr=d)}return a??Hr}var Fn=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",o="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(T){return T<=247?r.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?o.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function _(T,H,K){this.level=T,this.from=H,this.to=K}return function(T,H){var K=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!a.test(T))return!1;for(var ne=T.length,Z=[],ce=0;ce<ne;++ce)Z.push(c(T.charCodeAt(ce)));for(var me=0,Se=K;me<ne;++me){var ke=Z[me];ke=="m"?Z[me]=Se:Se=ke}for(var $e=0,Te=K;$e<ne;++$e){var Ne=Z[$e];Ne=="1"&&Te=="r"?Z[$e]="n":m.test(Ne)&&(Te=Ne,Ne=="r"&&(Z[$e]="R"))}for(var We=1,ze=Z[0];We<ne-1;++We){var Qe=Z[We];Qe=="+"&&ze=="1"&&Z[We+1]=="1"?Z[We]="1":Qe==","&&ze==Z[We+1]&&(ze=="1"||ze=="n")&&(Z[We]=ze),ze=Qe}for(var xt=0;xt<ne;++xt){var Qt=Z[xt];if(Qt==",")Z[xt]="N";else if(Qt=="%"){var Mt=void 0;for(Mt=xt+1;Mt<ne&&Z[Mt]=="%";++Mt);for(var Wn=xt&&Z[xt-1]=="!"||Mt<ne&&Z[Mt]=="1"?"1":"N",Cn=xt;Cn<Mt;++Cn)Z[Cn]=Wn;xt=Mt-1}}for(var Wt=0,En=K;Wt<ne;++Wt){var on=Z[Wt];En=="L"&&on=="1"?Z[Wt]="L":m.test(on)&&(En=on)}for(var Vt=0;Vt<ne;++Vt)if(d.test(Z[Vt])){var jt=void 0;for(jt=Vt+1;jt<ne&&d.test(Z[jt]);++jt);for(var zt=(Vt?Z[Vt-1]:K)=="L",An=(jt<ne?Z[jt]:K)=="L",_s=zt==An?zt?"L":"R":K,ji=Vt;ji<jt;++ji)Z[ji]=_s;Vt=jt-1}for(var un=[],Ur,en=0;en<ne;)if(b.test(Z[en])){var dd=en;for(++en;en<ne&&b.test(Z[en]);++en);un.push(new _(0,dd,en))}else{var di=en,No=un.length,Io=H=="rtl"?1:0;for(++en;en<ne&&Z[en]!="L";++en);for(var gn=di;gn<en;)if(x.test(Z[gn])){di<gn&&(un.splice(No,0,new _(1,di,gn)),No+=Io);var ks=gn;for(++gn;gn<en&&x.test(Z[gn]);++gn);un.splice(No,0,new _(2,ks,gn)),No+=Io,di=gn}else++gn;di<en&&un.splice(No,0,new _(1,di,en))}return H=="ltr"&&(un[0].level==1&&(Ur=T.match(/^\s+/))&&(un[0].from=Ur[0].length,un.unshift(new _(0,0,Ur[0].length))),ve(un).level==1&&(Ur=T.match(/\s+$/))&&(ve(un).to-=Ur[0].length,un.push(new _(0,ne-Ur[0].length,ne)))),H=="rtl"?un.reverse():un}}();function tt(r,o){var c=r.order;return c==null&&(c=r.order=Fn(r.text,o)),c}var So=[],Be=function(r,o,c){if(r.addEventListener)r.addEventListener(o,c,!1);else if(r.attachEvent)r.attachEvent("on"+o,c);else{var a=r._handlers||(r._handlers={});a[o]=(a[o]||So).concat(c)}};function oi(r,o){return r._handlers&&r._handlers[o]||So}function ln(r,o,c){if(r.removeEventListener)r.removeEventListener(o,c,!1);else if(r.detachEvent)r.detachEvent("on"+o,c);else{var a=r._handlers,d=a&&a[o];if(d){var m=ge(d,c);m>-1&&(a[o]=d.slice(0,m).concat(d.slice(m+1)))}}}function Pt(r,o){var c=oi(r,o);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<c.length;++d)c[d].apply(null,a)}function Ot(r,o,c){return typeof o=="string"&&(o={type:o,preventDefault:function(){this.defaultPrevented=!0}}),Pt(r,c||o.type,r,o),Sn(o)||o.codemirrorIgnore}function sr(r){var o=r._handlers&&r._handlers.cursorActivity;if(o)for(var c=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),a=0;a<o.length;++a)ge(c,o[a])==-1&&c.push(o[a])}function Hn(r,o){return oi(r,o).length>0}function mr(r){r.prototype.on=function(o,c){Be(this,o,c)},r.prototype.off=function(o,c){ln(this,o,c)}}function an(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Zo(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function Sn(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Mi(r){an(r),Zo(r)}function cl(r){return r.target||r.srcElement}function vr(r){var o=r.which;return o==null&&(r.button&1?o=1:r.button&2?o=3:r.button&4&&(o=2)),z&&r.ctrlKey&&o==1&&(o=3),o}var bf=function(){if(h&&p<9)return!1;var r=S("div");return"draggable"in r||"dragDrop"in r}(),Qo;function Qa(r){if(Qo==null){var o=S("span","​");P(r,S("span",[o,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Qo=o.offsetWidth<=1&&o.offsetHeight>2&&!(h&&p<8))}var c=Qo?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var ul;function Ni(r){if(ul!=null)return ul;var o=P(r,document.createTextNode("AخA")),c=B(o,0,1).getBoundingClientRect(),a=B(o,1,2).getBoundingClientRect();return I(r),!c||c.left==c.right?!1:ul=a.right-c.right<3}var lr=`
26
26
 
27
27
  b`.split(/\n/).length!=3?function(r){for(var o=0,c=[],a=r.length;o<=a;){var d=r.indexOf(`
28
- `,o);d==-1&&(d=r.length);var m=r.slice(o,r.charAt(d-1)=="\r"?d-1:d),b=m.indexOf("\r");b!=-1?(c.push(m.slice(0,b)),o+=b+1):(c.push(m),o=d+1)}return c}:function(r){return r.split(/\r\n?|\n/)},Ni=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var o;try{o=r.ownerDocument.selection.createRange()}catch{}return!o||o.parentElement()!=r?!1:o.compareEndPoints("StartToEnd",o)!=0},ec=function(){var r=S("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),yr=null;function wf(r){if(yr!=null)return yr;var o=P(r,S("span","x")),c=o.getBoundingClientRect(),a=B(o,0,1).getBoundingClientRect();return yr=Math.abs(c.left-a.left)>1}var Qo={},br={};function wr(r,o){arguments.length>2&&(o.dependencies=Array.prototype.slice.call(arguments,2)),Qo[r]=o}function xo(r,o){br[r]=o}function es(r){if(typeof r=="string"&&br.hasOwnProperty(r))r=br[r];else if(r&&typeof r.name=="string"&&br.hasOwnProperty(r.name)){var o=br[r.name];typeof o=="string"&&(o={name:o}),r=De(o,r),r.name=o.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return es("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return es("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function ts(r,o){o=es(o);var c=Qo[o.name];if(!c)return ts(r,"text/plain");var a=c(r,o);if(Ii.hasOwnProperty(o.name)){var d=Ii[o.name];for(var m in d)d.hasOwnProperty(m)&&(a.hasOwnProperty(m)&&(a["_"+m]=a[m]),a[m]=d[m])}if(a.name=o.name,o.helperType&&(a.helperType=o.helperType),o.modeProps)for(var b in o.modeProps)a[b]=o.modeProps[b];return a}var Ii={};function ns(r,o){var c=Ii.hasOwnProperty(r)?Ii[r]:Ii[r]={};ee(o,c)}function Br(r,o){if(o===!0)return o;if(r.copyState)return r.copyState(o);var c={};for(var a in o){var d=o[a];d instanceof Array&&(d=d.concat([])),c[a]=d}return c}function ul(r,o){for(var c;r.innerMode&&(c=r.innerMode(o),!(!c||c.mode==r));)o=c.state,r=c.mode;return c||{mode:r,state:o}}function rs(r,o,c){return r.startState?r.startState(o,c):!0}var Rt=function(r,o,c){this.pos=this.start=0,this.string=r,this.tabSize=o||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.prototype.eat=function(r){var o=this.string.charAt(this.pos),c;if(typeof r=="string"?c=o==r:c=o&&(r.test?r.test(o):r(o)),c)return++this.pos,o},Rt.prototype.eatWhile=function(r){for(var o=this.pos;this.eat(r););return this.pos>o},Rt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(r){var o=this.string.indexOf(r,this.pos);if(o>-1)return this.pos=o,!0},Rt.prototype.backUp=function(r){this.pos-=r},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=J(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return J(this.string,null,this.tabSize)-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.match=function(r,o,c){if(typeof r=="string"){var a=function(b){return c?b.toLowerCase():b},d=this.string.substr(this.pos,r.length);if(a(d)==a(r))return o!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&o!==!1&&(this.pos+=m[0].length),m)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(r,o){this.lineStart+=r;try{return o()}finally{this.lineStart-=r}},Rt.prototype.lookAhead=function(r){var o=this.lineOracle;return o&&o.lookAhead(r)},Rt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function Oe(r,o){if(o-=r.first,o<0||o>=r.size)throw new Error("There is no line "+(o+r.first)+" in the document.");for(var c=r;!c.lines;)for(var a=0;;++a){var d=c.children[a],m=d.chunkSize();if(o<m){c=d;break}o-=m}return c.lines[o]}function si(r,o,c){var a=[],d=o.line;return r.iter(o.line,c.line+1,function(m){var b=m.text;d==c.line&&(b=b.slice(0,c.ch)),d==o.line&&(b=b.slice(o.ch)),a.push(b),++d}),a}function fl(r,o,c){var a=[];return r.iter(o,c,function(d){a.push(d.text)}),a}function Yn(r,o){var c=o-r.height;if(c)for(var a=r;a;a=a.parent)a.height+=c}function M(r){if(r.parent==null)return null;for(var o=r.parent,c=ge(o.lines,r),a=o.parent;a;o=a,a=a.parent)for(var d=0;a.children[d]!=o;++d)c+=a.children[d].chunkSize();return c+o.first}function X(r,o){var c=r.first;e:do{for(var a=0;a<r.children.length;++a){var d=r.children[a],m=d.height;if(o<m){r=d;continue e}o-=m,c+=d.chunkSize()}return c}while(!r.lines);for(var b=0;b<r.lines.length;++b){var x=r.lines[b],_=x.height;if(o<_)break;o-=_}return c+b}function de(r,o){return o>=r.first&&o<r.first+r.size}function xe(r,o){return String(r.lineNumberFormatter(o+r.firstLineNumber))}function le(r,o,c){if(c===void 0&&(c=null),!(this instanceof le))return new le(r,o,c);this.line=r,this.ch=o,this.sticky=c}function Le(r,o){return r.line-o.line||r.ch-o.ch}function pt(r,o){return r.sticky==o.sticky&&Le(r,o)==0}function Kt(r){return le(r.line,r.ch)}function _n(r,o){return Le(r,o)<0?o:r}function is(r,o){return Le(r,o)<0?r:o}function eg(r,o){return Math.max(r.first,Math.min(o,r.first+r.size-1))}function Xe(r,o){if(o.line<r.first)return le(r.first,0);var c=r.first+r.size-1;return o.line>c?le(c,Oe(r,c).text.length):SS(o,Oe(r,o.line).text.length)}function SS(r,o){var c=r.ch;return c==null||c>o?le(r.line,o):c<0?le(r.line,0):r}function tg(r,o){for(var c=[],a=0;a<o.length;a++)c[a]=Xe(r,o[a]);return c}var tc=function(r,o){this.state=r,this.lookAhead=o},Wr=function(r,o,c,a){this.state=o,this.doc=r,this.line=c,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Wr.prototype.lookAhead=function(r){var o=this.doc.getLine(this.line+r);return o!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),o},Wr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var o=this.baseTokens[this.baseTokenPos+1];return{type:o&&o.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(r,o,c){return o instanceof tc?new Wr(r,Br(r.mode,o.state),c,o.lookAhead):new Wr(r,Br(r.mode,o),c)},Wr.prototype.save=function(r){var o=r!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tc(o,this.maxLookAhead):o};function ng(r,o,c,a){var d=[r.state.modeGen],m={};ag(r,o.text,r.doc.mode,c,function(T,H){return d.push(T,H)},m,a);for(var b=c.state,x=function(T){c.baseTokens=d;var H=r.state.overlays[T],K=1,ne=0;c.state=!0,ag(r,o.text,H.mode,c,function(Z,ce){for(var me=K;ne<Z;){var Se=d[K];Se>Z&&d.splice(K,1,Z,d[K+1],Se),K+=2,ne=Math.min(Z,Se)}if(ce)if(H.opaque)d.splice(me,K-me,Z,"overlay "+ce),K=me+2;else for(;me<K;me+=2){var ke=d[me+1];d[me+1]=(ke?ke+" ":"")+"overlay "+ce}},m),c.state=b,c.baseTokens=null,c.baseTokenPos=1},_=0;_<r.state.overlays.length;++_)x(_);return{styles:d,classes:m.bgClass||m.textClass?m:null}}function rg(r,o,c){if(!o.styles||o.styles[0]!=r.state.modeGen){var a=dl(r,M(o)),d=o.text.length>r.options.maxHighlightLength&&Br(r.doc.mode,a.state),m=ng(r,o,a);d&&(a.state=d),o.stateAfter=a.save(!d),o.styles=m.styles,m.classes?o.styleClasses=m.classes:o.styleClasses&&(o.styleClasses=null),c===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return o.styles}function dl(r,o,c){var a=r.doc,d=r.display;if(!a.mode.startState)return new Wr(a,!0,o);var m=_S(r,o,c),b=m>a.first&&Oe(a,m-1).stateAfter,x=b?Wr.fromSaved(a,b,m):new Wr(a,rs(a.mode),m);return a.iter(m,o,function(_){xf(r,_.text,x);var T=x.line;_.stateAfter=T==o-1||T%5==0||T>=d.viewFrom&&T<d.viewTo?x.save():null,x.nextLine()}),c&&(a.modeFrontier=x.line),x}function xf(r,o,c,a){var d=r.doc.mode,m=new Rt(o,r.options.tabSize,c);for(m.start=m.pos=a||0,o==""&&ig(d,c.state);!m.eol();)Sf(d,m,c.state),m.start=m.pos}function ig(r,o){if(r.blankLine)return r.blankLine(o);if(r.innerMode){var c=ul(r,o);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function Sf(r,o,c,a){for(var d=0;d<10;d++){a&&(a[0]=ul(r,c).mode);var m=r.token(o,c);if(o.pos>o.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var og=function(r,o,c){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=o||null,this.state=c};function sg(r,o,c,a){var d=r.doc,m=d.mode,b;o=Xe(d,o);var x=Oe(d,o.line),_=dl(r,o.line,c),T=new Rt(x.text,r.options.tabSize,_),H;for(a&&(H=[]);(a||T.pos<o.ch)&&!T.eol();)T.start=T.pos,b=Sf(m,T,_.state),a&&H.push(new og(T,b,Br(d.mode,_.state)));return a?H:new og(T,b,_.state)}function lg(r,o){if(r)for(;;){var c=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;r=r.slice(0,c.index)+r.slice(c.index+c[0].length);var a=c[1]?"bgClass":"textClass";o[a]==null?o[a]=c[2]:new RegExp("(?:^|\\s)"+c[2]+"(?:$|\\s)").test(o[a])||(o[a]+=" "+c[2])}return r}function ag(r,o,c,a,d,m,b){var x=c.flattenSpans;x==null&&(x=r.options.flattenSpans);var _=0,T=null,H=new Rt(o,r.options.tabSize,a),K,ne=r.options.addModeClass&&[null];for(o==""&&lg(ig(c,a.state),m);!H.eol();){if(H.pos>r.options.maxHighlightLength?(x=!1,b&&xf(r,o,a,H.pos),H.pos=o.length,K=null):K=lg(Sf(c,H,a.state,ne),m),ne){var Z=ne[0].name;Z&&(K="m-"+(K?Z+" "+K:Z))}if(!x||T!=K){for(;_<H.start;)_=Math.min(H.start,_+5e3),d(_,T);T=K}H.start=H.pos}for(;_<H.pos;){var ce=Math.min(H.pos,_+5e3);d(ce,T),_=ce}}function _S(r,o,c){for(var a,d,m=r.doc,b=c?-1:o-(r.doc.mode.innerMode?1e3:100),x=o;x>b;--x){if(x<=m.first)return m.first;var _=Oe(m,x-1),T=_.stateAfter;if(T&&(!c||x+(T instanceof tc?T.lookAhead:0)<=m.modeFrontier))return x;var H=J(_.text,null,r.options.tabSize);(d==null||a>H)&&(d=x-1,a=H)}return d}function kS(r,o){if(r.modeFrontier=Math.min(r.modeFrontier,o),!(r.highlightFrontier<o-10)){for(var c=r.first,a=o-1;a>c;a--){var d=Oe(r,a).stateAfter;if(d&&(!(d instanceof tc)||a+d.lookAhead<o)){c=a+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,c)}}var cg=!1,li=!1;function TS(){cg=!0}function CS(){li=!0}function nc(r,o,c){this.marker=r,this.from=o,this.to=c}function hl(r,o){if(r)for(var c=0;c<r.length;++c){var a=r[c];if(a.marker==o)return a}}function ES(r,o){for(var c,a=0;a<r.length;++a)r[a]!=o&&(c||(c=[])).push(r[a]);return c}function AS(r,o,c){var a=c&&window.WeakSet&&(c.markedSpans||(c.markedSpans=new WeakSet));a&&r.markedSpans&&a.has(r.markedSpans)?r.markedSpans.push(o):(r.markedSpans=r.markedSpans?r.markedSpans.concat([o]):[o],a&&a.add(r.markedSpans)),o.marker.attachLine(r)}function LS(r,o,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.from==null||(b.inclusiveLeft?m.from<=o:m.from<o);if(x||m.from==o&&b.type=="bookmark"&&(!c||!m.marker.insertLeft)){var _=m.to==null||(b.inclusiveRight?m.to>=o:m.to>o);(a||(a=[])).push(new nc(b,m.from,_?null:m.to))}}return a}function $S(r,o,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.to==null||(b.inclusiveRight?m.to>=o:m.to>o);if(x||m.from==o&&b.type=="bookmark"&&(!c||m.marker.insertLeft)){var _=m.from==null||(b.inclusiveLeft?m.from<=o:m.from<o);(a||(a=[])).push(new nc(b,_?null:m.from-o,m.to==null?null:m.to-o))}}return a}function _f(r,o){if(o.full)return null;var c=de(r,o.from.line)&&Oe(r,o.from.line).markedSpans,a=de(r,o.to.line)&&Oe(r,o.to.line).markedSpans;if(!c&&!a)return null;var d=o.from.ch,m=o.to.ch,b=Le(o.from,o.to)==0,x=LS(c,d,b),_=$S(a,m,b),T=o.text.length==1,H=ve(o.text).length+(T?d:0);if(x)for(var K=0;K<x.length;++K){var ne=x[K];if(ne.to==null){var Z=hl(_,ne.marker);Z?T&&(ne.to=Z.to==null?null:Z.to+H):ne.to=d}}if(_)for(var ce=0;ce<_.length;++ce){var me=_[ce];if(me.to!=null&&(me.to+=H),me.from==null){var Se=hl(x,me.marker);Se||(me.from=H,T&&(x||(x=[])).push(me))}else me.from+=H,T&&(x||(x=[])).push(me)}x&&(x=ug(x)),_&&_!=x&&(_=ug(_));var ke=[x];if(!T){var $e=o.text.length-2,Te;if($e>0&&x)for(var Ne=0;Ne<x.length;++Ne)x[Ne].to==null&&(Te||(Te=[])).push(new nc(x[Ne].marker,null,null));for(var We=0;We<$e;++We)ke.push(Te);ke.push(_)}return ke}function ug(r){for(var o=0;o<r.length;++o){var c=r[o];c.from!=null&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&r.splice(o--,1)}return r.length?r:null}function MS(r,o,c){var a=null;if(r.iter(o.line,c.line+1,function(Z){if(Z.markedSpans)for(var ce=0;ce<Z.markedSpans.length;++ce){var me=Z.markedSpans[ce].marker;me.readOnly&&(!a||ge(a,me)==-1)&&(a||(a=[])).push(me)}}),!a)return null;for(var d=[{from:o,to:c}],m=0;m<a.length;++m)for(var b=a[m],x=b.find(0),_=0;_<d.length;++_){var T=d[_];if(!(Le(T.to,x.from)<0||Le(T.from,x.to)>0)){var H=[_,1],K=Le(T.from,x.from),ne=Le(T.to,x.to);(K<0||!b.inclusiveLeft&&!K)&&H.push({from:T.from,to:x.from}),(ne>0||!b.inclusiveRight&&!ne)&&H.push({from:x.to,to:T.to}),d.splice.apply(d,H),_+=H.length-3}}return d}function fg(r){var o=r.markedSpans;if(o){for(var c=0;c<o.length;++c)o[c].marker.detachLine(r);r.markedSpans=null}}function dg(r,o){if(o){for(var c=0;c<o.length;++c)o[c].marker.attachLine(r);r.markedSpans=o}}function rc(r){return r.inclusiveLeft?-1:0}function ic(r){return r.inclusiveRight?1:0}function kf(r,o){var c=r.lines.length-o.lines.length;if(c!=0)return c;var a=r.find(),d=o.find(),m=Le(a.from,d.from)||rc(r)-rc(o);if(m)return-m;var b=Le(a.to,d.to)||ic(r)-ic(o);return b||o.id-r.id}function hg(r,o){var c=li&&r.markedSpans,a;if(c)for(var d=void 0,m=0;m<c.length;++m)d=c[m],d.marker.collapsed&&(o?d.from:d.to)==null&&(!a||kf(a,d.marker)<0)&&(a=d.marker);return a}function pg(r){return hg(r,!0)}function oc(r){return hg(r,!1)}function NS(r,o){var c=li&&r.markedSpans,a;if(c)for(var d=0;d<c.length;++d){var m=c[d];m.marker.collapsed&&(m.from==null||m.from<o)&&(m.to==null||m.to>o)&&(!a||kf(a,m.marker)<0)&&(a=m.marker)}return a}function gg(r,o,c,a,d){var m=Oe(r,o),b=li&&m.markedSpans;if(b)for(var x=0;x<b.length;++x){var _=b[x];if(_.marker.collapsed){var T=_.marker.find(0),H=Le(T.from,c)||rc(_.marker)-rc(d),K=Le(T.to,a)||ic(_.marker)-ic(d);if(!(H>=0&&K<=0||H<=0&&K>=0)&&(H<=0&&(_.marker.inclusiveRight&&d.inclusiveLeft?Le(T.to,c)>=0:Le(T.to,c)>0)||H>=0&&(_.marker.inclusiveRight&&d.inclusiveLeft?Le(T.from,a)<=0:Le(T.from,a)<0)))return!0}}}function xr(r){for(var o;o=pg(r);)r=o.find(-1,!0).line;return r}function IS(r){for(var o;o=oc(r);)r=o.find(1,!0).line;return r}function PS(r){for(var o,c;o=oc(r);)r=o.find(1,!0).line,(c||(c=[])).push(r);return c}function Tf(r,o){var c=Oe(r,o),a=xr(c);return c==a?o:M(a)}function mg(r,o){if(o>r.lastLine())return o;var c=Oe(r,o),a;if(!Pi(r,c))return o;for(;a=oc(c);)c=a.find(1,!0).line;return M(c)+1}function Pi(r,o){var c=li&&o.markedSpans;if(c){for(var a=void 0,d=0;d<c.length;++d)if(a=c[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&Cf(r,o,a))return!0}}}function Cf(r,o,c){if(c.to==null){var a=c.marker.find(1,!0);return Cf(r,a.line,hl(a.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==o.text.length)return!0;for(var d=void 0,m=0;m<o.markedSpans.length;++m)if(d=o.markedSpans[m],d.marker.collapsed&&!d.marker.widgetNode&&d.from==c.to&&(d.to==null||d.to!=c.from)&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&Cf(r,o,d))return!0}function ai(r){r=xr(r);for(var o=0,c=r.parent,a=0;a<c.lines.length;++a){var d=c.lines[a];if(d==r)break;o+=d.height}for(var m=c.parent;m;c=m,m=c.parent)for(var b=0;b<m.children.length;++b){var x=m.children[b];if(x==c)break;o+=x.height}return o}function sc(r){if(r.height==0)return 0;for(var o=r.text.length,c,a=r;c=pg(a);){var d=c.find(0,!0);a=d.from.line,o+=d.from.ch-d.to.ch}for(a=r;c=oc(a);){var m=c.find(0,!0);o-=a.text.length-m.from.ch,a=m.to.line,o+=a.text.length-m.to.ch}return o}function Ef(r){var o=r.display,c=r.doc;o.maxLine=Oe(c,c.first),o.maxLineLength=sc(o.maxLine),o.maxLineChanged=!0,c.iter(function(a){var d=sc(a);d>o.maxLineLength&&(o.maxLineLength=d,o.maxLine=a)})}var os=function(r,o,c){this.text=r,dg(this,o),this.height=c?c(this):1};os.prototype.lineNo=function(){return M(this)},mr(os);function OS(r,o,c,a){r.text=o,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),fg(r),dg(r,c);var d=a?a(r):1;d!=r.height&&Yn(r,d)}function RS(r){r.parent=null,fg(r)}var zS={},DS={};function vg(r,o){if(!r||/^\s*$/.test(r))return null;var c=o.addModeClass?DS:zS;return c[r]||(c[r]=r.replace(/\S+/g,"cm-$&"))}function yg(r,o){var c=R("span",null,null,g?"padding-right: .1px":null),a={pre:R("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};o.measure={};for(var d=0;d<=(o.rest?o.rest.length:0);d++){var m=d?o.rest[d-1]:o.line,b=void 0;a.pos=0,a.addToken=HS,Mi(r.display.measure)&&(b=tt(m,r.doc.direction))&&(a.addToken=WS(a.addToken,b)),a.map=[];var x=o!=r.display.externalMeasured&&M(m);jS(m,a,rg(r,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(a.bgClass=Pe(m.styleClasses.bgClass,a.bgClass||"")),m.styleClasses.textClass&&(a.textClass=Pe(m.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Qa(r.display.measure))),d==0?(o.measure.map=a.map,o.measure.cache={}):((o.measure.maps||(o.measure.maps=[])).push(a.map),(o.measure.caches||(o.measure.caches=[])).push({}))}if(g){var _=a.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Pt(r,"renderLine",r,o.line,a.pre),a.pre.className&&(a.textClass=Pe(a.pre.className,a.textClass||"")),a}function FS(r){var o=S("span","•","cm-invalidchar");return o.title="\\u"+r.charCodeAt(0).toString(16),o.setAttribute("aria-label",o.title),o}function HS(r,o,c,a,d,m,b){if(o){var x=r.splitSpaces?BS(o,r.trailingSpace):o,_=r.cm.state.specialChars,T=!1,H;if(!_.test(o))r.col+=o.length,H=document.createTextNode(x),r.map.push(r.pos,r.pos+o.length,H),h&&p<9&&(T=!0),r.pos+=o.length;else{H=document.createDocumentFragment();for(var K=0;;){_.lastIndex=K;var ne=_.exec(o),Z=ne?ne.index-K:o.length-K;if(Z){var ce=document.createTextNode(x.slice(K,K+Z));h&&p<9?H.appendChild(S("span",[ce])):H.appendChild(ce),r.map.push(r.pos,r.pos+Z,ce),r.col+=Z,r.pos+=Z}if(!ne)break;K+=Z+1;var me=void 0;if(ne[0]==" "){var Se=r.cm.options.tabSize,ke=Se-r.col%Se;me=H.appendChild(S("span",Ee(ke),"cm-tab")),me.setAttribute("role","presentation"),me.setAttribute("cm-text"," "),r.col+=ke}else ne[0]=="\r"||ne[0]==`
29
- `?(me=H.appendChild(S("span",ne[0]=="\r"?"␍":"␤","cm-invalidchar")),me.setAttribute("cm-text",ne[0]),r.col+=1):(me=r.cm.options.specialCharPlaceholder(ne[0]),me.setAttribute("cm-text",ne[0]),h&&p<9?H.appendChild(S("span",[me])):H.appendChild(me),r.col+=1);r.map.push(r.pos,r.pos+1,me),r.pos++}}if(r.trailingSpace=x.charCodeAt(o.length-1)==32,c||a||d||T||m||b){var $e=c||"";a&&($e+=a),d&&($e+=d);var Te=S("span",[H],$e,m);if(b)for(var Ne in b)b.hasOwnProperty(Ne)&&Ne!="style"&&Ne!="class"&&Te.setAttribute(Ne,b[Ne]);return r.content.appendChild(Te)}r.content.appendChild(H)}}function BS(r,o){if(r.length>1&&!/ /.test(r))return r;for(var c=o,a="",d=0;d<r.length;d++){var m=r.charAt(d);m==" "&&c&&(d==r.length-1||r.charCodeAt(d+1)==32)&&(m=" "),a+=m,c=m==" "}return a}function WS(r,o){return function(c,a,d,m,b,x,_){d=d?d+" cm-force-border":"cm-force-border";for(var T=c.pos,H=T+a.length;;){for(var K=void 0,ne=0;ne<o.length&&(K=o[ne],!(K.to>T&&K.from<=T));ne++);if(K.to>=H)return r(c,a,d,m,b,x,_);r(c,a.slice(0,K.to-T),d,m,null,x,_),m=null,a=a.slice(K.to-T),T=K.to}}}function bg(r,o,c,a){var d=!a&&c.widgetNode;d&&r.map.push(r.pos,r.pos+o,d),!a&&r.cm.display.input.needsContentAttribute&&(d||(d=r.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",c.id)),d&&(r.cm.display.input.setUneditable(d),r.content.appendChild(d)),r.pos+=o,r.trailingSpace=!1}function jS(r,o,c){var a=r.markedSpans,d=r.text,m=0;if(!a){for(var b=1;b<c.length;b+=2)o.addToken(o,d.slice(m,m=c[b]),vg(c[b+1],o.cm.options));return}for(var x=d.length,_=0,T=1,H="",K,ne,Z=0,ce,me,Se,ke,$e;;){if(Z==_){ce=me=Se=ne="",$e=null,ke=null,Z=1/0;for(var Te=[],Ne=void 0,We=0;We<a.length;++We){var ze=a[We],Qe=ze.marker;if(Qe.type=="bookmark"&&ze.from==_&&Qe.widgetNode)Te.push(Qe);else if(ze.from<=_&&(ze.to==null||ze.to>_||Qe.collapsed&&ze.to==_&&ze.from==_)){if(ze.to!=null&&ze.to!=_&&Z>ze.to&&(Z=ze.to,me=""),Qe.className&&(ce+=" "+Qe.className),Qe.css&&(ne=(ne?ne+";":"")+Qe.css),Qe.startStyle&&ze.from==_&&(Se+=" "+Qe.startStyle),Qe.endStyle&&ze.to==Z&&(Ne||(Ne=[])).push(Qe.endStyle,ze.to),Qe.title&&(($e||($e={})).title=Qe.title),Qe.attributes)for(var xt in Qe.attributes)($e||($e={}))[xt]=Qe.attributes[xt];Qe.collapsed&&(!ke||kf(ke.marker,Qe)<0)&&(ke=ze)}else ze.from>_&&Z>ze.from&&(Z=ze.from)}if(Ne)for(var Qt=0;Qt<Ne.length;Qt+=2)Ne[Qt+1]==Z&&(me+=" "+Ne[Qt]);if(!ke||ke.from==_)for(var Mt=0;Mt<Te.length;++Mt)bg(o,0,Te[Mt]);if(ke&&(ke.from||0)==_){if(bg(o,(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 Wn=Math.min(x,Z);;){if(H){var Cn=_+H.length;if(!ke){var Wt=Cn>Wn?H.slice(0,Wn-_):H;o.addToken(o,Wt,K?K+ce:ce,Se,_+Wt.length==Z?me:"",ne,$e)}if(Cn>=Wn){H=H.slice(Wn-_),_=Wn;break}_=Cn,Se=""}H=d.slice(m,m=c[T++]),K=vg(c[T++],o.cm.options)}}}function wg(r,o,c){this.line=o,this.rest=PS(o),this.size=this.rest?M(ve(this.rest))-c+1:1,this.node=this.text=null,this.hidden=Pi(r,o)}function lc(r,o,c){for(var a=[],d,m=o;m<c;m=d){var b=new wg(r.doc,Oe(r.doc,m),m);d=m+b.size,a.push(b)}return a}var ss=null;function qS(r){ss?ss.ops.push(r):r.ownsGroup=ss={ops:[r],delayedCallbacks:[]}}function US(r){var o=r.delayedCallbacks,c=0;do{for(;c<o.length;c++)o[c].call(null);for(var a=0;a<r.ops.length;a++){var d=r.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(c<o.length)}function VS(r,o){var c=r.ownsGroup;if(c)try{US(c)}finally{ss=null,o(c)}}var pl=null;function Jt(r,o){var c=oi(r,o);if(c.length){var a=Array.prototype.slice.call(arguments,2),d;ss?d=ss.delayedCallbacks:pl?d=pl:(d=pl=[],setTimeout(GS,0));for(var m=function(x){d.push(function(){return c[x].apply(null,a)})},b=0;b<c.length;++b)m(b)}}function GS(){var r=pl;pl=null;for(var o=0;o<r.length;++o)r[o]()}function xg(r,o,c,a){for(var d=0;d<o.changes.length;d++){var m=o.changes[d];m=="text"?KS(r,o):m=="gutter"?_g(r,o,c,a):m=="class"?Af(r,o):m=="widget"&&JS(r,o,a)}o.changes=null}function gl(r){return r.node==r.text&&(r.node=S("div",null,null,"position: relative"),r.text.parentNode&&r.text.parentNode.replaceChild(r.node,r.text),r.node.appendChild(r.text),h&&p<8&&(r.node.style.zIndex=2)),r.node}function XS(r,o){var c=o.bgClass?o.bgClass+" "+(o.line.bgClass||""):o.line.bgClass;if(c&&(c+=" CodeMirror-linebackground"),o.background)c?o.background.className=c:(o.background.parentNode.removeChild(o.background),o.background=null);else if(c){var a=gl(o);o.background=a.insertBefore(S("div",null,c),a.firstChild),r.display.input.setUneditable(o.background)}}function Sg(r,o){var c=r.display.externalMeasured;return c&&c.line==o.line?(r.display.externalMeasured=null,o.measure=c.measure,c.built):yg(r,o)}function KS(r,o){var c=o.text.className,a=Sg(r,o);o.text==o.node&&(o.node=a.pre),o.text.parentNode.replaceChild(a.pre,o.text),o.text=a.pre,a.bgClass!=o.bgClass||a.textClass!=o.textClass?(o.bgClass=a.bgClass,o.textClass=a.textClass,Af(r,o)):c&&(o.text.className=c)}function Af(r,o){XS(r,o),o.line.wrapClass?gl(o).className=o.line.wrapClass:o.node!=o.text&&(o.node.className="");var c=o.textClass?o.textClass+" "+(o.line.textClass||""):o.line.textClass;o.text.className=c||""}function _g(r,o,c,a){if(o.gutter&&(o.node.removeChild(o.gutter),o.gutter=null),o.gutterBackground&&(o.node.removeChild(o.gutterBackground),o.gutterBackground=null),o.line.gutterClass){var d=gl(o);o.gutterBackground=S("div",null,"CodeMirror-gutter-background "+o.line.gutterClass,"left: "+(r.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),r.display.input.setUneditable(o.gutterBackground),d.insertBefore(o.gutterBackground,o.text)}var m=o.line.gutterMarkers;if(r.options.lineNumbers||m){var b=gl(o),x=o.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),r.display.input.setUneditable(x),b.insertBefore(x,o.text),o.line.gutterClass&&(x.className+=" "+o.line.gutterClass),r.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(o.lineNumber=x.appendChild(S("div",xe(r.options,c),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),m)for(var _=0;_<r.display.gutterSpecs.length;++_){var T=r.display.gutterSpecs[_].className,H=m.hasOwnProperty(T)&&m[T];H&&x.appendChild(S("div",[H],"CodeMirror-gutter-elt","left: "+a.gutterLeft[T]+"px; width: "+a.gutterWidth[T]+"px"))}}}function JS(r,o,c){o.alignable&&(o.alignable=null);for(var a=U("CodeMirror-linewidget"),d=o.node.firstChild,m=void 0;d;d=m)m=d.nextSibling,a.test(d.className)&&o.node.removeChild(d);kg(r,o,c)}function YS(r,o,c,a){var d=Sg(r,o);return o.text=o.node=d.pre,d.bgClass&&(o.bgClass=d.bgClass),d.textClass&&(o.textClass=d.textClass),Af(r,o),_g(r,o,c,a),kg(r,o,a),o.node}function kg(r,o,c){if(Tg(r,o.line,o,c,!0),o.rest)for(var a=0;a<o.rest.length;a++)Tg(r,o.rest[a],o,c,!1)}function Tg(r,o,c,a,d){if(o.widgets)for(var m=gl(c),b=0,x=o.widgets;b<x.length;++b){var _=x[b],T=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),ZS(_,T,c,a),r.display.input.setUneditable(T),d&&_.above?m.insertBefore(T,c.gutter||c.text):m.appendChild(T),Jt(_,"redraw")}}function ZS(r,o,c,a){if(r.noHScroll){(c.alignable||(c.alignable=[])).push(o);var d=a.wrapperWidth;o.style.left=a.fixedPos+"px",r.coverGutter||(d-=a.gutterTotalWidth,o.style.paddingLeft=a.gutterTotalWidth+"px"),o.style.width=d+"px"}r.coverGutter&&(o.style.zIndex=5,o.style.position="relative",r.noHScroll||(o.style.marginLeft=-a.gutterTotalWidth+"px"))}function ml(r){if(r.height!=null)return r.height;var o=r.doc.cm;if(!o)return 0;if(!ie(document.body,r.node)){var c="position: relative;";r.coverGutter&&(c+="margin-left: -"+o.display.gutters.offsetWidth+"px;"),r.noHScroll&&(c+="width: "+o.display.wrapper.clientWidth+"px;"),P(o.display.measure,S("div",[r.node],null,c))}return r.height=r.node.parentNode.offsetHeight}function ci(r,o){for(var c=al(o);c!=r.wrapper;c=c.parentNode)if(!c||c.nodeType==1&&c.getAttribute("cm-ignore-events")=="true"||c.parentNode==r.sizer&&c!=r.mover)return!0}function ac(r){return r.lineSpace.offsetTop}function Lf(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function Cg(r){if(r.cachedPaddingH)return r.cachedPaddingH;var o=P(r.measure,S("pre","x","CodeMirror-line-like")),c=window.getComputedStyle?window.getComputedStyle(o):o.currentStyle,a={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(r.cachedPaddingH=a),a}function jr(r){return F-r.display.nativeBarWidth}function So(r){return r.display.scroller.clientWidth-jr(r)-r.display.barWidth}function $f(r){return r.display.scroller.clientHeight-jr(r)-r.display.barHeight}function QS(r,o,c){var a=r.options.lineWrapping,d=a&&So(r);if(!o.measure.heights||a&&o.measure.width!=d){var m=o.measure.heights=[];if(a){o.measure.width=d;for(var b=o.text.firstChild.getClientRects(),x=0;x<b.length-1;x++){var _=b[x],T=b[x+1];Math.abs(_.bottom-T.bottom)>2&&m.push((_.bottom+T.top)/2-c.top)}}m.push(c.bottom-c.top)}}function Eg(r,o,c){if(r.line==o)return{map:r.measure.map,cache:r.measure.cache};if(r.rest){for(var a=0;a<r.rest.length;a++)if(r.rest[a]==o)return{map:r.measure.maps[a],cache:r.measure.caches[a]};for(var d=0;d<r.rest.length;d++)if(M(r.rest[d])>c)return{map:r.measure.maps[d],cache:r.measure.caches[d],before:!0}}}function e_(r,o){o=xr(o);var c=M(o),a=r.display.externalMeasured=new wg(r.doc,o,c);a.lineN=c;var d=a.built=yg(r,a);return a.text=d.pre,P(r.display.lineMeasure,d.pre),a}function Ag(r,o,c,a){return qr(r,ls(r,o),c,a)}function Mf(r,o){if(o>=r.display.viewFrom&&o<r.display.viewTo)return r.display.view[To(r,o)];var c=r.display.externalMeasured;if(c&&o>=c.lineN&&o<c.lineN+c.size)return c}function ls(r,o){var c=M(o),a=Mf(r,c);a&&!a.text?a=null:a&&a.changes&&(xg(r,a,c,Rf(r)),r.curOp.forceUpdate=!0),a||(a=e_(r,o));var d=Eg(a,o,c);return{line:o,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function qr(r,o,c,a,d){o.before&&(c=-1);var m=c+(a||""),b;return o.cache.hasOwnProperty(m)?b=o.cache[m]:(o.rect||(o.rect=o.view.text.getBoundingClientRect()),o.hasHeights||(QS(r,o.view,o.rect),o.hasHeights=!0),b=n_(r,o,c,a),b.bogus||(o.cache[m]=b)),{left:b.left,right:b.right,top:d?b.rtop:b.top,bottom:d?b.rbottom:b.bottom}}var Lg={left:0,right:0,top:0,bottom:0};function $g(r,o,c){for(var a,d,m,b,x,_,T=0;T<r.length;T+=3)if(x=r[T],_=r[T+1],o<x?(d=0,m=1,b="left"):o<_?(d=o-x,m=d+1):(T==r.length-3||o==_&&r[T+3]>o)&&(m=_-x,d=m-1,o>=_&&(b="right")),d!=null){if(a=r[T+2],x==_&&c==(a.insertLeft?"left":"right")&&(b=c),c=="left"&&d==0)for(;T&&r[T-2]==r[T-3]&&r[T-1].insertLeft;)a=r[(T-=3)+2],b="left";if(c=="right"&&d==_-x)for(;T<r.length-3&&r[T+3]==r[T+4]&&!r[T+5].insertLeft;)a=r[(T+=3)+2],b="right";break}return{node:a,start:d,end:m,collapse:b,coverStart:x,coverEnd:_}}function t_(r,o){var c=Lg;if(o=="left")for(var a=0;a<r.length&&(c=r[a]).left==c.right;a++);else for(var d=r.length-1;d>=0&&(c=r[d]).left==c.right;d--);return c}function n_(r,o,c,a){var d=$g(o.map,c,a),m=d.node,b=d.start,x=d.end,_=d.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;b&&lt(o.line.text.charAt(d.coverStart+b));)--b;for(;d.coverStart+x<d.coverEnd&&lt(o.line.text.charAt(d.coverStart+x));)++x;if(h&&p<9&&b==0&&x==d.coverEnd-d.coverStart?T=m.parentNode.getBoundingClientRect():T=t_(B(m,b,x).getClientRects(),a),T.left||T.right||b==0)break;x=b,b=b-1,_="right"}h&&p<11&&(T=r_(r.display.measure,T))}else{b>0&&(_=a="right");var K;r.options.lineWrapping&&(K=m.getClientRects()).length>1?T=K[a=="right"?K.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!b&&(!T||!T.left&&!T.right)){var ne=m.parentNode.getClientRects()[0];ne?T={left:ne.left,right:ne.left+cs(r.display),top:ne.top,bottom:ne.bottom}:T=Lg}for(var Z=T.top-o.rect.top,ce=T.bottom-o.rect.top,me=(Z+ce)/2,Se=o.view.measure.heights,ke=0;ke<Se.length-1&&!(me<Se[ke]);ke++);var $e=ke?Se[ke-1]:0,Te=Se[ke],Ne={left:(_=="right"?T.right:T.left)-o.rect.left,right:(_=="left"?T.left:T.right)-o.rect.left,top:$e,bottom:Te};return!T.left&&!T.right&&(Ne.bogus=!0),r.options.singleCursorHeightPerLine||(Ne.rtop=Z,Ne.rbottom=ce),Ne}function r_(r,o){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wf(r))return o;var c=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:o.left*c,right:o.right*c,top:o.top*a,bottom:o.bottom*a}}function Mg(r){if(r.measure&&(r.measure.cache={},r.measure.heights=null,r.rest))for(var o=0;o<r.rest.length;o++)r.measure.caches[o]={}}function Ng(r){r.display.externalMeasure=null,I(r.display.lineMeasure);for(var o=0;o<r.display.view.length;o++)Mg(r.display.view[o])}function vl(r){Ng(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function Ig(r){return y&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function Pg(r){return y&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function Nf(r){var o=xr(r),c=o.widgets,a=0;if(c)for(var d=0;d<c.length;++d)c[d].above&&(a+=ml(c[d]));return a}function cc(r,o,c,a,d){if(!d){var m=Nf(o);c.top+=m,c.bottom+=m}if(a=="line")return c;a||(a="local");var b=ai(o);if(a=="local"?b+=ac(r.display):b-=r.display.viewOffset,a=="page"||a=="window"){var x=r.display.lineSpace.getBoundingClientRect();b+=x.top+(a=="window"?0:Pg(Ze(r)));var _=x.left+(a=="window"?0:Ig(Ze(r)));c.left+=_,c.right+=_}return c.top+=b,c.bottom+=b,c}function Og(r,o,c){if(c=="div")return o;var a=o.left,d=o.top;if(c=="page")a-=Ig(Ze(r)),d-=Pg(Ze(r));else if(c=="local"||!c){var m=r.display.sizer.getBoundingClientRect();a+=m.left,d+=m.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:a-b.left,top:d-b.top}}function uc(r,o,c,a,d){return a||(a=Oe(r.doc,o.line)),cc(r,a,Ag(r,a,o.ch,d),c)}function Sr(r,o,c,a,d,m){a=a||Oe(r.doc,o.line),d||(d=ls(r,a));function b(ce,me){var Se=qr(r,d,ce,me?"right":"left",m);return me?Se.left=Se.right:Se.right=Se.left,cc(r,a,Se,c)}var x=tt(a,r.doc.direction),_=o.ch,T=o.sticky;if(_>=a.text.length?(_=a.text.length,T="before"):_<=0&&(_=0,T="after"),!x)return b(T=="before"?_-1:_,T=="before");function H(ce,me,Se){var ke=x[me],$e=ke.level==1;return b(Se?ce-1:ce,$e!=Se)}var K=Ft(x,_,T),ne=Hr,Z=H(_,K,T=="before");return ne!=null&&(Z.other=H(_,ne,T!="before")),Z}function Rg(r,o){var c=0;o=Xe(r.doc,o),r.options.lineWrapping||(c=cs(r.display)*o.ch);var a=Oe(r.doc,o.line),d=ai(a)+ac(r.display);return{left:c,right:c,top:d,bottom:d+a.height}}function If(r,o,c,a,d){var m=le(r,o,c);return m.xRel=d,a&&(m.outside=a),m}function Pf(r,o,c){var a=r.doc;if(c+=r.display.viewOffset,c<0)return If(a.first,0,null,-1,-1);var d=X(a,c),m=a.first+a.size-1;if(d>m)return If(a.first+a.size-1,Oe(a,m).text.length,null,1,1);o<0&&(o=0);for(var b=Oe(a,d);;){var x=i_(r,b,d,o,c),_=NS(b,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var T=_.find(1);if(T.line==d)return T;b=Oe(a,d=T.line)}}function zg(r,o,c,a){a-=Nf(o);var d=o.text.length,m=Bt(function(b){return qr(r,c,b-1).bottom<=a},d,0);return d=Bt(function(b){return qr(r,c,b).top>a},m,d),{begin:m,end:d}}function Dg(r,o,c,a){c||(c=ls(r,o));var d=cc(r,o,qr(r,c,a),"line").top;return zg(r,o,c,d)}function Of(r,o,c,a){return r.bottom<=c?!1:r.top>c?!0:(a?r.left:r.right)>o}function i_(r,o,c,a,d){d-=ai(o);var m=ls(r,o),b=Nf(o),x=0,_=o.text.length,T=!0,H=tt(o,r.doc.direction);if(H){var K=(r.options.lineWrapping?s_:o_)(r,o,c,m,H,a,d);T=K.level!=1,x=T?K.from:K.to-1,_=T?K.to:K.from-1}var ne=null,Z=null,ce=Bt(function(We){var ze=qr(r,m,We);return ze.top+=b,ze.bottom+=b,Of(ze,a,d,!1)?(ze.top<=d&&ze.left<=a&&(ne=We,Z=ze),!0):!1},x,_),me,Se,ke=!1;if(Z){var $e=a-Z.left<Z.right-a,Te=$e==T;ce=ne+(Te?0:1),Se=Te?"after":"before",me=$e?Z.left:Z.right}else{!T&&(ce==_||ce==x)&&ce++,Se=ce==0?"after":ce==o.text.length?"before":qr(r,m,ce-(T?1:0)).bottom+b<=d==T?"after":"before";var Ne=Sr(r,le(c,ce,Se),"line",o,m);me=Ne.left,ke=d<Ne.top?-1:d>=Ne.bottom?1:0}return ce=Xt(o.text,ce,1),If(c,ce,Se,ke,a-me)}function o_(r,o,c,a,d,m,b){var x=Bt(function(K){var ne=d[K],Z=ne.level!=1;return Of(Sr(r,le(c,Z?ne.to:ne.from,Z?"before":"after"),"line",o,a),m,b,!0)},0,d.length-1),_=d[x];if(x>0){var T=_.level!=1,H=Sr(r,le(c,T?_.from:_.to,T?"after":"before"),"line",o,a);Of(H,m,b,!0)&&H.top>b&&(_=d[x-1])}return _}function s_(r,o,c,a,d,m,b){var x=zg(r,o,a,b),_=x.begin,T=x.end;/\s/.test(o.text.charAt(T-1))&&T--;for(var H=null,K=null,ne=0;ne<d.length;ne++){var Z=d[ne];if(!(Z.from>=T||Z.to<=_)){var ce=Z.level!=1,me=qr(r,a,ce?Math.min(T,Z.to)-1:Math.max(_,Z.from)).right,Se=me<m?m-me+1e9:me-m;(!H||K>Se)&&(H=Z,K=Se)}}return H||(H=d[d.length-1]),H.from<_&&(H={from:_,to:H.to,level:H.level}),H.to>T&&(H={from:H.from,to:T,level:H.level}),H}var _o;function as(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(_o==null){_o=S("pre",null,"CodeMirror-line-like");for(var o=0;o<49;++o)_o.appendChild(document.createTextNode("x")),_o.appendChild(S("br"));_o.appendChild(document.createTextNode("x"))}P(r.measure,_o);var c=_o.offsetHeight/50;return c>3&&(r.cachedTextHeight=c),I(r.measure),c||1}function cs(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var o=S("span","xxxxxxxxxx"),c=S("pre",[o],"CodeMirror-line-like");P(r.measure,c);var a=o.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(r.cachedCharWidth=d),d||10}function Rf(r){for(var o=r.display,c={},a={},d=o.gutters.clientLeft,m=o.gutters.firstChild,b=0;m;m=m.nextSibling,++b){var x=r.display.gutterSpecs[b].className;c[x]=m.offsetLeft+m.clientLeft+d,a[x]=m.clientWidth}return{fixedPos:zf(o),gutterTotalWidth:o.gutters.offsetWidth,gutterLeft:c,gutterWidth:a,wrapperWidth:o.wrapper.clientWidth}}function zf(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Fg(r){var o=as(r.display),c=r.options.lineWrapping,a=c&&Math.max(5,r.display.scroller.clientWidth/cs(r.display)-3);return function(d){if(Pi(r.doc,d))return 0;var m=0;if(d.widgets)for(var b=0;b<d.widgets.length;b++)d.widgets[b].height&&(m+=d.widgets[b].height);return c?m+(Math.ceil(d.text.length/a)||1)*o:m+o}}function Df(r){var o=r.doc,c=Fg(r);o.iter(function(a){var d=c(a);d!=a.height&&Yn(a,d)})}function ko(r,o,c,a){var d=r.display;if(!c&&al(o).getAttribute("cm-not-content")=="true")return null;var m,b,x=d.lineSpace.getBoundingClientRect();try{m=o.clientX-x.left,b=o.clientY-x.top}catch{return null}var _=Pf(r,m,b),T;if(a&&_.xRel>0&&(T=Oe(r.doc,_.line).text).length==_.ch){var H=J(T,T.length,r.options.tabSize)-T.length;_=le(_.line,Math.max(0,Math.round((m-Cg(r.display).left)/cs(r.display))-H))}return _}function To(r,o){if(o>=r.display.viewTo||(o-=r.display.viewFrom,o<0))return null;for(var c=r.display.view,a=0;a<c.length;a++)if(o-=c[a].size,o<0)return a}function kn(r,o,c,a){o==null&&(o=r.doc.first),c==null&&(c=r.doc.first+r.doc.size),a||(a=0);var d=r.display;if(a&&c<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>o)&&(d.updateLineNumbers=o),r.curOp.viewChanged=!0,o>=d.viewTo)li&&Tf(r.doc,o)<d.viewTo&&Ri(r);else if(c<=d.viewFrom)li&&mg(r.doc,c+a)>d.viewFrom?Ri(r):(d.viewFrom+=a,d.viewTo+=a);else if(o<=d.viewFrom&&c>=d.viewTo)Ri(r);else if(o<=d.viewFrom){var m=fc(r,c,c+a,1);m?(d.view=d.view.slice(m.index),d.viewFrom=m.lineN,d.viewTo+=a):Ri(r)}else if(c>=d.viewTo){var b=fc(r,o,o,-1);b?(d.view=d.view.slice(0,b.index),d.viewTo=b.lineN):Ri(r)}else{var x=fc(r,o,o,-1),_=fc(r,c,c+a,1);x&&_?(d.view=d.view.slice(0,x.index).concat(lc(r,x.lineN,_.lineN)).concat(d.view.slice(_.index)),d.viewTo+=a):Ri(r)}var T=d.externalMeasured;T&&(c<T.lineN?T.lineN+=a:o<T.lineN+T.size&&(d.externalMeasured=null))}function Oi(r,o,c){r.curOp.viewChanged=!0;var a=r.display,d=r.display.externalMeasured;if(d&&o>=d.lineN&&o<d.lineN+d.size&&(a.externalMeasured=null),!(o<a.viewFrom||o>=a.viewTo)){var m=a.view[To(r,o)];if(m.node!=null){var b=m.changes||(m.changes=[]);ge(b,c)==-1&&b.push(c)}}}function Ri(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function fc(r,o,c,a){var d=To(r,o),m,b=r.display.view;if(!li||c==r.doc.first+r.doc.size)return{index:d,lineN:c};for(var x=r.display.viewFrom,_=0;_<d;_++)x+=b[_].size;if(x!=o){if(a>0){if(d==b.length-1)return null;m=x+b[d].size-o,d++}else m=x-o;o+=m,c+=m}for(;Tf(r.doc,c)!=c;){if(d==(a<0?0:b.length-1))return null;c+=a*b[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:c}}function l_(r,o,c){var a=r.display,d=a.view;d.length==0||o>=a.viewTo||c<=a.viewFrom?(a.view=lc(r,o,c),a.viewFrom=o):(a.viewFrom>o?a.view=lc(r,o,a.viewFrom).concat(a.view):a.viewFrom<o&&(a.view=a.view.slice(To(r,o))),a.viewFrom=o,a.viewTo<c?a.view=a.view.concat(lc(r,a.viewTo,c)):a.viewTo>c&&(a.view=a.view.slice(0,To(r,c)))),a.viewTo=c}function Hg(r){for(var o=r.display.view,c=0,a=0;a<o.length;a++){var d=o[a];!d.hidden&&(!d.node||d.changes)&&++c}return c}function yl(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Bg(r,o){o===void 0&&(o=!0);var c=r.doc,a={},d=a.cursors=document.createDocumentFragment(),m=a.selection=document.createDocumentFragment(),b=r.options.$customCursor;b&&(o=!0);for(var x=0;x<c.sel.ranges.length;x++)if(!(!o&&x==c.sel.primIndex)){var _=c.sel.ranges[x];if(!(_.from().line>=r.display.viewTo||_.to().line<r.display.viewFrom)){var T=_.empty();if(b){var H=b(r,_);H&&Ff(r,H,d)}else(T||r.options.showCursorWhenSelecting)&&Ff(r,_.head,d);T||a_(r,_,m)}}return a}function Ff(r,o,c){var a=Sr(r,o,"div",null,null,!r.options.singleCursorHeightPerLine),d=c.appendChild(S("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*r.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(r.getWrapperElement().className)){var m=uc(r,o,"div",null,null),b=m.right-m.left;d.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(a.other){var x=c.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=a.other.left+"px",x.style.top=a.other.top+"px",x.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function dc(r,o){return r.top-o.top||r.left-o.left}function a_(r,o,c){var a=r.display,d=r.doc,m=document.createDocumentFragment(),b=Cg(r.display),x=b.left,_=Math.max(a.sizerWidth,So(r)-a.sizer.offsetLeft)-b.right,T=d.direction=="ltr";function H(Te,Ne,We,ze){Ne<0&&(Ne=0),Ne=Math.round(Ne),ze=Math.round(ze),m.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
28
+ `,o);d==-1&&(d=r.length);var m=r.slice(o,r.charAt(d-1)=="\r"?d-1:d),b=m.indexOf("\r");b!=-1?(c.push(m.slice(0,b)),o+=b+1):(c.push(m),o=d+1)}return c}:function(r){return r.split(/\r\n?|\n/)},Ii=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var o;try{o=r.ownerDocument.selection.createRange()}catch{}return!o||o.parentElement()!=r?!1:o.compareEndPoints("StartToEnd",o)!=0},ec=function(){var r=S("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),yr=null;function wf(r){if(yr!=null)return yr;var o=P(r,S("span","x")),c=o.getBoundingClientRect(),a=B(o,0,1).getBoundingClientRect();return yr=Math.abs(c.left-a.left)>1}var es={},br={};function wr(r,o){arguments.length>2&&(o.dependencies=Array.prototype.slice.call(arguments,2)),es[r]=o}function _o(r,o){br[r]=o}function ts(r){if(typeof r=="string"&&br.hasOwnProperty(r))r=br[r];else if(r&&typeof r.name=="string"&&br.hasOwnProperty(r.name)){var o=br[r.name];typeof o=="string"&&(o={name:o}),r=De(o,r),r.name=o.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return ts("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return ts("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function ns(r,o){o=ts(o);var c=es[o.name];if(!c)return ns(r,"text/plain");var a=c(r,o);if(Pi.hasOwnProperty(o.name)){var d=Pi[o.name];for(var m in d)d.hasOwnProperty(m)&&(a.hasOwnProperty(m)&&(a["_"+m]=a[m]),a[m]=d[m])}if(a.name=o.name,o.helperType&&(a.helperType=o.helperType),o.modeProps)for(var b in o.modeProps)a[b]=o.modeProps[b];return a}var Pi={};function rs(r,o){var c=Pi.hasOwnProperty(r)?Pi[r]:Pi[r]={};ee(o,c)}function Br(r,o){if(o===!0)return o;if(r.copyState)return r.copyState(o);var c={};for(var a in o){var d=o[a];d instanceof Array&&(d=d.concat([])),c[a]=d}return c}function fl(r,o){for(var c;r.innerMode&&(c=r.innerMode(o),!(!c||c.mode==r));)o=c.state,r=c.mode;return c||{mode:r,state:o}}function is(r,o,c){return r.startState?r.startState(o,c):!0}var Rt=function(r,o,c){this.pos=this.start=0,this.string=r,this.tabSize=o||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.prototype.eat=function(r){var o=this.string.charAt(this.pos),c;if(typeof r=="string"?c=o==r:c=o&&(r.test?r.test(o):r(o)),c)return++this.pos,o},Rt.prototype.eatWhile=function(r){for(var o=this.pos;this.eat(r););return this.pos>o},Rt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(r){var o=this.string.indexOf(r,this.pos);if(o>-1)return this.pos=o,!0},Rt.prototype.backUp=function(r){this.pos-=r},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=J(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return J(this.string,null,this.tabSize)-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.match=function(r,o,c){if(typeof r=="string"){var a=function(b){return c?b.toLowerCase():b},d=this.string.substr(this.pos,r.length);if(a(d)==a(r))return o!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&o!==!1&&(this.pos+=m[0].length),m)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(r,o){this.lineStart+=r;try{return o()}finally{this.lineStart-=r}},Rt.prototype.lookAhead=function(r){var o=this.lineOracle;return o&&o.lookAhead(r)},Rt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function Oe(r,o){if(o-=r.first,o<0||o>=r.size)throw new Error("There is no line "+(o+r.first)+" in the document.");for(var c=r;!c.lines;)for(var a=0;;++a){var d=c.children[a],m=d.chunkSize();if(o<m){c=d;break}o-=m}return c.lines[o]}function si(r,o,c){var a=[],d=o.line;return r.iter(o.line,c.line+1,function(m){var b=m.text;d==c.line&&(b=b.slice(0,c.ch)),d==o.line&&(b=b.slice(o.ch)),a.push(b),++d}),a}function dl(r,o,c){var a=[];return r.iter(o,c,function(d){a.push(d.text)}),a}function Yn(r,o){var c=o-r.height;if(c)for(var a=r;a;a=a.parent)a.height+=c}function M(r){if(r.parent==null)return null;for(var o=r.parent,c=ge(o.lines,r),a=o.parent;a;o=a,a=a.parent)for(var d=0;a.children[d]!=o;++d)c+=a.children[d].chunkSize();return c+o.first}function X(r,o){var c=r.first;e:do{for(var a=0;a<r.children.length;++a){var d=r.children[a],m=d.height;if(o<m){r=d;continue e}o-=m,c+=d.chunkSize()}return c}while(!r.lines);for(var b=0;b<r.lines.length;++b){var x=r.lines[b],_=x.height;if(o<_)break;o-=_}return c+b}function de(r,o){return o>=r.first&&o<r.first+r.size}function xe(r,o){return String(r.lineNumberFormatter(o+r.firstLineNumber))}function le(r,o,c){if(c===void 0&&(c=null),!(this instanceof le))return new le(r,o,c);this.line=r,this.ch=o,this.sticky=c}function Le(r,o){return r.line-o.line||r.ch-o.ch}function pt(r,o){return r.sticky==o.sticky&&Le(r,o)==0}function Kt(r){return le(r.line,r.ch)}function _n(r,o){return Le(r,o)<0?o:r}function os(r,o){return Le(r,o)<0?r:o}function eg(r,o){return Math.max(r.first,Math.min(o,r.first+r.size-1))}function Xe(r,o){if(o.line<r.first)return le(r.first,0);var c=r.first+r.size-1;return o.line>c?le(c,Oe(r,c).text.length):xS(o,Oe(r,o.line).text.length)}function xS(r,o){var c=r.ch;return c==null||c>o?le(r.line,o):c<0?le(r.line,0):r}function tg(r,o){for(var c=[],a=0;a<o.length;a++)c[a]=Xe(r,o[a]);return c}var tc=function(r,o){this.state=r,this.lookAhead=o},Wr=function(r,o,c,a){this.state=o,this.doc=r,this.line=c,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Wr.prototype.lookAhead=function(r){var o=this.doc.getLine(this.line+r);return o!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),o},Wr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var o=this.baseTokens[this.baseTokenPos+1];return{type:o&&o.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(r,o,c){return o instanceof tc?new Wr(r,Br(r.mode,o.state),c,o.lookAhead):new Wr(r,Br(r.mode,o),c)},Wr.prototype.save=function(r){var o=r!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tc(o,this.maxLookAhead):o};function ng(r,o,c,a){var d=[r.state.modeGen],m={};ag(r,o.text,r.doc.mode,c,function(T,H){return d.push(T,H)},m,a);for(var b=c.state,x=function(T){c.baseTokens=d;var H=r.state.overlays[T],K=1,ne=0;c.state=!0,ag(r,o.text,H.mode,c,function(Z,ce){for(var me=K;ne<Z;){var Se=d[K];Se>Z&&d.splice(K,1,Z,d[K+1],Se),K+=2,ne=Math.min(Z,Se)}if(ce)if(H.opaque)d.splice(me,K-me,Z,"overlay "+ce),K=me+2;else for(;me<K;me+=2){var ke=d[me+1];d[me+1]=(ke?ke+" ":"")+"overlay "+ce}},m),c.state=b,c.baseTokens=null,c.baseTokenPos=1},_=0;_<r.state.overlays.length;++_)x(_);return{styles:d,classes:m.bgClass||m.textClass?m:null}}function rg(r,o,c){if(!o.styles||o.styles[0]!=r.state.modeGen){var a=hl(r,M(o)),d=o.text.length>r.options.maxHighlightLength&&Br(r.doc.mode,a.state),m=ng(r,o,a);d&&(a.state=d),o.stateAfter=a.save(!d),o.styles=m.styles,m.classes?o.styleClasses=m.classes:o.styleClasses&&(o.styleClasses=null),c===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return o.styles}function hl(r,o,c){var a=r.doc,d=r.display;if(!a.mode.startState)return new Wr(a,!0,o);var m=SS(r,o,c),b=m>a.first&&Oe(a,m-1).stateAfter,x=b?Wr.fromSaved(a,b,m):new Wr(a,is(a.mode),m);return a.iter(m,o,function(_){xf(r,_.text,x);var T=x.line;_.stateAfter=T==o-1||T%5==0||T>=d.viewFrom&&T<d.viewTo?x.save():null,x.nextLine()}),c&&(a.modeFrontier=x.line),x}function xf(r,o,c,a){var d=r.doc.mode,m=new Rt(o,r.options.tabSize,c);for(m.start=m.pos=a||0,o==""&&ig(d,c.state);!m.eol();)Sf(d,m,c.state),m.start=m.pos}function ig(r,o){if(r.blankLine)return r.blankLine(o);if(r.innerMode){var c=fl(r,o);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function Sf(r,o,c,a){for(var d=0;d<10;d++){a&&(a[0]=fl(r,c).mode);var m=r.token(o,c);if(o.pos>o.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var og=function(r,o,c){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=o||null,this.state=c};function sg(r,o,c,a){var d=r.doc,m=d.mode,b;o=Xe(d,o);var x=Oe(d,o.line),_=hl(r,o.line,c),T=new Rt(x.text,r.options.tabSize,_),H;for(a&&(H=[]);(a||T.pos<o.ch)&&!T.eol();)T.start=T.pos,b=Sf(m,T,_.state),a&&H.push(new og(T,b,Br(d.mode,_.state)));return a?H:new og(T,b,_.state)}function lg(r,o){if(r)for(;;){var c=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;r=r.slice(0,c.index)+r.slice(c.index+c[0].length);var a=c[1]?"bgClass":"textClass";o[a]==null?o[a]=c[2]:new RegExp("(?:^|\\s)"+c[2]+"(?:$|\\s)").test(o[a])||(o[a]+=" "+c[2])}return r}function ag(r,o,c,a,d,m,b){var x=c.flattenSpans;x==null&&(x=r.options.flattenSpans);var _=0,T=null,H=new Rt(o,r.options.tabSize,a),K,ne=r.options.addModeClass&&[null];for(o==""&&lg(ig(c,a.state),m);!H.eol();){if(H.pos>r.options.maxHighlightLength?(x=!1,b&&xf(r,o,a,H.pos),H.pos=o.length,K=null):K=lg(Sf(c,H,a.state,ne),m),ne){var Z=ne[0].name;Z&&(K="m-"+(K?Z+" "+K:Z))}if(!x||T!=K){for(;_<H.start;)_=Math.min(H.start,_+5e3),d(_,T);T=K}H.start=H.pos}for(;_<H.pos;){var ce=Math.min(H.pos,_+5e3);d(ce,T),_=ce}}function SS(r,o,c){for(var a,d,m=r.doc,b=c?-1:o-(r.doc.mode.innerMode?1e3:100),x=o;x>b;--x){if(x<=m.first)return m.first;var _=Oe(m,x-1),T=_.stateAfter;if(T&&(!c||x+(T instanceof tc?T.lookAhead:0)<=m.modeFrontier))return x;var H=J(_.text,null,r.options.tabSize);(d==null||a>H)&&(d=x-1,a=H)}return d}function _S(r,o){if(r.modeFrontier=Math.min(r.modeFrontier,o),!(r.highlightFrontier<o-10)){for(var c=r.first,a=o-1;a>c;a--){var d=Oe(r,a).stateAfter;if(d&&(!(d instanceof tc)||a+d.lookAhead<o)){c=a+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,c)}}var cg=!1,li=!1;function kS(){cg=!0}function TS(){li=!0}function nc(r,o,c){this.marker=r,this.from=o,this.to=c}function pl(r,o){if(r)for(var c=0;c<r.length;++c){var a=r[c];if(a.marker==o)return a}}function CS(r,o){for(var c,a=0;a<r.length;++a)r[a]!=o&&(c||(c=[])).push(r[a]);return c}function ES(r,o,c){var a=c&&window.WeakSet&&(c.markedSpans||(c.markedSpans=new WeakSet));a&&r.markedSpans&&a.has(r.markedSpans)?r.markedSpans.push(o):(r.markedSpans=r.markedSpans?r.markedSpans.concat([o]):[o],a&&a.add(r.markedSpans)),o.marker.attachLine(r)}function AS(r,o,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.from==null||(b.inclusiveLeft?m.from<=o:m.from<o);if(x||m.from==o&&b.type=="bookmark"&&(!c||!m.marker.insertLeft)){var _=m.to==null||(b.inclusiveRight?m.to>=o:m.to>o);(a||(a=[])).push(new nc(b,m.from,_?null:m.to))}}return a}function LS(r,o,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.to==null||(b.inclusiveRight?m.to>=o:m.to>o);if(x||m.from==o&&b.type=="bookmark"&&(!c||m.marker.insertLeft)){var _=m.from==null||(b.inclusiveLeft?m.from<=o:m.from<o);(a||(a=[])).push(new nc(b,_?null:m.from-o,m.to==null?null:m.to-o))}}return a}function _f(r,o){if(o.full)return null;var c=de(r,o.from.line)&&Oe(r,o.from.line).markedSpans,a=de(r,o.to.line)&&Oe(r,o.to.line).markedSpans;if(!c&&!a)return null;var d=o.from.ch,m=o.to.ch,b=Le(o.from,o.to)==0,x=AS(c,d,b),_=LS(a,m,b),T=o.text.length==1,H=ve(o.text).length+(T?d:0);if(x)for(var K=0;K<x.length;++K){var ne=x[K];if(ne.to==null){var Z=pl(_,ne.marker);Z?T&&(ne.to=Z.to==null?null:Z.to+H):ne.to=d}}if(_)for(var ce=0;ce<_.length;++ce){var me=_[ce];if(me.to!=null&&(me.to+=H),me.from==null){var Se=pl(x,me.marker);Se||(me.from=H,T&&(x||(x=[])).push(me))}else me.from+=H,T&&(x||(x=[])).push(me)}x&&(x=ug(x)),_&&_!=x&&(_=ug(_));var ke=[x];if(!T){var $e=o.text.length-2,Te;if($e>0&&x)for(var Ne=0;Ne<x.length;++Ne)x[Ne].to==null&&(Te||(Te=[])).push(new nc(x[Ne].marker,null,null));for(var We=0;We<$e;++We)ke.push(Te);ke.push(_)}return ke}function ug(r){for(var o=0;o<r.length;++o){var c=r[o];c.from!=null&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&r.splice(o--,1)}return r.length?r:null}function $S(r,o,c){var a=null;if(r.iter(o.line,c.line+1,function(Z){if(Z.markedSpans)for(var ce=0;ce<Z.markedSpans.length;++ce){var me=Z.markedSpans[ce].marker;me.readOnly&&(!a||ge(a,me)==-1)&&(a||(a=[])).push(me)}}),!a)return null;for(var d=[{from:o,to:c}],m=0;m<a.length;++m)for(var b=a[m],x=b.find(0),_=0;_<d.length;++_){var T=d[_];if(!(Le(T.to,x.from)<0||Le(T.from,x.to)>0)){var H=[_,1],K=Le(T.from,x.from),ne=Le(T.to,x.to);(K<0||!b.inclusiveLeft&&!K)&&H.push({from:T.from,to:x.from}),(ne>0||!b.inclusiveRight&&!ne)&&H.push({from:x.to,to:T.to}),d.splice.apply(d,H),_+=H.length-3}}return d}function fg(r){var o=r.markedSpans;if(o){for(var c=0;c<o.length;++c)o[c].marker.detachLine(r);r.markedSpans=null}}function dg(r,o){if(o){for(var c=0;c<o.length;++c)o[c].marker.attachLine(r);r.markedSpans=o}}function rc(r){return r.inclusiveLeft?-1:0}function ic(r){return r.inclusiveRight?1:0}function kf(r,o){var c=r.lines.length-o.lines.length;if(c!=0)return c;var a=r.find(),d=o.find(),m=Le(a.from,d.from)||rc(r)-rc(o);if(m)return-m;var b=Le(a.to,d.to)||ic(r)-ic(o);return b||o.id-r.id}function hg(r,o){var c=li&&r.markedSpans,a;if(c)for(var d=void 0,m=0;m<c.length;++m)d=c[m],d.marker.collapsed&&(o?d.from:d.to)==null&&(!a||kf(a,d.marker)<0)&&(a=d.marker);return a}function pg(r){return hg(r,!0)}function oc(r){return hg(r,!1)}function MS(r,o){var c=li&&r.markedSpans,a;if(c)for(var d=0;d<c.length;++d){var m=c[d];m.marker.collapsed&&(m.from==null||m.from<o)&&(m.to==null||m.to>o)&&(!a||kf(a,m.marker)<0)&&(a=m.marker)}return a}function gg(r,o,c,a,d){var m=Oe(r,o),b=li&&m.markedSpans;if(b)for(var x=0;x<b.length;++x){var _=b[x];if(_.marker.collapsed){var T=_.marker.find(0),H=Le(T.from,c)||rc(_.marker)-rc(d),K=Le(T.to,a)||ic(_.marker)-ic(d);if(!(H>=0&&K<=0||H<=0&&K>=0)&&(H<=0&&(_.marker.inclusiveRight&&d.inclusiveLeft?Le(T.to,c)>=0:Le(T.to,c)>0)||H>=0&&(_.marker.inclusiveRight&&d.inclusiveLeft?Le(T.from,a)<=0:Le(T.from,a)<0)))return!0}}}function xr(r){for(var o;o=pg(r);)r=o.find(-1,!0).line;return r}function NS(r){for(var o;o=oc(r);)r=o.find(1,!0).line;return r}function IS(r){for(var o,c;o=oc(r);)r=o.find(1,!0).line,(c||(c=[])).push(r);return c}function Tf(r,o){var c=Oe(r,o),a=xr(c);return c==a?o:M(a)}function mg(r,o){if(o>r.lastLine())return o;var c=Oe(r,o),a;if(!Oi(r,c))return o;for(;a=oc(c);)c=a.find(1,!0).line;return M(c)+1}function Oi(r,o){var c=li&&o.markedSpans;if(c){for(var a=void 0,d=0;d<c.length;++d)if(a=c[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&Cf(r,o,a))return!0}}}function Cf(r,o,c){if(c.to==null){var a=c.marker.find(1,!0);return Cf(r,a.line,pl(a.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==o.text.length)return!0;for(var d=void 0,m=0;m<o.markedSpans.length;++m)if(d=o.markedSpans[m],d.marker.collapsed&&!d.marker.widgetNode&&d.from==c.to&&(d.to==null||d.to!=c.from)&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&Cf(r,o,d))return!0}function ai(r){r=xr(r);for(var o=0,c=r.parent,a=0;a<c.lines.length;++a){var d=c.lines[a];if(d==r)break;o+=d.height}for(var m=c.parent;m;c=m,m=c.parent)for(var b=0;b<m.children.length;++b){var x=m.children[b];if(x==c)break;o+=x.height}return o}function sc(r){if(r.height==0)return 0;for(var o=r.text.length,c,a=r;c=pg(a);){var d=c.find(0,!0);a=d.from.line,o+=d.from.ch-d.to.ch}for(a=r;c=oc(a);){var m=c.find(0,!0);o-=a.text.length-m.from.ch,a=m.to.line,o+=a.text.length-m.to.ch}return o}function Ef(r){var o=r.display,c=r.doc;o.maxLine=Oe(c,c.first),o.maxLineLength=sc(o.maxLine),o.maxLineChanged=!0,c.iter(function(a){var d=sc(a);d>o.maxLineLength&&(o.maxLineLength=d,o.maxLine=a)})}var ss=function(r,o,c){this.text=r,dg(this,o),this.height=c?c(this):1};ss.prototype.lineNo=function(){return M(this)},mr(ss);function PS(r,o,c,a){r.text=o,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),fg(r),dg(r,c);var d=a?a(r):1;d!=r.height&&Yn(r,d)}function OS(r){r.parent=null,fg(r)}var RS={},zS={};function vg(r,o){if(!r||/^\s*$/.test(r))return null;var c=o.addModeClass?zS:RS;return c[r]||(c[r]=r.replace(/\S+/g,"cm-$&"))}function yg(r,o){var c=R("span",null,null,g?"padding-right: .1px":null),a={pre:R("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};o.measure={};for(var d=0;d<=(o.rest?o.rest.length:0);d++){var m=d?o.rest[d-1]:o.line,b=void 0;a.pos=0,a.addToken=FS,Ni(r.display.measure)&&(b=tt(m,r.doc.direction))&&(a.addToken=BS(a.addToken,b)),a.map=[];var x=o!=r.display.externalMeasured&&M(m);WS(m,a,rg(r,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(a.bgClass=Pe(m.styleClasses.bgClass,a.bgClass||"")),m.styleClasses.textClass&&(a.textClass=Pe(m.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Qa(r.display.measure))),d==0?(o.measure.map=a.map,o.measure.cache={}):((o.measure.maps||(o.measure.maps=[])).push(a.map),(o.measure.caches||(o.measure.caches=[])).push({}))}if(g){var _=a.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Pt(r,"renderLine",r,o.line,a.pre),a.pre.className&&(a.textClass=Pe(a.pre.className,a.textClass||"")),a}function DS(r){var o=S("span","•","cm-invalidchar");return o.title="\\u"+r.charCodeAt(0).toString(16),o.setAttribute("aria-label",o.title),o}function FS(r,o,c,a,d,m,b){if(o){var x=r.splitSpaces?HS(o,r.trailingSpace):o,_=r.cm.state.specialChars,T=!1,H;if(!_.test(o))r.col+=o.length,H=document.createTextNode(x),r.map.push(r.pos,r.pos+o.length,H),h&&p<9&&(T=!0),r.pos+=o.length;else{H=document.createDocumentFragment();for(var K=0;;){_.lastIndex=K;var ne=_.exec(o),Z=ne?ne.index-K:o.length-K;if(Z){var ce=document.createTextNode(x.slice(K,K+Z));h&&p<9?H.appendChild(S("span",[ce])):H.appendChild(ce),r.map.push(r.pos,r.pos+Z,ce),r.col+=Z,r.pos+=Z}if(!ne)break;K+=Z+1;var me=void 0;if(ne[0]==" "){var Se=r.cm.options.tabSize,ke=Se-r.col%Se;me=H.appendChild(S("span",Ee(ke),"cm-tab")),me.setAttribute("role","presentation"),me.setAttribute("cm-text"," "),r.col+=ke}else ne[0]=="\r"||ne[0]==`
29
+ `?(me=H.appendChild(S("span",ne[0]=="\r"?"␍":"␤","cm-invalidchar")),me.setAttribute("cm-text",ne[0]),r.col+=1):(me=r.cm.options.specialCharPlaceholder(ne[0]),me.setAttribute("cm-text",ne[0]),h&&p<9?H.appendChild(S("span",[me])):H.appendChild(me),r.col+=1);r.map.push(r.pos,r.pos+1,me),r.pos++}}if(r.trailingSpace=x.charCodeAt(o.length-1)==32,c||a||d||T||m||b){var $e=c||"";a&&($e+=a),d&&($e+=d);var Te=S("span",[H],$e,m);if(b)for(var Ne in b)b.hasOwnProperty(Ne)&&Ne!="style"&&Ne!="class"&&Te.setAttribute(Ne,b[Ne]);return r.content.appendChild(Te)}r.content.appendChild(H)}}function HS(r,o){if(r.length>1&&!/ /.test(r))return r;for(var c=o,a="",d=0;d<r.length;d++){var m=r.charAt(d);m==" "&&c&&(d==r.length-1||r.charCodeAt(d+1)==32)&&(m=" "),a+=m,c=m==" "}return a}function BS(r,o){return function(c,a,d,m,b,x,_){d=d?d+" cm-force-border":"cm-force-border";for(var T=c.pos,H=T+a.length;;){for(var K=void 0,ne=0;ne<o.length&&(K=o[ne],!(K.to>T&&K.from<=T));ne++);if(K.to>=H)return r(c,a,d,m,b,x,_);r(c,a.slice(0,K.to-T),d,m,null,x,_),m=null,a=a.slice(K.to-T),T=K.to}}}function bg(r,o,c,a){var d=!a&&c.widgetNode;d&&r.map.push(r.pos,r.pos+o,d),!a&&r.cm.display.input.needsContentAttribute&&(d||(d=r.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",c.id)),d&&(r.cm.display.input.setUneditable(d),r.content.appendChild(d)),r.pos+=o,r.trailingSpace=!1}function WS(r,o,c){var a=r.markedSpans,d=r.text,m=0;if(!a){for(var b=1;b<c.length;b+=2)o.addToken(o,d.slice(m,m=c[b]),vg(c[b+1],o.cm.options));return}for(var x=d.length,_=0,T=1,H="",K,ne,Z=0,ce,me,Se,ke,$e;;){if(Z==_){ce=me=Se=ne="",$e=null,ke=null,Z=1/0;for(var Te=[],Ne=void 0,We=0;We<a.length;++We){var ze=a[We],Qe=ze.marker;if(Qe.type=="bookmark"&&ze.from==_&&Qe.widgetNode)Te.push(Qe);else if(ze.from<=_&&(ze.to==null||ze.to>_||Qe.collapsed&&ze.to==_&&ze.from==_)){if(ze.to!=null&&ze.to!=_&&Z>ze.to&&(Z=ze.to,me=""),Qe.className&&(ce+=" "+Qe.className),Qe.css&&(ne=(ne?ne+";":"")+Qe.css),Qe.startStyle&&ze.from==_&&(Se+=" "+Qe.startStyle),Qe.endStyle&&ze.to==Z&&(Ne||(Ne=[])).push(Qe.endStyle,ze.to),Qe.title&&(($e||($e={})).title=Qe.title),Qe.attributes)for(var xt in Qe.attributes)($e||($e={}))[xt]=Qe.attributes[xt];Qe.collapsed&&(!ke||kf(ke.marker,Qe)<0)&&(ke=ze)}else ze.from>_&&Z>ze.from&&(Z=ze.from)}if(Ne)for(var Qt=0;Qt<Ne.length;Qt+=2)Ne[Qt+1]==Z&&(me+=" "+Ne[Qt]);if(!ke||ke.from==_)for(var Mt=0;Mt<Te.length;++Mt)bg(o,0,Te[Mt]);if(ke&&(ke.from||0)==_){if(bg(o,(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 Wn=Math.min(x,Z);;){if(H){var Cn=_+H.length;if(!ke){var Wt=Cn>Wn?H.slice(0,Wn-_):H;o.addToken(o,Wt,K?K+ce:ce,Se,_+Wt.length==Z?me:"",ne,$e)}if(Cn>=Wn){H=H.slice(Wn-_),_=Wn;break}_=Cn,Se=""}H=d.slice(m,m=c[T++]),K=vg(c[T++],o.cm.options)}}}function wg(r,o,c){this.line=o,this.rest=IS(o),this.size=this.rest?M(ve(this.rest))-c+1:1,this.node=this.text=null,this.hidden=Oi(r,o)}function lc(r,o,c){for(var a=[],d,m=o;m<c;m=d){var b=new wg(r.doc,Oe(r.doc,m),m);d=m+b.size,a.push(b)}return a}var ls=null;function jS(r){ls?ls.ops.push(r):r.ownsGroup=ls={ops:[r],delayedCallbacks:[]}}function qS(r){var o=r.delayedCallbacks,c=0;do{for(;c<o.length;c++)o[c].call(null);for(var a=0;a<r.ops.length;a++){var d=r.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(c<o.length)}function US(r,o){var c=r.ownsGroup;if(c)try{qS(c)}finally{ls=null,o(c)}}var gl=null;function Jt(r,o){var c=oi(r,o);if(c.length){var a=Array.prototype.slice.call(arguments,2),d;ls?d=ls.delayedCallbacks:gl?d=gl:(d=gl=[],setTimeout(VS,0));for(var m=function(x){d.push(function(){return c[x].apply(null,a)})},b=0;b<c.length;++b)m(b)}}function VS(){var r=gl;gl=null;for(var o=0;o<r.length;++o)r[o]()}function xg(r,o,c,a){for(var d=0;d<o.changes.length;d++){var m=o.changes[d];m=="text"?XS(r,o):m=="gutter"?_g(r,o,c,a):m=="class"?Af(r,o):m=="widget"&&KS(r,o,a)}o.changes=null}function ml(r){return r.node==r.text&&(r.node=S("div",null,null,"position: relative"),r.text.parentNode&&r.text.parentNode.replaceChild(r.node,r.text),r.node.appendChild(r.text),h&&p<8&&(r.node.style.zIndex=2)),r.node}function GS(r,o){var c=o.bgClass?o.bgClass+" "+(o.line.bgClass||""):o.line.bgClass;if(c&&(c+=" CodeMirror-linebackground"),o.background)c?o.background.className=c:(o.background.parentNode.removeChild(o.background),o.background=null);else if(c){var a=ml(o);o.background=a.insertBefore(S("div",null,c),a.firstChild),r.display.input.setUneditable(o.background)}}function Sg(r,o){var c=r.display.externalMeasured;return c&&c.line==o.line?(r.display.externalMeasured=null,o.measure=c.measure,c.built):yg(r,o)}function XS(r,o){var c=o.text.className,a=Sg(r,o);o.text==o.node&&(o.node=a.pre),o.text.parentNode.replaceChild(a.pre,o.text),o.text=a.pre,a.bgClass!=o.bgClass||a.textClass!=o.textClass?(o.bgClass=a.bgClass,o.textClass=a.textClass,Af(r,o)):c&&(o.text.className=c)}function Af(r,o){GS(r,o),o.line.wrapClass?ml(o).className=o.line.wrapClass:o.node!=o.text&&(o.node.className="");var c=o.textClass?o.textClass+" "+(o.line.textClass||""):o.line.textClass;o.text.className=c||""}function _g(r,o,c,a){if(o.gutter&&(o.node.removeChild(o.gutter),o.gutter=null),o.gutterBackground&&(o.node.removeChild(o.gutterBackground),o.gutterBackground=null),o.line.gutterClass){var d=ml(o);o.gutterBackground=S("div",null,"CodeMirror-gutter-background "+o.line.gutterClass,"left: "+(r.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),r.display.input.setUneditable(o.gutterBackground),d.insertBefore(o.gutterBackground,o.text)}var m=o.line.gutterMarkers;if(r.options.lineNumbers||m){var b=ml(o),x=o.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),r.display.input.setUneditable(x),b.insertBefore(x,o.text),o.line.gutterClass&&(x.className+=" "+o.line.gutterClass),r.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(o.lineNumber=x.appendChild(S("div",xe(r.options,c),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),m)for(var _=0;_<r.display.gutterSpecs.length;++_){var T=r.display.gutterSpecs[_].className,H=m.hasOwnProperty(T)&&m[T];H&&x.appendChild(S("div",[H],"CodeMirror-gutter-elt","left: "+a.gutterLeft[T]+"px; width: "+a.gutterWidth[T]+"px"))}}}function KS(r,o,c){o.alignable&&(o.alignable=null);for(var a=U("CodeMirror-linewidget"),d=o.node.firstChild,m=void 0;d;d=m)m=d.nextSibling,a.test(d.className)&&o.node.removeChild(d);kg(r,o,c)}function JS(r,o,c,a){var d=Sg(r,o);return o.text=o.node=d.pre,d.bgClass&&(o.bgClass=d.bgClass),d.textClass&&(o.textClass=d.textClass),Af(r,o),_g(r,o,c,a),kg(r,o,a),o.node}function kg(r,o,c){if(Tg(r,o.line,o,c,!0),o.rest)for(var a=0;a<o.rest.length;a++)Tg(r,o.rest[a],o,c,!1)}function Tg(r,o,c,a,d){if(o.widgets)for(var m=ml(c),b=0,x=o.widgets;b<x.length;++b){var _=x[b],T=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),YS(_,T,c,a),r.display.input.setUneditable(T),d&&_.above?m.insertBefore(T,c.gutter||c.text):m.appendChild(T),Jt(_,"redraw")}}function YS(r,o,c,a){if(r.noHScroll){(c.alignable||(c.alignable=[])).push(o);var d=a.wrapperWidth;o.style.left=a.fixedPos+"px",r.coverGutter||(d-=a.gutterTotalWidth,o.style.paddingLeft=a.gutterTotalWidth+"px"),o.style.width=d+"px"}r.coverGutter&&(o.style.zIndex=5,o.style.position="relative",r.noHScroll||(o.style.marginLeft=-a.gutterTotalWidth+"px"))}function vl(r){if(r.height!=null)return r.height;var o=r.doc.cm;if(!o)return 0;if(!ie(document.body,r.node)){var c="position: relative;";r.coverGutter&&(c+="margin-left: -"+o.display.gutters.offsetWidth+"px;"),r.noHScroll&&(c+="width: "+o.display.wrapper.clientWidth+"px;"),P(o.display.measure,S("div",[r.node],null,c))}return r.height=r.node.parentNode.offsetHeight}function ci(r,o){for(var c=cl(o);c!=r.wrapper;c=c.parentNode)if(!c||c.nodeType==1&&c.getAttribute("cm-ignore-events")=="true"||c.parentNode==r.sizer&&c!=r.mover)return!0}function ac(r){return r.lineSpace.offsetTop}function Lf(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function Cg(r){if(r.cachedPaddingH)return r.cachedPaddingH;var o=P(r.measure,S("pre","x","CodeMirror-line-like")),c=window.getComputedStyle?window.getComputedStyle(o):o.currentStyle,a={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(r.cachedPaddingH=a),a}function jr(r){return F-r.display.nativeBarWidth}function ko(r){return r.display.scroller.clientWidth-jr(r)-r.display.barWidth}function $f(r){return r.display.scroller.clientHeight-jr(r)-r.display.barHeight}function ZS(r,o,c){var a=r.options.lineWrapping,d=a&&ko(r);if(!o.measure.heights||a&&o.measure.width!=d){var m=o.measure.heights=[];if(a){o.measure.width=d;for(var b=o.text.firstChild.getClientRects(),x=0;x<b.length-1;x++){var _=b[x],T=b[x+1];Math.abs(_.bottom-T.bottom)>2&&m.push((_.bottom+T.top)/2-c.top)}}m.push(c.bottom-c.top)}}function Eg(r,o,c){if(r.line==o)return{map:r.measure.map,cache:r.measure.cache};if(r.rest){for(var a=0;a<r.rest.length;a++)if(r.rest[a]==o)return{map:r.measure.maps[a],cache:r.measure.caches[a]};for(var d=0;d<r.rest.length;d++)if(M(r.rest[d])>c)return{map:r.measure.maps[d],cache:r.measure.caches[d],before:!0}}}function QS(r,o){o=xr(o);var c=M(o),a=r.display.externalMeasured=new wg(r.doc,o,c);a.lineN=c;var d=a.built=yg(r,a);return a.text=d.pre,P(r.display.lineMeasure,d.pre),a}function Ag(r,o,c,a){return qr(r,as(r,o),c,a)}function Mf(r,o){if(o>=r.display.viewFrom&&o<r.display.viewTo)return r.display.view[Eo(r,o)];var c=r.display.externalMeasured;if(c&&o>=c.lineN&&o<c.lineN+c.size)return c}function as(r,o){var c=M(o),a=Mf(r,c);a&&!a.text?a=null:a&&a.changes&&(xg(r,a,c,Rf(r)),r.curOp.forceUpdate=!0),a||(a=QS(r,o));var d=Eg(a,o,c);return{line:o,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function qr(r,o,c,a,d){o.before&&(c=-1);var m=c+(a||""),b;return o.cache.hasOwnProperty(m)?b=o.cache[m]:(o.rect||(o.rect=o.view.text.getBoundingClientRect()),o.hasHeights||(ZS(r,o.view,o.rect),o.hasHeights=!0),b=t_(r,o,c,a),b.bogus||(o.cache[m]=b)),{left:b.left,right:b.right,top:d?b.rtop:b.top,bottom:d?b.rbottom:b.bottom}}var Lg={left:0,right:0,top:0,bottom:0};function $g(r,o,c){for(var a,d,m,b,x,_,T=0;T<r.length;T+=3)if(x=r[T],_=r[T+1],o<x?(d=0,m=1,b="left"):o<_?(d=o-x,m=d+1):(T==r.length-3||o==_&&r[T+3]>o)&&(m=_-x,d=m-1,o>=_&&(b="right")),d!=null){if(a=r[T+2],x==_&&c==(a.insertLeft?"left":"right")&&(b=c),c=="left"&&d==0)for(;T&&r[T-2]==r[T-3]&&r[T-1].insertLeft;)a=r[(T-=3)+2],b="left";if(c=="right"&&d==_-x)for(;T<r.length-3&&r[T+3]==r[T+4]&&!r[T+5].insertLeft;)a=r[(T+=3)+2],b="right";break}return{node:a,start:d,end:m,collapse:b,coverStart:x,coverEnd:_}}function e_(r,o){var c=Lg;if(o=="left")for(var a=0;a<r.length&&(c=r[a]).left==c.right;a++);else for(var d=r.length-1;d>=0&&(c=r[d]).left==c.right;d--);return c}function t_(r,o,c,a){var d=$g(o.map,c,a),m=d.node,b=d.start,x=d.end,_=d.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;b&&lt(o.line.text.charAt(d.coverStart+b));)--b;for(;d.coverStart+x<d.coverEnd&&lt(o.line.text.charAt(d.coverStart+x));)++x;if(h&&p<9&&b==0&&x==d.coverEnd-d.coverStart?T=m.parentNode.getBoundingClientRect():T=e_(B(m,b,x).getClientRects(),a),T.left||T.right||b==0)break;x=b,b=b-1,_="right"}h&&p<11&&(T=n_(r.display.measure,T))}else{b>0&&(_=a="right");var K;r.options.lineWrapping&&(K=m.getClientRects()).length>1?T=K[a=="right"?K.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!b&&(!T||!T.left&&!T.right)){var ne=m.parentNode.getClientRects()[0];ne?T={left:ne.left,right:ne.left+us(r.display),top:ne.top,bottom:ne.bottom}:T=Lg}for(var Z=T.top-o.rect.top,ce=T.bottom-o.rect.top,me=(Z+ce)/2,Se=o.view.measure.heights,ke=0;ke<Se.length-1&&!(me<Se[ke]);ke++);var $e=ke?Se[ke-1]:0,Te=Se[ke],Ne={left:(_=="right"?T.right:T.left)-o.rect.left,right:(_=="left"?T.left:T.right)-o.rect.left,top:$e,bottom:Te};return!T.left&&!T.right&&(Ne.bogus=!0),r.options.singleCursorHeightPerLine||(Ne.rtop=Z,Ne.rbottom=ce),Ne}function n_(r,o){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wf(r))return o;var c=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:o.left*c,right:o.right*c,top:o.top*a,bottom:o.bottom*a}}function Mg(r){if(r.measure&&(r.measure.cache={},r.measure.heights=null,r.rest))for(var o=0;o<r.rest.length;o++)r.measure.caches[o]={}}function Ng(r){r.display.externalMeasure=null,I(r.display.lineMeasure);for(var o=0;o<r.display.view.length;o++)Mg(r.display.view[o])}function yl(r){Ng(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function Ig(r){return y&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function Pg(r){return y&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function Nf(r){var o=xr(r),c=o.widgets,a=0;if(c)for(var d=0;d<c.length;++d)c[d].above&&(a+=vl(c[d]));return a}function cc(r,o,c,a,d){if(!d){var m=Nf(o);c.top+=m,c.bottom+=m}if(a=="line")return c;a||(a="local");var b=ai(o);if(a=="local"?b+=ac(r.display):b-=r.display.viewOffset,a=="page"||a=="window"){var x=r.display.lineSpace.getBoundingClientRect();b+=x.top+(a=="window"?0:Pg(Ze(r)));var _=x.left+(a=="window"?0:Ig(Ze(r)));c.left+=_,c.right+=_}return c.top+=b,c.bottom+=b,c}function Og(r,o,c){if(c=="div")return o;var a=o.left,d=o.top;if(c=="page")a-=Ig(Ze(r)),d-=Pg(Ze(r));else if(c=="local"||!c){var m=r.display.sizer.getBoundingClientRect();a+=m.left,d+=m.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:a-b.left,top:d-b.top}}function uc(r,o,c,a,d){return a||(a=Oe(r.doc,o.line)),cc(r,a,Ag(r,a,o.ch,d),c)}function Sr(r,o,c,a,d,m){a=a||Oe(r.doc,o.line),d||(d=as(r,a));function b(ce,me){var Se=qr(r,d,ce,me?"right":"left",m);return me?Se.left=Se.right:Se.right=Se.left,cc(r,a,Se,c)}var x=tt(a,r.doc.direction),_=o.ch,T=o.sticky;if(_>=a.text.length?(_=a.text.length,T="before"):_<=0&&(_=0,T="after"),!x)return b(T=="before"?_-1:_,T=="before");function H(ce,me,Se){var ke=x[me],$e=ke.level==1;return b(Se?ce-1:ce,$e!=Se)}var K=Ft(x,_,T),ne=Hr,Z=H(_,K,T=="before");return ne!=null&&(Z.other=H(_,ne,T!="before")),Z}function Rg(r,o){var c=0;o=Xe(r.doc,o),r.options.lineWrapping||(c=us(r.display)*o.ch);var a=Oe(r.doc,o.line),d=ai(a)+ac(r.display);return{left:c,right:c,top:d,bottom:d+a.height}}function If(r,o,c,a,d){var m=le(r,o,c);return m.xRel=d,a&&(m.outside=a),m}function Pf(r,o,c){var a=r.doc;if(c+=r.display.viewOffset,c<0)return If(a.first,0,null,-1,-1);var d=X(a,c),m=a.first+a.size-1;if(d>m)return If(a.first+a.size-1,Oe(a,m).text.length,null,1,1);o<0&&(o=0);for(var b=Oe(a,d);;){var x=r_(r,b,d,o,c),_=MS(b,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var T=_.find(1);if(T.line==d)return T;b=Oe(a,d=T.line)}}function zg(r,o,c,a){a-=Nf(o);var d=o.text.length,m=Bt(function(b){return qr(r,c,b-1).bottom<=a},d,0);return d=Bt(function(b){return qr(r,c,b).top>a},m,d),{begin:m,end:d}}function Dg(r,o,c,a){c||(c=as(r,o));var d=cc(r,o,qr(r,c,a),"line").top;return zg(r,o,c,d)}function Of(r,o,c,a){return r.bottom<=c?!1:r.top>c?!0:(a?r.left:r.right)>o}function r_(r,o,c,a,d){d-=ai(o);var m=as(r,o),b=Nf(o),x=0,_=o.text.length,T=!0,H=tt(o,r.doc.direction);if(H){var K=(r.options.lineWrapping?o_:i_)(r,o,c,m,H,a,d);T=K.level!=1,x=T?K.from:K.to-1,_=T?K.to:K.from-1}var ne=null,Z=null,ce=Bt(function(We){var ze=qr(r,m,We);return ze.top+=b,ze.bottom+=b,Of(ze,a,d,!1)?(ze.top<=d&&ze.left<=a&&(ne=We,Z=ze),!0):!1},x,_),me,Se,ke=!1;if(Z){var $e=a-Z.left<Z.right-a,Te=$e==T;ce=ne+(Te?0:1),Se=Te?"after":"before",me=$e?Z.left:Z.right}else{!T&&(ce==_||ce==x)&&ce++,Se=ce==0?"after":ce==o.text.length?"before":qr(r,m,ce-(T?1:0)).bottom+b<=d==T?"after":"before";var Ne=Sr(r,le(c,ce,Se),"line",o,m);me=Ne.left,ke=d<Ne.top?-1:d>=Ne.bottom?1:0}return ce=Xt(o.text,ce,1),If(c,ce,Se,ke,a-me)}function i_(r,o,c,a,d,m,b){var x=Bt(function(K){var ne=d[K],Z=ne.level!=1;return Of(Sr(r,le(c,Z?ne.to:ne.from,Z?"before":"after"),"line",o,a),m,b,!0)},0,d.length-1),_=d[x];if(x>0){var T=_.level!=1,H=Sr(r,le(c,T?_.from:_.to,T?"after":"before"),"line",o,a);Of(H,m,b,!0)&&H.top>b&&(_=d[x-1])}return _}function o_(r,o,c,a,d,m,b){var x=zg(r,o,a,b),_=x.begin,T=x.end;/\s/.test(o.text.charAt(T-1))&&T--;for(var H=null,K=null,ne=0;ne<d.length;ne++){var Z=d[ne];if(!(Z.from>=T||Z.to<=_)){var ce=Z.level!=1,me=qr(r,a,ce?Math.min(T,Z.to)-1:Math.max(_,Z.from)).right,Se=me<m?m-me+1e9:me-m;(!H||K>Se)&&(H=Z,K=Se)}}return H||(H=d[d.length-1]),H.from<_&&(H={from:_,to:H.to,level:H.level}),H.to>T&&(H={from:H.from,to:T,level:H.level}),H}var To;function cs(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(To==null){To=S("pre",null,"CodeMirror-line-like");for(var o=0;o<49;++o)To.appendChild(document.createTextNode("x")),To.appendChild(S("br"));To.appendChild(document.createTextNode("x"))}P(r.measure,To);var c=To.offsetHeight/50;return c>3&&(r.cachedTextHeight=c),I(r.measure),c||1}function us(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var o=S("span","xxxxxxxxxx"),c=S("pre",[o],"CodeMirror-line-like");P(r.measure,c);var a=o.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(r.cachedCharWidth=d),d||10}function Rf(r){for(var o=r.display,c={},a={},d=o.gutters.clientLeft,m=o.gutters.firstChild,b=0;m;m=m.nextSibling,++b){var x=r.display.gutterSpecs[b].className;c[x]=m.offsetLeft+m.clientLeft+d,a[x]=m.clientWidth}return{fixedPos:zf(o),gutterTotalWidth:o.gutters.offsetWidth,gutterLeft:c,gutterWidth:a,wrapperWidth:o.wrapper.clientWidth}}function zf(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Fg(r){var o=cs(r.display),c=r.options.lineWrapping,a=c&&Math.max(5,r.display.scroller.clientWidth/us(r.display)-3);return function(d){if(Oi(r.doc,d))return 0;var m=0;if(d.widgets)for(var b=0;b<d.widgets.length;b++)d.widgets[b].height&&(m+=d.widgets[b].height);return c?m+(Math.ceil(d.text.length/a)||1)*o:m+o}}function Df(r){var o=r.doc,c=Fg(r);o.iter(function(a){var d=c(a);d!=a.height&&Yn(a,d)})}function Co(r,o,c,a){var d=r.display;if(!c&&cl(o).getAttribute("cm-not-content")=="true")return null;var m,b,x=d.lineSpace.getBoundingClientRect();try{m=o.clientX-x.left,b=o.clientY-x.top}catch{return null}var _=Pf(r,m,b),T;if(a&&_.xRel>0&&(T=Oe(r.doc,_.line).text).length==_.ch){var H=J(T,T.length,r.options.tabSize)-T.length;_=le(_.line,Math.max(0,Math.round((m-Cg(r.display).left)/us(r.display))-H))}return _}function Eo(r,o){if(o>=r.display.viewTo||(o-=r.display.viewFrom,o<0))return null;for(var c=r.display.view,a=0;a<c.length;a++)if(o-=c[a].size,o<0)return a}function kn(r,o,c,a){o==null&&(o=r.doc.first),c==null&&(c=r.doc.first+r.doc.size),a||(a=0);var d=r.display;if(a&&c<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>o)&&(d.updateLineNumbers=o),r.curOp.viewChanged=!0,o>=d.viewTo)li&&Tf(r.doc,o)<d.viewTo&&zi(r);else if(c<=d.viewFrom)li&&mg(r.doc,c+a)>d.viewFrom?zi(r):(d.viewFrom+=a,d.viewTo+=a);else if(o<=d.viewFrom&&c>=d.viewTo)zi(r);else if(o<=d.viewFrom){var m=fc(r,c,c+a,1);m?(d.view=d.view.slice(m.index),d.viewFrom=m.lineN,d.viewTo+=a):zi(r)}else if(c>=d.viewTo){var b=fc(r,o,o,-1);b?(d.view=d.view.slice(0,b.index),d.viewTo=b.lineN):zi(r)}else{var x=fc(r,o,o,-1),_=fc(r,c,c+a,1);x&&_?(d.view=d.view.slice(0,x.index).concat(lc(r,x.lineN,_.lineN)).concat(d.view.slice(_.index)),d.viewTo+=a):zi(r)}var T=d.externalMeasured;T&&(c<T.lineN?T.lineN+=a:o<T.lineN+T.size&&(d.externalMeasured=null))}function Ri(r,o,c){r.curOp.viewChanged=!0;var a=r.display,d=r.display.externalMeasured;if(d&&o>=d.lineN&&o<d.lineN+d.size&&(a.externalMeasured=null),!(o<a.viewFrom||o>=a.viewTo)){var m=a.view[Eo(r,o)];if(m.node!=null){var b=m.changes||(m.changes=[]);ge(b,c)==-1&&b.push(c)}}}function zi(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function fc(r,o,c,a){var d=Eo(r,o),m,b=r.display.view;if(!li||c==r.doc.first+r.doc.size)return{index:d,lineN:c};for(var x=r.display.viewFrom,_=0;_<d;_++)x+=b[_].size;if(x!=o){if(a>0){if(d==b.length-1)return null;m=x+b[d].size-o,d++}else m=x-o;o+=m,c+=m}for(;Tf(r.doc,c)!=c;){if(d==(a<0?0:b.length-1))return null;c+=a*b[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:c}}function s_(r,o,c){var a=r.display,d=a.view;d.length==0||o>=a.viewTo||c<=a.viewFrom?(a.view=lc(r,o,c),a.viewFrom=o):(a.viewFrom>o?a.view=lc(r,o,a.viewFrom).concat(a.view):a.viewFrom<o&&(a.view=a.view.slice(Eo(r,o))),a.viewFrom=o,a.viewTo<c?a.view=a.view.concat(lc(r,a.viewTo,c)):a.viewTo>c&&(a.view=a.view.slice(0,Eo(r,c)))),a.viewTo=c}function Hg(r){for(var o=r.display.view,c=0,a=0;a<o.length;a++){var d=o[a];!d.hidden&&(!d.node||d.changes)&&++c}return c}function bl(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Bg(r,o){o===void 0&&(o=!0);var c=r.doc,a={},d=a.cursors=document.createDocumentFragment(),m=a.selection=document.createDocumentFragment(),b=r.options.$customCursor;b&&(o=!0);for(var x=0;x<c.sel.ranges.length;x++)if(!(!o&&x==c.sel.primIndex)){var _=c.sel.ranges[x];if(!(_.from().line>=r.display.viewTo||_.to().line<r.display.viewFrom)){var T=_.empty();if(b){var H=b(r,_);H&&Ff(r,H,d)}else(T||r.options.showCursorWhenSelecting)&&Ff(r,_.head,d);T||l_(r,_,m)}}return a}function Ff(r,o,c){var a=Sr(r,o,"div",null,null,!r.options.singleCursorHeightPerLine),d=c.appendChild(S("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*r.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(r.getWrapperElement().className)){var m=uc(r,o,"div",null,null),b=m.right-m.left;d.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(a.other){var x=c.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=a.other.left+"px",x.style.top=a.other.top+"px",x.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function dc(r,o){return r.top-o.top||r.left-o.left}function l_(r,o,c){var a=r.display,d=r.doc,m=document.createDocumentFragment(),b=Cg(r.display),x=b.left,_=Math.max(a.sizerWidth,ko(r)-a.sizer.offsetLeft)-b.right,T=d.direction=="ltr";function H(Te,Ne,We,ze){Ne<0&&(Ne=0),Ne=Math.round(Ne),ze=Math.round(ze),m.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
30
30
  top: `+Ne+"px; width: "+(We??_-Te)+`px;
31
- height: `+(ze-Ne)+"px"))}function K(Te,Ne,We){var ze=Oe(d,Te),Qe=ze.text.length,xt,Qt;function Mt(Wt,En){return uc(r,le(Te,Wt),"div",ze,En)}function Wn(Wt,En,sn){var Vt=Dg(r,ze,null,Wt),jt=En=="ltr"==(sn=="after")?"left":"right",zt=sn=="after"?Vt.begin:Vt.end-(/\s/.test(ze.text.charAt(Vt.end-1))?2:1);return Mt(zt,jt)[jt]}var Cn=tt(ze,d.direction);return Dn(Cn,Ne||0,We??Qe,function(Wt,En,sn,Vt){var jt=sn=="ltr",zt=Mt(Wt,jt?"left":"right"),An=Mt(En-1,jt?"right":"left"),Ss=Ne==null&&Wt==0,Wi=We==null&&En==Qe,dn=Vt==0,Ur=!Cn||Vt==Cn.length-1;if(An.top-zt.top<=3){var en=(T?Ss:Wi)&&dn,dd=(T?Wi:Ss)&&Ur,di=en?x:(jt?zt:An).left,$o=dd?_:(jt?An:zt).right;H(di,zt.top,$o-di,zt.bottom)}else{var Mo,mn,_s,hd;jt?(Mo=T&&Ss&&dn?x:zt.left,mn=T?_:Wn(Wt,sn,"before"),_s=T?x:Wn(En,sn,"after"),hd=T&&Wi&&Ur?_:An.right):(Mo=T?Wn(Wt,sn,"before"):x,mn=!T&&Ss&&dn?_:zt.right,_s=!T&&Wi&&Ur?x:An.left,hd=T?Wn(En,sn,"after"):_),H(Mo,zt.top,mn-Mo,zt.bottom),zt.bottom<An.top&&H(x,zt.bottom,null,An.top),H(_s,An.top,hd-_s,An.bottom)}(!xt||dc(zt,xt)<0)&&(xt=zt),dc(An,xt)<0&&(xt=An),(!Qt||dc(zt,Qt)<0)&&(Qt=zt),dc(An,Qt)<0&&(Qt=An)}),{start:xt,end:Qt}}var ne=o.from(),Z=o.to();if(ne.line==Z.line)K(ne.line,ne.ch,Z.ch);else{var ce=Oe(d,ne.line),me=Oe(d,Z.line),Se=xr(ce)==xr(me),ke=K(ne.line,ne.ch,Se?ce.text.length+1:null).end,$e=K(Z.line,Se?0:null,Z.ch).start;Se&&(ke.top<$e.top-2?(H(ke.right,ke.top,null,ke.bottom),H(x,$e.top,$e.left,$e.bottom)):H(ke.right,ke.top,$e.left-ke.right,ke.bottom)),ke.bottom<$e.top&&H(x,ke.bottom,null,$e.top)}c.appendChild(m)}function Hf(r){if(r.state.focused){var o=r.display;clearInterval(o.blinker);var c=!0;o.cursorDiv.style.visibility="",r.options.cursorBlinkRate>0?o.blinker=setInterval(function(){r.hasFocus()||us(r),o.cursorDiv.style.visibility=(c=!c)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(o.cursorDiv.style.visibility="hidden")}}function Wg(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||Wf(r))}function Bf(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&us(r))},100)}function Wf(r,o){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(Pt(r,"focus",r,o),r.state.focused=!0,we(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),g&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),Hf(r))}function us(r,o){r.state.delayingBlurEvent||(r.state.focused&&(Pt(r,"blur",r,o),r.state.focused=!1,A(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function hc(r){for(var o=r.display,c=o.lineDiv.offsetTop,a=Math.max(0,o.scroller.getBoundingClientRect().top),d=o.lineDiv.getBoundingClientRect().top,m=0,b=0;b<o.view.length;b++){var x=o.view[b],_=r.options.lineWrapping,T=void 0,H=0;if(!x.hidden){if(d+=x.line.height,h&&p<8){var K=x.node.offsetTop+x.node.offsetHeight;T=K-c,c=K}else{var ne=x.node.getBoundingClientRect();T=ne.bottom-ne.top,!_&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-ne.left-1)}var Z=x.line.height-T;if((Z>.005||Z<-.005)&&(d<a&&(m-=Z),Yn(x.line,T),jg(x.line),x.rest))for(var ce=0;ce<x.rest.length;ce++)jg(x.rest[ce]);if(H>r.display.sizerWidth){var me=Math.ceil(H/cs(r.display));me>r.display.maxLineLength&&(r.display.maxLineLength=me,r.display.maxLine=x.line,r.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(o.scroller.scrollTop+=m)}function jg(r){if(r.widgets)for(var o=0;o<r.widgets.length;++o){var c=r.widgets[o],a=c.node.parentNode;a&&(c.height=a.offsetHeight)}}function pc(r,o,c){var a=c&&c.top!=null?Math.max(0,c.top):r.scroller.scrollTop;a=Math.floor(a-ac(r));var d=c&&c.bottom!=null?c.bottom:a+r.wrapper.clientHeight,m=X(o,a),b=X(o,d);if(c&&c.ensure){var x=c.ensure.from.line,_=c.ensure.to.line;x<m?(m=x,b=X(o,ai(Oe(o,x))+r.wrapper.clientHeight)):Math.min(_,o.lastLine())>=b&&(m=X(o,ai(Oe(o,_))-r.wrapper.clientHeight),b=_)}return{from:m,to:Math.max(b,m+1)}}function c_(r,o){if(!Ot(r,"scrollCursorIntoView")){var c=r.display,a=c.sizer.getBoundingClientRect(),d=null,m=c.wrapper.ownerDocument;if(o.top+a.top<0?d=!0:o.bottom+a.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(d=!1),d!=null&&!E){var b=S("div","​",null,`position: absolute;
31
+ height: `+(ze-Ne)+"px"))}function K(Te,Ne,We){var ze=Oe(d,Te),Qe=ze.text.length,xt,Qt;function Mt(Wt,En){return uc(r,le(Te,Wt),"div",ze,En)}function Wn(Wt,En,on){var Vt=Dg(r,ze,null,Wt),jt=En=="ltr"==(on=="after")?"left":"right",zt=on=="after"?Vt.begin:Vt.end-(/\s/.test(ze.text.charAt(Vt.end-1))?2:1);return Mt(zt,jt)[jt]}var Cn=tt(ze,d.direction);return Dn(Cn,Ne||0,We??Qe,function(Wt,En,on,Vt){var jt=on=="ltr",zt=Mt(Wt,jt?"left":"right"),An=Mt(En-1,jt?"right":"left"),_s=Ne==null&&Wt==0,ji=We==null&&En==Qe,un=Vt==0,Ur=!Cn||Vt==Cn.length-1;if(An.top-zt.top<=3){var en=(T?_s:ji)&&un,dd=(T?ji:_s)&&Ur,di=en?x:(jt?zt:An).left,No=dd?_:(jt?An:zt).right;H(di,zt.top,No-di,zt.bottom)}else{var Io,gn,ks,hd;jt?(Io=T&&_s&&un?x:zt.left,gn=T?_:Wn(Wt,on,"before"),ks=T?x:Wn(En,on,"after"),hd=T&&ji&&Ur?_:An.right):(Io=T?Wn(Wt,on,"before"):x,gn=!T&&_s&&un?_:zt.right,ks=!T&&ji&&Ur?x:An.left,hd=T?Wn(En,on,"after"):_),H(Io,zt.top,gn-Io,zt.bottom),zt.bottom<An.top&&H(x,zt.bottom,null,An.top),H(ks,An.top,hd-ks,An.bottom)}(!xt||dc(zt,xt)<0)&&(xt=zt),dc(An,xt)<0&&(xt=An),(!Qt||dc(zt,Qt)<0)&&(Qt=zt),dc(An,Qt)<0&&(Qt=An)}),{start:xt,end:Qt}}var ne=o.from(),Z=o.to();if(ne.line==Z.line)K(ne.line,ne.ch,Z.ch);else{var ce=Oe(d,ne.line),me=Oe(d,Z.line),Se=xr(ce)==xr(me),ke=K(ne.line,ne.ch,Se?ce.text.length+1:null).end,$e=K(Z.line,Se?0:null,Z.ch).start;Se&&(ke.top<$e.top-2?(H(ke.right,ke.top,null,ke.bottom),H(x,$e.top,$e.left,$e.bottom)):H(ke.right,ke.top,$e.left-ke.right,ke.bottom)),ke.bottom<$e.top&&H(x,ke.bottom,null,$e.top)}c.appendChild(m)}function Hf(r){if(r.state.focused){var o=r.display;clearInterval(o.blinker);var c=!0;o.cursorDiv.style.visibility="",r.options.cursorBlinkRate>0?o.blinker=setInterval(function(){r.hasFocus()||fs(r),o.cursorDiv.style.visibility=(c=!c)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(o.cursorDiv.style.visibility="hidden")}}function Wg(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||Wf(r))}function Bf(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&fs(r))},100)}function Wf(r,o){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(Pt(r,"focus",r,o),r.state.focused=!0,we(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),g&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),Hf(r))}function fs(r,o){r.state.delayingBlurEvent||(r.state.focused&&(Pt(r,"blur",r,o),r.state.focused=!1,A(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function hc(r){for(var o=r.display,c=o.lineDiv.offsetTop,a=Math.max(0,o.scroller.getBoundingClientRect().top),d=o.lineDiv.getBoundingClientRect().top,m=0,b=0;b<o.view.length;b++){var x=o.view[b],_=r.options.lineWrapping,T=void 0,H=0;if(!x.hidden){if(d+=x.line.height,h&&p<8){var K=x.node.offsetTop+x.node.offsetHeight;T=K-c,c=K}else{var ne=x.node.getBoundingClientRect();T=ne.bottom-ne.top,!_&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-ne.left-1)}var Z=x.line.height-T;if((Z>.005||Z<-.005)&&(d<a&&(m-=Z),Yn(x.line,T),jg(x.line),x.rest))for(var ce=0;ce<x.rest.length;ce++)jg(x.rest[ce]);if(H>r.display.sizerWidth){var me=Math.ceil(H/us(r.display));me>r.display.maxLineLength&&(r.display.maxLineLength=me,r.display.maxLine=x.line,r.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(o.scroller.scrollTop+=m)}function jg(r){if(r.widgets)for(var o=0;o<r.widgets.length;++o){var c=r.widgets[o],a=c.node.parentNode;a&&(c.height=a.offsetHeight)}}function pc(r,o,c){var a=c&&c.top!=null?Math.max(0,c.top):r.scroller.scrollTop;a=Math.floor(a-ac(r));var d=c&&c.bottom!=null?c.bottom:a+r.wrapper.clientHeight,m=X(o,a),b=X(o,d);if(c&&c.ensure){var x=c.ensure.from.line,_=c.ensure.to.line;x<m?(m=x,b=X(o,ai(Oe(o,x))+r.wrapper.clientHeight)):Math.min(_,o.lastLine())>=b&&(m=X(o,ai(Oe(o,_))-r.wrapper.clientHeight),b=_)}return{from:m,to:Math.max(b,m+1)}}function a_(r,o){if(!Ot(r,"scrollCursorIntoView")){var c=r.display,a=c.sizer.getBoundingClientRect(),d=null,m=c.wrapper.ownerDocument;if(o.top+a.top<0?d=!0:o.bottom+a.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(d=!1),d!=null&&!E){var b=S("div","​",null,`position: absolute;
32
32
  top: `+(o.top-c.viewOffset-ac(r.display))+`px;
33
33
  height: `+(o.bottom-o.top+jr(r)+c.barHeight)+`px;
34
- left: `+o.left+"px; width: "+Math.max(2,o.right-o.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(d),r.display.lineSpace.removeChild(b)}}}function u_(r,o,c,a){a==null&&(a=0);var d;!r.options.lineWrapping&&o==c&&(c=o.sticky=="before"?le(o.line,o.ch+1,"before"):o,o=o.ch?le(o.line,o.sticky=="before"?o.ch-1:o.ch,"after"):o);for(var m=0;m<5;m++){var b=!1,x=Sr(r,o),_=!c||c==o?x:Sr(r,c);d={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-a,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+a};var T=jf(r,d),H=r.doc.scrollTop,K=r.doc.scrollLeft;if(T.scrollTop!=null&&(wl(r,T.scrollTop),Math.abs(r.doc.scrollTop-H)>1&&(b=!0)),T.scrollLeft!=null&&(Co(r,T.scrollLeft),Math.abs(r.doc.scrollLeft-K)>1&&(b=!0)),!b)break}return d}function f_(r,o){var c=jf(r,o);c.scrollTop!=null&&wl(r,c.scrollTop),c.scrollLeft!=null&&Co(r,c.scrollLeft)}function jf(r,o){var c=r.display,a=as(r.display);o.top<0&&(o.top=0);var d=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:c.scroller.scrollTop,m=$f(r),b={};o.bottom-o.top>m&&(o.bottom=o.top+m);var x=r.doc.height+Lf(c),_=o.top<a,T=o.bottom>x-a;if(o.top<d)b.scrollTop=_?0:o.top;else if(o.bottom>d+m){var H=Math.min(o.top,(T?x:o.bottom)-m);H!=d&&(b.scrollTop=H)}var K=r.options.fixedGutter?0:c.gutters.offsetWidth,ne=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:c.scroller.scrollLeft-K,Z=So(r)-c.gutters.offsetWidth,ce=o.right-o.left>Z;return ce&&(o.right=o.left+Z),o.left<10?b.scrollLeft=0:o.left<ne?b.scrollLeft=Math.max(0,o.left+K-(ce?0:10)):o.right>Z+ne-3&&(b.scrollLeft=o.right+(ce?0:10)-Z),b}function qf(r,o){o!=null&&(gc(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+o)}function fs(r){gc(r);var o=r.getCursor();r.curOp.scrollToPos={from:o,to:o,margin:r.options.cursorScrollMargin}}function bl(r,o,c){(o!=null||c!=null)&&gc(r),o!=null&&(r.curOp.scrollLeft=o),c!=null&&(r.curOp.scrollTop=c)}function d_(r,o){gc(r),r.curOp.scrollToPos=o}function gc(r){var o=r.curOp.scrollToPos;if(o){r.curOp.scrollToPos=null;var c=Rg(r,o.from),a=Rg(r,o.to);qg(r,c,a,o.margin)}}function qg(r,o,c,a){var d=jf(r,{left:Math.min(o.left,c.left),top:Math.min(o.top,c.top)-a,right:Math.max(o.right,c.right),bottom:Math.max(o.bottom,c.bottom)+a});bl(r,d.scrollLeft,d.scrollTop)}function wl(r,o){Math.abs(r.doc.scrollTop-o)<2||(s||Vf(r,{top:o}),Ug(r,o,!0),s&&Vf(r),_l(r,100))}function Ug(r,o,c){o=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,o)),!(r.display.scroller.scrollTop==o&&!c)&&(r.doc.scrollTop=o,r.display.scrollbars.setScrollTop(o),r.display.scroller.scrollTop!=o&&(r.display.scroller.scrollTop=o))}function Co(r,o,c,a){o=Math.max(0,Math.min(o,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((c?o==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-o)<2)&&!a)&&(r.doc.scrollLeft=o,Jg(r),r.display.scroller.scrollLeft!=o&&(r.display.scroller.scrollLeft=o),r.display.scrollbars.setScrollLeft(o))}function xl(r){var o=r.display,c=o.gutters.offsetWidth,a=Math.round(r.doc.height+Lf(r.display));return{clientHeight:o.scroller.clientHeight,viewHeight:o.wrapper.clientHeight,scrollWidth:o.scroller.scrollWidth,clientWidth:o.scroller.clientWidth,viewWidth:o.wrapper.clientWidth,barLeft:r.options.fixedGutter?c:0,docHeight:a,scrollHeight:a+jr(r)+o.barHeight,nativeBarWidth:o.nativeBarWidth,gutterWidth:c}}var Eo=function(r,o,c){this.cm=c;var a=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,r(a),r(d),Be(a,"scroll",function(){a.clientHeight&&o(a.scrollTop,"vertical")}),Be(d,"scroll",function(){d.clientWidth&&o(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Eo.prototype.update=function(r){var o=r.scrollWidth>r.clientWidth+1,c=r.scrollHeight>r.clientHeight+1,a=r.nativeBarWidth;if(c){this.vert.style.display="block",this.vert.style.bottom=o?a+"px":"0";var d=r.viewHeight-(o?a:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+d)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(o){this.horiz.style.display="block",this.horiz.style.right=c?a+"px":"0",this.horiz.style.left=r.barLeft+"px";var m=r.viewWidth-r.barLeft-(c?a:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:c?a:0,bottom:o?a:0}},Eo.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Eo.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Eo.prototype.zeroWidthHack=function(){var r=z&&!C?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ae,this.disableVert=new ae},Eo.prototype.enableZeroWidthBar=function(r,o,c){r.style.visibility="";function a(){var d=r.getBoundingClientRect(),m=c=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);m!=r?r.style.visibility="hidden":o.set(1e3,a)}o.set(1e3,a)},Eo.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var Sl=function(){};Sl.prototype.update=function(){return{bottom:0,right:0}},Sl.prototype.setScrollLeft=function(){},Sl.prototype.setScrollTop=function(){},Sl.prototype.clear=function(){};function ds(r,o){o||(o=xl(r));var c=r.display.barWidth,a=r.display.barHeight;Vg(r,o);for(var d=0;d<4&&c!=r.display.barWidth||a!=r.display.barHeight;d++)c!=r.display.barWidth&&r.options.lineWrapping&&hc(r),Vg(r,xl(r)),c=r.display.barWidth,a=r.display.barHeight}function Vg(r,o){var c=r.display,a=c.scrollbars.update(o);c.sizer.style.paddingRight=(c.barWidth=a.right)+"px",c.sizer.style.paddingBottom=(c.barHeight=a.bottom)+"px",c.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(c.scrollbarFiller.style.display="block",c.scrollbarFiller.style.height=a.bottom+"px",c.scrollbarFiller.style.width=a.right+"px"):c.scrollbarFiller.style.display="",a.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(c.gutterFiller.style.display="block",c.gutterFiller.style.height=a.bottom+"px",c.gutterFiller.style.width=o.gutterWidth+"px"):c.gutterFiller.style.display=""}var Gg={native:Eo,null:Sl};function Xg(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&A(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new Gg[r.options.scrollbarStyle](function(o){r.display.wrapper.insertBefore(o,r.display.scrollbarFiller),Be(o,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),o.setAttribute("cm-not-content","true")},function(o,c){c=="horizontal"?Co(r,o):wl(r,o)},r),r.display.scrollbars.addClass&&we(r.display.wrapper,r.display.scrollbars.addClass)}var h_=0;function Ao(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.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:++h_,markArrays:null},qS(r.curOp)}function Lo(r){var o=r.curOp;o&&VS(o,function(c){for(var a=0;a<c.ops.length;a++)c.ops[a].cm.curOp=null;p_(c)})}function p_(r){for(var o=r.ops,c=0;c<o.length;c++)g_(o[c]);for(var a=0;a<o.length;a++)m_(o[a]);for(var d=0;d<o.length;d++)v_(o[d]);for(var m=0;m<o.length;m++)y_(o[m]);for(var b=0;b<o.length;b++)b_(o[b])}function g_(r){var o=r.cm,c=o.display;x_(o),r.updateMaxLine&&Ef(o),r.mustUpdate=r.viewChanged||r.forceUpdate||r.scrollTop!=null||r.scrollToPos&&(r.scrollToPos.from.line<c.viewFrom||r.scrollToPos.to.line>=c.viewTo)||c.maxLineChanged&&o.options.lineWrapping,r.update=r.mustUpdate&&new mc(o,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function m_(r){r.updatedDisplay=r.mustUpdate&&Uf(r.cm,r.update)}function v_(r){var o=r.cm,c=o.display;r.updatedDisplay&&hc(o),r.barMeasure=xl(o),c.maxLineChanged&&!o.options.lineWrapping&&(r.adjustWidthTo=Ag(o,c.maxLine,c.maxLine.text.length).left+3,o.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(c.scroller.clientWidth,c.sizer.offsetLeft+r.adjustWidthTo+jr(o)+o.display.barWidth),r.maxScrollLeft=Math.max(0,c.sizer.offsetLeft+r.adjustWidthTo-So(o))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=c.input.prepareSelection())}function y_(r){var o=r.cm;r.adjustWidthTo!=null&&(o.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<o.doc.scrollLeft&&Co(o,Math.min(o.display.scroller.scrollLeft,r.maxScrollLeft),!0),o.display.maxLineChanged=!1);var c=r.focus&&r.focus==ue(Ke(o));r.preparedSelection&&o.display.input.showSelection(r.preparedSelection,c),(r.updatedDisplay||r.startHeight!=o.doc.height)&&ds(o,r.barMeasure),r.updatedDisplay&&Xf(o,r.barMeasure),r.selectionChanged&&Hf(o),o.state.focused&&r.updateInput&&o.display.input.reset(r.typing),c&&Wg(r.cm)}function b_(r){var o=r.cm,c=o.display,a=o.doc;if(r.updatedDisplay&&Kg(o,r.update),c.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(c.wheelStartX=c.wheelStartY=null),r.scrollTop!=null&&Ug(o,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&Co(o,r.scrollLeft,!0,!0),r.scrollToPos){var d=u_(o,Xe(a,r.scrollToPos.from),Xe(a,r.scrollToPos.to),r.scrollToPos.margin);c_(o,d)}var m=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(m)for(var x=0;x<m.length;++x)m[x].lines.length||Pt(m[x],"hide");if(b)for(var _=0;_<b.length;++_)b[_].lines.length&&Pt(b[_],"unhide");c.wrapper.offsetHeight&&(a.scrollTop=o.display.scroller.scrollTop),r.changeObjs&&Pt(o,"changes",o,r.changeObjs),r.update&&r.update.finish()}function Bn(r,o){if(r.curOp)return o();Ao(r);try{return o()}finally{Lo(r)}}function Yt(r,o){return function(){if(r.curOp)return o.apply(r,arguments);Ao(r);try{return o.apply(r,arguments)}finally{Lo(r)}}}function gn(r){return function(){if(this.curOp)return r.apply(this,arguments);Ao(this);try{return r.apply(this,arguments)}finally{Lo(this)}}}function Zt(r){return function(){var o=this.cm;if(!o||o.curOp)return r.apply(this,arguments);Ao(o);try{return r.apply(this,arguments)}finally{Lo(o)}}}function _l(r,o){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(o,V(w_,r))}function w_(r){var o=r.doc;if(!(o.highlightFrontier>=r.display.viewTo)){var c=+new Date+r.options.workTime,a=dl(r,o.highlightFrontier),d=[];o.iter(a.line,Math.min(o.first+o.size,r.display.viewTo+500),function(m){if(a.line>=r.display.viewFrom){var b=m.styles,x=m.text.length>r.options.maxHighlightLength?Br(o.mode,a.state):null,_=ng(r,m,a,!0);x&&(a.state=x),m.styles=_.styles;var T=m.styleClasses,H=_.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var K=!b||b.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),ne=0;!K&&ne<b.length;++ne)K=b[ne]!=m.styles[ne];K&&d.push(a.line),m.stateAfter=a.save(),a.nextLine()}else m.text.length<=r.options.maxHighlightLength&&xf(r,m.text,a),m.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>c)return _l(r,r.options.workDelay),!0}),o.highlightFrontier=a.line,o.modeFrontier=Math.max(o.modeFrontier,a.line),d.length&&Bn(r,function(){for(var m=0;m<d.length;m++)Oi(r,d[m],"text")})}}var mc=function(r,o,c){var a=r.display;this.viewport=o,this.visible=pc(a,r.doc,o),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=So(r),this.force=c,this.dims=Rf(r),this.events=[]};mc.prototype.signal=function(r,o){Hn(r,o)&&this.events.push(arguments)},mc.prototype.finish=function(){for(var r=0;r<this.events.length;r++)Pt.apply(null,this.events[r])};function x_(r){var o=r.display;!o.scrollbarsClipped&&o.scroller.offsetWidth&&(o.nativeBarWidth=o.scroller.offsetWidth-o.scroller.clientWidth,o.heightForcer.style.height=jr(r)+"px",o.sizer.style.marginBottom=-o.nativeBarWidth+"px",o.sizer.style.borderRightWidth=jr(r)+"px",o.scrollbarsClipped=!0)}function S_(r){if(r.hasFocus())return null;var o=ue(Ke(r));if(!o||!ie(r.display.lineDiv,o))return null;var c={activeElt:o};if(window.getSelection){var a=re(r).getSelection();a.anchorNode&&a.extend&&ie(r.display.lineDiv,a.anchorNode)&&(c.anchorNode=a.anchorNode,c.anchorOffset=a.anchorOffset,c.focusNode=a.focusNode,c.focusOffset=a.focusOffset)}return c}function __(r){if(!(!r||!r.activeElt||r.activeElt==ue(Je(r.activeElt)))&&(r.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(r.activeElt.nodeName)&&r.anchorNode&&ie(document.body,r.anchorNode)&&ie(document.body,r.focusNode))){var o=r.activeElt.ownerDocument,c=o.defaultView.getSelection(),a=o.createRange();a.setEnd(r.anchorNode,r.anchorOffset),a.collapse(!1),c.removeAllRanges(),c.addRange(a),c.extend(r.focusNode,r.focusOffset)}}function Uf(r,o){var c=r.display,a=r.doc;if(o.editorIsHidden)return Ri(r),!1;if(!o.force&&o.visible.from>=c.viewFrom&&o.visible.to<=c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo)&&c.renderedView==c.view&&Hg(r)==0)return!1;Yg(r)&&(Ri(r),o.dims=Rf(r));var d=a.first+a.size,m=Math.max(o.visible.from-r.options.viewportMargin,a.first),b=Math.min(d,o.visible.to+r.options.viewportMargin);c.viewFrom<m&&m-c.viewFrom<20&&(m=Math.max(a.first,c.viewFrom)),c.viewTo>b&&c.viewTo-b<20&&(b=Math.min(d,c.viewTo)),li&&(m=Tf(r.doc,m),b=mg(r.doc,b));var x=m!=c.viewFrom||b!=c.viewTo||c.lastWrapHeight!=o.wrapperHeight||c.lastWrapWidth!=o.wrapperWidth;l_(r,m,b),c.viewOffset=ai(Oe(r.doc,c.viewFrom)),r.display.mover.style.top=c.viewOffset+"px";var _=Hg(r);if(!x&&_==0&&!o.force&&c.renderedView==c.view&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo))return!1;var T=S_(r);return _>4&&(c.lineDiv.style.display="none"),k_(r,c.updateLineNumbers,o.dims),_>4&&(c.lineDiv.style.display=""),c.renderedView=c.view,__(T),I(c.cursorDiv),I(c.selectionDiv),c.gutters.style.height=c.sizer.style.minHeight=0,x&&(c.lastWrapHeight=o.wrapperHeight,c.lastWrapWidth=o.wrapperWidth,_l(r,400)),c.updateLineNumbers=null,!0}function Kg(r,o){for(var c=o.viewport,a=!0;;a=!1){if(!a||!r.options.lineWrapping||o.oldDisplayWidth==So(r)){if(c&&c.top!=null&&(c={top:Math.min(r.doc.height+Lf(r.display)-$f(r),c.top)}),o.visible=pc(r.display,r.doc,c),o.visible.from>=r.display.viewFrom&&o.visible.to<=r.display.viewTo)break}else a&&(o.visible=pc(r.display,r.doc,c));if(!Uf(r,o))break;hc(r);var d=xl(r);yl(r),ds(r,d),Xf(r,d),o.force=!1}o.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(o.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function Vf(r,o){var c=new mc(r,o);if(Uf(r,c)){hc(r),Kg(r,c);var a=xl(r);yl(r),ds(r,a),Xf(r,a),c.finish()}}function k_(r,o,c){var a=r.display,d=r.options.lineNumbers,m=a.lineDiv,b=m.firstChild;function x(ce){var me=ce.nextSibling;return g&&z&&r.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),me}for(var _=a.view,T=a.viewFrom,H=0;H<_.length;H++){var K=_[H];if(!K.hidden)if(!K.node||K.node.parentNode!=m){var ne=YS(r,K,T,c);m.insertBefore(ne,b)}else{for(;b!=K.node;)b=x(b);var Z=d&&o!=null&&o<=T&&K.lineNumber;K.changes&&(ge(K.changes,"gutter")>-1&&(Z=!1),xg(r,K,T,c)),Z&&(I(K.lineNumber),K.lineNumber.appendChild(document.createTextNode(xe(r.options,T)))),b=K.node.nextSibling}T+=K.size}for(;b;)b=x(b)}function Gf(r){var o=r.gutters.offsetWidth;r.sizer.style.marginLeft=o+"px",Jt(r,"gutterChanged",r)}function Xf(r,o){r.display.sizer.style.minHeight=o.docHeight+"px",r.display.heightForcer.style.top=o.docHeight+"px",r.display.gutters.style.height=o.docHeight+r.display.barHeight+jr(r)+"px"}function Jg(r){var o=r.display,c=o.view;if(!(!o.alignWidgets&&(!o.gutters.firstChild||!r.options.fixedGutter))){for(var a=zf(o)-o.scroller.scrollLeft+r.doc.scrollLeft,d=o.gutters.offsetWidth,m=a+"px",b=0;b<c.length;b++)if(!c[b].hidden){r.options.fixedGutter&&(c[b].gutter&&(c[b].gutter.style.left=m),c[b].gutterBackground&&(c[b].gutterBackground.style.left=m));var x=c[b].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=m}r.options.fixedGutter&&(o.gutters.style.left=a+d+"px")}}function Yg(r){if(!r.options.lineNumbers)return!1;var o=r.doc,c=xe(r.options,o.first+o.size-1),a=r.display;if(c.length!=a.lineNumChars){var d=a.measure.appendChild(S("div",[S("div",c)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=d.firstChild.offsetWidth,b=d.offsetWidth-m;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(m,a.lineGutter.offsetWidth-b)+1,a.lineNumWidth=a.lineNumInnerWidth+b,a.lineNumChars=a.lineNumInnerWidth?c.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Gf(r.display),!0}return!1}function Kf(r,o){for(var c=[],a=!1,d=0;d<r.length;d++){var m=r[d],b=null;if(typeof m!="string"&&(b=m.style,m=m.className),m=="CodeMirror-linenumbers")if(o)a=!0;else continue;c.push({className:m,style:b})}return o&&!a&&c.push({className:"CodeMirror-linenumbers",style:null}),c}function Zg(r){var o=r.gutters,c=r.gutterSpecs;I(o),r.lineGutter=null;for(var a=0;a<c.length;++a){var d=c[a],m=d.className,b=d.style,x=o.appendChild(S("div",null,"CodeMirror-gutter "+m));b&&(x.style.cssText=b),m=="CodeMirror-linenumbers"&&(r.lineGutter=x,x.style.width=(r.lineNumWidth||1)+"px")}o.style.display=c.length?"":"none",Gf(r)}function kl(r){Zg(r.display),kn(r),Jg(r)}function T_(r,o,c,a){var d=this;this.input=c,d.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=R("div",null,"CodeMirror-code"),d.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=S("div",null,"CodeMirror-cursors"),d.measure=S("div",null,"CodeMirror-measure"),d.lineMeasure=S("div",null,"CodeMirror-measure"),d.lineSpace=R("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var m=R("div",[d.lineSpace],"CodeMirror-lines");d.mover=S("div",[m],null,"position: relative"),d.sizer=S("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=S("div",null,null,"position: absolute; height: "+F+"px; width: 1px;"),d.gutters=S("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=S("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=S("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),y&&w>=105&&(d.wrapper.style.clipPath="inset(0px)"),d.wrapper.setAttribute("translate","no"),h&&p<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!g&&!(s&&k)&&(d.scroller.draggable=!0),r&&(r.appendChild?r.appendChild(d.wrapper):r(d.wrapper)),d.viewFrom=d.viewTo=o.first,d.reportedViewFrom=d.reportedViewTo=o.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Kf(a.gutters,a.lineNumbers),Zg(d),c.init(d)}var vc=0,ui=null;h?ui=-.53:s?ui=15:y?ui=-.7:$&&(ui=-1/3);function Qg(r){var o=r.wheelDeltaX,c=r.wheelDeltaY;return o==null&&r.detail&&r.axis==r.HORIZONTAL_AXIS&&(o=r.detail),c==null&&r.detail&&r.axis==r.VERTICAL_AXIS?c=r.detail:c==null&&(c=r.wheelDelta),{x:o,y:c}}function C_(r){var o=Qg(r);return o.x*=ui,o.y*=ui,o}function em(r,o){y&&w==102&&(r.display.chromeScrollHack==null?r.display.sizer.style.pointerEvents="none":clearTimeout(r.display.chromeScrollHack),r.display.chromeScrollHack=setTimeout(function(){r.display.chromeScrollHack=null,r.display.sizer.style.pointerEvents=""},100));var c=Qg(o),a=c.x,d=c.y,m=ui;o.deltaMode===0&&(a=o.deltaX,d=o.deltaY,m=1);var b=r.display,x=b.scroller,_=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(a&&_||d&&T){if(d&&z&&g){e:for(var H=o.target,K=b.view;H!=x;H=H.parentNode)for(var ne=0;ne<K.length;ne++)if(K[ne].node==H){r.display.currentWheelTarget=H;break e}}if(a&&!s&&!L&&m!=null){d&&T&&wl(r,Math.max(0,x.scrollTop+d*m)),Co(r,Math.max(0,x.scrollLeft+a*m)),(!d||d&&T)&&un(o),b.wheelStartX=null;return}if(d&&m!=null){var Z=d*m,ce=r.doc.scrollTop,me=ce+b.wrapper.clientHeight;Z<0?ce=Math.max(0,ce+Z-50):me=Math.min(r.doc.height,me+Z+50),Vf(r,{top:ce,bottom:me})}vc<20&&o.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=x.scrollLeft,b.wheelStartY=x.scrollTop,b.wheelDX=a,b.wheelDY=d,setTimeout(function(){if(b.wheelStartX!=null){var Se=x.scrollLeft-b.wheelStartX,ke=x.scrollTop-b.wheelStartY,$e=ke&&b.wheelDY&&ke/b.wheelDY||Se&&b.wheelDX&&Se/b.wheelDX;b.wheelStartX=b.wheelStartY=null,$e&&(ui=(ui*vc+$e)/(vc+1),++vc)}},200)):(b.wheelDX+=a,b.wheelDY+=d))}}var Zn=function(r,o){this.ranges=r,this.primIndex=o};Zn.prototype.primary=function(){return this.ranges[this.primIndex]},Zn.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var o=0;o<this.ranges.length;o++){var c=this.ranges[o],a=r.ranges[o];if(!pt(c.anchor,a.anchor)||!pt(c.head,a.head))return!1}return!0},Zn.prototype.deepCopy=function(){for(var r=[],o=0;o<this.ranges.length;o++)r[o]=new gt(Kt(this.ranges[o].anchor),Kt(this.ranges[o].head));return new Zn(r,this.primIndex)},Zn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},Zn.prototype.contains=function(r,o){o||(o=r);for(var c=0;c<this.ranges.length;c++){var a=this.ranges[c];if(Le(o,a.from())>=0&&Le(r,a.to())<=0)return c}return-1};var gt=function(r,o){this.anchor=r,this.head=o};gt.prototype.from=function(){return is(this.anchor,this.head)},gt.prototype.to=function(){return _n(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(r,o,c){var a=r&&r.options.selectionsMayTouch,d=o[c];o.sort(function(ne,Z){return Le(ne.from(),Z.from())}),c=ge(o,d);for(var m=1;m<o.length;m++){var b=o[m],x=o[m-1],_=Le(x.to(),b.from());if(a&&!b.empty()?_>0:_>=0){var T=is(x.from(),b.from()),H=_n(x.to(),b.to()),K=x.empty()?b.from()==b.head:x.from()==x.head;m<=c&&--c,o.splice(--m,2,new gt(K?H:T,K?T:H))}}return new Zn(o,c)}function zi(r,o){return new Zn([new gt(r,o||r)],0)}function Di(r){return r.text?le(r.from.line+r.text.length-1,ve(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function tm(r,o){if(Le(r,o.from)<0)return r;if(Le(r,o.to)<=0)return Di(o);var c=r.line+o.text.length-(o.to.line-o.from.line)-1,a=r.ch;return r.line==o.to.line&&(a+=Di(o).ch-o.to.ch),le(c,a)}function Jf(r,o){for(var c=[],a=0;a<r.sel.ranges.length;a++){var d=r.sel.ranges[a];c.push(new gt(tm(d.anchor,o),tm(d.head,o)))}return _r(r.cm,c,r.sel.primIndex)}function nm(r,o,c){return r.line==o.line?le(c.line,r.ch-o.ch+c.ch):le(c.line+(r.line-o.line),r.ch)}function E_(r,o,c){for(var a=[],d=le(r.first,0),m=d,b=0;b<o.length;b++){var x=o[b],_=nm(x.from,d,m),T=nm(Di(x),d,m);if(d=x.to,m=T,c=="around"){var H=r.sel.ranges[b],K=Le(H.head,H.anchor)<0;a[b]=new gt(K?T:_,K?_:T)}else a[b]=new gt(_,_)}return new Zn(a,r.sel.primIndex)}function Yf(r){r.doc.mode=ts(r.options,r.doc.modeOption),Tl(r)}function Tl(r){r.doc.iter(function(o){o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,_l(r,100),r.state.modeGen++,r.curOp&&kn(r)}function rm(r,o){return o.from.ch==0&&o.to.ch==0&&ve(o.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function Zf(r,o,c,a){function d($e){return c?c[$e]:null}function m($e,Te,Ne){OS($e,Te,Ne,a),Jt($e,"change",$e,o)}function b($e,Te){for(var Ne=[],We=$e;We<Te;++We)Ne.push(new os(T[We],d(We),a));return Ne}var x=o.from,_=o.to,T=o.text,H=Oe(r,x.line),K=Oe(r,_.line),ne=ve(T),Z=d(T.length-1),ce=_.line-x.line;if(o.full)r.insert(0,b(0,T.length)),r.remove(T.length,r.size-T.length);else if(rm(r,o)){var me=b(0,T.length-1);m(K,K.text,Z),ce&&r.remove(x.line,ce),me.length&&r.insert(x.line,me)}else if(H==K)if(T.length==1)m(H,H.text.slice(0,x.ch)+ne+H.text.slice(_.ch),Z);else{var Se=b(1,T.length-1);Se.push(new os(ne+H.text.slice(_.ch),Z,a)),m(H,H.text.slice(0,x.ch)+T[0],d(0)),r.insert(x.line+1,Se)}else if(T.length==1)m(H,H.text.slice(0,x.ch)+T[0]+K.text.slice(_.ch),d(0)),r.remove(x.line+1,ce);else{m(H,H.text.slice(0,x.ch)+T[0],d(0)),m(K,ne+K.text.slice(_.ch),Z);var ke=b(1,T.length-1);ce>1&&r.remove(x.line+1,ce-1),r.insert(x.line+1,ke)}Jt(r,"change",r,o)}function Fi(r,o,c){function a(d,m,b){if(d.linked)for(var x=0;x<d.linked.length;++x){var _=d.linked[x];if(_.doc!=m){var T=b&&_.sharedHist;c&&!T||(o(_.doc,T),a(_.doc,d,T))}}}a(r,null,!0)}function im(r,o){if(o.cm)throw new Error("This document is already in use.");r.doc=o,o.cm=r,Df(r),Yf(r),om(r),r.options.direction=o.direction,r.options.lineWrapping||Ef(r),r.options.mode=o.modeOption,kn(r)}function om(r){(r.doc.direction=="rtl"?we:A)(r.display.lineDiv,"CodeMirror-rtl")}function A_(r){Bn(r,function(){om(r),kn(r)})}function yc(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function Qf(r,o){var c={from:Kt(o.from),to:Di(o),text:si(r,o.from,o.to)};return am(r,c,o.from.line,o.to.line+1),Fi(r,function(a){return am(a,c,o.from.line,o.to.line+1)},!0),c}function sm(r){for(;r.length;){var o=ve(r);if(o.ranges)r.pop();else break}}function L_(r,o){if(o)return sm(r.done),ve(r.done);if(r.done.length&&!ve(r.done).ranges)return ve(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),ve(r.done)}function lm(r,o,c,a){var d=r.history;d.undone.length=0;var m=+new Date,b,x;if((d.lastOp==a||d.lastOrigin==o.origin&&o.origin&&(o.origin.charAt(0)=="+"&&d.lastModTime>m-(r.cm?r.cm.options.historyEventDelay:500)||o.origin.charAt(0)=="*"))&&(b=L_(d,d.lastOp==a)))x=ve(b.changes),Le(o.from,o.to)==0&&Le(o.from,x.to)==0?x.to=Di(o):b.changes.push(Qf(r,o));else{var _=ve(d.done);for((!_||!_.ranges)&&bc(r.sel,d.done),b={changes:[Qf(r,o)],generation:d.generation},d.done.push(b);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(c),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=m,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=o.origin,x||Pt(r,"historyAdded")}function $_(r,o,c,a){var d=o.charAt(0);return d=="*"||d=="+"&&c.ranges.length==a.ranges.length&&c.somethingSelected()==a.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function M_(r,o,c,a){var d=r.history,m=a&&a.origin;c==d.lastSelOp||m&&d.lastSelOrigin==m&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==m||$_(r,m,ve(d.done),o))?d.done[d.done.length-1]=o:bc(o,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=m,d.lastSelOp=c,a&&a.clearRedo!==!1&&sm(d.undone)}function bc(r,o){var c=ve(o);c&&c.ranges&&c.equals(r)||o.push(r)}function am(r,o,c,a){var d=o["spans_"+r.id],m=0;r.iter(Math.max(r.first,c),Math.min(r.first+r.size,a),function(b){b.markedSpans&&((d||(d=o["spans_"+r.id]={}))[m]=b.markedSpans),++m})}function N_(r){if(!r)return null;for(var o,c=0;c<r.length;++c)r[c].marker.explicitlyCleared?o||(o=r.slice(0,c)):o&&o.push(r[c]);return o?o.length?o:null:r}function I_(r,o){var c=o["spans_"+r.id];if(!c)return null;for(var a=[],d=0;d<o.text.length;++d)a.push(N_(c[d]));return a}function cm(r,o){var c=I_(r,o),a=_f(r,o);if(!c)return a;if(!a)return c;for(var d=0;d<c.length;++d){var m=c[d],b=a[d];if(m&&b)e:for(var x=0;x<b.length;++x){for(var _=b[x],T=0;T<m.length;++T)if(m[T].marker==_.marker)continue e;m.push(_)}else b&&(c[d]=b)}return c}function hs(r,o,c){for(var a=[],d=0;d<r.length;++d){var m=r[d];if(m.ranges){a.push(c?Zn.prototype.deepCopy.call(m):m);continue}var b=m.changes,x=[];a.push({changes:x});for(var _=0;_<b.length;++_){var T=b[_],H=void 0;if(x.push({from:T.from,to:T.to,text:T.text}),o)for(var K in T)(H=K.match(/^spans_(\d+)$/))&&ge(o,Number(H[1]))>-1&&(ve(x)[K]=T[K],delete T[K])}}return a}function ed(r,o,c,a){if(a){var d=r.anchor;if(c){var m=Le(o,d)<0;m!=Le(c,d)<0?(d=o,o=c):m!=Le(o,c)<0&&(o=c)}return new gt(d,o)}else return new gt(c||o,o)}function wc(r,o,c,a,d){d==null&&(d=r.cm&&(r.cm.display.shift||r.extend)),fn(r,new Zn([ed(r.sel.primary(),o,c,d)],0),a)}function um(r,o,c){for(var a=[],d=r.cm&&(r.cm.display.shift||r.extend),m=0;m<r.sel.ranges.length;m++)a[m]=ed(r.sel.ranges[m],o[m],null,d);var b=_r(r.cm,a,r.sel.primIndex);fn(r,b,c)}function td(r,o,c,a){var d=r.sel.ranges.slice(0);d[o]=c,fn(r,_r(r.cm,d,r.sel.primIndex),a)}function fm(r,o,c,a){fn(r,zi(o,c),a)}function P_(r,o,c){var a={ranges:o.ranges,update:function(d){this.ranges=[];for(var m=0;m<d.length;m++)this.ranges[m]=new gt(Xe(r,d[m].anchor),Xe(r,d[m].head))},origin:c&&c.origin};return Pt(r,"beforeSelectionChange",r,a),r.cm&&Pt(r.cm,"beforeSelectionChange",r.cm,a),a.ranges!=o.ranges?_r(r.cm,a.ranges,a.ranges.length-1):o}function dm(r,o,c){var a=r.history.done,d=ve(a);d&&d.ranges?(a[a.length-1]=o,xc(r,o,c)):fn(r,o,c)}function fn(r,o,c){xc(r,o,c),M_(r,r.sel,r.cm?r.cm.curOp.id:NaN,c)}function xc(r,o,c){(Hn(r,"beforeSelectionChange")||r.cm&&Hn(r.cm,"beforeSelectionChange"))&&(o=P_(r,o,c));var a=c&&c.bias||(Le(o.primary().head,r.sel.primary().head)<0?-1:1);hm(r,gm(r,o,a,!0)),!(c&&c.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&fs(r.cm)}function hm(r,o){o.equals(r.sel)||(r.sel=o,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,sr(r.cm)),Jt(r,"cursorActivity",r))}function pm(r){hm(r,gm(r,r.sel,null,!1))}function gm(r,o,c,a){for(var d,m=0;m<o.ranges.length;m++){var b=o.ranges[m],x=o.ranges.length==r.sel.ranges.length&&r.sel.ranges[m],_=Sc(r,b.anchor,x&&x.anchor,c,a),T=b.head==b.anchor?_:Sc(r,b.head,x&&x.head,c,a);(d||_!=b.anchor||T!=b.head)&&(d||(d=o.ranges.slice(0,m)),d[m]=new gt(_,T))}return d?_r(r.cm,d,o.primIndex):o}function ps(r,o,c,a,d){var m=Oe(r,o.line);if(m.markedSpans)for(var b=0;b<m.markedSpans.length;++b){var x=m.markedSpans[b],_=x.marker,T="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,H="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(T?x.from<=o.ch:x.from<o.ch))&&(x.to==null||(H?x.to>=o.ch:x.to>o.ch))){if(d&&(Pt(_,"beforeCursorEnter"),_.explicitlyCleared))if(m.markedSpans){--b;continue}else break;if(!_.atomic)continue;if(c){var K=_.find(a<0?1:-1),ne=void 0;if((a<0?H:T)&&(K=mm(r,K,-a,K&&K.line==o.line?m:null)),K&&K.line==o.line&&(ne=Le(K,c))&&(a<0?ne<0:ne>0))return ps(r,K,o,a,d)}var Z=_.find(a<0?-1:1);return(a<0?T:H)&&(Z=mm(r,Z,a,Z.line==o.line?m:null)),Z?ps(r,Z,o,a,d):null}}return o}function Sc(r,o,c,a,d){var m=a||1,b=ps(r,o,c,m,d)||!d&&ps(r,o,c,m,!0)||ps(r,o,c,-m,d)||!d&&ps(r,o,c,-m,!0);return b||(r.cantEdit=!0,le(r.first,0))}function mm(r,o,c,a){return c<0&&o.ch==0?o.line>r.first?Xe(r,le(o.line-1)):null:c>0&&o.ch==(a||Oe(r,o.line)).text.length?o.line<r.first+r.size-1?le(o.line+1,0):null:new le(o.line,o.ch+c)}function vm(r){r.setSelection(le(r.firstLine(),0),le(r.lastLine()),Y)}function ym(r,o,c){var a={canceled:!1,from:o.from,to:o.to,text:o.text,origin:o.origin,cancel:function(){return a.canceled=!0}};return c&&(a.update=function(d,m,b,x){d&&(a.from=Xe(r,d)),m&&(a.to=Xe(r,m)),b&&(a.text=b),x!==void 0&&(a.origin=x)}),Pt(r,"beforeChange",r,a),r.cm&&Pt(r.cm,"beforeChange",r.cm,a),a.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function gs(r,o,c){if(r.cm){if(!r.cm.curOp)return Yt(r.cm,gs)(r,o,c);if(r.cm.state.suppressEdits)return}if(!((Hn(r,"beforeChange")||r.cm&&Hn(r.cm,"beforeChange"))&&(o=ym(r,o,!0),!o))){var a=cg&&!c&&MS(r,o.from,o.to);if(a)for(var d=a.length-1;d>=0;--d)bm(r,{from:a[d].from,to:a[d].to,text:d?[""]:o.text,origin:o.origin});else bm(r,o)}}function bm(r,o){if(!(o.text.length==1&&o.text[0]==""&&Le(o.from,o.to)==0)){var c=Jf(r,o);lm(r,o,c,r.cm?r.cm.curOp.id:NaN),Cl(r,o,c,_f(r,o));var a=[];Fi(r,function(d,m){!m&&ge(a,d.history)==-1&&(_m(d.history,o),a.push(d.history)),Cl(d,o,null,_f(d,o))})}}function _c(r,o,c){var a=r.cm&&r.cm.state.suppressEdits;if(!(a&&!c)){for(var d=r.history,m,b=r.sel,x=o=="undo"?d.done:d.undone,_=o=="undo"?d.undone:d.done,T=0;T<x.length&&(m=x[T],!(c?m.ranges&&!m.equals(r.sel):!m.ranges));T++);if(T!=x.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(m=x.pop(),m.ranges){if(bc(m,_),c&&!m.equals(r.sel)){fn(r,m,{clearRedo:!1});return}b=m}else if(a){x.push(m);return}else break;var H=[];bc(b,_),_.push({changes:H,generation:d.generation}),d.generation=m.generation||++d.maxGeneration;for(var K=Hn(r,"beforeChange")||r.cm&&Hn(r.cm,"beforeChange"),ne=function(me){var Se=m.changes[me];if(Se.origin=o,K&&!ym(r,Se,!1))return x.length=0,{};H.push(Qf(r,Se));var ke=me?Jf(r,Se):ve(x);Cl(r,Se,ke,cm(r,Se)),!me&&r.cm&&r.cm.scrollIntoView({from:Se.from,to:Di(Se)});var $e=[];Fi(r,function(Te,Ne){!Ne&&ge($e,Te.history)==-1&&(_m(Te.history,Se),$e.push(Te.history)),Cl(Te,Se,null,cm(Te,Se))})},Z=m.changes.length-1;Z>=0;--Z){var ce=ne(Z);if(ce)return ce.v}}}}function wm(r,o){if(o!=0&&(r.first+=o,r.sel=new Zn(be(r.sel.ranges,function(d){return new gt(le(d.anchor.line+o,d.anchor.ch),le(d.head.line+o,d.head.ch))}),r.sel.primIndex),r.cm)){kn(r.cm,r.first,r.first-o,o);for(var c=r.cm.display,a=c.viewFrom;a<c.viewTo;a++)Oi(r.cm,a,"gutter")}}function Cl(r,o,c,a){if(r.cm&&!r.cm.curOp)return Yt(r.cm,Cl)(r,o,c,a);if(o.to.line<r.first){wm(r,o.text.length-1-(o.to.line-o.from.line));return}if(!(o.from.line>r.lastLine())){if(o.from.line<r.first){var d=o.text.length-1-(r.first-o.from.line);wm(r,d),o={from:le(r.first,0),to:le(o.to.line+d,o.to.ch),text:[ve(o.text)],origin:o.origin}}var m=r.lastLine();o.to.line>m&&(o={from:o.from,to:le(m,Oe(r,m).text.length),text:[o.text[0]],origin:o.origin}),o.removed=si(r,o.from,o.to),c||(c=Jf(r,o)),r.cm?O_(r.cm,o,a):Zf(r,o,a),xc(r,c,Y),r.cantEdit&&Sc(r,le(r.firstLine(),0))&&(r.cantEdit=!1)}}function O_(r,o,c){var a=r.doc,d=r.display,m=o.from,b=o.to,x=!1,_=m.line;r.options.lineWrapping||(_=M(xr(Oe(a,m.line))),a.iter(_,b.line+1,function(Z){if(Z==d.maxLine)return x=!0,!0})),a.sel.contains(o.from,o.to)>-1&&sr(r),Zf(a,o,c,Fg(r)),r.options.lineWrapping||(a.iter(_,m.line+o.text.length,function(Z){var ce=sc(Z);ce>d.maxLineLength&&(d.maxLine=Z,d.maxLineLength=ce,d.maxLineChanged=!0,x=!1)}),x&&(r.curOp.updateMaxLine=!0)),kS(a,m.line),_l(r,400);var T=o.text.length-(b.line-m.line)-1;o.full?kn(r):m.line==b.line&&o.text.length==1&&!rm(r.doc,o)?Oi(r,m.line,"text"):kn(r,m.line,b.line+1,T);var H=Hn(r,"changes"),K=Hn(r,"change");if(K||H){var ne={from:m,to:b,text:o.text,removed:o.removed,origin:o.origin};K&&Jt(r,"change",r,ne),H&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(ne)}r.display.selForContextMenu=null}function ms(r,o,c,a,d){var m;a||(a=c),Le(a,c)<0&&(m=[a,c],c=m[0],a=m[1]),typeof o=="string"&&(o=r.splitLines(o)),gs(r,{from:c,to:a,text:o,origin:d})}function xm(r,o,c,a){c<r.line?r.line+=a:o<r.line&&(r.line=o,r.ch=0)}function Sm(r,o,c,a){for(var d=0;d<r.length;++d){var m=r[d],b=!0;if(m.ranges){m.copied||(m=r[d]=m.deepCopy(),m.copied=!0);for(var x=0;x<m.ranges.length;x++)xm(m.ranges[x].anchor,o,c,a),xm(m.ranges[x].head,o,c,a);continue}for(var _=0;_<m.changes.length;++_){var T=m.changes[_];if(c<T.from.line)T.from=le(T.from.line+a,T.from.ch),T.to=le(T.to.line+a,T.to.ch);else if(o<=T.to.line){b=!1;break}}b||(r.splice(0,d+1),d=0)}}function _m(r,o){var c=o.from.line,a=o.to.line,d=o.text.length-(a-c)-1;Sm(r.done,c,a,d),Sm(r.undone,c,a,d)}function El(r,o,c,a){var d=o,m=o;return typeof o=="number"?m=Oe(r,eg(r,o)):d=M(o),d==null?null:(a(m,d)&&r.cm&&Oi(r.cm,d,c),m)}function Al(r){this.lines=r,this.parent=null;for(var o=0,c=0;c<r.length;++c)r[c].parent=this,o+=r[c].height;this.height=o}Al.prototype={chunkSize:function(){return this.lines.length},removeInner:function(r,o){for(var c=r,a=r+o;c<a;++c){var d=this.lines[c];this.height-=d.height,RS(d),Jt(d,"delete")}this.lines.splice(r,o)},collapse:function(r){r.push.apply(r,this.lines)},insertInner:function(r,o,c){this.height+=c,this.lines=this.lines.slice(0,r).concat(o).concat(this.lines.slice(r));for(var a=0;a<o.length;++a)o[a].parent=this},iterN:function(r,o,c){for(var a=r+o;r<a;++r)if(c(this.lines[r]))return!0}};function Ll(r){this.children=r;for(var o=0,c=0,a=0;a<r.length;++a){var d=r[a];o+=d.chunkSize(),c+=d.height,d.parent=this}this.size=o,this.height=c,this.parent=null}Ll.prototype={chunkSize:function(){return this.size},removeInner:function(r,o){this.size-=o;for(var c=0;c<this.children.length;++c){var a=this.children[c],d=a.chunkSize();if(r<d){var m=Math.min(o,d-r),b=a.height;if(a.removeInner(r,m),this.height-=b-a.height,d==m&&(this.children.splice(c--,1),a.parent=null),(o-=m)==0)break;r=0}else r-=d}if(this.size-o<25&&(this.children.length>1||!(this.children[0]instanceof Al))){var x=[];this.collapse(x),this.children=[new Al(x)],this.children[0].parent=this}},collapse:function(r){for(var o=0;o<this.children.length;++o)this.children[o].collapse(r)},insertInner:function(r,o,c){this.size+=o.length,this.height+=c;for(var a=0;a<this.children.length;++a){var d=this.children[a],m=d.chunkSize();if(r<=m){if(d.insertInner(r,o,c),d.lines&&d.lines.length>50){for(var b=d.lines.length%25+25,x=b;x<d.lines.length;){var _=new Al(d.lines.slice(x,x+=25));d.height-=_.height,this.children.splice(++a,0,_),_.parent=this}d.lines=d.lines.slice(0,b),this.maybeSpill()}break}r-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var o=r.children.splice(r.children.length-5,5),c=new Ll(o);if(r.parent){r.size-=c.size,r.height-=c.height;var d=ge(r.parent.children,r);r.parent.children.splice(d+1,0,c)}else{var a=new Ll(r.children);a.parent=r,r.children=[a,c],r=a}c.parent=r.parent}while(r.children.length>10);r.parent.maybeSpill()}},iterN:function(r,o,c){for(var a=0;a<this.children.length;++a){var d=this.children[a],m=d.chunkSize();if(r<m){var b=Math.min(o,m-r);if(d.iterN(r,b,c))return!0;if((o-=b)==0)break;r=0}else r-=m}}};var $l=function(r,o,c){if(c)for(var a in c)c.hasOwnProperty(a)&&(this[a]=c[a]);this.doc=r,this.node=o};$l.prototype.clear=function(){var r=this.doc.cm,o=this.line.widgets,c=this.line,a=M(c);if(!(a==null||!o)){for(var d=0;d<o.length;++d)o[d]==this&&o.splice(d--,1);o.length||(c.widgets=null);var m=ml(this);Yn(c,Math.max(0,c.height-m)),r&&(Bn(r,function(){km(r,c,-m),Oi(r,a,"widget")}),Jt(r,"lineWidgetCleared",r,this,a))}},$l.prototype.changed=function(){var r=this,o=this.height,c=this.doc.cm,a=this.line;this.height=null;var d=ml(this)-o;d&&(Pi(this.doc,a)||Yn(a,a.height+d),c&&Bn(c,function(){c.curOp.forceUpdate=!0,km(c,a,d),Jt(c,"lineWidgetChanged",c,r,M(a))}))},mr($l);function km(r,o,c){ai(o)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&qf(r,c)}function R_(r,o,c,a){var d=new $l(r,c,a),m=r.cm;return m&&d.noHScroll&&(m.display.alignWidgets=!0),El(r,o,"widget",function(b){var x=b.widgets||(b.widgets=[]);if(d.insertAt==null?x.push(d):x.splice(Math.min(x.length,Math.max(0,d.insertAt)),0,d),d.line=b,m&&!Pi(r,b)){var _=ai(b)<r.scrollTop;Yn(b,b.height+ml(d)),_&&qf(m,d.height),m.curOp.forceUpdate=!0}return!0}),m&&Jt(m,"lineWidgetAdded",m,d,typeof o=="number"?o:M(o)),d}var Tm=0,Hi=function(r,o){this.lines=[],this.type=o,this.doc=r,this.id=++Tm};Hi.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,o=r&&!r.curOp;if(o&&Ao(r),Hn(this,"clear")){var c=this.find();c&&Jt(this,"clear",c.from,c.to)}for(var a=null,d=null,m=0;m<this.lines.length;++m){var b=this.lines[m],x=hl(b.markedSpans,this);r&&!this.collapsed?Oi(r,M(b),"text"):r&&(x.to!=null&&(d=M(b)),x.from!=null&&(a=M(b))),b.markedSpans=ES(b.markedSpans,x),x.from==null&&this.collapsed&&!Pi(this.doc,b)&&r&&Yn(b,as(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var T=xr(this.lines[_]),H=sc(T);H>r.display.maxLineLength&&(r.display.maxLine=T,r.display.maxLineLength=H,r.display.maxLineChanged=!0)}a!=null&&r&&this.collapsed&&kn(r,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&pm(r.doc)),r&&Jt(r,"markerCleared",r,this,a,d),o&&Lo(r),this.parent&&this.parent.clear()}},Hi.prototype.find=function(r,o){r==null&&this.type=="bookmark"&&(r=1);for(var c,a,d=0;d<this.lines.length;++d){var m=this.lines[d],b=hl(m.markedSpans,this);if(b.from!=null&&(c=le(o?m:M(m),b.from),r==-1))return c;if(b.to!=null&&(a=le(o?m:M(m),b.to),r==1))return a}return c&&{from:c,to:a}},Hi.prototype.changed=function(){var r=this,o=this.find(-1,!0),c=this,a=this.doc.cm;!o||!a||Bn(a,function(){var d=o.line,m=M(o.line),b=Mf(a,m);if(b&&(Mg(b),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Pi(c.doc,d)&&c.height!=null){var x=c.height;c.height=null;var _=ml(c)-x;_&&Yn(d,d.height+_)}Jt(a,"markerChanged",a,r)})},Hi.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var o=this.doc.cm.curOp;(!o.maybeHiddenMarkers||ge(o.maybeHiddenMarkers,this)==-1)&&(o.maybeUnhiddenMarkers||(o.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},Hi.prototype.detachLine=function(r){if(this.lines.splice(ge(this.lines,r),1),!this.lines.length&&this.doc.cm){var o=this.doc.cm.curOp;(o.maybeHiddenMarkers||(o.maybeHiddenMarkers=[])).push(this)}},mr(Hi);function vs(r,o,c,a,d){if(a&&a.shared)return z_(r,o,c,a,d);if(r.cm&&!r.cm.curOp)return Yt(r.cm,vs)(r,o,c,a,d);var m=new Hi(r,d),b=Le(o,c);if(a&&ee(a,m,!1),b>0||b==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=R("span",[m.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(gg(r,o.line,o,c,m)||o.line!=c.line&&gg(r,c.line,o,c,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");CS()}m.addToHistory&&lm(r,{from:o,to:c,origin:"markText"},r.sel,NaN);var x=o.line,_=r.cm,T;if(r.iter(x,c.line+1,function(K){_&&m.collapsed&&!_.options.lineWrapping&&xr(K)==_.display.maxLine&&(T=!0),m.collapsed&&x!=o.line&&Yn(K,0),AS(K,new nc(m,x==o.line?o.ch:null,x==c.line?c.ch:null),r.cm&&r.cm.curOp),++x}),m.collapsed&&r.iter(o.line,c.line+1,function(K){Pi(r,K)&&Yn(K,0)}),m.clearOnEnter&&Be(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(TS(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),m.collapsed&&(m.id=++Tm,m.atomic=!0),_){if(T&&(_.curOp.updateMaxLine=!0),m.collapsed)kn(_,o.line,c.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=o.line;H<=c.line;H++)Oi(_,H,"text");m.atomic&&pm(_.doc),Jt(_,"markerAdded",_,m)}return m}var Ml=function(r,o){this.markers=r,this.primary=o;for(var c=0;c<r.length;++c)r[c].parent=this};Ml.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();Jt(this,"clear")}},Ml.prototype.find=function(r,o){return this.primary.find(r,o)},mr(Ml);function z_(r,o,c,a,d){a=ee(a),a.shared=!1;var m=[vs(r,o,c,a,d)],b=m[0],x=a.widgetNode;return Fi(r,function(_){x&&(a.widgetNode=x.cloneNode(!0)),m.push(vs(_,Xe(_,o),Xe(_,c),a,d));for(var T=0;T<_.linked.length;++T)if(_.linked[T].isParent)return;b=ve(m)}),new Ml(m,b)}function Cm(r){return r.findMarks(le(r.first,0),r.clipPos(le(r.lastLine())),function(o){return o.parent})}function D_(r,o){for(var c=0;c<o.length;c++){var a=o[c],d=a.find(),m=r.clipPos(d.from),b=r.clipPos(d.to);if(Le(m,b)){var x=vs(r,m,b,a.primary,a.primary.type);a.markers.push(x),x.parent=a}}}function F_(r){for(var o=function(a){var d=r[a],m=[d.primary.doc];Fi(d.primary.doc,function(_){return m.push(_)});for(var b=0;b<d.markers.length;b++){var x=d.markers[b];ge(m,x.doc)==-1&&(x.parent=null,d.markers.splice(b--,1))}},c=0;c<r.length;c++)o(c)}var H_=0,Tn=function(r,o,c,a,d){if(!(this instanceof Tn))return new Tn(r,o,c,a,d);c==null&&(c=0),Ll.call(this,[new Al([new os("",null)])]),this.first=c,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=c;var m=le(c,0);this.sel=zi(m),this.history=new yc(null),this.id=++H_,this.modeOption=o,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),Zf(this,{from:m,to:m,text:r}),fn(this,zi(m),Y)};Tn.prototype=De(Ll.prototype,{constructor:Tn,iter:function(r,o,c){c?this.iterN(r-this.first,o-r,c):this.iterN(this.first,this.first+this.size,r)},insert:function(r,o){for(var c=0,a=0;a<o.length;++a)c+=o[a].height;this.insertInner(r-this.first,o,c)},remove:function(r,o){this.removeInner(r-this.first,o)},getValue:function(r){var o=fl(this,this.first,this.first+this.size);return r===!1?o:o.join(r||this.lineSeparator())},setValue:Zt(function(r){var o=le(this.first,0),c=this.first+this.size-1;gs(this,{from:o,to:le(c,Oe(this,c).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&bl(this.cm,0,0),fn(this,zi(o),Y)}),replaceRange:function(r,o,c,a){o=Xe(this,o),c=c?Xe(this,c):o,ms(this,r,o,c,a)},getRange:function(r,o,c){var a=si(this,Xe(this,r),Xe(this,o));return c===!1?a:c===""?a.join(""):a.join(c||this.lineSeparator())},getLine:function(r){var o=this.getLineHandle(r);return o&&o.text},getLineHandle:function(r){if(de(this,r))return Oe(this,r)},getLineNumber:function(r){return M(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=Oe(this,r)),xr(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return Xe(this,r)},getCursor:function(r){var o=this.sel.primary(),c;return r==null||r=="head"?c=o.head:r=="anchor"?c=o.anchor:r=="end"||r=="to"||r===!1?c=o.to():c=o.from(),c},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zt(function(r,o,c){fm(this,Xe(this,typeof r=="number"?le(r,o||0):r),null,c)}),setSelection:Zt(function(r,o,c){fm(this,Xe(this,r),Xe(this,o||r),c)}),extendSelection:Zt(function(r,o,c){wc(this,Xe(this,r),o&&Xe(this,o),c)}),extendSelections:Zt(function(r,o){um(this,tg(this,r),o)}),extendSelectionsBy:Zt(function(r,o){var c=be(this.sel.ranges,r);um(this,tg(this,c),o)}),setSelections:Zt(function(r,o,c){if(r.length){for(var a=[],d=0;d<r.length;d++)a[d]=new gt(Xe(this,r[d].anchor),Xe(this,r[d].head||r[d].anchor));o==null&&(o=Math.min(r.length-1,this.sel.primIndex)),fn(this,_r(this.cm,a,o),c)}}),addSelection:Zt(function(r,o,c){var a=this.sel.ranges.slice(0);a.push(new gt(Xe(this,r),Xe(this,o||r))),fn(this,_r(this.cm,a,a.length-1),c)}),getSelection:function(r){for(var o=this.sel.ranges,c,a=0;a<o.length;a++){var d=si(this,o[a].from(),o[a].to());c=c?c.concat(d):d}return r===!1?c:c.join(r||this.lineSeparator())},getSelections:function(r){for(var o=[],c=this.sel.ranges,a=0;a<c.length;a++){var d=si(this,c[a].from(),c[a].to());r!==!1&&(d=d.join(r||this.lineSeparator())),o[a]=d}return o},replaceSelection:function(r,o,c){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=r;this.replaceSelections(a,o,c||"+input")},replaceSelections:Zt(function(r,o,c){for(var a=[],d=this.sel,m=0;m<d.ranges.length;m++){var b=d.ranges[m];a[m]={from:b.from(),to:b.to(),text:this.splitLines(r[m]),origin:c}}for(var x=o&&o!="end"&&E_(this,a,o),_=a.length-1;_>=0;_--)gs(this,a[_]);x?dm(this,x):this.cm&&fs(this.cm)}),undo:Zt(function(){_c(this,"undo")}),redo:Zt(function(){_c(this,"redo")}),undoSelection:Zt(function(){_c(this,"undo",!0)}),redoSelection:Zt(function(){_c(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,o=0,c=0,a=0;a<r.done.length;a++)r.done[a].ranges||++o;for(var d=0;d<r.undone.length;d++)r.undone[d].ranges||++c;return{undo:o,redo:c}},clearHistory:function(){var r=this;this.history=new yc(this.history),Fi(this,function(o){return o.history=r.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:hs(this.history.done),undone:hs(this.history.undone)}},setHistory:function(r){var o=this.history=new yc(this.history);o.done=hs(r.done.slice(0),null,!0),o.undone=hs(r.undone.slice(0),null,!0)},setGutterMarker:Zt(function(r,o,c){return El(this,r,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[o]=c,!c&&ut(d)&&(a.gutterMarkers=null),!0})}),clearGutter:Zt(function(r){var o=this;this.iter(function(c){c.gutterMarkers&&c.gutterMarkers[r]&&El(o,c,"gutter",function(){return c.gutterMarkers[r]=null,ut(c.gutterMarkers)&&(c.gutterMarkers=null),!0})})}),lineInfo:function(r){var o;if(typeof r=="number"){if(!de(this,r)||(o=r,r=Oe(this,r),!r))return null}else if(o=M(r),o==null)return null;return{line:o,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:Zt(function(r,o,c){return El(this,r,o=="gutter"?"gutter":"class",function(a){var d=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=c;else{if(U(c).test(a[d]))return!1;a[d]+=" "+c}return!0})}),removeLineClass:Zt(function(r,o,c){return El(this,r,o=="gutter"?"gutter":"class",function(a){var d=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass",m=a[d];if(m)if(c==null)a[d]=null;else{var b=m.match(U(c));if(!b)return!1;var x=b.index+b[0].length;a[d]=m.slice(0,b.index)+(!b.index||x==m.length?"":" ")+m.slice(x)||null}else return!1;return!0})}),addLineWidget:Zt(function(r,o,c){return R_(this,r,o,c)}),removeLineWidget:function(r){r.clear()},markText:function(r,o,c){return vs(this,Xe(this,r),Xe(this,o),c,c&&c.type||"range")},setBookmark:function(r,o){var c={replacedWith:o&&(o.nodeType==null?o.widget:o),insertLeft:o&&o.insertLeft,clearWhenEmpty:!1,shared:o&&o.shared,handleMouseEvents:o&&o.handleMouseEvents};return r=Xe(this,r),vs(this,r,r,c,"bookmark")},findMarksAt:function(r){r=Xe(this,r);var o=[],c=Oe(this,r.line).markedSpans;if(c)for(var a=0;a<c.length;++a){var d=c[a];(d.from==null||d.from<=r.ch)&&(d.to==null||d.to>=r.ch)&&o.push(d.marker.parent||d.marker)}return o},findMarks:function(r,o,c){r=Xe(this,r),o=Xe(this,o);var a=[],d=r.line;return this.iter(r.line,o.line+1,function(m){var b=m.markedSpans;if(b)for(var x=0;x<b.length;x++){var _=b[x];!(_.to!=null&&d==r.line&&r.ch>=_.to||_.from==null&&d!=r.line||_.from!=null&&d==o.line&&_.from>=o.ch)&&(!c||c(_.marker))&&a.push(_.marker.parent||_.marker)}++d}),a},getAllMarks:function(){var r=[];return this.iter(function(o){var c=o.markedSpans;if(c)for(var a=0;a<c.length;++a)c[a].from!=null&&r.push(c[a].marker)}),r},posFromIndex:function(r){var o,c=this.first,a=this.lineSeparator().length;return this.iter(function(d){var m=d.text.length+a;if(m>r)return o=r,!0;r-=m,++c}),Xe(this,le(c,o))},indexFromPos:function(r){r=Xe(this,r);var o=r.ch;if(r.line<this.first||r.ch<0)return 0;var c=this.lineSeparator().length;return this.iter(this.first,r.line,function(a){o+=a.text.length+c}),o},copy:function(r){var o=new Tn(fl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return o.scrollTop=this.scrollTop,o.scrollLeft=this.scrollLeft,o.sel=this.sel,o.extend=!1,r&&(o.history.undoDepth=this.history.undoDepth,o.setHistory(this.getHistory())),o},linkedDoc:function(r){r||(r={});var o=this.first,c=this.first+this.size;r.from!=null&&r.from>o&&(o=r.from),r.to!=null&&r.to<c&&(c=r.to);var a=new Tn(fl(this,o,c),r.mode||this.modeOption,o,this.lineSep,this.direction);return r.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:r.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:r.sharedHist}],D_(a,Cm(this)),a},unlinkDoc:function(r){if(r instanceof Ct&&(r=r.doc),this.linked)for(var o=0;o<this.linked.length;++o){var c=this.linked[o];if(c.doc==r){this.linked.splice(o,1),r.unlinkDoc(this),F_(Cm(this));break}}if(r.history==this.history){var a=[r.id];Fi(r,function(d){return a.push(d.id)},!0),r.history=new yc(null),r.history.done=hs(this.history.done,a),r.history.undone=hs(this.history.undone,a)}},iterLinkedDocs:function(r){Fi(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):lr(r)},lineSeparator:function(){return this.lineSep||`
35
- `},setDirection:Zt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(o){return o.order=null}),this.cm&&A_(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var Em=0;function B_(r){var o=this;if(Am(o),!(Ot(o,r)||ci(o.display,r))){un(r),h&&(Em=+new Date);var c=ko(o,r,!0),a=r.dataTransfer.files;if(!(!c||o.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,m=Array(d),b=0,x=function(){++b==d&&Yt(o,function(){c=Xe(o.doc,c);var Z={from:c,to:c,text:o.doc.splitLines(m.filter(function(ce){return ce!=null}).join(o.doc.lineSeparator())),origin:"paste"};gs(o.doc,Z),dm(o.doc,zi(Xe(o.doc,c),Xe(o.doc,Di(Z))))})()},_=function(Z,ce){if(o.options.allowDropFileTypes&&ge(o.options.allowDropFileTypes,Z.type)==-1){x();return}var me=new FileReader;me.onerror=function(){return x()},me.onload=function(){var Se=me.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Se)){x();return}m[ce]=Se,x()},me.readAsText(Z)},T=0;T<a.length;T++)_(a[T],T);else{if(o.state.draggingText&&o.doc.sel.contains(c)>-1){o.state.draggingText(r),setTimeout(function(){return o.display.input.focus()},20);return}try{var H=r.dataTransfer.getData("Text");if(H){var K;if(o.state.draggingText&&!o.state.draggingText.copy&&(K=o.listSelections()),xc(o.doc,zi(c,c)),K)for(var ne=0;ne<K.length;++ne)ms(o.doc,"",K[ne].anchor,K[ne].head,"drag");o.replaceSelection(H,"around","paste"),o.display.input.focus()}}catch{}}}}function W_(r,o){if(h&&(!r.state.draggingText||+new Date-Em<100)){$i(o);return}if(!(Ot(r,o)||ci(r.display,o))&&(o.dataTransfer.setData("Text",r.getSelection()),o.dataTransfer.effectAllowed="copyMove",o.dataTransfer.setDragImage&&!$)){var c=S("img",null,null,"position: fixed; left: 0; top: 0;");c.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",L&&(c.width=c.height=1,r.display.wrapper.appendChild(c),c._top=c.offsetTop),o.dataTransfer.setDragImage(c,0,0),L&&c.parentNode.removeChild(c)}}function j_(r,o){var c=ko(r,o);if(c){var a=document.createDocumentFragment();Ff(r,c,a),r.display.dragCursor||(r.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),P(r.display.dragCursor,a)}}function Am(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function Lm(r){if(document.getElementsByClassName){for(var o=document.getElementsByClassName("CodeMirror"),c=[],a=0;a<o.length;a++){var d=o[a].CodeMirror;d&&c.push(d)}c.length&&c[0].operation(function(){for(var m=0;m<c.length;m++)r(c[m])})}}var $m=!1;function q_(){$m||(U_(),$m=!0)}function U_(){var r;Be(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,Lm(V_)},100))}),Be(window,"blur",function(){return Lm(us)})}function V_(r){var o=r.display;o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.scrollbarsClipped=!1,r.setSize()}for(var Bi={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"},Nl=0;Nl<10;Nl++)Bi[Nl+48]=Bi[Nl+96]=String(Nl);for(var kc=65;kc<=90;kc++)Bi[kc]=String.fromCharCode(kc);for(var Il=1;Il<=12;Il++)Bi[Il+111]=Bi[Il+63235]="F"+Il;var fi={};fi.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"},fi.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"},fi.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"},fi.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"]},fi.default=z?fi.macDefault:fi.pcDefault;function G_(r){var o=r.split(/-(?!$)/);r=o[o.length-1];for(var c,a,d,m,b=0;b<o.length-1;b++){var x=o[b];if(/^(cmd|meta|m)$/i.test(x))m=!0;else if(/^a(lt)?$/i.test(x))c=!0;else if(/^(c|ctrl|control)$/i.test(x))a=!0;else if(/^s(hift)?$/i.test(x))d=!0;else throw new Error("Unrecognized modifier name: "+x)}return c&&(r="Alt-"+r),a&&(r="Ctrl-"+r),m&&(r="Cmd-"+r),d&&(r="Shift-"+r),r}function X_(r){var o={};for(var c in r)if(r.hasOwnProperty(c)){var a=r[c];if(/^(name|fallthrough|(de|at)tach)$/.test(c))continue;if(a=="..."){delete r[c];continue}for(var d=be(c.split(" "),G_),m=0;m<d.length;m++){var b=void 0,x=void 0;m==d.length-1?(x=d.join(" "),b=a):(x=d.slice(0,m+1).join(" "),b="...");var _=o[x];if(!_)o[x]=b;else if(_!=b)throw new Error("Inconsistent bindings for "+x)}delete r[c]}for(var T in o)r[T]=o[T];return r}function ys(r,o,c,a){o=Tc(o);var d=o.call?o.call(r,a):o[r];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&c(d))return"handled";if(o.fallthrough){if(Object.prototype.toString.call(o.fallthrough)!="[object Array]")return ys(r,o.fallthrough,c,a);for(var m=0;m<o.fallthrough.length;m++){var b=ys(r,o.fallthrough[m],c,a);if(b)return b}}}function Mm(r){var o=typeof r=="string"?r:Bi[r.keyCode];return o=="Ctrl"||o=="Alt"||o=="Shift"||o=="Mod"}function Nm(r,o,c){var a=r;return o.altKey&&a!="Alt"&&(r="Alt-"+r),(W?o.metaKey:o.ctrlKey)&&a!="Ctrl"&&(r="Ctrl-"+r),(W?o.ctrlKey:o.metaKey)&&a!="Mod"&&(r="Cmd-"+r),!c&&o.shiftKey&&a!="Shift"&&(r="Shift-"+r),r}function Im(r,o){if(L&&r.keyCode==34&&r.char)return!1;var c=Bi[r.keyCode];return c==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(c=r.code),Nm(c,r,o))}function Tc(r){return typeof r=="string"?fi[r]:r}function bs(r,o){for(var c=r.doc.sel.ranges,a=[],d=0;d<c.length;d++){for(var m=o(c[d]);a.length&&Le(m.from,ve(a).to)<=0;){var b=a.pop();if(Le(b.from,m.from)<0){m.from=b.from;break}}a.push(m)}Bn(r,function(){for(var x=a.length-1;x>=0;x--)ms(r.doc,"",a[x].from,a[x].to,"+delete");fs(r)})}function nd(r,o,c){var a=Xt(r.text,o+c,c);return a<0||a>r.text.length?null:a}function rd(r,o,c){var a=nd(r,o.ch,c);return a==null?null:new le(o.line,a,c<0?"after":"before")}function id(r,o,c,a,d){if(r){o.doc.direction=="rtl"&&(d=-d);var m=tt(c,o.doc.direction);if(m){var b=d<0?ve(m):m[0],x=d<0==(b.level==1),_=x?"after":"before",T;if(b.level>0||o.doc.direction=="rtl"){var H=ls(o,c);T=d<0?c.text.length-1:0;var K=qr(o,H,T).top;T=Bt(function(ne){return qr(o,H,ne).top==K},d<0==(b.level==1)?b.from:b.to-1,T),_=="before"&&(T=nd(c,T,1))}else T=d<0?b.to:b.from;return new le(a,T,_)}}return new le(a,d<0?c.text.length:0,d<0?"before":"after")}function K_(r,o,c,a){var d=tt(o,r.doc.direction);if(!d)return rd(o,c,a);c.ch>=o.text.length?(c.ch=o.text.length,c.sticky="before"):c.ch<=0&&(c.ch=0,c.sticky="after");var m=Ft(d,c.ch,c.sticky),b=d[m];if(r.doc.direction=="ltr"&&b.level%2==0&&(a>0?b.to>c.ch:b.from<c.ch))return rd(o,c,a);var x=function(ke,$e){return nd(o,ke instanceof le?ke.ch:ke,$e)},_,T=function(ke){return r.options.lineWrapping?(_=_||ls(r,o),Dg(r,o,_,ke)):{begin:0,end:o.text.length}},H=T(c.sticky=="before"?x(c,-1):c.ch);if(r.doc.direction=="rtl"||b.level==1){var K=b.level==1==a<0,ne=x(c,K?1:-1);if(ne!=null&&(K?ne<=b.to&&ne<=H.end:ne>=b.from&&ne>=H.begin)){var Z=K?"before":"after";return new le(c.line,ne,Z)}}var ce=function(ke,$e,Te){for(var Ne=function(xt,Qt){return Qt?new le(c.line,x(xt,1),"before"):new le(c.line,xt,"after")};ke>=0&&ke<d.length;ke+=$e){var We=d[ke],ze=$e>0==(We.level!=1),Qe=ze?Te.begin:x(Te.end,-1);if(We.from<=Qe&&Qe<We.to||(Qe=ze?We.from:x(We.to,-1),Te.begin<=Qe&&Qe<Te.end))return Ne(Qe,ze)}},me=ce(m+a,a,H);if(me)return me;var Se=a>0?H.end:x(H.begin,-1);return Se!=null&&!(a>0&&Se==o.text.length)&&(me=ce(a>0?0:d.length-1,a,T(Se)),me)?me:null}var Pl={selectAll:vm,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),Y)},killLine:function(r){return bs(r,function(o){if(o.empty()){var c=Oe(r.doc,o.head.line).text.length;return o.head.ch==c&&o.head.line<r.lastLine()?{from:o.head,to:le(o.head.line+1,0)}:{from:o.head,to:le(o.head.line,c)}}else return{from:o.from(),to:o.to()}})},deleteLine:function(r){return bs(r,function(o){return{from:le(o.from().line,0),to:Xe(r.doc,le(o.to().line+1,0))}})},delLineLeft:function(r){return bs(r,function(o){return{from:le(o.from().line,0),to:o.from()}})},delWrappedLineLeft:function(r){return bs(r,function(o){var c=r.charCoords(o.head,"div").top+5,a=r.coordsChar({left:0,top:c},"div");return{from:a,to:o.from()}})},delWrappedLineRight:function(r){return bs(r,function(o){var c=r.charCoords(o.head,"div").top+5,a=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:c},"div");return{from:o.from(),to:a}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(le(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(le(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(o){return Pm(r,o.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(o){return Om(r,o.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(o){return J_(r,o.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(o){var c=r.cursorCoords(o.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:c},"div")},pe)},goLineLeft:function(r){return r.extendSelectionsBy(function(o){var c=r.cursorCoords(o.head,"div").top+5;return r.coordsChar({left:0,top:c},"div")},pe)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(o){var c=r.cursorCoords(o.head,"div").top+5,a=r.coordsChar({left:0,top:c},"div");return a.ch<r.getLine(a.line).search(/\S/)?Om(r,o.head):a},pe)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var o=[],c=r.listSelections(),a=r.options.tabSize,d=0;d<c.length;d++){var m=c[d].from(),b=J(r.getLine(m.line),m.ch,a);o.push(Ee(a-b%a))}r.replaceSelections(o)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return Bn(r,function(){for(var o=r.listSelections(),c=[],a=0;a<o.length;a++)if(o[a].empty()){var d=o[a].head,m=Oe(r.doc,d.line).text;if(m){if(d.ch==m.length&&(d=new le(d.line,d.ch-1)),d.ch>0)d=new le(d.line,d.ch+1),r.replaceRange(m.charAt(d.ch-1)+m.charAt(d.ch-2),le(d.line,d.ch-2),d,"+transpose");else if(d.line>r.doc.first){var b=Oe(r.doc,d.line-1).text;b&&(d=new le(d.line,1),r.replaceRange(m.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),le(d.line-1,b.length-1),d,"+transpose"))}}c.push(new gt(d,d))}r.setSelections(c)})},newlineAndIndent:function(r){return Bn(r,function(){for(var o=r.listSelections(),c=o.length-1;c>=0;c--)r.replaceRange(r.doc.lineSeparator(),o[c].anchor,o[c].head,"+input");o=r.listSelections();for(var a=0;a<o.length;a++)r.indentLine(o[a].from().line,null,!0);fs(r)})},openLine:function(r){return r.replaceSelection(`
36
- `,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function Pm(r,o){var c=Oe(r.doc,o),a=xr(c);return a!=c&&(o=M(a)),id(!0,r,a,o,1)}function J_(r,o){var c=Oe(r.doc,o),a=IS(c);return a!=c&&(o=M(a)),id(!0,r,c,o,-1)}function Om(r,o){var c=Pm(r,o.line),a=Oe(r.doc,c.line),d=tt(a,r.doc.direction);if(!d||d[0].level==0){var m=Math.max(c.ch,a.text.search(/\S/)),b=o.line==c.line&&o.ch<=m&&o.ch;return le(c.line,b?0:m,c.sticky)}return c}function Cc(r,o,c){if(typeof o=="string"&&(o=Pl[o],!o))return!1;r.display.input.ensurePolled();var a=r.display.shift,d=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),c&&(r.display.shift=!1),d=o(r)!=G}finally{r.display.shift=a,r.state.suppressEdits=!1}return d}function Y_(r,o,c){for(var a=0;a<r.state.keyMaps.length;a++){var d=ys(o,r.state.keyMaps[a],c,r);if(d)return d}return r.options.extraKeys&&ys(o,r.options.extraKeys,c,r)||ys(o,r.options.keyMap,c,r)}var Z_=new ae;function Ol(r,o,c,a){var d=r.state.keySeq;if(d){if(Mm(o))return"handled";if(/\'$/.test(o)?r.state.keySeq=null:Z_.set(50,function(){r.state.keySeq==d&&(r.state.keySeq=null,r.display.input.reset())}),Rm(r,d+" "+o,c,a))return!0}return Rm(r,o,c,a)}function Rm(r,o,c,a){var d=Y_(r,o,a);return d=="multi"&&(r.state.keySeq=o),d=="handled"&&Jt(r,"keyHandled",r,o,c),(d=="handled"||d=="multi")&&(un(c),Hf(r)),!!d}function zm(r,o){var c=Im(o,!0);return c?o.shiftKey&&!r.state.keySeq?Ol(r,"Shift-"+c,o,function(a){return Cc(r,a,!0)})||Ol(r,c,o,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Cc(r,a)}):Ol(r,c,o,function(a){return Cc(r,a)}):!1}function Q_(r,o,c){return Ol(r,"'"+c+"'",o,function(a){return Cc(r,a,!0)})}var od=null;function Dm(r){var o=this;if(!(r.target&&r.target!=o.display.input.getField())&&(o.curOp.focus=ue(Ke(o)),!Ot(o,r))){h&&p<11&&r.keyCode==27&&(r.returnValue=!1);var c=r.keyCode;o.display.shift=c==16||r.shiftKey;var a=zm(o,r);L&&(od=a?c:null,!a&&c==88&&!ec&&(z?r.metaKey:r.ctrlKey)&&o.replaceSelection("",null,"cut")),s&&!z&&!a&&c==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),c==18&&!/\bCodeMirror-crosshair\b/.test(o.display.lineDiv.className)&&ek(o)}}function ek(r){var o=r.display.lineDiv;we(o,"CodeMirror-crosshair");function c(a){(a.keyCode==18||!a.altKey)&&(A(o,"CodeMirror-crosshair"),cn(document,"keyup",c),cn(document,"mouseover",c))}Be(document,"keyup",c),Be(document,"mouseover",c)}function Fm(r){r.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,r)}function Hm(r){var o=this;if(!(r.target&&r.target!=o.display.input.getField())&&!(ci(o.display,r)||Ot(o,r)||r.ctrlKey&&!r.altKey||z&&r.metaKey)){var c=r.keyCode,a=r.charCode;if(L&&c==od){od=null,un(r);return}if(!(L&&(!r.which||r.which<10)&&zm(o,r))){var d=String.fromCharCode(a??c);d!="\b"&&(Q_(o,r,d)||o.display.input.onKeyPress(r))}}}var tk=400,sd=function(r,o,c){this.time=r,this.pos=o,this.button=c};sd.prototype.compare=function(r,o,c){return this.time+tk>r&&Le(o,this.pos)==0&&c==this.button};var Rl,zl;function nk(r,o){var c=+new Date;return zl&&zl.compare(c,r,o)?(Rl=zl=null,"triple"):Rl&&Rl.compare(c,r,o)?(zl=new sd(c,r,o),Rl=null,"double"):(Rl=new sd(c,r,o),zl=null,"single")}function Bm(r){var o=this,c=o.display;if(!(Ot(o,r)||c.activeTouch&&c.input.supportsTouch())){if(c.input.ensurePolled(),c.shift=r.shiftKey,ci(c,r)){g||(c.scroller.draggable=!1,setTimeout(function(){return c.scroller.draggable=!0},100));return}if(!ld(o,r)){var a=ko(o,r),d=vr(r),m=a?nk(a,d):"single";re(o).focus(),d==1&&o.state.selectingText&&o.state.selectingText(r),!(a&&rk(o,d,a,m,r))&&(d==1?a?ok(o,a,m,r):al(r)==c.scroller&&un(r):d==2?(a&&wc(o.doc,a),setTimeout(function(){return c.input.focus()},20)):d==3&&(q?o.display.input.onContextMenu(r):Bf(o)))}}}function rk(r,o,c,a,d){var m="Click";return a=="double"?m="Double"+m:a=="triple"&&(m="Triple"+m),m=(o==1?"Left":o==2?"Middle":"Right")+m,Ol(r,Nm(m,d),d,function(b){if(typeof b=="string"&&(b=Pl[b]),!b)return!1;var x=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),x=b(r,c)!=G}finally{r.state.suppressEdits=!1}return x})}function ik(r,o,c){var a=r.getOption("configureMouse"),d=a?a(r,o,c):{};if(d.unit==null){var m=D?c.shiftKey&&c.metaKey:c.altKey;d.unit=m?"rectangle":o=="single"?"char":o=="double"?"word":"line"}return(d.extend==null||r.doc.extend)&&(d.extend=r.doc.extend||c.shiftKey),d.addNew==null&&(d.addNew=z?c.metaKey:c.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(z?c.altKey:c.ctrlKey)),d}function ok(r,o,c,a){h?setTimeout(V(Wg,r),0):r.curOp.focus=ue(Ke(r));var d=ik(r,c,a),m=r.doc.sel,b;r.options.dragDrop&&bf&&!r.isReadOnly()&&c=="single"&&(b=m.contains(o))>-1&&(Le((b=m.ranges[b]).from(),o)<0||o.xRel>0)&&(Le(b.to(),o)>0||o.xRel<0)?sk(r,a,o,d):lk(r,a,o,d)}function sk(r,o,c,a){var d=r.display,m=!1,b=Yt(r,function(T){g&&(d.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:Bf(r)),cn(d.wrapper.ownerDocument,"mouseup",b),cn(d.wrapper.ownerDocument,"mousemove",x),cn(d.scroller,"dragstart",_),cn(d.scroller,"drop",b),m||(un(T),a.addNew||wc(r.doc,c,null,null,a.extend),g&&!$||h&&p==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),x=function(T){m=m||Math.abs(o.clientX-T.clientX)+Math.abs(o.clientY-T.clientY)>=10},_=function(){return m=!0};g&&(d.scroller.draggable=!0),r.state.draggingText=b,b.copy=!a.moveOnDrag,Be(d.wrapper.ownerDocument,"mouseup",b),Be(d.wrapper.ownerDocument,"mousemove",x),Be(d.scroller,"dragstart",_),Be(d.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function Wm(r,o,c){if(c=="char")return new gt(o,o);if(c=="word")return r.findWordAt(o);if(c=="line")return new gt(le(o.line,0),Xe(r.doc,le(o.line+1,0)));var a=c(r,o);return new gt(a.from,a.to)}function lk(r,o,c,a){h&&Bf(r);var d=r.display,m=r.doc;un(o);var b,x,_=m.sel,T=_.ranges;if(a.addNew&&!a.extend?(x=m.sel.contains(c),x>-1?b=T[x]:b=new gt(c,c)):(b=m.sel.primary(),x=m.sel.primIndex),a.unit=="rectangle")a.addNew||(b=new gt(c,c)),c=ko(r,o,!0,!0),x=-1;else{var H=Wm(r,c,a.unit);a.extend?b=ed(b,H.anchor,H.head,a.extend):b=H}a.addNew?x==-1?(x=T.length,fn(m,_r(r,T.concat([b]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&a.unit=="char"&&!a.extend?(fn(m,_r(r,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=m.sel):td(m,x,b,fe):(x=0,fn(m,new Zn([b],0),fe),_=m.sel);var K=c;function ne(Te){if(Le(K,Te)!=0)if(K=Te,a.unit=="rectangle"){for(var Ne=[],We=r.options.tabSize,ze=J(Oe(m,c.line).text,c.ch,We),Qe=J(Oe(m,Te.line).text,Te.ch,We),xt=Math.min(ze,Qe),Qt=Math.max(ze,Qe),Mt=Math.min(c.line,Te.line),Wn=Math.min(r.lastLine(),Math.max(c.line,Te.line));Mt<=Wn;Mt++){var Cn=Oe(m,Mt).text,Wt=he(Cn,xt,We);xt==Qt?Ne.push(new gt(le(Mt,Wt),le(Mt,Wt))):Cn.length>Wt&&Ne.push(new gt(le(Mt,Wt),le(Mt,he(Cn,Qt,We))))}Ne.length||Ne.push(new gt(c,c)),fn(m,_r(r,_.ranges.slice(0,x).concat(Ne),x),{origin:"*mouse",scroll:!1}),r.scrollIntoView(Te)}else{var En=b,sn=Wm(r,Te,a.unit),Vt=En.anchor,jt;Le(sn.anchor,Vt)>0?(jt=sn.head,Vt=is(En.from(),sn.anchor)):(jt=sn.anchor,Vt=_n(En.to(),sn.head));var zt=_.ranges.slice(0);zt[x]=ak(r,new gt(Xe(m,Vt),jt)),fn(m,_r(r,zt,x),fe)}}var Z=d.wrapper.getBoundingClientRect(),ce=0;function me(Te){var Ne=++ce,We=ko(r,Te,!0,a.unit=="rectangle");if(We)if(Le(We,K)!=0){r.curOp.focus=ue(Ke(r)),ne(We);var ze=pc(d,m);(We.line>=ze.to||We.line<ze.from)&&setTimeout(Yt(r,function(){ce==Ne&&me(Te)}),150)}else{var Qe=Te.clientY<Z.top?-20:Te.clientY>Z.bottom?20:0;Qe&&setTimeout(Yt(r,function(){ce==Ne&&(d.scroller.scrollTop+=Qe,me(Te))}),50)}}function Se(Te){r.state.selectingText=!1,ce=1/0,Te&&(un(Te),d.input.focus()),cn(d.wrapper.ownerDocument,"mousemove",ke),cn(d.wrapper.ownerDocument,"mouseup",$e),m.history.lastSelOrigin=null}var ke=Yt(r,function(Te){Te.buttons===0||!vr(Te)?Se(Te):me(Te)}),$e=Yt(r,Se);r.state.selectingText=$e,Be(d.wrapper.ownerDocument,"mousemove",ke),Be(d.wrapper.ownerDocument,"mouseup",$e)}function ak(r,o){var c=o.anchor,a=o.head,d=Oe(r.doc,c.line);if(Le(c,a)==0&&c.sticky==a.sticky)return o;var m=tt(d);if(!m)return o;var b=Ft(m,c.ch,c.sticky),x=m[b];if(x.from!=c.ch&&x.to!=c.ch)return o;var _=b+(x.from==c.ch==(x.level!=1)?0:1);if(_==0||_==m.length)return o;var T;if(a.line!=c.line)T=(a.line-c.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var H=Ft(m,a.ch,a.sticky),K=H-b||(a.ch-c.ch)*(x.level==1?-1:1);H==_-1||H==_?T=K<0:T=K>0}var ne=m[_+(T?-1:0)],Z=T==(ne.level==1),ce=Z?ne.from:ne.to,me=Z?"after":"before";return c.ch==ce&&c.sticky==me?o:new gt(new le(c.line,ce,me),a)}function jm(r,o,c,a){var d,m;if(o.touches)d=o.touches[0].clientX,m=o.touches[0].clientY;else try{d=o.clientX,m=o.clientY}catch{return!1}if(d>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;a&&un(o);var b=r.display,x=b.lineDiv.getBoundingClientRect();if(m>x.bottom||!Hn(r,c))return Sn(o);m-=x.top-b.viewOffset;for(var _=0;_<r.display.gutterSpecs.length;++_){var T=b.gutters.childNodes[_];if(T&&T.getBoundingClientRect().right>=d){var H=X(r.doc,m),K=r.display.gutterSpecs[_];return Pt(r,c,r,H,K.className,o),Sn(o)}}}function ld(r,o){return jm(r,o,"gutterClick",!0)}function qm(r,o){ci(r.display,o)||ck(r,o)||Ot(r,o,"contextmenu")||q||r.display.input.onContextMenu(o)}function ck(r,o){return Hn(r,"gutterContextMenu")?jm(r,o,"gutterContextMenu",!1):!1}function Um(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),vl(r)}var ws={toString:function(){return"CodeMirror.Init"}},Vm={},Ec={};function uk(r){var o=r.optionHandlers;function c(a,d,m,b){r.defaults[a]=d,m&&(o[a]=b?function(x,_,T){T!=ws&&m(x,_,T)}:m)}r.defineOption=c,r.Init=ws,c("value","",function(a,d){return a.setValue(d)},!0),c("mode",null,function(a,d){a.doc.modeOption=d,Yf(a)},!0),c("indentUnit",2,Yf,!0),c("indentWithTabs",!1),c("smartIndent",!0),c("tabSize",4,function(a){Tl(a),vl(a),kn(a)},!0),c("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var m=[],b=a.doc.first;a.doc.iter(function(_){for(var T=0;;){var H=_.text.indexOf(d,T);if(H==-1)break;T=H+d.length,m.push(le(b,H))}b++});for(var x=m.length-1;x>=0;x--)ms(a.doc,d,m[x],le(m[x].line,m[x].ch+d.length))}}),c("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(a,d,m){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),m!=ws&&a.refresh()}),c("specialCharPlaceholder",FS,function(a){return a.refresh()},!0),c("electricChars",!0),c("inputStyle",k?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),c("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),c("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),c("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),c("rtlMoveVisually",!oe),c("wholeLineUpdateBefore",!0),c("theme","default",function(a){Um(a),kl(a)},!0),c("keyMap","default",function(a,d,m){var b=Tc(d),x=m!=ws&&Tc(m);x&&x.detach&&x.detach(a,b),b.attach&&b.attach(a,x||null)}),c("extraKeys",null),c("configureMouse",null),c("lineWrapping",!1,dk,!0),c("gutters",[],function(a,d){a.display.gutterSpecs=Kf(d,a.options.lineNumbers),kl(a)},!0),c("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?zf(a.display)+"px":"0",a.refresh()},!0),c("coverGutterNextToScrollbar",!1,function(a){return ds(a)},!0),c("scrollbarStyle","native",function(a){Xg(a),ds(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),c("lineNumbers",!1,function(a,d){a.display.gutterSpecs=Kf(a.options.gutters,d),kl(a)},!0),c("firstLineNumber",1,kl,!0),c("lineNumberFormatter",function(a){return a},kl,!0),c("showCursorWhenSelecting",!1,yl,!0),c("resetSelectionOnContextMenu",!0),c("lineWiseCopyCut",!0),c("pasteLinesPerSelection",!0),c("selectionsMayTouch",!1),c("readOnly",!1,function(a,d){d=="nocursor"&&(us(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),c("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),c("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),c("dragDrop",!0,fk),c("allowDropFileTypes",null),c("cursorBlinkRate",530),c("cursorScrollMargin",0),c("cursorHeight",1,yl,!0),c("singleCursorHeightPerLine",!0,yl,!0),c("workTime",100),c("workDelay",100),c("flattenSpans",!0,Tl,!0),c("addModeClass",!1,Tl,!0),c("pollInterval",100),c("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),c("historyEventDelay",1250),c("viewportMargin",10,function(a){return a.refresh()},!0),c("maxHighlightLength",1e4,Tl,!0),c("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),c("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),c("autofocus",null),c("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),c("phrases",null)}function fk(r,o,c){var a=c&&c!=ws;if(!o!=!a){var d=r.display.dragFunctions,m=o?Be:cn;m(r.display.scroller,"dragstart",d.start),m(r.display.scroller,"dragenter",d.enter),m(r.display.scroller,"dragover",d.over),m(r.display.scroller,"dragleave",d.leave),m(r.display.scroller,"drop",d.drop)}}function dk(r){r.options.lineWrapping?(we(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(A(r.display.wrapper,"CodeMirror-wrap"),Ef(r)),Df(r),kn(r),vl(r),setTimeout(function(){return ds(r)},100)}function Ct(r,o){var c=this;if(!(this instanceof Ct))return new Ct(r,o);this.options=o=o?ee(o):{},ee(Vm,o,!1);var a=o.value;typeof a=="string"?a=new Tn(a,o.mode,null,o.lineSeparator,o.direction):o.mode&&(a.modeOption=o.mode),this.doc=a;var d=new Ct.inputStyles[o.inputStyle](this),m=this.display=new T_(r,a,d,o);m.wrapper.CodeMirror=this,Um(this),o.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xg(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 ae,keySeq:null,specialChars:null},o.autofocus&&!k&&m.input.focus(),h&&p<11&&setTimeout(function(){return c.display.input.reset(!0)},20),hk(this),q_(),Ao(this),this.curOp.forceUpdate=!0,im(this,a),o.autofocus&&!k||this.hasFocus()?setTimeout(function(){c.hasFocus()&&!c.state.focused&&Wf(c)},20):us(this);for(var b in Ec)Ec.hasOwnProperty(b)&&Ec[b](this,o[b],ws);Yg(this),o.finishInit&&o.finishInit(this);for(var x=0;x<ad.length;++x)ad[x](this);Lo(this),g&&o.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Ct.defaults=Vm,Ct.optionHandlers=Ec;function hk(r){var o=r.display;Be(o.scroller,"mousedown",Yt(r,Bm)),h&&p<11?Be(o.scroller,"dblclick",Yt(r,function(_){if(!Ot(r,_)){var T=ko(r,_);if(!(!T||ld(r,_)||ci(r.display,_))){un(_);var H=r.findWordAt(T);wc(r.doc,H.anchor,H.head)}}})):Be(o.scroller,"dblclick",function(_){return Ot(r,_)||un(_)}),Be(o.scroller,"contextmenu",function(_){return qm(r,_)}),Be(o.input.getField(),"contextmenu",function(_){o.scroller.contains(_.target)||qm(r,_)});var c,a={end:0};function d(){o.activeTouch&&(c=setTimeout(function(){return o.activeTouch=null},1e3),a=o.activeTouch,a.end=+new Date)}function m(_){if(_.touches.length!=1)return!1;var T=_.touches[0];return T.radiusX<=1&&T.radiusY<=1}function b(_,T){if(T.left==null)return!0;var H=T.left-_.left,K=T.top-_.top;return H*H+K*K>20*20}Be(o.scroller,"touchstart",function(_){if(!Ot(r,_)&&!m(_)&&!ld(r,_)){o.input.ensurePolled(),clearTimeout(c);var T=+new Date;o.activeTouch={start:T,moved:!1,prev:T-a.end<=300?a:null},_.touches.length==1&&(o.activeTouch.left=_.touches[0].pageX,o.activeTouch.top=_.touches[0].pageY)}}),Be(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Be(o.scroller,"touchend",function(_){var T=o.activeTouch;if(T&&!ci(o,_)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=r.coordsChar(o.activeTouch,"page"),K;!T.prev||b(T,T.prev)?K=new gt(H,H):!T.prev.prev||b(T,T.prev.prev)?K=r.findWordAt(H):K=new gt(le(H.line,0),Xe(r.doc,le(H.line+1,0))),r.setSelection(K.anchor,K.head),r.focus(),un(_)}d()}),Be(o.scroller,"touchcancel",d),Be(o.scroller,"scroll",function(){o.scroller.clientHeight&&(wl(r,o.scroller.scrollTop),Co(r,o.scroller.scrollLeft,!0),Pt(r,"scroll",r))}),Be(o.scroller,"mousewheel",function(_){return em(r,_)}),Be(o.scroller,"DOMMouseScroll",function(_){return em(r,_)}),Be(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(_){Ot(r,_)||$i(_)},over:function(_){Ot(r,_)||(j_(r,_),$i(_))},start:function(_){return W_(r,_)},drop:Yt(r,B_),leave:function(_){Ot(r,_)||Am(r)}};var x=o.input.getField();Be(x,"keyup",function(_){return Fm.call(r,_)}),Be(x,"keydown",Yt(r,Dm)),Be(x,"keypress",Yt(r,Hm)),Be(x,"focus",function(_){return Wf(r,_)}),Be(x,"blur",function(_){return us(r,_)})}var ad=[];Ct.defineInitHook=function(r){return ad.push(r)};function Dl(r,o,c,a){var d=r.doc,m;c==null&&(c="add"),c=="smart"&&(d.mode.indent?m=dl(r,o).state:c="prev");var b=r.options.tabSize,x=Oe(d,o),_=J(x.text,null,b);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!a&&!/\S/.test(x.text))H=0,c="not";else if(c=="smart"&&(H=d.mode.indent(m,x.text.slice(T.length),x.text),H==G||H>150)){if(!a)return;c="prev"}c=="prev"?o>d.first?H=J(Oe(d,o-1).text,null,b):H=0:c=="add"?H=_+r.options.indentUnit:c=="subtract"?H=_-r.options.indentUnit:typeof c=="number"&&(H=_+c),H=Math.max(0,H);var K="",ne=0;if(r.options.indentWithTabs)for(var Z=Math.floor(H/b);Z;--Z)ne+=b,K+=" ";if(ne<H&&(K+=Ee(H-ne)),K!=T)return ms(d,K,le(o,0),le(o,T.length),"+input"),x.stateAfter=null,!0;for(var ce=0;ce<d.sel.ranges.length;ce++){var me=d.sel.ranges[ce];if(me.head.line==o&&me.head.ch<T.length){var Se=le(o,T.length);td(d,ce,new gt(Se,Se));break}}}var kr=null;function Ac(r){kr=r}function cd(r,o,c,a,d){var m=r.doc;r.display.shift=!1,a||(a=m.sel);var b=+new Date-200,x=d=="paste"||r.state.pasteIncoming>b,_=lr(o),T=null;if(x&&a.ranges.length>1)if(kr&&kr.text.join(`
34
+ left: `+o.left+"px; width: "+Math.max(2,o.right-o.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(d),r.display.lineSpace.removeChild(b)}}}function c_(r,o,c,a){a==null&&(a=0);var d;!r.options.lineWrapping&&o==c&&(c=o.sticky=="before"?le(o.line,o.ch+1,"before"):o,o=o.ch?le(o.line,o.sticky=="before"?o.ch-1:o.ch,"after"):o);for(var m=0;m<5;m++){var b=!1,x=Sr(r,o),_=!c||c==o?x:Sr(r,c);d={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-a,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+a};var T=jf(r,d),H=r.doc.scrollTop,K=r.doc.scrollLeft;if(T.scrollTop!=null&&(xl(r,T.scrollTop),Math.abs(r.doc.scrollTop-H)>1&&(b=!0)),T.scrollLeft!=null&&(Ao(r,T.scrollLeft),Math.abs(r.doc.scrollLeft-K)>1&&(b=!0)),!b)break}return d}function u_(r,o){var c=jf(r,o);c.scrollTop!=null&&xl(r,c.scrollTop),c.scrollLeft!=null&&Ao(r,c.scrollLeft)}function jf(r,o){var c=r.display,a=cs(r.display);o.top<0&&(o.top=0);var d=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:c.scroller.scrollTop,m=$f(r),b={};o.bottom-o.top>m&&(o.bottom=o.top+m);var x=r.doc.height+Lf(c),_=o.top<a,T=o.bottom>x-a;if(o.top<d)b.scrollTop=_?0:o.top;else if(o.bottom>d+m){var H=Math.min(o.top,(T?x:o.bottom)-m);H!=d&&(b.scrollTop=H)}var K=r.options.fixedGutter?0:c.gutters.offsetWidth,ne=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:c.scroller.scrollLeft-K,Z=ko(r)-c.gutters.offsetWidth,ce=o.right-o.left>Z;return ce&&(o.right=o.left+Z),o.left<10?b.scrollLeft=0:o.left<ne?b.scrollLeft=Math.max(0,o.left+K-(ce?0:10)):o.right>Z+ne-3&&(b.scrollLeft=o.right+(ce?0:10)-Z),b}function qf(r,o){o!=null&&(gc(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+o)}function ds(r){gc(r);var o=r.getCursor();r.curOp.scrollToPos={from:o,to:o,margin:r.options.cursorScrollMargin}}function wl(r,o,c){(o!=null||c!=null)&&gc(r),o!=null&&(r.curOp.scrollLeft=o),c!=null&&(r.curOp.scrollTop=c)}function f_(r,o){gc(r),r.curOp.scrollToPos=o}function gc(r){var o=r.curOp.scrollToPos;if(o){r.curOp.scrollToPos=null;var c=Rg(r,o.from),a=Rg(r,o.to);qg(r,c,a,o.margin)}}function qg(r,o,c,a){var d=jf(r,{left:Math.min(o.left,c.left),top:Math.min(o.top,c.top)-a,right:Math.max(o.right,c.right),bottom:Math.max(o.bottom,c.bottom)+a});wl(r,d.scrollLeft,d.scrollTop)}function xl(r,o){Math.abs(r.doc.scrollTop-o)<2||(s||Vf(r,{top:o}),Ug(r,o,!0),s&&Vf(r),kl(r,100))}function Ug(r,o,c){o=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,o)),!(r.display.scroller.scrollTop==o&&!c)&&(r.doc.scrollTop=o,r.display.scrollbars.setScrollTop(o),r.display.scroller.scrollTop!=o&&(r.display.scroller.scrollTop=o))}function Ao(r,o,c,a){o=Math.max(0,Math.min(o,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((c?o==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-o)<2)&&!a)&&(r.doc.scrollLeft=o,Jg(r),r.display.scroller.scrollLeft!=o&&(r.display.scroller.scrollLeft=o),r.display.scrollbars.setScrollLeft(o))}function Sl(r){var o=r.display,c=o.gutters.offsetWidth,a=Math.round(r.doc.height+Lf(r.display));return{clientHeight:o.scroller.clientHeight,viewHeight:o.wrapper.clientHeight,scrollWidth:o.scroller.scrollWidth,clientWidth:o.scroller.clientWidth,viewWidth:o.wrapper.clientWidth,barLeft:r.options.fixedGutter?c:0,docHeight:a,scrollHeight:a+jr(r)+o.barHeight,nativeBarWidth:o.nativeBarWidth,gutterWidth:c}}var Lo=function(r,o,c){this.cm=c;var a=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,r(a),r(d),Be(a,"scroll",function(){a.clientHeight&&o(a.scrollTop,"vertical")}),Be(d,"scroll",function(){d.clientWidth&&o(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Lo.prototype.update=function(r){var o=r.scrollWidth>r.clientWidth+1,c=r.scrollHeight>r.clientHeight+1,a=r.nativeBarWidth;if(c){this.vert.style.display="block",this.vert.style.bottom=o?a+"px":"0";var d=r.viewHeight-(o?a:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+d)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(o){this.horiz.style.display="block",this.horiz.style.right=c?a+"px":"0",this.horiz.style.left=r.barLeft+"px";var m=r.viewWidth-r.barLeft-(c?a:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:c?a:0,bottom:o?a:0}},Lo.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Lo.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Lo.prototype.zeroWidthHack=function(){var r=z&&!C?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ae,this.disableVert=new ae},Lo.prototype.enableZeroWidthBar=function(r,o,c){r.style.visibility="";function a(){var d=r.getBoundingClientRect(),m=c=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);m!=r?r.style.visibility="hidden":o.set(1e3,a)}o.set(1e3,a)},Lo.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var _l=function(){};_l.prototype.update=function(){return{bottom:0,right:0}},_l.prototype.setScrollLeft=function(){},_l.prototype.setScrollTop=function(){},_l.prototype.clear=function(){};function hs(r,o){o||(o=Sl(r));var c=r.display.barWidth,a=r.display.barHeight;Vg(r,o);for(var d=0;d<4&&c!=r.display.barWidth||a!=r.display.barHeight;d++)c!=r.display.barWidth&&r.options.lineWrapping&&hc(r),Vg(r,Sl(r)),c=r.display.barWidth,a=r.display.barHeight}function Vg(r,o){var c=r.display,a=c.scrollbars.update(o);c.sizer.style.paddingRight=(c.barWidth=a.right)+"px",c.sizer.style.paddingBottom=(c.barHeight=a.bottom)+"px",c.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(c.scrollbarFiller.style.display="block",c.scrollbarFiller.style.height=a.bottom+"px",c.scrollbarFiller.style.width=a.right+"px"):c.scrollbarFiller.style.display="",a.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(c.gutterFiller.style.display="block",c.gutterFiller.style.height=a.bottom+"px",c.gutterFiller.style.width=o.gutterWidth+"px"):c.gutterFiller.style.display=""}var Gg={native:Lo,null:_l};function Xg(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&A(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new Gg[r.options.scrollbarStyle](function(o){r.display.wrapper.insertBefore(o,r.display.scrollbarFiller),Be(o,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),o.setAttribute("cm-not-content","true")},function(o,c){c=="horizontal"?Ao(r,o):xl(r,o)},r),r.display.scrollbars.addClass&&we(r.display.wrapper,r.display.scrollbars.addClass)}var d_=0;function $o(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.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:++d_,markArrays:null},jS(r.curOp)}function Mo(r){var o=r.curOp;o&&US(o,function(c){for(var a=0;a<c.ops.length;a++)c.ops[a].cm.curOp=null;h_(c)})}function h_(r){for(var o=r.ops,c=0;c<o.length;c++)p_(o[c]);for(var a=0;a<o.length;a++)g_(o[a]);for(var d=0;d<o.length;d++)m_(o[d]);for(var m=0;m<o.length;m++)v_(o[m]);for(var b=0;b<o.length;b++)y_(o[b])}function p_(r){var o=r.cm,c=o.display;w_(o),r.updateMaxLine&&Ef(o),r.mustUpdate=r.viewChanged||r.forceUpdate||r.scrollTop!=null||r.scrollToPos&&(r.scrollToPos.from.line<c.viewFrom||r.scrollToPos.to.line>=c.viewTo)||c.maxLineChanged&&o.options.lineWrapping,r.update=r.mustUpdate&&new mc(o,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function g_(r){r.updatedDisplay=r.mustUpdate&&Uf(r.cm,r.update)}function m_(r){var o=r.cm,c=o.display;r.updatedDisplay&&hc(o),r.barMeasure=Sl(o),c.maxLineChanged&&!o.options.lineWrapping&&(r.adjustWidthTo=Ag(o,c.maxLine,c.maxLine.text.length).left+3,o.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(c.scroller.clientWidth,c.sizer.offsetLeft+r.adjustWidthTo+jr(o)+o.display.barWidth),r.maxScrollLeft=Math.max(0,c.sizer.offsetLeft+r.adjustWidthTo-ko(o))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=c.input.prepareSelection())}function v_(r){var o=r.cm;r.adjustWidthTo!=null&&(o.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<o.doc.scrollLeft&&Ao(o,Math.min(o.display.scroller.scrollLeft,r.maxScrollLeft),!0),o.display.maxLineChanged=!1);var c=r.focus&&r.focus==ue(Ke(o));r.preparedSelection&&o.display.input.showSelection(r.preparedSelection,c),(r.updatedDisplay||r.startHeight!=o.doc.height)&&hs(o,r.barMeasure),r.updatedDisplay&&Xf(o,r.barMeasure),r.selectionChanged&&Hf(o),o.state.focused&&r.updateInput&&o.display.input.reset(r.typing),c&&Wg(r.cm)}function y_(r){var o=r.cm,c=o.display,a=o.doc;if(r.updatedDisplay&&Kg(o,r.update),c.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(c.wheelStartX=c.wheelStartY=null),r.scrollTop!=null&&Ug(o,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&Ao(o,r.scrollLeft,!0,!0),r.scrollToPos){var d=c_(o,Xe(a,r.scrollToPos.from),Xe(a,r.scrollToPos.to),r.scrollToPos.margin);a_(o,d)}var m=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(m)for(var x=0;x<m.length;++x)m[x].lines.length||Pt(m[x],"hide");if(b)for(var _=0;_<b.length;++_)b[_].lines.length&&Pt(b[_],"unhide");c.wrapper.offsetHeight&&(a.scrollTop=o.display.scroller.scrollTop),r.changeObjs&&Pt(o,"changes",o,r.changeObjs),r.update&&r.update.finish()}function Bn(r,o){if(r.curOp)return o();$o(r);try{return o()}finally{Mo(r)}}function Yt(r,o){return function(){if(r.curOp)return o.apply(r,arguments);$o(r);try{return o.apply(r,arguments)}finally{Mo(r)}}}function pn(r){return function(){if(this.curOp)return r.apply(this,arguments);$o(this);try{return r.apply(this,arguments)}finally{Mo(this)}}}function Zt(r){return function(){var o=this.cm;if(!o||o.curOp)return r.apply(this,arguments);$o(o);try{return r.apply(this,arguments)}finally{Mo(o)}}}function kl(r,o){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(o,V(b_,r))}function b_(r){var o=r.doc;if(!(o.highlightFrontier>=r.display.viewTo)){var c=+new Date+r.options.workTime,a=hl(r,o.highlightFrontier),d=[];o.iter(a.line,Math.min(o.first+o.size,r.display.viewTo+500),function(m){if(a.line>=r.display.viewFrom){var b=m.styles,x=m.text.length>r.options.maxHighlightLength?Br(o.mode,a.state):null,_=ng(r,m,a,!0);x&&(a.state=x),m.styles=_.styles;var T=m.styleClasses,H=_.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var K=!b||b.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),ne=0;!K&&ne<b.length;++ne)K=b[ne]!=m.styles[ne];K&&d.push(a.line),m.stateAfter=a.save(),a.nextLine()}else m.text.length<=r.options.maxHighlightLength&&xf(r,m.text,a),m.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>c)return kl(r,r.options.workDelay),!0}),o.highlightFrontier=a.line,o.modeFrontier=Math.max(o.modeFrontier,a.line),d.length&&Bn(r,function(){for(var m=0;m<d.length;m++)Ri(r,d[m],"text")})}}var mc=function(r,o,c){var a=r.display;this.viewport=o,this.visible=pc(a,r.doc,o),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ko(r),this.force=c,this.dims=Rf(r),this.events=[]};mc.prototype.signal=function(r,o){Hn(r,o)&&this.events.push(arguments)},mc.prototype.finish=function(){for(var r=0;r<this.events.length;r++)Pt.apply(null,this.events[r])};function w_(r){var o=r.display;!o.scrollbarsClipped&&o.scroller.offsetWidth&&(o.nativeBarWidth=o.scroller.offsetWidth-o.scroller.clientWidth,o.heightForcer.style.height=jr(r)+"px",o.sizer.style.marginBottom=-o.nativeBarWidth+"px",o.sizer.style.borderRightWidth=jr(r)+"px",o.scrollbarsClipped=!0)}function x_(r){if(r.hasFocus())return null;var o=ue(Ke(r));if(!o||!ie(r.display.lineDiv,o))return null;var c={activeElt:o};if(window.getSelection){var a=re(r).getSelection();a.anchorNode&&a.extend&&ie(r.display.lineDiv,a.anchorNode)&&(c.anchorNode=a.anchorNode,c.anchorOffset=a.anchorOffset,c.focusNode=a.focusNode,c.focusOffset=a.focusOffset)}return c}function S_(r){if(!(!r||!r.activeElt||r.activeElt==ue(Je(r.activeElt)))&&(r.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(r.activeElt.nodeName)&&r.anchorNode&&ie(document.body,r.anchorNode)&&ie(document.body,r.focusNode))){var o=r.activeElt.ownerDocument,c=o.defaultView.getSelection(),a=o.createRange();a.setEnd(r.anchorNode,r.anchorOffset),a.collapse(!1),c.removeAllRanges(),c.addRange(a),c.extend(r.focusNode,r.focusOffset)}}function Uf(r,o){var c=r.display,a=r.doc;if(o.editorIsHidden)return zi(r),!1;if(!o.force&&o.visible.from>=c.viewFrom&&o.visible.to<=c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo)&&c.renderedView==c.view&&Hg(r)==0)return!1;Yg(r)&&(zi(r),o.dims=Rf(r));var d=a.first+a.size,m=Math.max(o.visible.from-r.options.viewportMargin,a.first),b=Math.min(d,o.visible.to+r.options.viewportMargin);c.viewFrom<m&&m-c.viewFrom<20&&(m=Math.max(a.first,c.viewFrom)),c.viewTo>b&&c.viewTo-b<20&&(b=Math.min(d,c.viewTo)),li&&(m=Tf(r.doc,m),b=mg(r.doc,b));var x=m!=c.viewFrom||b!=c.viewTo||c.lastWrapHeight!=o.wrapperHeight||c.lastWrapWidth!=o.wrapperWidth;s_(r,m,b),c.viewOffset=ai(Oe(r.doc,c.viewFrom)),r.display.mover.style.top=c.viewOffset+"px";var _=Hg(r);if(!x&&_==0&&!o.force&&c.renderedView==c.view&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo))return!1;var T=x_(r);return _>4&&(c.lineDiv.style.display="none"),__(r,c.updateLineNumbers,o.dims),_>4&&(c.lineDiv.style.display=""),c.renderedView=c.view,S_(T),I(c.cursorDiv),I(c.selectionDiv),c.gutters.style.height=c.sizer.style.minHeight=0,x&&(c.lastWrapHeight=o.wrapperHeight,c.lastWrapWidth=o.wrapperWidth,kl(r,400)),c.updateLineNumbers=null,!0}function Kg(r,o){for(var c=o.viewport,a=!0;;a=!1){if(!a||!r.options.lineWrapping||o.oldDisplayWidth==ko(r)){if(c&&c.top!=null&&(c={top:Math.min(r.doc.height+Lf(r.display)-$f(r),c.top)}),o.visible=pc(r.display,r.doc,c),o.visible.from>=r.display.viewFrom&&o.visible.to<=r.display.viewTo)break}else a&&(o.visible=pc(r.display,r.doc,c));if(!Uf(r,o))break;hc(r);var d=Sl(r);bl(r),hs(r,d),Xf(r,d),o.force=!1}o.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(o.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function Vf(r,o){var c=new mc(r,o);if(Uf(r,c)){hc(r),Kg(r,c);var a=Sl(r);bl(r),hs(r,a),Xf(r,a),c.finish()}}function __(r,o,c){var a=r.display,d=r.options.lineNumbers,m=a.lineDiv,b=m.firstChild;function x(ce){var me=ce.nextSibling;return g&&z&&r.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),me}for(var _=a.view,T=a.viewFrom,H=0;H<_.length;H++){var K=_[H];if(!K.hidden)if(!K.node||K.node.parentNode!=m){var ne=JS(r,K,T,c);m.insertBefore(ne,b)}else{for(;b!=K.node;)b=x(b);var Z=d&&o!=null&&o<=T&&K.lineNumber;K.changes&&(ge(K.changes,"gutter")>-1&&(Z=!1),xg(r,K,T,c)),Z&&(I(K.lineNumber),K.lineNumber.appendChild(document.createTextNode(xe(r.options,T)))),b=K.node.nextSibling}T+=K.size}for(;b;)b=x(b)}function Gf(r){var o=r.gutters.offsetWidth;r.sizer.style.marginLeft=o+"px",Jt(r,"gutterChanged",r)}function Xf(r,o){r.display.sizer.style.minHeight=o.docHeight+"px",r.display.heightForcer.style.top=o.docHeight+"px",r.display.gutters.style.height=o.docHeight+r.display.barHeight+jr(r)+"px"}function Jg(r){var o=r.display,c=o.view;if(!(!o.alignWidgets&&(!o.gutters.firstChild||!r.options.fixedGutter))){for(var a=zf(o)-o.scroller.scrollLeft+r.doc.scrollLeft,d=o.gutters.offsetWidth,m=a+"px",b=0;b<c.length;b++)if(!c[b].hidden){r.options.fixedGutter&&(c[b].gutter&&(c[b].gutter.style.left=m),c[b].gutterBackground&&(c[b].gutterBackground.style.left=m));var x=c[b].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=m}r.options.fixedGutter&&(o.gutters.style.left=a+d+"px")}}function Yg(r){if(!r.options.lineNumbers)return!1;var o=r.doc,c=xe(r.options,o.first+o.size-1),a=r.display;if(c.length!=a.lineNumChars){var d=a.measure.appendChild(S("div",[S("div",c)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=d.firstChild.offsetWidth,b=d.offsetWidth-m;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(m,a.lineGutter.offsetWidth-b)+1,a.lineNumWidth=a.lineNumInnerWidth+b,a.lineNumChars=a.lineNumInnerWidth?c.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Gf(r.display),!0}return!1}function Kf(r,o){for(var c=[],a=!1,d=0;d<r.length;d++){var m=r[d],b=null;if(typeof m!="string"&&(b=m.style,m=m.className),m=="CodeMirror-linenumbers")if(o)a=!0;else continue;c.push({className:m,style:b})}return o&&!a&&c.push({className:"CodeMirror-linenumbers",style:null}),c}function Zg(r){var o=r.gutters,c=r.gutterSpecs;I(o),r.lineGutter=null;for(var a=0;a<c.length;++a){var d=c[a],m=d.className,b=d.style,x=o.appendChild(S("div",null,"CodeMirror-gutter "+m));b&&(x.style.cssText=b),m=="CodeMirror-linenumbers"&&(r.lineGutter=x,x.style.width=(r.lineNumWidth||1)+"px")}o.style.display=c.length?"":"none",Gf(r)}function Tl(r){Zg(r.display),kn(r),Jg(r)}function k_(r,o,c,a){var d=this;this.input=c,d.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=R("div",null,"CodeMirror-code"),d.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=S("div",null,"CodeMirror-cursors"),d.measure=S("div",null,"CodeMirror-measure"),d.lineMeasure=S("div",null,"CodeMirror-measure"),d.lineSpace=R("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var m=R("div",[d.lineSpace],"CodeMirror-lines");d.mover=S("div",[m],null,"position: relative"),d.sizer=S("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=S("div",null,null,"position: absolute; height: "+F+"px; width: 1px;"),d.gutters=S("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=S("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=S("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),y&&w>=105&&(d.wrapper.style.clipPath="inset(0px)"),d.wrapper.setAttribute("translate","no"),h&&p<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!g&&!(s&&k)&&(d.scroller.draggable=!0),r&&(r.appendChild?r.appendChild(d.wrapper):r(d.wrapper)),d.viewFrom=d.viewTo=o.first,d.reportedViewFrom=d.reportedViewTo=o.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Kf(a.gutters,a.lineNumbers),Zg(d),c.init(d)}var vc=0,ui=null;h?ui=-.53:s?ui=15:y?ui=-.7:$&&(ui=-1/3);function Qg(r){var o=r.wheelDeltaX,c=r.wheelDeltaY;return o==null&&r.detail&&r.axis==r.HORIZONTAL_AXIS&&(o=r.detail),c==null&&r.detail&&r.axis==r.VERTICAL_AXIS?c=r.detail:c==null&&(c=r.wheelDelta),{x:o,y:c}}function T_(r){var o=Qg(r);return o.x*=ui,o.y*=ui,o}function em(r,o){y&&w==102&&(r.display.chromeScrollHack==null?r.display.sizer.style.pointerEvents="none":clearTimeout(r.display.chromeScrollHack),r.display.chromeScrollHack=setTimeout(function(){r.display.chromeScrollHack=null,r.display.sizer.style.pointerEvents=""},100));var c=Qg(o),a=c.x,d=c.y,m=ui;o.deltaMode===0&&(a=o.deltaX,d=o.deltaY,m=1);var b=r.display,x=b.scroller,_=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(a&&_||d&&T){if(d&&z&&g){e:for(var H=o.target,K=b.view;H!=x;H=H.parentNode)for(var ne=0;ne<K.length;ne++)if(K[ne].node==H){r.display.currentWheelTarget=H;break e}}if(a&&!s&&!L&&m!=null){d&&T&&xl(r,Math.max(0,x.scrollTop+d*m)),Ao(r,Math.max(0,x.scrollLeft+a*m)),(!d||d&&T)&&an(o),b.wheelStartX=null;return}if(d&&m!=null){var Z=d*m,ce=r.doc.scrollTop,me=ce+b.wrapper.clientHeight;Z<0?ce=Math.max(0,ce+Z-50):me=Math.min(r.doc.height,me+Z+50),Vf(r,{top:ce,bottom:me})}vc<20&&o.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=x.scrollLeft,b.wheelStartY=x.scrollTop,b.wheelDX=a,b.wheelDY=d,setTimeout(function(){if(b.wheelStartX!=null){var Se=x.scrollLeft-b.wheelStartX,ke=x.scrollTop-b.wheelStartY,$e=ke&&b.wheelDY&&ke/b.wheelDY||Se&&b.wheelDX&&Se/b.wheelDX;b.wheelStartX=b.wheelStartY=null,$e&&(ui=(ui*vc+$e)/(vc+1),++vc)}},200)):(b.wheelDX+=a,b.wheelDY+=d))}}var Zn=function(r,o){this.ranges=r,this.primIndex=o};Zn.prototype.primary=function(){return this.ranges[this.primIndex]},Zn.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var o=0;o<this.ranges.length;o++){var c=this.ranges[o],a=r.ranges[o];if(!pt(c.anchor,a.anchor)||!pt(c.head,a.head))return!1}return!0},Zn.prototype.deepCopy=function(){for(var r=[],o=0;o<this.ranges.length;o++)r[o]=new gt(Kt(this.ranges[o].anchor),Kt(this.ranges[o].head));return new Zn(r,this.primIndex)},Zn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},Zn.prototype.contains=function(r,o){o||(o=r);for(var c=0;c<this.ranges.length;c++){var a=this.ranges[c];if(Le(o,a.from())>=0&&Le(r,a.to())<=0)return c}return-1};var gt=function(r,o){this.anchor=r,this.head=o};gt.prototype.from=function(){return os(this.anchor,this.head)},gt.prototype.to=function(){return _n(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(r,o,c){var a=r&&r.options.selectionsMayTouch,d=o[c];o.sort(function(ne,Z){return Le(ne.from(),Z.from())}),c=ge(o,d);for(var m=1;m<o.length;m++){var b=o[m],x=o[m-1],_=Le(x.to(),b.from());if(a&&!b.empty()?_>0:_>=0){var T=os(x.from(),b.from()),H=_n(x.to(),b.to()),K=x.empty()?b.from()==b.head:x.from()==x.head;m<=c&&--c,o.splice(--m,2,new gt(K?H:T,K?T:H))}}return new Zn(o,c)}function Di(r,o){return new Zn([new gt(r,o||r)],0)}function Fi(r){return r.text?le(r.from.line+r.text.length-1,ve(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function tm(r,o){if(Le(r,o.from)<0)return r;if(Le(r,o.to)<=0)return Fi(o);var c=r.line+o.text.length-(o.to.line-o.from.line)-1,a=r.ch;return r.line==o.to.line&&(a+=Fi(o).ch-o.to.ch),le(c,a)}function Jf(r,o){for(var c=[],a=0;a<r.sel.ranges.length;a++){var d=r.sel.ranges[a];c.push(new gt(tm(d.anchor,o),tm(d.head,o)))}return _r(r.cm,c,r.sel.primIndex)}function nm(r,o,c){return r.line==o.line?le(c.line,r.ch-o.ch+c.ch):le(c.line+(r.line-o.line),r.ch)}function C_(r,o,c){for(var a=[],d=le(r.first,0),m=d,b=0;b<o.length;b++){var x=o[b],_=nm(x.from,d,m),T=nm(Fi(x),d,m);if(d=x.to,m=T,c=="around"){var H=r.sel.ranges[b],K=Le(H.head,H.anchor)<0;a[b]=new gt(K?T:_,K?_:T)}else a[b]=new gt(_,_)}return new Zn(a,r.sel.primIndex)}function Yf(r){r.doc.mode=ns(r.options,r.doc.modeOption),Cl(r)}function Cl(r){r.doc.iter(function(o){o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,kl(r,100),r.state.modeGen++,r.curOp&&kn(r)}function rm(r,o){return o.from.ch==0&&o.to.ch==0&&ve(o.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function Zf(r,o,c,a){function d($e){return c?c[$e]:null}function m($e,Te,Ne){PS($e,Te,Ne,a),Jt($e,"change",$e,o)}function b($e,Te){for(var Ne=[],We=$e;We<Te;++We)Ne.push(new ss(T[We],d(We),a));return Ne}var x=o.from,_=o.to,T=o.text,H=Oe(r,x.line),K=Oe(r,_.line),ne=ve(T),Z=d(T.length-1),ce=_.line-x.line;if(o.full)r.insert(0,b(0,T.length)),r.remove(T.length,r.size-T.length);else if(rm(r,o)){var me=b(0,T.length-1);m(K,K.text,Z),ce&&r.remove(x.line,ce),me.length&&r.insert(x.line,me)}else if(H==K)if(T.length==1)m(H,H.text.slice(0,x.ch)+ne+H.text.slice(_.ch),Z);else{var Se=b(1,T.length-1);Se.push(new ss(ne+H.text.slice(_.ch),Z,a)),m(H,H.text.slice(0,x.ch)+T[0],d(0)),r.insert(x.line+1,Se)}else if(T.length==1)m(H,H.text.slice(0,x.ch)+T[0]+K.text.slice(_.ch),d(0)),r.remove(x.line+1,ce);else{m(H,H.text.slice(0,x.ch)+T[0],d(0)),m(K,ne+K.text.slice(_.ch),Z);var ke=b(1,T.length-1);ce>1&&r.remove(x.line+1,ce-1),r.insert(x.line+1,ke)}Jt(r,"change",r,o)}function Hi(r,o,c){function a(d,m,b){if(d.linked)for(var x=0;x<d.linked.length;++x){var _=d.linked[x];if(_.doc!=m){var T=b&&_.sharedHist;c&&!T||(o(_.doc,T),a(_.doc,d,T))}}}a(r,null,!0)}function im(r,o){if(o.cm)throw new Error("This document is already in use.");r.doc=o,o.cm=r,Df(r),Yf(r),om(r),r.options.direction=o.direction,r.options.lineWrapping||Ef(r),r.options.mode=o.modeOption,kn(r)}function om(r){(r.doc.direction=="rtl"?we:A)(r.display.lineDiv,"CodeMirror-rtl")}function E_(r){Bn(r,function(){om(r),kn(r)})}function yc(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function Qf(r,o){var c={from:Kt(o.from),to:Fi(o),text:si(r,o.from,o.to)};return am(r,c,o.from.line,o.to.line+1),Hi(r,function(a){return am(a,c,o.from.line,o.to.line+1)},!0),c}function sm(r){for(;r.length;){var o=ve(r);if(o.ranges)r.pop();else break}}function A_(r,o){if(o)return sm(r.done),ve(r.done);if(r.done.length&&!ve(r.done).ranges)return ve(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),ve(r.done)}function lm(r,o,c,a){var d=r.history;d.undone.length=0;var m=+new Date,b,x;if((d.lastOp==a||d.lastOrigin==o.origin&&o.origin&&(o.origin.charAt(0)=="+"&&d.lastModTime>m-(r.cm?r.cm.options.historyEventDelay:500)||o.origin.charAt(0)=="*"))&&(b=A_(d,d.lastOp==a)))x=ve(b.changes),Le(o.from,o.to)==0&&Le(o.from,x.to)==0?x.to=Fi(o):b.changes.push(Qf(r,o));else{var _=ve(d.done);for((!_||!_.ranges)&&bc(r.sel,d.done),b={changes:[Qf(r,o)],generation:d.generation},d.done.push(b);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(c),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=m,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=o.origin,x||Pt(r,"historyAdded")}function L_(r,o,c,a){var d=o.charAt(0);return d=="*"||d=="+"&&c.ranges.length==a.ranges.length&&c.somethingSelected()==a.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function $_(r,o,c,a){var d=r.history,m=a&&a.origin;c==d.lastSelOp||m&&d.lastSelOrigin==m&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==m||L_(r,m,ve(d.done),o))?d.done[d.done.length-1]=o:bc(o,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=m,d.lastSelOp=c,a&&a.clearRedo!==!1&&sm(d.undone)}function bc(r,o){var c=ve(o);c&&c.ranges&&c.equals(r)||o.push(r)}function am(r,o,c,a){var d=o["spans_"+r.id],m=0;r.iter(Math.max(r.first,c),Math.min(r.first+r.size,a),function(b){b.markedSpans&&((d||(d=o["spans_"+r.id]={}))[m]=b.markedSpans),++m})}function M_(r){if(!r)return null;for(var o,c=0;c<r.length;++c)r[c].marker.explicitlyCleared?o||(o=r.slice(0,c)):o&&o.push(r[c]);return o?o.length?o:null:r}function N_(r,o){var c=o["spans_"+r.id];if(!c)return null;for(var a=[],d=0;d<o.text.length;++d)a.push(M_(c[d]));return a}function cm(r,o){var c=N_(r,o),a=_f(r,o);if(!c)return a;if(!a)return c;for(var d=0;d<c.length;++d){var m=c[d],b=a[d];if(m&&b)e:for(var x=0;x<b.length;++x){for(var _=b[x],T=0;T<m.length;++T)if(m[T].marker==_.marker)continue e;m.push(_)}else b&&(c[d]=b)}return c}function ps(r,o,c){for(var a=[],d=0;d<r.length;++d){var m=r[d];if(m.ranges){a.push(c?Zn.prototype.deepCopy.call(m):m);continue}var b=m.changes,x=[];a.push({changes:x});for(var _=0;_<b.length;++_){var T=b[_],H=void 0;if(x.push({from:T.from,to:T.to,text:T.text}),o)for(var K in T)(H=K.match(/^spans_(\d+)$/))&&ge(o,Number(H[1]))>-1&&(ve(x)[K]=T[K],delete T[K])}}return a}function ed(r,o,c,a){if(a){var d=r.anchor;if(c){var m=Le(o,d)<0;m!=Le(c,d)<0?(d=o,o=c):m!=Le(o,c)<0&&(o=c)}return new gt(d,o)}else return new gt(c||o,o)}function wc(r,o,c,a,d){d==null&&(d=r.cm&&(r.cm.display.shift||r.extend)),cn(r,new Zn([ed(r.sel.primary(),o,c,d)],0),a)}function um(r,o,c){for(var a=[],d=r.cm&&(r.cm.display.shift||r.extend),m=0;m<r.sel.ranges.length;m++)a[m]=ed(r.sel.ranges[m],o[m],null,d);var b=_r(r.cm,a,r.sel.primIndex);cn(r,b,c)}function td(r,o,c,a){var d=r.sel.ranges.slice(0);d[o]=c,cn(r,_r(r.cm,d,r.sel.primIndex),a)}function fm(r,o,c,a){cn(r,Di(o,c),a)}function I_(r,o,c){var a={ranges:o.ranges,update:function(d){this.ranges=[];for(var m=0;m<d.length;m++)this.ranges[m]=new gt(Xe(r,d[m].anchor),Xe(r,d[m].head))},origin:c&&c.origin};return Pt(r,"beforeSelectionChange",r,a),r.cm&&Pt(r.cm,"beforeSelectionChange",r.cm,a),a.ranges!=o.ranges?_r(r.cm,a.ranges,a.ranges.length-1):o}function dm(r,o,c){var a=r.history.done,d=ve(a);d&&d.ranges?(a[a.length-1]=o,xc(r,o,c)):cn(r,o,c)}function cn(r,o,c){xc(r,o,c),$_(r,r.sel,r.cm?r.cm.curOp.id:NaN,c)}function xc(r,o,c){(Hn(r,"beforeSelectionChange")||r.cm&&Hn(r.cm,"beforeSelectionChange"))&&(o=I_(r,o,c));var a=c&&c.bias||(Le(o.primary().head,r.sel.primary().head)<0?-1:1);hm(r,gm(r,o,a,!0)),!(c&&c.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&ds(r.cm)}function hm(r,o){o.equals(r.sel)||(r.sel=o,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,sr(r.cm)),Jt(r,"cursorActivity",r))}function pm(r){hm(r,gm(r,r.sel,null,!1))}function gm(r,o,c,a){for(var d,m=0;m<o.ranges.length;m++){var b=o.ranges[m],x=o.ranges.length==r.sel.ranges.length&&r.sel.ranges[m],_=Sc(r,b.anchor,x&&x.anchor,c,a),T=b.head==b.anchor?_:Sc(r,b.head,x&&x.head,c,a);(d||_!=b.anchor||T!=b.head)&&(d||(d=o.ranges.slice(0,m)),d[m]=new gt(_,T))}return d?_r(r.cm,d,o.primIndex):o}function gs(r,o,c,a,d){var m=Oe(r,o.line);if(m.markedSpans)for(var b=0;b<m.markedSpans.length;++b){var x=m.markedSpans[b],_=x.marker,T="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,H="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(T?x.from<=o.ch:x.from<o.ch))&&(x.to==null||(H?x.to>=o.ch:x.to>o.ch))){if(d&&(Pt(_,"beforeCursorEnter"),_.explicitlyCleared))if(m.markedSpans){--b;continue}else break;if(!_.atomic)continue;if(c){var K=_.find(a<0?1:-1),ne=void 0;if((a<0?H:T)&&(K=mm(r,K,-a,K&&K.line==o.line?m:null)),K&&K.line==o.line&&(ne=Le(K,c))&&(a<0?ne<0:ne>0))return gs(r,K,o,a,d)}var Z=_.find(a<0?-1:1);return(a<0?T:H)&&(Z=mm(r,Z,a,Z.line==o.line?m:null)),Z?gs(r,Z,o,a,d):null}}return o}function Sc(r,o,c,a,d){var m=a||1,b=gs(r,o,c,m,d)||!d&&gs(r,o,c,m,!0)||gs(r,o,c,-m,d)||!d&&gs(r,o,c,-m,!0);return b||(r.cantEdit=!0,le(r.first,0))}function mm(r,o,c,a){return c<0&&o.ch==0?o.line>r.first?Xe(r,le(o.line-1)):null:c>0&&o.ch==(a||Oe(r,o.line)).text.length?o.line<r.first+r.size-1?le(o.line+1,0):null:new le(o.line,o.ch+c)}function vm(r){r.setSelection(le(r.firstLine(),0),le(r.lastLine()),Y)}function ym(r,o,c){var a={canceled:!1,from:o.from,to:o.to,text:o.text,origin:o.origin,cancel:function(){return a.canceled=!0}};return c&&(a.update=function(d,m,b,x){d&&(a.from=Xe(r,d)),m&&(a.to=Xe(r,m)),b&&(a.text=b),x!==void 0&&(a.origin=x)}),Pt(r,"beforeChange",r,a),r.cm&&Pt(r.cm,"beforeChange",r.cm,a),a.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function ms(r,o,c){if(r.cm){if(!r.cm.curOp)return Yt(r.cm,ms)(r,o,c);if(r.cm.state.suppressEdits)return}if(!((Hn(r,"beforeChange")||r.cm&&Hn(r.cm,"beforeChange"))&&(o=ym(r,o,!0),!o))){var a=cg&&!c&&$S(r,o.from,o.to);if(a)for(var d=a.length-1;d>=0;--d)bm(r,{from:a[d].from,to:a[d].to,text:d?[""]:o.text,origin:o.origin});else bm(r,o)}}function bm(r,o){if(!(o.text.length==1&&o.text[0]==""&&Le(o.from,o.to)==0)){var c=Jf(r,o);lm(r,o,c,r.cm?r.cm.curOp.id:NaN),El(r,o,c,_f(r,o));var a=[];Hi(r,function(d,m){!m&&ge(a,d.history)==-1&&(_m(d.history,o),a.push(d.history)),El(d,o,null,_f(d,o))})}}function _c(r,o,c){var a=r.cm&&r.cm.state.suppressEdits;if(!(a&&!c)){for(var d=r.history,m,b=r.sel,x=o=="undo"?d.done:d.undone,_=o=="undo"?d.undone:d.done,T=0;T<x.length&&(m=x[T],!(c?m.ranges&&!m.equals(r.sel):!m.ranges));T++);if(T!=x.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(m=x.pop(),m.ranges){if(bc(m,_),c&&!m.equals(r.sel)){cn(r,m,{clearRedo:!1});return}b=m}else if(a){x.push(m);return}else break;var H=[];bc(b,_),_.push({changes:H,generation:d.generation}),d.generation=m.generation||++d.maxGeneration;for(var K=Hn(r,"beforeChange")||r.cm&&Hn(r.cm,"beforeChange"),ne=function(me){var Se=m.changes[me];if(Se.origin=o,K&&!ym(r,Se,!1))return x.length=0,{};H.push(Qf(r,Se));var ke=me?Jf(r,Se):ve(x);El(r,Se,ke,cm(r,Se)),!me&&r.cm&&r.cm.scrollIntoView({from:Se.from,to:Fi(Se)});var $e=[];Hi(r,function(Te,Ne){!Ne&&ge($e,Te.history)==-1&&(_m(Te.history,Se),$e.push(Te.history)),El(Te,Se,null,cm(Te,Se))})},Z=m.changes.length-1;Z>=0;--Z){var ce=ne(Z);if(ce)return ce.v}}}}function wm(r,o){if(o!=0&&(r.first+=o,r.sel=new Zn(be(r.sel.ranges,function(d){return new gt(le(d.anchor.line+o,d.anchor.ch),le(d.head.line+o,d.head.ch))}),r.sel.primIndex),r.cm)){kn(r.cm,r.first,r.first-o,o);for(var c=r.cm.display,a=c.viewFrom;a<c.viewTo;a++)Ri(r.cm,a,"gutter")}}function El(r,o,c,a){if(r.cm&&!r.cm.curOp)return Yt(r.cm,El)(r,o,c,a);if(o.to.line<r.first){wm(r,o.text.length-1-(o.to.line-o.from.line));return}if(!(o.from.line>r.lastLine())){if(o.from.line<r.first){var d=o.text.length-1-(r.first-o.from.line);wm(r,d),o={from:le(r.first,0),to:le(o.to.line+d,o.to.ch),text:[ve(o.text)],origin:o.origin}}var m=r.lastLine();o.to.line>m&&(o={from:o.from,to:le(m,Oe(r,m).text.length),text:[o.text[0]],origin:o.origin}),o.removed=si(r,o.from,o.to),c||(c=Jf(r,o)),r.cm?P_(r.cm,o,a):Zf(r,o,a),xc(r,c,Y),r.cantEdit&&Sc(r,le(r.firstLine(),0))&&(r.cantEdit=!1)}}function P_(r,o,c){var a=r.doc,d=r.display,m=o.from,b=o.to,x=!1,_=m.line;r.options.lineWrapping||(_=M(xr(Oe(a,m.line))),a.iter(_,b.line+1,function(Z){if(Z==d.maxLine)return x=!0,!0})),a.sel.contains(o.from,o.to)>-1&&sr(r),Zf(a,o,c,Fg(r)),r.options.lineWrapping||(a.iter(_,m.line+o.text.length,function(Z){var ce=sc(Z);ce>d.maxLineLength&&(d.maxLine=Z,d.maxLineLength=ce,d.maxLineChanged=!0,x=!1)}),x&&(r.curOp.updateMaxLine=!0)),_S(a,m.line),kl(r,400);var T=o.text.length-(b.line-m.line)-1;o.full?kn(r):m.line==b.line&&o.text.length==1&&!rm(r.doc,o)?Ri(r,m.line,"text"):kn(r,m.line,b.line+1,T);var H=Hn(r,"changes"),K=Hn(r,"change");if(K||H){var ne={from:m,to:b,text:o.text,removed:o.removed,origin:o.origin};K&&Jt(r,"change",r,ne),H&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(ne)}r.display.selForContextMenu=null}function vs(r,o,c,a,d){var m;a||(a=c),Le(a,c)<0&&(m=[a,c],c=m[0],a=m[1]),typeof o=="string"&&(o=r.splitLines(o)),ms(r,{from:c,to:a,text:o,origin:d})}function xm(r,o,c,a){c<r.line?r.line+=a:o<r.line&&(r.line=o,r.ch=0)}function Sm(r,o,c,a){for(var d=0;d<r.length;++d){var m=r[d],b=!0;if(m.ranges){m.copied||(m=r[d]=m.deepCopy(),m.copied=!0);for(var x=0;x<m.ranges.length;x++)xm(m.ranges[x].anchor,o,c,a),xm(m.ranges[x].head,o,c,a);continue}for(var _=0;_<m.changes.length;++_){var T=m.changes[_];if(c<T.from.line)T.from=le(T.from.line+a,T.from.ch),T.to=le(T.to.line+a,T.to.ch);else if(o<=T.to.line){b=!1;break}}b||(r.splice(0,d+1),d=0)}}function _m(r,o){var c=o.from.line,a=o.to.line,d=o.text.length-(a-c)-1;Sm(r.done,c,a,d),Sm(r.undone,c,a,d)}function Al(r,o,c,a){var d=o,m=o;return typeof o=="number"?m=Oe(r,eg(r,o)):d=M(o),d==null?null:(a(m,d)&&r.cm&&Ri(r.cm,d,c),m)}function Ll(r){this.lines=r,this.parent=null;for(var o=0,c=0;c<r.length;++c)r[c].parent=this,o+=r[c].height;this.height=o}Ll.prototype={chunkSize:function(){return this.lines.length},removeInner:function(r,o){for(var c=r,a=r+o;c<a;++c){var d=this.lines[c];this.height-=d.height,OS(d),Jt(d,"delete")}this.lines.splice(r,o)},collapse:function(r){r.push.apply(r,this.lines)},insertInner:function(r,o,c){this.height+=c,this.lines=this.lines.slice(0,r).concat(o).concat(this.lines.slice(r));for(var a=0;a<o.length;++a)o[a].parent=this},iterN:function(r,o,c){for(var a=r+o;r<a;++r)if(c(this.lines[r]))return!0}};function $l(r){this.children=r;for(var o=0,c=0,a=0;a<r.length;++a){var d=r[a];o+=d.chunkSize(),c+=d.height,d.parent=this}this.size=o,this.height=c,this.parent=null}$l.prototype={chunkSize:function(){return this.size},removeInner:function(r,o){this.size-=o;for(var c=0;c<this.children.length;++c){var a=this.children[c],d=a.chunkSize();if(r<d){var m=Math.min(o,d-r),b=a.height;if(a.removeInner(r,m),this.height-=b-a.height,d==m&&(this.children.splice(c--,1),a.parent=null),(o-=m)==0)break;r=0}else r-=d}if(this.size-o<25&&(this.children.length>1||!(this.children[0]instanceof Ll))){var x=[];this.collapse(x),this.children=[new Ll(x)],this.children[0].parent=this}},collapse:function(r){for(var o=0;o<this.children.length;++o)this.children[o].collapse(r)},insertInner:function(r,o,c){this.size+=o.length,this.height+=c;for(var a=0;a<this.children.length;++a){var d=this.children[a],m=d.chunkSize();if(r<=m){if(d.insertInner(r,o,c),d.lines&&d.lines.length>50){for(var b=d.lines.length%25+25,x=b;x<d.lines.length;){var _=new Ll(d.lines.slice(x,x+=25));d.height-=_.height,this.children.splice(++a,0,_),_.parent=this}d.lines=d.lines.slice(0,b),this.maybeSpill()}break}r-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var o=r.children.splice(r.children.length-5,5),c=new $l(o);if(r.parent){r.size-=c.size,r.height-=c.height;var d=ge(r.parent.children,r);r.parent.children.splice(d+1,0,c)}else{var a=new $l(r.children);a.parent=r,r.children=[a,c],r=a}c.parent=r.parent}while(r.children.length>10);r.parent.maybeSpill()}},iterN:function(r,o,c){for(var a=0;a<this.children.length;++a){var d=this.children[a],m=d.chunkSize();if(r<m){var b=Math.min(o,m-r);if(d.iterN(r,b,c))return!0;if((o-=b)==0)break;r=0}else r-=m}}};var Ml=function(r,o,c){if(c)for(var a in c)c.hasOwnProperty(a)&&(this[a]=c[a]);this.doc=r,this.node=o};Ml.prototype.clear=function(){var r=this.doc.cm,o=this.line.widgets,c=this.line,a=M(c);if(!(a==null||!o)){for(var d=0;d<o.length;++d)o[d]==this&&o.splice(d--,1);o.length||(c.widgets=null);var m=vl(this);Yn(c,Math.max(0,c.height-m)),r&&(Bn(r,function(){km(r,c,-m),Ri(r,a,"widget")}),Jt(r,"lineWidgetCleared",r,this,a))}},Ml.prototype.changed=function(){var r=this,o=this.height,c=this.doc.cm,a=this.line;this.height=null;var d=vl(this)-o;d&&(Oi(this.doc,a)||Yn(a,a.height+d),c&&Bn(c,function(){c.curOp.forceUpdate=!0,km(c,a,d),Jt(c,"lineWidgetChanged",c,r,M(a))}))},mr(Ml);function km(r,o,c){ai(o)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&qf(r,c)}function O_(r,o,c,a){var d=new Ml(r,c,a),m=r.cm;return m&&d.noHScroll&&(m.display.alignWidgets=!0),Al(r,o,"widget",function(b){var x=b.widgets||(b.widgets=[]);if(d.insertAt==null?x.push(d):x.splice(Math.min(x.length,Math.max(0,d.insertAt)),0,d),d.line=b,m&&!Oi(r,b)){var _=ai(b)<r.scrollTop;Yn(b,b.height+vl(d)),_&&qf(m,d.height),m.curOp.forceUpdate=!0}return!0}),m&&Jt(m,"lineWidgetAdded",m,d,typeof o=="number"?o:M(o)),d}var Tm=0,Bi=function(r,o){this.lines=[],this.type=o,this.doc=r,this.id=++Tm};Bi.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,o=r&&!r.curOp;if(o&&$o(r),Hn(this,"clear")){var c=this.find();c&&Jt(this,"clear",c.from,c.to)}for(var a=null,d=null,m=0;m<this.lines.length;++m){var b=this.lines[m],x=pl(b.markedSpans,this);r&&!this.collapsed?Ri(r,M(b),"text"):r&&(x.to!=null&&(d=M(b)),x.from!=null&&(a=M(b))),b.markedSpans=CS(b.markedSpans,x),x.from==null&&this.collapsed&&!Oi(this.doc,b)&&r&&Yn(b,cs(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var T=xr(this.lines[_]),H=sc(T);H>r.display.maxLineLength&&(r.display.maxLine=T,r.display.maxLineLength=H,r.display.maxLineChanged=!0)}a!=null&&r&&this.collapsed&&kn(r,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&pm(r.doc)),r&&Jt(r,"markerCleared",r,this,a,d),o&&Mo(r),this.parent&&this.parent.clear()}},Bi.prototype.find=function(r,o){r==null&&this.type=="bookmark"&&(r=1);for(var c,a,d=0;d<this.lines.length;++d){var m=this.lines[d],b=pl(m.markedSpans,this);if(b.from!=null&&(c=le(o?m:M(m),b.from),r==-1))return c;if(b.to!=null&&(a=le(o?m:M(m),b.to),r==1))return a}return c&&{from:c,to:a}},Bi.prototype.changed=function(){var r=this,o=this.find(-1,!0),c=this,a=this.doc.cm;!o||!a||Bn(a,function(){var d=o.line,m=M(o.line),b=Mf(a,m);if(b&&(Mg(b),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Oi(c.doc,d)&&c.height!=null){var x=c.height;c.height=null;var _=vl(c)-x;_&&Yn(d,d.height+_)}Jt(a,"markerChanged",a,r)})},Bi.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var o=this.doc.cm.curOp;(!o.maybeHiddenMarkers||ge(o.maybeHiddenMarkers,this)==-1)&&(o.maybeUnhiddenMarkers||(o.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},Bi.prototype.detachLine=function(r){if(this.lines.splice(ge(this.lines,r),1),!this.lines.length&&this.doc.cm){var o=this.doc.cm.curOp;(o.maybeHiddenMarkers||(o.maybeHiddenMarkers=[])).push(this)}},mr(Bi);function ys(r,o,c,a,d){if(a&&a.shared)return R_(r,o,c,a,d);if(r.cm&&!r.cm.curOp)return Yt(r.cm,ys)(r,o,c,a,d);var m=new Bi(r,d),b=Le(o,c);if(a&&ee(a,m,!1),b>0||b==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=R("span",[m.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(gg(r,o.line,o,c,m)||o.line!=c.line&&gg(r,c.line,o,c,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");TS()}m.addToHistory&&lm(r,{from:o,to:c,origin:"markText"},r.sel,NaN);var x=o.line,_=r.cm,T;if(r.iter(x,c.line+1,function(K){_&&m.collapsed&&!_.options.lineWrapping&&xr(K)==_.display.maxLine&&(T=!0),m.collapsed&&x!=o.line&&Yn(K,0),ES(K,new nc(m,x==o.line?o.ch:null,x==c.line?c.ch:null),r.cm&&r.cm.curOp),++x}),m.collapsed&&r.iter(o.line,c.line+1,function(K){Oi(r,K)&&Yn(K,0)}),m.clearOnEnter&&Be(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(kS(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),m.collapsed&&(m.id=++Tm,m.atomic=!0),_){if(T&&(_.curOp.updateMaxLine=!0),m.collapsed)kn(_,o.line,c.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=o.line;H<=c.line;H++)Ri(_,H,"text");m.atomic&&pm(_.doc),Jt(_,"markerAdded",_,m)}return m}var Nl=function(r,o){this.markers=r,this.primary=o;for(var c=0;c<r.length;++c)r[c].parent=this};Nl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();Jt(this,"clear")}},Nl.prototype.find=function(r,o){return this.primary.find(r,o)},mr(Nl);function R_(r,o,c,a,d){a=ee(a),a.shared=!1;var m=[ys(r,o,c,a,d)],b=m[0],x=a.widgetNode;return Hi(r,function(_){x&&(a.widgetNode=x.cloneNode(!0)),m.push(ys(_,Xe(_,o),Xe(_,c),a,d));for(var T=0;T<_.linked.length;++T)if(_.linked[T].isParent)return;b=ve(m)}),new Nl(m,b)}function Cm(r){return r.findMarks(le(r.first,0),r.clipPos(le(r.lastLine())),function(o){return o.parent})}function z_(r,o){for(var c=0;c<o.length;c++){var a=o[c],d=a.find(),m=r.clipPos(d.from),b=r.clipPos(d.to);if(Le(m,b)){var x=ys(r,m,b,a.primary,a.primary.type);a.markers.push(x),x.parent=a}}}function D_(r){for(var o=function(a){var d=r[a],m=[d.primary.doc];Hi(d.primary.doc,function(_){return m.push(_)});for(var b=0;b<d.markers.length;b++){var x=d.markers[b];ge(m,x.doc)==-1&&(x.parent=null,d.markers.splice(b--,1))}},c=0;c<r.length;c++)o(c)}var F_=0,Tn=function(r,o,c,a,d){if(!(this instanceof Tn))return new Tn(r,o,c,a,d);c==null&&(c=0),$l.call(this,[new Ll([new ss("",null)])]),this.first=c,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=c;var m=le(c,0);this.sel=Di(m),this.history=new yc(null),this.id=++F_,this.modeOption=o,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),Zf(this,{from:m,to:m,text:r}),cn(this,Di(m),Y)};Tn.prototype=De($l.prototype,{constructor:Tn,iter:function(r,o,c){c?this.iterN(r-this.first,o-r,c):this.iterN(this.first,this.first+this.size,r)},insert:function(r,o){for(var c=0,a=0;a<o.length;++a)c+=o[a].height;this.insertInner(r-this.first,o,c)},remove:function(r,o){this.removeInner(r-this.first,o)},getValue:function(r){var o=dl(this,this.first,this.first+this.size);return r===!1?o:o.join(r||this.lineSeparator())},setValue:Zt(function(r){var o=le(this.first,0),c=this.first+this.size-1;ms(this,{from:o,to:le(c,Oe(this,c).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&wl(this.cm,0,0),cn(this,Di(o),Y)}),replaceRange:function(r,o,c,a){o=Xe(this,o),c=c?Xe(this,c):o,vs(this,r,o,c,a)},getRange:function(r,o,c){var a=si(this,Xe(this,r),Xe(this,o));return c===!1?a:c===""?a.join(""):a.join(c||this.lineSeparator())},getLine:function(r){var o=this.getLineHandle(r);return o&&o.text},getLineHandle:function(r){if(de(this,r))return Oe(this,r)},getLineNumber:function(r){return M(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=Oe(this,r)),xr(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return Xe(this,r)},getCursor:function(r){var o=this.sel.primary(),c;return r==null||r=="head"?c=o.head:r=="anchor"?c=o.anchor:r=="end"||r=="to"||r===!1?c=o.to():c=o.from(),c},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zt(function(r,o,c){fm(this,Xe(this,typeof r=="number"?le(r,o||0):r),null,c)}),setSelection:Zt(function(r,o,c){fm(this,Xe(this,r),Xe(this,o||r),c)}),extendSelection:Zt(function(r,o,c){wc(this,Xe(this,r),o&&Xe(this,o),c)}),extendSelections:Zt(function(r,o){um(this,tg(this,r),o)}),extendSelectionsBy:Zt(function(r,o){var c=be(this.sel.ranges,r);um(this,tg(this,c),o)}),setSelections:Zt(function(r,o,c){if(r.length){for(var a=[],d=0;d<r.length;d++)a[d]=new gt(Xe(this,r[d].anchor),Xe(this,r[d].head||r[d].anchor));o==null&&(o=Math.min(r.length-1,this.sel.primIndex)),cn(this,_r(this.cm,a,o),c)}}),addSelection:Zt(function(r,o,c){var a=this.sel.ranges.slice(0);a.push(new gt(Xe(this,r),Xe(this,o||r))),cn(this,_r(this.cm,a,a.length-1),c)}),getSelection:function(r){for(var o=this.sel.ranges,c,a=0;a<o.length;a++){var d=si(this,o[a].from(),o[a].to());c=c?c.concat(d):d}return r===!1?c:c.join(r||this.lineSeparator())},getSelections:function(r){for(var o=[],c=this.sel.ranges,a=0;a<c.length;a++){var d=si(this,c[a].from(),c[a].to());r!==!1&&(d=d.join(r||this.lineSeparator())),o[a]=d}return o},replaceSelection:function(r,o,c){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=r;this.replaceSelections(a,o,c||"+input")},replaceSelections:Zt(function(r,o,c){for(var a=[],d=this.sel,m=0;m<d.ranges.length;m++){var b=d.ranges[m];a[m]={from:b.from(),to:b.to(),text:this.splitLines(r[m]),origin:c}}for(var x=o&&o!="end"&&C_(this,a,o),_=a.length-1;_>=0;_--)ms(this,a[_]);x?dm(this,x):this.cm&&ds(this.cm)}),undo:Zt(function(){_c(this,"undo")}),redo:Zt(function(){_c(this,"redo")}),undoSelection:Zt(function(){_c(this,"undo",!0)}),redoSelection:Zt(function(){_c(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,o=0,c=0,a=0;a<r.done.length;a++)r.done[a].ranges||++o;for(var d=0;d<r.undone.length;d++)r.undone[d].ranges||++c;return{undo:o,redo:c}},clearHistory:function(){var r=this;this.history=new yc(this.history),Hi(this,function(o){return o.history=r.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:ps(this.history.done),undone:ps(this.history.undone)}},setHistory:function(r){var o=this.history=new yc(this.history);o.done=ps(r.done.slice(0),null,!0),o.undone=ps(r.undone.slice(0),null,!0)},setGutterMarker:Zt(function(r,o,c){return Al(this,r,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[o]=c,!c&&ut(d)&&(a.gutterMarkers=null),!0})}),clearGutter:Zt(function(r){var o=this;this.iter(function(c){c.gutterMarkers&&c.gutterMarkers[r]&&Al(o,c,"gutter",function(){return c.gutterMarkers[r]=null,ut(c.gutterMarkers)&&(c.gutterMarkers=null),!0})})}),lineInfo:function(r){var o;if(typeof r=="number"){if(!de(this,r)||(o=r,r=Oe(this,r),!r))return null}else if(o=M(r),o==null)return null;return{line:o,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:Zt(function(r,o,c){return Al(this,r,o=="gutter"?"gutter":"class",function(a){var d=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=c;else{if(U(c).test(a[d]))return!1;a[d]+=" "+c}return!0})}),removeLineClass:Zt(function(r,o,c){return Al(this,r,o=="gutter"?"gutter":"class",function(a){var d=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass",m=a[d];if(m)if(c==null)a[d]=null;else{var b=m.match(U(c));if(!b)return!1;var x=b.index+b[0].length;a[d]=m.slice(0,b.index)+(!b.index||x==m.length?"":" ")+m.slice(x)||null}else return!1;return!0})}),addLineWidget:Zt(function(r,o,c){return O_(this,r,o,c)}),removeLineWidget:function(r){r.clear()},markText:function(r,o,c){return ys(this,Xe(this,r),Xe(this,o),c,c&&c.type||"range")},setBookmark:function(r,o){var c={replacedWith:o&&(o.nodeType==null?o.widget:o),insertLeft:o&&o.insertLeft,clearWhenEmpty:!1,shared:o&&o.shared,handleMouseEvents:o&&o.handleMouseEvents};return r=Xe(this,r),ys(this,r,r,c,"bookmark")},findMarksAt:function(r){r=Xe(this,r);var o=[],c=Oe(this,r.line).markedSpans;if(c)for(var a=0;a<c.length;++a){var d=c[a];(d.from==null||d.from<=r.ch)&&(d.to==null||d.to>=r.ch)&&o.push(d.marker.parent||d.marker)}return o},findMarks:function(r,o,c){r=Xe(this,r),o=Xe(this,o);var a=[],d=r.line;return this.iter(r.line,o.line+1,function(m){var b=m.markedSpans;if(b)for(var x=0;x<b.length;x++){var _=b[x];!(_.to!=null&&d==r.line&&r.ch>=_.to||_.from==null&&d!=r.line||_.from!=null&&d==o.line&&_.from>=o.ch)&&(!c||c(_.marker))&&a.push(_.marker.parent||_.marker)}++d}),a},getAllMarks:function(){var r=[];return this.iter(function(o){var c=o.markedSpans;if(c)for(var a=0;a<c.length;++a)c[a].from!=null&&r.push(c[a].marker)}),r},posFromIndex:function(r){var o,c=this.first,a=this.lineSeparator().length;return this.iter(function(d){var m=d.text.length+a;if(m>r)return o=r,!0;r-=m,++c}),Xe(this,le(c,o))},indexFromPos:function(r){r=Xe(this,r);var o=r.ch;if(r.line<this.first||r.ch<0)return 0;var c=this.lineSeparator().length;return this.iter(this.first,r.line,function(a){o+=a.text.length+c}),o},copy:function(r){var o=new Tn(dl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return o.scrollTop=this.scrollTop,o.scrollLeft=this.scrollLeft,o.sel=this.sel,o.extend=!1,r&&(o.history.undoDepth=this.history.undoDepth,o.setHistory(this.getHistory())),o},linkedDoc:function(r){r||(r={});var o=this.first,c=this.first+this.size;r.from!=null&&r.from>o&&(o=r.from),r.to!=null&&r.to<c&&(c=r.to);var a=new Tn(dl(this,o,c),r.mode||this.modeOption,o,this.lineSep,this.direction);return r.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:r.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:r.sharedHist}],z_(a,Cm(this)),a},unlinkDoc:function(r){if(r instanceof Ct&&(r=r.doc),this.linked)for(var o=0;o<this.linked.length;++o){var c=this.linked[o];if(c.doc==r){this.linked.splice(o,1),r.unlinkDoc(this),D_(Cm(this));break}}if(r.history==this.history){var a=[r.id];Hi(r,function(d){return a.push(d.id)},!0),r.history=new yc(null),r.history.done=ps(this.history.done,a),r.history.undone=ps(this.history.undone,a)}},iterLinkedDocs:function(r){Hi(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):lr(r)},lineSeparator:function(){return this.lineSep||`
35
+ `},setDirection:Zt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(o){return o.order=null}),this.cm&&E_(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var Em=0;function H_(r){var o=this;if(Am(o),!(Ot(o,r)||ci(o.display,r))){an(r),h&&(Em=+new Date);var c=Co(o,r,!0),a=r.dataTransfer.files;if(!(!c||o.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,m=Array(d),b=0,x=function(){++b==d&&Yt(o,function(){c=Xe(o.doc,c);var Z={from:c,to:c,text:o.doc.splitLines(m.filter(function(ce){return ce!=null}).join(o.doc.lineSeparator())),origin:"paste"};ms(o.doc,Z),dm(o.doc,Di(Xe(o.doc,c),Xe(o.doc,Fi(Z))))})()},_=function(Z,ce){if(o.options.allowDropFileTypes&&ge(o.options.allowDropFileTypes,Z.type)==-1){x();return}var me=new FileReader;me.onerror=function(){return x()},me.onload=function(){var Se=me.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Se)){x();return}m[ce]=Se,x()},me.readAsText(Z)},T=0;T<a.length;T++)_(a[T],T);else{if(o.state.draggingText&&o.doc.sel.contains(c)>-1){o.state.draggingText(r),setTimeout(function(){return o.display.input.focus()},20);return}try{var H=r.dataTransfer.getData("Text");if(H){var K;if(o.state.draggingText&&!o.state.draggingText.copy&&(K=o.listSelections()),xc(o.doc,Di(c,c)),K)for(var ne=0;ne<K.length;++ne)vs(o.doc,"",K[ne].anchor,K[ne].head,"drag");o.replaceSelection(H,"around","paste"),o.display.input.focus()}}catch{}}}}function B_(r,o){if(h&&(!r.state.draggingText||+new Date-Em<100)){Mi(o);return}if(!(Ot(r,o)||ci(r.display,o))&&(o.dataTransfer.setData("Text",r.getSelection()),o.dataTransfer.effectAllowed="copyMove",o.dataTransfer.setDragImage&&!$)){var c=S("img",null,null,"position: fixed; left: 0; top: 0;");c.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",L&&(c.width=c.height=1,r.display.wrapper.appendChild(c),c._top=c.offsetTop),o.dataTransfer.setDragImage(c,0,0),L&&c.parentNode.removeChild(c)}}function W_(r,o){var c=Co(r,o);if(c){var a=document.createDocumentFragment();Ff(r,c,a),r.display.dragCursor||(r.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),P(r.display.dragCursor,a)}}function Am(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function Lm(r){if(document.getElementsByClassName){for(var o=document.getElementsByClassName("CodeMirror"),c=[],a=0;a<o.length;a++){var d=o[a].CodeMirror;d&&c.push(d)}c.length&&c[0].operation(function(){for(var m=0;m<c.length;m++)r(c[m])})}}var $m=!1;function j_(){$m||(q_(),$m=!0)}function q_(){var r;Be(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,Lm(U_)},100))}),Be(window,"blur",function(){return Lm(fs)})}function U_(r){var o=r.display;o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.scrollbarsClipped=!1,r.setSize()}for(var Wi={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"},Il=0;Il<10;Il++)Wi[Il+48]=Wi[Il+96]=String(Il);for(var kc=65;kc<=90;kc++)Wi[kc]=String.fromCharCode(kc);for(var Pl=1;Pl<=12;Pl++)Wi[Pl+111]=Wi[Pl+63235]="F"+Pl;var fi={};fi.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"},fi.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"},fi.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"},fi.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"]},fi.default=z?fi.macDefault:fi.pcDefault;function V_(r){var o=r.split(/-(?!$)/);r=o[o.length-1];for(var c,a,d,m,b=0;b<o.length-1;b++){var x=o[b];if(/^(cmd|meta|m)$/i.test(x))m=!0;else if(/^a(lt)?$/i.test(x))c=!0;else if(/^(c|ctrl|control)$/i.test(x))a=!0;else if(/^s(hift)?$/i.test(x))d=!0;else throw new Error("Unrecognized modifier name: "+x)}return c&&(r="Alt-"+r),a&&(r="Ctrl-"+r),m&&(r="Cmd-"+r),d&&(r="Shift-"+r),r}function G_(r){var o={};for(var c in r)if(r.hasOwnProperty(c)){var a=r[c];if(/^(name|fallthrough|(de|at)tach)$/.test(c))continue;if(a=="..."){delete r[c];continue}for(var d=be(c.split(" "),V_),m=0;m<d.length;m++){var b=void 0,x=void 0;m==d.length-1?(x=d.join(" "),b=a):(x=d.slice(0,m+1).join(" "),b="...");var _=o[x];if(!_)o[x]=b;else if(_!=b)throw new Error("Inconsistent bindings for "+x)}delete r[c]}for(var T in o)r[T]=o[T];return r}function bs(r,o,c,a){o=Tc(o);var d=o.call?o.call(r,a):o[r];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&c(d))return"handled";if(o.fallthrough){if(Object.prototype.toString.call(o.fallthrough)!="[object Array]")return bs(r,o.fallthrough,c,a);for(var m=0;m<o.fallthrough.length;m++){var b=bs(r,o.fallthrough[m],c,a);if(b)return b}}}function Mm(r){var o=typeof r=="string"?r:Wi[r.keyCode];return o=="Ctrl"||o=="Alt"||o=="Shift"||o=="Mod"}function Nm(r,o,c){var a=r;return o.altKey&&a!="Alt"&&(r="Alt-"+r),(W?o.metaKey:o.ctrlKey)&&a!="Ctrl"&&(r="Ctrl-"+r),(W?o.ctrlKey:o.metaKey)&&a!="Mod"&&(r="Cmd-"+r),!c&&o.shiftKey&&a!="Shift"&&(r="Shift-"+r),r}function Im(r,o){if(L&&r.keyCode==34&&r.char)return!1;var c=Wi[r.keyCode];return c==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(c=r.code),Nm(c,r,o))}function Tc(r){return typeof r=="string"?fi[r]:r}function ws(r,o){for(var c=r.doc.sel.ranges,a=[],d=0;d<c.length;d++){for(var m=o(c[d]);a.length&&Le(m.from,ve(a).to)<=0;){var b=a.pop();if(Le(b.from,m.from)<0){m.from=b.from;break}}a.push(m)}Bn(r,function(){for(var x=a.length-1;x>=0;x--)vs(r.doc,"",a[x].from,a[x].to,"+delete");ds(r)})}function nd(r,o,c){var a=Xt(r.text,o+c,c);return a<0||a>r.text.length?null:a}function rd(r,o,c){var a=nd(r,o.ch,c);return a==null?null:new le(o.line,a,c<0?"after":"before")}function id(r,o,c,a,d){if(r){o.doc.direction=="rtl"&&(d=-d);var m=tt(c,o.doc.direction);if(m){var b=d<0?ve(m):m[0],x=d<0==(b.level==1),_=x?"after":"before",T;if(b.level>0||o.doc.direction=="rtl"){var H=as(o,c);T=d<0?c.text.length-1:0;var K=qr(o,H,T).top;T=Bt(function(ne){return qr(o,H,ne).top==K},d<0==(b.level==1)?b.from:b.to-1,T),_=="before"&&(T=nd(c,T,1))}else T=d<0?b.to:b.from;return new le(a,T,_)}}return new le(a,d<0?c.text.length:0,d<0?"before":"after")}function X_(r,o,c,a){var d=tt(o,r.doc.direction);if(!d)return rd(o,c,a);c.ch>=o.text.length?(c.ch=o.text.length,c.sticky="before"):c.ch<=0&&(c.ch=0,c.sticky="after");var m=Ft(d,c.ch,c.sticky),b=d[m];if(r.doc.direction=="ltr"&&b.level%2==0&&(a>0?b.to>c.ch:b.from<c.ch))return rd(o,c,a);var x=function(ke,$e){return nd(o,ke instanceof le?ke.ch:ke,$e)},_,T=function(ke){return r.options.lineWrapping?(_=_||as(r,o),Dg(r,o,_,ke)):{begin:0,end:o.text.length}},H=T(c.sticky=="before"?x(c,-1):c.ch);if(r.doc.direction=="rtl"||b.level==1){var K=b.level==1==a<0,ne=x(c,K?1:-1);if(ne!=null&&(K?ne<=b.to&&ne<=H.end:ne>=b.from&&ne>=H.begin)){var Z=K?"before":"after";return new le(c.line,ne,Z)}}var ce=function(ke,$e,Te){for(var Ne=function(xt,Qt){return Qt?new le(c.line,x(xt,1),"before"):new le(c.line,xt,"after")};ke>=0&&ke<d.length;ke+=$e){var We=d[ke],ze=$e>0==(We.level!=1),Qe=ze?Te.begin:x(Te.end,-1);if(We.from<=Qe&&Qe<We.to||(Qe=ze?We.from:x(We.to,-1),Te.begin<=Qe&&Qe<Te.end))return Ne(Qe,ze)}},me=ce(m+a,a,H);if(me)return me;var Se=a>0?H.end:x(H.begin,-1);return Se!=null&&!(a>0&&Se==o.text.length)&&(me=ce(a>0?0:d.length-1,a,T(Se)),me)?me:null}var Ol={selectAll:vm,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),Y)},killLine:function(r){return ws(r,function(o){if(o.empty()){var c=Oe(r.doc,o.head.line).text.length;return o.head.ch==c&&o.head.line<r.lastLine()?{from:o.head,to:le(o.head.line+1,0)}:{from:o.head,to:le(o.head.line,c)}}else return{from:o.from(),to:o.to()}})},deleteLine:function(r){return ws(r,function(o){return{from:le(o.from().line,0),to:Xe(r.doc,le(o.to().line+1,0))}})},delLineLeft:function(r){return ws(r,function(o){return{from:le(o.from().line,0),to:o.from()}})},delWrappedLineLeft:function(r){return ws(r,function(o){var c=r.charCoords(o.head,"div").top+5,a=r.coordsChar({left:0,top:c},"div");return{from:a,to:o.from()}})},delWrappedLineRight:function(r){return ws(r,function(o){var c=r.charCoords(o.head,"div").top+5,a=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:c},"div");return{from:o.from(),to:a}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(le(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(le(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(o){return Pm(r,o.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(o){return Om(r,o.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(o){return K_(r,o.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(o){var c=r.cursorCoords(o.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:c},"div")},pe)},goLineLeft:function(r){return r.extendSelectionsBy(function(o){var c=r.cursorCoords(o.head,"div").top+5;return r.coordsChar({left:0,top:c},"div")},pe)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(o){var c=r.cursorCoords(o.head,"div").top+5,a=r.coordsChar({left:0,top:c},"div");return a.ch<r.getLine(a.line).search(/\S/)?Om(r,o.head):a},pe)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var o=[],c=r.listSelections(),a=r.options.tabSize,d=0;d<c.length;d++){var m=c[d].from(),b=J(r.getLine(m.line),m.ch,a);o.push(Ee(a-b%a))}r.replaceSelections(o)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return Bn(r,function(){for(var o=r.listSelections(),c=[],a=0;a<o.length;a++)if(o[a].empty()){var d=o[a].head,m=Oe(r.doc,d.line).text;if(m){if(d.ch==m.length&&(d=new le(d.line,d.ch-1)),d.ch>0)d=new le(d.line,d.ch+1),r.replaceRange(m.charAt(d.ch-1)+m.charAt(d.ch-2),le(d.line,d.ch-2),d,"+transpose");else if(d.line>r.doc.first){var b=Oe(r.doc,d.line-1).text;b&&(d=new le(d.line,1),r.replaceRange(m.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),le(d.line-1,b.length-1),d,"+transpose"))}}c.push(new gt(d,d))}r.setSelections(c)})},newlineAndIndent:function(r){return Bn(r,function(){for(var o=r.listSelections(),c=o.length-1;c>=0;c--)r.replaceRange(r.doc.lineSeparator(),o[c].anchor,o[c].head,"+input");o=r.listSelections();for(var a=0;a<o.length;a++)r.indentLine(o[a].from().line,null,!0);ds(r)})},openLine:function(r){return r.replaceSelection(`
36
+ `,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function Pm(r,o){var c=Oe(r.doc,o),a=xr(c);return a!=c&&(o=M(a)),id(!0,r,a,o,1)}function K_(r,o){var c=Oe(r.doc,o),a=NS(c);return a!=c&&(o=M(a)),id(!0,r,c,o,-1)}function Om(r,o){var c=Pm(r,o.line),a=Oe(r.doc,c.line),d=tt(a,r.doc.direction);if(!d||d[0].level==0){var m=Math.max(c.ch,a.text.search(/\S/)),b=o.line==c.line&&o.ch<=m&&o.ch;return le(c.line,b?0:m,c.sticky)}return c}function Cc(r,o,c){if(typeof o=="string"&&(o=Ol[o],!o))return!1;r.display.input.ensurePolled();var a=r.display.shift,d=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),c&&(r.display.shift=!1),d=o(r)!=G}finally{r.display.shift=a,r.state.suppressEdits=!1}return d}function J_(r,o,c){for(var a=0;a<r.state.keyMaps.length;a++){var d=bs(o,r.state.keyMaps[a],c,r);if(d)return d}return r.options.extraKeys&&bs(o,r.options.extraKeys,c,r)||bs(o,r.options.keyMap,c,r)}var Y_=new ae;function Rl(r,o,c,a){var d=r.state.keySeq;if(d){if(Mm(o))return"handled";if(/\'$/.test(o)?r.state.keySeq=null:Y_.set(50,function(){r.state.keySeq==d&&(r.state.keySeq=null,r.display.input.reset())}),Rm(r,d+" "+o,c,a))return!0}return Rm(r,o,c,a)}function Rm(r,o,c,a){var d=J_(r,o,a);return d=="multi"&&(r.state.keySeq=o),d=="handled"&&Jt(r,"keyHandled",r,o,c),(d=="handled"||d=="multi")&&(an(c),Hf(r)),!!d}function zm(r,o){var c=Im(o,!0);return c?o.shiftKey&&!r.state.keySeq?Rl(r,"Shift-"+c,o,function(a){return Cc(r,a,!0)})||Rl(r,c,o,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Cc(r,a)}):Rl(r,c,o,function(a){return Cc(r,a)}):!1}function Z_(r,o,c){return Rl(r,"'"+c+"'",o,function(a){return Cc(r,a,!0)})}var od=null;function Dm(r){var o=this;if(!(r.target&&r.target!=o.display.input.getField())&&(o.curOp.focus=ue(Ke(o)),!Ot(o,r))){h&&p<11&&r.keyCode==27&&(r.returnValue=!1);var c=r.keyCode;o.display.shift=c==16||r.shiftKey;var a=zm(o,r);L&&(od=a?c:null,!a&&c==88&&!ec&&(z?r.metaKey:r.ctrlKey)&&o.replaceSelection("",null,"cut")),s&&!z&&!a&&c==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),c==18&&!/\bCodeMirror-crosshair\b/.test(o.display.lineDiv.className)&&Q_(o)}}function Q_(r){var o=r.display.lineDiv;we(o,"CodeMirror-crosshair");function c(a){(a.keyCode==18||!a.altKey)&&(A(o,"CodeMirror-crosshair"),ln(document,"keyup",c),ln(document,"mouseover",c))}Be(document,"keyup",c),Be(document,"mouseover",c)}function Fm(r){r.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,r)}function Hm(r){var o=this;if(!(r.target&&r.target!=o.display.input.getField())&&!(ci(o.display,r)||Ot(o,r)||r.ctrlKey&&!r.altKey||z&&r.metaKey)){var c=r.keyCode,a=r.charCode;if(L&&c==od){od=null,an(r);return}if(!(L&&(!r.which||r.which<10)&&zm(o,r))){var d=String.fromCharCode(a??c);d!="\b"&&(Z_(o,r,d)||o.display.input.onKeyPress(r))}}}var ek=400,sd=function(r,o,c){this.time=r,this.pos=o,this.button=c};sd.prototype.compare=function(r,o,c){return this.time+ek>r&&Le(o,this.pos)==0&&c==this.button};var zl,Dl;function tk(r,o){var c=+new Date;return Dl&&Dl.compare(c,r,o)?(zl=Dl=null,"triple"):zl&&zl.compare(c,r,o)?(Dl=new sd(c,r,o),zl=null,"double"):(zl=new sd(c,r,o),Dl=null,"single")}function Bm(r){var o=this,c=o.display;if(!(Ot(o,r)||c.activeTouch&&c.input.supportsTouch())){if(c.input.ensurePolled(),c.shift=r.shiftKey,ci(c,r)){g||(c.scroller.draggable=!1,setTimeout(function(){return c.scroller.draggable=!0},100));return}if(!ld(o,r)){var a=Co(o,r),d=vr(r),m=a?tk(a,d):"single";re(o).focus(),d==1&&o.state.selectingText&&o.state.selectingText(r),!(a&&nk(o,d,a,m,r))&&(d==1?a?ik(o,a,m,r):cl(r)==c.scroller&&an(r):d==2?(a&&wc(o.doc,a),setTimeout(function(){return c.input.focus()},20)):d==3&&(q?o.display.input.onContextMenu(r):Bf(o)))}}}function nk(r,o,c,a,d){var m="Click";return a=="double"?m="Double"+m:a=="triple"&&(m="Triple"+m),m=(o==1?"Left":o==2?"Middle":"Right")+m,Rl(r,Nm(m,d),d,function(b){if(typeof b=="string"&&(b=Ol[b]),!b)return!1;var x=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),x=b(r,c)!=G}finally{r.state.suppressEdits=!1}return x})}function rk(r,o,c){var a=r.getOption("configureMouse"),d=a?a(r,o,c):{};if(d.unit==null){var m=D?c.shiftKey&&c.metaKey:c.altKey;d.unit=m?"rectangle":o=="single"?"char":o=="double"?"word":"line"}return(d.extend==null||r.doc.extend)&&(d.extend=r.doc.extend||c.shiftKey),d.addNew==null&&(d.addNew=z?c.metaKey:c.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(z?c.altKey:c.ctrlKey)),d}function ik(r,o,c,a){h?setTimeout(V(Wg,r),0):r.curOp.focus=ue(Ke(r));var d=rk(r,c,a),m=r.doc.sel,b;r.options.dragDrop&&bf&&!r.isReadOnly()&&c=="single"&&(b=m.contains(o))>-1&&(Le((b=m.ranges[b]).from(),o)<0||o.xRel>0)&&(Le(b.to(),o)>0||o.xRel<0)?ok(r,a,o,d):sk(r,a,o,d)}function ok(r,o,c,a){var d=r.display,m=!1,b=Yt(r,function(T){g&&(d.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:Bf(r)),ln(d.wrapper.ownerDocument,"mouseup",b),ln(d.wrapper.ownerDocument,"mousemove",x),ln(d.scroller,"dragstart",_),ln(d.scroller,"drop",b),m||(an(T),a.addNew||wc(r.doc,c,null,null,a.extend),g&&!$||h&&p==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),x=function(T){m=m||Math.abs(o.clientX-T.clientX)+Math.abs(o.clientY-T.clientY)>=10},_=function(){return m=!0};g&&(d.scroller.draggable=!0),r.state.draggingText=b,b.copy=!a.moveOnDrag,Be(d.wrapper.ownerDocument,"mouseup",b),Be(d.wrapper.ownerDocument,"mousemove",x),Be(d.scroller,"dragstart",_),Be(d.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function Wm(r,o,c){if(c=="char")return new gt(o,o);if(c=="word")return r.findWordAt(o);if(c=="line")return new gt(le(o.line,0),Xe(r.doc,le(o.line+1,0)));var a=c(r,o);return new gt(a.from,a.to)}function sk(r,o,c,a){h&&Bf(r);var d=r.display,m=r.doc;an(o);var b,x,_=m.sel,T=_.ranges;if(a.addNew&&!a.extend?(x=m.sel.contains(c),x>-1?b=T[x]:b=new gt(c,c)):(b=m.sel.primary(),x=m.sel.primIndex),a.unit=="rectangle")a.addNew||(b=new gt(c,c)),c=Co(r,o,!0,!0),x=-1;else{var H=Wm(r,c,a.unit);a.extend?b=ed(b,H.anchor,H.head,a.extend):b=H}a.addNew?x==-1?(x=T.length,cn(m,_r(r,T.concat([b]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&a.unit=="char"&&!a.extend?(cn(m,_r(r,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=m.sel):td(m,x,b,fe):(x=0,cn(m,new Zn([b],0),fe),_=m.sel);var K=c;function ne(Te){if(Le(K,Te)!=0)if(K=Te,a.unit=="rectangle"){for(var Ne=[],We=r.options.tabSize,ze=J(Oe(m,c.line).text,c.ch,We),Qe=J(Oe(m,Te.line).text,Te.ch,We),xt=Math.min(ze,Qe),Qt=Math.max(ze,Qe),Mt=Math.min(c.line,Te.line),Wn=Math.min(r.lastLine(),Math.max(c.line,Te.line));Mt<=Wn;Mt++){var Cn=Oe(m,Mt).text,Wt=he(Cn,xt,We);xt==Qt?Ne.push(new gt(le(Mt,Wt),le(Mt,Wt))):Cn.length>Wt&&Ne.push(new gt(le(Mt,Wt),le(Mt,he(Cn,Qt,We))))}Ne.length||Ne.push(new gt(c,c)),cn(m,_r(r,_.ranges.slice(0,x).concat(Ne),x),{origin:"*mouse",scroll:!1}),r.scrollIntoView(Te)}else{var En=b,on=Wm(r,Te,a.unit),Vt=En.anchor,jt;Le(on.anchor,Vt)>0?(jt=on.head,Vt=os(En.from(),on.anchor)):(jt=on.anchor,Vt=_n(En.to(),on.head));var zt=_.ranges.slice(0);zt[x]=lk(r,new gt(Xe(m,Vt),jt)),cn(m,_r(r,zt,x),fe)}}var Z=d.wrapper.getBoundingClientRect(),ce=0;function me(Te){var Ne=++ce,We=Co(r,Te,!0,a.unit=="rectangle");if(We)if(Le(We,K)!=0){r.curOp.focus=ue(Ke(r)),ne(We);var ze=pc(d,m);(We.line>=ze.to||We.line<ze.from)&&setTimeout(Yt(r,function(){ce==Ne&&me(Te)}),150)}else{var Qe=Te.clientY<Z.top?-20:Te.clientY>Z.bottom?20:0;Qe&&setTimeout(Yt(r,function(){ce==Ne&&(d.scroller.scrollTop+=Qe,me(Te))}),50)}}function Se(Te){r.state.selectingText=!1,ce=1/0,Te&&(an(Te),d.input.focus()),ln(d.wrapper.ownerDocument,"mousemove",ke),ln(d.wrapper.ownerDocument,"mouseup",$e),m.history.lastSelOrigin=null}var ke=Yt(r,function(Te){Te.buttons===0||!vr(Te)?Se(Te):me(Te)}),$e=Yt(r,Se);r.state.selectingText=$e,Be(d.wrapper.ownerDocument,"mousemove",ke),Be(d.wrapper.ownerDocument,"mouseup",$e)}function lk(r,o){var c=o.anchor,a=o.head,d=Oe(r.doc,c.line);if(Le(c,a)==0&&c.sticky==a.sticky)return o;var m=tt(d);if(!m)return o;var b=Ft(m,c.ch,c.sticky),x=m[b];if(x.from!=c.ch&&x.to!=c.ch)return o;var _=b+(x.from==c.ch==(x.level!=1)?0:1);if(_==0||_==m.length)return o;var T;if(a.line!=c.line)T=(a.line-c.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var H=Ft(m,a.ch,a.sticky),K=H-b||(a.ch-c.ch)*(x.level==1?-1:1);H==_-1||H==_?T=K<0:T=K>0}var ne=m[_+(T?-1:0)],Z=T==(ne.level==1),ce=Z?ne.from:ne.to,me=Z?"after":"before";return c.ch==ce&&c.sticky==me?o:new gt(new le(c.line,ce,me),a)}function jm(r,o,c,a){var d,m;if(o.touches)d=o.touches[0].clientX,m=o.touches[0].clientY;else try{d=o.clientX,m=o.clientY}catch{return!1}if(d>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;a&&an(o);var b=r.display,x=b.lineDiv.getBoundingClientRect();if(m>x.bottom||!Hn(r,c))return Sn(o);m-=x.top-b.viewOffset;for(var _=0;_<r.display.gutterSpecs.length;++_){var T=b.gutters.childNodes[_];if(T&&T.getBoundingClientRect().right>=d){var H=X(r.doc,m),K=r.display.gutterSpecs[_];return Pt(r,c,r,H,K.className,o),Sn(o)}}}function ld(r,o){return jm(r,o,"gutterClick",!0)}function qm(r,o){ci(r.display,o)||ak(r,o)||Ot(r,o,"contextmenu")||q||r.display.input.onContextMenu(o)}function ak(r,o){return Hn(r,"gutterContextMenu")?jm(r,o,"gutterContextMenu",!1):!1}function Um(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yl(r)}var xs={toString:function(){return"CodeMirror.Init"}},Vm={},Ec={};function ck(r){var o=r.optionHandlers;function c(a,d,m,b){r.defaults[a]=d,m&&(o[a]=b?function(x,_,T){T!=xs&&m(x,_,T)}:m)}r.defineOption=c,r.Init=xs,c("value","",function(a,d){return a.setValue(d)},!0),c("mode",null,function(a,d){a.doc.modeOption=d,Yf(a)},!0),c("indentUnit",2,Yf,!0),c("indentWithTabs",!1),c("smartIndent",!0),c("tabSize",4,function(a){Cl(a),yl(a),kn(a)},!0),c("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var m=[],b=a.doc.first;a.doc.iter(function(_){for(var T=0;;){var H=_.text.indexOf(d,T);if(H==-1)break;T=H+d.length,m.push(le(b,H))}b++});for(var x=m.length-1;x>=0;x--)vs(a.doc,d,m[x],le(m[x].line,m[x].ch+d.length))}}),c("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(a,d,m){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),m!=xs&&a.refresh()}),c("specialCharPlaceholder",DS,function(a){return a.refresh()},!0),c("electricChars",!0),c("inputStyle",k?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),c("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),c("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),c("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),c("rtlMoveVisually",!oe),c("wholeLineUpdateBefore",!0),c("theme","default",function(a){Um(a),Tl(a)},!0),c("keyMap","default",function(a,d,m){var b=Tc(d),x=m!=xs&&Tc(m);x&&x.detach&&x.detach(a,b),b.attach&&b.attach(a,x||null)}),c("extraKeys",null),c("configureMouse",null),c("lineWrapping",!1,fk,!0),c("gutters",[],function(a,d){a.display.gutterSpecs=Kf(d,a.options.lineNumbers),Tl(a)},!0),c("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?zf(a.display)+"px":"0",a.refresh()},!0),c("coverGutterNextToScrollbar",!1,function(a){return hs(a)},!0),c("scrollbarStyle","native",function(a){Xg(a),hs(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),c("lineNumbers",!1,function(a,d){a.display.gutterSpecs=Kf(a.options.gutters,d),Tl(a)},!0),c("firstLineNumber",1,Tl,!0),c("lineNumberFormatter",function(a){return a},Tl,!0),c("showCursorWhenSelecting",!1,bl,!0),c("resetSelectionOnContextMenu",!0),c("lineWiseCopyCut",!0),c("pasteLinesPerSelection",!0),c("selectionsMayTouch",!1),c("readOnly",!1,function(a,d){d=="nocursor"&&(fs(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),c("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),c("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),c("dragDrop",!0,uk),c("allowDropFileTypes",null),c("cursorBlinkRate",530),c("cursorScrollMargin",0),c("cursorHeight",1,bl,!0),c("singleCursorHeightPerLine",!0,bl,!0),c("workTime",100),c("workDelay",100),c("flattenSpans",!0,Cl,!0),c("addModeClass",!1,Cl,!0),c("pollInterval",100),c("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),c("historyEventDelay",1250),c("viewportMargin",10,function(a){return a.refresh()},!0),c("maxHighlightLength",1e4,Cl,!0),c("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),c("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),c("autofocus",null),c("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),c("phrases",null)}function uk(r,o,c){var a=c&&c!=xs;if(!o!=!a){var d=r.display.dragFunctions,m=o?Be:ln;m(r.display.scroller,"dragstart",d.start),m(r.display.scroller,"dragenter",d.enter),m(r.display.scroller,"dragover",d.over),m(r.display.scroller,"dragleave",d.leave),m(r.display.scroller,"drop",d.drop)}}function fk(r){r.options.lineWrapping?(we(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(A(r.display.wrapper,"CodeMirror-wrap"),Ef(r)),Df(r),kn(r),yl(r),setTimeout(function(){return hs(r)},100)}function Ct(r,o){var c=this;if(!(this instanceof Ct))return new Ct(r,o);this.options=o=o?ee(o):{},ee(Vm,o,!1);var a=o.value;typeof a=="string"?a=new Tn(a,o.mode,null,o.lineSeparator,o.direction):o.mode&&(a.modeOption=o.mode),this.doc=a;var d=new Ct.inputStyles[o.inputStyle](this),m=this.display=new k_(r,a,d,o);m.wrapper.CodeMirror=this,Um(this),o.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xg(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 ae,keySeq:null,specialChars:null},o.autofocus&&!k&&m.input.focus(),h&&p<11&&setTimeout(function(){return c.display.input.reset(!0)},20),dk(this),j_(),$o(this),this.curOp.forceUpdate=!0,im(this,a),o.autofocus&&!k||this.hasFocus()?setTimeout(function(){c.hasFocus()&&!c.state.focused&&Wf(c)},20):fs(this);for(var b in Ec)Ec.hasOwnProperty(b)&&Ec[b](this,o[b],xs);Yg(this),o.finishInit&&o.finishInit(this);for(var x=0;x<ad.length;++x)ad[x](this);Mo(this),g&&o.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Ct.defaults=Vm,Ct.optionHandlers=Ec;function dk(r){var o=r.display;Be(o.scroller,"mousedown",Yt(r,Bm)),h&&p<11?Be(o.scroller,"dblclick",Yt(r,function(_){if(!Ot(r,_)){var T=Co(r,_);if(!(!T||ld(r,_)||ci(r.display,_))){an(_);var H=r.findWordAt(T);wc(r.doc,H.anchor,H.head)}}})):Be(o.scroller,"dblclick",function(_){return Ot(r,_)||an(_)}),Be(o.scroller,"contextmenu",function(_){return qm(r,_)}),Be(o.input.getField(),"contextmenu",function(_){o.scroller.contains(_.target)||qm(r,_)});var c,a={end:0};function d(){o.activeTouch&&(c=setTimeout(function(){return o.activeTouch=null},1e3),a=o.activeTouch,a.end=+new Date)}function m(_){if(_.touches.length!=1)return!1;var T=_.touches[0];return T.radiusX<=1&&T.radiusY<=1}function b(_,T){if(T.left==null)return!0;var H=T.left-_.left,K=T.top-_.top;return H*H+K*K>20*20}Be(o.scroller,"touchstart",function(_){if(!Ot(r,_)&&!m(_)&&!ld(r,_)){o.input.ensurePolled(),clearTimeout(c);var T=+new Date;o.activeTouch={start:T,moved:!1,prev:T-a.end<=300?a:null},_.touches.length==1&&(o.activeTouch.left=_.touches[0].pageX,o.activeTouch.top=_.touches[0].pageY)}}),Be(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Be(o.scroller,"touchend",function(_){var T=o.activeTouch;if(T&&!ci(o,_)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=r.coordsChar(o.activeTouch,"page"),K;!T.prev||b(T,T.prev)?K=new gt(H,H):!T.prev.prev||b(T,T.prev.prev)?K=r.findWordAt(H):K=new gt(le(H.line,0),Xe(r.doc,le(H.line+1,0))),r.setSelection(K.anchor,K.head),r.focus(),an(_)}d()}),Be(o.scroller,"touchcancel",d),Be(o.scroller,"scroll",function(){o.scroller.clientHeight&&(xl(r,o.scroller.scrollTop),Ao(r,o.scroller.scrollLeft,!0),Pt(r,"scroll",r))}),Be(o.scroller,"mousewheel",function(_){return em(r,_)}),Be(o.scroller,"DOMMouseScroll",function(_){return em(r,_)}),Be(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(_){Ot(r,_)||Mi(_)},over:function(_){Ot(r,_)||(W_(r,_),Mi(_))},start:function(_){return B_(r,_)},drop:Yt(r,H_),leave:function(_){Ot(r,_)||Am(r)}};var x=o.input.getField();Be(x,"keyup",function(_){return Fm.call(r,_)}),Be(x,"keydown",Yt(r,Dm)),Be(x,"keypress",Yt(r,Hm)),Be(x,"focus",function(_){return Wf(r,_)}),Be(x,"blur",function(_){return fs(r,_)})}var ad=[];Ct.defineInitHook=function(r){return ad.push(r)};function Fl(r,o,c,a){var d=r.doc,m;c==null&&(c="add"),c=="smart"&&(d.mode.indent?m=hl(r,o).state:c="prev");var b=r.options.tabSize,x=Oe(d,o),_=J(x.text,null,b);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!a&&!/\S/.test(x.text))H=0,c="not";else if(c=="smart"&&(H=d.mode.indent(m,x.text.slice(T.length),x.text),H==G||H>150)){if(!a)return;c="prev"}c=="prev"?o>d.first?H=J(Oe(d,o-1).text,null,b):H=0:c=="add"?H=_+r.options.indentUnit:c=="subtract"?H=_-r.options.indentUnit:typeof c=="number"&&(H=_+c),H=Math.max(0,H);var K="",ne=0;if(r.options.indentWithTabs)for(var Z=Math.floor(H/b);Z;--Z)ne+=b,K+=" ";if(ne<H&&(K+=Ee(H-ne)),K!=T)return vs(d,K,le(o,0),le(o,T.length),"+input"),x.stateAfter=null,!0;for(var ce=0;ce<d.sel.ranges.length;ce++){var me=d.sel.ranges[ce];if(me.head.line==o&&me.head.ch<T.length){var Se=le(o,T.length);td(d,ce,new gt(Se,Se));break}}}var kr=null;function Ac(r){kr=r}function cd(r,o,c,a,d){var m=r.doc;r.display.shift=!1,a||(a=m.sel);var b=+new Date-200,x=d=="paste"||r.state.pasteIncoming>b,_=lr(o),T=null;if(x&&a.ranges.length>1)if(kr&&kr.text.join(`
37
37
  `)==o){if(a.ranges.length%kr.text.length==0){T=[];for(var H=0;H<kr.text.length;H++)T.push(m.splitLines(kr.text[H]))}}else _.length==a.ranges.length&&r.options.pasteLinesPerSelection&&(T=be(_,function(ke){return[ke]}));for(var K=r.curOp.updateInput,ne=a.ranges.length-1;ne>=0;ne--){var Z=a.ranges[ne],ce=Z.from(),me=Z.to();Z.empty()&&(c&&c>0?ce=le(ce.line,ce.ch-c):r.state.overwrite&&!x?me=le(me.line,Math.min(Oe(m,me.line).text.length,me.ch+ve(_).length)):x&&kr&&kr.lineWise&&kr.text.join(`
38
38
  `)==_.join(`
39
- `)&&(ce=me=le(ce.line,0)));var Se={from:ce,to:me,text:T?T[ne%T.length]:_,origin:d||(x?"paste":r.state.cutIncoming>b?"cut":"+input")};gs(r.doc,Se),Jt(r,"inputRead",r,Se)}o&&!x&&Xm(r,o),fs(r),r.curOp.updateInput<2&&(r.curOp.updateInput=K),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function Gm(r,o){var c=r.clipboardData&&r.clipboardData.getData("Text");if(c)return r.preventDefault(),!o.isReadOnly()&&!o.options.disableInput&&o.hasFocus()&&Bn(o,function(){return cd(o,c,0,null,"paste")}),!0}function Xm(r,o){if(!(!r.options.electricChars||!r.options.smartIndent))for(var c=r.doc.sel,a=c.ranges.length-1;a>=0;a--){var d=c.ranges[a];if(!(d.head.ch>100||a&&c.ranges[a-1].head.line==d.head.line)){var m=r.getModeAt(d.head),b=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(o.indexOf(m.electricChars.charAt(x))>-1){b=Dl(r,d.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Oe(r.doc,d.head.line).text.slice(0,d.head.ch))&&(b=Dl(r,d.head.line,"smart"));b&&Jt(r,"electricInput",r,d.head.line)}}}function Km(r){for(var o=[],c=[],a=0;a<r.doc.sel.ranges.length;a++){var d=r.doc.sel.ranges[a].head.line,m={anchor:le(d,0),head:le(d+1,0)};c.push(m),o.push(r.getRange(m.anchor,m.head))}return{text:o,ranges:c}}function ud(r,o,c,a){r.setAttribute("autocorrect",c?"on":"off"),r.setAttribute("autocapitalize",a?"on":"off"),r.setAttribute("spellcheck",!!o)}function Jm(){var r=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),o=S("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?r.style.width="1000px":r.setAttribute("wrap","off"),N&&(r.style.border="1px solid black"),o}function pk(r){var o=r.optionHandlers,c=r.helpers={};r.prototype={constructor:r,focus:function(){re(this).focus(),this.display.input.focus()},setOption:function(a,d){var m=this.options,b=m[a];m[a]==d&&a!="mode"||(m[a]=d,o.hasOwnProperty(a)&&Yt(this,o[a])(this,d,b),Pt(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Tc(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,m=0;m<d.length;++m)if(d[m]==a||d[m].name==a)return d.splice(m,1),!0},addOverlay:gn(function(a,d){var m=a.token?a:r.getMode(this.options,a);if(m.startState)throw new Error("Overlays may not be stateful.");He(this.state.overlays,{mode:m,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(b){return b.priority}),this.state.modeGen++,kn(this)}),removeOverlay:gn(function(a){for(var d=this.state.overlays,m=0;m<d.length;++m){var b=d[m].modeSpec;if(b==a||typeof a=="string"&&b.name==a){d.splice(m,1),this.state.modeGen++,kn(this);return}}}),indentLine:gn(function(a,d,m){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),de(this.doc,a)&&Dl(this,a,d,m)}),indentSelection:gn(function(a){for(var d=this.doc.sel.ranges,m=-1,b=0;b<d.length;b++){var x=d[b];if(x.empty())x.head.line>m&&(Dl(this,x.head.line,a,!0),m=x.head.line,b==this.doc.sel.primIndex&&fs(this));else{var _=x.from(),T=x.to(),H=Math.max(m,_.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var K=H;K<m;++K)Dl(this,K,a);var ne=this.doc.sel.ranges;_.ch==0&&d.length==ne.length&&ne[b].from().ch>0&&td(this.doc,b,new gt(_,ne[b].to()),Y)}}}),getTokenAt:function(a,d){return sg(this,a,d)},getLineTokens:function(a,d){return sg(this,le(a),d,!0)},getTokenTypeAt:function(a){a=Xe(this.doc,a);var d=rg(this,Oe(this.doc,a.line)),m=0,b=(d.length-1)/2,x=a.ch,_;if(x==0)_=d[2];else for(;;){var T=m+b>>1;if((T?d[T*2-1]:0)>=x)b=T;else if(d[T*2+1]<x)m=T+1;else{_=d[T*2+2];break}}var H=_?_.indexOf("overlay "):-1;return H<0?_:H==0?null:_.slice(0,H-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?r.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var m=[];if(!c.hasOwnProperty(d))return m;var b=c[d],x=this.getModeAt(a);if(typeof x[d]=="string")b[x[d]]&&m.push(b[x[d]]);else if(x[d])for(var _=0;_<x[d].length;_++){var T=b[x[d][_]];T&&m.push(T)}else x.helperType&&b[x.helperType]?m.push(b[x.helperType]):b[x.name]&&m.push(b[x.name]);for(var H=0;H<b._global.length;H++){var K=b._global[H];K.pred(x,this)&&ge(m,K.val)==-1&&m.push(K.val)}return m},getStateAfter:function(a,d){var m=this.doc;return a=eg(m,a??m.first+m.size-1),dl(this,a+1,d).state},cursorCoords:function(a,d){var m,b=this.doc.sel.primary();return a==null?m=b.head:typeof a=="object"?m=Xe(this.doc,a):m=a?b.from():b.to(),Sr(this,m,d||"page")},charCoords:function(a,d){return uc(this,Xe(this.doc,a),d||"page")},coordsChar:function(a,d){return a=Og(this,a,d||"page"),Pf(this,a.left,a.top)},lineAtHeight:function(a,d){return a=Og(this,{top:a,left:0},d||"page").top,X(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,m){var b=!1,x;if(typeof a=="number"){var _=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>_&&(a=_,b=!0),x=Oe(this.doc,a)}else x=a;return cc(this,x,{top:0,left:0},d||"page",m||b).top+(b?this.doc.height-ai(x):0)},defaultTextHeight:function(){return as(this.display)},defaultCharWidth:function(){return cs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,m,b,x){var _=this.display;a=Sr(this,Xe(this.doc,a));var T=a.bottom,H=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),_.sizer.appendChild(d),b=="over")T=a.top;else if(b=="above"||b=="near"){var K=Math.max(_.wrapper.clientHeight,this.doc.height),ne=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(b=="above"||a.bottom+d.offsetHeight>K)&&a.top>d.offsetHeight?T=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=K&&(T=a.bottom),H+d.offsetWidth>ne&&(H=ne-d.offsetWidth)}d.style.top=T+"px",d.style.left=d.style.right="",x=="right"?(H=_.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(_.sizer.clientWidth-d.offsetWidth)/2),d.style.left=H+"px"),m&&f_(this,{left:H,top:T,right:H+d.offsetWidth,bottom:T+d.offsetHeight})},triggerOnKeyDown:gn(Dm),triggerOnKeyPress:gn(Hm),triggerOnKeyUp:Fm,triggerOnMouseDown:gn(Bm),execCommand:function(a){if(Pl.hasOwnProperty(a))return Pl[a].call(null,this)},triggerElectric:gn(function(a){Xm(this,a)}),findPosH:function(a,d,m,b){var x=1;d<0&&(x=-1,d=-d);for(var _=Xe(this.doc,a),T=0;T<d&&(_=fd(this.doc,_,x,m,b),!_.hitSide);++T);return _},moveH:gn(function(a,d){var m=this;this.extendSelectionsBy(function(b){return m.display.shift||m.doc.extend||b.empty()?fd(m.doc,b.head,a,d,m.options.rtlMoveVisually):a<0?b.from():b.to()},pe)}),deleteH:gn(function(a,d){var m=this.doc.sel,b=this.doc;m.somethingSelected()?b.replaceSelection("",null,"+delete"):bs(this,function(x){var _=fd(b,x.head,a,d,!1);return a<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(a,d,m,b){var x=1,_=b;d<0&&(x=-1,d=-d);for(var T=Xe(this.doc,a),H=0;H<d;++H){var K=Sr(this,T,"div");if(_==null?_=K.left:K.left=_,T=Ym(this,K,x,m),T.hitSide)break}return T},moveV:gn(function(a,d){var m=this,b=this.doc,x=[],_=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(H){if(_)return a<0?H.from():H.to();var K=Sr(m,H.head,"div");H.goalColumn!=null&&(K.left=H.goalColumn),x.push(K.left);var ne=Ym(m,K,a,d);return d=="page"&&H==b.sel.primary()&&qf(m,uc(m,ne,"div").top-K.top),ne},pe),x.length)for(var T=0;T<b.sel.ranges.length;T++)b.sel.ranges[T].goalColumn=x[T]}),findWordAt:function(a){var d=this.doc,m=Oe(d,a.line).text,b=a.ch,x=a.ch;if(m){var _=this.getHelper(a,"wordChars");(a.sticky=="before"||x==m.length)&&b?--b:++x;for(var T=m.charAt(b),H=st(T,_)?function(K){return st(K,_)}:/\s/.test(T)?function(K){return/\s/.test(K)}:function(K){return!/\s/.test(K)&&!st(K)};b>0&&H(m.charAt(b-1));)--b;for(;x<m.length&&H(m.charAt(x));)++x}return new gt(le(a.line,b),le(a.line,x))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ue(Ke(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:gn(function(a,d){bl(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-jr(this)-this.display.barHeight,width:a.scrollWidth-jr(this)-this.display.barWidth,clientHeight:$f(this),clientWidth:So(this)}},scrollIntoView:gn(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:le(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?d_(this,a):qg(this,a.from,a.to,a.margin)}),setSize:gn(function(a,d){var m=this,b=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};a!=null&&(this.display.wrapper.style.width=b(a)),d!=null&&(this.display.wrapper.style.height=b(d)),this.options.lineWrapping&&Ng(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var T=0;T<_.widgets.length;T++)if(_.widgets[T].noHScroll){Oi(m,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(a){return Bn(this,a)},startOperation:function(){return Ao(this)},endOperation:function(){return Lo(this)},refresh:gn(function(){var a=this.display.cachedTextHeight;kn(this),this.curOp.forceUpdate=!0,vl(this),bl(this,this.doc.scrollLeft,this.doc.scrollTop),Gf(this.display),(a==null||Math.abs(a-as(this.display))>.5||this.options.lineWrapping)&&Df(this),Pt(this,"refresh",this)}),swapDoc:gn(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),im(this,a),vl(this),this.display.input.reset(),bl(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[a]:a},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}},mr(r),r.registerHelper=function(a,d,m){c.hasOwnProperty(a)||(c[a]=r[a]={_global:[]}),c[a][d]=m},r.registerGlobalHelper=function(a,d,m,b){r.registerHelper(a,d,b),c[a]._global.push({pred:m,val:b})}}function fd(r,o,c,a,d){var m=o,b=c,x=Oe(r,o.line),_=d&&r.direction=="rtl"?-c:c;function T(){var $e=o.line+_;return $e<r.first||$e>=r.first+r.size?!1:(o=new le($e,o.ch,o.sticky),x=Oe(r,$e))}function H($e){var Te;if(a=="codepoint"){var Ne=x.text.charCodeAt(o.ch+(c>0?0:-1));if(isNaN(Ne))Te=null;else{var We=c>0?Ne>=55296&&Ne<56320:Ne>=56320&&Ne<57343;Te=new le(o.line,Math.max(0,Math.min(x.text.length,o.ch+c*(We?2:1))),-c)}}else d?Te=K_(r.cm,x,o,c):Te=rd(x,o,c);if(Te==null)if(!$e&&T())o=id(d,r.cm,x,o.line,_);else return!1;else o=Te;return!0}if(a=="char"||a=="codepoint")H();else if(a=="column")H(!0);else if(a=="word"||a=="group")for(var K=null,ne=a=="group",Z=r.cm&&r.cm.getHelper(o,"wordChars"),ce=!0;!(c<0&&!H(!ce));ce=!1){var me=x.text.charAt(o.ch)||`
39
+ `)&&(ce=me=le(ce.line,0)));var Se={from:ce,to:me,text:T?T[ne%T.length]:_,origin:d||(x?"paste":r.state.cutIncoming>b?"cut":"+input")};ms(r.doc,Se),Jt(r,"inputRead",r,Se)}o&&!x&&Xm(r,o),ds(r),r.curOp.updateInput<2&&(r.curOp.updateInput=K),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function Gm(r,o){var c=r.clipboardData&&r.clipboardData.getData("Text");if(c)return r.preventDefault(),!o.isReadOnly()&&!o.options.disableInput&&o.hasFocus()&&Bn(o,function(){return cd(o,c,0,null,"paste")}),!0}function Xm(r,o){if(!(!r.options.electricChars||!r.options.smartIndent))for(var c=r.doc.sel,a=c.ranges.length-1;a>=0;a--){var d=c.ranges[a];if(!(d.head.ch>100||a&&c.ranges[a-1].head.line==d.head.line)){var m=r.getModeAt(d.head),b=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(o.indexOf(m.electricChars.charAt(x))>-1){b=Fl(r,d.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Oe(r.doc,d.head.line).text.slice(0,d.head.ch))&&(b=Fl(r,d.head.line,"smart"));b&&Jt(r,"electricInput",r,d.head.line)}}}function Km(r){for(var o=[],c=[],a=0;a<r.doc.sel.ranges.length;a++){var d=r.doc.sel.ranges[a].head.line,m={anchor:le(d,0),head:le(d+1,0)};c.push(m),o.push(r.getRange(m.anchor,m.head))}return{text:o,ranges:c}}function ud(r,o,c,a){r.setAttribute("autocorrect",c?"on":"off"),r.setAttribute("autocapitalize",a?"on":"off"),r.setAttribute("spellcheck",!!o)}function Jm(){var r=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),o=S("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?r.style.width="1000px":r.setAttribute("wrap","off"),N&&(r.style.border="1px solid black"),o}function hk(r){var o=r.optionHandlers,c=r.helpers={};r.prototype={constructor:r,focus:function(){re(this).focus(),this.display.input.focus()},setOption:function(a,d){var m=this.options,b=m[a];m[a]==d&&a!="mode"||(m[a]=d,o.hasOwnProperty(a)&&Yt(this,o[a])(this,d,b),Pt(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Tc(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,m=0;m<d.length;++m)if(d[m]==a||d[m].name==a)return d.splice(m,1),!0},addOverlay:pn(function(a,d){var m=a.token?a:r.getMode(this.options,a);if(m.startState)throw new Error("Overlays may not be stateful.");He(this.state.overlays,{mode:m,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(b){return b.priority}),this.state.modeGen++,kn(this)}),removeOverlay:pn(function(a){for(var d=this.state.overlays,m=0;m<d.length;++m){var b=d[m].modeSpec;if(b==a||typeof a=="string"&&b.name==a){d.splice(m,1),this.state.modeGen++,kn(this);return}}}),indentLine:pn(function(a,d,m){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),de(this.doc,a)&&Fl(this,a,d,m)}),indentSelection:pn(function(a){for(var d=this.doc.sel.ranges,m=-1,b=0;b<d.length;b++){var x=d[b];if(x.empty())x.head.line>m&&(Fl(this,x.head.line,a,!0),m=x.head.line,b==this.doc.sel.primIndex&&ds(this));else{var _=x.from(),T=x.to(),H=Math.max(m,_.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var K=H;K<m;++K)Fl(this,K,a);var ne=this.doc.sel.ranges;_.ch==0&&d.length==ne.length&&ne[b].from().ch>0&&td(this.doc,b,new gt(_,ne[b].to()),Y)}}}),getTokenAt:function(a,d){return sg(this,a,d)},getLineTokens:function(a,d){return sg(this,le(a),d,!0)},getTokenTypeAt:function(a){a=Xe(this.doc,a);var d=rg(this,Oe(this.doc,a.line)),m=0,b=(d.length-1)/2,x=a.ch,_;if(x==0)_=d[2];else for(;;){var T=m+b>>1;if((T?d[T*2-1]:0)>=x)b=T;else if(d[T*2+1]<x)m=T+1;else{_=d[T*2+2];break}}var H=_?_.indexOf("overlay "):-1;return H<0?_:H==0?null:_.slice(0,H-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?r.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var m=[];if(!c.hasOwnProperty(d))return m;var b=c[d],x=this.getModeAt(a);if(typeof x[d]=="string")b[x[d]]&&m.push(b[x[d]]);else if(x[d])for(var _=0;_<x[d].length;_++){var T=b[x[d][_]];T&&m.push(T)}else x.helperType&&b[x.helperType]?m.push(b[x.helperType]):b[x.name]&&m.push(b[x.name]);for(var H=0;H<b._global.length;H++){var K=b._global[H];K.pred(x,this)&&ge(m,K.val)==-1&&m.push(K.val)}return m},getStateAfter:function(a,d){var m=this.doc;return a=eg(m,a??m.first+m.size-1),hl(this,a+1,d).state},cursorCoords:function(a,d){var m,b=this.doc.sel.primary();return a==null?m=b.head:typeof a=="object"?m=Xe(this.doc,a):m=a?b.from():b.to(),Sr(this,m,d||"page")},charCoords:function(a,d){return uc(this,Xe(this.doc,a),d||"page")},coordsChar:function(a,d){return a=Og(this,a,d||"page"),Pf(this,a.left,a.top)},lineAtHeight:function(a,d){return a=Og(this,{top:a,left:0},d||"page").top,X(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,m){var b=!1,x;if(typeof a=="number"){var _=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>_&&(a=_,b=!0),x=Oe(this.doc,a)}else x=a;return cc(this,x,{top:0,left:0},d||"page",m||b).top+(b?this.doc.height-ai(x):0)},defaultTextHeight:function(){return cs(this.display)},defaultCharWidth:function(){return us(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,m,b,x){var _=this.display;a=Sr(this,Xe(this.doc,a));var T=a.bottom,H=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),_.sizer.appendChild(d),b=="over")T=a.top;else if(b=="above"||b=="near"){var K=Math.max(_.wrapper.clientHeight,this.doc.height),ne=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(b=="above"||a.bottom+d.offsetHeight>K)&&a.top>d.offsetHeight?T=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=K&&(T=a.bottom),H+d.offsetWidth>ne&&(H=ne-d.offsetWidth)}d.style.top=T+"px",d.style.left=d.style.right="",x=="right"?(H=_.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(_.sizer.clientWidth-d.offsetWidth)/2),d.style.left=H+"px"),m&&u_(this,{left:H,top:T,right:H+d.offsetWidth,bottom:T+d.offsetHeight})},triggerOnKeyDown:pn(Dm),triggerOnKeyPress:pn(Hm),triggerOnKeyUp:Fm,triggerOnMouseDown:pn(Bm),execCommand:function(a){if(Ol.hasOwnProperty(a))return Ol[a].call(null,this)},triggerElectric:pn(function(a){Xm(this,a)}),findPosH:function(a,d,m,b){var x=1;d<0&&(x=-1,d=-d);for(var _=Xe(this.doc,a),T=0;T<d&&(_=fd(this.doc,_,x,m,b),!_.hitSide);++T);return _},moveH:pn(function(a,d){var m=this;this.extendSelectionsBy(function(b){return m.display.shift||m.doc.extend||b.empty()?fd(m.doc,b.head,a,d,m.options.rtlMoveVisually):a<0?b.from():b.to()},pe)}),deleteH:pn(function(a,d){var m=this.doc.sel,b=this.doc;m.somethingSelected()?b.replaceSelection("",null,"+delete"):ws(this,function(x){var _=fd(b,x.head,a,d,!1);return a<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(a,d,m,b){var x=1,_=b;d<0&&(x=-1,d=-d);for(var T=Xe(this.doc,a),H=0;H<d;++H){var K=Sr(this,T,"div");if(_==null?_=K.left:K.left=_,T=Ym(this,K,x,m),T.hitSide)break}return T},moveV:pn(function(a,d){var m=this,b=this.doc,x=[],_=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(H){if(_)return a<0?H.from():H.to();var K=Sr(m,H.head,"div");H.goalColumn!=null&&(K.left=H.goalColumn),x.push(K.left);var ne=Ym(m,K,a,d);return d=="page"&&H==b.sel.primary()&&qf(m,uc(m,ne,"div").top-K.top),ne},pe),x.length)for(var T=0;T<b.sel.ranges.length;T++)b.sel.ranges[T].goalColumn=x[T]}),findWordAt:function(a){var d=this.doc,m=Oe(d,a.line).text,b=a.ch,x=a.ch;if(m){var _=this.getHelper(a,"wordChars");(a.sticky=="before"||x==m.length)&&b?--b:++x;for(var T=m.charAt(b),H=st(T,_)?function(K){return st(K,_)}:/\s/.test(T)?function(K){return/\s/.test(K)}:function(K){return!/\s/.test(K)&&!st(K)};b>0&&H(m.charAt(b-1));)--b;for(;x<m.length&&H(m.charAt(x));)++x}return new gt(le(a.line,b),le(a.line,x))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ue(Ke(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:pn(function(a,d){wl(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-jr(this)-this.display.barHeight,width:a.scrollWidth-jr(this)-this.display.barWidth,clientHeight:$f(this),clientWidth:ko(this)}},scrollIntoView:pn(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:le(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?f_(this,a):qg(this,a.from,a.to,a.margin)}),setSize:pn(function(a,d){var m=this,b=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};a!=null&&(this.display.wrapper.style.width=b(a)),d!=null&&(this.display.wrapper.style.height=b(d)),this.options.lineWrapping&&Ng(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var T=0;T<_.widgets.length;T++)if(_.widgets[T].noHScroll){Ri(m,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(a){return Bn(this,a)},startOperation:function(){return $o(this)},endOperation:function(){return Mo(this)},refresh:pn(function(){var a=this.display.cachedTextHeight;kn(this),this.curOp.forceUpdate=!0,yl(this),wl(this,this.doc.scrollLeft,this.doc.scrollTop),Gf(this.display),(a==null||Math.abs(a-cs(this.display))>.5||this.options.lineWrapping)&&Df(this),Pt(this,"refresh",this)}),swapDoc:pn(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),im(this,a),yl(this),this.display.input.reset(),wl(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[a]:a},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}},mr(r),r.registerHelper=function(a,d,m){c.hasOwnProperty(a)||(c[a]=r[a]={_global:[]}),c[a][d]=m},r.registerGlobalHelper=function(a,d,m,b){r.registerHelper(a,d,b),c[a]._global.push({pred:m,val:b})}}function fd(r,o,c,a,d){var m=o,b=c,x=Oe(r,o.line),_=d&&r.direction=="rtl"?-c:c;function T(){var $e=o.line+_;return $e<r.first||$e>=r.first+r.size?!1:(o=new le($e,o.ch,o.sticky),x=Oe(r,$e))}function H($e){var Te;if(a=="codepoint"){var Ne=x.text.charCodeAt(o.ch+(c>0?0:-1));if(isNaN(Ne))Te=null;else{var We=c>0?Ne>=55296&&Ne<56320:Ne>=56320&&Ne<57343;Te=new le(o.line,Math.max(0,Math.min(x.text.length,o.ch+c*(We?2:1))),-c)}}else d?Te=X_(r.cm,x,o,c):Te=rd(x,o,c);if(Te==null)if(!$e&&T())o=id(d,r.cm,x,o.line,_);else return!1;else o=Te;return!0}if(a=="char"||a=="codepoint")H();else if(a=="column")H(!0);else if(a=="word"||a=="group")for(var K=null,ne=a=="group",Z=r.cm&&r.cm.getHelper(o,"wordChars"),ce=!0;!(c<0&&!H(!ce));ce=!1){var me=x.text.charAt(o.ch)||`
40
40
  `,Se=st(me,Z)?"w":ne&&me==`
41
- `?"n":!ne||/\s/.test(me)?null:"p";if(ne&&!ce&&!Se&&(Se="s"),K&&K!=Se){c<0&&(c=1,H(),o.sticky="after");break}if(Se&&(K=Se),c>0&&!H(!ce))break}var ke=Sc(r,o,m,b,!0);return pt(m,ke)&&(ke.hitSide=!0),ke}function Ym(r,o,c,a){var d=r.doc,m=o.left,b;if(a=="page"){var x=Math.min(r.display.wrapper.clientHeight,re(r).innerHeight||d(r).documentElement.clientHeight),_=Math.max(x-.5*as(r.display),3);b=(c>0?o.bottom:o.top)+c*_}else a=="line"&&(b=c>0?o.bottom+3:o.top-3);for(var T;T=Pf(r,m,b),!!T.outside;){if(c<0?b<=0:b>=d.height){T.hitSide=!0;break}b+=c*5}return T}var yt=function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(r){var o=this,c=this,a=c.cm,d=c.div=r.lineDiv;d.contentEditable=!0,ud(d,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function m(x){for(var _=x.target;_;_=_.parentNode){if(_==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Be(d,"paste",function(x){!m(x)||Ot(a,x)||Gm(x,a)||p<=11&&setTimeout(Yt(a,function(){return o.updateFromDOM()}),20)}),Be(d,"compositionstart",function(x){o.composing={data:x.data,done:!1}}),Be(d,"compositionupdate",function(x){o.composing||(o.composing={data:x.data,done:!1})}),Be(d,"compositionend",function(x){o.composing&&(x.data!=o.composing.data&&o.readFromDOMSoon(),o.composing.done=!0)}),Be(d,"touchstart",function(){return c.forceCompositionEnd()}),Be(d,"input",function(){o.composing||o.readFromDOMSoon()});function b(x){if(!(!m(x)||Ot(a,x))){if(a.somethingSelected())Ac({lineWise:!1,text:a.getSelections()}),x.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var _=Km(a);Ac({lineWise:!0,text:_.text}),x.type=="cut"&&a.operation(function(){a.setSelections(_.ranges,0,Y),a.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=kr.text.join(`
41
+ `?"n":!ne||/\s/.test(me)?null:"p";if(ne&&!ce&&!Se&&(Se="s"),K&&K!=Se){c<0&&(c=1,H(),o.sticky="after");break}if(Se&&(K=Se),c>0&&!H(!ce))break}var ke=Sc(r,o,m,b,!0);return pt(m,ke)&&(ke.hitSide=!0),ke}function Ym(r,o,c,a){var d=r.doc,m=o.left,b;if(a=="page"){var x=Math.min(r.display.wrapper.clientHeight,re(r).innerHeight||d(r).documentElement.clientHeight),_=Math.max(x-.5*cs(r.display),3);b=(c>0?o.bottom:o.top)+c*_}else a=="line"&&(b=c>0?o.bottom+3:o.top-3);for(var T;T=Pf(r,m,b),!!T.outside;){if(c<0?b<=0:b>=d.height){T.hitSide=!0;break}b+=c*5}return T}var yt=function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(r){var o=this,c=this,a=c.cm,d=c.div=r.lineDiv;d.contentEditable=!0,ud(d,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function m(x){for(var _=x.target;_;_=_.parentNode){if(_==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Be(d,"paste",function(x){!m(x)||Ot(a,x)||Gm(x,a)||p<=11&&setTimeout(Yt(a,function(){return o.updateFromDOM()}),20)}),Be(d,"compositionstart",function(x){o.composing={data:x.data,done:!1}}),Be(d,"compositionupdate",function(x){o.composing||(o.composing={data:x.data,done:!1})}),Be(d,"compositionend",function(x){o.composing&&(x.data!=o.composing.data&&o.readFromDOMSoon(),o.composing.done=!0)}),Be(d,"touchstart",function(){return c.forceCompositionEnd()}),Be(d,"input",function(){o.composing||o.readFromDOMSoon()});function b(x){if(!(!m(x)||Ot(a,x))){if(a.somethingSelected())Ac({lineWise:!1,text:a.getSelections()}),x.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var _=Km(a);Ac({lineWise:!0,text:_.text}),x.type=="cut"&&a.operation(function(){a.setSelections(_.ranges,0,Y),a.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=kr.text.join(`
42
42
  `);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=Jm(),K=H.firstChild;ud(K),a.display.lineSpace.insertBefore(H,a.display.lineSpace.firstChild),K.value=kr.text.join(`
43
- `);var ne=ue(Je(d));qe(K),setTimeout(function(){a.display.lineSpace.removeChild(H),ne.focus(),ne==d&&c.showPrimarySelection()},50)}}Be(d,"copy",b),Be(d,"cut",b)},yt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var r=Bg(this.cm,!1);return r.focus=ue(Je(this.div))==this.div,r},yt.prototype.showSelection=function(r,o){!r||!this.cm.display.view.length||((r.focus||o)&&this.showPrimarySelection(),this.showMultipleSelections(r))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var r=this.getSelection(),o=this.cm,c=o.doc.sel.primary(),a=c.from(),d=c.to();if(o.display.viewTo==o.display.viewFrom||a.line>=o.display.viewTo||d.line<o.display.viewFrom){r.removeAllRanges();return}var m=Lc(o,r.anchorNode,r.anchorOffset),b=Lc(o,r.focusNode,r.focusOffset);if(!(m&&!m.bad&&b&&!b.bad&&Le(is(m,b),a)==0&&Le(_n(m,b),d)==0)){var x=o.display.view,_=a.line>=o.display.viewFrom&&Zm(o,a)||{node:x[0].measure.map[2],offset:0},T=d.line<o.display.viewTo&&Zm(o,d);if(!T){var H=x[x.length-1].measure,K=H.maps?H.maps[H.maps.length-1]:H.map;T={node:K[K.length-1],offset:K[K.length-2]-K[K.length-3]}}if(!_||!T){r.removeAllRanges();return}var ne=r.rangeCount&&r.getRangeAt(0),Z;try{Z=B(_.node,_.offset,T.offset,T.node)}catch{}Z&&(!s&&o.state.focused?(r.collapse(_.node,_.offset),Z.collapsed||(r.removeAllRanges(),r.addRange(Z))):(r.removeAllRanges(),r.addRange(Z)),ne&&r.anchorNode==null?r.addRange(ne):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var r=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){r.gracePeriod=!1,r.selectionChanged()&&r.cm.operation(function(){return r.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(r){P(this.cm.display.cursorDiv,r.cursors),P(this.cm.display.selectionDiv,r.selection)},yt.prototype.rememberSelection=function(){var r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset},yt.prototype.selectionInEditor=function(){var r=this.getSelection();if(!r.rangeCount)return!1;var o=r.getRangeAt(0).commonAncestorContainer;return ie(this.div,o)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ue(Je(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 r=this,o=this;this.selectionInEditor()?setTimeout(function(){return r.pollSelection()},20):Bn(this.cm,function(){return o.cm.curOp.selectionChanged=!0});function c(){o.cm.state.focused&&(o.pollSelection(),o.polling.set(o.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},yt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),o=this.cm;if(O&&y&&this.cm.display.gutterSpecs.length&&gk(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var c=Lc(o,r.anchorNode,r.anchorOffset),a=Lc(o,r.focusNode,r.focusOffset);c&&a&&Bn(o,function(){fn(o.doc,zi(c,a),Y),(c.bad||a.bad)&&(o.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,o=r.display,c=r.doc.sel.primary(),a=c.from(),d=c.to();if(a.ch==0&&a.line>r.firstLine()&&(a=le(a.line-1,Oe(r.doc,a.line-1).length)),d.ch==Oe(r.doc,d.line).text.length&&d.line<r.lastLine()&&(d=le(d.line+1,0)),a.line<o.viewFrom||d.line>o.viewTo-1)return!1;var m,b,x;a.line==o.viewFrom||(m=To(r,a.line))==0?(b=M(o.view[0].line),x=o.view[0].node):(b=M(o.view[m].line),x=o.view[m-1].node.nextSibling);var _=To(r,d.line),T,H;if(_==o.view.length-1?(T=o.viewTo-1,H=o.lineDiv.lastChild):(T=M(o.view[_+1].line)-1,H=o.view[_+1].node.previousSibling),!x)return!1;for(var K=r.doc.splitLines(mk(r,x,H,b,T)),ne=si(r.doc,le(b,0),le(T,Oe(r.doc,T).text.length));K.length>1&&ne.length>1;)if(ve(K)==ve(ne))K.pop(),ne.pop(),T--;else if(K[0]==ne[0])K.shift(),ne.shift(),b++;else break;for(var Z=0,ce=0,me=K[0],Se=ne[0],ke=Math.min(me.length,Se.length);Z<ke&&me.charCodeAt(Z)==Se.charCodeAt(Z);)++Z;for(var $e=ve(K),Te=ve(ne),Ne=Math.min($e.length-(K.length==1?Z:0),Te.length-(ne.length==1?Z:0));ce<Ne&&$e.charCodeAt($e.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(K.length==1&&ne.length==1&&b==a.line)for(;Z&&Z>a.ch&&$e.charCodeAt($e.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Z--,ce++;K[K.length-1]=$e.slice(0,$e.length-ce).replace(/^\u200b+/,""),K[0]=K[0].slice(Z).replace(/\u200b+$/,"");var We=le(b,Z),ze=le(T,ne.length?ve(ne).length-ce:0);if(K.length>1||K[0]||Le(We,ze))return ms(r.doc,K,We,ze,"+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 r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&Bn(this.cm,function(){return kn(r.cm)})},yt.prototype.setUneditable=function(r){r.contentEditable="false"},yt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Yt(this.cm,cd)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},yt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Zm(r,o){var c=Mf(r,o.line);if(!c||c.hidden)return null;var a=Oe(r.doc,o.line),d=Eg(c,a,o.line),m=tt(a,r.doc.direction),b="left";if(m){var x=Ft(m,o.ch);b=x%2?"right":"left"}var _=$g(d.map,o.ch,b);return _.offset=_.collapse=="right"?_.end:_.start,_}function gk(r){for(var o=r;o;o=o.parentNode)if(/CodeMirror-gutter-wrapper/.test(o.className))return!0;return!1}function xs(r,o){return o&&(r.bad=!0),r}function mk(r,o,c,a,d){var m="",b=!1,x=r.doc.lineSeparator(),_=!1;function T(Z){return function(ce){return ce.id==Z}}function H(){b&&(m+=x,_&&(m+=x),b=_=!1)}function K(Z){Z&&(H(),m+=Z)}function ne(Z){if(Z.nodeType==1){var ce=Z.getAttribute("cm-text");if(ce){K(ce);return}var me=Z.getAttribute("cm-marker"),Se;if(me){var ke=r.findMarks(le(a,0),le(d+1,0),T(+me));ke.length&&(Se=ke[0].find(0))&&K(si(r.doc,Se.from,Se.to).join(x));return}if(Z.getAttribute("contenteditable")=="false")return;var $e=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;$e&&H();for(var Te=0;Te<Z.childNodes.length;Te++)ne(Z.childNodes[Te]);/^(pre|p)$/i.test(Z.nodeName)&&(_=!0),$e&&(b=!0)}else Z.nodeType==3&&K(Z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ne(o),o!=c;)o=o.nextSibling,_=!1;return m}function Lc(r,o,c){var a;if(o==r.display.lineDiv){if(a=r.display.lineDiv.childNodes[c],!a)return xs(r.clipPos(le(r.display.viewTo-1)),!0);o=null,c=0}else for(a=o;;a=a.parentNode){if(!a||a==r.display.lineDiv)return null;if(a.parentNode&&a.parentNode==r.display.lineDiv)break}for(var d=0;d<r.display.view.length;d++){var m=r.display.view[d];if(m.node==a)return vk(m,o,c)}}function vk(r,o,c){var a=r.text.firstChild,d=!1;if(!o||!ie(a,o))return xs(le(M(r.line),0),!0);if(o==a&&(d=!0,o=a.childNodes[c],c=0,!o)){var m=r.rest?ve(r.rest):r.line;return xs(le(M(m),m.text.length),d)}var b=o.nodeType==3?o:null,x=o;for(!b&&o.childNodes.length==1&&o.firstChild.nodeType==3&&(b=o.firstChild,c&&(c=b.nodeValue.length));x.parentNode!=a;)x=x.parentNode;var _=r.measure,T=_.maps;function H(Se,ke,$e){for(var Te=-1;Te<(T?T.length:0);Te++)for(var Ne=Te<0?_.map:T[Te],We=0;We<Ne.length;We+=3){var ze=Ne[We+2];if(ze==Se||ze==ke){var Qe=M(Te<0?r.line:r.rest[Te]),xt=Ne[We]+$e;return($e<0||ze!=Se)&&(xt=Ne[We+($e?1:0)]),le(Qe,xt)}}}var K=H(b,x,c);if(K)return xs(K,d);for(var ne=x.nextSibling,Z=b?b.nodeValue.length-c:0;ne;ne=ne.nextSibling){if(K=H(ne,ne.firstChild,0),K)return xs(le(K.line,K.ch-Z),d);Z+=ne.textContent.length}for(var ce=x.previousSibling,me=c;ce;ce=ce.previousSibling){if(K=H(ce,ce.firstChild,-1),K)return xs(le(K.line,K.ch+me),d);me+=ce.textContent.length}}var Ht=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ht.prototype.init=function(r){var o=this,c=this,a=this.cm;this.createField(r);var d=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),N&&(d.style.width="0px"),Be(d,"input",function(){h&&p>=9&&o.hasSelection&&(o.hasSelection=null),c.poll()}),Be(d,"paste",function(b){Ot(a,b)||Gm(b,a)||(a.state.pasteIncoming=+new Date,c.fastPoll())});function m(b){if(!Ot(a,b)){if(a.somethingSelected())Ac({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var x=Km(a);Ac({lineWise:!0,text:x.text}),b.type=="cut"?a.setSelections(x.ranges,null,Y):(c.prevInput="",d.value=x.text.join(`
44
- `),qe(d))}else return;b.type=="cut"&&(a.state.cutIncoming=+new Date)}}Be(d,"cut",m),Be(d,"copy",m),Be(r.scroller,"paste",function(b){if(!(ci(r,b)||Ot(a,b))){if(!d.dispatchEvent){a.state.pasteIncoming=+new Date,c.focus();return}var x=new Event("paste");x.clipboardData=b.clipboardData,d.dispatchEvent(x)}}),Be(r.lineSpace,"selectstart",function(b){ci(r,b)||un(b)}),Be(d,"compositionstart",function(){var b=a.getCursor("from");c.composing&&c.composing.range.clear(),c.composing={start:b,range:a.markText(b,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Be(d,"compositionend",function(){c.composing&&(c.poll(),c.composing.range.clear(),c.composing=null)})},Ht.prototype.createField=function(r){this.wrapper=Jm(),this.textarea=this.wrapper.firstChild;var o=this.cm.options;ud(this.textarea,o.spellcheck,o.autocorrect,o.autocapitalize)},Ht.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},Ht.prototype.prepareSelection=function(){var r=this.cm,o=r.display,c=r.doc,a=Bg(r);if(r.options.moveInputWithCursor){var d=Sr(r,c.sel.primary().head,"div"),m=o.wrapper.getBoundingClientRect(),b=o.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(o.wrapper.clientHeight-10,d.top+b.top-m.top)),a.teLeft=Math.max(0,Math.min(o.wrapper.clientWidth-10,d.left+b.left-m.left))}return a},Ht.prototype.showSelection=function(r){var o=this.cm,c=o.display;P(c.cursorDiv,r.cursors),P(c.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},Ht.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){var o=this.cm;if(this.resetting=!0,o.somethingSelected()){this.prevInput="";var c=o.getSelection();this.textarea.value=c,o.state.focused&&qe(this.textarea),h&&p>=9&&(this.hasSelection=c)}else r||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ht.prototype.getField=function(){return this.textarea},Ht.prototype.supportsTouch=function(){return!1},Ht.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!k||ue(Je(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ht.prototype.blur=function(){this.textarea.blur()},Ht.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ht.prototype.receivedFocus=function(){this.slowPoll()},Ht.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},Ht.prototype.fastPoll=function(){var r=!1,o=this;o.pollingFast=!0;function c(){var a=o.poll();!a&&!r?(r=!0,o.polling.set(60,c)):(o.pollingFast=!1,o.slowPoll())}o.polling.set(20,c)},Ht.prototype.poll=function(){var r=this,o=this.cm,c=this.textarea,a=this.prevInput;if(this.contextMenuPending||this.resetting||!o.state.focused||Ni(c)&&!a&&!this.composing||o.isReadOnly()||o.options.disableInput||o.state.keySeq)return!1;var d=c.value;if(d==a&&!o.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===d||z&&/[\uf700-\uf7ff]/.test(d))return o.display.input.reset(),!1;if(o.doc.sel==o.display.selForContextMenu){var m=d.charCodeAt(0);if(m==8203&&!a&&(a="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,x=Math.min(a.length,d.length);b<x&&a.charCodeAt(b)==d.charCodeAt(b);)++b;return Bn(o,function(){cd(o,d.slice(b),a.length-b,null,r.composing?"*compose":null),d.length>1e3||d.indexOf(`
45
- `)>-1?c.value=r.prevInput="":r.prevInput=d,r.composing&&(r.composing.range.clear(),r.composing.range=o.markText(r.composing.start,o.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ht.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ht.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ht.prototype.onContextMenu=function(r){var o=this,c=o.cm,a=c.display,d=o.textarea;o.contextMenuPending&&o.contextMenuPending();var m=ko(c,r),b=a.scroller.scrollTop;if(!m||L)return;var x=c.options.resetSelectionOnContextMenu;x&&c.doc.sel.contains(m)==-1&&Yt(c,fn)(c.doc,zi(m),Y);var _=d.style.cssText,T=o.wrapper.style.cssText,H=o.wrapper.offsetParent.getBoundingClientRect();o.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
43
+ `);var ne=ue(Je(d));qe(K),setTimeout(function(){a.display.lineSpace.removeChild(H),ne.focus(),ne==d&&c.showPrimarySelection()},50)}}Be(d,"copy",b),Be(d,"cut",b)},yt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var r=Bg(this.cm,!1);return r.focus=ue(Je(this.div))==this.div,r},yt.prototype.showSelection=function(r,o){!r||!this.cm.display.view.length||((r.focus||o)&&this.showPrimarySelection(),this.showMultipleSelections(r))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var r=this.getSelection(),o=this.cm,c=o.doc.sel.primary(),a=c.from(),d=c.to();if(o.display.viewTo==o.display.viewFrom||a.line>=o.display.viewTo||d.line<o.display.viewFrom){r.removeAllRanges();return}var m=Lc(o,r.anchorNode,r.anchorOffset),b=Lc(o,r.focusNode,r.focusOffset);if(!(m&&!m.bad&&b&&!b.bad&&Le(os(m,b),a)==0&&Le(_n(m,b),d)==0)){var x=o.display.view,_=a.line>=o.display.viewFrom&&Zm(o,a)||{node:x[0].measure.map[2],offset:0},T=d.line<o.display.viewTo&&Zm(o,d);if(!T){var H=x[x.length-1].measure,K=H.maps?H.maps[H.maps.length-1]:H.map;T={node:K[K.length-1],offset:K[K.length-2]-K[K.length-3]}}if(!_||!T){r.removeAllRanges();return}var ne=r.rangeCount&&r.getRangeAt(0),Z;try{Z=B(_.node,_.offset,T.offset,T.node)}catch{}Z&&(!s&&o.state.focused?(r.collapse(_.node,_.offset),Z.collapsed||(r.removeAllRanges(),r.addRange(Z))):(r.removeAllRanges(),r.addRange(Z)),ne&&r.anchorNode==null?r.addRange(ne):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var r=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){r.gracePeriod=!1,r.selectionChanged()&&r.cm.operation(function(){return r.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(r){P(this.cm.display.cursorDiv,r.cursors),P(this.cm.display.selectionDiv,r.selection)},yt.prototype.rememberSelection=function(){var r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset},yt.prototype.selectionInEditor=function(){var r=this.getSelection();if(!r.rangeCount)return!1;var o=r.getRangeAt(0).commonAncestorContainer;return ie(this.div,o)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ue(Je(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 r=this,o=this;this.selectionInEditor()?setTimeout(function(){return r.pollSelection()},20):Bn(this.cm,function(){return o.cm.curOp.selectionChanged=!0});function c(){o.cm.state.focused&&(o.pollSelection(),o.polling.set(o.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},yt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),o=this.cm;if(O&&y&&this.cm.display.gutterSpecs.length&&pk(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var c=Lc(o,r.anchorNode,r.anchorOffset),a=Lc(o,r.focusNode,r.focusOffset);c&&a&&Bn(o,function(){cn(o.doc,Di(c,a),Y),(c.bad||a.bad)&&(o.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,o=r.display,c=r.doc.sel.primary(),a=c.from(),d=c.to();if(a.ch==0&&a.line>r.firstLine()&&(a=le(a.line-1,Oe(r.doc,a.line-1).length)),d.ch==Oe(r.doc,d.line).text.length&&d.line<r.lastLine()&&(d=le(d.line+1,0)),a.line<o.viewFrom||d.line>o.viewTo-1)return!1;var m,b,x;a.line==o.viewFrom||(m=Eo(r,a.line))==0?(b=M(o.view[0].line),x=o.view[0].node):(b=M(o.view[m].line),x=o.view[m-1].node.nextSibling);var _=Eo(r,d.line),T,H;if(_==o.view.length-1?(T=o.viewTo-1,H=o.lineDiv.lastChild):(T=M(o.view[_+1].line)-1,H=o.view[_+1].node.previousSibling),!x)return!1;for(var K=r.doc.splitLines(gk(r,x,H,b,T)),ne=si(r.doc,le(b,0),le(T,Oe(r.doc,T).text.length));K.length>1&&ne.length>1;)if(ve(K)==ve(ne))K.pop(),ne.pop(),T--;else if(K[0]==ne[0])K.shift(),ne.shift(),b++;else break;for(var Z=0,ce=0,me=K[0],Se=ne[0],ke=Math.min(me.length,Se.length);Z<ke&&me.charCodeAt(Z)==Se.charCodeAt(Z);)++Z;for(var $e=ve(K),Te=ve(ne),Ne=Math.min($e.length-(K.length==1?Z:0),Te.length-(ne.length==1?Z:0));ce<Ne&&$e.charCodeAt($e.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(K.length==1&&ne.length==1&&b==a.line)for(;Z&&Z>a.ch&&$e.charCodeAt($e.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Z--,ce++;K[K.length-1]=$e.slice(0,$e.length-ce).replace(/^\u200b+/,""),K[0]=K[0].slice(Z).replace(/\u200b+$/,"");var We=le(b,Z),ze=le(T,ne.length?ve(ne).length-ce:0);if(K.length>1||K[0]||Le(We,ze))return vs(r.doc,K,We,ze,"+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 r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&Bn(this.cm,function(){return kn(r.cm)})},yt.prototype.setUneditable=function(r){r.contentEditable="false"},yt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Yt(this.cm,cd)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},yt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Zm(r,o){var c=Mf(r,o.line);if(!c||c.hidden)return null;var a=Oe(r.doc,o.line),d=Eg(c,a,o.line),m=tt(a,r.doc.direction),b="left";if(m){var x=Ft(m,o.ch);b=x%2?"right":"left"}var _=$g(d.map,o.ch,b);return _.offset=_.collapse=="right"?_.end:_.start,_}function pk(r){for(var o=r;o;o=o.parentNode)if(/CodeMirror-gutter-wrapper/.test(o.className))return!0;return!1}function Ss(r,o){return o&&(r.bad=!0),r}function gk(r,o,c,a,d){var m="",b=!1,x=r.doc.lineSeparator(),_=!1;function T(Z){return function(ce){return ce.id==Z}}function H(){b&&(m+=x,_&&(m+=x),b=_=!1)}function K(Z){Z&&(H(),m+=Z)}function ne(Z){if(Z.nodeType==1){var ce=Z.getAttribute("cm-text");if(ce){K(ce);return}var me=Z.getAttribute("cm-marker"),Se;if(me){var ke=r.findMarks(le(a,0),le(d+1,0),T(+me));ke.length&&(Se=ke[0].find(0))&&K(si(r.doc,Se.from,Se.to).join(x));return}if(Z.getAttribute("contenteditable")=="false")return;var $e=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;$e&&H();for(var Te=0;Te<Z.childNodes.length;Te++)ne(Z.childNodes[Te]);/^(pre|p)$/i.test(Z.nodeName)&&(_=!0),$e&&(b=!0)}else Z.nodeType==3&&K(Z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ne(o),o!=c;)o=o.nextSibling,_=!1;return m}function Lc(r,o,c){var a;if(o==r.display.lineDiv){if(a=r.display.lineDiv.childNodes[c],!a)return Ss(r.clipPos(le(r.display.viewTo-1)),!0);o=null,c=0}else for(a=o;;a=a.parentNode){if(!a||a==r.display.lineDiv)return null;if(a.parentNode&&a.parentNode==r.display.lineDiv)break}for(var d=0;d<r.display.view.length;d++){var m=r.display.view[d];if(m.node==a)return mk(m,o,c)}}function mk(r,o,c){var a=r.text.firstChild,d=!1;if(!o||!ie(a,o))return Ss(le(M(r.line),0),!0);if(o==a&&(d=!0,o=a.childNodes[c],c=0,!o)){var m=r.rest?ve(r.rest):r.line;return Ss(le(M(m),m.text.length),d)}var b=o.nodeType==3?o:null,x=o;for(!b&&o.childNodes.length==1&&o.firstChild.nodeType==3&&(b=o.firstChild,c&&(c=b.nodeValue.length));x.parentNode!=a;)x=x.parentNode;var _=r.measure,T=_.maps;function H(Se,ke,$e){for(var Te=-1;Te<(T?T.length:0);Te++)for(var Ne=Te<0?_.map:T[Te],We=0;We<Ne.length;We+=3){var ze=Ne[We+2];if(ze==Se||ze==ke){var Qe=M(Te<0?r.line:r.rest[Te]),xt=Ne[We]+$e;return($e<0||ze!=Se)&&(xt=Ne[We+($e?1:0)]),le(Qe,xt)}}}var K=H(b,x,c);if(K)return Ss(K,d);for(var ne=x.nextSibling,Z=b?b.nodeValue.length-c:0;ne;ne=ne.nextSibling){if(K=H(ne,ne.firstChild,0),K)return Ss(le(K.line,K.ch-Z),d);Z+=ne.textContent.length}for(var ce=x.previousSibling,me=c;ce;ce=ce.previousSibling){if(K=H(ce,ce.firstChild,-1),K)return Ss(le(K.line,K.ch+me),d);me+=ce.textContent.length}}var Ht=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ht.prototype.init=function(r){var o=this,c=this,a=this.cm;this.createField(r);var d=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),N&&(d.style.width="0px"),Be(d,"input",function(){h&&p>=9&&o.hasSelection&&(o.hasSelection=null),c.poll()}),Be(d,"paste",function(b){Ot(a,b)||Gm(b,a)||(a.state.pasteIncoming=+new Date,c.fastPoll())});function m(b){if(!Ot(a,b)){if(a.somethingSelected())Ac({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var x=Km(a);Ac({lineWise:!0,text:x.text}),b.type=="cut"?a.setSelections(x.ranges,null,Y):(c.prevInput="",d.value=x.text.join(`
44
+ `),qe(d))}else return;b.type=="cut"&&(a.state.cutIncoming=+new Date)}}Be(d,"cut",m),Be(d,"copy",m),Be(r.scroller,"paste",function(b){if(!(ci(r,b)||Ot(a,b))){if(!d.dispatchEvent){a.state.pasteIncoming=+new Date,c.focus();return}var x=new Event("paste");x.clipboardData=b.clipboardData,d.dispatchEvent(x)}}),Be(r.lineSpace,"selectstart",function(b){ci(r,b)||an(b)}),Be(d,"compositionstart",function(){var b=a.getCursor("from");c.composing&&c.composing.range.clear(),c.composing={start:b,range:a.markText(b,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Be(d,"compositionend",function(){c.composing&&(c.poll(),c.composing.range.clear(),c.composing=null)})},Ht.prototype.createField=function(r){this.wrapper=Jm(),this.textarea=this.wrapper.firstChild;var o=this.cm.options;ud(this.textarea,o.spellcheck,o.autocorrect,o.autocapitalize)},Ht.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},Ht.prototype.prepareSelection=function(){var r=this.cm,o=r.display,c=r.doc,a=Bg(r);if(r.options.moveInputWithCursor){var d=Sr(r,c.sel.primary().head,"div"),m=o.wrapper.getBoundingClientRect(),b=o.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(o.wrapper.clientHeight-10,d.top+b.top-m.top)),a.teLeft=Math.max(0,Math.min(o.wrapper.clientWidth-10,d.left+b.left-m.left))}return a},Ht.prototype.showSelection=function(r){var o=this.cm,c=o.display;P(c.cursorDiv,r.cursors),P(c.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},Ht.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){var o=this.cm;if(this.resetting=!0,o.somethingSelected()){this.prevInput="";var c=o.getSelection();this.textarea.value=c,o.state.focused&&qe(this.textarea),h&&p>=9&&(this.hasSelection=c)}else r||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ht.prototype.getField=function(){return this.textarea},Ht.prototype.supportsTouch=function(){return!1},Ht.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!k||ue(Je(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ht.prototype.blur=function(){this.textarea.blur()},Ht.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ht.prototype.receivedFocus=function(){this.slowPoll()},Ht.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},Ht.prototype.fastPoll=function(){var r=!1,o=this;o.pollingFast=!0;function c(){var a=o.poll();!a&&!r?(r=!0,o.polling.set(60,c)):(o.pollingFast=!1,o.slowPoll())}o.polling.set(20,c)},Ht.prototype.poll=function(){var r=this,o=this.cm,c=this.textarea,a=this.prevInput;if(this.contextMenuPending||this.resetting||!o.state.focused||Ii(c)&&!a&&!this.composing||o.isReadOnly()||o.options.disableInput||o.state.keySeq)return!1;var d=c.value;if(d==a&&!o.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===d||z&&/[\uf700-\uf7ff]/.test(d))return o.display.input.reset(),!1;if(o.doc.sel==o.display.selForContextMenu){var m=d.charCodeAt(0);if(m==8203&&!a&&(a="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,x=Math.min(a.length,d.length);b<x&&a.charCodeAt(b)==d.charCodeAt(b);)++b;return Bn(o,function(){cd(o,d.slice(b),a.length-b,null,r.composing?"*compose":null),d.length>1e3||d.indexOf(`
45
+ `)>-1?c.value=r.prevInput="":r.prevInput=d,r.composing&&(r.composing.range.clear(),r.composing.range=o.markText(r.composing.start,o.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ht.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ht.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ht.prototype.onContextMenu=function(r){var o=this,c=o.cm,a=c.display,d=o.textarea;o.contextMenuPending&&o.contextMenuPending();var m=Co(c,r),b=a.scroller.scrollTop;if(!m||L)return;var x=c.options.resetSelectionOnContextMenu;x&&c.doc.sel.contains(m)==-1&&Yt(c,cn)(c.doc,Di(m),Y);var _=d.style.cssText,T=o.wrapper.style.cssText,H=o.wrapper.offsetParent.getBoundingClientRect();o.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
46
46
  top: `+(r.clientY-H.top-5)+"px; left: "+(r.clientX-H.left-5)+`px;
47
47
  z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
48
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var K;g&&(K=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,K),a.input.reset(),c.somethingSelected()||(d.value=o.prevInput=" "),o.contextMenuPending=Z,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function ne(){if(d.selectionStart!=null){var me=c.somethingSelected(),Se="​"+(me?d.value:"");d.value="⇚",d.value=Se,o.prevInput=me?"":"​",d.selectionStart=1,d.selectionEnd=Se.length,a.selForContextMenu=c.doc.sel}}function Z(){if(o.contextMenuPending==Z&&(o.contextMenuPending=!1,o.wrapper.style.cssText=T,d.style.cssText=_,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&ne();var me=0,Se=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&o.prevInput=="​"?Yt(c,vm)(c):me++<10?a.detectingSelectAll=setTimeout(Se,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Se,200)}}if(h&&p>=9&&ne(),q){$i(r);var ce=function(){cn(window,"mouseup",ce),setTimeout(Z,20)};Be(window,"mouseup",ce)}else setTimeout(Z,50)},Ht.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},Ht.prototype.setUneditable=function(){},Ht.prototype.needsContentAttribute=!1;function yk(r,o){if(o=o?ee(o):{},o.value=r.value,!o.tabindex&&r.tabIndex&&(o.tabindex=r.tabIndex),!o.placeholder&&r.placeholder&&(o.placeholder=r.placeholder),o.autofocus==null){var c=ue(Je(r));o.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(Be(r.form,"submit",a),!o.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}o.finishInit=function(_){_.save=a,_.getTextArea=function(){return r},_.toTextArea=function(){_.toTextArea=isNaN,a(),r.parentNode.removeChild(_.getWrapperElement()),r.style.display="",r.form&&(cn(r.form,"submit",a),!o.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Ct(function(_){return r.parentNode.insertBefore(_,r.nextSibling)},o);return x}function bk(r){r.off=cn,r.on=Be,r.wheelEventPixels=C_,r.Doc=Tn,r.splitLines=lr,r.countColumn=J,r.findColumn=he,r.isWordChar=rt,r.Pass=G,r.signal=Pt,r.Line=os,r.changeEnd=Di,r.scrollbarModel=Gg,r.Pos=le,r.cmpPos=Le,r.modes=Qo,r.mimeModes=br,r.resolveMode=es,r.getMode=ts,r.modeExtensions=Ii,r.extendMode=ns,r.copyState=Br,r.startState=rs,r.innerMode=ul,r.commands=Pl,r.keyMap=fi,r.keyName=Im,r.isModifierKey=Mm,r.lookupKey=ys,r.normalizeKeyMap=X_,r.StringStream=Rt,r.SharedTextMarker=Ml,r.TextMarker=Hi,r.LineWidget=$l,r.e_preventDefault=un,r.e_stopPropagation=Yo,r.e_stop=$i,r.addClass=we,r.contains=ie,r.rmClass=A,r.keyNames=Bi}uk(Ct),pk(Ct);var wk="iter insert remove copy getEditor constructor".split(" ");for(var $c in Tn.prototype)Tn.prototype.hasOwnProperty($c)&&ge(wk,$c)<0&&(Ct.prototype[$c]=function(r){return function(){return r.apply(this.doc,arguments)}}(Tn.prototype[$c]));return mr(Tn),Ct.inputStyles={textarea:Ht,contenteditable:yt},Ct.defineMode=function(r){!Ct.defaults.mode&&r!="null"&&(Ct.defaults.mode=r),wr.apply(this,arguments)},Ct.defineMIME=xo,Ct.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(r,o){Ct.prototype[r]=o},Ct.defineDocExtension=function(r,o){Tn.prototype[r]=o},Ct.fromTextArea=yk,bk(Ct),Ct.version="5.65.18",Ct})}(ru)),ru.exports}var Cde=sl();const Ede=kp(Cde);var Z0={exports:{}},Q0;function g1(){return Q0||(Q0=1,function(e,t){(function(n){n(sl())})(function(n){n.defineMode("javascript",function(i,s){var l=i.indentUnit,u=s.statementIndent,f=s.jsonld,h=s.json||f,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function M(Kt){return{type:Kt,style:"keyword"}}var X=M("keyword a"),de=M("keyword b"),xe=M("keyword c"),le=M("keyword d"),Le=M("operator"),pt={type:"atom",style:"atom"};return{if:M("if"),while:X,with:X,else:de,do:de,try:de,finally:de,return:le,break:le,continue:le,new:M("new"),delete:xe,void:xe,throw:xe,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Le,typeof:Le,instanceof:Le,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:M("this"),class:M("class"),super:M("atom"),yield:xe,export:M("export"),import:M("import"),extends:xe,await:xe}}(),w=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function $(M){for(var X=!1,de,xe=!1;(de=M.next())!=null;){if(!X){if(de=="/"&&!xe)return;de=="["?xe=!0:xe&&de=="]"&&(xe=!1)}X=!X&&de=="\\"}}var C,E;function N(M,X,de){return C=M,E=de,X}function O(M,X){var de=M.next();if(de=='"'||de=="'")return X.tokenize=k(de),X.tokenize(M,X);if(de=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return N("number","number");if(de=="."&&M.match(".."))return N("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return N(de);if(de=="="&&M.eat(">"))return N("=>","operator");if(de=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return N("number","number");if(/\d/.test(de))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),N("number","number");if(de=="/")return M.eat("*")?(X.tokenize=z,z(M,X)):M.eat("/")?(M.skipToEnd(),N("comment","comment")):Yn(M,X,1)?($(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),N("regexp","string-2")):(M.eat("="),N("operator","operator",M.current()));if(de=="`")return X.tokenize=D,D(M,X);if(de=="#"&&M.peek()=="!")return M.skipToEnd(),N("meta","meta");if(de=="#"&&M.eatWhile(v))return N("variable","property");if(de=="<"&&M.match("!--")||de=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),N("comment","comment");if(w.test(de))return(de!=">"||!X.lexical||X.lexical.type!=">")&&(M.eat("=")?(de=="!"||de=="=")&&M.eat("="):/[<>*+\-|&?]/.test(de)&&(M.eat(de),de==">"&&M.eat(de))),de=="?"&&M.eat(".")?N("."):N("operator","operator",M.current());if(v.test(de)){M.eatWhile(v);var xe=M.current();if(X.lastType!="."){if(y.propertyIsEnumerable(xe)){var le=y[xe];return N(le.type,le.style,xe)}if(xe=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return N("async","keyword",xe)}return N("variable","variable",xe)}}function k(M){return function(X,de){var xe=!1,le;if(f&&X.peek()=="@"&&X.match(L))return de.tokenize=O,N("jsonld-keyword","meta");for(;(le=X.next())!=null&&!(le==M&&!xe);)xe=!xe&&le=="\\";return xe||(de.tokenize=O),N("string","string")}}function z(M,X){for(var de=!1,xe;xe=M.next();){if(xe=="/"&&de){X.tokenize=O;break}de=xe=="*"}return N("comment","comment")}function D(M,X){for(var de=!1,xe;(xe=M.next())!=null;){if(!de&&(xe=="`"||xe=="$"&&M.eat("{"))){X.tokenize=O;break}de=!de&&xe=="\\"}return N("quasi","string-2",M.current())}var oe="([{}])";function Q(M,X){X.fatArrowAt&&(X.fatArrowAt=null);var de=M.string.indexOf("=>",M.start);if(!(de<0)){if(g){var xe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,de));xe&&(de=xe.index)}for(var le=0,Le=!1,pt=de-1;pt>=0;--pt){var Kt=M.string.charAt(pt),_n=oe.indexOf(Kt);if(_n>=0&&_n<3){if(!le){++pt;break}if(--le==0){Kt=="("&&(Le=!0);break}}else if(_n>=3&&_n<6)++le;else if(v.test(Kt))Le=!0;else if(/["'\/`]/.test(Kt))for(;;--pt){if(pt==0)return;var is=M.string.charAt(pt-1);if(is==Kt&&M.string.charAt(pt-2)!="\\"){pt--;break}}else if(Le&&!le){++pt;break}}Le&&!le&&(X.fatArrowAt=pt)}}var W={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function q(M,X,de,xe,le,Le){this.indented=M,this.column=X,this.type=de,this.prev=le,this.info=Le,xe!=null&&(this.align=xe)}function U(M,X){if(!p)return!1;for(var de=M.localVars;de;de=de.next)if(de.name==X)return!0;for(var xe=M.context;xe;xe=xe.prev)for(var de=xe.vars;de;de=de.next)if(de.name==X)return!0}function A(M,X,de,xe,le){var Le=M.cc;for(I.state=M,I.stream=le,I.marked=null,I.cc=Le,I.style=X,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var pt=Le.length?Le.pop():h?ge:J;if(pt(de,xe)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return I.marked?I.marked:de=="variable"&&U(M,xe)?"variable-2":X}}}var I={state:null,marked:null,cc:null};function P(){for(var M=arguments.length-1;M>=0;M--)I.cc.push(arguments[M])}function S(){return P.apply(null,arguments),!0}function R(M,X){for(var de=X;de;de=de.next)if(de.name==M)return!0;return!1}function B(M){var X=I.state;if(I.marked="def",!!p){if(X.context){if(X.lexical.info=="var"&&X.context&&X.context.block){var de=ie(M,X.context);if(de!=null){X.context=de;return}}else if(!R(M,X.localVars)){X.localVars=new Pe(M,X.localVars);return}}s.globalVars&&!R(M,X.globalVars)&&(X.globalVars=new Pe(M,X.globalVars))}}function ie(M,X){if(X)if(X.block){var de=ie(M,X.prev);return de?de==X.prev?X:new we(de,X.vars,!0):null}else return R(M,X.vars)?X:new we(X.prev,new Pe(M,X.vars),!1);else return null}function ue(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function we(M,X,de){this.prev=M,this.vars=X,this.block=de}function Pe(M,X){this.name=M,this.next=X}var qe=new Pe("this",new Pe("arguments",null));function Ze(){I.state.context=new we(I.state.context,I.state.localVars,!1),I.state.localVars=qe}function Ke(){I.state.context=new we(I.state.context,I.state.localVars,!0),I.state.localVars=null}Ze.lex=Ke.lex=!0;function Je(){I.state.localVars=I.state.context.vars,I.state.context=I.state.context.prev}Je.lex=!0;function re(M,X){var de=function(){var xe=I.state,le=xe.indented;if(xe.lexical.type=="stat")le=xe.lexical.indented;else for(var Le=xe.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)le=Le.indented;xe.lexical=new q(le,I.stream.column(),M,null,xe.lexical,X)};return de.lex=!0,de}function V(){var M=I.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}V.lex=!0;function ee(M){function X(de){return de==M?S():M==";"||de=="}"||de==")"||de=="]"?P():S(X)}return X}function J(M,X){return M=="var"?S(re("vardef",X),Yo,ee(";"),V):M=="keyword a"?S(re("form"),G,J,V):M=="keyword b"?S(re("form"),J,V):M=="keyword d"?I.stream.match(/^\s*$/,!1)?S():S(re("stat"),fe,ee(";"),V):M=="debugger"?S(ee(";")):M=="{"?S(re("}"),Ke,Bt,V,Je):M==";"?S():M=="if"?(I.state.lexical.info=="else"&&I.state.cc[I.state.cc.length-1]==V&&I.state.cc.pop()(),S(re("form"),G,J,V,Zo)):M=="function"?S(lr):M=="for"?S(re("form"),Ke,Qa,J,Je,V):M=="class"||g&&X=="interface"?(I.marked="keyword",S(re("form",M=="class"?M:X),Qo,V)):M=="variable"?g&&X=="declare"?(I.marked="keyword",S(J)):g&&(X=="module"||X=="enum"||X=="type")&&I.stream.match(/^\s*\w/,!1)?(I.marked="keyword",X=="enum"?S(Oe):X=="type"?S(ec,ee("operator"),tt,ee(";")):S(re("form"),Sn,ee("{"),re("}"),Bt,V,V)):g&&X=="namespace"?(I.marked="keyword",S(re("form"),ge,J,V)):g&&X=="abstract"?(I.marked="keyword",S(J)):S(re("stat"),Ve):M=="switch"?S(re("form"),G,ee("{"),re("}","switch"),Ke,Bt,V,V,Je):M=="case"?S(ge,ee(":")):M=="default"?S(ee(":")):M=="catch"?S(re("form"),Ze,ae,J,V,Je):M=="export"?S(re("stat"),es,V):M=="import"?S(re("stat"),Ii,V):M=="async"?S(J):X=="@"?S(ge,J):P(re("stat"),ge,ee(";"),V)}function ae(M){if(M=="(")return S(yr,ee(")"))}function ge(M,X){return Y(M,X,!1)}function F(M,X){return Y(M,X,!0)}function G(M){return M!="("?P():S(re(")"),fe,ee(")"),V)}function Y(M,X,de){if(I.state.fatArrowAt==I.stream.start){var xe=de?be:ve;if(M=="(")return S(Ze,re(")"),lt(yr,")"),V,ee("=>"),xe,Je);if(M=="variable")return P(Ze,Sn,ee("=>"),xe,Je)}var le=de?he:pe;return W.hasOwnProperty(M)?S(le):M=="function"?S(lr,le):M=="class"||g&&X=="interface"?(I.marked="keyword",S(re("form"),wf,V)):M=="keyword c"||M=="async"?S(de?F:ge):M=="("?S(re(")"),fe,ee(")"),V,le):M=="operator"||M=="spread"?S(de?F:ge):M=="["?S(re("]"),Rt,V,le):M=="{"?Xt(st,"}",null,le):M=="quasi"?P(Ce,le):M=="new"?S(He(de)):S()}function fe(M){return M.match(/[;\}\)\],]/)?P():P(ge)}function pe(M,X){return M==","?S(fe):he(M,X,!1)}function he(M,X,de){var xe=de==!1?pe:he,le=de==!1?ge:F;if(M=="=>")return S(Ze,de?be:ve,Je);if(M=="operator")return/\+\+|--/.test(X)||g&&X=="!"?S(xe):g&&X=="<"&&I.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(re(">"),lt(tt,">"),V,xe):X=="?"?S(ge,ee(":"),le):S(le);if(M=="quasi")return P(Ce,xe);if(M!=";"){if(M=="(")return Xt(F,")","call",xe);if(M==".")return S(rt,xe);if(M=="[")return S(re("]"),fe,ee("]"),V,xe);if(g&&X=="as")return I.marked="keyword",S(tt,xe);if(M=="regexp")return I.state.lastType=I.marked="operator",I.stream.backUp(I.stream.pos-I.stream.start-1),S(le)}}function Ce(M,X){return M!="quasi"?P():X.slice(X.length-2)!="${"?S(Ce):S(fe,Ee)}function Ee(M){if(M=="}")return I.marked="string-2",I.state.tokenize=D,S(Ce)}function ve(M){return Q(I.stream,I.state),P(M=="{"?J:ge)}function be(M){return Q(I.stream,I.state),P(M=="{"?J:F)}function He(M){return function(X){return X=="."?S(M?De:Me):X=="variable"&&g?S(Hn,M?he:pe):P(M?F:ge)}}function Me(M,X){if(X=="target")return I.marked="keyword",S(pe)}function De(M,X){if(X=="target")return I.marked="keyword",S(he)}function Ve(M){return M==":"?S(V,J):P(pe,ee(";"),V)}function rt(M){if(M=="variable")return I.marked="property",S()}function st(M,X){if(M=="async")return I.marked="property",S(st);if(M=="variable"||I.style=="keyword"){if(I.marked="property",X=="get"||X=="set")return S(ut);var de;return g&&I.state.fatArrowAt==I.stream.start&&(de=I.stream.match(/^\s*:\s*/,!1))&&(I.state.fatArrowAt=I.stream.pos+de[0].length),S($t)}else{if(M=="number"||M=="string")return I.marked=f?"property":I.style+" property",S($t);if(M=="jsonld-keyword")return S($t);if(g&&ue(X))return I.marked="keyword",S(st);if(M=="[")return S(ge,Dn,ee("]"),$t);if(M=="spread")return S(F,$t);if(X=="*")return I.marked="keyword",S(st);if(M==":")return P($t)}}function ut(M){return M!="variable"?P($t):(I.marked="property",S(lr))}function $t(M){if(M==":")return S(F);if(M=="(")return P(lr)}function lt(M,X,de){function xe(le,Le){if(de?de.indexOf(le)>-1:le==","){var pt=I.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Kt,_n){return Kt==X||_n==X?P():P(M)},xe)}return le==X||Le==X?S():de&&de.indexOf(";")>-1?P(M):S(ee(X))}return function(le,Le){return le==X||Le==X?S():P(M,xe)}}function Xt(M,X,de){for(var xe=3;xe<arguments.length;xe++)I.cc.push(arguments[xe]);return S(re(X,de),lt(M,X),V)}function Bt(M){return M=="}"?S():P(J,Bt)}function Dn(M,X){if(g){if(M==":")return S(tt);if(X=="?")return S(Dn)}}function Hr(M,X){if(g&&(M==":"||X=="in"))return S(tt)}function Ft(M){if(g&&M==":")return I.stream.match(/^\s*\w+\s+is\b/,!1)?S(ge,Fn,tt):S(tt)}function Fn(M,X){if(X=="is")return I.marked="keyword",S()}function tt(M,X){if(X=="keyof"||X=="typeof"||X=="infer"||X=="readonly")return I.marked="keyword",S(X=="typeof"?F:tt);if(M=="variable"||X=="void")return I.marked="type",S(sr);if(X=="|"||X=="&")return S(tt);if(M=="string"||M=="number"||M=="atom")return S(sr);if(M=="[")return S(re("]"),lt(tt,"]",","),V,sr);if(M=="{")return S(re("}"),Be,V,sr);if(M=="(")return S(lt(Ot,")"),Za,sr);if(M=="<")return S(lt(tt,">"),tt);if(M=="quasi")return P(cn,sr)}function Za(M){if(M=="=>")return S(tt)}function Be(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(Be):P(oi,Be)}function oi(M,X){if(M=="variable"||I.style=="keyword")return I.marked="property",S(oi);if(X=="?"||M=="number"||M=="string")return S(oi);if(M==":")return S(tt);if(M=="[")return S(ee("variable"),Hr,ee("]"),oi);if(M=="(")return P(Ni,oi);if(!M.match(/[;\}\)\],]/))return S()}function cn(M,X){return M!="quasi"?P():X.slice(X.length-2)!="${"?S(cn):S(tt,Pt)}function Pt(M){if(M=="}")return I.marked="string-2",I.state.tokenize=D,S(cn)}function Ot(M,X){return M=="variable"&&I.stream.match(/^\s*[?:]/,!1)||X=="?"?S(Ot):M==":"?S(tt):M=="spread"?S(Ot):P(tt)}function sr(M,X){if(X=="<")return S(re(">"),lt(tt,">"),V,sr);if(X=="|"||M=="."||X=="&")return S(tt);if(M=="[")return S(tt,ee("]"),sr);if(X=="extends"||X=="implements")return I.marked="keyword",S(tt);if(X=="?")return S(tt,ee(":"),tt)}function Hn(M,X){if(X=="<")return S(re(">"),lt(tt,">"),V,sr)}function mr(){return P(tt,un)}function un(M,X){if(X=="=")return S(tt)}function Yo(M,X){return X=="enum"?(I.marked="keyword",S(Oe)):P(Sn,Dn,vr,bf)}function Sn(M,X){if(g&&ue(X))return I.marked="keyword",S(Sn);if(M=="variable")return B(X),S();if(M=="spread")return S(Sn);if(M=="[")return Xt(al,"]");if(M=="{")return Xt($i,"}")}function $i(M,X){return M=="variable"&&!I.stream.match(/^\s*:/,!1)?(B(X),S(vr)):(M=="variable"&&(I.marked="property"),M=="spread"?S(Sn):M=="}"?P():M=="["?S(ge,ee("]"),ee(":"),$i):S(ee(":"),Sn,vr))}function al(){return P(Sn,vr)}function vr(M,X){if(X=="=")return S(F)}function bf(M){if(M==",")return S(Yo)}function Zo(M,X){if(M=="keyword b"&&X=="else")return S(re("form","else"),J,V)}function Qa(M,X){if(X=="await")return S(Qa);if(M=="(")return S(re(")"),cl,V)}function cl(M){return M=="var"?S(Yo,Mi):M=="variable"?S(Mi):P(Mi)}function Mi(M,X){return M==")"?S():M==";"?S(Mi):X=="in"||X=="of"?(I.marked="keyword",S(ge,Mi)):P(ge,Mi)}function lr(M,X){if(X=="*")return I.marked="keyword",S(lr);if(M=="variable")return B(X),S(lr);if(M=="(")return S(Ze,re(")"),lt(yr,")"),V,Ft,J,Je);if(g&&X=="<")return S(re(">"),lt(mr,">"),V,lr)}function Ni(M,X){if(X=="*")return I.marked="keyword",S(Ni);if(M=="variable")return B(X),S(Ni);if(M=="(")return S(Ze,re(")"),lt(yr,")"),V,Ft,Je);if(g&&X=="<")return S(re(">"),lt(mr,">"),V,Ni)}function ec(M,X){if(M=="keyword"||M=="variable")return I.marked="type",S(ec);if(X=="<")return S(re(">"),lt(mr,">"),V)}function yr(M,X){return X=="@"&&S(ge,yr),M=="spread"?S(yr):g&&ue(X)?(I.marked="keyword",S(yr)):g&&M=="this"?S(Dn,vr):P(Sn,Dn,vr)}function wf(M,X){return M=="variable"?Qo(M,X):br(M,X)}function Qo(M,X){if(M=="variable")return B(X),S(br)}function br(M,X){if(X=="<")return S(re(">"),lt(mr,">"),V,br);if(X=="extends"||X=="implements"||g&&M==",")return X=="implements"&&(I.marked="keyword"),S(g?tt:ge,br);if(M=="{")return S(re("}"),wr,V)}function wr(M,X){if(M=="async"||M=="variable"&&(X=="static"||X=="get"||X=="set"||g&&ue(X))&&I.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return I.marked="keyword",S(wr);if(M=="variable"||I.style=="keyword")return I.marked="property",S(xo,wr);if(M=="number"||M=="string")return S(xo,wr);if(M=="[")return S(ge,Dn,ee("]"),xo,wr);if(X=="*")return I.marked="keyword",S(wr);if(g&&M=="(")return P(Ni,wr);if(M==";"||M==",")return S(wr);if(M=="}")return S();if(X=="@")return S(ge,wr)}function xo(M,X){if(X=="!"||X=="?")return S(xo);if(M==":")return S(tt,vr);if(X=="=")return S(F);var de=I.state.lexical.prev,xe=de&&de.info=="interface";return P(xe?Ni:lr)}function es(M,X){return X=="*"?(I.marked="keyword",S(rs,ee(";"))):X=="default"?(I.marked="keyword",S(ge,ee(";"))):M=="{"?S(lt(ts,"}"),rs,ee(";")):P(J)}function ts(M,X){if(X=="as")return I.marked="keyword",S(ee("variable"));if(M=="variable")return P(F,ts)}function Ii(M){return M=="string"?S():M=="("?P(ge):M=="."?P(pe):P(ns,Br,rs)}function ns(M,X){return M=="{"?Xt(ns,"}"):(M=="variable"&&B(X),X=="*"&&(I.marked="keyword"),S(ul))}function Br(M){if(M==",")return S(ns,Br)}function ul(M,X){if(X=="as")return I.marked="keyword",S(ns)}function rs(M,X){if(X=="from")return I.marked="keyword",S(ge)}function Rt(M){return M=="]"?S():P(lt(F,"]"))}function Oe(){return P(re("form"),Sn,ee("{"),re("}"),lt(si,"}"),V,V)}function si(){return P(Sn,vr)}function fl(M,X){return M.lastType=="operator"||M.lastType==","||w.test(X.charAt(0))||/[,.]/.test(X.charAt(0))}function Yn(M,X,de){return X.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(X.lastType)||X.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(de||0)))}return{startState:function(M){var X={tokenize:O,lastType:"sof",cc:[],lexical:new q((M||0)-l,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:M||0};return s.globalVars&&typeof s.globalVars=="object"&&(X.globalVars=s.globalVars),X},token:function(M,X){if(M.sol()&&(X.lexical.hasOwnProperty("align")||(X.lexical.align=!1),X.indented=M.indentation(),Q(M,X)),X.tokenize!=z&&M.eatSpace())return null;var de=X.tokenize(M,X);return C=="comment"?de:(X.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,A(X,de,C,E,M))},indent:function(M,X){if(M.tokenize==z||M.tokenize==D)return n.Pass;if(M.tokenize!=O)return 0;var de=X&&X.charAt(0),xe=M.lexical,le;if(!/^\s*else\b/.test(X))for(var Le=M.cc.length-1;Le>=0;--Le){var pt=M.cc[Le];if(pt==V)xe=xe.prev;else if(pt!=Zo&&pt!=Je)break}for(;(xe.type=="stat"||xe.type=="form")&&(de=="}"||(le=M.cc[M.cc.length-1])&&(le==pe||le==he)&&!/^[,\.=+\-*:?[\(]/.test(X));)xe=xe.prev;u&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var Kt=xe.type,_n=de==Kt;return Kt=="vardef"?xe.indented+(M.lastType=="operator"||M.lastType==","?xe.info.length+1:0):Kt=="form"&&de=="{"?xe.indented:Kt=="form"?xe.indented+l:Kt=="stat"?xe.indented+(fl(M,X)?u||l:0):xe.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?xe.indented+(/^(?:case|default)\b/.test(X)?l:2*l):xe.align?xe.column+(_n?0:1):xe.indented+(_n?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:f,jsonMode:h,expressionAllowed:Yn,skipExpression:function(M){A(M,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Z0.exports}g1();var ey={exports:{}},ty;function m1(){return ty||(ty=1,function(e,t){(function(n){n(sl())})(function(n){var i={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};n.defineMode("xml",function(l,u){var f=l.indentUnit,h={},p=u.htmlMode?i:s;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var v,y;function w(S,R){function B(we){return R.tokenize=we,we(S,R)}var ie=S.next();if(ie=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(C("atom","]]>")):null:S.match("--")?B(C("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=C("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=L,"tag bracket");if(ie=="&"){var ue;return S.eat("#")?S.eat("x")?ue=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ue=S.eatWhile(/[\d]/)&&S.eat(";"):ue=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ue?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function L(S,R){var B=S.next();if(B==">"||B=="/"&&S.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=D,R.tagName=R.tagStart=null;var ie=R.tokenize(S,R);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=$(B),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function $(S){var R=function(B,ie){for(;!B.eol();)if(B.next()==S){ie.tokenize=L;break}return"string"};return R.isInAttribute=!0,R}function C(S,R){return function(B,ie){for(;!B.eol();){if(B.match(R)){ie.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var ie;(ie=R.next())!=null;){if(ie=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(ie==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function N(S){return S&&S.toLowerCase()}function O(S,R,B){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function k(S){S.context&&(S.context=S.context.prev)}function z(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(N(B))||!h.contextGrabbers[N(B)].hasOwnProperty(N(R))))return;k(S)}}function D(S,R,B){return S=="openTag"?(B.tagStart=R.column(),oe):S=="closeTag"?Q:D}function oe(S,R,B){return S=="word"?(B.tagName=R.current(),y="tag",U):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",U(S,R,B)):(y="error",oe)}function Q(S,R,B){if(S=="word"){var ie=R.current();return B.context&&B.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(N(B.context.tagName))&&k(B),B.context&&B.context.tagName==ie||h.matchClosing===!1?(y="tag",W):(y="tag error",q)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",W(S,R,B)):(y="error",q)}function W(S,R,B){return S!="endTag"?(y="error",W):(k(B),D)}function q(S,R,B){return y="error",W(S,R,B)}function U(S,R,B){if(S=="word")return y="attribute",A;if(S=="endTag"||S=="selfcloseTag"){var ie=B.tagName,ue=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(N(ie))?z(B,ie):(z(B,ie),B.context=new O(B,ie,ue==B.indented)),D}return y="error",U}function A(S,R,B){return S=="equals"?I:(h.allowMissing||(y="error"),U(S,R,B))}function I(S,R,B){return S=="string"?P:S=="word"&&h.allowUnquoted?(y="string",U):(y="error",U(S,R,B))}function P(S,R,B){return S=="string"?P:U(S,R,B)}return{startState:function(S){var R={tokenize:w,state:D,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;v=null;var B=R.tokenize(S,R);return(B||v)&&B!="comment"&&(y=null,R.state=R.state(v||B,S,R),y&&(B=y=="error"?B+" error":y)),B},indent:function(S,R,B){var ie=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ie&&ie.noIndent)return n.Pass;if(S.tokenize!=L&&S.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ue=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ue&&ue[1])for(;ie;)if(ie.tagName==ue[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(N(ie.tagName)))ie=ie.prev;else break;else if(ue)for(;ie;){var we=h.contextGrabbers[N(ie.tagName)];if(we&&we.hasOwnProperty(N(ue[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==I&&(S.state=U)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],B=S.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),ey.exports}m1();var ny={exports:{}},ry;function Ade(){return ry||(ry=1,function(e,t){(function(n){n(sl(),m1(),g1())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function s(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&s(l.prev))}n.defineMode("jsx",function(l,u){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=n.getMode(l,u&&u.base||"javascript");function p(w){var L=w.tagName;w.tagName=null;var $=f.indent(w,"","");return w.tagName=L,$}function g(w,L){return L.context.mode==f?v(w,L,L.context):y(w,L,L.context)}function v(w,L,$){if($.depth==2)return w.match(/^.*?\*\//)?$.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute($.state);var C=p($.state),E=$.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=l.indentUnit:$.prev.state.lexical&&(C=$.prev.state.lexical.indented)}else $.depth==1&&(C+=l.indentUnit);return L.context=new i(n.startState(h,C),h,0,L.context),null}if($.depth==1){if(w.peek()=="<")return f.skipAttribute($.state),L.context=new i(n.startState(f,p($.state)),f,0,L.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return $.depth=2,g(w,L)}var N=f.token(w,$.state),O=w.current(),k;return/\btag\b/.test(N)?/>$/.test(O)?$.state.context?$.depth=0:L.context=L.context.prev:/^</.test(O)&&($.depth=1):!N&&(k=O.indexOf("{"))>-1&&w.backUp(O.length-k),N}function y(w,L,$){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,$.state))return L.context=new i(n.startState(f,h.indent($.state,"","")),f,0,L.context),h.skipExpression($.state),null;var C=h.token(w,$.state);if(!C&&$.depth!=null){var E=w.current();E=="{"?$.depth++:E=="}"&&--$.depth==0&&(L.context=L.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,L,$){return w.context.mode.indent(w.context.state,L,$)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),ny.exports}Ade();var iy={exports:{}},oy;function Lde(){return oy||(oy=1,function(e,t){(function(n){n(sl())})(function(n){n.defineOption("placeholder","",function(p,g,v){var y=v&&v!=n.Init;if(g&&!y)p.on("blur",u),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!g&&y){p.off("blur",u),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&u(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){i(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):i(p)},20)}function u(p){h(p)&&s(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),iy.exports}Lde();var sy={exports:{}},ly;function $de(){return ly||(ly=1,function(e,t){(function(n){n(sl())})(function(n){function i(u,f,h){this.orientation=f,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=u+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(v){if(v.which!=1)return;n.e_preventDefault(v);var y=p.orientation=="horizontal"?"pageX":"pageY",w=v[y],L=p.pos;function $(){n.off(document,"mousemove",C),n.off(document,"mouseup",$)}function C(E){if(E.which!=1)return $();p.moveTo(L+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",C),n.on(document,"mouseup",$)}),n.on(this.node,"click",function(v){n.e_preventDefault(v);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<y.left?-1:v.clientX>y.right?1:0:w=v.clientY<y.top?-1:v.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var y=n.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(v)}n.on(this.node,"mousewheel",g),n.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(u,f){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!f&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var s=10;i.prototype.update=function(u,f,h){var p=this.screen!=f||this.total!=u||this.size!=h;p&&(this.screen=f,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,f,h){this.addClass=u,this.horiz=new i(u,"horizontal",h),f(this.horiz.node),this.vert=new i(u,"vertical",h),f(this.vert.node),this.width=null}l.prototype.update=function(u){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var h=this.width||0,p=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},n.scrollbarModel.simple=function(u,f){return new l("CodeMirror-simplescroll",u,f)},n.scrollbarModel.overlay=function(u,f){return new l("CodeMirror-overlayscroll",u,f)}})}()),sy.exports}$de();const Mn=rn();function Mde(e,t,n={}){const i=Ede.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let s=!1;return i.on("change",()=>{if(s){s=!1;return}t.value=i.getValue()}),St(t,l=>{if(l!==i.getValue()){s=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),Zu(()=>{Mn.value=void 0}),ap(i)}async function Nde(e){var t;hf({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null,column:null})}function Ide(e,t){hf({file:e,column:t.column-1,line:t.line,view:"editor",test:js.value})}function Pde(e,t){if(!t.location)return;const{line:n,column:i,file:s}=t.location;if(e.file.filepath!==s)return Pp(s,n,i);hf({file:e.file.id,column:i-1,line:n,view:"editor",test:js.value})}const ll=lM(),Ode=U$(ll),Rde={class:"scrolls scrolls-rounded task-error"},zde=["onClickPassive"],Dde=["innerHTML"],Fde=at({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const i=_e(()=>Op(ll.value)),s=_e(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),l=_e(()=>t.error.diff?i.value.toHtml(la(t.error.diff)):void 0);function u(f){return _fe(f.file,t.filename)?Ide(t.fileId,f):Pp(f.file,f.line,f.column)}return(f,h)=>{const p=Dr("tooltip");return se(),ye("div",Rde,[te("pre",null,[te("b",null,Re(f.error.name),1),dt(": "+Re(f.error.message),1)]),(se(!0),ye(nt,null,hr(f.error.stacks,(g,v)=>(se(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[te("pre",null," - "+Re(n(g.file))+":"+Re(g.line)+":"+Re(g.column),1),ct(te("div",{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:y=>u(g)},null,40,zde),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),j(s)?(se(),ye("pre",{key:0,"data-testid":"diff",innerHTML:j(l)},null,8,Dde)):je("",!0)])}}}),v1=ni(Fde,[["__scopeId","data-v-e0212169"]]);function y1(e){var n;const t=(n=e.meta)==null?void 0:n.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function b1(){const e=Ue(!1),t=Ue(Date.now()),n=Ue(),i=_e(()=>{var f;const l=(f=n.value)==null?void 0:f.id,u=t.value;return l?`/__screenshot-error?id=${encodeURIComponent(l)}&t=${u}`:void 0});function s(l){n.value=l,t.value=Date.now(),e.value=!0}return{currentTask:n,showScreenshot:e,currentScreenshotUrl:i,showScreenshotModal:s}}const Hde={"h-full":"",class:"scrolls"},Bde={key:0},Wde={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},jde={flex:"~ gap-2 items-center"},qde={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ude=["innerHTML"],Vde={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Gde={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Xde={class:"flex gap-2","overflow-hidden":""},Kde={class:"font-bold","ws-nowrap":"",truncate:""},Jde=["href","download"],Yde=["onClick"],Zde={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Qde={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},ehe={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},the={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},nhe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},rhe=at({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=_e(()=>{var v;return!t.test.result||!((v=t.test.result.errors)!=null&&v.length)?null:n1(ll.value,[t.test])[0]});function i(v){return Pde(t.test,v)}const{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=b1();function h(v){return`${ix(el.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=_e(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,y)=>{var O,k,z;const w=ri,L=v1,$=kde,C=d1,E=Dp,N=Dr("tooltip");return se(),ye("div",Hde,[j(n)?(se(),ye("div",Bde,[te("div",Wde,[te("div",jde,[j(It)&&((O=v.test.meta)!=null&&O.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(w,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:y[0]||(y[0]=D=>j(u)(v.test))},null,512),[[N,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(w,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:y[1]||(y[1]=D=>j(y1)(v.test))},null,512),[[N,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(k=v.test.result)!=null&&k.htmlError?(se(),ye("div",qde,[te("pre",{innerHTML:v.test.result.htmlError},null,8,Ude)])):(z=v.test.result)!=null&&z.errors?(se(!0),ye(nt,{key:1},hr(v.test.result.errors,(D,oe)=>(se(),Ye(L,{key:oe,"file-id":v.test.file.id,error:D,filename:v.test.file.name,root:j(el).root},null,8,["file-id","error","filename","root"]))),128)):je("",!0)])])):(se(),ye("div",Vde," All tests passed in this file ")),v.test.annotations.length?(se(),ye(nt,{key:2},[y[5]||(y[5]=te("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),ye(nt,null,hr(v.test.annotations,D=>{var oe;return se(),ye("div",{key:D.type+D.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[te("div",Gde,[te("div",Xde,[te("span",Kde,Re(D.type),1),D.attachment&&!((oe=D.attachment.contentType)!=null&&oe.startsWith("image/"))?(se(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:j(Pu)(D.attachment),download:j(p1)(D.message,D.attachment.contentType)},y[4]||(y[4]=[te("span",{class:"i-carbon:download block"},null,-1),dt(" Download ")]),8,Jde)):je("",!0)]),te("div",null,[D.location&&D.location.file===v.test.file.filepath?ct((se(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:Q=>i(D)},[dt(Re(h(D.location)),1)],8,Yde)),[[N,"Open in Editor",void 0,{bottom:!0}]]):D.location&&D.location.file!==v.test.file.filepath?(se(),ye("span",Zde,Re(h(D.location)),1)):je("",!0)])]),te("div",Qde,Re(D.message),1),Ie($,{annotation:D},null,8,["annotation"])])}),128))],64)):je("",!0),j(g).length?(se(),ye(nt,{key:3},[y[6]||(y[6]=te("h1",{"m-2":""}," Test Meta ",-1)),te("div",ehe,[(se(!0),ye(nt,null,hr(j(g),([D,oe])=>(se(),ye(nt,{key:D},[te("div",the,Re(D),1),te("pre",nhe,Re(oe),1)],64))),128))])],64)):je("",!0),j(It)?(se(),Ye(E,{key:4,modelValue:j(l),"onUpdate:modelValue":y[3]||(y[3]=D=>kt(l)?l.value=D:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(mp,{key:0},{default:it(()=>[Ie(C,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:y[2]||(y[2]=D=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),ihe=ni(rhe,[["__scopeId","data-v-efadcc09"]]),ohe={"h-full":"",class:"scrolls"},she=["id"],lhe={flex:"~ gap-2 items-center"},ahe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},che=["innerHTML"],uhe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},fhe=at({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(h,p){var g;return((g=h.result)==null?void 0:g.state)!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>n(v,p+1))]}const i=_e(()=>{var y,w;const h=t.file,p=((y=h.tasks)==null?void 0:y.flatMap(L=>n(L,0)))??[],g=h.result;if((w=g==null?void 0:g.errors)==null?void 0:w[0]){const L={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(L)}return p.length>0?n1(ll.value,p):p}),{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=b1();return(h,p)=>{const g=ri,v=v1,y=d1,w=Dp,L=Dr("tooltip");return se(),ye("div",ohe,[j(i).length?(se(!0),ye(nt,{key:0},hr(j(i),$=>{var C,E,N,O;return se(),ye("div",{id:$.id,key:$.id},[te("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:nn({"margin-left":`${(C=$.result)!=null&&C.htmlError?.5:2*$.level+.5}rem`})},[te("div",lhe,[te("span",null,Re($.name),1),j(It)&&((E=$.meta)!=null&&E.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(g,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:k=>j(u)($)},null,8,["onClick"]),[[L,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(g,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:k=>j(y1)($)},null,8,["onClick"]),[[L,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(N=$.result)!=null&&N.htmlError?(se(),ye("div",ahe,[te("pre",{innerHTML:$.result.htmlError},null,8,che)])):(O=$.result)!=null&&O.errors?(se(!0),ye(nt,{key:1},hr($.result.errors,(k,z)=>(se(),Ye(v,{key:z,error:k,filename:h.file.name,root:j(el).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):je("",!0)],4)],8,she)}),128)):(se(),ye("div",uhe," All tests passed in this file ")),j(It)?(se(),Ye(w,{key:2,modelValue:j(l),"onUpdate:modelValue":p[1]||(p[1]=$=>kt(l)?l.value=$:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(mp,{key:0},{default:it(()=>[Ie(y,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:p[0]||(p[0]=$=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),dhe=ni(fhe,[["__scopeId","data-v-d1b5950e"]]),hhe={border:"b base","p-4":""},phe=["innerHTML"],ghe=at({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(se(),ye("div",hhe,[te("div",{"text-xs":"","mb-1":"",class:ot(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Re(t(n.time))+" | "+Re(n.taskName)+" | "+Re(n.type),3),te("pre",{"data-type":"html",innerHTML:n.content},null,8,phe)]))}}),mhe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},vhe={key:1,p6:""},yhe=at({__name:"ViewConsoleOutput",setup(e){const t=_e(()=>{const i=u1.value;if(i){const s=Op(ll.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:s.toHtml(la(h))}))}});function n(i){const s=i&&ht.state.idMap.get(i);return s&&"filepath"in s?s.name:(s?s$(s).slice(1).join(" > "):"-")||"-"}return(i,s)=>{var u;const l=ghe;return(u=j(t))!=null&&u.length?(se(),ye("div",mhe,[(se(!0),ye(nt,null,hr(j(t),({taskId:f,type:h,time:p,content:g})=>(se(),ye("div",{key:f,"font-mono":""},[Ie(l,{"task-name":n(f),type:h,time:p,content:g},null,8,["task-name","type","time","content"])]))),128))])):(se(),ye("div",vhe,s[0]||(s[0]=[dt(" Log something in your test and it would print here. (e.g. "),te("pre",{inline:""},"console.log(foo)",-1),dt(") ")])))}}}),w1=at({__name:"CodeMirrorContainer",props:ga({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ga(["save"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=ef(e,"modelValue"),s=PT(),l={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}},u=Ue();return bo(async()=>{const f=Mde(u,i,{...s,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||n("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||n("save",h.getValue())}}});f.setSize("100%","100%"),f.clearHistory(),Mn.value=f,setTimeout(()=>Mn.value.refresh(),100)}),(f,h)=>(se(),ye("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",f.saving?"codemirror-busy":void 0])},[te("textarea",{ref_key:"el",ref:u},null,512)],2))}}),bhe=at({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,s=Ue(""),l=rn(void 0),u=Ue(!1),f=Ue(!0),h=Ue(!1),p=Ue();St(()=>n.file,async()=>{var W;if(!h.value){f.value=!0;try{if(!n.file||!((W=n.file)!=null&&W.filepath)){s.value="",l.value=s.value,u.value=!1,f.value=!1;return}s.value=await ht.rpc.readTestFile(n.file.filepath)||"",l.value=s.value,u.value=!1}catch(q){console.error("cannot fetch file",q)}await Et(),f.value=!1}},{immediate:!0}),St(()=>[f.value,h.value,n.file,Kx.value,Jx.value],([W,q,U,A,I])=>{!W&&!q&&(A!=null?Et(()=>{var R;const P=p.value,S=P??{line:(A??1)-1,ch:I??0};P?p.value=void 0:((R=Mn.value)==null||R.scrollIntoView(S,100),Et(()=>{var B,ie;(B=Mn.value)==null||B.focus(),(ie=Mn.value)==null||ie.setCursor(S)}))}):Et(()=>{var P;(P=Mn.value)==null||P.focus()}))},{flush:"post"});const g=_e(()=>{var W,q;return((q=(W=n.file)==null?void 0:W.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),v=Ue(),y=_e(()=>{var U;const W=[];function q(A){var I;(I=A.result)!=null&&I.errors&&W.push(...A.result.errors),A.type==="suite"&&A.tasks.forEach(q)}return(U=n.file)==null||U.tasks.forEach(q),W}),w=_e(()=>{var U;const W=[];function q(A){A.type==="test"&&W.push(...A.annotations),A.type==="suite"&&A.tasks.forEach(q)}return(U=n.file)==null||U.tasks.forEach(q),W}),L=[],$=[],C=[],E=Ue(!1);function N(){C.forEach(([W,q,U])=>{W.removeEventListener("click",q),U()}),C.length=0}Rx(v,()=>{var W;(W=Mn.value)==null||W.refresh()});function O(){u.value=l.value!==Mn.value.getValue()}St(u,W=>{i("draft",W)},{immediate:!0});function k(W){const q=((W==null?void 0:W.stacks)||[]).filter(R=>{var B;return R.file&&R.file===((B=n.file)==null?void 0:B.filepath)}),U=q==null?void 0:q[0];if(!U)return;const A=document.createElement("div");A.className="op80 flex gap-x-2 items-center";const I=document.createElement("pre");I.className="c-red-600 dark:c-red-400",I.textContent=`${" ".repeat(U.column)}^ ${W.name}: ${(W==null?void 0:W.message)||""}`,A.appendChild(I);const P=document.createElement("span");P.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",P.tabIndex=0,P.ariaLabel="Open in Editor",Ww(P,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Pp(U.file,U.line,U.column)};P.addEventListener("click",S),A.appendChild(P),C.push([P,S,()=>Sp(P)]),$.push(Mn.value.addLineClass(U.line-1,"wrap","bg-red-500/10")),L.push(Mn.value.addLineWidget(U.line-1,A))}function z(W){var B,ie;if(!W.location)return;const{line:q,file:U}=W.location;if(U!==((B=n.file)==null?void 0:B.filepath))return;const A=document.createElement("div");A.classList.add("wrap","bg-active","py-3","px-6","my-1"),A.role="note";const I=document.createElement("div");I.classList.add("block","text-black","dark:text-white");const P=document.createElement("span");P.textContent=`${W.type}: `,P.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=W.message.replace(/[^\r]\n/,`\r
49
- `),I.append(P,S),A.append(I);const R=W.attachment;if(R!=null&&R.path||R!=null&&R.body)if((ie=R.contentType)!=null&&ie.startsWith("image/")){const ue=document.createElement("a"),we=document.createElement("img");ue.classList.add("inline-block","mt-3"),ue.style.maxWidth="50vw";const Pe=R.path||R.body;typeof Pe=="string"&&(Pe.startsWith("http://")||Pe.startsWith("https://"))?(we.setAttribute("src",Pe),ue.referrerPolicy="no-referrer"):we.setAttribute("src",Pu(R)),ue.target="_blank",ue.href=we.src,ue.append(we),A.append(ue)}else{const ue=document.createElement("a");ue.href=Pu(R),ue.download=p1(W.message,R.contentType),ue.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const we=document.createElement("div");we.classList.add("i-carbon:download","block");const Pe=document.createElement("span");Pe.textContent="Download",ue.append(we,Pe),A.append(ue)}L.push(Mn.value.addLineWidget(q-1,A))}const{pause:D,resume:oe}=St([Mn,y,w,$s],([W,q,U,A])=>{if(!W){L.length=0,$.length=0,N();return}A&&(W.off("changes",O),N(),L.forEach(I=>I.clear()),$.forEach(I=>W==null?void 0:W.removeLineClass(I,"wrap")),L.length=0,$.length=0,setTimeout(()=>{q.forEach(k),U.forEach(z),E.value||W.clearHistory(),W.on("changes",O)},100))},{flush:"post"});$p(()=>[$s.value,h.value,p.value],([W,q],U)=>{var A;W&&!q&&U&&U[2]&&((A=Mn.value)==null||A.setCursor(U[2]))},{debounce:100,flush:"post"});async function Q(W){if(h.value)return;D(),h.value=!0,await Et();const q=Mn.value;q&&(q.setOption("readOnly",!0),await Et(),q.refresh()),p.value=q==null?void 0:q.getCursor(),q==null||q.off("changes",O),N(),L.forEach(U=>U.clear()),$.forEach(U=>q==null?void 0:q.removeLineClass(U,"wrap")),L.length=0,$.length=0;try{E.value=!0,await ht.rpc.saveTestFile(n.file.filepath,W),l.value=W,u.value=!1}catch(U){console.error("error saving file",U)}E.value||q==null||q.clearHistory();try{await R0($s).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await R0($s).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(k),w.value.forEach(z),q==null||q.on("changes",O),h.value=!1,await Et(),q&&(q.setOption("readOnly",!1),await Et(),q.refresh()),oe()}return Ha(N),(W,q)=>{const U=w1;return se(),Ye(U,_i({ref_key:"editor",ref:v,modelValue:j(s),"onUpdate:modelValue":q[0]||(q[0]=A=>kt(s)?s.value=A:null),"h-full":""},{lineNumbers:!0,readOnly:j(pr),saving:j(h)},{mode:j(g),"data-testid":"code-mirror",onSave:Q}),null,16,["modelValue","mode"])}}}),whe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},xhe={"p-4":"",relative:""},She={op50:"","font-mono":"","text-sm":""},_he={key:0,"p-5":""},khe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},The={key:0},Che={p:"x3 y-1","bg-overlay":"",border:"base b t"},Ehe=at({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const n=e,i=t,s=X$(()=>ht.rpc.getTransformResult(n.projectName,n.id,!!It)),l=_e(()=>{var p;return((p=n.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),f=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=_e(()=>{var p,g,v,y;return{mappings:((g=(p=s.value)==null?void 0:p.map)==null?void 0:g.mappings)??"",version:(y=(v=s.value)==null?void 0:v.map)==null?void 0:y.version}});return Nx("Escape",()=>{i("close")}),(p,g)=>{const v=ri,y=w1;return se(),ye("div",whe,[te("div",xhe,[g[1]||(g[1]=te("p",null,"Module Info",-1)),te("p",She,Re(p.id),1),Ie(v,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=w=>i("close"))})]),j(s)?(se(),ye(nt,{key:1},[te("div",khe,[g[2]||(g[2]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),g[3]||(g[3]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Ie(y,_i({"h-full":"","model-value":j(u),"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"]),Ie(y,_i({"h-full":"","model-value":j(f),"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"])]),j(h).mappings!==""?(se(),ye("div",The,[te("div",Che," Source map (v"+Re(j(h).version)+") ",1),Ie(y,_i({"model-value":j(h).mappings,"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"])])):je("",!0)],64)):(se(),ye("div",_he," No transform result found for this module. "))])}}});function Ahe(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Ih="http://www.w3.org/1999/xhtml";const ay={svg:"http://www.w3.org/2000/svg",xhtml:Ih,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pf(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ay.hasOwnProperty(t)?{space:ay[t],local:e}:e}function Lhe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ih&&t.documentElement.namespaceURI===Ih?t.createElement(e):t.createElementNS(n,e)}}function $he(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function x1(e){var t=pf(e);return(t.local?$he:Lhe)(t)}function Mhe(){}function Fp(e){return e==null?Mhe:function(){return this.querySelector(e)}}function Nhe(e){typeof e!="function"&&(e=Fp(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p);return new or(i,this._parents)}function Ihe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Phe(){return[]}function S1(e){return e==null?Phe:function(){return this.querySelectorAll(e)}}function Ohe(e){return function(){return Ihe(e.apply(this,arguments))}}function Rhe(e){typeof e=="function"?e=Ohe(e):e=S1(e);for(var t=this._groups,n=t.length,i=[],s=[],l=0;l<n;++l)for(var u=t[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&(i.push(e.call(h,h.__data__,p,u)),s.push(h));return new or(i,s)}function _1(e){return function(){return this.matches(e)}}function k1(e){return function(t){return t.matches(e)}}var zhe=Array.prototype.find;function Dhe(e){return function(){return zhe.call(this.children,e)}}function Fhe(){return this.firstElementChild}function Hhe(e){return this.select(e==null?Fhe:Dhe(typeof e=="function"?e:k1(e)))}var Bhe=Array.prototype.filter;function Whe(){return Array.from(this.children)}function jhe(e){return function(){return Bhe.call(this.children,e)}}function qhe(e){return this.selectAll(e==null?Whe:jhe(typeof e=="function"?e:k1(e)))}function Uhe(e){typeof e!="function"&&(e=_1(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new or(i,this._parents)}function T1(e){return new Array(e.length)}function Vhe(){return new or(this._enter||this._groups.map(T1),this._parents)}function Ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ou.prototype={constructor:Ou,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 Ghe(e){return function(){return e}}function Xhe(e,t,n,i,s,l){for(var u=0,f,h=t.length,p=l.length;u<p;++u)(f=t[u])?(f.__data__=l[u],i[u]=f):n[u]=new Ou(e,l[u]);for(;u<h;++u)(f=t[u])&&(s[u]=f)}function Khe(e,t,n,i,s,l,u){var f,h,p=new Map,g=t.length,v=l.length,y=new Array(g),w;for(f=0;f<g;++f)(h=t[f])&&(y[f]=w=u.call(h,h.__data__,f,t)+"",p.has(w)?s[f]=h:p.set(w,h));for(f=0;f<v;++f)w=u.call(e,l[f],f,l)+"",(h=p.get(w))?(i[f]=h,h.__data__=l[f],p.delete(w)):n[f]=new Ou(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(s[f]=h)}function Jhe(e){return e.__data__}function Yhe(e,t){if(!arguments.length)return Array.from(this,Jhe);var n=t?Khe:Xhe,i=this._parents,s=this._groups;typeof e!="function"&&(e=Ghe(e));for(var l=s.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=s[p],y=v.length,w=Zhe(e.call(g,g&&g.__data__,p,i)),L=w.length,$=f[p]=new Array(L),C=u[p]=new Array(L),E=h[p]=new Array(y);n(g,v,$,C,E,w,t);for(var N=0,O=0,k,z;N<L;++N)if(k=$[N]){for(N>=O&&(O=N+1);!(z=C[O])&&++O<L;);k._next=z||null}}return u=new or(u,i),u._enter=f,u._exit=h,u}function Zhe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Qhe(){return new or(this._exit||this._groups.map(T1),this._parents)}function epe(e,t,n){var i=this.enter(),s=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),n==null?l.remove():n(l),i&&s?i.merge(s).order():s}function tpe(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,s=n.length,l=i.length,u=Math.min(s,l),f=new Array(s),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,L=0;L<v;++L)(w=p[L]||g[L])&&(y[L]=w);for(;h<s;++h)f[h]=n[h];return new or(f,this._parents)}function npe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],s=i.length-1,l=i[s],u;--s>=0;)(u=i[s])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function rpe(e){e||(e=ipe);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,s=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=s[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new or(s,this._parents).order()}function ipe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ope(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function spe(){return Array.from(this)}function lpe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,l=i.length;s<l;++s){var u=i[s];if(u)return u}return null}function ape(){let e=0;for(const t of this)++e;return e}function cpe(){return!this.node()}function upe(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var s=t[n],l=0,u=s.length,f;l<u;++l)(f=s[l])&&e.call(f,f.__data__,l,s);return this}function fpe(e){return function(){this.removeAttribute(e)}}function dpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hpe(e,t){return function(){this.setAttribute(e,t)}}function ppe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gpe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function mpe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function vpe(e,t){var n=pf(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?dpe:fpe:typeof t=="function"?n.local?mpe:gpe:n.local?ppe:hpe)(n,t))}function C1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ype(e){return function(){this.style.removeProperty(e)}}function bpe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function wpe(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function xpe(e,t,n){return arguments.length>1?this.each((t==null?ype:typeof t=="function"?wpe:bpe)(e,t,n??"")):tl(this.node(),e)}function tl(e,t){return e.style.getPropertyValue(t)||C1(e).getComputedStyle(e,null).getPropertyValue(t)}function Spe(e){return function(){delete this[e]}}function _pe(e,t){return function(){this[e]=t}}function kpe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Tpe(e,t){return arguments.length>1?this.each((t==null?Spe:typeof t=="function"?kpe:_pe)(e,t)):this.node()[e]}function E1(e){return e.trim().split(/^|\s+/)}function Hp(e){return e.classList||new A1(e)}function A1(e){this._node=e,this._names=E1(e.getAttribute("class")||"")}A1.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 L1(e,t){for(var n=Hp(e),i=-1,s=t.length;++i<s;)n.add(t[i])}function $1(e,t){for(var n=Hp(e),i=-1,s=t.length;++i<s;)n.remove(t[i])}function Cpe(e){return function(){L1(this,e)}}function Epe(e){return function(){$1(this,e)}}function Ape(e,t){return function(){(t.apply(this,arguments)?L1:$1)(this,e)}}function Lpe(e,t){var n=E1(e+"");if(arguments.length<2){for(var i=Hp(this.node()),s=-1,l=n.length;++s<l;)if(!i.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?Ape:t?Cpe:Epe)(n,t))}function $pe(){this.textContent=""}function Mpe(e){return function(){this.textContent=e}}function Npe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ipe(e){return arguments.length?this.each(e==null?$pe:(typeof e=="function"?Npe:Mpe)(e)):this.node().textContent}function Ppe(){this.innerHTML=""}function Ope(e){return function(){this.innerHTML=e}}function Rpe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function zpe(e){return arguments.length?this.each(e==null?Ppe:(typeof e=="function"?Rpe:Ope)(e)):this.node().innerHTML}function Dpe(){this.nextSibling&&this.parentNode.appendChild(this)}function Fpe(){return this.each(Dpe)}function Hpe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bpe(){return this.each(Hpe)}function Wpe(e){var t=typeof e=="function"?e:x1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function jpe(){return null}function qpe(e,t){var n=typeof e=="function"?e:x1(e),i=t==null?jpe:typeof t=="function"?t:Fp(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Upe(){var e=this.parentNode;e&&e.removeChild(this)}function Vpe(){return this.each(Upe)}function Gpe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xpe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Kpe(e){return this.select(e?Xpe:Gpe)}function Jpe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ype(e){return function(t){e.call(this,t,this.__data__)}}function Zpe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function Qpe(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,s=t.length,l;n<s;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function ege(e,t,n){return function(){var i=this.__on,s,l=Ype(t);if(i){for(var u=0,f=i.length;u<f;++u)if((s=i[u]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=l,s.options=n),s.value=t;return}}this.addEventListener(e.type,l,n),s={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(s):this.__on=[s]}}function tge(e,t,n){var i=Zpe(e+""),s,l=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,p=f.length,g;h<p;++h)for(s=0,g=f[h];s<l;++s)if((u=i[s]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?ege:Qpe,s=0;s<l;++s)this.each(f(i[s],t,n));return this}function M1(e,t,n){var i=C1(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,n):(s=i.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function nge(e,t){return function(){return M1(this,e,t)}}function rge(e,t){return function(){return M1(this,e,t.apply(this,arguments))}}function ige(e,t){return this.each((typeof t=="function"?rge:nge)(e,t))}function*oge(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,l=i.length,u;s<l;++s)(u=i[s])&&(yield u)}var N1=[null];function or(e,t){this._groups=e,this._parents=t}function Ka(){return new or([[document.documentElement]],N1)}function sge(){return this}or.prototype=Ka.prototype={constructor:or,select:Nhe,selectAll:Rhe,selectChild:Hhe,selectChildren:qhe,filter:Uhe,data:Yhe,enter:Vhe,exit:Qhe,join:epe,merge:tpe,selection:sge,order:npe,sort:rpe,call:ope,nodes:spe,node:lpe,size:ape,empty:cpe,each:upe,attr:vpe,style:xpe,property:Tpe,classed:Lpe,text:Ipe,html:zpe,raise:Fpe,lower:Bpe,append:Wpe,insert:qpe,remove:Vpe,clone:Kpe,datum:Jpe,on:tge,dispatch:ige,[Symbol.iterator]:oge};function Gn(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],N1)}function lge(e){let t;for(;t=e.sourceEvent;)e=t;return e}function bi(e,t){if(e=lge(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.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 age=Object.defineProperty,cge=(e,t,n)=>t in e?age(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cy=(e,t,n)=>cge(e,typeof t!="symbol"?t+"":t,n);class Nn{constructor(t,n){cy(this,"x"),cy(this,"y"),this.x=t,this.y=n}static of([t,n]){return new Nn(t,n)}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 n=Math.cos(t),i=Math.sin(t);return new Nn(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var uge={value:()=>{}};function Ja(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new iu(n)}function iu(e){this._=e}function fge(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");if(s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}iu.prototype=Ja.prototype={constructor:iu,on:function(e,t){var n=this._,i=fge(e+"",n),s,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((s=(e=i[l]).type)&&(s=dge(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(s=(e=i[l]).type)n[s]=uy(n[s],e.name,t);else if(t==null)for(s in n)n[s]=uy(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new iu(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),i=0,s,l;i<s;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,s=l.length;i<s;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,l=i.length;s<l;++s)i[s].value.apply(t,n)}};function dge(e,t){for(var n=0,i=e.length,s;n<i;++n)if((s=e[n]).name===t)return s.value}function uy(e,t,n){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=uge,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const hge={passive:!1},La={capture:!0,passive:!1};function jd(e){e.stopImmediatePropagation()}function Vs(e){e.preventDefault(),e.stopImmediatePropagation()}function I1(e){var t=e.document.documentElement,n=Gn(e).on("dragstart.drag",Vs,La);"onselectstart"in t?n.on("selectstart.drag",Vs,La):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function P1(e,t){var n=e.document.documentElement,i=Gn(e).on("dragstart.drag",null);t&&(i.on("click.drag",Vs,La),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const jc=e=>()=>e;function Ph(e,{sourceEvent:t,subject:n,target:i,identifier:s,active:l,x:u,y:f,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}Ph.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function pge(e){return!e.ctrlKey&&!e.button}function gge(){return this.parentNode}function mge(e,t){return t??{x:e.x,y:e.y}}function vge(){return navigator.maxTouchPoints||"ontouchstart"in this}function yge(){var e=pge,t=gge,n=mge,i=vge,s={},l=Ja("start","drag","end"),u=0,f,h,p,g,v=0;function y(k){k.on("mousedown.drag",w).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,hge).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(k,z){if(!(g||!e.call(this,k,z))){var D=O(this,t.call(this,k,z),k,z,"mouse");D&&(Gn(k.view).on("mousemove.drag",L,La).on("mouseup.drag",$,La),I1(k.view),jd(k),p=!1,f=k.clientX,h=k.clientY,D("start",k))}}function L(k){if(Vs(k),!p){var z=k.clientX-f,D=k.clientY-h;p=z*z+D*D>v}s.mouse("drag",k)}function $(k){Gn(k.view).on("mousemove.drag mouseup.drag",null),P1(k.view,p),Vs(k),s.mouse("end",k)}function C(k,z){if(e.call(this,k,z)){var D=k.changedTouches,oe=t.call(this,k,z),Q=D.length,W,q;for(W=0;W<Q;++W)(q=O(this,oe,k,z,D[W].identifier,D[W]))&&(jd(k),q("start",k,D[W]))}}function E(k){var z=k.changedTouches,D=z.length,oe,Q;for(oe=0;oe<D;++oe)(Q=s[z[oe].identifier])&&(Vs(k),Q("drag",k,z[oe]))}function N(k){var z=k.changedTouches,D=z.length,oe,Q;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),oe=0;oe<D;++oe)(Q=s[z[oe].identifier])&&(jd(k),Q("end",k,z[oe]))}function O(k,z,D,oe,Q,W){var q=l.copy(),U=bi(W||D,z),A,I,P;if((P=n.call(k,new Ph("beforestart",{sourceEvent:D,target:y,identifier:Q,active:u,x:U[0],y:U[1],dx:0,dy:0,dispatch:q}),oe))!=null)return A=P.x-U[0]||0,I=P.y-U[1]||0,function S(R,B,ie){var ue=U,we;switch(R){case"start":s[Q]=S,we=u++;break;case"end":delete s[Q],--u;case"drag":U=bi(ie||B,z),we=u;break}q.call(R,k,new Ph(R,{sourceEvent:B,subject:P,target:y,identifier:Q,active:we,x:U[0]+A,y:U[1]+I,dx:U[0]-ue[0],dy:U[1]-ue[1],dispatch:q}),oe)}}return y.filter=function(k){return arguments.length?(e=typeof k=="function"?k:jc(!!k),y):e},y.container=function(k){return arguments.length?(t=typeof k=="function"?k:jc(k),y):t},y.subject=function(k){return arguments.length?(n=typeof k=="function"?k:jc(k),y):n},y.touchable=function(k){return arguments.length?(i=typeof k=="function"?k:jc(!!k),y):i},y.on=function(){var k=l.on.apply(l,arguments);return k===l?y:k},y.clickDistance=function(k){return arguments.length?(v=(k=+k)*k,y):Math.sqrt(v)},y}function Bp(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function O1(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ya(){}var $a=.7,Ru=1/$a,Gs="\\s*([+-]?\\d+)\\s*",Ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bge=/^#([0-9a-f]{3,8})$/,wge=new RegExp(`^rgb\\(${Gs},${Gs},${Gs}\\)$`),xge=new RegExp(`^rgb\\(${ei},${ei},${ei}\\)$`),Sge=new RegExp(`^rgba\\(${Gs},${Gs},${Gs},${Ma}\\)$`),_ge=new RegExp(`^rgba\\(${ei},${ei},${ei},${Ma}\\)$`),kge=new RegExp(`^hsl\\(${Ma},${ei},${ei}\\)$`),Tge=new RegExp(`^hsla\\(${Ma},${ei},${ei},${Ma}\\)$`),fy={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};Bp(Ya,Na,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dy,formatHex:dy,formatHex8:Cge,formatHsl:Ege,formatRgb:hy,toString:hy});function dy(){return this.rgb().formatHex()}function Cge(){return this.rgb().formatHex8()}function Ege(){return R1(this).formatHsl()}function hy(){return this.rgb().formatRgb()}function Na(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bge.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?py(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qc(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=wge.exec(e))?new Kn(t[1],t[2],t[3],1):(t=xge.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Sge.exec(e))?qc(t[1],t[2],t[3],t[4]):(t=_ge.exec(e))?qc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kge.exec(e))?vy(t[1],t[2]/100,t[3]/100,1):(t=Tge.exec(e))?vy(t[1],t[2]/100,t[3]/100,t[4]):fy.hasOwnProperty(e)?py(fy[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function py(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function qc(e,t,n,i){return i<=0&&(e=t=n=NaN),new Kn(e,t,n,i)}function Age(e){return e instanceof Ya||(e=Na(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function Oh(e,t,n,i){return arguments.length===1?Age(e):new Kn(e,t,n,i??1)}function Kn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Bp(Kn,Oh,O1(Ya,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$a:Math.pow($a,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(Vo(this.r),Vo(this.g),Vo(this.b),zu(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:gy,formatHex:gy,formatHex8:Lge,formatRgb:my,toString:my}));function gy(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}`}function Lge(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}${Wo((isNaN(this.opacity)?1:this.opacity)*255)}`}function my(){const e=zu(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function zu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function vy(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,n,i)}function R1(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof Ya||(e=Na(e)),!e)return new Lr;if(e instanceof Lr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,s=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-s,h=(l+s)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?l+s:2-l-s,u*=60):f=h>0&&h<1?0:u,new Lr(u,f,h,e.opacity)}function $ge(e,t,n,i){return arguments.length===1?R1(e):new Lr(e,t,n,i??1)}function Lr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Bp(Lr,$ge,O1(Ya,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$a:Math.pow($a,e),new Lr(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,n=this.l,i=n+(n<.5?n:1-n)*t,s=2*n-i;return new Kn(qd(e>=240?e-240:e+120,s,i),qd(e,s,i),qd(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new Lr(yy(this.h),Uc(this.s),Uc(this.l),zu(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=zu(this.opacity);return`${e===1?"hsl(":"hsla("}${yy(this.h)}, ${Uc(this.s)*100}%, ${Uc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yy(e){return e=(e||0)%360,e<0?e+360:e}function Uc(e){return Math.max(0,Math.min(1,e||0))}function qd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const z1=e=>()=>e;function Mge(e,t){return function(n){return e+n*t}}function Nge(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function Ige(e){return(e=+e)==1?D1:function(t,n){return n-t?Nge(t,n,e):z1(isNaN(t)?n:t)}}function D1(e,t){var n=t-e;return n?Mge(e,n):z1(isNaN(e)?t:e)}const by=function e(t){var n=Ige(t);function i(s,l){var u=n((s=Oh(s)).r,(l=Oh(l)).r),f=n(s.g,l.g),h=n(s.b,l.b),p=D1(s.opacity,l.opacity);return function(g){return s.r=u(g),s.g=f(g),s.b=h(g),s.opacity=p(g),s+""}}return i.gamma=e,i}(1);function Qi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Rh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ud=new RegExp(Rh.source,"g");function Pge(e){return function(){return e}}function Oge(e){return function(t){return e(t)+""}}function Rge(e,t){var n=Rh.lastIndex=Ud.lastIndex=0,i,s,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Rh.exec(e))&&(s=Ud.exec(t));)(l=s.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(s=s[0])?f[u]?f[u]+=s:f[++u]=s:(f[++u]=null,h.push({i:u,x:Qi(i,s)})),n=Ud.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?Oge(h[0].x):Pge(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)f[(v=h[g]).i]=v.x(p);return f.join("")})}var wy=180/Math.PI,zh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function F1(e,t,n,i,s,l){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:s,translateY:l,rotate:Math.atan2(t,e)*wy,skewX:Math.atan(h)*wy,scaleX:u,scaleY:f}}var Vc;function zge(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?zh:F1(t.a,t.b,t.c,t.d,t.e,t.f)}function Dge(e){return e==null||(Vc||(Vc=document.createElementNS("http://www.w3.org/2000/svg","g")),Vc.setAttribute("transform",e),!(e=Vc.transform.baseVal.consolidate()))?zh:(e=e.matrix,F1(e.a,e.b,e.c,e.d,e.e,e.f))}function H1(e,t,n,i){function s(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,L){if(p!==v||g!==y){var $=w.push("translate(",null,t,null,n);L.push({i:$-4,x:Qi(p,v)},{i:$-2,x:Qi(g,y)})}else(v||y)&&w.push("translate("+v+t+y+n)}function u(p,g,v,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:v.push(s(v)+"rotate(",null,i)-2,x:Qi(p,g)})):g&&v.push(s(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(s(v)+"skewX(",null,i)-2,x:Qi(p,g)}):g&&v.push(s(v)+"skewX("+g+i)}function h(p,g,v,y,w,L){if(p!==v||g!==y){var $=w.push(s(w)+"scale(",null,",",null,")");L.push({i:$-4,x:Qi(p,v)},{i:$-2,x:Qi(g,y)})}else(v!==1||y!==1)&&w.push(s(w)+"scale("+v+","+y+")")}return function(p,g){var v=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,v,y),u(p.rotate,g.rotate,v,y),f(p.skewX,g.skewX,v,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,y),p=g=null,function(w){for(var L=-1,$=y.length,C;++L<$;)v[(C=y[L]).i]=C.x(w);return v.join("")}}}var Fge=H1(zge,"px, ","px)","deg)"),Hge=H1(Dge,", ",")",")"),Bge=1e-12;function xy(e){return((e=Math.exp(e))+1/e)/2}function Wge(e){return((e=Math.exp(e))-1/e)/2}function jge(e){return((e=Math.exp(2*e))-1)/(e+1)}const qge=function e(t,n,i){function s(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,L=v-h,$=w*w+L*L,C,E;if($<Bge)E=Math.log(y/p)/t,C=function(oe){return[f+oe*w,h+oe*L,p*Math.exp(t*oe*E)]};else{var N=Math.sqrt($),O=(y*y-p*p+i*$)/(2*p*n*N),k=(y*y-p*p-i*$)/(2*y*n*N),z=Math.log(Math.sqrt(O*O+1)-O),D=Math.log(Math.sqrt(k*k+1)-k);E=(D-z)/t,C=function(oe){var Q=oe*E,W=xy(z),q=p/(n*N)*(W*jge(t*Q+z)-Wge(z));return[f+q*w,h+q*L,p*W/xy(t*Q+z)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return s.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},s}(Math.SQRT2,2,4);var nl=0,Kl=0,ql=0,B1=1e3,Du,Jl,Fu=0,Xo=0,gf=0,Ia=typeof performance=="object"&&performance.now?performance:Date,W1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Wp(){return Xo||(W1(Uge),Xo=Ia.now()+gf)}function Uge(){Xo=0}function Hu(){this._call=this._time=this._next=null}Hu.prototype=jp.prototype={constructor:Hu,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Wp():+n)+(t==null?0:+t),!this._next&&Jl!==this&&(Jl?Jl._next=this:Du=this,Jl=this),this._call=e,this._time=n,Dh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dh())}};function jp(e,t,n){var i=new Hu;return i.restart(e,t,n),i}function Vge(){Wp(),++nl;for(var e=Du,t;e;)(t=Xo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--nl}function Sy(){Xo=(Fu=Ia.now())+gf,nl=Kl=0;try{Vge()}finally{nl=0,Xge(),Xo=0}}function Gge(){var e=Ia.now(),t=e-Fu;t>B1&&(gf-=t,Fu=e)}function Xge(){for(var e,t=Du,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Du=n);Jl=e,Dh(i)}function Dh(e){if(!nl){Kl&&(Kl=clearTimeout(Kl));var t=e-Xo;t>24?(e<1/0&&(Kl=setTimeout(Sy,e-Ia.now()-gf)),ql&&(ql=clearInterval(ql))):(ql||(Fu=Ia.now(),ql=setInterval(Gge,B1)),nl=1,W1(Sy))}}function _y(e,t,n){var i=new Hu;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,n),i}var Kge=Ja("start","end","cancel","interrupt"),Jge=[],j1=0,ky=1,Fh=2,ou=3,Ty=4,Hh=5,su=6;function mf(e,t,n,i,s,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;Yge(e,n,{name:t,index:i,group:s,on:Kge,tween:Jge,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:j1})}function qp(e,t){var n=Fr(e,t);if(n.state>j1)throw new Error("too late; already scheduled");return n}function ii(e,t){var n=Fr(e,t);if(n.state>ou)throw new Error("too late; already running");return n}function Fr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Yge(e,t,n){var i=e.__transition,s;i[t]=n,n.timer=jp(l,0,n.time);function l(p){n.state=ky,n.timer.restart(u,n.delay,n.time),n.delay<=p&&u(p-n.delay)}function u(p){var g,v,y,w;if(n.state!==ky)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===ou)return _y(u);w.state===Ty?(w.state=su,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=su,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(_y(function(){n.state===ou&&(n.state=Ty,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=Fh,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Fh){for(n.state=ou,s=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(s[++v]=w);s.length=v+1}}function f(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(h),n.state=Hh,1),v=-1,y=s.length;++v<y;)s[v].call(e,g);n.state===Hh&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=su,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function lu(e,t){var n=e.__transition,i,s,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}s=i.state>Fh&&i.state<Hh,i.state=su,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function Zge(e){return this.each(function(){lu(this,e)})}function Qge(e,t){var n,i;return function(){var s=ii(this,e),l=s.tween;if(l!==n){i=n=l;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}s.tween=i}}function eme(e,t,n){var i,s;if(typeof n!="function")throw new Error;return function(){var l=ii(this,e),u=l.tween;if(u!==i){s=(i=u).slice();for(var f={name:t,value:n},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=f;break}h===p&&s.push(f)}l.tween=s}}function tme(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Fr(this.node(),n).tween,s=0,l=i.length,u;s<l;++s)if((u=i[s]).name===e)return u.value;return null}return this.each((t==null?Qge:eme)(n,e,t))}function Up(e,t,n){var i=e._id;return e.each(function(){var s=ii(this,i);(s.value||(s.value={}))[t]=n.apply(this,arguments)}),function(s){return Fr(s,i).value[t]}}function q1(e,t){var n;return(typeof t=="number"?Qi:t instanceof Na?by:(n=Na(t))?(t=n,by):Rge)(e,t)}function nme(e){return function(){this.removeAttribute(e)}}function rme(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ime(e,t,n){var i,s=n+"",l;return function(){var u=this.getAttribute(e);return u===s?null:u===i?l:l=t(i=u,n)}}function ome(e,t,n){var i,s=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===s?null:u===i?l:l=t(i=u,n)}}function sme(e,t,n){var i,s,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===s?l:(s=h,l=t(i=u,f)))}}function lme(e,t,n){var i,s,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===s?l:(s=h,l=t(i=u,f)))}}function ame(e,t){var n=pf(e),i=n==="transform"?Hge:q1;return this.attrTween(e,typeof t=="function"?(n.local?lme:sme)(n,i,Up(this,"attr."+e,t)):t==null?(n.local?rme:nme)(n):(n.local?ome:ime)(n,i,t))}function cme(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ume(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function fme(e,t){var n,i;function s(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&ume(e,l)),n}return s._value=t,s}function dme(e,t){var n,i;function s(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&cme(e,l)),n}return s._value=t,s}function hme(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=pf(e);return this.tween(n,(i.local?fme:dme)(i,t))}function pme(e,t){return function(){qp(this,e).delay=+t.apply(this,arguments)}}function gme(e,t){return t=+t,function(){qp(this,e).delay=t}}function mme(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?pme:gme)(t,e)):Fr(this.node(),t).delay}function vme(e,t){return function(){ii(this,e).duration=+t.apply(this,arguments)}}function yme(e,t){return t=+t,function(){ii(this,e).duration=t}}function bme(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vme:yme)(t,e)):Fr(this.node(),t).duration}function wme(e,t){if(typeof t!="function")throw new Error;return function(){ii(this,e).ease=t}}function xme(e){var t=this._id;return arguments.length?this.each(wme(t,e)):Fr(this.node(),t).ease}function Sme(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;ii(this,e).ease=n}}function _me(e){if(typeof e!="function")throw new Error;return this.each(Sme(this._id,e))}function kme(e){typeof e!="function"&&(e=_1(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Ei(i,this._parents,this._name,this._id)}function Tme(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,s=n.length,l=Math.min(i,s),u=new Array(i),f=0;f<l;++f)for(var h=t[f],p=n[f],g=h.length,v=u[f]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(v[w]=y);for(;f<i;++f)u[f]=t[f];return new Ei(u,this._parents,this._name,this._id)}function Cme(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Eme(e,t,n){var i,s,l=Cme(t)?qp:ii;return function(){var u=l(this,e),f=u.on;f!==i&&(s=(i=f).copy()).on(t,n),u.on=s}}function Ame(e,t){var n=this._id;return arguments.length<2?Fr(this.node(),n).on.on(e):this.each(Eme(n,e,t))}function Lme(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function $me(){return this.on("end.remove",Lme(this._id))}function Mme(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Fp(e));for(var i=this._groups,s=i.length,l=new Array(s),u=0;u<s;++u)for(var f=i[u],h=f.length,p=l[u]=new Array(h),g,v,y=0;y<h;++y)(g=f[y])&&(v=e.call(g,g.__data__,y,f))&&("__data__"in g&&(v.__data__=g.__data__),p[y]=v,mf(p[y],t,n,y,p,Fr(g,n)));return new Ei(l,this._parents,t,n)}function Nme(e){var t=this._name,n=this._id;typeof e!="function"&&(e=S1(e));for(var i=this._groups,s=i.length,l=[],u=[],f=0;f<s;++f)for(var h=i[f],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var y=e.call(g,g.__data__,v,h),w,L=Fr(g,n),$=0,C=y.length;$<C;++$)(w=y[$])&&mf(w,t,n,$,y,L);l.push(y),u.push(g)}return new Ei(l,u,t,n)}var Ime=Ka.prototype.constructor;function Pme(){return new Ime(this._groups,this._parents)}function Ome(e,t){var n,i,s;return function(){var l=tl(this,e),u=(this.style.removeProperty(e),tl(this,e));return l===u?null:l===n&&u===i?s:s=t(n=l,i=u)}}function U1(e){return function(){this.style.removeProperty(e)}}function Rme(e,t,n){var i,s=n+"",l;return function(){var u=tl(this,e);return u===s?null:u===i?l:l=t(i=u,n)}}function zme(e,t,n){var i,s,l;return function(){var u=tl(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),tl(this,e))),u===h?null:u===i&&h===s?l:(s=h,l=t(i=u,f))}}function Dme(e,t){var n,i,s,l="style."+t,u="end."+l,f;return function(){var h=ii(this,e),p=h.on,g=h.value[l]==null?f||(f=U1(t)):void 0;(p!==n||s!==g)&&(i=(n=p).copy()).on(u,s=g),h.on=i}}function Fme(e,t,n){var i=(e+="")=="transform"?Fge:q1;return t==null?this.styleTween(e,Ome(e,i)).on("end.style."+e,U1(e)):typeof t=="function"?this.styleTween(e,zme(e,i,Up(this,"style."+e,t))).each(Dme(this._id,e)):this.styleTween(e,Rme(e,i,t),n).on("end.style."+e,null)}function Hme(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function Bme(e,t,n){var i,s;function l(){var u=t.apply(this,arguments);return u!==s&&(i=(s=u)&&Hme(e,u,n)),i}return l._value=t,l}function Wme(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Bme(e,t,n??""))}function jme(e){return function(){this.textContent=e}}function qme(e){return function(){var t=e(this);this.textContent=t??""}}function Ume(e){return this.tween("text",typeof e=="function"?qme(Up(this,"text",e)):jme(e==null?"":e+""))}function Vme(e){return function(t){this.textContent=e.call(this,t)}}function Gme(e){var t,n;function i(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&Vme(s)),t}return i._value=e,i}function Xme(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,Gme(e))}function Kme(){for(var e=this._name,t=this._id,n=V1(),i=this._groups,s=i.length,l=0;l<s;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Fr(h,t);mf(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Ei(i,this._parents,e,n)}function Jme(){var e,t,n=this,i=n._id,s=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--s===0&&l()}};n.each(function(){var p=ii(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),p.on=t}),s===0&&l()})}var Yme=0;function Ei(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function V1(){return++Yme}var mi=Ka.prototype;Ei.prototype={constructor:Ei,select:Mme,selectAll:Nme,selectChild:mi.selectChild,selectChildren:mi.selectChildren,filter:kme,merge:Tme,selection:Pme,transition:Kme,call:mi.call,nodes:mi.nodes,node:mi.node,size:mi.size,empty:mi.empty,each:mi.each,on:Ame,attr:ame,attrTween:hme,style:Fme,styleTween:Wme,text:Ume,textTween:Xme,remove:$me,tween:tme,delay:mme,duration:bme,ease:xme,easeVarying:_me,end:Jme,[Symbol.iterator]:mi[Symbol.iterator]};function Zme(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Qme={time:null,delay:0,duration:250,ease:Zme};function eve(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function tve(e){var t,n;e instanceof Ei?(t=e._id,e=e._name):(t=V1(),(n=Qme).time=Wp(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,l=0;l<s;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&mf(h,e,t,p,u,n||eve(h,t));return new Ei(i,this._parents,e,t)}Ka.prototype.interrupt=Zge;Ka.prototype.transition=tve;const Gc=e=>()=>e;function nve(e,{sourceEvent:t,target:n,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Si(e,t,n){this.k=e,this.x=t,this.y=n}Si.prototype={constructor:Si,scale:function(e){return e===1?this:new Si(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Si(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 Vp=new Si(1,0,0);Si.prototype;function Vd(e){e.stopImmediatePropagation()}function Ul(e){e.preventDefault(),e.stopImmediatePropagation()}function rve(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ive(){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 Cy(){return this.__zoom||Vp}function ove(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function sve(){return navigator.maxTouchPoints||"ontouchstart"in this}function lve(e,t,n){var i=e.invertX(t[0][0])-n[0][0],s=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function ave(){var e=rve,t=ive,n=lve,i=ove,s=sve,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=qge,p=Ja("start","zoom","end"),g,v,y,w=500,L=150,$=0,C=10;function E(P){P.property("__zoom",Cy).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",q).filter(s).on("touchstart.zoom",U).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(P,S,R,B){var ie=P.selection?P.selection():P;ie.property("__zoom",Cy),P!==ie?z(P,S,R,B):ie.interrupt().each(function(){D(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(P,S,R,B){E.scaleTo(P,function(){var ie=this.__zoom.k,ue=typeof S=="function"?S.apply(this,arguments):S;return ie*ue},R,B)},E.scaleTo=function(P,S,R,B){E.transform(P,function(){var ie=t.apply(this,arguments),ue=this.__zoom,we=R==null?k(ie):typeof R=="function"?R.apply(this,arguments):R,Pe=ue.invert(we),qe=typeof S=="function"?S.apply(this,arguments):S;return n(O(N(ue,qe),we,Pe),ie,u)},R,B)},E.translateBy=function(P,S,R,B){E.transform(P,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,B)},E.translateTo=function(P,S,R,B,ie){E.transform(P,function(){var ue=t.apply(this,arguments),we=this.__zoom,Pe=B==null?k(ue):typeof B=="function"?B.apply(this,arguments):B;return n(Vp.translate(Pe[0],Pe[1]).scale(we.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ue,u)},B,ie)};function N(P,S){return S=Math.max(l[0],Math.min(l[1],S)),S===P.k?P:new Si(S,P.x,P.y)}function O(P,S,R){var B=S[0]-R[0]*P.k,ie=S[1]-R[1]*P.k;return B===P.x&&ie===P.y?P:new Si(P.k,B,ie)}function k(P){return[(+P[0][0]+ +P[1][0])/2,(+P[0][1]+ +P[1][1])/2]}function z(P,S,R,B){P.on("start.zoom",function(){D(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(B).end()}).tween("zoom",function(){var ie=this,ue=arguments,we=D(ie,ue).event(B),Pe=t.apply(ie,ue),qe=R==null?k(Pe):typeof R=="function"?R.apply(ie,ue):R,Ze=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ke=ie.__zoom,Je=typeof S=="function"?S.apply(ie,ue):S,re=h(Ke.invert(qe).concat(Ze/Ke.k),Je.invert(qe).concat(Ze/Je.k));return function(V){if(V===1)V=Je;else{var ee=re(V),J=Ze/ee[2];V=new Si(J,qe[0]-ee[0]*J,qe[1]-ee[1]*J)}we.zoom(null,V)}})}function D(P,S,R){return!R&&P.__zooming||new oe(P,S)}function oe(P,S){this.that=P,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(P,S),this.taps=0}oe.prototype={event:function(P){return P&&(this.sourceEvent=P),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(P,S){return this.mouse&&P!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&P!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&P!=="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(P){var S=Gn(this.that).datum();p.call(P,this.that,new nve(P,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function Q(P,...S){if(!e.apply(this,arguments))return;var R=D(this,S).event(P),B=this.__zoom,ie=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ue=bi(P);if(R.wheel)(R.mouse[0][0]!==ue[0]||R.mouse[0][1]!==ue[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ue)),clearTimeout(R.wheel);else{if(B.k===ie)return;R.mouse=[ue,B.invert(ue)],lu(this),R.start()}Ul(P),R.wheel=setTimeout(we,L),R.zoom("mouse",n(O(N(B,ie),R.mouse[0],R.mouse[1]),R.extent,u));function we(){R.wheel=null,R.end()}}function W(P,...S){if(y||!e.apply(this,arguments))return;var R=P.currentTarget,B=D(this,S,!0).event(P),ie=Gn(P.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",Ze,!0),ue=bi(P,R),we=P.clientX,Pe=P.clientY;I1(P.view),Vd(P),B.mouse=[ue,this.__zoom.invert(ue)],lu(this),B.start();function qe(Ke){if(Ul(Ke),!B.moved){var Je=Ke.clientX-we,re=Ke.clientY-Pe;B.moved=Je*Je+re*re>$}B.event(Ke).zoom("mouse",n(O(B.that.__zoom,B.mouse[0]=bi(Ke,R),B.mouse[1]),B.extent,u))}function Ze(Ke){ie.on("mousemove.zoom mouseup.zoom",null),P1(Ke.view,B.moved),Ul(Ke),B.event(Ke).end()}}function q(P,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=bi(P.changedTouches?P.changedTouches[0]:P,this),ie=R.invert(B),ue=R.k*(P.shiftKey?.5:2),we=n(O(N(R,ue),B,ie),t.apply(this,S),u);Ul(P),f>0?Gn(this).transition().duration(f).call(z,we,B,P):Gn(this).call(E.transform,we,B,P)}}function U(P,...S){if(e.apply(this,arguments)){var R=P.touches,B=R.length,ie=D(this,S,P.changedTouches.length===B).event(P),ue,we,Pe,qe;for(Vd(P),we=0;we<B;++we)Pe=R[we],qe=bi(Pe,this),qe=[qe,this.__zoom.invert(qe),Pe.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==qe[2]&&(ie.touch1=qe,ie.taps=0):(ie.touch0=qe,ue=!0,ie.taps=1+!!g);g&&(g=clearTimeout(g)),ue&&(ie.taps<2&&(v=qe[0],g=setTimeout(function(){g=null},w)),lu(this),ie.start())}}function A(P,...S){if(this.__zooming){var R=D(this,S).event(P),B=P.changedTouches,ie=B.length,ue,we,Pe,qe;for(Ul(P),ue=0;ue<ie;++ue)we=B[ue],Pe=bi(we,this),R.touch0&&R.touch0[2]===we.identifier?R.touch0[0]=Pe:R.touch1&&R.touch1[2]===we.identifier&&(R.touch1[0]=Pe);if(we=R.that.__zoom,R.touch1){var Ze=R.touch0[0],Ke=R.touch0[1],Je=R.touch1[0],re=R.touch1[1],V=(V=Je[0]-Ze[0])*V+(V=Je[1]-Ze[1])*V,ee=(ee=re[0]-Ke[0])*ee+(ee=re[1]-Ke[1])*ee;we=N(we,Math.sqrt(V/ee)),Pe=[(Ze[0]+Je[0])/2,(Ze[1]+Je[1])/2],qe=[(Ke[0]+re[0])/2,(Ke[1]+re[1])/2]}else if(R.touch0)Pe=R.touch0[0],qe=R.touch0[1];else return;R.zoom("touch",n(O(we,Pe,qe),R.extent,u))}}function I(P,...S){if(this.__zooming){var R=D(this,S).event(P),B=P.changedTouches,ie=B.length,ue,we;for(Vd(P),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ue=0;ue<ie;++ue)we=B[ue],R.touch0&&R.touch0[2]===we.identifier?delete R.touch0:R.touch1&&R.touch1[2]===we.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(we=bi(we,this),Math.hypot(v[0]-we[0],v[1]-we[1])<C)){var Pe=Gn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return E.wheelDelta=function(P){return arguments.length?(i=typeof P=="function"?P:Gc(+P),E):i},E.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Gc(!!P),E):e},E.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Gc(!!P),E):s},E.extent=function(P){return arguments.length?(t=typeof P=="function"?P:Gc([[+P[0][0],+P[0][1]],[+P[1][0],+P[1][1]]]),E):t},E.scaleExtent=function(P){return arguments.length?(l[0]=+P[0],l[1]=+P[1],E):[l[0],l[1]]},E.translateExtent=function(P){return arguments.length?(u[0][0]=+P[0][0],u[1][0]=+P[1][0],u[0][1]=+P[0][1],u[1][1]=+P[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(P){return arguments.length?(n=P,E):n},E.duration=function(P){return arguments.length?(f=+P,E):f},E.interpolate=function(P){return arguments.length?(h=P,E):h},E.on=function(){var P=p.on.apply(p,arguments);return P===p?E:P},E.clickDistance=function(P){return arguments.length?($=(P=+P)*P,E):Math.sqrt($)},E.tapDistance=function(P){return arguments.length?(C=+P,E):C},E}function cve(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return G1(this.cover(t,n),t,n,e)}function G1(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var s,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,L,$,C,E,N;if(!l)return e._root=u,e;for(;l.length;)if(($=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y,s=l,!(l=l[E=C<<1|$]))return s[E]=u,e;if(w=+e._x.call(null,l.data),L=+e._y.call(null,l.data),t===w&&n===L)return u.next=l,s?s[E]=u:e._root=u,e;do s=s?s[E]=new Array(4):e._root=new Array(4),($=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y;while((E=C<<1|$)===(N=(L>=y)<<1|w>=v));return s[N]=l,s[E]=u,e}function uve(e){var t,n,i=e.length,s,l,u=new Array(i),f=new Array(i),h=1/0,p=1/0,g=-1/0,v=-1/0;for(n=0;n<i;++n)isNaN(s=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=s,f[n]=l,s<h&&(h=s),s>g&&(g=s),l<p&&(p=l),l>v&&(v=l));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),n=0;n<i;++n)G1(this,u[n],f[n],e[n]);return this}function fve(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,s=this._x1,l=this._y1;if(isNaN(n))s=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=s-n||1,f=this._root,h,p;n>e||e>=s||i>t||t>=l;)switch(p=(t<i)<<1|e<n,h=new Array(4),h[p]=f,f=h,u*=2,p){case 0:s=n+u,l=i+u;break;case 1:n=s-u,l=i+u;break;case 2:s=n+u,i=l-u;break;case 3:n=s-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=s,this._y1=l,this}function dve(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function hve(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 Pn(e,t,n,i,s){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=s}function pve(e,t,n){var i,s=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,L,$;for(w&&y.push(new Pn(w,s,l,g,v)),n==null?n=1/0:(s=e-n,l=t-n,g=e+n,v=t+n,n*=n);L=y.pop();)if(!(!(w=L.node)||(u=L.x0)>g||(f=L.y0)>v||(h=L.x1)<s||(p=L.y1)<l))if(w.length){var C=(u+h)/2,E=(f+p)/2;y.push(new Pn(w[3],C,E,h,p),new Pn(w[2],u,E,C,p),new Pn(w[1],C,f,h,E),new Pn(w[0],u,f,C,E)),($=(t>=E)<<1|e>=C)&&(L=y[y.length-1],y[y.length-1]=y[y.length-1-$],y[y.length-1-$]=L)}else{var N=e-+this._x.call(null,w.data),O=t-+this._y.call(null,w.data),k=N*N+O*O;if(k<n){var z=Math.sqrt(n=k);s=e-z,l=t-z,g=e+z,v=t+z,i=w.data}}return i}function gve(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,s,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,L,$,C,E;if(!n)return this;if(n.length)for(;;){if((L=g>=(y=(u+h)/2))?u=y:h=y,($=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[C=$<<1|L]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,s?(l?s.next=l:delete s.next,this):t?(l?t[C]=l:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=l,this)}function mve(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function vve(){return this._root}function yve(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function bve(e){var t=[],n,i=this._root,s,l,u,f,h;for(i&&t.push(new Pn(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,l=n.x0,u=n.y0,f=n.x1,h=n.y1)&&i.length){var p=(l+f)/2,g=(u+h)/2;(s=i[3])&&t.push(new Pn(s,p,g,f,h)),(s=i[2])&&t.push(new Pn(s,l,g,p,h)),(s=i[1])&&t.push(new Pn(s,p,u,f,g)),(s=i[0])&&t.push(new Pn(s,l,u,p,g))}return this}function wve(e){var t=[],n=[],i;for(this._root&&t.push(new Pn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var s=i.node;if(s.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=s[0])&&t.push(new Pn(l,u,f,g,v)),(l=s[1])&&t.push(new Pn(l,g,f,h,v)),(l=s[2])&&t.push(new Pn(l,u,v,g,p)),(l=s[3])&&t.push(new Pn(l,g,v,h,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function xve(e){return e[0]}function Sve(e){return arguments.length?(this._x=e,this):this._x}function _ve(e){return e[1]}function kve(e){return arguments.length?(this._y=e,this):this._y}function Gp(e,t,n){var i=new Xp(t??xve,n??_ve,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function Xp(e,t,n,i,s,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=s,this._y1=l,this._root=void 0}function Ey(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var zn=Gp.prototype=Xp.prototype;zn.copy=function(){var e=new Xp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=Ey(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var s=0;s<4;++s)(i=t.source[s])&&(i.length?n.push({source:i,target:t.target[s]=new Array(4)}):t.target[s]=Ey(i));return e};zn.add=cve;zn.addAll=uve;zn.cover=fve;zn.data=dve;zn.extent=hve;zn.find=pve;zn.remove=gve;zn.removeAll=mve;zn.root=vve;zn.size=yve;zn.visit=bve;zn.visitAfter=wve;zn.x=Sve;zn.y=kve;function Rn(e){return function(){return e}}function no(e){return(e()-.5)*1e-6}function Tve(e){return e.x+e.vx}function Cve(e){return e.y+e.vy}function Eve(e){var t,n,i,s=1,l=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,L,$,C,E=0;E<l;++E)for(v=Gp(t,Tve,Cve).visitAfter(f),p=0;p<g;++p)y=t[p],$=n[y.index],C=$*$,w=y.x+y.vx,L=y.y+y.vy,v.visit(N);function N(O,k,z,D,oe){var Q=O.data,W=O.r,q=$+W;if(Q){if(Q.index>y.index){var U=w-Q.x-Q.vx,A=L-Q.y-Q.vy,I=U*U+A*A;I<q*q&&(U===0&&(U=no(i),I+=U*U),A===0&&(A=no(i),I+=A*A),I=(q-(I=Math.sqrt(I)))/I*s,y.vx+=(U*=I)*(q=(W*=W)/(C+W)),y.vy+=(A*=I)*q,Q.vx-=U*(q=1-q),Q.vy-=A*q)}return}return k>w+q||D<w-q||z>L+q||oe<L-q}}function f(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(n=new Array(g),p=0;p<g;++p)v=t[p],n[v.index]=+e(v,p,t)}}return u.initialize=function(p,g){t=p,i=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(s=+p,u):s},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),u):e},u}function Ave(e){return e.index}function Ay(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Lve(e){var t=Ave,n=v,i,s=Rn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(C){return 1/Math.min(f[C.source.index],f[C.target.index])}function y(C){for(var E=0,N=e.length;E<g;++E)for(var O=0,k,z,D,oe,Q,W,q;O<N;++O)k=e[O],z=k.source,D=k.target,oe=D.x+D.vx-z.x-z.vx||no(p),Q=D.y+D.vy-z.y-z.vy||no(p),W=Math.sqrt(oe*oe+Q*Q),W=(W-l[O])/W*C*i[O],oe*=W,Q*=W,D.vx-=oe*(q=h[O]),D.vy-=Q*q,z.vx+=oe*(q=1-q),z.vy+=Q*q}function w(){if(u){var C,E=u.length,N=e.length,O=new Map(u.map((z,D)=>[t(z,D,u),z])),k;for(C=0,f=new Array(E);C<N;++C)k=e[C],k.index=C,typeof k.source!="object"&&(k.source=Ay(O,k.source)),typeof k.target!="object"&&(k.target=Ay(O,k.target)),f[k.source.index]=(f[k.source.index]||0)+1,f[k.target.index]=(f[k.target.index]||0)+1;for(C=0,h=new Array(N);C<N;++C)k=e[C],h[C]=f[k.source.index]/(f[k.source.index]+f[k.target.index]);i=new Array(N),L(),l=new Array(N),$()}}function L(){if(u)for(var C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function $(){if(u)for(var C=0,E=e.length;C<E;++C)l[C]=+s(e[C],C,e)}return y.initialize=function(C,E){u=C,p=E,w()},y.links=function(C){return arguments.length?(e=C,w(),y):e},y.id=function(C){return arguments.length?(t=C,y):t},y.iterations=function(C){return arguments.length?(g=+C,y):g},y.strength=function(C){return arguments.length?(n=typeof C=="function"?C:Rn(+C),L(),y):n},y.distance=function(C){return arguments.length?(s=typeof C=="function"?C:Rn(+C),$(),y):s},y}const $ve=1664525,Mve=1013904223,Ly=4294967296;function Nve(){let e=1;return()=>(e=($ve*e+Mve)%Ly)/Ly}function Ive(e){return e.x}function Pve(e){return e.y}var Ove=10,Rve=Math.PI*(3-Math.sqrt(5));function zve(e){var t,n=1,i=.001,s=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=jp(v),p=Ja("tick","end"),g=Nve();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y($){var C,E=e.length,N;$===void 0&&($=1);for(var O=0;O<$;++O)for(n+=(l-n)*s,f.forEach(function(k){k(n)}),C=0;C<E;++C)N=e[C],N.fx==null?N.x+=N.vx*=u:(N.x=N.fx,N.vx=0),N.fy==null?N.y+=N.vy*=u:(N.y=N.fy,N.vy=0);return t}function w(){for(var $=0,C=e.length,E;$<C;++$){if(E=e[$],E.index=$,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var N=Ove*Math.sqrt(.5+$),O=$*Rve;E.x=N*Math.cos(O),E.y=N*Math.sin(O)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function L($){return $.initialize&&$.initialize(e,g),$}return w(),t={tick:y,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function($){return arguments.length?(e=$,w(),f.forEach(L),t):e},alpha:function($){return arguments.length?(n=+$,t):n},alphaMin:function($){return arguments.length?(i=+$,t):i},alphaDecay:function($){return arguments.length?(s=+$,t):+s},alphaTarget:function($){return arguments.length?(l=+$,t):l},velocityDecay:function($){return arguments.length?(u=1-$,t):1-u},randomSource:function($){return arguments.length?(g=$,f.forEach(L),t):g},force:function($,C){return arguments.length>1?(C==null?f.delete($):f.set($,L(C)),t):f.get($)},find:function($,C,E){var N=0,O=e.length,k,z,D,oe,Q;for(E==null?E=1/0:E*=E,N=0;N<O;++N)oe=e[N],k=$-oe.x,z=C-oe.y,D=k*k+z*z,D<E&&(Q=oe,E=D);return Q},on:function($,C){return arguments.length>1?(p.on($,C),t):p.on($)}}}function Dve(){var e,t,n,i,s=Rn(-30),l,u=1,f=1/0,h=.81;function p(w){var L,$=e.length,C=Gp(e,Ive,Pve).visitAfter(v);for(i=w,L=0;L<$;++L)t=e[L],C.visit(y)}function g(){if(e){var w,L=e.length,$;for(l=new Array(L),w=0;w<L;++w)$=e[w],l[$.index]=+s($,w,e)}}function v(w){var L=0,$,C,E=0,N,O,k;if(w.length){for(N=O=k=0;k<4;++k)($=w[k])&&(C=Math.abs($.value))&&(L+=$.value,E+=C,N+=C*$.x,O+=C*$.y);w.x=N/E,w.y=O/E}else{$=w,$.x=$.data.x,$.y=$.data.y;do L+=l[$.data.index];while($=$.next)}w.value=L}function y(w,L,$,C){if(!w.value)return!0;var E=w.x-t.x,N=w.y-t.y,O=C-L,k=E*E+N*N;if(O*O/h<k)return k<f&&(E===0&&(E=no(n),k+=E*E),N===0&&(N=no(n),k+=N*N),k<u&&(k=Math.sqrt(u*k)),t.vx+=E*w.value*i/k,t.vy+=N*w.value*i/k),!0;if(w.length||k>=f)return;(w.data!==t||w.next)&&(E===0&&(E=no(n),k+=E*E),N===0&&(N=no(n),k+=N*N),k<u&&(k=Math.sqrt(u*k)));do w.data!==t&&(O=l[w.data.index]*i/k,t.vx+=E*O,t.vy+=N*O);while(w=w.next)}return p.initialize=function(w,L){e=w,n=L,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Rn(+w),g(),p):s},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Fve(e){var t=Rn(.1),n,i,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(s[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),s=new Array(h),f=0;f<h;++f)i[f]=isNaN(s[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),u(),l):e},l}function Hve(e){var t=Rn(.1),n,i,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(s[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),s=new Array(h),f=0;f<h;++f)i[f]=isNaN(s[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),u(),l):e},l}var Bve=Object.defineProperty,Wve=(e,t,n)=>t in e?Bve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nt=(e,t,n)=>Wve(e,typeof t!="symbol"?t+"":t,n);function jve(){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 $y(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 ro(...e){return e.reduce((t,n)=>{if(Array.isArray(n))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(n).forEach(i=>{["__proto__","constructor","prototype"].includes(i)||(Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=ro.options.mergeArrays?Array.from(new Set(t[i].concat(n[i]))):n[i]:$y(t[i])&&$y(n[i])?t[i]=ro(t[i],n[i]):t[i]=n[i])}),t},{})}const X1={mergeArrays:!0};ro.options=X1;ro.withOptions=(e,...t)=>{ro.options={mergeArrays:!0,...e};const n=ro(...t);return ro.options=X1,n};function qve(){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 Uve(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function K1(e){e.preventDefault(),e.stopPropagation()}function J1(e){return typeof e=="number"}function yo(e,t){return J1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Vve(e){return`${e.source.id}-${e.target.id}`}function Y1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Gve(e){return`url(#${Y1(e.color)})`}function Xve(e){return{size:e,padding:(t,n)=>yo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Z1={Arrow:e=>Xve(e)},Kve=(e,t,n)=>[t/2,n/2],Jve=(e,t,n)=>[My(0,t),My(0,n)];function My(e,t){return Math.random()*(t-e)+e}const Bh={Centered:Kve,Randomized:Jve};function Yve(){return{autoResize:!1,callbacks:{},hooks:{},initial:Uve(),nodeRadius:16,marker:Z1.Arrow(4),modifiers:{},positionInitializer:Bh.Centered,simulation:{alphas:jve(),forces:qve()},zoom:{initial:1,min:.1,max:2}}}function Zve(e={}){return ro.withOptions({mergeArrays:!1},Yve(),e)}function Qve({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:s,offset:[l,u],scale:f,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>K1(g)).on("dblclick",g=>n==null?void 0:n(g)).on("dblclick.zoom",null).on("pointermove",g=>i==null?void 0:i(g)).on("pointerup",g=>s==null?void 0:s(g)).style("cursor","grab");return e&&p.call(h.transform,Vp.translate(l,u).scale(f)),p.append("g")}function e0e({canvas:e,scale:t,xOffset:n,yOffset:i}){e==null||e.attr("transform",`translate(${n},${i})scale(${t})`)}function t0e({config:e,onDragStart:t,onDragEnd:n}){var i,s;const l=yge().filter(u=>u.type==="mousedown"?u.button===0:u.type==="touchstart"?u.touches.length===1:!1).on("start",(u,f)=>{u.active===0&&t(u,f),Gn(u.sourceEvent.target).classed("grabbed",!0),f.fx=f.x,f.fy=f.y}).on("drag",(u,f)=>{f.fx=u.x,f.fy=u.y}).on("end",(u,f)=>{u.active===0&&n(u,f),Gn(u.sourceEvent.target).classed("grabbed",!1),f.fx=void 0,f.fy=void 0});return(s=(i=e.modifiers).drag)==null||s.call(i,l),l}function n0e({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:s}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,f=e.nodes.filter(h=>t.includes(h.type)&&(i||u(h)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:r0e({links:l},n)}function r0e(e,t){const n=[...i0e(e,t),...o0e(e,t)],i=n.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function i0e(e,t){return Q1(e,t,(n,i)=>n.target.id===i.id)}function o0e(e,t){return Q1(e,t,(n,i)=>n.source.id===i.id)}function Q1(e,t,n){const i=new Set(e.links),s=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...s].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{s.add(f.source),s.add(f.target),l.push(f),i.delete(f)})}return l}function Wh(e){return e.x??0}function jh(e){return e.y??0}function Kp({source:e,target:t}){const n=new Nn(Wh(e),jh(e)),i=new Nn(Wh(t),jh(t)),s=i.subtract(n),l=s.length(),u=s.normalize(),f=u.multiply(-1);return{s:n,t:i,dist:l,norm:u,endNorm:f}}function eS({center:e,node:t}){const n=new Nn(Wh(t),jh(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Nn(0,1))),{n,c:i}}function tS({config:e,source:t,target:n}){const{s:i,t:s,norm:l}=Kp({source:t,target:n}),u=i.add(l.multiply(yo(e,t)-1)),f=s.subtract(l.multiply(e.marker.padding(n,e)));return{start:u,end:f}}function s0e(e){const{start:t,end:n}=tS(e);return`M${t.x},${t.y}
50
- L${n.x},${n.y}`}function l0e(e){const{start:t,end:n}=tS(e),i=n.subtract(t).multiply(.5),s=t.add(i);return`translate(${s.x-8},${s.y-4})`}function a0e({config:e,source:t,target:n}){const{s:i,t:s,dist:l,norm:u,endNorm:f}=Kp({source:t,target:n}),h=10,p=u.rotateByDegrees(-10).multiply(yo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(yo(e,n)).add(s).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
51
- A${v},${v},0,0,1,${g.x},${g.y}`}function c0e({center:e,config:t,node:n}){const{n:i,c:s}=eS({center:e,node:n}),l=yo(t,n),u=i.subtract(s),f=u.multiply(1/u.length()),h=f.rotateByDegrees(40).multiply(l-1).add(i),p=f.rotateByDegrees(-40).multiply(l).add(i).add(f.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}
52
- A${l},${l},0,1,0,${p.x},${p.y}`}function u0e({config:e,source:t,target:n}){const{t:i,dist:s,endNorm:l}=Kp({source:t,target:n}),u=l.rotateByDegrees(10).multiply(.5*s).add(i);return`translate(${u.x},${u.y})`}function f0e({center:e,config:t,node:n}){const{n:i,c:s}=eS({center:e,node:n}),l=i.subtract(s),u=l.multiply(1/l.length()).multiply(3*yo(t,n)+8).add(i);return`translate(${u.x},${u.y})`}const Xs={line:{labelTransform:l0e,path:s0e},arc:{labelTransform:u0e,path:a0e},reflexive:{labelTransform:f0e,path:c0e}};function d0e(e){return e.append("g").classed("links",!0).selectAll("path")}function h0e({config:e,graph:t,selection:n,showLabels:i}){const s=n==null?void 0:n.data(t.links,l=>Vve(l)).join(l=>{var u,f,h,p;const g=l.append("g"),v=g.append("path").classed("link",!0).style("marker-end",w=>Gve(w)).style("stroke",w=>w.color);(f=(u=e.modifiers).link)==null||f.call(u,v);const y=g.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,y),g});return s==null||s.select(".link__label").attr("opacity",l=>l.label&&i?1:0),s}function p0e(e){g0e(e),m0e(e)}function g0e({center:e,config:t,graph:n,selection:i}){i==null||i.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?Xs.reflexive.path({config:t,node:s.source,center:e}):nS(n,s.source,s.target)?Xs.arc.path({config:t,source:s.source,target:s.target}):Xs.line.path({config:t,source:s.source,target:s.target}))}function m0e({config:e,center:t,graph:n,selection:i}){i==null||i.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?Xs.reflexive.labelTransform({config:e,node:s.source,center:t}):nS(n,s.source,s.target)?Xs.arc.labelTransform({config:e,source:s.source,target:s.target}):Xs.line.labelTransform({config:e,source:s.source,target:s.target}))}function nS(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function v0e(e){return e.append("defs").selectAll("marker")}function y0e({config:e,graph:t,selection:n}){return n==null?void 0:n.data(b0e(t),i=>i).join(i=>{const s=i.append("marker").attr("id",l=>Y1(l)).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",l=>l);return s.append("path").attr("d",w0e(e.marker.path)),s})}function b0e(e){return[...new Set(e.links.map(t=>t.color))]}function w0e(e){const[t,...n]=e;if(!t)return"M0,0";const[i,s]=t;return n.reduce((l,[u,f])=>`${l}L${u},${f}`,`M${i},${s}`)}function x0e(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function S0e({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:s,selection:l,showLabels:u}){const f=l==null?void 0:l.data(n.nodes,h=>h.id).join(h=>{var p,g,v,y;const w=h.append("g");t!==void 0&&w.call(t);const L=w.append("circle").classed("node",!0).attr("r",C=>yo(e,C)).on("contextmenu",(C,E)=>{K1(C),i(E)}).on("pointerdown",(C,E)=>k0e(C,E,s??i)).style("fill",C=>C.color);(g=(p=e.modifiers).node)==null||g.call(p,L);const $=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",C=>C.label?C.label.color:null).style("font-size",C=>C.label?C.label.fontSize:null).style("stroke","none").text(C=>C.label?C.label.text:null);return(y=(v=e.modifiers).nodeLabel)==null||y.call(v,$),w});return f==null||f.select(".node").classed("focused",h=>h.isFocused),f==null||f.select(".node__label").attr("opacity",u?1:0),f}const _0e=500;function k0e(e,t,n){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,s=Date.now();if(i===void 0||s-i>_0e){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,n(t)}function T0e(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function C0e({center:e,config:t,graph:n,onTick:i}){var s,l;const u=zve(n.nodes),f=t.simulation.forces.centering;if(f&&f.enabled){const v=f.strength;u.force("x",Fve(()=>e().x).strength(v)).force("y",Hve(()=>e().y).strength(v))}const h=t.simulation.forces.charge;h&&h.enabled&&u.force("charge",Dve().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&u.force("collision",Eve().radius(v=>p.radiusMultiplier*yo(t,v)));const g=t.simulation.forces.link;return g&&g.enabled&&u.force("link",Lve(n.links).id(v=>v.id).distance(t.simulation.forces.link.length).strength(g.strength)),u.on("tick",()=>i()),(l=(s=t.modifiers).simulation)==null||l.call(s,u),u}function E0e({canvasContainer:e,config:t,min:n,max:i,onZoom:s}){var l,u;const f=ave().scaleExtent([n,i]).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(u=(l=t.modifiers).zoom)==null||u.call(l,f),f}class A0e{constructor(t,n,i){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=n,this.config=i,this.scale=i.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[l,u]=i.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??l,s.y=s.y??u}),this.nodeTypes=[...new Set(n.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],i.initial){const{includeUnlinked:s,nodeTypeFilter:l,linkFilter:u,showLinkLabels:f,showNodeLabels:h}=i.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=l??this._nodeTypeFilter,this._linkFilter=u??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(i.simulation.alphas.initialize),i.autoResize&&(this.resizeObserver=new ResizeObserver(Ahe(()=>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:n,exclude:i}=this.config.simulation.alphas.filter.unlinked,s=t?n:i;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:n,show:i}=this.config.simulation.alphas.labels.nodes,s=t?i:n;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:n,show:i}=this.config.simulation.alphas.labels.links,s=t?i:n;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,n=this.height,i=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,l=t.toFixed()!==i.toFixed(),u=n.toFixed()!==s.toFixed();if(!l&&!u)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(J1(f)?f:f({oldWidth:t,oldHeight:n,newWidth:i,newHeight:s}))}restart(t){var n;this.markerSelection=y0e({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=h0e({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=S0e({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:i=>this.toggleNodeFocus(i),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(n=this.simulation)==null||n.stop(),this.simulation=C0e({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,n){t?this._nodeTypeFilter.push(n):this._nodeTypeFilter=this._nodeTypeFilter.filter(i=>i!==n),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,n;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(n=this.simulation)==null||n.stop()}initGraph(){this.zoom=E0e({config:this.config,canvasContainer:()=>Gn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Qve({applyZoom:this.scale!==1,container:Gn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=d0e(this.canvas),this.nodeSelection=x0e(this.canvas),this.markerSelection=v0e(this.canvas),this.drag=t0e({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(){T0e(this.nodeSelection),p0e({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Gn(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 n,i,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(i=(n=this.config.hooks).afterZoom)==null||i.call(n,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){e0e({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=n0e({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Ny({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function L0e(e){return{...e}}function rS(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const $0e={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},M0e={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},N0e={flex:"~ gap-1","items-center":"","select-none":""},I0e=["id","checked","onChange"],P0e=["for"],O0e=at({__name:"ViewModuleGraph",props:ga({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=ef(e,"modelValue"),{graph:i}=sT(t),s=Ue(),l=Ue(!1),u=Ue(),f=Ue();pp(()=>{l.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),bo(()=>{g()}),Zu(()=>{var w;(w=f.value)==null||w.shutdown()}),St(i,()=>g());function h(w,L){var $;($=f.value)==null||$.filterNodesByType(L,w)}function p(w){u.value=w,l.value=!0}function g(w=!1){var L;if((L=f.value)==null||L.shutdown(),w&&!n.value){n.value=!0;return}!i.value||!s.value||(f.value=new A0e(s.value,i.value,Zve({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:$,newWidth:C})=>$===0&&C===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Z1.Arrow(2),modifiers:{node:y},positionInitializer:i.value.nodes.length>1?Bh.Randomized:Bh.Centered,zoom:{min:.5,max:2}})))}const v=w=>w.button===0;function y(w){if(pr)return;let L=0,$=0,C=0;w.on("pointerdown",(E,N)=>{N.type!=="external"&&(!N.x||!N.y||!v(E)||(L=N.x,$=N.y,C=Date.now()))}).on("pointerup",(E,N)=>{if(N.type==="external"||!N.x||!N.y||!v(E)||Date.now()-C>500)return;const O=N.x-L,k=N.y-$;O**2+k**2<100&&p(N.id)})}return(w,L)=>{var O;const $=ri,C=Ehe,E=Dp,N=Dr("tooltip");return se(),ye("div",$0e,[te("div",null,[te("div",M0e,[te("div",N0e,[ct(te("input",{id:"hide-node-modules","onUpdate:modelValue":L[0]||(L[0]=k=>n.value=k),type:"checkbox"},null,512),[[ww,n.value]]),L[4]||(L[4]=te("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))]),(se(!0),ye(nt,null,hr((O=j(f))==null?void 0:O.nodeTypes.sort(),k=>{var z;return se(),ye("div",{key:k,flex:"~ gap-1","items-center":"","select-none":""},[te("input",{id:`type-${k}`,type:"checkbox",checked:(z=j(f))==null?void 0:z.nodeTypeFilter.includes(k),onChange:D=>h(k,D.target.checked)},null,40,I0e),te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${k}`,"border-b-2":"",style:nn({"border-color":`var(--color-node-${k})`})},Re(k)+" Modules",13,P0e)])}),128)),L[5]||(L[5]=te("div",{"flex-auto":""},null,-1)),te("div",null,[ct(Ie($,{icon:"i-carbon-reset",onClick:L[1]||(L[1]=k=>g(!0))},null,512),[[N,"Reset",void 0,{bottom:!0}]])])])]),te("div",{ref_key:"el",ref:s},null,512),Ie(E,{modelValue:j(l),"onUpdate:modelValue":L[3]||(L[3]=k=>kt(l)?l.value=k:null),direction:"right"},{default:it(()=>[j(u)?(se(),Ye(mp,{key:0},{default:it(()=>[Ie(C,{id:j(u),"project-name":w.projectName,onClose:L[2]||(L[2]=k=>l.value=!1)},null,8,["id","project-name"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])])}}}),R0e={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},z0e={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},D0e={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},F0e={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},H0e={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},B0e={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},iS=at({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const i=Dr("tooltip");return t.state==="pass"?(se(),ye("div",R0e)):t.failedSnapshot?ct((se(),ye("div",z0e,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(se(),ye("div",D0e)):t.mode==="todo"?ct((se(),ye("div",F0e,null,512)),[[i,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?ct((se(),ye("div",H0e,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(se(),ye("div",B0e))}}});function W0e(e){const t=new Map,n=new Map,i=[];for(;;){let s=0;if(e.forEach((l,u)=>{var g;const{splits:f,finished:h}=l;if(h){s++;const{raw:v,candidate:y}=l;t.set(v,y);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,(g=n.get(p))==null||g.push(u),f.shift()):(n.set(p,[u]),i.push(u))}),i.forEach(l=>{const u=e[l],f=u.splits.shift();u.candidate+=u.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),n.clear(),i.length=0,s===e.length)break}return t}function j0e(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,candidate:"",finished:!1,id:e}}function q0e(e){const t=e.map(i=>j0e(i)),n=W0e(t);return t.map(({raw:i,id:s})=>rS({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:n.get(i)??""},isFocused:!1,id:s,type:"external"}))}function U0e(e,t){return rS({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 V0e(e,t){if(!e)return Ny({});const n=q0e(e.externalized),i=e.inlined.map(f=>U0e(f,f===t))??[],s=[...n,...i],l=Object.fromEntries(s.map(f=>[f.id,f])),u=Object.entries(e.graph).flatMap(([f,h])=>h.map(p=>{const g=l[f],v=l[p];if(!(g===void 0||v===void 0))return L0e({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ny({nodes:s,links:u})}const G0e={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},X0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},K0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},J0e={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Y0e={class:"flex text-lg"},Z0e={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Q0e={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},eye={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},tye={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},nye=["flex-1"],rye=at({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),n=Ue(!1),i=Ue(!1),s=Ue(!1),l=Ue(void 0),u=Ue(!0),f=_e(()=>js.value?ht.state.idMap.get(js.value):void 0),h=_e(()=>{const k=qt.value;if(!(!k||!k.filepath))return{filepath:k.filepath,projectName:k.file.projectName||""}}),p=_e(()=>qt.value&&Ip(qt.value)),g=_e(()=>{var k,z;return!!((z=(k=qt.value)==null?void 0:k.meta)!=null&&z.typecheck)});function v(){var z;const k=(z=qt.value)==null?void 0:z.filepath;k&&fetch(`/__open-in-editor?file=${encodeURIComponent(k)}`)}function y(k){k==="graph"&&(i.value=!0),jn.value=k}const w=_e(()=>{var k;return((k=u1.value)==null?void 0:k.reduce((z,{size:D})=>z+D,0))??0});function L(k){n.value=k}const $=/[/\\]node_modules[/\\]/;async function C(k=!1){var z;if(!(s.value||((z=h.value)==null?void 0:z.filepath)===l.value&&!k)){s.value=!0,await Et();try{const D=h.value;if(!D){s.value=!1;return}if(k||!l.value||D.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let oe=await ht.rpc.getModuleGraph(D.projectName,D.filepath,!!It);u.value&&(pr&&(oe=typeof window.structuredClone<"u"?window.structuredClone(oe):z$(oe)),oe.inlined=oe.inlined.filter(Q=>!$.test(Q)),oe.externalized=oe.externalized.filter(Q=>!$.test(Q))),t.value=V0e(oe,D.filepath),l.value=D.filepath}y("graph")}finally{await new Promise(D=>setTimeout(D,100)),s.value=!1}}}$p(()=>[h.value,jn.value,u.value],([,k,z],D)=>{k==="graph"&&C(D&&z!==D[2])},{debounce:100,immediate:!0});const E=_e(()=>{var z,D;const k=((z=qt.value)==null?void 0:z.file.projectName)||"";return Ae.colors.get(k)||Hx((D=qt.value)==null?void 0:D.file.projectName)}),N=_e(()=>Bx(E.value)),O=_e(()=>{var oe;const k=js.value;if(!k)return(oe=qt.value)==null?void 0:oe.name;const z=[];let D=ht.state.idMap.get(k);for(;D;)z.push(D.name),D=D.suite?D.suite:D===D.file?void 0:D.file;return z.reverse().join(" > ")});return(k,z)=>{var P,S,R;const D=iS,oe=ri,Q=O0e,W=bhe,q=yhe,U=dhe,A=ihe,I=Dr("tooltip");return j(qt)?(se(),ye("div",G0e,[te("div",null,[te("div",X0e,[Ie(D,{state:(P=j(qt).result)==null?void 0:P.state,mode:j(qt).mode,"failed-snapshot":j(p)},null,8,["state","mode","failed-snapshot"]),j(g)?ct((se(),ye("div",K0e,null,512)),[[I,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):je("",!0),(S=j(qt))!=null&&S.file.projectName?(se(),ye("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:nn({backgroundColor:j(E),color:j(N)})},Re(j(qt).file.projectName),5)):je("",!0),te("div",J0e,Re(j(O)),1),te("div",Y0e,[j(pr)?je("",!0):ct((se(),Ye(oe,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((R=j(qt))!=null&&R.filepath),onClick:v},null,8,["disabled"])),[[I,"Open in editor",void 0,{bottom:!0}]])])]),te("div",Z0e,[te("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==null}]),"data-testid":"btn-report",onClick:z[0]||(z[0]=B=>y(null))},z[5]||(z[5]=[te("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),dt(" Report ")]),2),te("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==="graph"}]),onClick:z[1]||(z[1]=B=>y("graph"))},[j(s)?(se(),ye("span",Q0e)):(se(),ye("span",eye)),z[6]||(z[6]=dt(" Module Graph "))],2),te("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==="editor"}]),onClick:z[2]||(z[2]=B=>y("editor"))},[z[7]||(z[7]=te("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),dt(" "+Re(j(n)?"* ":"")+"Code ",1)],2),te("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==="console",op20:j(jn)!=="console"&&j(w)===0}]),onClick:z[3]||(z[3]=B=>y("console"))},[z[8]||(z[8]=te("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),dt(" Console ("+Re(j(w))+") ",1)],2)])]),te("div",tye,[j(i)?(se(),ye("div",{key:0,"flex-1":j(jn)==="graph"&&""},[ct(Ie(Q,{modelValue:j(u),"onUpdate:modelValue":z[4]||(z[4]=B=>kt(u)?u.value=B:null),graph:j(t),"data-testid":"graph","project-name":j(qt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[to,j(jn)==="graph"&&!j(s)]])],8,nye)):je("",!0),j(jn)==="editor"?(se(),Ye(W,{key:j(qt).id,file:j(qt),"data-testid":"editor",onDraft:L},null,8,["file"])):j(jn)==="console"?(se(),Ye(q,{key:2,file:j(qt),"data-testid":"console"},null,8,["file"])):!j(jn)&&!j(f)&&j(qt)?(se(),Ye(U,{key:3,file:j(qt),"data-testid":"report"},null,8,["file"])):!j(jn)&&j(f)?(se(),Ye(A,{key:4,test:j(f),"data-testid":"report"},null,8,["test"])):je("",!0)])])):je("",!0)}}}),iye={h:"full",flex:"~ col"},oye={"flex-auto":"","py-1":"","bg-white":""},sye=["src"],lye=at({__name:"Coverage",props:{src:{}},setup(e){return(t,n)=>(se(),ye("div",iye,[n[0]||(n[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon:folder-details-reference"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),te("div",oye,[te("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,sye)])]))}}),aye={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},cye={"font-bold":""},uye={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},fye=["font-bold"],dye={text:"red500/70"},hye={key:1,text:"sm","mb-2":""},pye={"font-bold":""},gye={key:2,text:"sm","mb-2":""},mye={"font-bold":""},vye={key:3,text:"sm","font-thin":""},yye=at({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>{var i;return se(),ye(nt,null,[te("h4",aye,[te("span",cye,[dt(Re(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(se(),ye(nt,{key:0},[dt(":")],64)):je("",!0)]),dt(" "+Re(t.error.message),1)]),(i=t.error.stacks)!=null&&i.length?(se(),ye("p",uye,[(se(!0),ye(nt,null,hr(t.error.stacks,(s,l)=>(se(),ye("span",{key:l,"whitespace-pre":"","font-bold":l===0?"":null},[dt("❯ "+Re(s.method)+" "+Re(s.file)+":",1),te("span",dye,Re(s.line)+":"+Re(s.column),1),n[0]||(n[0]=te("br",null,null,-1))],8,fye))),128))])):je("",!0),t.error.VITEST_TEST_PATH?(se(),ye("p",hye,[n[1]||(n[1]=dt(" This error originated in ")),te("span",pye,Re(t.error.VITEST_TEST_PATH),1),n[2]||(n[2]=dt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):je("",!0),t.error.VITEST_TEST_NAME?(se(),ye("div",gye,[n[3]||(n[3]=dt(" The latest test that might've caused the error is ")),te("span",mye,Re(t.error.VITEST_TEST_NAME),1),n[4]||(n[4]=dt(". It might mean one of the following:")),n[5]||(n[5]=te("br",null,null,-1)),n[6]||(n[6]=te("ul",null,[te("li",null," The error was thrown, while Vitest was running this test. "),te("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):je("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(se(),ye("div",vye,n[7]||(n[7]=[dt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),te("br",null,null,-1),te("ul",null,[te("li",null," Cancel timeouts using clearTimeout and clearInterval. "),te("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):je("",!0)],64)}}}),bye={"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:""},wye={class:"number","data-testid":"num-files"},xye={class:"number"},Sye={class:"number","text-red5":""},_ye={class:"number","text-red5":""},kye={class:"number","text-red5":""},Tye={class:"number","data-testid":"run-time"},Cye={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Eye={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Aye={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Lye=at({__name:"TestFilesEntry",setup(e){return(t,n)=>{const i=yye;return se(),ye(nt,null,[te("div",bye,[n[8]||(n[8]=te("div",{"i-carbon-document":""},null,-1)),n[9]||(n[9]=te("div",null,"Files",-1)),te("div",wye,Re(j(Ae).summary.files),1),j(Ae).summary.filesSuccess?(se(),ye(nt,{key:0},[n[0]||(n[0]=te("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=te("div",null,"Pass",-1)),te("div",xye,Re(j(Ae).summary.filesSuccess),1)],64)):je("",!0),j(Ae).summary.filesFailed?(se(),ye(nt,{key:1},[n[2]||(n[2]=te("div",{"i-carbon-close":""},null,-1)),n[3]||(n[3]=te("div",null," Fail ",-1)),te("div",Sye,Re(j(Ae).summary.filesFailed),1)],64)):je("",!0),j(Ae).summary.filesSnapshotFailed?(se(),ye(nt,{key:2},[n[4]||(n[4]=te("div",{"i-carbon-compare":""},null,-1)),n[5]||(n[5]=te("div",null," Snapshot Fail ",-1)),te("div",_ye,Re(j(Ae).summary.filesSnapshotFailed),1)],64)):je("",!0),j(Zi).length?(se(),ye(nt,{key:3},[n[6]||(n[6]=te("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[7]||(n[7]=te("div",null," Errors ",-1)),te("div",kye,Re(j(Zi).length),1)],64)):je("",!0),n[10]||(n[10]=te("div",{"i-carbon-timer":""},null,-1)),n[11]||(n[11]=te("div",null,"Time",-1)),te("div",Tye,Re(j(Ae).summary.time),1)]),j(Zi).length?(se(),ye("div",Cye,[n[15]||(n[15]=te("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),te("p",Eye,[dt(" Vitest caught "+Re(j(Zi).length)+" error"+Re(j(Zi).length>1?"s":"")+" during the test run.",1),n[12]||(n[12]=te("br",null,null,-1)),n[13]||(n[13]=dt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),te("details",Aye,[n[14]||(n[14]=te("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(se(!0),ye(nt,null,hr(j(Zi),(s,l)=>(se(),Ye(i,{key:l,error:s},null,8,["error"]))),128))])])):je("",!0)],64)}}}),$ye=ni(Lye,[["__scopeId","data-v-0178ddee"]]),Mye={"p-2":"","text-center":"",flex:""},Nye={"text-4xl":"","min-w-2em":""},Iye={"text-md":""},Pye=at({__name:"DashboardEntry",setup(e){return(t,n)=>(se(),ye("div",Mye,[te("div",null,[te("div",Nye,[xn(t.$slots,"body")]),te("div",Iye,[xn(t.$slots,"header")])])]))}}),Oye={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Rye=at({__name:"TestsEntry",setup(e){return(t,n)=>{const i=Pye;return se(),ye("div",Oye,[Ie(i,{"text-green5":"","data-testid":"pass-entry"},{header:it(()=>n[0]||(n[0]=[dt(" Pass ")])),body:it(()=>[dt(Re(j(Ae).summary.testsSuccess),1)]),_:1}),Ie(i,{class:ot({"text-red5":j(Ae).summary.testsFailed,op50:!j(Ae).summary.testsFailed}),"data-testid":"fail-entry"},{header:it(()=>n[1]||(n[1]=[dt(" Fail ")])),body:it(()=>[dt(Re(j(Ae).summary.testsFailed),1)]),_:1},8,["class"]),j(Ae).summary.testsSkipped?(se(),Ye(i,{key:0,op50:"","data-testid":"skipped-entry"},{header:it(()=>n[2]||(n[2]=[dt(" Skip ")])),body:it(()=>[dt(Re(j(Ae).summary.testsSkipped),1)]),_:1})):je("",!0),j(Ae).summary.testsTodo?(se(),Ye(i,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>n[3]||(n[3]=[dt(" Todo ")])),body:it(()=>[dt(Re(j(Ae).summary.testsTodo),1)]),_:1})):je("",!0),Ie(i,{tail:!0,"data-testid":"total-entry"},{header:it(()=>n[4]||(n[4]=[dt(" Total ")])),body:it(()=>[dt(Re(j(Ae).summary.totalTests),1)]),_:1})])}}}),zye={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Dye={key:0,class:"text-gray-5"},Fye={"aria-labelledby":"tests",m:"y-4 x-2"},Hye=at({__name:"TestsFilesContainer",setup(e){return(t,n)=>{const i=Rye,s=$ye;return se(),ye("div",zye,[j(Ae).summary.files===0&&j($s)?(se(),ye("div",Dye," No tests found ")):je("",!0),te("section",Fye,[Ie(i)]),Ie(s)])}}}),Bye={},Wye={h:"full",flex:"~ col"},jye={class:"scrolls","flex-auto":"","py-1":""};function qye(e,t){const n=Hye;return se(),ye("div",Wye,[t[0]||(t[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon-dashboard"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),te("div",jye,[Ie(n)])])}const Uye=ni(Bye,[["render",qye]]),Vye=["open"],Gye=at({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(n,i)=>(se(),ye("div",{open:j(t),class:"details-panel","data-testid":"details-panel",onToggle:i[0]||(i[0]=s=>t.value=s.target.open)},[te("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(n.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[i[1]||(i[1]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),xn(n.$slots,"summary",{open:j(t)}),i[2]||(i[2]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),xn(n.$slots,"default")],40,Vye))}}),Xye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Kye={__name:"IconAction",props:{icon:String},setup(e){return(t,n)=>(se(),ye("button",Xye,[te("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Jye=["aria-label","data-current"],Yye={key:1,"w-4":""},Zye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Qye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ebe={"text-sm":"",truncate:"","font-light":""},tbe=["text","innerHTML"],nbe={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},rbe={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},ibe={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},obe={key:1},sbe=at({__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=_e(()=>ht.state.idMap.get(e.taskId)),n=_e(()=>{if(pr)return!1;const C=t.value;return C&&Ip(C)});function i(){var C;if(!e.expandable){(C=e.onItemClick)==null||C.call(e,t.value);return}e.opened?Ae.collapseNode(e.taskId):Ae.expandNode(e.taskId)}async function s(C){var E;(E=e.onItemClick)==null||E.call(e,C),Ns.value&&(Nu.value=!0,await Et()),e.type==="file"?await zp([C.file]):await Jfe(C)}function l(C){return ht.rpc.updateSnapshot(C.file)}const u=_e(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),f=_e(()=>{const C=u.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=_e(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=_e(()=>Dx(e.name)),g=_e(()=>{const C=uM.value,E=p.value;return C?E.replace(C,N=>`<span class="highlight">${N}</span>`):E}),v=_e(()=>e.type!=="file"&&e.disableTaskLocation),y=_e(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=_e(()=>v.value?"color-red5 dark:color-#f43f5e":null);function L(){var E;const C=t.value;e.type==="file"?(E=e.onItemClick)==null||E.call(e,C):Nde(C)}const $=_e(()=>Bx(e.projectNameColor));return(C,E)=>{const N=iS,O=Kye,k=ri,z=Dr("tooltip");return j(t)?(se(),ye("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(j(f)),"aria-label":C.name,"data-current":C.current,onClick:E[2]||(E[2]=D=>i())},[C.indent>0?(se(!0),ye(nt,{key:0},hr(j(u),D=>(se(),ye("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):je("",!0),C.type==="file"||C.type==="suite"?(se(),ye("div",Yye,[te("div",{class:ot(C.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):je("",!0),Ie(N,{state:C.state,mode:j(t).mode,"failed-snapshot":j(n),"w-4":""},null,8,["state","mode","failed-snapshot"]),te("div",Zye,[C.type==="file"&&C.typecheck?ct((se(),ye("div",Qye,null,512)),[[z,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):je("",!0),te("span",ebe,[C.type==="file"&&C.projectName?(se(),ye("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:nn({backgroundColor:C.projectNameColor,color:j($)})},Re(C.projectName),5)):je("",!0),te("span",{text:C.state==="fail"?"red-500":"",innerHTML:j(g)},null,8,tbe)]),typeof C.duration=="number"?(se(),ye("span",nbe,Re(C.duration>0?C.duration:"< 1")+"ms ",1)):je("",!0)]),te("div",rbe,[!j(pr)&&j(n)?ct((se(),Ye(O,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Qc(D=>l(j(t)),["prevent","stop"]))},null,512)),[[z,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):je("",!0),Ie(j(jw),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",j(w)])},{popper:it(()=>[j(v)?(se(),ye("div",ibe,[E[5]||(E[5]=te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),te("div",null,[dt(Re(j(y))+": this feature is not available, you have disabled ",1),E[3]||(E[3]=te("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=dt(" in your configuration file."))]),E[6]||(E[6]=te("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))])):(se(),ye("div",obe,Re(j(y)),1))]),default:it(()=>[Ie(k,{"data-testid":"btn-open-details",icon:C.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Qc(L,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),j(pr)?je("",!0):ct((se(),Ye(k,{key:1,"data-testid":"btn-run-test",title:j(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:E[1]||(E[1]=Qc(D=>s(j(t)),["prevent","stop"]))},null,8,["title"])),[[z,j(h),void 0,{bottom:!0}]])])],12,Jye)):je("",!0)}}}),lbe=ni(sbe,[["__scopeId","data-v-5b954324"]]),abe={"flex-1":"","ms-2":"","select-none":""},cbe=at({__name:"FilterStatus",props:ga({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ef(e,"modelValue");return(n,i)=>(se(),ye("label",_i({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},n.$attrs,{onClick:i[1]||(i[1]=Qc(s=>t.value=!t.value,["prevent"]))}),[te("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(te("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[ww,t.value]]),te("span",abe,Re(n.label),1)],16))}});function ube(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let au;function qh(){qh.init||(qh.init=!0,au=ube()!==-1)}var vf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){qh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",au&&this.$el.appendChild(e),e.data="about:blank",au||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&&(!au&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const fbe=Ib();Mb("data-v-b329ee4c");const dbe={class:"resize-observer",tabindex:"-1"};Nb();const hbe=fbe((e,t,n,i,s,l)=>(se(),Ye("div",dbe)));vf.render=hbe;vf.__scopeId="data-v-b329ee4c";vf.__file="src/components/ResizeObserver.vue";function cu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cu=function(t){return typeof t}:cu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function pbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gbe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function mbe(e,t,n){return t&&gbe(e.prototype,t),e}function Iy(e){return vbe(e)||ybe(e)||bbe(e)||wbe()}function vbe(e){if(Array.isArray(e))return Uh(e)}function ybe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bbe(e,t){if(e){if(typeof e=="string")return Uh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uh(e,t)}}function Uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function wbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xbe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Sbe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(l=g,!(i&&h===s)){var y=n.leading;typeof y=="function"&&(y=y(h,s)),(!i||h!==s)&&y&&e.apply(void 0,[h].concat(Iy(l))),s=h,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[h].concat(Iy(l))),i=0},t)}};return u._clear=function(){clearTimeout(i),i=null},u}function oS(e,t){if(e===t)return!0;if(cu(e)==="object"){for(var n in e)if(!oS(e[n],t[n]))return!1;return!0}return!1}var _be=function(){function e(t,n,i){pbe(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return mbe(e,[{key:"createObserver",value:function(n,i){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=xbe(n),this.callback=function(f,h){s.options.callback(f,h),f&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},u=l.leading;this.callback=Sbe(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var h=f[0];if(f.length>1){var p=f.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(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 sS(e,t,n){var i=t.value;if(i)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 _be(e,i,n);e._vue_visibilityState=s}}function kbe(e,t,n){var i=t.value,s=t.oldValue;if(!oS(i,s)){var l=e._vue_visibilityState;if(!i){lS(e);return}l?l.createObserver(i,n):sS(e,{value:i},n)}}function lS(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Tbe={beforeMount:sS,updated:kbe,unmounted:lS},Cbe={itemsLimit:1e3},Ebe=/(auto|scroll)/;function aS(e,t){return e.parentNode===null?t:aS(e.parentNode,t.concat([e]))}var Gd=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Abe=function(t){return Gd(t,"overflow")+Gd(t,"overflow-y")+Gd(t,"overflow-x")},Lbe=function(t){return Ebe.test(Abe(t))};function Py(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=aS(e.parentNode,[]),n=0;n<t.length;n+=1)if(Lbe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Vh(e){"@babel/helpers - typeof";return Vh=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},Vh(e)}var $be={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 Mbe(){return this.items.length&&Vh(this.items[0])!=="object"}var Gh=!1;if(typeof window<"u"){Gh=!1;try{var Nbe=Object.defineProperty({},"passive",{get:function(){Gh=!0}});window.addEventListener("test",null,Nbe)}catch{}}let Ibe=0;var Jp={name:"RecycleScroller",components:{ResizeObserver:vf},directives:{ObserveVisibility:Tbe},props:{...$be,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,n=this.sizeField,i=this.minItemSize;let s=1e4,l=0,u;for(let f=0,h=t.length;f<h;f++)u=t[f][n]||i,u<s&&(s=u),l+=u,e[f]={accumulator:l,size:u};return this.$_computedMinItemSize=s,e}return[]},simpleArray:Mbe,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,s=t.length;i<s;i++)n[t[i][e]]=i;return n}},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,n,i,s){const l=ap({id:Ibe++,index:t,used:!0,key:i,type:s}),u=op({item:n,position:0,nr:l});return e.push(u),u},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let s=n.get(i);s||(s=[],n.set(i,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:n}=this.updateVisibleItems(!1,!0);n||(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 n=this.itemSize,i=this.gridItems||1,s=this.itemSecondarySize||n,l=this.$_computedMinItemSize,u=this.typeField,f=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,y=this.$_unusedViews,w=this.pool,L=this.itemIndexByKey;let $,C,E,N,O;if(!p)$=C=N=O=E=0;else if(this.$_prerender)$=N=0,C=O=Math.min(this.prerender,h.length),E=null;else{const q=this.getScroll();if(t){let I=q.start-this.$_lastUpdateScrollPosition;if(I<0&&(I=-I),n===null&&I<l||I<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=q.start;const U=this.buffer;q.start-=U,q.end+=U;let A=0;if(this.$refs.before&&(A=this.$refs.before.scrollHeight,q.start-=A),this.$refs.after){const I=this.$refs.after.scrollHeight;q.end+=I}if(n===null){let I,P=0,S=p-1,R=~~(p/2),B;do B=R,I=g[R].accumulator,I<q.start?P=R:R<p-1&&g[R+1].accumulator>q.start&&(S=R),R=~~((P+S)/2);while(R!==B);for(R<0&&(R=0),$=R,E=g[p-1].accumulator,C=R;C<p&&g[C].accumulator<q.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),N=$;N<p&&A+g[N].accumulator<q.start;N++);for(O=N;O<p&&A+g[O].accumulator<q.end;O++);}else{$=~~(q.start/n*i);const I=$%i;$-=I,C=Math.ceil(q.end/n*i),N=Math.max(0,Math.floor((q.start-A)/n*i)),O=Math.floor((q.end-A)/n*i),$<0&&($=0),C>p&&(C=p),N<0&&(N=0),O>p&&(O=p),E=Math.ceil(p/i)*n}}C-$>Cbe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let k;const z=$<=this.$_endIndex&&C>=this.$_startIndex;if(z)for(let q=0,U=w.length;q<U;q++)k=w[q],k.nr.used&&(e&&(k.nr.index=L[k.item[f]]),(k.nr.index==null||k.nr.index<$||k.nr.index>=C)&&this.unuseView(k));const D=z?null:new Map;let oe,Q,W;for(let q=$;q<C;q++){oe=h[q];const U=f?oe[f]:oe;if(U==null)throw new Error(`Key is ${U} on item (keyField is '${f}')`);if(k=v.get(U),!n&&!g[q].size){k&&this.unuseView(k);continue}Q=oe[u];let A=y.get(Q),I=!1;if(!k)z?A&&A.length?k=A.pop():k=this.addView(w,q,oe,U,Q):(W=D.get(Q)||0,(!A||W>=A.length)&&(k=this.addView(w,q,oe,U,Q),this.unuseView(k,!0),A=y.get(Q)),k=A[W],D.set(Q,W+1)),v.delete(k.nr.key),k.nr.used=!0,k.nr.index=q,k.nr.key=U,k.nr.type=Q,v.set(U,k),I=!0;else if(!k.nr.used&&(k.nr.used=!0,I=!0,A)){const P=A.indexOf(k);P!==-1&&A.splice(P,1)}k.item=oe,I&&(q===h.length-1&&this.$emit("scroll-end"),q===0&&this.$emit("scroll-start")),n===null?(k.position=g[q-1].accumulator,k.offset=0):(k.position=Math.floor(q/i)*n,k.offset=q%i*s)}return this.$_startIndex=$,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",$,C,N,O),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=Py(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const s=e.getBoundingClientRect(),l=n?s.height:s.width;let u=-(n?s.top:s.left),f=n?window.innerHeight:window.innerWidth;u<0&&(f+=u,u=0),u+f>l&&(f=l-u),i={start:u,end:u+f}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Gh?{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 n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,s;if(this.pageMode){const l=Py(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,i=t.scroll,s=e+u+p}else n=this.$el,i=t.scroll,s=e;n[i]=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 Pbe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Obe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Rbe(e,t,n,i,s,l){const u=Go("ResizeObserver"),f=Dr("observe-visibility");return ct((se(),ye("div",{class:ot(["vue-recycle-scroller",{ready:s.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(se(),ye("div",Pbe,[xn(e.$slots,"before")],512)):je("v-if",!0),(se(),Ye(ih(n.listTag),{ref:"wrapper",style:nn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:it(()=>[(se(!0),ye(nt,null,hr(s.pool,h=>(se(),Ye(ih(n.itemTag),_i({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:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&s.hoverKey===h.nr.key}]]},MT(n.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[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?(se(),ye("div",Obe,[xn(e.$slots,"after")],512)):je("v-if",!0),Ie(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}Jp.render=Rbe;Jp.__file="src/components/RecycleScroller.vue";function zbe(e){const t=_e(()=>Eh.value?!1:!et.onlyTests),n=_e(()=>Un.value===""),i=Ue(Un.value);$p(()=>Un.value,h=>{i.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Un.value="",h&&((p=e.value)==null||p.focus())}function l(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function u(){l(!1),s(!0)}function f(h,p,g,v,y){Zs.value&&(pn.value.search=(h==null?void 0:h.trim())??"",pn.value.failed=p,pn.value.success=g,pn.value.skipped=v,pn.value.onlyTests=y)}return St(()=>[i.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,g,v,y])=>{f(h,p,g,v,y),Ae.filterNodes()},{flush:"post"}),St(()=>Rr.value.length,h=>{h&&(pn.value.expandAll=void 0)},{flush:"post"}),{initialized:Zs,filter:et,search:Un,disableFilter:t,isFiltered:Fx,isFilteredByStatus:Eh,disableClearSearch:n,clearAll:u,clearSearch:s,clearFilter:l,filteredFiles:ff,testsTotal:fM,uiEntries:Jn}}const Dbe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Fbe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Hbe=["op"],Bbe={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Wbe={"text-red5":""},jbe={"text-yellow5":""},qbe={"text-green5":""},Ube={class:"text-purple5:50"},Vbe={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Gbe=["disabled"],Xbe=["disabled"],Kbe={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Jbe=at({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,i=_e(()=>el.value.includeTaskLocation),s=Ue(),{initialized:l,filter:u,search:f,disableFilter:h,isFiltered:p,isFilteredByStatus:g,disableClearSearch:v,clearAll:y,clearSearch:w,clearFilter:L,filteredFiles:$,testsTotal:C,uiEntries:E}=zbe(s),N=Ue("grid-cols-2"),O=Ue("grid-col-span-2"),k=Ue();return Rx(()=>k.value,([{contentRect:z}])=>{z.width<420?(N.value="grid-cols-2",O.value="grid-col-span-2"):(N.value="grid-cols-4",O.value="grid-col-span-4")}),(z,D)=>{const oe=ri,Q=cbe,W=lbe,q=Gye,U=Dr("tooltip");return se(),ye("div",{ref_key:"testExplorerRef",ref:k,h:"full",flex:"~ col"},[te("div",null,[te("div",Dbe,[xn(z.$slots,"header",{filteredFiles:j(p)||j(g)?j($):void 0})]),te("div",Fbe,[D[13]||(D[13]=te("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(te("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":D[0]||(D[0]=A=>kt(f)?f.value=A:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:j(f).length?"100":"50",onKeydown:[D[1]||(D[1]=hh(A=>j(w)(!1),["esc"])),D[2]||(D[2]=hh(A=>n("run",j(p)||j(g)?j($):void 0),["enter"]))]},null,40,Hbe),[[KC,j(f)]]),ct(Ie(oe,{disabled:j(v),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:D[3]||(D[3]=A=>j(w)(!0))},null,8,["disabled"]),[[U,"Clear search",void 0,{bottom:!0}]])]),te("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(j(N))},[te("div",{class:ot(j(O)),flex:"~ gap-2 items-center"},[D[14]||(D[14]=te("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),D[15]||(D[15]=te("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Ie(oe,{disabled:j(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:D[4]||(D[4]=A=>j(L)(!1))},null,8,["disabled"]),[[U,"Clear Filter",void 0,{bottom:!0}]])],2),Ie(Q,{modelValue:j(u).failed,"onUpdate:modelValue":D[5]||(D[5]=A=>j(u).failed=A),label:"Fail"},null,8,["modelValue"]),Ie(Q,{modelValue:j(u).success,"onUpdate:modelValue":D[6]||(D[6]=A=>j(u).success=A),label:"Pass"},null,8,["modelValue"]),Ie(Q,{modelValue:j(u).skipped,"onUpdate:modelValue":D[7]||(D[7]=A=>j(u).skipped=A),label:"Skip"},null,8,["modelValue"]),Ie(Q,{modelValue:j(u).onlyTests,"onUpdate:modelValue":D[8]||(D[8]=A=>j(u).onlyTests=A),label:"Only Tests"},null,8,["modelValue"])],2)]),te("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:D[12]||(D[12]=(...A)=>j(Yv)&&j(Yv)(...A))},[Ie(q,null,$T({default:it(()=>[(j(p)||j(g))&&j(E).length===0?(se(),ye(nt,{key:0},[j(l)?(se(),ye("div",Vbe,[D[18]||(D[18]=te("div",{op30:""}," No matched test ",-1)),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(j(v)?null:"hover:op100"),disabled:j(v),onClickPassive:D[9]||(D[9]=A=>j(w)(!0))}," Clear Search ",42,Gbe),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(j(h)?null:"hover:op100"),disabled:j(h),onClickPassive:D[10]||(D[10]=A=>j(L)(!0))}," Clear Filter ",42,Xbe),te("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:D[11]||(D[11]=(...A)=>j(y)&&j(y)(...A))}," Clear All ",32)])):(se(),ye("div",Kbe,D[19]||(D[19]=[te("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),te("div",{op30:""}," Loading... ",-1)])))],64)):(se(),Ye(j(Jp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:j(E),buffer:100},{default:it(({item:A})=>[Ie(W,{class:ot(["h-28px m-0 p-0",j(mo)===A.id?"bg-active":""]),"task-id":A.id,expandable:A.expandable,type:A.type,current:j(mo)===A.id,indent:A.indent,name:A.name,typecheck:A.typecheck===!0,"project-name":A.projectName??"","project-name-color":A.projectNameColor??"",state:A.state,duration:A.duration,opened:A.expanded,"disable-task-location":!j(i),"on-item-click":z.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},[j(l)?{name:"summary",fn:it(()=>[te("div",Bbe,[te("span",Wbe," FAIL ("+Re(j(C).failed)+") ",1),D[16]||(D[16]=te("span",null,"/",-1)),te("span",jbe," RUNNING ("+Re(j(C).running)+") ",1),te("span",qbe," PASS ("+Re(j(C).success)+") ",1),D[17]||(D[17]=te("span",null,"/",-1)),te("span",Ube," SKIP ("+Re(j(u).onlyTests?j(C).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Ybe=""+new URL("../favicon.svg",import.meta.url).href,Zbe={class:"flex text-lg"},Qbe=at({__name:"Navigation",setup(e){function t(){return ht.rpc.updateSnapshot()}const n=_e(()=>ll.value?"light":"dark");async function i(u){Ns.value&&(Nu.value=!0,await Et(),vo.value&&(Iu(!0),await Et())),u!=null&&u.length?await zp(u):await Xfe()}function s(){Ae.collapseAllNodes()}function l(){Ae.expandAllNodes()}return(u,f)=>{const h=ri,p=Jbe,g=Dr("tooltip");return se(),Ye(p,{border:"r base","on-item-click":j(BM),nested:!0,onRun:i},{header:it(({filteredFiles:v})=>[f[8]||(f[8]=te("img",{"w-6":"","h-6":"",src:Ybe,alt:"Vitest logo"},null,-1)),f[9]||(f[9]=te("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),te("div",Zbe,[ct(Ie(h,{title:"Collapse tests",disabled:!j(Zs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:f[0]||(f[0]=y=>s())},null,8,["disabled"]),[[to,!j(D0)],[g,"Collapse tests",void 0,{bottom:!0}]]),ct(Ie(h,{disabled:!j(Zs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:f[1]||(f[1]=y=>l())},null,8,["disabled"]),[[to,j(D0)],[g,"Expand tests",void 0,{bottom:!0}]]),ct(Ie(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:f[2]||(f[2]=y=>j(Iu)(!0))},null,512),[[to,j($h)&&!j(Ns)||!j(qs)],[g,"Dashboard",void 0,{bottom:!0}]]),j($h)&&!j(Ns)?(se(),Ye(j(jw),{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:it(()=>f[6]||(f[6]=[te("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),te("div",null,"Coverage enabled but missing html reporter."),te("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:it(()=>[f[7]||(f[7]=te("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1,__:[7]})):je("",!0),j(Ns)?ct((se(),Ye(h,{key:1,disabled:j(Nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:f[3]||(f[3]=y=>j(WM)())},null,8,["disabled"])),[[to,!j(vo)],[g,"Coverage",void 0,{bottom:!0}]]):je("",!0),j(Ae).summary.failedSnapshot&&!j(pr)?ct((se(),Ye(h,{key:2,icon:"i-carbon:result-old",disabled:!j(Ae).summary.failedSnapshotEnabled,onClick:f[4]||(f[4]=y=>j(Ae).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):je("",!0),j(pr)?je("",!0):ct((se(),Ye(h,{key:3,disabled:(v==null?void 0:v.length)===0,icon:"i-carbon:play",onClick:y=>i(v)},null,8,["disabled","onClick"])),[[g,v?v.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ct(Ie(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:f[5]||(f[5]=y=>j(Ode)())},null,512),[[g,`Toggle to ${j(n)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),ewe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},twe=at({__name:"ProgressBar",setup(e){const{width:t}=zx(),n=_e(()=>[Ae.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!$s.value&&"in-progress"].filter(Boolean).join(" ")),i=_e(()=>{const f=Ae.summary.files;return f>0?t.value*Ae.summary.filesSuccess/f:0}),s=_e(()=>{const f=Ae.summary.files;return f>0?t.value*Ae.summary.filesFailed/f:0}),l=_e(()=>Ae.summary.files-Ae.summary.filesFailed-Ae.summary.filesSuccess),u=_e(()=>{const f=Ae.summary.files;return f>0?t.value*l.value/f:0});return(f,h)=>(se(),ye("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:ot(j(n))},[te("div",ewe,[te("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(j(n)),style:nn(`width: ${j(s)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(j(n)),style:nn(`left: ${j(s)}px; width: ${j(i)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(j(n)),style:nn(`left: ${j(i)+j(s)}px; width: ${j(u)}px;`)},"   ",6)])],2))}}),nwe=ni(twe,[["__scopeId","data-v-16879415"]]),Oy={__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 n=t,i=e,s=IT(),l=Ue([]),u=_e(()=>l.value.reduce((re,V)=>(re[~~V.id]=V)&&re,{})),f=_e(()=>l.value.length),h=Ue(null),p=Ue(!1),g=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ue({splitter:null,timeoutId:null}),y=_e(()=>({[`splitpanes splitpanes--${i.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",C,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",E))},L=()=>{document.removeEventListener("mousemove",C,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",C,{passive:!1}),document.removeEventListener("touchend",E))},$=(re,V)=>{const ee=re.target.closest(".splitpanes__splitter");if(ee){const{left:J,top:ae}=ee.getBoundingClientRect(),{clientX:ge,clientY:F}="ontouchstart"in window&&re.touches?re.touches[0]:re;g.value.cursorOffset=i.horizontal?F-ae:ge-J}w(),g.value.mouseDown=!0,g.value.activeSplitter=V},C=re=>{g.value.mouseDown&&(re.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{oe(z(re)),n("resize",l.value.map(V=>({min:V.min,max:V.max,size:V.size})))}))},E=()=>{g.value.dragging&&n("resized",l.value.map(re=>({min:re.min,max:re.max,size:re.size}))),g.value.mouseDown=!1,setTimeout(()=>{g.value.dragging=!1,L()},100)},N=(re,V)=>{"ontouchstart"in window&&(re.preventDefault(),i.dblClickSplitter&&(v.value.splitter===V?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,O(re,V),v.value.splitter=null):(v.value.splitter=V,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500)))),g.value.dragging||n("splitter-click",l.value[V])},O=(re,V)=>{let ee=0;l.value=l.value.map((J,ae)=>(J.size=ae===V?J.max:J.min,ae!==V&&(ee+=J.min),J)),l.value[V].size-=ee,n("pane-maximize",l.value[V]),n("resized",l.value.map(J=>({min:J.min,max:J.max,size:J.size})))},k=(re,V)=>{n("pane-click",u.value[V])},z=re=>{const V=h.value.getBoundingClientRect(),{clientX:ee,clientY:J}="ontouchstart"in window&&re.touches?re.touches[0]:re;return{x:ee-(i.horizontal?0:g.value.cursorOffset)-V.left,y:J-(i.horizontal?g.value.cursorOffset:0)-V.top}},D=re=>{re=re[i.horizontal?"y":"x"];const V=h.value[i.horizontal?"clientHeight":"clientWidth"];return i.rtl&&!i.horizontal&&(re=V-re),re*100/V},oe=re=>{const V=g.value.activeSplitter;let ee={prevPanesSize:W(V),nextPanesSize:q(V),prevReachedMinPanes:0,nextReachedMinPanes:0};const J=0+(i.pushOtherPanes?0:ee.prevPanesSize),ae=100-(i.pushOtherPanes?0:ee.nextPanesSize),ge=Math.max(Math.min(D(re),ae),J);let F=[V,V+1],G=l.value[F[0]]||null,Y=l.value[F[1]]||null;const fe=G.max<100&&ge>=G.max+ee.prevPanesSize,pe=Y.max<100&&ge<=100-(Y.max+q(V+1));if(fe||pe){fe?(G.size=G.max,Y.size=Math.max(100-G.max-ee.prevPanesSize-ee.nextPanesSize,0)):(G.size=Math.max(100-Y.max-ee.prevPanesSize-q(V+1),0),Y.size=Y.max);return}if(i.pushOtherPanes){const he=Q(ee,ge);if(!he)return;({sums:ee,panesToResize:F}=he),G=l.value[F[0]]||null,Y=l.value[F[1]]||null}G!==null&&(G.size=Math.min(Math.max(ge-ee.prevPanesSize-ee.prevReachedMinPanes,G.min),G.max)),Y!==null&&(Y.size=Math.min(Math.max(100-ge-ee.nextPanesSize-ee.nextReachedMinPanes,Y.min),Y.max))},Q=(re,V)=>{const ee=g.value.activeSplitter,J=[ee,ee+1];return V<re.prevPanesSize+l.value[J[0]].min&&(J[0]=U(ee).index,re.prevReachedMinPanes=0,J[0]<ee&&l.value.forEach((ae,ge)=>{ge>J[0]&&ge<=ee&&(ae.size=ae.min,re.prevReachedMinPanes+=ae.min)}),re.prevPanesSize=W(J[0]),J[0]===void 0)?(re.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((ae,ge)=>{ge>0&&ge<=ee&&(ae.size=ae.min,re.prevReachedMinPanes+=ae.min)}),l.value[J[1]].size=100-re.prevReachedMinPanes-l.value[0].min-re.prevPanesSize-re.nextPanesSize,null):V>100-re.nextPanesSize-l.value[J[1]].min&&(J[1]=A(ee).index,re.nextReachedMinPanes=0,J[1]>ee+1&&l.value.forEach((ae,ge)=>{ge>ee&&ge<J[1]&&(ae.size=ae.min,re.nextReachedMinPanes+=ae.min)}),re.nextPanesSize=q(J[1]-1),J[1]===void 0)?(re.nextReachedMinPanes=0,l.value.forEach((ae,ge)=>{ge<f.value-1&&ge>=ee+1&&(ae.size=ae.min,re.nextReachedMinPanes+=ae.min)}),l.value[J[0]].size=100-re.prevPanesSize-q(J[0]-1),null):{sums:re,panesToResize:J}},W=re=>l.value.reduce((V,ee,J)=>V+(J<re?ee.size:0),0),q=re=>l.value.reduce((V,ee,J)=>V+(J>re+1?ee.size:0),0),U=re=>[...l.value].reverse().find(V=>V.index<re&&V.size>V.min)||{},A=re=>l.value.find(V=>V.index>re+1&&V.size>V.min)||{},I=()=>{var re;Array.from(((re=h.value)==null?void 0:re.children)||[]).forEach(V=>{const ee=V.classList.contains("splitpanes__pane"),J=V.classList.contains("splitpanes__splitter");!ee&&!J&&(V.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},P=(re,V,ee=!1)=>{const J=re-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),ee||(ae.onmousedown=ge=>$(ge,J),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=ge=>$(ge,J)),ae.onclick=ge=>N(ge,J+1)),i.dblClickSplitter&&(ae.ondblclick=ge=>O(ge,J+1)),V.parentNode.insertBefore(ae,V)},S=re=>{re.onmousedown=void 0,re.onclick=void 0,re.ondblclick=void 0,re.remove()},R=()=>{var re;const V=Array.from(((re=h.value)==null?void 0:re.children)||[]);V.forEach(J=>{J.className.includes("splitpanes__splitter")&&S(J)});let ee=0;V.forEach(J=>{J.className.includes("splitpanes__pane")&&(!ee&&i.firstSplitter?P(ee,J,!0):ee&&P(ee,J),ee++)})},B=({uid:re,...V})=>{const ee=u.value[re];Object.entries(V).forEach(([J,ae])=>ee[J]=ae)},ie=re=>{var V;let ee=-1;Array.from(((V=h.value)==null?void 0:V.children)||[]).some(J=>(J.className.includes("splitpanes__pane")&&ee++,J.isSameNode(re.el))),l.value.splice(ee,0,{...re,index:ee}),l.value.forEach((J,ae)=>J.index=ae),p.value&&Et(()=>{R(),we({addedPane:l.value[ee]}),n("pane-add",{index:ee,panes:l.value.map(J=>({min:J.min,max:J.max,size:J.size}))})})},ue=re=>{const V=l.value.findIndex(J=>J.id===re),ee=l.value.splice(V,1)[0];l.value.forEach((J,ae)=>J.index=ae),Et(()=>{R(),we({removedPane:{...ee}}),n("pane-remove",{removed:ee,panes:l.value.map(J=>({min:J.min,max:J.max,size:J.size}))})})},we=(re={})=>{!re.addedPane&&!re.removedPane?qe():l.value.some(V=>V.givenSize!==null||V.min||V.max<100)?Ze(re):Pe(),p.value&&n("resized",l.value.map(V=>({min:V.min,max:V.max,size:V.size})))},Pe=()=>{const re=100/f.value;let V=0;const ee=[],J=[];l.value.forEach(ae=>{ae.size=Math.max(Math.min(re,ae.max),ae.min),V-=ae.size,ae.size>=ae.max&&ee.push(ae.id),ae.size<=ae.min&&J.push(ae.id)}),V>.1&&Ke(V,ee,J)},qe=()=>{let re=100;const V=[],ee=[];let J=0;l.value.forEach(ge=>{re-=ge.size,ge.givenSize!==null&&J++,ge.size>=ge.max&&V.push(ge.id),ge.size<=ge.min&&ee.push(ge.id)});let ae=100;re>.1&&(l.value.forEach(ge=>{ge.givenSize===null&&(ge.size=Math.max(Math.min(re/(f.value-J),ge.max),ge.min)),ae-=ge.size}),ae>.1&&Ke(ae,V,ee))},Ze=({addedPane:re,removedPane:V}={})=>{let ee=100/f.value,J=0;const ae=[],ge=[];((re==null?void 0:re.givenSize)??null)!==null&&(ee=(100-re.givenSize)/(f.value-1).value),l.value.forEach(F=>{J-=F.size,F.size>=F.max&&ae.push(F.id),F.size<=F.min&&ge.push(F.id)}),!(Math.abs(J)<.1)&&(l.value.forEach(F=>{(re==null?void 0:re.givenSize)!==null&&(re==null?void 0:re.id)===F.id||(F.size=Math.max(Math.min(ee,F.max),F.min)),J-=F.size,F.size>=F.max&&ae.push(F.id),F.size<=F.min&&ge.push(F.id)}),J>.1&&Ke(J,ae,ge))},Ke=(re,V,ee)=>{let J;re>0?J=re/(f.value-V.length):J=re/(f.value-ee.length),l.value.forEach((ae,ge)=>{if(re>0&&!V.includes(ae.id)){const F=Math.max(Math.min(ae.size+J,ae.max),ae.min),G=F-ae.size;re-=G,ae.size=F}else if(!ee.includes(ae.id)){const F=Math.max(Math.min(ae.size+J,ae.max),ae.min),G=F-ae.size;re-=G,ae.size=F}}),Math.abs(re)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};St(()=>i.firstSplitter,()=>R()),St(()=>i.dblClickSplitter,re=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((V,ee)=>{V.ondblclick=re?J=>O(J,ee):void 0})}),Ha(()=>p.value=!1),bo(()=>{I(),R(),we(),n("ready"),p.value=!0});const Je=()=>{var re;return Wa("div",{ref:h,class:y.value},(re=s.default)==null?void 0:re.call(s))};return Er("panes",l),Er("indexedPanes",u),Er("horizontal",_e(()=>i.horizontal)),Er("requestUpdate",B),Er("onPaneAdd",ie),Er("onPaneRemove",ue),Er("onPaneClick",k),(re,V)=>(se(),Ye(ih(Je)))}},Xc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,i=wn("requestUpdate"),s=wn("onPaneAdd"),l=wn("horizontal"),u=wn("onPaneRemove"),f=wn("onPaneClick"),h=(t=Ko())==null?void 0:t.uid,p=wn("indexedPanes"),g=_e(()=>p.value[h]),v=Ue(null),y=_e(()=>{const C=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(C,L.value),w.value)}),w=_e(()=>{const C=parseFloat(n.minSize);return isNaN(C)?0:C}),L=_e(()=>{const C=parseFloat(n.maxSize);return isNaN(C)?100:C}),$=_e(()=>{var C;return`${l.value?"height":"width"}: ${(C=g.value)==null?void 0:C.size}%`});return bo(()=>{s({id:h,el:v.value,min:w.value,max:L.value,givenSize:n.size===void 0?null:y.value,size:y.value})}),St(()=>y.value,C=>i({uid:h,size:C})),St(()=>w.value,C=>i({uid:h,min:C})),St(()=>L.value,C=>i({uid:h,max:C})),Ha(()=>u(h)),(C,E)=>(se(),ye("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:E[0]||(E[0]=N=>j(f)(N,C._.uid)),style:nn($.value)},[xn(C.$slots,"default")],4))}},rwe={"h-screen":"","w-screen":"",overflow:"hidden"},iwe=at({__name:"index",setup(e){const t=HM(),n=Hc(g=>{h(),f(g)},0),i=Hc(g=>{g.forEach((v,y)=>{Us.value[y]=v.size}),u(g),p()},0),s=Hc(g=>{g.forEach((v,y)=>{co.value[y]=v.size}),f(g),p()},0),l=Hc(g=>{u(g),h()},0);function u(g){At.navigation=g[0].size,At.details.size=g[1].size}function f(g){At.details.browser=g[0].size,At.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>{const y=nwe,w=Qbe,L=Uye,$=lye,C=rye,E=ude,N=Qfe;return se(),ye(nt,null,[Ie(y),te("div",rwe,[Ie(j(Oy),{class:"pt-4px",onResized:j(i),onResize:j(l)},{default:it(()=>[Ie(j(Xc),{size:j(Us)[0]},{default:it(()=>[Ie(w)]),_:1},8,["size"]),Ie(j(Xc),{size:j(Us)[1]},{default:it(()=>[j(It)?(se(),Ye(j(Oy),{id:"details-splitpanes",key:"browser-detail",onResize:j(n),onResized:j(s)},{default:it(()=>[Ie(j(Xc),{size:j(co)[0],"min-size":"10"},{default:it(()=>[v[0]||(vu(-1,!0),(v[0]=Ie(E)).cacheIndex=0,vu(1),v[0])]),_:1},8,["size"]),Ie(j(Xc),{size:j(co)[1]},{default:it(()=>[j(t)?(se(),Ye(L,{key:"summary"})):j(vo)?(se(),Ye($,{key:"coverage",src:j(W0)},null,8,["src"])):(se(),Ye(C,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(se(),Ye(LC,{key:"ui-detail"},{default:it(()=>[j(t)?(se(),Ye(L,{key:"summary"})):j(vo)?(se(),Ye($,{key:"coverage",src:j(W0)},null,8,["src"])):(se(),Ye(C,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ie(N)],64)}}}),owe=[{name:"index",path:"/",component:iwe,props:!0}];/*!
48
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var K;g&&(K=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,K),a.input.reset(),c.somethingSelected()||(d.value=o.prevInput=" "),o.contextMenuPending=Z,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function ne(){if(d.selectionStart!=null){var me=c.somethingSelected(),Se="​"+(me?d.value:"");d.value="⇚",d.value=Se,o.prevInput=me?"":"​",d.selectionStart=1,d.selectionEnd=Se.length,a.selForContextMenu=c.doc.sel}}function Z(){if(o.contextMenuPending==Z&&(o.contextMenuPending=!1,o.wrapper.style.cssText=T,d.style.cssText=_,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&ne();var me=0,Se=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&o.prevInput=="​"?Yt(c,vm)(c):me++<10?a.detectingSelectAll=setTimeout(Se,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Se,200)}}if(h&&p>=9&&ne(),q){Mi(r);var ce=function(){ln(window,"mouseup",ce),setTimeout(Z,20)};Be(window,"mouseup",ce)}else setTimeout(Z,50)},Ht.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},Ht.prototype.setUneditable=function(){},Ht.prototype.needsContentAttribute=!1;function vk(r,o){if(o=o?ee(o):{},o.value=r.value,!o.tabindex&&r.tabIndex&&(o.tabindex=r.tabIndex),!o.placeholder&&r.placeholder&&(o.placeholder=r.placeholder),o.autofocus==null){var c=ue(Je(r));o.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(Be(r.form,"submit",a),!o.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}o.finishInit=function(_){_.save=a,_.getTextArea=function(){return r},_.toTextArea=function(){_.toTextArea=isNaN,a(),r.parentNode.removeChild(_.getWrapperElement()),r.style.display="",r.form&&(ln(r.form,"submit",a),!o.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Ct(function(_){return r.parentNode.insertBefore(_,r.nextSibling)},o);return x}function yk(r){r.off=ln,r.on=Be,r.wheelEventPixels=T_,r.Doc=Tn,r.splitLines=lr,r.countColumn=J,r.findColumn=he,r.isWordChar=rt,r.Pass=G,r.signal=Pt,r.Line=ss,r.changeEnd=Fi,r.scrollbarModel=Gg,r.Pos=le,r.cmpPos=Le,r.modes=es,r.mimeModes=br,r.resolveMode=ts,r.getMode=ns,r.modeExtensions=Pi,r.extendMode=rs,r.copyState=Br,r.startState=is,r.innerMode=fl,r.commands=Ol,r.keyMap=fi,r.keyName=Im,r.isModifierKey=Mm,r.lookupKey=bs,r.normalizeKeyMap=G_,r.StringStream=Rt,r.SharedTextMarker=Nl,r.TextMarker=Bi,r.LineWidget=Ml,r.e_preventDefault=an,r.e_stopPropagation=Zo,r.e_stop=Mi,r.addClass=we,r.contains=ie,r.rmClass=A,r.keyNames=Wi}ck(Ct),hk(Ct);var bk="iter insert remove copy getEditor constructor".split(" ");for(var $c in Tn.prototype)Tn.prototype.hasOwnProperty($c)&&ge(bk,$c)<0&&(Ct.prototype[$c]=function(r){return function(){return r.apply(this.doc,arguments)}}(Tn.prototype[$c]));return mr(Tn),Ct.inputStyles={textarea:Ht,contenteditable:yt},Ct.defineMode=function(r){!Ct.defaults.mode&&r!="null"&&(Ct.defaults.mode=r),wr.apply(this,arguments)},Ct.defineMIME=_o,Ct.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(r,o){Ct.prototype[r]=o},Ct.defineDocExtension=function(r,o){Tn.prototype[r]=o},Ct.fromTextArea=vk,yk(Ct),Ct.version="5.65.18",Ct})}(ru)),ru.exports}var Cde=ll();const Ede=kp(Cde);var Z0={exports:{}},Q0;function p1(){return Q0||(Q0=1,function(e,t){(function(n){n(ll())})(function(n){n.defineMode("javascript",function(i,s){var l=i.indentUnit,u=s.statementIndent,f=s.jsonld,h=s.json||f,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function M(Kt){return{type:Kt,style:"keyword"}}var X=M("keyword a"),de=M("keyword b"),xe=M("keyword c"),le=M("keyword d"),Le=M("operator"),pt={type:"atom",style:"atom"};return{if:M("if"),while:X,with:X,else:de,do:de,try:de,finally:de,return:le,break:le,continue:le,new:M("new"),delete:xe,void:xe,throw:xe,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Le,typeof:Le,instanceof:Le,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:M("this"),class:M("class"),super:M("atom"),yield:xe,export:M("export"),import:M("import"),extends:xe,await:xe}}(),w=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function $(M){for(var X=!1,de,xe=!1;(de=M.next())!=null;){if(!X){if(de=="/"&&!xe)return;de=="["?xe=!0:xe&&de=="]"&&(xe=!1)}X=!X&&de=="\\"}}var C,E;function N(M,X,de){return C=M,E=de,X}function O(M,X){var de=M.next();if(de=='"'||de=="'")return X.tokenize=k(de),X.tokenize(M,X);if(de=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return N("number","number");if(de=="."&&M.match(".."))return N("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return N(de);if(de=="="&&M.eat(">"))return N("=>","operator");if(de=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return N("number","number");if(/\d/.test(de))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),N("number","number");if(de=="/")return M.eat("*")?(X.tokenize=z,z(M,X)):M.eat("/")?(M.skipToEnd(),N("comment","comment")):Yn(M,X,1)?($(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),N("regexp","string-2")):(M.eat("="),N("operator","operator",M.current()));if(de=="`")return X.tokenize=D,D(M,X);if(de=="#"&&M.peek()=="!")return M.skipToEnd(),N("meta","meta");if(de=="#"&&M.eatWhile(v))return N("variable","property");if(de=="<"&&M.match("!--")||de=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),N("comment","comment");if(w.test(de))return(de!=">"||!X.lexical||X.lexical.type!=">")&&(M.eat("=")?(de=="!"||de=="=")&&M.eat("="):/[<>*+\-|&?]/.test(de)&&(M.eat(de),de==">"&&M.eat(de))),de=="?"&&M.eat(".")?N("."):N("operator","operator",M.current());if(v.test(de)){M.eatWhile(v);var xe=M.current();if(X.lastType!="."){if(y.propertyIsEnumerable(xe)){var le=y[xe];return N(le.type,le.style,xe)}if(xe=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return N("async","keyword",xe)}return N("variable","variable",xe)}}function k(M){return function(X,de){var xe=!1,le;if(f&&X.peek()=="@"&&X.match(L))return de.tokenize=O,N("jsonld-keyword","meta");for(;(le=X.next())!=null&&!(le==M&&!xe);)xe=!xe&&le=="\\";return xe||(de.tokenize=O),N("string","string")}}function z(M,X){for(var de=!1,xe;xe=M.next();){if(xe=="/"&&de){X.tokenize=O;break}de=xe=="*"}return N("comment","comment")}function D(M,X){for(var de=!1,xe;(xe=M.next())!=null;){if(!de&&(xe=="`"||xe=="$"&&M.eat("{"))){X.tokenize=O;break}de=!de&&xe=="\\"}return N("quasi","string-2",M.current())}var oe="([{}])";function Q(M,X){X.fatArrowAt&&(X.fatArrowAt=null);var de=M.string.indexOf("=>",M.start);if(!(de<0)){if(g){var xe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,de));xe&&(de=xe.index)}for(var le=0,Le=!1,pt=de-1;pt>=0;--pt){var Kt=M.string.charAt(pt),_n=oe.indexOf(Kt);if(_n>=0&&_n<3){if(!le){++pt;break}if(--le==0){Kt=="("&&(Le=!0);break}}else if(_n>=3&&_n<6)++le;else if(v.test(Kt))Le=!0;else if(/["'\/`]/.test(Kt))for(;;--pt){if(pt==0)return;var os=M.string.charAt(pt-1);if(os==Kt&&M.string.charAt(pt-2)!="\\"){pt--;break}}else if(Le&&!le){++pt;break}}Le&&!le&&(X.fatArrowAt=pt)}}var W={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function q(M,X,de,xe,le,Le){this.indented=M,this.column=X,this.type=de,this.prev=le,this.info=Le,xe!=null&&(this.align=xe)}function U(M,X){if(!p)return!1;for(var de=M.localVars;de;de=de.next)if(de.name==X)return!0;for(var xe=M.context;xe;xe=xe.prev)for(var de=xe.vars;de;de=de.next)if(de.name==X)return!0}function A(M,X,de,xe,le){var Le=M.cc;for(I.state=M,I.stream=le,I.marked=null,I.cc=Le,I.style=X,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var pt=Le.length?Le.pop():h?ge:J;if(pt(de,xe)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return I.marked?I.marked:de=="variable"&&U(M,xe)?"variable-2":X}}}var I={state:null,marked:null,cc:null};function P(){for(var M=arguments.length-1;M>=0;M--)I.cc.push(arguments[M])}function S(){return P.apply(null,arguments),!0}function R(M,X){for(var de=X;de;de=de.next)if(de.name==M)return!0;return!1}function B(M){var X=I.state;if(I.marked="def",!!p){if(X.context){if(X.lexical.info=="var"&&X.context&&X.context.block){var de=ie(M,X.context);if(de!=null){X.context=de;return}}else if(!R(M,X.localVars)){X.localVars=new Pe(M,X.localVars);return}}s.globalVars&&!R(M,X.globalVars)&&(X.globalVars=new Pe(M,X.globalVars))}}function ie(M,X){if(X)if(X.block){var de=ie(M,X.prev);return de?de==X.prev?X:new we(de,X.vars,!0):null}else return R(M,X.vars)?X:new we(X.prev,new Pe(M,X.vars),!1);else return null}function ue(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function we(M,X,de){this.prev=M,this.vars=X,this.block=de}function Pe(M,X){this.name=M,this.next=X}var qe=new Pe("this",new Pe("arguments",null));function Ze(){I.state.context=new we(I.state.context,I.state.localVars,!1),I.state.localVars=qe}function Ke(){I.state.context=new we(I.state.context,I.state.localVars,!0),I.state.localVars=null}Ze.lex=Ke.lex=!0;function Je(){I.state.localVars=I.state.context.vars,I.state.context=I.state.context.prev}Je.lex=!0;function re(M,X){var de=function(){var xe=I.state,le=xe.indented;if(xe.lexical.type=="stat")le=xe.lexical.indented;else for(var Le=xe.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)le=Le.indented;xe.lexical=new q(le,I.stream.column(),M,null,xe.lexical,X)};return de.lex=!0,de}function V(){var M=I.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}V.lex=!0;function ee(M){function X(de){return de==M?S():M==";"||de=="}"||de==")"||de=="]"?P():S(X)}return X}function J(M,X){return M=="var"?S(re("vardef",X),Zo,ee(";"),V):M=="keyword a"?S(re("form"),G,J,V):M=="keyword b"?S(re("form"),J,V):M=="keyword d"?I.stream.match(/^\s*$/,!1)?S():S(re("stat"),fe,ee(";"),V):M=="debugger"?S(ee(";")):M=="{"?S(re("}"),Ke,Bt,V,Je):M==";"?S():M=="if"?(I.state.lexical.info=="else"&&I.state.cc[I.state.cc.length-1]==V&&I.state.cc.pop()(),S(re("form"),G,J,V,Qo)):M=="function"?S(lr):M=="for"?S(re("form"),Ke,Qa,J,Je,V):M=="class"||g&&X=="interface"?(I.marked="keyword",S(re("form",M=="class"?M:X),es,V)):M=="variable"?g&&X=="declare"?(I.marked="keyword",S(J)):g&&(X=="module"||X=="enum"||X=="type")&&I.stream.match(/^\s*\w/,!1)?(I.marked="keyword",X=="enum"?S(Oe):X=="type"?S(ec,ee("operator"),tt,ee(";")):S(re("form"),Sn,ee("{"),re("}"),Bt,V,V)):g&&X=="namespace"?(I.marked="keyword",S(re("form"),ge,J,V)):g&&X=="abstract"?(I.marked="keyword",S(J)):S(re("stat"),Ve):M=="switch"?S(re("form"),G,ee("{"),re("}","switch"),Ke,Bt,V,V,Je):M=="case"?S(ge,ee(":")):M=="default"?S(ee(":")):M=="catch"?S(re("form"),Ze,ae,J,V,Je):M=="export"?S(re("stat"),ts,V):M=="import"?S(re("stat"),Pi,V):M=="async"?S(J):X=="@"?S(ge,J):P(re("stat"),ge,ee(";"),V)}function ae(M){if(M=="(")return S(yr,ee(")"))}function ge(M,X){return Y(M,X,!1)}function F(M,X){return Y(M,X,!0)}function G(M){return M!="("?P():S(re(")"),fe,ee(")"),V)}function Y(M,X,de){if(I.state.fatArrowAt==I.stream.start){var xe=de?be:ve;if(M=="(")return S(Ze,re(")"),lt(yr,")"),V,ee("=>"),xe,Je);if(M=="variable")return P(Ze,Sn,ee("=>"),xe,Je)}var le=de?he:pe;return W.hasOwnProperty(M)?S(le):M=="function"?S(lr,le):M=="class"||g&&X=="interface"?(I.marked="keyword",S(re("form"),wf,V)):M=="keyword c"||M=="async"?S(de?F:ge):M=="("?S(re(")"),fe,ee(")"),V,le):M=="operator"||M=="spread"?S(de?F:ge):M=="["?S(re("]"),Rt,V,le):M=="{"?Xt(st,"}",null,le):M=="quasi"?P(Ce,le):M=="new"?S(He(de)):S()}function fe(M){return M.match(/[;\}\)\],]/)?P():P(ge)}function pe(M,X){return M==","?S(fe):he(M,X,!1)}function he(M,X,de){var xe=de==!1?pe:he,le=de==!1?ge:F;if(M=="=>")return S(Ze,de?be:ve,Je);if(M=="operator")return/\+\+|--/.test(X)||g&&X=="!"?S(xe):g&&X=="<"&&I.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(re(">"),lt(tt,">"),V,xe):X=="?"?S(ge,ee(":"),le):S(le);if(M=="quasi")return P(Ce,xe);if(M!=";"){if(M=="(")return Xt(F,")","call",xe);if(M==".")return S(rt,xe);if(M=="[")return S(re("]"),fe,ee("]"),V,xe);if(g&&X=="as")return I.marked="keyword",S(tt,xe);if(M=="regexp")return I.state.lastType=I.marked="operator",I.stream.backUp(I.stream.pos-I.stream.start-1),S(le)}}function Ce(M,X){return M!="quasi"?P():X.slice(X.length-2)!="${"?S(Ce):S(fe,Ee)}function Ee(M){if(M=="}")return I.marked="string-2",I.state.tokenize=D,S(Ce)}function ve(M){return Q(I.stream,I.state),P(M=="{"?J:ge)}function be(M){return Q(I.stream,I.state),P(M=="{"?J:F)}function He(M){return function(X){return X=="."?S(M?De:Me):X=="variable"&&g?S(Hn,M?he:pe):P(M?F:ge)}}function Me(M,X){if(X=="target")return I.marked="keyword",S(pe)}function De(M,X){if(X=="target")return I.marked="keyword",S(he)}function Ve(M){return M==":"?S(V,J):P(pe,ee(";"),V)}function rt(M){if(M=="variable")return I.marked="property",S()}function st(M,X){if(M=="async")return I.marked="property",S(st);if(M=="variable"||I.style=="keyword"){if(I.marked="property",X=="get"||X=="set")return S(ut);var de;return g&&I.state.fatArrowAt==I.stream.start&&(de=I.stream.match(/^\s*:\s*/,!1))&&(I.state.fatArrowAt=I.stream.pos+de[0].length),S($t)}else{if(M=="number"||M=="string")return I.marked=f?"property":I.style+" property",S($t);if(M=="jsonld-keyword")return S($t);if(g&&ue(X))return I.marked="keyword",S(st);if(M=="[")return S(ge,Dn,ee("]"),$t);if(M=="spread")return S(F,$t);if(X=="*")return I.marked="keyword",S(st);if(M==":")return P($t)}}function ut(M){return M!="variable"?P($t):(I.marked="property",S(lr))}function $t(M){if(M==":")return S(F);if(M=="(")return P(lr)}function lt(M,X,de){function xe(le,Le){if(de?de.indexOf(le)>-1:le==","){var pt=I.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Kt,_n){return Kt==X||_n==X?P():P(M)},xe)}return le==X||Le==X?S():de&&de.indexOf(";")>-1?P(M):S(ee(X))}return function(le,Le){return le==X||Le==X?S():P(M,xe)}}function Xt(M,X,de){for(var xe=3;xe<arguments.length;xe++)I.cc.push(arguments[xe]);return S(re(X,de),lt(M,X),V)}function Bt(M){return M=="}"?S():P(J,Bt)}function Dn(M,X){if(g){if(M==":")return S(tt);if(X=="?")return S(Dn)}}function Hr(M,X){if(g&&(M==":"||X=="in"))return S(tt)}function Ft(M){if(g&&M==":")return I.stream.match(/^\s*\w+\s+is\b/,!1)?S(ge,Fn,tt):S(tt)}function Fn(M,X){if(X=="is")return I.marked="keyword",S()}function tt(M,X){if(X=="keyof"||X=="typeof"||X=="infer"||X=="readonly")return I.marked="keyword",S(X=="typeof"?F:tt);if(M=="variable"||X=="void")return I.marked="type",S(sr);if(X=="|"||X=="&")return S(tt);if(M=="string"||M=="number"||M=="atom")return S(sr);if(M=="[")return S(re("]"),lt(tt,"]",","),V,sr);if(M=="{")return S(re("}"),Be,V,sr);if(M=="(")return S(lt(Ot,")"),So,sr);if(M=="<")return S(lt(tt,">"),tt);if(M=="quasi")return P(ln,sr)}function So(M){if(M=="=>")return S(tt)}function Be(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(Be):P(oi,Be)}function oi(M,X){if(M=="variable"||I.style=="keyword")return I.marked="property",S(oi);if(X=="?"||M=="number"||M=="string")return S(oi);if(M==":")return S(tt);if(M=="[")return S(ee("variable"),Hr,ee("]"),oi);if(M=="(")return P(Ii,oi);if(!M.match(/[;\}\)\],]/))return S()}function ln(M,X){return M!="quasi"?P():X.slice(X.length-2)!="${"?S(ln):S(tt,Pt)}function Pt(M){if(M=="}")return I.marked="string-2",I.state.tokenize=D,S(ln)}function Ot(M,X){return M=="variable"&&I.stream.match(/^\s*[?:]/,!1)||X=="?"?S(Ot):M==":"?S(tt):M=="spread"?S(Ot):P(tt)}function sr(M,X){if(X=="<")return S(re(">"),lt(tt,">"),V,sr);if(X=="|"||M=="."||X=="&")return S(tt);if(M=="[")return S(tt,ee("]"),sr);if(X=="extends"||X=="implements")return I.marked="keyword",S(tt);if(X=="?")return S(tt,ee(":"),tt)}function Hn(M,X){if(X=="<")return S(re(">"),lt(tt,">"),V,sr)}function mr(){return P(tt,an)}function an(M,X){if(X=="=")return S(tt)}function Zo(M,X){return X=="enum"?(I.marked="keyword",S(Oe)):P(Sn,Dn,vr,bf)}function Sn(M,X){if(g&&ue(X))return I.marked="keyword",S(Sn);if(M=="variable")return B(X),S();if(M=="spread")return S(Sn);if(M=="[")return Xt(cl,"]");if(M=="{")return Xt(Mi,"}")}function Mi(M,X){return M=="variable"&&!I.stream.match(/^\s*:/,!1)?(B(X),S(vr)):(M=="variable"&&(I.marked="property"),M=="spread"?S(Sn):M=="}"?P():M=="["?S(ge,ee("]"),ee(":"),Mi):S(ee(":"),Sn,vr))}function cl(){return P(Sn,vr)}function vr(M,X){if(X=="=")return S(F)}function bf(M){if(M==",")return S(Zo)}function Qo(M,X){if(M=="keyword b"&&X=="else")return S(re("form","else"),J,V)}function Qa(M,X){if(X=="await")return S(Qa);if(M=="(")return S(re(")"),ul,V)}function ul(M){return M=="var"?S(Zo,Ni):M=="variable"?S(Ni):P(Ni)}function Ni(M,X){return M==")"?S():M==";"?S(Ni):X=="in"||X=="of"?(I.marked="keyword",S(ge,Ni)):P(ge,Ni)}function lr(M,X){if(X=="*")return I.marked="keyword",S(lr);if(M=="variable")return B(X),S(lr);if(M=="(")return S(Ze,re(")"),lt(yr,")"),V,Ft,J,Je);if(g&&X=="<")return S(re(">"),lt(mr,">"),V,lr)}function Ii(M,X){if(X=="*")return I.marked="keyword",S(Ii);if(M=="variable")return B(X),S(Ii);if(M=="(")return S(Ze,re(")"),lt(yr,")"),V,Ft,Je);if(g&&X=="<")return S(re(">"),lt(mr,">"),V,Ii)}function ec(M,X){if(M=="keyword"||M=="variable")return I.marked="type",S(ec);if(X=="<")return S(re(">"),lt(mr,">"),V)}function yr(M,X){return X=="@"&&S(ge,yr),M=="spread"?S(yr):g&&ue(X)?(I.marked="keyword",S(yr)):g&&M=="this"?S(Dn,vr):P(Sn,Dn,vr)}function wf(M,X){return M=="variable"?es(M,X):br(M,X)}function es(M,X){if(M=="variable")return B(X),S(br)}function br(M,X){if(X=="<")return S(re(">"),lt(mr,">"),V,br);if(X=="extends"||X=="implements"||g&&M==",")return X=="implements"&&(I.marked="keyword"),S(g?tt:ge,br);if(M=="{")return S(re("}"),wr,V)}function wr(M,X){if(M=="async"||M=="variable"&&(X=="static"||X=="get"||X=="set"||g&&ue(X))&&I.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return I.marked="keyword",S(wr);if(M=="variable"||I.style=="keyword")return I.marked="property",S(_o,wr);if(M=="number"||M=="string")return S(_o,wr);if(M=="[")return S(ge,Dn,ee("]"),_o,wr);if(X=="*")return I.marked="keyword",S(wr);if(g&&M=="(")return P(Ii,wr);if(M==";"||M==",")return S(wr);if(M=="}")return S();if(X=="@")return S(ge,wr)}function _o(M,X){if(X=="!"||X=="?")return S(_o);if(M==":")return S(tt,vr);if(X=="=")return S(F);var de=I.state.lexical.prev,xe=de&&de.info=="interface";return P(xe?Ii:lr)}function ts(M,X){return X=="*"?(I.marked="keyword",S(is,ee(";"))):X=="default"?(I.marked="keyword",S(ge,ee(";"))):M=="{"?S(lt(ns,"}"),is,ee(";")):P(J)}function ns(M,X){if(X=="as")return I.marked="keyword",S(ee("variable"));if(M=="variable")return P(F,ns)}function Pi(M){return M=="string"?S():M=="("?P(ge):M=="."?P(pe):P(rs,Br,is)}function rs(M,X){return M=="{"?Xt(rs,"}"):(M=="variable"&&B(X),X=="*"&&(I.marked="keyword"),S(fl))}function Br(M){if(M==",")return S(rs,Br)}function fl(M,X){if(X=="as")return I.marked="keyword",S(rs)}function is(M,X){if(X=="from")return I.marked="keyword",S(ge)}function Rt(M){return M=="]"?S():P(lt(F,"]"))}function Oe(){return P(re("form"),Sn,ee("{"),re("}"),lt(si,"}"),V,V)}function si(){return P(Sn,vr)}function dl(M,X){return M.lastType=="operator"||M.lastType==","||w.test(X.charAt(0))||/[,.]/.test(X.charAt(0))}function Yn(M,X,de){return X.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(X.lastType)||X.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(de||0)))}return{startState:function(M){var X={tokenize:O,lastType:"sof",cc:[],lexical:new q((M||0)-l,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:M||0};return s.globalVars&&typeof s.globalVars=="object"&&(X.globalVars=s.globalVars),X},token:function(M,X){if(M.sol()&&(X.lexical.hasOwnProperty("align")||(X.lexical.align=!1),X.indented=M.indentation(),Q(M,X)),X.tokenize!=z&&M.eatSpace())return null;var de=X.tokenize(M,X);return C=="comment"?de:(X.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,A(X,de,C,E,M))},indent:function(M,X){if(M.tokenize==z||M.tokenize==D)return n.Pass;if(M.tokenize!=O)return 0;var de=X&&X.charAt(0),xe=M.lexical,le;if(!/^\s*else\b/.test(X))for(var Le=M.cc.length-1;Le>=0;--Le){var pt=M.cc[Le];if(pt==V)xe=xe.prev;else if(pt!=Qo&&pt!=Je)break}for(;(xe.type=="stat"||xe.type=="form")&&(de=="}"||(le=M.cc[M.cc.length-1])&&(le==pe||le==he)&&!/^[,\.=+\-*:?[\(]/.test(X));)xe=xe.prev;u&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var Kt=xe.type,_n=de==Kt;return Kt=="vardef"?xe.indented+(M.lastType=="operator"||M.lastType==","?xe.info.length+1:0):Kt=="form"&&de=="{"?xe.indented:Kt=="form"?xe.indented+l:Kt=="stat"?xe.indented+(dl(M,X)?u||l:0):xe.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?xe.indented+(/^(?:case|default)\b/.test(X)?l:2*l):xe.align?xe.column+(_n?0:1):xe.indented+(_n?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:f,jsonMode:h,expressionAllowed:Yn,skipExpression:function(M){A(M,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Z0.exports}p1();var ey={exports:{}},ty;function g1(){return ty||(ty=1,function(e,t){(function(n){n(ll())})(function(n){var i={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};n.defineMode("xml",function(l,u){var f=l.indentUnit,h={},p=u.htmlMode?i:s;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var v,y;function w(S,R){function B(we){return R.tokenize=we,we(S,R)}var ie=S.next();if(ie=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(C("atom","]]>")):null:S.match("--")?B(C("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=C("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=L,"tag bracket");if(ie=="&"){var ue;return S.eat("#")?S.eat("x")?ue=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ue=S.eatWhile(/[\d]/)&&S.eat(";"):ue=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ue?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function L(S,R){var B=S.next();if(B==">"||B=="/"&&S.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=D,R.tagName=R.tagStart=null;var ie=R.tokenize(S,R);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=$(B),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function $(S){var R=function(B,ie){for(;!B.eol();)if(B.next()==S){ie.tokenize=L;break}return"string"};return R.isInAttribute=!0,R}function C(S,R){return function(B,ie){for(;!B.eol();){if(B.match(R)){ie.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var ie;(ie=R.next())!=null;){if(ie=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(ie==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function N(S){return S&&S.toLowerCase()}function O(S,R,B){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function k(S){S.context&&(S.context=S.context.prev)}function z(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(N(B))||!h.contextGrabbers[N(B)].hasOwnProperty(N(R))))return;k(S)}}function D(S,R,B){return S=="openTag"?(B.tagStart=R.column(),oe):S=="closeTag"?Q:D}function oe(S,R,B){return S=="word"?(B.tagName=R.current(),y="tag",U):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",U(S,R,B)):(y="error",oe)}function Q(S,R,B){if(S=="word"){var ie=R.current();return B.context&&B.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(N(B.context.tagName))&&k(B),B.context&&B.context.tagName==ie||h.matchClosing===!1?(y="tag",W):(y="tag error",q)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",W(S,R,B)):(y="error",q)}function W(S,R,B){return S!="endTag"?(y="error",W):(k(B),D)}function q(S,R,B){return y="error",W(S,R,B)}function U(S,R,B){if(S=="word")return y="attribute",A;if(S=="endTag"||S=="selfcloseTag"){var ie=B.tagName,ue=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(N(ie))?z(B,ie):(z(B,ie),B.context=new O(B,ie,ue==B.indented)),D}return y="error",U}function A(S,R,B){return S=="equals"?I:(h.allowMissing||(y="error"),U(S,R,B))}function I(S,R,B){return S=="string"?P:S=="word"&&h.allowUnquoted?(y="string",U):(y="error",U(S,R,B))}function P(S,R,B){return S=="string"?P:U(S,R,B)}return{startState:function(S){var R={tokenize:w,state:D,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;v=null;var B=R.tokenize(S,R);return(B||v)&&B!="comment"&&(y=null,R.state=R.state(v||B,S,R),y&&(B=y=="error"?B+" error":y)),B},indent:function(S,R,B){var ie=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ie&&ie.noIndent)return n.Pass;if(S.tokenize!=L&&S.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ue=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ue&&ue[1])for(;ie;)if(ie.tagName==ue[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(N(ie.tagName)))ie=ie.prev;else break;else if(ue)for(;ie;){var we=h.contextGrabbers[N(ie.tagName)];if(we&&we.hasOwnProperty(N(ue[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==I&&(S.state=U)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],B=S.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),ey.exports}g1();var ny={exports:{}},ry;function Ade(){return ry||(ry=1,function(e,t){(function(n){n(ll(),g1(),p1())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function s(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&s(l.prev))}n.defineMode("jsx",function(l,u){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=n.getMode(l,u&&u.base||"javascript");function p(w){var L=w.tagName;w.tagName=null;var $=f.indent(w,"","");return w.tagName=L,$}function g(w,L){return L.context.mode==f?v(w,L,L.context):y(w,L,L.context)}function v(w,L,$){if($.depth==2)return w.match(/^.*?\*\//)?$.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute($.state);var C=p($.state),E=$.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=l.indentUnit:$.prev.state.lexical&&(C=$.prev.state.lexical.indented)}else $.depth==1&&(C+=l.indentUnit);return L.context=new i(n.startState(h,C),h,0,L.context),null}if($.depth==1){if(w.peek()=="<")return f.skipAttribute($.state),L.context=new i(n.startState(f,p($.state)),f,0,L.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return $.depth=2,g(w,L)}var N=f.token(w,$.state),O=w.current(),k;return/\btag\b/.test(N)?/>$/.test(O)?$.state.context?$.depth=0:L.context=L.context.prev:/^</.test(O)&&($.depth=1):!N&&(k=O.indexOf("{"))>-1&&w.backUp(O.length-k),N}function y(w,L,$){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,$.state))return L.context=new i(n.startState(f,h.indent($.state,"","")),f,0,L.context),h.skipExpression($.state),null;var C=h.token(w,$.state);if(!C&&$.depth!=null){var E=w.current();E=="{"?$.depth++:E=="}"&&--$.depth==0&&(L.context=L.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,L,$){return w.context.mode.indent(w.context.state,L,$)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),ny.exports}Ade();var iy={exports:{}},oy;function Lde(){return oy||(oy=1,function(e,t){(function(n){n(ll())})(function(n){n.defineOption("placeholder","",function(p,g,v){var y=v&&v!=n.Init;if(g&&!y)p.on("blur",u),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!g&&y){p.off("blur",u),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&u(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){i(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):i(p)},20)}function u(p){h(p)&&s(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),iy.exports}Lde();var sy={exports:{}},ly;function $de(){return ly||(ly=1,function(e,t){(function(n){n(ll())})(function(n){function i(u,f,h){this.orientation=f,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=u+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(v){if(v.which!=1)return;n.e_preventDefault(v);var y=p.orientation=="horizontal"?"pageX":"pageY",w=v[y],L=p.pos;function $(){n.off(document,"mousemove",C),n.off(document,"mouseup",$)}function C(E){if(E.which!=1)return $();p.moveTo(L+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",C),n.on(document,"mouseup",$)}),n.on(this.node,"click",function(v){n.e_preventDefault(v);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<y.left?-1:v.clientX>y.right?1:0:w=v.clientY<y.top?-1:v.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var y=n.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(v)}n.on(this.node,"mousewheel",g),n.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(u,f){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!f&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var s=10;i.prototype.update=function(u,f,h){var p=this.screen!=f||this.total!=u||this.size!=h;p&&(this.screen=f,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,f,h){this.addClass=u,this.horiz=new i(u,"horizontal",h),f(this.horiz.node),this.vert=new i(u,"vertical",h),f(this.vert.node),this.width=null}l.prototype.update=function(u){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var h=this.width||0,p=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},n.scrollbarModel.simple=function(u,f){return new l("CodeMirror-simplescroll",u,f)},n.scrollbarModel.overlay=function(u,f){return new l("CodeMirror-overlayscroll",u,f)}})}()),sy.exports}$de();const Mn=nn();function Mde(e,t,n={}){const i=Ede.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let s=!1;return i.on("change",()=>{if(s){s=!1;return}t.value=i.getValue()}),St(t,l=>{if(l!==i.getValue()){s=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),Zu(()=>{Mn.value=void 0}),ap(i)}async function Nde(e){var t;hf({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null,column:null})}function Ide(e,t){hf({file:e,column:t.column-1,line:t.line,view:"editor",test:qs.value})}function Pde(e,t){if(!t.location)return;const{line:n,column:i,file:s}=t.location;if(e.file.filepath!==s)return Pp(s,n,i);hf({file:e.file.id,column:i-1,line:n,view:"editor",test:qs.value})}const al=lM(),Ode=U$(al),Rde={class:"scrolls scrolls-rounded task-error"},zde=["onClickPassive"],Dde=["innerHTML"],Fde=at({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const i=_e(()=>Op(al.value)),s=_e(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),l=_e(()=>t.error.diff?i.value.toHtml(aa(t.error.diff)):void 0);function u(f){return _fe(f.file,t.filename)?Ide(t.fileId,f):Pp(f.file,f.line,f.column)}return(f,h)=>{const p=Dr("tooltip");return se(),ye("div",Rde,[te("pre",null,[te("b",null,Re(f.error.name),1),dt(": "+Re(f.error.message),1)]),(se(!0),ye(nt,null,hr(f.error.stacks,(g,v)=>(se(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[te("pre",null," - "+Re(n(g.file))+":"+Re(g.line)+":"+Re(g.column),1),ct(te("div",{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:y=>u(g)},null,40,zde),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),j(s)?(se(),ye("pre",{key:0,"data-testid":"diff",innerHTML:j(l)},null,8,Dde)):je("",!0)])}}}),m1=ni(Fde,[["__scopeId","data-v-e0212169"]]);function v1(e){var n;const t=(n=e.meta)==null?void 0:n.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function y1(){const e=Ue(!1),t=Ue(Date.now()),n=Ue(),i=_e(()=>{var f;const l=(f=n.value)==null?void 0:f.id,u=t.value;return l?`/__screenshot-error?id=${encodeURIComponent(l)}&t=${u}`:void 0});function s(l){n.value=l,t.value=Date.now(),e.value=!0}return{currentTask:n,showScreenshot:e,currentScreenshotUrl:i,showScreenshotModal:s}}const Hde={"h-full":"",class:"scrolls"},Bde={key:0},Wde={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},jde={flex:"~ gap-2 items-center"},qde={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ude=["innerHTML"],Vde={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Gde={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Xde={class:"flex gap-2","overflow-hidden":""},Kde={class:"font-bold","ws-nowrap":"",truncate:""},Jde=["href","download"],Yde=["onClick"],Zde={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Qde={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},ehe={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},the={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},nhe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},rhe=at({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=_e(()=>{var v;return!t.test.result||!((v=t.test.result.errors)!=null&&v.length)?null:t1(al.value,[t.test])[0]});function i(v){return Pde(t.test,v)}const{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=y1();function h(v){return`${rx(tl.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=_e(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,y)=>{var O,k,z;const w=ri,L=m1,$=kde,C=f1,E=Dp,N=Dr("tooltip");return se(),ye("div",Hde,[j(n)?(se(),ye("div",Bde,[te("div",Wde,[te("div",jde,[j(It)&&((O=v.test.meta)!=null&&O.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(w,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:y[0]||(y[0]=D=>j(u)(v.test))},null,512),[[N,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(w,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:y[1]||(y[1]=D=>j(v1)(v.test))},null,512),[[N,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(k=v.test.result)!=null&&k.htmlError?(se(),ye("div",qde,[te("pre",{innerHTML:v.test.result.htmlError},null,8,Ude)])):(z=v.test.result)!=null&&z.errors?(se(!0),ye(nt,{key:1},hr(v.test.result.errors,(D,oe)=>(se(),Ye(L,{key:oe,"file-id":v.test.file.id,error:D,filename:v.test.file.name,root:j(tl).root},null,8,["file-id","error","filename","root"]))),128)):je("",!0)])])):(se(),ye("div",Vde," All tests passed in this file ")),v.test.annotations.length?(se(),ye(nt,{key:2},[y[5]||(y[5]=te("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),ye(nt,null,hr(v.test.annotations,D=>{var oe;return se(),ye("div",{key:D.type+D.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[te("div",Gde,[te("div",Xde,[te("span",Kde,Re(D.type),1),D.attachment&&!((oe=D.attachment.contentType)!=null&&oe.startsWith("image/"))?(se(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:j(Pu)(D.attachment),download:j(h1)(D.message,D.attachment.contentType)},y[4]||(y[4]=[te("span",{class:"i-carbon:download block"},null,-1),dt(" Download ",-1)]),8,Jde)):je("",!0)]),te("div",null,[D.location&&D.location.file===v.test.file.filepath?ct((se(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:Q=>i(D)},[dt(Re(h(D.location)),1)],8,Yde)),[[N,"Open in Editor",void 0,{bottom:!0}]]):D.location&&D.location.file!==v.test.file.filepath?(se(),ye("span",Zde,Re(h(D.location)),1)):je("",!0)])]),te("div",Qde,Re(D.message),1),Ie($,{annotation:D},null,8,["annotation"])])}),128))],64)):je("",!0),j(g).length?(se(),ye(nt,{key:3},[y[6]||(y[6]=te("h1",{"m-2":""}," Test Meta ",-1)),te("div",ehe,[(se(!0),ye(nt,null,hr(j(g),([D,oe])=>(se(),ye(nt,{key:D},[te("div",the,Re(D),1),te("pre",nhe,Re(oe),1)],64))),128))])],64)):je("",!0),j(It)?(se(),Ye(E,{key:4,modelValue:j(l),"onUpdate:modelValue":y[3]||(y[3]=D=>kt(l)?l.value=D:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(mp,{key:0},{default:it(()=>[Ie(C,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:y[2]||(y[2]=D=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),ihe=ni(rhe,[["__scopeId","data-v-efadcc09"]]),ohe={"h-full":"",class:"scrolls"},she=["id"],lhe={flex:"~ gap-2 items-center"},ahe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},che=["innerHTML"],uhe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},fhe=at({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(h,p){var g;return((g=h.result)==null?void 0:g.state)!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>n(v,p+1))]}const i=_e(()=>{var y,w;const h=t.file,p=((y=h.tasks)==null?void 0:y.flatMap(L=>n(L,0)))??[],g=h.result;if((w=g==null?void 0:g.errors)==null?void 0:w[0]){const L={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(L)}return p.length>0?t1(al.value,p):p}),{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=y1();return(h,p)=>{const g=ri,v=m1,y=f1,w=Dp,L=Dr("tooltip");return se(),ye("div",ohe,[j(i).length?(se(!0),ye(nt,{key:0},hr(j(i),$=>{var C,E,N,O;return se(),ye("div",{id:$.id,key:$.id},[te("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:tn({"margin-left":`${(C=$.result)!=null&&C.htmlError?.5:2*$.level+.5}rem`})},[te("div",lhe,[te("span",null,Re($.name),1),j(It)&&((E=$.meta)!=null&&E.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(g,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:k=>j(u)($)},null,8,["onClick"]),[[L,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(g,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:k=>j(v1)($)},null,8,["onClick"]),[[L,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(N=$.result)!=null&&N.htmlError?(se(),ye("div",ahe,[te("pre",{innerHTML:$.result.htmlError},null,8,che)])):(O=$.result)!=null&&O.errors?(se(!0),ye(nt,{key:1},hr($.result.errors,(k,z)=>(se(),Ye(v,{key:z,error:k,filename:h.file.name,root:j(tl).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):je("",!0)],4)],8,she)}),128)):(se(),ye("div",uhe," All tests passed in this file ")),j(It)?(se(),Ye(w,{key:2,modelValue:j(l),"onUpdate:modelValue":p[1]||(p[1]=$=>kt(l)?l.value=$:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(mp,{key:0},{default:it(()=>[Ie(y,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:p[0]||(p[0]=$=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),dhe=ni(fhe,[["__scopeId","data-v-d1b5950e"]]),hhe={border:"b base","p-4":""},phe=["innerHTML"],ghe=at({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(se(),ye("div",hhe,[te("div",{"text-xs":"","mb-1":"",class:ot(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Re(t(n.time))+" | "+Re(n.taskName)+" | "+Re(n.type),3),te("pre",{"data-type":"html",innerHTML:n.content},null,8,phe)]))}}),mhe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},vhe={key:1,p6:""},yhe=at({__name:"ViewConsoleOutput",setup(e){const t=_e(()=>{const i=c1.value;if(i){const s=Op(al.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:s.toHtml(aa(h))}))}});function n(i){const s=i&&ht.state.idMap.get(i);return s&&"filepath"in s?s.name:(s?s$(s).slice(1).join(" > "):"-")||"-"}return(i,s)=>{var u;const l=ghe;return(u=j(t))!=null&&u.length?(se(),ye("div",mhe,[(se(!0),ye(nt,null,hr(j(t),({taskId:f,type:h,time:p,content:g})=>(se(),ye("div",{key:f,"font-mono":""},[Ie(l,{"task-name":n(f),type:h,time:p,content:g},null,8,["task-name","type","time","content"])]))),128))])):(se(),ye("div",vhe,s[0]||(s[0]=[dt(" Log something in your test and it would print here. (e.g. ",-1),te("pre",{inline:""},"console.log(foo)",-1),dt(") ",-1)])))}}}),b1=at({__name:"CodeMirrorContainer",props:ma({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ma(["save"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=ef(e,"modelValue"),s=IT(),l={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}},u=Ue();return wo(async()=>{const f=Mde(u,i,{...s,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||n("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||n("save",h.getValue())}}});f.setSize("100%","100%"),f.clearHistory(),Mn.value=f,setTimeout(()=>Mn.value.refresh(),100)}),(f,h)=>(se(),ye("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",f.saving?"codemirror-busy":void 0])},[te("textarea",{ref_key:"el",ref:u},null,512)],2))}}),bhe=at({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,s=Ue(""),l=nn(void 0),u=Ue(!1),f=Ue(!0),h=Ue(!1),p=Ue();St(()=>n.file,async()=>{var W;if(!h.value){f.value=!0;try{if(!n.file||!((W=n.file)!=null&&W.filepath)){s.value="",l.value=s.value,u.value=!1,f.value=!1;return}s.value=await ht.rpc.readTestFile(n.file.filepath)||"",l.value=s.value,u.value=!1}catch(q){console.error("cannot fetch file",q)}await Et(),f.value=!1}},{immediate:!0}),St(()=>[f.value,h.value,n.file,Xx.value,Kx.value],([W,q,U,A,I])=>{!W&&!q&&(A!=null?Et(()=>{var R;const P=p.value,S=P??{line:(A??1)-1,ch:I??0};P?p.value=void 0:((R=Mn.value)==null||R.scrollIntoView(S,100),Et(()=>{var B,ie;(B=Mn.value)==null||B.focus(),(ie=Mn.value)==null||ie.setCursor(S)}))}):Et(()=>{var P;(P=Mn.value)==null||P.focus()}))},{flush:"post"});const g=_e(()=>{var W,q;return((q=(W=n.file)==null?void 0:W.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),v=Ue(),y=_e(()=>{var U;const W=[];function q(A){var I;(I=A.result)!=null&&I.errors&&W.push(...A.result.errors),A.type==="suite"&&A.tasks.forEach(q)}return(U=n.file)==null||U.tasks.forEach(q),W}),w=_e(()=>{var U;const W=[];function q(A){A.type==="test"&&W.push(...A.annotations),A.type==="suite"&&A.tasks.forEach(q)}return(U=n.file)==null||U.tasks.forEach(q),W}),L=[],$=[],C=[],E=Ue(!1);function N(){C.forEach(([W,q,U])=>{W.removeEventListener("click",q),U()}),C.length=0}Ox(v,()=>{var W;(W=Mn.value)==null||W.refresh()});function O(){u.value=l.value!==Mn.value.getValue()}St(u,W=>{i("draft",W)},{immediate:!0});function k(W){const q=((W==null?void 0:W.stacks)||[]).filter(R=>{var B;return R.file&&R.file===((B=n.file)==null?void 0:B.filepath)}),U=q==null?void 0:q[0];if(!U)return;const A=document.createElement("div");A.className="op80 flex gap-x-2 items-center";const I=document.createElement("pre");I.className="c-red-600 dark:c-red-400",I.textContent=`${" ".repeat(U.column)}^ ${W.name}: ${(W==null?void 0:W.message)||""}`,A.appendChild(I);const P=document.createElement("span");P.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",P.tabIndex=0,P.ariaLabel="Open in Editor",Ww(P,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Pp(U.file,U.line,U.column)};P.addEventListener("click",S),A.appendChild(P),C.push([P,S,()=>Sp(P)]),$.push(Mn.value.addLineClass(U.line-1,"wrap","bg-red-500/10")),L.push(Mn.value.addLineWidget(U.line-1,A))}function z(W){var B,ie;if(!W.location)return;const{line:q,file:U}=W.location;if(U!==((B=n.file)==null?void 0:B.filepath))return;const A=document.createElement("div");A.classList.add("wrap","bg-active","py-3","px-6","my-1"),A.role="note";const I=document.createElement("div");I.classList.add("block","text-black","dark:text-white");const P=document.createElement("span");P.textContent=`${W.type}: `,P.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=W.message.replace(/[^\r]\n/,`\r
49
+ `),I.append(P,S),A.append(I);const R=W.attachment;if(R!=null&&R.path||R!=null&&R.body)if((ie=R.contentType)!=null&&ie.startsWith("image/")){const ue=document.createElement("a"),we=document.createElement("img");ue.classList.add("inline-block","mt-3"),ue.style.maxWidth="50vw";const Pe=R.path||R.body;typeof Pe=="string"&&(Pe.startsWith("http://")||Pe.startsWith("https://"))?(we.setAttribute("src",Pe),ue.referrerPolicy="no-referrer"):we.setAttribute("src",Pu(R)),ue.target="_blank",ue.href=we.src,ue.append(we),A.append(ue)}else{const ue=document.createElement("a");ue.href=Pu(R),ue.download=h1(W.message,R.contentType),ue.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const we=document.createElement("div");we.classList.add("i-carbon:download","block");const Pe=document.createElement("span");Pe.textContent="Download",ue.append(we,Pe),A.append(ue)}L.push(Mn.value.addLineWidget(q-1,A))}const{pause:D,resume:oe}=St([Mn,y,w,Ms],([W,q,U,A])=>{if(!W){L.length=0,$.length=0,N();return}A&&(W.off("changes",O),N(),L.forEach(I=>I.clear()),$.forEach(I=>W==null?void 0:W.removeLineClass(I,"wrap")),L.length=0,$.length=0,setTimeout(()=>{q.forEach(k),U.forEach(z),E.value||W.clearHistory(),W.on("changes",O)},100))},{flush:"post"});$p(()=>[Ms.value,h.value,p.value],([W,q],U)=>{var A;W&&!q&&U&&U[2]&&((A=Mn.value)==null||A.setCursor(U[2]))},{debounce:100,flush:"post"});async function Q(W){if(h.value)return;D(),h.value=!0,await Et();const q=Mn.value;q&&(q.setOption("readOnly",!0),await Et(),q.refresh()),p.value=q==null?void 0:q.getCursor(),q==null||q.off("changes",O),N(),L.forEach(U=>U.clear()),$.forEach(U=>q==null?void 0:q.removeLineClass(U,"wrap")),L.length=0,$.length=0;try{E.value=!0,await ht.rpc.saveTestFile(n.file.filepath,W),l.value=W,u.value=!1}catch(U){console.error("error saving file",U)}E.value||q==null||q.clearHistory();try{await R0(Ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await R0(Ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(k),w.value.forEach(z),q==null||q.on("changes",O),h.value=!1,await Et(),q&&(q.setOption("readOnly",!1),await Et(),q.refresh()),oe()}return Ba(N),(W,q)=>{const U=b1;return se(),Ye(U,_i({ref_key:"editor",ref:v,modelValue:j(s),"onUpdate:modelValue":q[0]||(q[0]=A=>kt(s)?s.value=A:null),"h-full":""},{lineNumbers:!0,readOnly:j(pr),saving:j(h)},{mode:j(g),"data-testid":"code-mirror",onSave:Q}),null,16,["modelValue","mode"])}}}),whe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},xhe={"p-4":"",relative:""},She={op50:"","font-mono":"","text-sm":""},_he={key:0,"p-5":""},khe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},The={key:0},Che={p:"x3 y-1","bg-overlay":"",border:"base b t"},Ehe=at({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const n=e,i=t,s=X$(()=>ht.rpc.getTransformResult(n.projectName,n.id,!!It)),l=_e(()=>{var p;return((p=n.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),f=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=_e(()=>{var p,g,v,y;return{mappings:((g=(p=s.value)==null?void 0:p.map)==null?void 0:g.mappings)??"",version:(y=(v=s.value)==null?void 0:v.map)==null?void 0:y.version}});return Mx("Escape",()=>{i("close")}),(p,g)=>{const v=ri,y=b1;return se(),ye("div",whe,[te("div",xhe,[g[1]||(g[1]=te("p",null,"Module Info",-1)),te("p",She,Re(p.id),1),Ie(v,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=w=>i("close"))})]),j(s)?(se(),ye(nt,{key:1},[te("div",khe,[g[2]||(g[2]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),g[3]||(g[3]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Ie(y,_i({"h-full":"","model-value":j(u),"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"]),Ie(y,_i({"h-full":"","model-value":j(f),"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"])]),j(h).mappings!==""?(se(),ye("div",The,[te("div",Che," Source map (v"+Re(j(h).version)+") ",1),Ie(y,_i({"model-value":j(h).mappings,"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"])])):je("",!0)],64)):(se(),ye("div",_he," No transform result found for this module. "))])}}});function Ahe(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Ih="http://www.w3.org/1999/xhtml";const ay={svg:"http://www.w3.org/2000/svg",xhtml:Ih,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pf(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ay.hasOwnProperty(t)?{space:ay[t],local:e}:e}function Lhe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ih&&t.documentElement.namespaceURI===Ih?t.createElement(e):t.createElementNS(n,e)}}function $he(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function w1(e){var t=pf(e);return(t.local?$he:Lhe)(t)}function Mhe(){}function Fp(e){return e==null?Mhe:function(){return this.querySelector(e)}}function Nhe(e){typeof e!="function"&&(e=Fp(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p);return new or(i,this._parents)}function Ihe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Phe(){return[]}function x1(e){return e==null?Phe:function(){return this.querySelectorAll(e)}}function Ohe(e){return function(){return Ihe(e.apply(this,arguments))}}function Rhe(e){typeof e=="function"?e=Ohe(e):e=x1(e);for(var t=this._groups,n=t.length,i=[],s=[],l=0;l<n;++l)for(var u=t[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&(i.push(e.call(h,h.__data__,p,u)),s.push(h));return new or(i,s)}function S1(e){return function(){return this.matches(e)}}function _1(e){return function(t){return t.matches(e)}}var zhe=Array.prototype.find;function Dhe(e){return function(){return zhe.call(this.children,e)}}function Fhe(){return this.firstElementChild}function Hhe(e){return this.select(e==null?Fhe:Dhe(typeof e=="function"?e:_1(e)))}var Bhe=Array.prototype.filter;function Whe(){return Array.from(this.children)}function jhe(e){return function(){return Bhe.call(this.children,e)}}function qhe(e){return this.selectAll(e==null?Whe:jhe(typeof e=="function"?e:_1(e)))}function Uhe(e){typeof e!="function"&&(e=S1(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new or(i,this._parents)}function k1(e){return new Array(e.length)}function Vhe(){return new or(this._enter||this._groups.map(k1),this._parents)}function Ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ou.prototype={constructor:Ou,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 Ghe(e){return function(){return e}}function Xhe(e,t,n,i,s,l){for(var u=0,f,h=t.length,p=l.length;u<p;++u)(f=t[u])?(f.__data__=l[u],i[u]=f):n[u]=new Ou(e,l[u]);for(;u<h;++u)(f=t[u])&&(s[u]=f)}function Khe(e,t,n,i,s,l,u){var f,h,p=new Map,g=t.length,v=l.length,y=new Array(g),w;for(f=0;f<g;++f)(h=t[f])&&(y[f]=w=u.call(h,h.__data__,f,t)+"",p.has(w)?s[f]=h:p.set(w,h));for(f=0;f<v;++f)w=u.call(e,l[f],f,l)+"",(h=p.get(w))?(i[f]=h,h.__data__=l[f],p.delete(w)):n[f]=new Ou(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(s[f]=h)}function Jhe(e){return e.__data__}function Yhe(e,t){if(!arguments.length)return Array.from(this,Jhe);var n=t?Khe:Xhe,i=this._parents,s=this._groups;typeof e!="function"&&(e=Ghe(e));for(var l=s.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=s[p],y=v.length,w=Zhe(e.call(g,g&&g.__data__,p,i)),L=w.length,$=f[p]=new Array(L),C=u[p]=new Array(L),E=h[p]=new Array(y);n(g,v,$,C,E,w,t);for(var N=0,O=0,k,z;N<L;++N)if(k=$[N]){for(N>=O&&(O=N+1);!(z=C[O])&&++O<L;);k._next=z||null}}return u=new or(u,i),u._enter=f,u._exit=h,u}function Zhe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Qhe(){return new or(this._exit||this._groups.map(k1),this._parents)}function epe(e,t,n){var i=this.enter(),s=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),n==null?l.remove():n(l),i&&s?i.merge(s).order():s}function tpe(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,s=n.length,l=i.length,u=Math.min(s,l),f=new Array(s),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,L=0;L<v;++L)(w=p[L]||g[L])&&(y[L]=w);for(;h<s;++h)f[h]=n[h];return new or(f,this._parents)}function npe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],s=i.length-1,l=i[s],u;--s>=0;)(u=i[s])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function rpe(e){e||(e=ipe);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,s=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=s[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new or(s,this._parents).order()}function ipe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ope(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function spe(){return Array.from(this)}function lpe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,l=i.length;s<l;++s){var u=i[s];if(u)return u}return null}function ape(){let e=0;for(const t of this)++e;return e}function cpe(){return!this.node()}function upe(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var s=t[n],l=0,u=s.length,f;l<u;++l)(f=s[l])&&e.call(f,f.__data__,l,s);return this}function fpe(e){return function(){this.removeAttribute(e)}}function dpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hpe(e,t){return function(){this.setAttribute(e,t)}}function ppe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gpe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function mpe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function vpe(e,t){var n=pf(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?dpe:fpe:typeof t=="function"?n.local?mpe:gpe:n.local?ppe:hpe)(n,t))}function T1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ype(e){return function(){this.style.removeProperty(e)}}function bpe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function wpe(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function xpe(e,t,n){return arguments.length>1?this.each((t==null?ype:typeof t=="function"?wpe:bpe)(e,t,n??"")):nl(this.node(),e)}function nl(e,t){return e.style.getPropertyValue(t)||T1(e).getComputedStyle(e,null).getPropertyValue(t)}function Spe(e){return function(){delete this[e]}}function _pe(e,t){return function(){this[e]=t}}function kpe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Tpe(e,t){return arguments.length>1?this.each((t==null?Spe:typeof t=="function"?kpe:_pe)(e,t)):this.node()[e]}function C1(e){return e.trim().split(/^|\s+/)}function Hp(e){return e.classList||new E1(e)}function E1(e){this._node=e,this._names=C1(e.getAttribute("class")||"")}E1.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 A1(e,t){for(var n=Hp(e),i=-1,s=t.length;++i<s;)n.add(t[i])}function L1(e,t){for(var n=Hp(e),i=-1,s=t.length;++i<s;)n.remove(t[i])}function Cpe(e){return function(){A1(this,e)}}function Epe(e){return function(){L1(this,e)}}function Ape(e,t){return function(){(t.apply(this,arguments)?A1:L1)(this,e)}}function Lpe(e,t){var n=C1(e+"");if(arguments.length<2){for(var i=Hp(this.node()),s=-1,l=n.length;++s<l;)if(!i.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?Ape:t?Cpe:Epe)(n,t))}function $pe(){this.textContent=""}function Mpe(e){return function(){this.textContent=e}}function Npe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ipe(e){return arguments.length?this.each(e==null?$pe:(typeof e=="function"?Npe:Mpe)(e)):this.node().textContent}function Ppe(){this.innerHTML=""}function Ope(e){return function(){this.innerHTML=e}}function Rpe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function zpe(e){return arguments.length?this.each(e==null?Ppe:(typeof e=="function"?Rpe:Ope)(e)):this.node().innerHTML}function Dpe(){this.nextSibling&&this.parentNode.appendChild(this)}function Fpe(){return this.each(Dpe)}function Hpe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bpe(){return this.each(Hpe)}function Wpe(e){var t=typeof e=="function"?e:w1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function jpe(){return null}function qpe(e,t){var n=typeof e=="function"?e:w1(e),i=t==null?jpe:typeof t=="function"?t:Fp(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Upe(){var e=this.parentNode;e&&e.removeChild(this)}function Vpe(){return this.each(Upe)}function Gpe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xpe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Kpe(e){return this.select(e?Xpe:Gpe)}function Jpe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ype(e){return function(t){e.call(this,t,this.__data__)}}function Zpe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function Qpe(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,s=t.length,l;n<s;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function ege(e,t,n){return function(){var i=this.__on,s,l=Ype(t);if(i){for(var u=0,f=i.length;u<f;++u)if((s=i[u]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=l,s.options=n),s.value=t;return}}this.addEventListener(e.type,l,n),s={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(s):this.__on=[s]}}function tge(e,t,n){var i=Zpe(e+""),s,l=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,p=f.length,g;h<p;++h)for(s=0,g=f[h];s<l;++s)if((u=i[s]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?ege:Qpe,s=0;s<l;++s)this.each(f(i[s],t,n));return this}function $1(e,t,n){var i=T1(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,n):(s=i.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function nge(e,t){return function(){return $1(this,e,t)}}function rge(e,t){return function(){return $1(this,e,t.apply(this,arguments))}}function ige(e,t){return this.each((typeof t=="function"?rge:nge)(e,t))}function*oge(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,l=i.length,u;s<l;++s)(u=i[s])&&(yield u)}var M1=[null];function or(e,t){this._groups=e,this._parents=t}function Ja(){return new or([[document.documentElement]],M1)}function sge(){return this}or.prototype=Ja.prototype={constructor:or,select:Nhe,selectAll:Rhe,selectChild:Hhe,selectChildren:qhe,filter:Uhe,data:Yhe,enter:Vhe,exit:Qhe,join:epe,merge:tpe,selection:sge,order:npe,sort:rpe,call:ope,nodes:spe,node:lpe,size:ape,empty:cpe,each:upe,attr:vpe,style:xpe,property:Tpe,classed:Lpe,text:Ipe,html:zpe,raise:Fpe,lower:Bpe,append:Wpe,insert:qpe,remove:Vpe,clone:Kpe,datum:Jpe,on:tge,dispatch:ige,[Symbol.iterator]:oge};function Gn(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],M1)}function lge(e){let t;for(;t=e.sourceEvent;)e=t;return e}function bi(e,t){if(e=lge(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.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 age=Object.defineProperty,cge=(e,t,n)=>t in e?age(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cy=(e,t,n)=>cge(e,typeof t!="symbol"?t+"":t,n);class Nn{constructor(t,n){cy(this,"x"),cy(this,"y"),this.x=t,this.y=n}static of([t,n]){return new Nn(t,n)}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 n=Math.cos(t),i=Math.sin(t);return new Nn(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var uge={value:()=>{}};function Ya(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new iu(n)}function iu(e){this._=e}function fge(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");if(s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}iu.prototype=Ya.prototype={constructor:iu,on:function(e,t){var n=this._,i=fge(e+"",n),s,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((s=(e=i[l]).type)&&(s=dge(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(s=(e=i[l]).type)n[s]=uy(n[s],e.name,t);else if(t==null)for(s in n)n[s]=uy(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new iu(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),i=0,s,l;i<s;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,s=l.length;i<s;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,l=i.length;s<l;++s)i[s].value.apply(t,n)}};function dge(e,t){for(var n=0,i=e.length,s;n<i;++n)if((s=e[n]).name===t)return s.value}function uy(e,t,n){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=uge,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const hge={passive:!1},$a={capture:!0,passive:!1};function jd(e){e.stopImmediatePropagation()}function Gs(e){e.preventDefault(),e.stopImmediatePropagation()}function N1(e){var t=e.document.documentElement,n=Gn(e).on("dragstart.drag",Gs,$a);"onselectstart"in t?n.on("selectstart.drag",Gs,$a):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function I1(e,t){var n=e.document.documentElement,i=Gn(e).on("dragstart.drag",null);t&&(i.on("click.drag",Gs,$a),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const jc=e=>()=>e;function Ph(e,{sourceEvent:t,subject:n,target:i,identifier:s,active:l,x:u,y:f,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}Ph.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function pge(e){return!e.ctrlKey&&!e.button}function gge(){return this.parentNode}function mge(e,t){return t??{x:e.x,y:e.y}}function vge(){return navigator.maxTouchPoints||"ontouchstart"in this}function yge(){var e=pge,t=gge,n=mge,i=vge,s={},l=Ya("start","drag","end"),u=0,f,h,p,g,v=0;function y(k){k.on("mousedown.drag",w).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,hge).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(k,z){if(!(g||!e.call(this,k,z))){var D=O(this,t.call(this,k,z),k,z,"mouse");D&&(Gn(k.view).on("mousemove.drag",L,$a).on("mouseup.drag",$,$a),N1(k.view),jd(k),p=!1,f=k.clientX,h=k.clientY,D("start",k))}}function L(k){if(Gs(k),!p){var z=k.clientX-f,D=k.clientY-h;p=z*z+D*D>v}s.mouse("drag",k)}function $(k){Gn(k.view).on("mousemove.drag mouseup.drag",null),I1(k.view,p),Gs(k),s.mouse("end",k)}function C(k,z){if(e.call(this,k,z)){var D=k.changedTouches,oe=t.call(this,k,z),Q=D.length,W,q;for(W=0;W<Q;++W)(q=O(this,oe,k,z,D[W].identifier,D[W]))&&(jd(k),q("start",k,D[W]))}}function E(k){var z=k.changedTouches,D=z.length,oe,Q;for(oe=0;oe<D;++oe)(Q=s[z[oe].identifier])&&(Gs(k),Q("drag",k,z[oe]))}function N(k){var z=k.changedTouches,D=z.length,oe,Q;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),oe=0;oe<D;++oe)(Q=s[z[oe].identifier])&&(jd(k),Q("end",k,z[oe]))}function O(k,z,D,oe,Q,W){var q=l.copy(),U=bi(W||D,z),A,I,P;if((P=n.call(k,new Ph("beforestart",{sourceEvent:D,target:y,identifier:Q,active:u,x:U[0],y:U[1],dx:0,dy:0,dispatch:q}),oe))!=null)return A=P.x-U[0]||0,I=P.y-U[1]||0,function S(R,B,ie){var ue=U,we;switch(R){case"start":s[Q]=S,we=u++;break;case"end":delete s[Q],--u;case"drag":U=bi(ie||B,z),we=u;break}q.call(R,k,new Ph(R,{sourceEvent:B,subject:P,target:y,identifier:Q,active:we,x:U[0]+A,y:U[1]+I,dx:U[0]-ue[0],dy:U[1]-ue[1],dispatch:q}),oe)}}return y.filter=function(k){return arguments.length?(e=typeof k=="function"?k:jc(!!k),y):e},y.container=function(k){return arguments.length?(t=typeof k=="function"?k:jc(k),y):t},y.subject=function(k){return arguments.length?(n=typeof k=="function"?k:jc(k),y):n},y.touchable=function(k){return arguments.length?(i=typeof k=="function"?k:jc(!!k),y):i},y.on=function(){var k=l.on.apply(l,arguments);return k===l?y:k},y.clickDistance=function(k){return arguments.length?(v=(k=+k)*k,y):Math.sqrt(v)},y}function Bp(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function P1(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Za(){}var Ma=.7,Ru=1/Ma,Xs="\\s*([+-]?\\d+)\\s*",Na="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bge=/^#([0-9a-f]{3,8})$/,wge=new RegExp(`^rgb\\(${Xs},${Xs},${Xs}\\)$`),xge=new RegExp(`^rgb\\(${ei},${ei},${ei}\\)$`),Sge=new RegExp(`^rgba\\(${Xs},${Xs},${Xs},${Na}\\)$`),_ge=new RegExp(`^rgba\\(${ei},${ei},${ei},${Na}\\)$`),kge=new RegExp(`^hsl\\(${Na},${ei},${ei}\\)$`),Tge=new RegExp(`^hsla\\(${Na},${ei},${ei},${Na}\\)$`),fy={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};Bp(Za,Ia,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dy,formatHex:dy,formatHex8:Cge,formatHsl:Ege,formatRgb:hy,toString:hy});function dy(){return this.rgb().formatHex()}function Cge(){return this.rgb().formatHex8()}function Ege(){return O1(this).formatHsl()}function hy(){return this.rgb().formatRgb()}function Ia(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bge.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?py(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qc(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=wge.exec(e))?new Kn(t[1],t[2],t[3],1):(t=xge.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Sge.exec(e))?qc(t[1],t[2],t[3],t[4]):(t=_ge.exec(e))?qc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kge.exec(e))?vy(t[1],t[2]/100,t[3]/100,1):(t=Tge.exec(e))?vy(t[1],t[2]/100,t[3]/100,t[4]):fy.hasOwnProperty(e)?py(fy[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function py(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function qc(e,t,n,i){return i<=0&&(e=t=n=NaN),new Kn(e,t,n,i)}function Age(e){return e instanceof Za||(e=Ia(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function Oh(e,t,n,i){return arguments.length===1?Age(e):new Kn(e,t,n,i??1)}function Kn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Bp(Kn,Oh,P1(Za,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ma:Math.pow(Ma,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(Xo(this.r),Xo(this.g),Xo(this.b),zu(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:gy,formatHex:gy,formatHex8:Lge,formatRgb:my,toString:my}));function gy(){return`#${qo(this.r)}${qo(this.g)}${qo(this.b)}`}function Lge(){return`#${qo(this.r)}${qo(this.g)}${qo(this.b)}${qo((isNaN(this.opacity)?1:this.opacity)*255)}`}function my(){const e=zu(this.opacity);return`${e===1?"rgb(":"rgba("}${Xo(this.r)}, ${Xo(this.g)}, ${Xo(this.b)}${e===1?")":`, ${e})`}`}function zu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qo(e){return e=Xo(e),(e<16?"0":"")+e.toString(16)}function vy(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,n,i)}function O1(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof Za||(e=Ia(e)),!e)return new Lr;if(e instanceof Lr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,s=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-s,h=(l+s)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?l+s:2-l-s,u*=60):f=h>0&&h<1?0:u,new Lr(u,f,h,e.opacity)}function $ge(e,t,n,i){return arguments.length===1?O1(e):new Lr(e,t,n,i??1)}function Lr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Bp(Lr,$ge,P1(Za,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ma:Math.pow(Ma,e),new Lr(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,n=this.l,i=n+(n<.5?n:1-n)*t,s=2*n-i;return new Kn(qd(e>=240?e-240:e+120,s,i),qd(e,s,i),qd(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new Lr(yy(this.h),Uc(this.s),Uc(this.l),zu(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=zu(this.opacity);return`${e===1?"hsl(":"hsla("}${yy(this.h)}, ${Uc(this.s)*100}%, ${Uc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yy(e){return e=(e||0)%360,e<0?e+360:e}function Uc(e){return Math.max(0,Math.min(1,e||0))}function qd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const R1=e=>()=>e;function Mge(e,t){return function(n){return e+n*t}}function Nge(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function Ige(e){return(e=+e)==1?z1:function(t,n){return n-t?Nge(t,n,e):R1(isNaN(t)?n:t)}}function z1(e,t){var n=t-e;return n?Mge(e,n):R1(isNaN(e)?t:e)}const by=function e(t){var n=Ige(t);function i(s,l){var u=n((s=Oh(s)).r,(l=Oh(l)).r),f=n(s.g,l.g),h=n(s.b,l.b),p=z1(s.opacity,l.opacity);return function(g){return s.r=u(g),s.g=f(g),s.b=h(g),s.opacity=p(g),s+""}}return i.gamma=e,i}(1);function eo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Rh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ud=new RegExp(Rh.source,"g");function Pge(e){return function(){return e}}function Oge(e){return function(t){return e(t)+""}}function Rge(e,t){var n=Rh.lastIndex=Ud.lastIndex=0,i,s,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Rh.exec(e))&&(s=Ud.exec(t));)(l=s.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(s=s[0])?f[u]?f[u]+=s:f[++u]=s:(f[++u]=null,h.push({i:u,x:eo(i,s)})),n=Ud.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?Oge(h[0].x):Pge(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)f[(v=h[g]).i]=v.x(p);return f.join("")})}var wy=180/Math.PI,zh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function D1(e,t,n,i,s,l){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:s,translateY:l,rotate:Math.atan2(t,e)*wy,skewX:Math.atan(h)*wy,scaleX:u,scaleY:f}}var Vc;function zge(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?zh:D1(t.a,t.b,t.c,t.d,t.e,t.f)}function Dge(e){return e==null||(Vc||(Vc=document.createElementNS("http://www.w3.org/2000/svg","g")),Vc.setAttribute("transform",e),!(e=Vc.transform.baseVal.consolidate()))?zh:(e=e.matrix,D1(e.a,e.b,e.c,e.d,e.e,e.f))}function F1(e,t,n,i){function s(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,L){if(p!==v||g!==y){var $=w.push("translate(",null,t,null,n);L.push({i:$-4,x:eo(p,v)},{i:$-2,x:eo(g,y)})}else(v||y)&&w.push("translate("+v+t+y+n)}function u(p,g,v,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:v.push(s(v)+"rotate(",null,i)-2,x:eo(p,g)})):g&&v.push(s(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(s(v)+"skewX(",null,i)-2,x:eo(p,g)}):g&&v.push(s(v)+"skewX("+g+i)}function h(p,g,v,y,w,L){if(p!==v||g!==y){var $=w.push(s(w)+"scale(",null,",",null,")");L.push({i:$-4,x:eo(p,v)},{i:$-2,x:eo(g,y)})}else(v!==1||y!==1)&&w.push(s(w)+"scale("+v+","+y+")")}return function(p,g){var v=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,v,y),u(p.rotate,g.rotate,v,y),f(p.skewX,g.skewX,v,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,y),p=g=null,function(w){for(var L=-1,$=y.length,C;++L<$;)v[(C=y[L]).i]=C.x(w);return v.join("")}}}var Fge=F1(zge,"px, ","px)","deg)"),Hge=F1(Dge,", ",")",")"),Bge=1e-12;function xy(e){return((e=Math.exp(e))+1/e)/2}function Wge(e){return((e=Math.exp(e))-1/e)/2}function jge(e){return((e=Math.exp(2*e))-1)/(e+1)}const qge=function e(t,n,i){function s(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,L=v-h,$=w*w+L*L,C,E;if($<Bge)E=Math.log(y/p)/t,C=function(oe){return[f+oe*w,h+oe*L,p*Math.exp(t*oe*E)]};else{var N=Math.sqrt($),O=(y*y-p*p+i*$)/(2*p*n*N),k=(y*y-p*p-i*$)/(2*y*n*N),z=Math.log(Math.sqrt(O*O+1)-O),D=Math.log(Math.sqrt(k*k+1)-k);E=(D-z)/t,C=function(oe){var Q=oe*E,W=xy(z),q=p/(n*N)*(W*jge(t*Q+z)-Wge(z));return[f+q*w,h+q*L,p*W/xy(t*Q+z)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return s.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},s}(Math.SQRT2,2,4);var rl=0,Jl=0,Ul=0,H1=1e3,Du,Yl,Fu=0,Jo=0,gf=0,Pa=typeof performance=="object"&&performance.now?performance:Date,B1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Wp(){return Jo||(B1(Uge),Jo=Pa.now()+gf)}function Uge(){Jo=0}function Hu(){this._call=this._time=this._next=null}Hu.prototype=jp.prototype={constructor:Hu,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Wp():+n)+(t==null?0:+t),!this._next&&Yl!==this&&(Yl?Yl._next=this:Du=this,Yl=this),this._call=e,this._time=n,Dh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dh())}};function jp(e,t,n){var i=new Hu;return i.restart(e,t,n),i}function Vge(){Wp(),++rl;for(var e=Du,t;e;)(t=Jo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--rl}function Sy(){Jo=(Fu=Pa.now())+gf,rl=Jl=0;try{Vge()}finally{rl=0,Xge(),Jo=0}}function Gge(){var e=Pa.now(),t=e-Fu;t>H1&&(gf-=t,Fu=e)}function Xge(){for(var e,t=Du,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Du=n);Yl=e,Dh(i)}function Dh(e){if(!rl){Jl&&(Jl=clearTimeout(Jl));var t=e-Jo;t>24?(e<1/0&&(Jl=setTimeout(Sy,e-Pa.now()-gf)),Ul&&(Ul=clearInterval(Ul))):(Ul||(Fu=Pa.now(),Ul=setInterval(Gge,H1)),rl=1,B1(Sy))}}function _y(e,t,n){var i=new Hu;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,n),i}var Kge=Ya("start","end","cancel","interrupt"),Jge=[],W1=0,ky=1,Fh=2,ou=3,Ty=4,Hh=5,su=6;function mf(e,t,n,i,s,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;Yge(e,n,{name:t,index:i,group:s,on:Kge,tween:Jge,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:W1})}function qp(e,t){var n=Fr(e,t);if(n.state>W1)throw new Error("too late; already scheduled");return n}function ii(e,t){var n=Fr(e,t);if(n.state>ou)throw new Error("too late; already running");return n}function Fr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Yge(e,t,n){var i=e.__transition,s;i[t]=n,n.timer=jp(l,0,n.time);function l(p){n.state=ky,n.timer.restart(u,n.delay,n.time),n.delay<=p&&u(p-n.delay)}function u(p){var g,v,y,w;if(n.state!==ky)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===ou)return _y(u);w.state===Ty?(w.state=su,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=su,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(_y(function(){n.state===ou&&(n.state=Ty,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=Fh,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Fh){for(n.state=ou,s=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(s[++v]=w);s.length=v+1}}function f(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(h),n.state=Hh,1),v=-1,y=s.length;++v<y;)s[v].call(e,g);n.state===Hh&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=su,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function lu(e,t){var n=e.__transition,i,s,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}s=i.state>Fh&&i.state<Hh,i.state=su,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function Zge(e){return this.each(function(){lu(this,e)})}function Qge(e,t){var n,i;return function(){var s=ii(this,e),l=s.tween;if(l!==n){i=n=l;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}s.tween=i}}function eme(e,t,n){var i,s;if(typeof n!="function")throw new Error;return function(){var l=ii(this,e),u=l.tween;if(u!==i){s=(i=u).slice();for(var f={name:t,value:n},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=f;break}h===p&&s.push(f)}l.tween=s}}function tme(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Fr(this.node(),n).tween,s=0,l=i.length,u;s<l;++s)if((u=i[s]).name===e)return u.value;return null}return this.each((t==null?Qge:eme)(n,e,t))}function Up(e,t,n){var i=e._id;return e.each(function(){var s=ii(this,i);(s.value||(s.value={}))[t]=n.apply(this,arguments)}),function(s){return Fr(s,i).value[t]}}function j1(e,t){var n;return(typeof t=="number"?eo:t instanceof Ia?by:(n=Ia(t))?(t=n,by):Rge)(e,t)}function nme(e){return function(){this.removeAttribute(e)}}function rme(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ime(e,t,n){var i,s=n+"",l;return function(){var u=this.getAttribute(e);return u===s?null:u===i?l:l=t(i=u,n)}}function ome(e,t,n){var i,s=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===s?null:u===i?l:l=t(i=u,n)}}function sme(e,t,n){var i,s,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===s?l:(s=h,l=t(i=u,f)))}}function lme(e,t,n){var i,s,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===s?l:(s=h,l=t(i=u,f)))}}function ame(e,t){var n=pf(e),i=n==="transform"?Hge:j1;return this.attrTween(e,typeof t=="function"?(n.local?lme:sme)(n,i,Up(this,"attr."+e,t)):t==null?(n.local?rme:nme)(n):(n.local?ome:ime)(n,i,t))}function cme(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ume(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function fme(e,t){var n,i;function s(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&ume(e,l)),n}return s._value=t,s}function dme(e,t){var n,i;function s(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&cme(e,l)),n}return s._value=t,s}function hme(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=pf(e);return this.tween(n,(i.local?fme:dme)(i,t))}function pme(e,t){return function(){qp(this,e).delay=+t.apply(this,arguments)}}function gme(e,t){return t=+t,function(){qp(this,e).delay=t}}function mme(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?pme:gme)(t,e)):Fr(this.node(),t).delay}function vme(e,t){return function(){ii(this,e).duration=+t.apply(this,arguments)}}function yme(e,t){return t=+t,function(){ii(this,e).duration=t}}function bme(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vme:yme)(t,e)):Fr(this.node(),t).duration}function wme(e,t){if(typeof t!="function")throw new Error;return function(){ii(this,e).ease=t}}function xme(e){var t=this._id;return arguments.length?this.each(wme(t,e)):Fr(this.node(),t).ease}function Sme(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;ii(this,e).ease=n}}function _me(e){if(typeof e!="function")throw new Error;return this.each(Sme(this._id,e))}function kme(e){typeof e!="function"&&(e=S1(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Ei(i,this._parents,this._name,this._id)}function Tme(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,s=n.length,l=Math.min(i,s),u=new Array(i),f=0;f<l;++f)for(var h=t[f],p=n[f],g=h.length,v=u[f]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(v[w]=y);for(;f<i;++f)u[f]=t[f];return new Ei(u,this._parents,this._name,this._id)}function Cme(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Eme(e,t,n){var i,s,l=Cme(t)?qp:ii;return function(){var u=l(this,e),f=u.on;f!==i&&(s=(i=f).copy()).on(t,n),u.on=s}}function Ame(e,t){var n=this._id;return arguments.length<2?Fr(this.node(),n).on.on(e):this.each(Eme(n,e,t))}function Lme(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function $me(){return this.on("end.remove",Lme(this._id))}function Mme(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Fp(e));for(var i=this._groups,s=i.length,l=new Array(s),u=0;u<s;++u)for(var f=i[u],h=f.length,p=l[u]=new Array(h),g,v,y=0;y<h;++y)(g=f[y])&&(v=e.call(g,g.__data__,y,f))&&("__data__"in g&&(v.__data__=g.__data__),p[y]=v,mf(p[y],t,n,y,p,Fr(g,n)));return new Ei(l,this._parents,t,n)}function Nme(e){var t=this._name,n=this._id;typeof e!="function"&&(e=x1(e));for(var i=this._groups,s=i.length,l=[],u=[],f=0;f<s;++f)for(var h=i[f],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var y=e.call(g,g.__data__,v,h),w,L=Fr(g,n),$=0,C=y.length;$<C;++$)(w=y[$])&&mf(w,t,n,$,y,L);l.push(y),u.push(g)}return new Ei(l,u,t,n)}var Ime=Ja.prototype.constructor;function Pme(){return new Ime(this._groups,this._parents)}function Ome(e,t){var n,i,s;return function(){var l=nl(this,e),u=(this.style.removeProperty(e),nl(this,e));return l===u?null:l===n&&u===i?s:s=t(n=l,i=u)}}function q1(e){return function(){this.style.removeProperty(e)}}function Rme(e,t,n){var i,s=n+"",l;return function(){var u=nl(this,e);return u===s?null:u===i?l:l=t(i=u,n)}}function zme(e,t,n){var i,s,l;return function(){var u=nl(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),nl(this,e))),u===h?null:u===i&&h===s?l:(s=h,l=t(i=u,f))}}function Dme(e,t){var n,i,s,l="style."+t,u="end."+l,f;return function(){var h=ii(this,e),p=h.on,g=h.value[l]==null?f||(f=q1(t)):void 0;(p!==n||s!==g)&&(i=(n=p).copy()).on(u,s=g),h.on=i}}function Fme(e,t,n){var i=(e+="")=="transform"?Fge:j1;return t==null?this.styleTween(e,Ome(e,i)).on("end.style."+e,q1(e)):typeof t=="function"?this.styleTween(e,zme(e,i,Up(this,"style."+e,t))).each(Dme(this._id,e)):this.styleTween(e,Rme(e,i,t),n).on("end.style."+e,null)}function Hme(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function Bme(e,t,n){var i,s;function l(){var u=t.apply(this,arguments);return u!==s&&(i=(s=u)&&Hme(e,u,n)),i}return l._value=t,l}function Wme(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Bme(e,t,n??""))}function jme(e){return function(){this.textContent=e}}function qme(e){return function(){var t=e(this);this.textContent=t??""}}function Ume(e){return this.tween("text",typeof e=="function"?qme(Up(this,"text",e)):jme(e==null?"":e+""))}function Vme(e){return function(t){this.textContent=e.call(this,t)}}function Gme(e){var t,n;function i(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&Vme(s)),t}return i._value=e,i}function Xme(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,Gme(e))}function Kme(){for(var e=this._name,t=this._id,n=U1(),i=this._groups,s=i.length,l=0;l<s;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Fr(h,t);mf(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Ei(i,this._parents,e,n)}function Jme(){var e,t,n=this,i=n._id,s=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--s===0&&l()}};n.each(function(){var p=ii(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),p.on=t}),s===0&&l()})}var Yme=0;function Ei(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function U1(){return++Yme}var mi=Ja.prototype;Ei.prototype={constructor:Ei,select:Mme,selectAll:Nme,selectChild:mi.selectChild,selectChildren:mi.selectChildren,filter:kme,merge:Tme,selection:Pme,transition:Kme,call:mi.call,nodes:mi.nodes,node:mi.node,size:mi.size,empty:mi.empty,each:mi.each,on:Ame,attr:ame,attrTween:hme,style:Fme,styleTween:Wme,text:Ume,textTween:Xme,remove:$me,tween:tme,delay:mme,duration:bme,ease:xme,easeVarying:_me,end:Jme,[Symbol.iterator]:mi[Symbol.iterator]};function Zme(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Qme={time:null,delay:0,duration:250,ease:Zme};function eve(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function tve(e){var t,n;e instanceof Ei?(t=e._id,e=e._name):(t=U1(),(n=Qme).time=Wp(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,l=0;l<s;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&mf(h,e,t,p,u,n||eve(h,t));return new Ei(i,this._parents,e,t)}Ja.prototype.interrupt=Zge;Ja.prototype.transition=tve;const Gc=e=>()=>e;function nve(e,{sourceEvent:t,target:n,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Si(e,t,n){this.k=e,this.x=t,this.y=n}Si.prototype={constructor:Si,scale:function(e){return e===1?this:new Si(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Si(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 Vp=new Si(1,0,0);Si.prototype;function Vd(e){e.stopImmediatePropagation()}function Vl(e){e.preventDefault(),e.stopImmediatePropagation()}function rve(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ive(){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 Cy(){return this.__zoom||Vp}function ove(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function sve(){return navigator.maxTouchPoints||"ontouchstart"in this}function lve(e,t,n){var i=e.invertX(t[0][0])-n[0][0],s=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function ave(){var e=rve,t=ive,n=lve,i=ove,s=sve,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=qge,p=Ya("start","zoom","end"),g,v,y,w=500,L=150,$=0,C=10;function E(P){P.property("__zoom",Cy).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",q).filter(s).on("touchstart.zoom",U).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(P,S,R,B){var ie=P.selection?P.selection():P;ie.property("__zoom",Cy),P!==ie?z(P,S,R,B):ie.interrupt().each(function(){D(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(P,S,R,B){E.scaleTo(P,function(){var ie=this.__zoom.k,ue=typeof S=="function"?S.apply(this,arguments):S;return ie*ue},R,B)},E.scaleTo=function(P,S,R,B){E.transform(P,function(){var ie=t.apply(this,arguments),ue=this.__zoom,we=R==null?k(ie):typeof R=="function"?R.apply(this,arguments):R,Pe=ue.invert(we),qe=typeof S=="function"?S.apply(this,arguments):S;return n(O(N(ue,qe),we,Pe),ie,u)},R,B)},E.translateBy=function(P,S,R,B){E.transform(P,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,B)},E.translateTo=function(P,S,R,B,ie){E.transform(P,function(){var ue=t.apply(this,arguments),we=this.__zoom,Pe=B==null?k(ue):typeof B=="function"?B.apply(this,arguments):B;return n(Vp.translate(Pe[0],Pe[1]).scale(we.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ue,u)},B,ie)};function N(P,S){return S=Math.max(l[0],Math.min(l[1],S)),S===P.k?P:new Si(S,P.x,P.y)}function O(P,S,R){var B=S[0]-R[0]*P.k,ie=S[1]-R[1]*P.k;return B===P.x&&ie===P.y?P:new Si(P.k,B,ie)}function k(P){return[(+P[0][0]+ +P[1][0])/2,(+P[0][1]+ +P[1][1])/2]}function z(P,S,R,B){P.on("start.zoom",function(){D(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(B).end()}).tween("zoom",function(){var ie=this,ue=arguments,we=D(ie,ue).event(B),Pe=t.apply(ie,ue),qe=R==null?k(Pe):typeof R=="function"?R.apply(ie,ue):R,Ze=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ke=ie.__zoom,Je=typeof S=="function"?S.apply(ie,ue):S,re=h(Ke.invert(qe).concat(Ze/Ke.k),Je.invert(qe).concat(Ze/Je.k));return function(V){if(V===1)V=Je;else{var ee=re(V),J=Ze/ee[2];V=new Si(J,qe[0]-ee[0]*J,qe[1]-ee[1]*J)}we.zoom(null,V)}})}function D(P,S,R){return!R&&P.__zooming||new oe(P,S)}function oe(P,S){this.that=P,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(P,S),this.taps=0}oe.prototype={event:function(P){return P&&(this.sourceEvent=P),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(P,S){return this.mouse&&P!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&P!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&P!=="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(P){var S=Gn(this.that).datum();p.call(P,this.that,new nve(P,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function Q(P,...S){if(!e.apply(this,arguments))return;var R=D(this,S).event(P),B=this.__zoom,ie=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ue=bi(P);if(R.wheel)(R.mouse[0][0]!==ue[0]||R.mouse[0][1]!==ue[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ue)),clearTimeout(R.wheel);else{if(B.k===ie)return;R.mouse=[ue,B.invert(ue)],lu(this),R.start()}Vl(P),R.wheel=setTimeout(we,L),R.zoom("mouse",n(O(N(B,ie),R.mouse[0],R.mouse[1]),R.extent,u));function we(){R.wheel=null,R.end()}}function W(P,...S){if(y||!e.apply(this,arguments))return;var R=P.currentTarget,B=D(this,S,!0).event(P),ie=Gn(P.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",Ze,!0),ue=bi(P,R),we=P.clientX,Pe=P.clientY;N1(P.view),Vd(P),B.mouse=[ue,this.__zoom.invert(ue)],lu(this),B.start();function qe(Ke){if(Vl(Ke),!B.moved){var Je=Ke.clientX-we,re=Ke.clientY-Pe;B.moved=Je*Je+re*re>$}B.event(Ke).zoom("mouse",n(O(B.that.__zoom,B.mouse[0]=bi(Ke,R),B.mouse[1]),B.extent,u))}function Ze(Ke){ie.on("mousemove.zoom mouseup.zoom",null),I1(Ke.view,B.moved),Vl(Ke),B.event(Ke).end()}}function q(P,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=bi(P.changedTouches?P.changedTouches[0]:P,this),ie=R.invert(B),ue=R.k*(P.shiftKey?.5:2),we=n(O(N(R,ue),B,ie),t.apply(this,S),u);Vl(P),f>0?Gn(this).transition().duration(f).call(z,we,B,P):Gn(this).call(E.transform,we,B,P)}}function U(P,...S){if(e.apply(this,arguments)){var R=P.touches,B=R.length,ie=D(this,S,P.changedTouches.length===B).event(P),ue,we,Pe,qe;for(Vd(P),we=0;we<B;++we)Pe=R[we],qe=bi(Pe,this),qe=[qe,this.__zoom.invert(qe),Pe.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==qe[2]&&(ie.touch1=qe,ie.taps=0):(ie.touch0=qe,ue=!0,ie.taps=1+!!g);g&&(g=clearTimeout(g)),ue&&(ie.taps<2&&(v=qe[0],g=setTimeout(function(){g=null},w)),lu(this),ie.start())}}function A(P,...S){if(this.__zooming){var R=D(this,S).event(P),B=P.changedTouches,ie=B.length,ue,we,Pe,qe;for(Vl(P),ue=0;ue<ie;++ue)we=B[ue],Pe=bi(we,this),R.touch0&&R.touch0[2]===we.identifier?R.touch0[0]=Pe:R.touch1&&R.touch1[2]===we.identifier&&(R.touch1[0]=Pe);if(we=R.that.__zoom,R.touch1){var Ze=R.touch0[0],Ke=R.touch0[1],Je=R.touch1[0],re=R.touch1[1],V=(V=Je[0]-Ze[0])*V+(V=Je[1]-Ze[1])*V,ee=(ee=re[0]-Ke[0])*ee+(ee=re[1]-Ke[1])*ee;we=N(we,Math.sqrt(V/ee)),Pe=[(Ze[0]+Je[0])/2,(Ze[1]+Je[1])/2],qe=[(Ke[0]+re[0])/2,(Ke[1]+re[1])/2]}else if(R.touch0)Pe=R.touch0[0],qe=R.touch0[1];else return;R.zoom("touch",n(O(we,Pe,qe),R.extent,u))}}function I(P,...S){if(this.__zooming){var R=D(this,S).event(P),B=P.changedTouches,ie=B.length,ue,we;for(Vd(P),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ue=0;ue<ie;++ue)we=B[ue],R.touch0&&R.touch0[2]===we.identifier?delete R.touch0:R.touch1&&R.touch1[2]===we.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(we=bi(we,this),Math.hypot(v[0]-we[0],v[1]-we[1])<C)){var Pe=Gn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return E.wheelDelta=function(P){return arguments.length?(i=typeof P=="function"?P:Gc(+P),E):i},E.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Gc(!!P),E):e},E.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Gc(!!P),E):s},E.extent=function(P){return arguments.length?(t=typeof P=="function"?P:Gc([[+P[0][0],+P[0][1]],[+P[1][0],+P[1][1]]]),E):t},E.scaleExtent=function(P){return arguments.length?(l[0]=+P[0],l[1]=+P[1],E):[l[0],l[1]]},E.translateExtent=function(P){return arguments.length?(u[0][0]=+P[0][0],u[1][0]=+P[1][0],u[0][1]=+P[0][1],u[1][1]=+P[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(P){return arguments.length?(n=P,E):n},E.duration=function(P){return arguments.length?(f=+P,E):f},E.interpolate=function(P){return arguments.length?(h=P,E):h},E.on=function(){var P=p.on.apply(p,arguments);return P===p?E:P},E.clickDistance=function(P){return arguments.length?($=(P=+P)*P,E):Math.sqrt($)},E.tapDistance=function(P){return arguments.length?(C=+P,E):C},E}function cve(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return V1(this.cover(t,n),t,n,e)}function V1(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var s,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,L,$,C,E,N;if(!l)return e._root=u,e;for(;l.length;)if(($=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y,s=l,!(l=l[E=C<<1|$]))return s[E]=u,e;if(w=+e._x.call(null,l.data),L=+e._y.call(null,l.data),t===w&&n===L)return u.next=l,s?s[E]=u:e._root=u,e;do s=s?s[E]=new Array(4):e._root=new Array(4),($=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y;while((E=C<<1|$)===(N=(L>=y)<<1|w>=v));return s[N]=l,s[E]=u,e}function uve(e){var t,n,i=e.length,s,l,u=new Array(i),f=new Array(i),h=1/0,p=1/0,g=-1/0,v=-1/0;for(n=0;n<i;++n)isNaN(s=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=s,f[n]=l,s<h&&(h=s),s>g&&(g=s),l<p&&(p=l),l>v&&(v=l));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),n=0;n<i;++n)V1(this,u[n],f[n],e[n]);return this}function fve(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,s=this._x1,l=this._y1;if(isNaN(n))s=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=s-n||1,f=this._root,h,p;n>e||e>=s||i>t||t>=l;)switch(p=(t<i)<<1|e<n,h=new Array(4),h[p]=f,f=h,u*=2,p){case 0:s=n+u,l=i+u;break;case 1:n=s-u,l=i+u;break;case 2:s=n+u,i=l-u;break;case 3:n=s-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=s,this._y1=l,this}function dve(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function hve(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 Pn(e,t,n,i,s){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=s}function pve(e,t,n){var i,s=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,L,$;for(w&&y.push(new Pn(w,s,l,g,v)),n==null?n=1/0:(s=e-n,l=t-n,g=e+n,v=t+n,n*=n);L=y.pop();)if(!(!(w=L.node)||(u=L.x0)>g||(f=L.y0)>v||(h=L.x1)<s||(p=L.y1)<l))if(w.length){var C=(u+h)/2,E=(f+p)/2;y.push(new Pn(w[3],C,E,h,p),new Pn(w[2],u,E,C,p),new Pn(w[1],C,f,h,E),new Pn(w[0],u,f,C,E)),($=(t>=E)<<1|e>=C)&&(L=y[y.length-1],y[y.length-1]=y[y.length-1-$],y[y.length-1-$]=L)}else{var N=e-+this._x.call(null,w.data),O=t-+this._y.call(null,w.data),k=N*N+O*O;if(k<n){var z=Math.sqrt(n=k);s=e-z,l=t-z,g=e+z,v=t+z,i=w.data}}return i}function gve(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,s,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,L,$,C,E;if(!n)return this;if(n.length)for(;;){if((L=g>=(y=(u+h)/2))?u=y:h=y,($=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[C=$<<1|L]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,s?(l?s.next=l:delete s.next,this):t?(l?t[C]=l:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=l,this)}function mve(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function vve(){return this._root}function yve(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function bve(e){var t=[],n,i=this._root,s,l,u,f,h;for(i&&t.push(new Pn(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,l=n.x0,u=n.y0,f=n.x1,h=n.y1)&&i.length){var p=(l+f)/2,g=(u+h)/2;(s=i[3])&&t.push(new Pn(s,p,g,f,h)),(s=i[2])&&t.push(new Pn(s,l,g,p,h)),(s=i[1])&&t.push(new Pn(s,p,u,f,g)),(s=i[0])&&t.push(new Pn(s,l,u,p,g))}return this}function wve(e){var t=[],n=[],i;for(this._root&&t.push(new Pn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var s=i.node;if(s.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=s[0])&&t.push(new Pn(l,u,f,g,v)),(l=s[1])&&t.push(new Pn(l,g,f,h,v)),(l=s[2])&&t.push(new Pn(l,u,v,g,p)),(l=s[3])&&t.push(new Pn(l,g,v,h,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function xve(e){return e[0]}function Sve(e){return arguments.length?(this._x=e,this):this._x}function _ve(e){return e[1]}function kve(e){return arguments.length?(this._y=e,this):this._y}function Gp(e,t,n){var i=new Xp(t??xve,n??_ve,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function Xp(e,t,n,i,s,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=s,this._y1=l,this._root=void 0}function Ey(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var zn=Gp.prototype=Xp.prototype;zn.copy=function(){var e=new Xp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=Ey(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var s=0;s<4;++s)(i=t.source[s])&&(i.length?n.push({source:i,target:t.target[s]=new Array(4)}):t.target[s]=Ey(i));return e};zn.add=cve;zn.addAll=uve;zn.cover=fve;zn.data=dve;zn.extent=hve;zn.find=pve;zn.remove=gve;zn.removeAll=mve;zn.root=vve;zn.size=yve;zn.visit=bve;zn.visitAfter=wve;zn.x=Sve;zn.y=kve;function Rn(e){return function(){return e}}function ro(e){return(e()-.5)*1e-6}function Tve(e){return e.x+e.vx}function Cve(e){return e.y+e.vy}function Eve(e){var t,n,i,s=1,l=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,L,$,C,E=0;E<l;++E)for(v=Gp(t,Tve,Cve).visitAfter(f),p=0;p<g;++p)y=t[p],$=n[y.index],C=$*$,w=y.x+y.vx,L=y.y+y.vy,v.visit(N);function N(O,k,z,D,oe){var Q=O.data,W=O.r,q=$+W;if(Q){if(Q.index>y.index){var U=w-Q.x-Q.vx,A=L-Q.y-Q.vy,I=U*U+A*A;I<q*q&&(U===0&&(U=ro(i),I+=U*U),A===0&&(A=ro(i),I+=A*A),I=(q-(I=Math.sqrt(I)))/I*s,y.vx+=(U*=I)*(q=(W*=W)/(C+W)),y.vy+=(A*=I)*q,Q.vx-=U*(q=1-q),Q.vy-=A*q)}return}return k>w+q||D<w-q||z>L+q||oe<L-q}}function f(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(n=new Array(g),p=0;p<g;++p)v=t[p],n[v.index]=+e(v,p,t)}}return u.initialize=function(p,g){t=p,i=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(s=+p,u):s},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),u):e},u}function Ave(e){return e.index}function Ay(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Lve(e){var t=Ave,n=v,i,s=Rn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(C){return 1/Math.min(f[C.source.index],f[C.target.index])}function y(C){for(var E=0,N=e.length;E<g;++E)for(var O=0,k,z,D,oe,Q,W,q;O<N;++O)k=e[O],z=k.source,D=k.target,oe=D.x+D.vx-z.x-z.vx||ro(p),Q=D.y+D.vy-z.y-z.vy||ro(p),W=Math.sqrt(oe*oe+Q*Q),W=(W-l[O])/W*C*i[O],oe*=W,Q*=W,D.vx-=oe*(q=h[O]),D.vy-=Q*q,z.vx+=oe*(q=1-q),z.vy+=Q*q}function w(){if(u){var C,E=u.length,N=e.length,O=new Map(u.map((z,D)=>[t(z,D,u),z])),k;for(C=0,f=new Array(E);C<N;++C)k=e[C],k.index=C,typeof k.source!="object"&&(k.source=Ay(O,k.source)),typeof k.target!="object"&&(k.target=Ay(O,k.target)),f[k.source.index]=(f[k.source.index]||0)+1,f[k.target.index]=(f[k.target.index]||0)+1;for(C=0,h=new Array(N);C<N;++C)k=e[C],h[C]=f[k.source.index]/(f[k.source.index]+f[k.target.index]);i=new Array(N),L(),l=new Array(N),$()}}function L(){if(u)for(var C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function $(){if(u)for(var C=0,E=e.length;C<E;++C)l[C]=+s(e[C],C,e)}return y.initialize=function(C,E){u=C,p=E,w()},y.links=function(C){return arguments.length?(e=C,w(),y):e},y.id=function(C){return arguments.length?(t=C,y):t},y.iterations=function(C){return arguments.length?(g=+C,y):g},y.strength=function(C){return arguments.length?(n=typeof C=="function"?C:Rn(+C),L(),y):n},y.distance=function(C){return arguments.length?(s=typeof C=="function"?C:Rn(+C),$(),y):s},y}const $ve=1664525,Mve=1013904223,Ly=4294967296;function Nve(){let e=1;return()=>(e=($ve*e+Mve)%Ly)/Ly}function Ive(e){return e.x}function Pve(e){return e.y}var Ove=10,Rve=Math.PI*(3-Math.sqrt(5));function zve(e){var t,n=1,i=.001,s=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=jp(v),p=Ya("tick","end"),g=Nve();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y($){var C,E=e.length,N;$===void 0&&($=1);for(var O=0;O<$;++O)for(n+=(l-n)*s,f.forEach(function(k){k(n)}),C=0;C<E;++C)N=e[C],N.fx==null?N.x+=N.vx*=u:(N.x=N.fx,N.vx=0),N.fy==null?N.y+=N.vy*=u:(N.y=N.fy,N.vy=0);return t}function w(){for(var $=0,C=e.length,E;$<C;++$){if(E=e[$],E.index=$,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var N=Ove*Math.sqrt(.5+$),O=$*Rve;E.x=N*Math.cos(O),E.y=N*Math.sin(O)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function L($){return $.initialize&&$.initialize(e,g),$}return w(),t={tick:y,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function($){return arguments.length?(e=$,w(),f.forEach(L),t):e},alpha:function($){return arguments.length?(n=+$,t):n},alphaMin:function($){return arguments.length?(i=+$,t):i},alphaDecay:function($){return arguments.length?(s=+$,t):+s},alphaTarget:function($){return arguments.length?(l=+$,t):l},velocityDecay:function($){return arguments.length?(u=1-$,t):1-u},randomSource:function($){return arguments.length?(g=$,f.forEach(L),t):g},force:function($,C){return arguments.length>1?(C==null?f.delete($):f.set($,L(C)),t):f.get($)},find:function($,C,E){var N=0,O=e.length,k,z,D,oe,Q;for(E==null?E=1/0:E*=E,N=0;N<O;++N)oe=e[N],k=$-oe.x,z=C-oe.y,D=k*k+z*z,D<E&&(Q=oe,E=D);return Q},on:function($,C){return arguments.length>1?(p.on($,C),t):p.on($)}}}function Dve(){var e,t,n,i,s=Rn(-30),l,u=1,f=1/0,h=.81;function p(w){var L,$=e.length,C=Gp(e,Ive,Pve).visitAfter(v);for(i=w,L=0;L<$;++L)t=e[L],C.visit(y)}function g(){if(e){var w,L=e.length,$;for(l=new Array(L),w=0;w<L;++w)$=e[w],l[$.index]=+s($,w,e)}}function v(w){var L=0,$,C,E=0,N,O,k;if(w.length){for(N=O=k=0;k<4;++k)($=w[k])&&(C=Math.abs($.value))&&(L+=$.value,E+=C,N+=C*$.x,O+=C*$.y);w.x=N/E,w.y=O/E}else{$=w,$.x=$.data.x,$.y=$.data.y;do L+=l[$.data.index];while($=$.next)}w.value=L}function y(w,L,$,C){if(!w.value)return!0;var E=w.x-t.x,N=w.y-t.y,O=C-L,k=E*E+N*N;if(O*O/h<k)return k<f&&(E===0&&(E=ro(n),k+=E*E),N===0&&(N=ro(n),k+=N*N),k<u&&(k=Math.sqrt(u*k)),t.vx+=E*w.value*i/k,t.vy+=N*w.value*i/k),!0;if(w.length||k>=f)return;(w.data!==t||w.next)&&(E===0&&(E=ro(n),k+=E*E),N===0&&(N=ro(n),k+=N*N),k<u&&(k=Math.sqrt(u*k)));do w.data!==t&&(O=l[w.data.index]*i/k,t.vx+=E*O,t.vy+=N*O);while(w=w.next)}return p.initialize=function(w,L){e=w,n=L,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Rn(+w),g(),p):s},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Fve(e){var t=Rn(.1),n,i,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(s[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),s=new Array(h),f=0;f<h;++f)i[f]=isNaN(s[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),u(),l):e},l}function Hve(e){var t=Rn(.1),n,i,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(s[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),s=new Array(h),f=0;f<h;++f)i[f]=isNaN(s[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),u(),l):e},l}var Bve=Object.defineProperty,Wve=(e,t,n)=>t in e?Bve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nt=(e,t,n)=>Wve(e,typeof t!="symbol"?t+"":t,n);function jve(){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 $y(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 io(...e){return e.reduce((t,n)=>{if(Array.isArray(n))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(n).forEach(i=>{["__proto__","constructor","prototype"].includes(i)||(Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=io.options.mergeArrays?Array.from(new Set(t[i].concat(n[i]))):n[i]:$y(t[i])&&$y(n[i])?t[i]=io(t[i],n[i]):t[i]=n[i])}),t},{})}const G1={mergeArrays:!0};io.options=G1;io.withOptions=(e,...t)=>{io.options={mergeArrays:!0,...e};const n=io(...t);return io.options=G1,n};function qve(){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 Uve(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function X1(e){e.preventDefault(),e.stopPropagation()}function K1(e){return typeof e=="number"}function bo(e,t){return K1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Vve(e){return`${e.source.id}-${e.target.id}`}function J1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Gve(e){return`url(#${J1(e.color)})`}function Xve(e){return{size:e,padding:(t,n)=>bo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Y1={Arrow:e=>Xve(e)},Kve=(e,t,n)=>[t/2,n/2],Jve=(e,t,n)=>[My(0,t),My(0,n)];function My(e,t){return Math.random()*(t-e)+e}const Bh={Centered:Kve,Randomized:Jve};function Yve(){return{autoResize:!1,callbacks:{},hooks:{},initial:Uve(),nodeRadius:16,marker:Y1.Arrow(4),modifiers:{},positionInitializer:Bh.Centered,simulation:{alphas:jve(),forces:qve()},zoom:{initial:1,min:.1,max:2}}}function Zve(e={}){return io.withOptions({mergeArrays:!1},Yve(),e)}function Qve({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:s,offset:[l,u],scale:f,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>X1(g)).on("dblclick",g=>n==null?void 0:n(g)).on("dblclick.zoom",null).on("pointermove",g=>i==null?void 0:i(g)).on("pointerup",g=>s==null?void 0:s(g)).style("cursor","grab");return e&&p.call(h.transform,Vp.translate(l,u).scale(f)),p.append("g")}function e0e({canvas:e,scale:t,xOffset:n,yOffset:i}){e==null||e.attr("transform",`translate(${n},${i})scale(${t})`)}function t0e({config:e,onDragStart:t,onDragEnd:n}){var i,s;const l=yge().filter(u=>u.type==="mousedown"?u.button===0:u.type==="touchstart"?u.touches.length===1:!1).on("start",(u,f)=>{u.active===0&&t(u,f),Gn(u.sourceEvent.target).classed("grabbed",!0),f.fx=f.x,f.fy=f.y}).on("drag",(u,f)=>{f.fx=u.x,f.fy=u.y}).on("end",(u,f)=>{u.active===0&&n(u,f),Gn(u.sourceEvent.target).classed("grabbed",!1),f.fx=void 0,f.fy=void 0});return(s=(i=e.modifiers).drag)==null||s.call(i,l),l}function n0e({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:s}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,f=e.nodes.filter(h=>t.includes(h.type)&&(i||u(h)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:r0e({links:l},n)}function r0e(e,t){const n=[...i0e(e,t),...o0e(e,t)],i=n.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function i0e(e,t){return Z1(e,t,(n,i)=>n.target.id===i.id)}function o0e(e,t){return Z1(e,t,(n,i)=>n.source.id===i.id)}function Z1(e,t,n){const i=new Set(e.links),s=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...s].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{s.add(f.source),s.add(f.target),l.push(f),i.delete(f)})}return l}function Wh(e){return e.x??0}function jh(e){return e.y??0}function Kp({source:e,target:t}){const n=new Nn(Wh(e),jh(e)),i=new Nn(Wh(t),jh(t)),s=i.subtract(n),l=s.length(),u=s.normalize(),f=u.multiply(-1);return{s:n,t:i,dist:l,norm:u,endNorm:f}}function Q1({center:e,node:t}){const n=new Nn(Wh(t),jh(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Nn(0,1))),{n,c:i}}function eS({config:e,source:t,target:n}){const{s:i,t:s,norm:l}=Kp({source:t,target:n}),u=i.add(l.multiply(bo(e,t)-1)),f=s.subtract(l.multiply(e.marker.padding(n,e)));return{start:u,end:f}}function s0e(e){const{start:t,end:n}=eS(e);return`M${t.x},${t.y}
50
+ L${n.x},${n.y}`}function l0e(e){const{start:t,end:n}=eS(e),i=n.subtract(t).multiply(.5),s=t.add(i);return`translate(${s.x-8},${s.y-4})`}function a0e({config:e,source:t,target:n}){const{s:i,t:s,dist:l,norm:u,endNorm:f}=Kp({source:t,target:n}),h=10,p=u.rotateByDegrees(-10).multiply(bo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(bo(e,n)).add(s).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
51
+ A${v},${v},0,0,1,${g.x},${g.y}`}function c0e({center:e,config:t,node:n}){const{n:i,c:s}=Q1({center:e,node:n}),l=bo(t,n),u=i.subtract(s),f=u.multiply(1/u.length()),h=f.rotateByDegrees(40).multiply(l-1).add(i),p=f.rotateByDegrees(-40).multiply(l).add(i).add(f.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}
52
+ A${l},${l},0,1,0,${p.x},${p.y}`}function u0e({config:e,source:t,target:n}){const{t:i,dist:s,endNorm:l}=Kp({source:t,target:n}),u=l.rotateByDegrees(10).multiply(.5*s).add(i);return`translate(${u.x},${u.y})`}function f0e({center:e,config:t,node:n}){const{n:i,c:s}=Q1({center:e,node:n}),l=i.subtract(s),u=l.multiply(1/l.length()).multiply(3*bo(t,n)+8).add(i);return`translate(${u.x},${u.y})`}const Ks={line:{labelTransform:l0e,path:s0e},arc:{labelTransform:u0e,path:a0e},reflexive:{labelTransform:f0e,path:c0e}};function d0e(e){return e.append("g").classed("links",!0).selectAll("path")}function h0e({config:e,graph:t,selection:n,showLabels:i}){const s=n==null?void 0:n.data(t.links,l=>Vve(l)).join(l=>{var u,f,h,p;const g=l.append("g"),v=g.append("path").classed("link",!0).style("marker-end",w=>Gve(w)).style("stroke",w=>w.color);(f=(u=e.modifiers).link)==null||f.call(u,v);const y=g.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,y),g});return s==null||s.select(".link__label").attr("opacity",l=>l.label&&i?1:0),s}function p0e(e){g0e(e),m0e(e)}function g0e({center:e,config:t,graph:n,selection:i}){i==null||i.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?Ks.reflexive.path({config:t,node:s.source,center:e}):tS(n,s.source,s.target)?Ks.arc.path({config:t,source:s.source,target:s.target}):Ks.line.path({config:t,source:s.source,target:s.target}))}function m0e({config:e,center:t,graph:n,selection:i}){i==null||i.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?Ks.reflexive.labelTransform({config:e,node:s.source,center:t}):tS(n,s.source,s.target)?Ks.arc.labelTransform({config:e,source:s.source,target:s.target}):Ks.line.labelTransform({config:e,source:s.source,target:s.target}))}function tS(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function v0e(e){return e.append("defs").selectAll("marker")}function y0e({config:e,graph:t,selection:n}){return n==null?void 0:n.data(b0e(t),i=>i).join(i=>{const s=i.append("marker").attr("id",l=>J1(l)).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",l=>l);return s.append("path").attr("d",w0e(e.marker.path)),s})}function b0e(e){return[...new Set(e.links.map(t=>t.color))]}function w0e(e){const[t,...n]=e;if(!t)return"M0,0";const[i,s]=t;return n.reduce((l,[u,f])=>`${l}L${u},${f}`,`M${i},${s}`)}function x0e(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function S0e({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:s,selection:l,showLabels:u}){const f=l==null?void 0:l.data(n.nodes,h=>h.id).join(h=>{var p,g,v,y;const w=h.append("g");t!==void 0&&w.call(t);const L=w.append("circle").classed("node",!0).attr("r",C=>bo(e,C)).on("contextmenu",(C,E)=>{X1(C),i(E)}).on("pointerdown",(C,E)=>k0e(C,E,s??i)).style("fill",C=>C.color);(g=(p=e.modifiers).node)==null||g.call(p,L);const $=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",C=>C.label?C.label.color:null).style("font-size",C=>C.label?C.label.fontSize:null).style("stroke","none").text(C=>C.label?C.label.text:null);return(y=(v=e.modifiers).nodeLabel)==null||y.call(v,$),w});return f==null||f.select(".node").classed("focused",h=>h.isFocused),f==null||f.select(".node__label").attr("opacity",u?1:0),f}const _0e=500;function k0e(e,t,n){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,s=Date.now();if(i===void 0||s-i>_0e){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,n(t)}function T0e(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function C0e({center:e,config:t,graph:n,onTick:i}){var s,l;const u=zve(n.nodes),f=t.simulation.forces.centering;if(f&&f.enabled){const v=f.strength;u.force("x",Fve(()=>e().x).strength(v)).force("y",Hve(()=>e().y).strength(v))}const h=t.simulation.forces.charge;h&&h.enabled&&u.force("charge",Dve().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&u.force("collision",Eve().radius(v=>p.radiusMultiplier*bo(t,v)));const g=t.simulation.forces.link;return g&&g.enabled&&u.force("link",Lve(n.links).id(v=>v.id).distance(t.simulation.forces.link.length).strength(g.strength)),u.on("tick",()=>i()),(l=(s=t.modifiers).simulation)==null||l.call(s,u),u}function E0e({canvasContainer:e,config:t,min:n,max:i,onZoom:s}){var l,u;const f=ave().scaleExtent([n,i]).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(u=(l=t.modifiers).zoom)==null||u.call(l,f),f}class A0e{constructor(t,n,i){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=n,this.config=i,this.scale=i.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[l,u]=i.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??l,s.y=s.y??u}),this.nodeTypes=[...new Set(n.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],i.initial){const{includeUnlinked:s,nodeTypeFilter:l,linkFilter:u,showLinkLabels:f,showNodeLabels:h}=i.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=l??this._nodeTypeFilter,this._linkFilter=u??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(i.simulation.alphas.initialize),i.autoResize&&(this.resizeObserver=new ResizeObserver(Ahe(()=>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:n,exclude:i}=this.config.simulation.alphas.filter.unlinked,s=t?n:i;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:n,show:i}=this.config.simulation.alphas.labels.nodes,s=t?i:n;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:n,show:i}=this.config.simulation.alphas.labels.links,s=t?i:n;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,n=this.height,i=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,l=t.toFixed()!==i.toFixed(),u=n.toFixed()!==s.toFixed();if(!l&&!u)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(K1(f)?f:f({oldWidth:t,oldHeight:n,newWidth:i,newHeight:s}))}restart(t){var n;this.markerSelection=y0e({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=h0e({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=S0e({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:i=>this.toggleNodeFocus(i),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(n=this.simulation)==null||n.stop(),this.simulation=C0e({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,n){t?this._nodeTypeFilter.push(n):this._nodeTypeFilter=this._nodeTypeFilter.filter(i=>i!==n),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,n;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(n=this.simulation)==null||n.stop()}initGraph(){this.zoom=E0e({config:this.config,canvasContainer:()=>Gn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Qve({applyZoom:this.scale!==1,container:Gn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=d0e(this.canvas),this.nodeSelection=x0e(this.canvas),this.markerSelection=v0e(this.canvas),this.drag=t0e({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(){T0e(this.nodeSelection),p0e({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Gn(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 n,i,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(i=(n=this.config.hooks).afterZoom)==null||i.call(n,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){e0e({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=n0e({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Ny({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function L0e(e){return{...e}}function nS(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const $0e={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},M0e={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},N0e={flex:"~ gap-1","items-center":"","select-none":""},I0e=["id","checked","onChange"],P0e=["for"],O0e=at({__name:"ViewModuleGraph",props:ma({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=ef(e,"modelValue"),{graph:i}=oT(t),s=Ue(),l=Ue(!1),u=Ue(),f=Ue();pp(()=>{l.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),wo(()=>{g()}),Zu(()=>{var w;(w=f.value)==null||w.shutdown()}),St(i,()=>g());function h(w,L){var $;($=f.value)==null||$.filterNodesByType(L,w)}function p(w){u.value=w,l.value=!0}function g(w=!1){var L;if((L=f.value)==null||L.shutdown(),w&&!n.value){n.value=!0;return}!i.value||!s.value||(f.value=new A0e(s.value,i.value,Zve({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:$,newWidth:C})=>$===0&&C===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Y1.Arrow(2),modifiers:{node:y},positionInitializer:i.value.nodes.length>1?Bh.Randomized:Bh.Centered,zoom:{min:.5,max:2}})))}const v=w=>w.button===0;function y(w){if(pr)return;let L=0,$=0,C=0;w.on("pointerdown",(E,N)=>{N.type!=="external"&&(!N.x||!N.y||!v(E)||(L=N.x,$=N.y,C=Date.now()))}).on("pointerup",(E,N)=>{if(N.type==="external"||!N.x||!N.y||!v(E)||Date.now()-C>500)return;const O=N.x-L,k=N.y-$;O**2+k**2<100&&p(N.id)})}return(w,L)=>{var O;const $=ri,C=Ehe,E=Dp,N=Dr("tooltip");return se(),ye("div",$0e,[te("div",null,[te("div",M0e,[te("div",N0e,[ct(te("input",{id:"hide-node-modules","onUpdate:modelValue":L[0]||(L[0]=k=>n.value=k),type:"checkbox"},null,512),[[ww,n.value]]),L[4]||(L[4]=te("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))]),(se(!0),ye(nt,null,hr((O=j(f))==null?void 0:O.nodeTypes.sort(),k=>{var z;return se(),ye("div",{key:k,flex:"~ gap-1","items-center":"","select-none":""},[te("input",{id:`type-${k}`,type:"checkbox",checked:(z=j(f))==null?void 0:z.nodeTypeFilter.includes(k),onChange:D=>h(k,D.target.checked)},null,40,I0e),te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${k}`,"border-b-2":"",style:tn({"border-color":`var(--color-node-${k})`})},Re(k)+" Modules",13,P0e)])}),128)),L[5]||(L[5]=te("div",{"flex-auto":""},null,-1)),te("div",null,[ct(Ie($,{icon:"i-carbon-reset",onClick:L[1]||(L[1]=k=>g(!0))},null,512),[[N,"Reset",void 0,{bottom:!0}]])])])]),te("div",{ref_key:"el",ref:s},null,512),Ie(E,{modelValue:j(l),"onUpdate:modelValue":L[3]||(L[3]=k=>kt(l)?l.value=k:null),direction:"right"},{default:it(()=>[j(u)?(se(),Ye(mp,{key:0},{default:it(()=>[Ie(C,{id:j(u),"project-name":w.projectName,onClose:L[2]||(L[2]=k=>l.value=!1)},null,8,["id","project-name"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])])}}}),R0e={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},z0e={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},D0e={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},F0e={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},H0e={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},B0e={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},rS=at({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const i=Dr("tooltip");return t.state==="pass"?(se(),ye("div",R0e)):t.failedSnapshot?ct((se(),ye("div",z0e,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(se(),ye("div",D0e)):t.mode==="todo"?ct((se(),ye("div",F0e,null,512)),[[i,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?ct((se(),ye("div",H0e,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(se(),ye("div",B0e))}}});function W0e(e){const t=new Map,n=new Map,i=[];for(;;){let s=0;if(e.forEach((l,u)=>{var g;const{splits:f,finished:h}=l;if(h){s++;const{raw:v,candidate:y}=l;t.set(v,y);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,(g=n.get(p))==null||g.push(u),f.shift()):(n.set(p,[u]),i.push(u))}),i.forEach(l=>{const u=e[l],f=u.splits.shift();u.candidate+=u.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),n.clear(),i.length=0,s===e.length)break}return t}function j0e(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,candidate:"",finished:!1,id:e}}function q0e(e){const t=e.map(i=>j0e(i)),n=W0e(t);return t.map(({raw:i,id:s})=>nS({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:n.get(i)??""},isFocused:!1,id:s,type:"external"}))}function U0e(e,t){return nS({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 V0e(e,t){if(!e)return Ny({});const n=q0e(e.externalized),i=e.inlined.map(f=>U0e(f,f===t))??[],s=[...n,...i],l=Object.fromEntries(s.map(f=>[f.id,f])),u=Object.entries(e.graph).flatMap(([f,h])=>h.map(p=>{const g=l[f],v=l[p];if(!(g===void 0||v===void 0))return L0e({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ny({nodes:s,links:u})}const G0e={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},X0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},K0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},J0e={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Y0e={class:"flex text-lg"},Z0e={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Q0e={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},eye={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},tye={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},nye=["flex-1"],rye=at({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),n=Ue(!1),i=Ue(!1),s=Ue(!1),l=Ue(void 0),u=Ue(!0),f=_e(()=>qs.value?ht.state.idMap.get(qs.value):void 0),h=_e(()=>{const k=qt.value;if(!(!k||!k.filepath))return{filepath:k.filepath,projectName:k.file.projectName||""}}),p=_e(()=>qt.value&&Ip(qt.value)),g=_e(()=>{var k,z;return!!((z=(k=qt.value)==null?void 0:k.meta)!=null&&z.typecheck)});function v(){var z;const k=(z=qt.value)==null?void 0:z.filepath;k&&fetch(`/__open-in-editor?file=${encodeURIComponent(k)}`)}function y(k){k==="graph"&&(i.value=!0),jn.value=k}const w=_e(()=>{var k;return((k=c1.value)==null?void 0:k.reduce((z,{size:D})=>z+D,0))??0});function L(k){n.value=k}const $=/[/\\]node_modules[/\\]/;async function C(k=!1){var z;if(!(s.value||((z=h.value)==null?void 0:z.filepath)===l.value&&!k)){s.value=!0,await Et();try{const D=h.value;if(!D){s.value=!1;return}if(k||!l.value||D.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let oe=await ht.rpc.getModuleGraph(D.projectName,D.filepath,!!It);u.value&&(pr&&(oe=typeof window.structuredClone<"u"?window.structuredClone(oe):z$(oe)),oe.inlined=oe.inlined.filter(Q=>!$.test(Q)),oe.externalized=oe.externalized.filter(Q=>!$.test(Q))),t.value=V0e(oe,D.filepath),l.value=D.filepath}y("graph")}finally{await new Promise(D=>setTimeout(D,100)),s.value=!1}}}$p(()=>[h.value,jn.value,u.value],([,k,z],D)=>{k==="graph"&&C(D&&z!==D[2])},{debounce:100,immediate:!0});const E=_e(()=>{var z,D;const k=((z=qt.value)==null?void 0:z.file.projectName)||"";return Ae.colors.get(k)||Fx((D=qt.value)==null?void 0:D.file.projectName)}),N=_e(()=>Hx(E.value)),O=_e(()=>{var oe;const k=qs.value;if(!k)return(oe=qt.value)==null?void 0:oe.name;const z=[];let D=ht.state.idMap.get(k);for(;D;)z.push(D.name),D=D.suite?D.suite:D===D.file?void 0:D.file;return z.reverse().join(" > ")});return(k,z)=>{var P,S,R;const D=rS,oe=ri,Q=O0e,W=bhe,q=yhe,U=dhe,A=ihe,I=Dr("tooltip");return j(qt)?(se(),ye("div",G0e,[te("div",null,[te("div",X0e,[Ie(D,{state:(P=j(qt).result)==null?void 0:P.state,mode:j(qt).mode,"failed-snapshot":j(p)},null,8,["state","mode","failed-snapshot"]),j(g)?ct((se(),ye("div",K0e,null,512)),[[I,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):je("",!0),(S=j(qt))!=null&&S.file.projectName?(se(),ye("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:tn({backgroundColor:j(E),color:j(N)})},Re(j(qt).file.projectName),5)):je("",!0),te("div",J0e,Re(j(O)),1),te("div",Y0e,[j(pr)?je("",!0):ct((se(),Ye(oe,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((R=j(qt))!=null&&R.filepath),onClick:v},null,8,["disabled"])),[[I,"Open in editor",void 0,{bottom:!0}]])])]),te("div",Z0e,[te("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==null}]),"data-testid":"btn-report",onClick:z[0]||(z[0]=B=>y(null))},z[5]||(z[5]=[te("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),dt(" Report ",-1)]),2),te("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==="graph"}]),onClick:z[1]||(z[1]=B=>y("graph"))},[j(s)?(se(),ye("span",Q0e)):(se(),ye("span",eye)),z[6]||(z[6]=dt(" Module Graph ",-1))],2),te("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==="editor"}]),onClick:z[2]||(z[2]=B=>y("editor"))},[z[7]||(z[7]=te("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),dt(" "+Re(j(n)?"* ":"")+"Code ",1)],2),te("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":j(jn)==="console",op20:j(jn)!=="console"&&j(w)===0}]),onClick:z[3]||(z[3]=B=>y("console"))},[z[8]||(z[8]=te("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),dt(" Console ("+Re(j(w))+") ",1)],2)])]),te("div",tye,[j(i)?(se(),ye("div",{key:0,"flex-1":j(jn)==="graph"&&""},[ct(Ie(Q,{modelValue:j(u),"onUpdate:modelValue":z[4]||(z[4]=B=>kt(u)?u.value=B:null),graph:j(t),"data-testid":"graph","project-name":j(qt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[no,j(jn)==="graph"&&!j(s)]])],8,nye)):je("",!0),j(jn)==="editor"?(se(),Ye(W,{key:j(qt).id,file:j(qt),"data-testid":"editor",onDraft:L},null,8,["file"])):j(jn)==="console"?(se(),Ye(q,{key:2,file:j(qt),"data-testid":"console"},null,8,["file"])):!j(jn)&&!j(f)&&j(qt)?(se(),Ye(U,{key:3,file:j(qt),"data-testid":"report"},null,8,["file"])):!j(jn)&&j(f)?(se(),Ye(A,{key:4,test:j(f),"data-testid":"report"},null,8,["test"])):je("",!0)])])):je("",!0)}}}),iye={h:"full",flex:"~ col"},oye={"flex-auto":"","py-1":"","bg-white":""},sye=["src"],lye=at({__name:"Coverage",props:{src:{}},setup(e){return(t,n)=>(se(),ye("div",iye,[n[0]||(n[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon:folder-details-reference"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),te("div",oye,[te("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,sye)])]))}}),aye={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},cye={"font-bold":""},uye={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},fye=["font-bold"],dye={text:"red500/70"},hye={key:1,text:"sm","mb-2":""},pye={"font-bold":""},gye={key:2,text:"sm","mb-2":""},mye={"font-bold":""},vye={key:3,text:"sm","font-thin":""},yye=at({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>{var i;return se(),ye(nt,null,[te("h4",aye,[te("span",cye,[dt(Re(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(se(),ye(nt,{key:0},[dt(":")],64)):je("",!0)]),dt(" "+Re(t.error.message),1)]),(i=t.error.stacks)!=null&&i.length?(se(),ye("p",uye,[(se(!0),ye(nt,null,hr(t.error.stacks,(s,l)=>(se(),ye("span",{key:l,"whitespace-pre":"","font-bold":l===0?"":null},[dt("❯ "+Re(s.method)+" "+Re(s.file)+":",1),te("span",dye,Re(s.line)+":"+Re(s.column),1),n[0]||(n[0]=te("br",null,null,-1))],8,fye))),128))])):je("",!0),t.error.VITEST_TEST_PATH?(se(),ye("p",hye,[n[1]||(n[1]=dt(" This error originated in ",-1)),te("span",pye,Re(t.error.VITEST_TEST_PATH),1),n[2]||(n[2]=dt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):je("",!0),t.error.VITEST_TEST_NAME?(se(),ye("div",gye,[n[3]||(n[3]=dt(" The latest test that might've caused the error is ",-1)),te("span",mye,Re(t.error.VITEST_TEST_NAME),1),n[4]||(n[4]=dt(". It might mean one of the following:",-1)),n[5]||(n[5]=te("br",null,null,-1)),n[6]||(n[6]=te("ul",null,[te("li",null," The error was thrown, while Vitest was running this test. "),te("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):je("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(se(),ye("div",vye,n[7]||(n[7]=[dt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:",-1),te("br",null,null,-1),te("ul",null,[te("li",null," Cancel timeouts using clearTimeout and clearInterval. "),te("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):je("",!0)],64)}}}),bye={"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:""},wye={class:"number","data-testid":"num-files"},xye={class:"number"},Sye={class:"number","text-red5":""},_ye={class:"number","text-red5":""},kye={class:"number","text-red5":""},Tye={class:"number","data-testid":"run-time"},Cye={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Eye={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Aye={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Lye=at({__name:"TestFilesEntry",setup(e){return(t,n)=>{const i=yye;return se(),ye(nt,null,[te("div",bye,[n[8]||(n[8]=te("div",{"i-carbon-document":""},null,-1)),n[9]||(n[9]=te("div",null,"Files",-1)),te("div",wye,Re(j(Ae).summary.files),1),j(Ae).summary.filesSuccess?(se(),ye(nt,{key:0},[n[0]||(n[0]=te("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=te("div",null,"Pass",-1)),te("div",xye,Re(j(Ae).summary.filesSuccess),1)],64)):je("",!0),j(Ae).summary.filesFailed?(se(),ye(nt,{key:1},[n[2]||(n[2]=te("div",{"i-carbon-close":""},null,-1)),n[3]||(n[3]=te("div",null," Fail ",-1)),te("div",Sye,Re(j(Ae).summary.filesFailed),1)],64)):je("",!0),j(Ae).summary.filesSnapshotFailed?(se(),ye(nt,{key:2},[n[4]||(n[4]=te("div",{"i-carbon-compare":""},null,-1)),n[5]||(n[5]=te("div",null," Snapshot Fail ",-1)),te("div",_ye,Re(j(Ae).summary.filesSnapshotFailed),1)],64)):je("",!0),j(Qi).length?(se(),ye(nt,{key:3},[n[6]||(n[6]=te("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[7]||(n[7]=te("div",null," Errors ",-1)),te("div",kye,Re(j(Qi).length),1)],64)):je("",!0),n[10]||(n[10]=te("div",{"i-carbon-timer":""},null,-1)),n[11]||(n[11]=te("div",null,"Time",-1)),te("div",Tye,Re(j(Ae).summary.time),1)]),j(Qi).length?(se(),ye("div",Cye,[n[15]||(n[15]=te("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),te("p",Eye,[dt(" Vitest caught "+Re(j(Qi).length)+" error"+Re(j(Qi).length>1?"s":"")+" during the test run.",1),n[12]||(n[12]=te("br",null,null,-1)),n[13]||(n[13]=dt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),te("details",Aye,[n[14]||(n[14]=te("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(se(!0),ye(nt,null,hr(j(Qi),(s,l)=>(se(),Ye(i,{key:l,error:s},null,8,["error"]))),128))])])):je("",!0)],64)}}}),$ye=ni(Lye,[["__scopeId","data-v-0178ddee"]]),Mye={"p-2":"","text-center":"",flex:""},Nye={"text-4xl":"","min-w-2em":""},Iye={"text-md":""},Pye=at({__name:"DashboardEntry",setup(e){return(t,n)=>(se(),ye("div",Mye,[te("div",null,[te("div",Nye,[xn(t.$slots,"body")]),te("div",Iye,[xn(t.$slots,"header")])])]))}}),Oye={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Rye=at({__name:"TestsEntry",setup(e){return(t,n)=>{const i=Pye;return se(),ye("div",Oye,[Ie(i,{"text-green5":"","data-testid":"pass-entry"},{header:it(()=>n[0]||(n[0]=[dt(" Pass ",-1)])),body:it(()=>[dt(Re(j(Ae).summary.testsSuccess),1)]),_:1}),Ie(i,{class:ot({"text-red5":j(Ae).summary.testsFailed,op50:!j(Ae).summary.testsFailed}),"data-testid":"fail-entry"},{header:it(()=>n[1]||(n[1]=[dt(" Fail ",-1)])),body:it(()=>[dt(Re(j(Ae).summary.testsFailed),1)]),_:1},8,["class"]),j(Ae).summary.testsSkipped?(se(),Ye(i,{key:0,op50:"","data-testid":"skipped-entry"},{header:it(()=>n[2]||(n[2]=[dt(" Skip ",-1)])),body:it(()=>[dt(Re(j(Ae).summary.testsSkipped),1)]),_:1})):je("",!0),j(Ae).summary.testsTodo?(se(),Ye(i,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>n[3]||(n[3]=[dt(" Todo ",-1)])),body:it(()=>[dt(Re(j(Ae).summary.testsTodo),1)]),_:1})):je("",!0),Ie(i,{tail:!0,"data-testid":"total-entry"},{header:it(()=>n[4]||(n[4]=[dt(" Total ",-1)])),body:it(()=>[dt(Re(j(Ae).summary.totalTests),1)]),_:1})])}}}),zye={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Dye={key:0,class:"text-gray-5"},Fye={"aria-labelledby":"tests",m:"y-4 x-2"},Hye=at({__name:"TestsFilesContainer",setup(e){return(t,n)=>{const i=Rye,s=$ye;return se(),ye("div",zye,[j(Ae).summary.files===0&&j(Ms)?(se(),ye("div",Dye," No tests found ")):je("",!0),te("section",Fye,[Ie(i)]),Ie(s)])}}}),Bye={},Wye={h:"full",flex:"~ col"},jye={class:"scrolls","flex-auto":"","py-1":""};function qye(e,t){const n=Hye;return se(),ye("div",Wye,[t[0]||(t[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon-dashboard"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),te("div",jye,[Ie(n)])])}const Uye=ni(Bye,[["render",qye]]),Vye=["open"],Gye=at({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(n,i)=>(se(),ye("div",{open:j(t),class:"details-panel","data-testid":"details-panel",onToggle:i[0]||(i[0]=s=>t.value=s.target.open)},[te("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(n.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[i[1]||(i[1]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),xn(n.$slots,"summary",{open:j(t)}),i[2]||(i[2]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),xn(n.$slots,"default")],40,Vye))}}),Xye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Kye={__name:"IconAction",props:{icon:String},setup(e){return(t,n)=>(se(),ye("button",Xye,[te("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Jye=["aria-label","data-current"],Yye={key:1,"w-4":""},Zye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Qye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ebe={"text-sm":"",truncate:"","font-light":""},tbe=["text","innerHTML"],nbe={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},rbe={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},ibe={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},obe={key:1},sbe=at({__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=_e(()=>ht.state.idMap.get(e.taskId)),n=_e(()=>{if(pr)return!1;const C=t.value;return C&&Ip(C)});function i(){var C;if(!e.expandable){(C=e.onItemClick)==null||C.call(e,t.value);return}e.opened?Ae.collapseNode(e.taskId):Ae.expandNode(e.taskId)}async function s(C){var E;(E=e.onItemClick)==null||E.call(e,C),Is.value&&(Nu.value=!0,await Et()),e.type==="file"?await zp([C.file]):await Jfe(C)}function l(C){return ht.rpc.updateSnapshot(C.file)}const u=_e(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),f=_e(()=>{const C=u.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=_e(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=_e(()=>zx(e.name)),g=_e(()=>{const C=uM.value,E=p.value;return C?E.replace(C,N=>`<span class="highlight">${N}</span>`):E}),v=_e(()=>e.type!=="file"&&e.disableTaskLocation),y=_e(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=_e(()=>v.value?"color-red5 dark:color-#f43f5e":null);function L(){var E;const C=t.value;e.type==="file"?(E=e.onItemClick)==null||E.call(e,C):Nde(C)}const $=_e(()=>Hx(e.projectNameColor));return(C,E)=>{const N=rS,O=Kye,k=ri,z=Dr("tooltip");return j(t)?(se(),ye("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:tn(j(f)),"aria-label":C.name,"data-current":C.current,onClick:E[2]||(E[2]=D=>i())},[C.indent>0?(se(!0),ye(nt,{key:0},hr(j(u),D=>(se(),ye("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):je("",!0),C.type==="file"||C.type==="suite"?(se(),ye("div",Yye,[te("div",{class:ot(C.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):je("",!0),Ie(N,{state:C.state,mode:j(t).mode,"failed-snapshot":j(n),"w-4":""},null,8,["state","mode","failed-snapshot"]),te("div",Zye,[C.type==="file"&&C.typecheck?ct((se(),ye("div",Qye,null,512)),[[z,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):je("",!0),te("span",ebe,[C.type==="file"&&C.projectName?(se(),ye("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:tn({backgroundColor:C.projectNameColor,color:j($)})},Re(C.projectName),5)):je("",!0),te("span",{text:C.state==="fail"?"red-500":"",innerHTML:j(g)},null,8,tbe)]),typeof C.duration=="number"?(se(),ye("span",nbe,Re(C.duration>0?C.duration:"< 1")+"ms ",1)):je("",!0)]),te("div",rbe,[!j(pr)&&j(n)?ct((se(),Ye(O,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Qc(D=>l(j(t)),["prevent","stop"]))},null,512)),[[z,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):je("",!0),Ie(j(jw),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",j(w)])},{popper:it(()=>[j(v)?(se(),ye("div",ibe,[E[5]||(E[5]=te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),te("div",null,[dt(Re(j(y))+": this feature is not available, you have disabled ",1),E[3]||(E[3]=te("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=dt(" in your configuration file.",-1))]),E[6]||(E[6]=te("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))])):(se(),ye("div",obe,Re(j(y)),1))]),default:it(()=>[Ie(k,{"data-testid":"btn-open-details",icon:C.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Qc(L,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),j(pr)?je("",!0):ct((se(),Ye(k,{key:1,"data-testid":"btn-run-test",title:j(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:E[1]||(E[1]=Qc(D=>s(j(t)),["prevent","stop"]))},null,8,["title"])),[[z,j(h),void 0,{bottom:!0}]])])],12,Jye)):je("",!0)}}}),lbe=ni(sbe,[["__scopeId","data-v-5b954324"]]),abe={"flex-1":"","ms-2":"","select-none":""},cbe=at({__name:"FilterStatus",props:ma({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ef(e,"modelValue");return(n,i)=>(se(),ye("label",_i({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},n.$attrs,{onClick:i[1]||(i[1]=Qc(s=>t.value=!t.value,["prevent"]))}),[te("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(te("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[ww,t.value]]),te("span",abe,Re(n.label),1)],16))}});function ube(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let au;function qh(){qh.init||(qh.init=!0,au=ube()!==-1)}var vf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){qh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",au&&this.$el.appendChild(e),e.data="about:blank",au||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&&(!au&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const fbe=Ib();Mb("data-v-b329ee4c");const dbe={class:"resize-observer",tabindex:"-1"};Nb();const hbe=fbe((e,t,n,i,s,l)=>(se(),Ye("div",dbe)));vf.render=hbe;vf.__scopeId="data-v-b329ee4c";vf.__file="src/components/ResizeObserver.vue";function cu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cu=function(t){return typeof t}:cu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function pbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gbe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function mbe(e,t,n){return t&&gbe(e.prototype,t),e}function Iy(e){return vbe(e)||ybe(e)||bbe(e)||wbe()}function vbe(e){if(Array.isArray(e))return Uh(e)}function ybe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bbe(e,t){if(e){if(typeof e=="string")return Uh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uh(e,t)}}function Uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function wbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xbe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Sbe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(l=g,!(i&&h===s)){var y=n.leading;typeof y=="function"&&(y=y(h,s)),(!i||h!==s)&&y&&e.apply(void 0,[h].concat(Iy(l))),s=h,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[h].concat(Iy(l))),i=0},t)}};return u._clear=function(){clearTimeout(i),i=null},u}function iS(e,t){if(e===t)return!0;if(cu(e)==="object"){for(var n in e)if(!iS(e[n],t[n]))return!1;return!0}return!1}var _be=function(){function e(t,n,i){pbe(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return mbe(e,[{key:"createObserver",value:function(n,i){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=xbe(n),this.callback=function(f,h){s.options.callback(f,h),f&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},u=l.leading;this.callback=Sbe(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var h=f[0];if(f.length>1){var p=f.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(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 oS(e,t,n){var i=t.value;if(i)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 _be(e,i,n);e._vue_visibilityState=s}}function kbe(e,t,n){var i=t.value,s=t.oldValue;if(!iS(i,s)){var l=e._vue_visibilityState;if(!i){sS(e);return}l?l.createObserver(i,n):oS(e,{value:i},n)}}function sS(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Tbe={beforeMount:oS,updated:kbe,unmounted:sS},Cbe={itemsLimit:1e3},Ebe=/(auto|scroll)/;function lS(e,t){return e.parentNode===null?t:lS(e.parentNode,t.concat([e]))}var Gd=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Abe=function(t){return Gd(t,"overflow")+Gd(t,"overflow-y")+Gd(t,"overflow-x")},Lbe=function(t){return Ebe.test(Abe(t))};function Py(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=lS(e.parentNode,[]),n=0;n<t.length;n+=1)if(Lbe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Vh(e){"@babel/helpers - typeof";return Vh=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},Vh(e)}var $be={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 Mbe(){return this.items.length&&Vh(this.items[0])!=="object"}var Gh=!1;if(typeof window<"u"){Gh=!1;try{var Nbe=Object.defineProperty({},"passive",{get:function(){Gh=!0}});window.addEventListener("test",null,Nbe)}catch{}}let Ibe=0;var Jp={name:"RecycleScroller",components:{ResizeObserver:vf},directives:{ObserveVisibility:Tbe},props:{...$be,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,n=this.sizeField,i=this.minItemSize;let s=1e4,l=0,u;for(let f=0,h=t.length;f<h;f++)u=t[f][n]||i,u<s&&(s=u),l+=u,e[f]={accumulator:l,size:u};return this.$_computedMinItemSize=s,e}return[]},simpleArray:Mbe,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,s=t.length;i<s;i++)n[t[i][e]]=i;return n}},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,n,i,s){const l=ap({id:Ibe++,index:t,used:!0,key:i,type:s}),u=op({item:n,position:0,nr:l});return e.push(u),u},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let s=n.get(i);s||(s=[],n.set(i,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:n}=this.updateVisibleItems(!1,!0);n||(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 n=this.itemSize,i=this.gridItems||1,s=this.itemSecondarySize||n,l=this.$_computedMinItemSize,u=this.typeField,f=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,y=this.$_unusedViews,w=this.pool,L=this.itemIndexByKey;let $,C,E,N,O;if(!p)$=C=N=O=E=0;else if(this.$_prerender)$=N=0,C=O=Math.min(this.prerender,h.length),E=null;else{const q=this.getScroll();if(t){let I=q.start-this.$_lastUpdateScrollPosition;if(I<0&&(I=-I),n===null&&I<l||I<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=q.start;const U=this.buffer;q.start-=U,q.end+=U;let A=0;if(this.$refs.before&&(A=this.$refs.before.scrollHeight,q.start-=A),this.$refs.after){const I=this.$refs.after.scrollHeight;q.end+=I}if(n===null){let I,P=0,S=p-1,R=~~(p/2),B;do B=R,I=g[R].accumulator,I<q.start?P=R:R<p-1&&g[R+1].accumulator>q.start&&(S=R),R=~~((P+S)/2);while(R!==B);for(R<0&&(R=0),$=R,E=g[p-1].accumulator,C=R;C<p&&g[C].accumulator<q.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),N=$;N<p&&A+g[N].accumulator<q.start;N++);for(O=N;O<p&&A+g[O].accumulator<q.end;O++);}else{$=~~(q.start/n*i);const I=$%i;$-=I,C=Math.ceil(q.end/n*i),N=Math.max(0,Math.floor((q.start-A)/n*i)),O=Math.floor((q.end-A)/n*i),$<0&&($=0),C>p&&(C=p),N<0&&(N=0),O>p&&(O=p),E=Math.ceil(p/i)*n}}C-$>Cbe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let k;const z=$<=this.$_endIndex&&C>=this.$_startIndex;if(z)for(let q=0,U=w.length;q<U;q++)k=w[q],k.nr.used&&(e&&(k.nr.index=L[k.item[f]]),(k.nr.index==null||k.nr.index<$||k.nr.index>=C)&&this.unuseView(k));const D=z?null:new Map;let oe,Q,W;for(let q=$;q<C;q++){oe=h[q];const U=f?oe[f]:oe;if(U==null)throw new Error(`Key is ${U} on item (keyField is '${f}')`);if(k=v.get(U),!n&&!g[q].size){k&&this.unuseView(k);continue}Q=oe[u];let A=y.get(Q),I=!1;if(!k)z?A&&A.length?k=A.pop():k=this.addView(w,q,oe,U,Q):(W=D.get(Q)||0,(!A||W>=A.length)&&(k=this.addView(w,q,oe,U,Q),this.unuseView(k,!0),A=y.get(Q)),k=A[W],D.set(Q,W+1)),v.delete(k.nr.key),k.nr.used=!0,k.nr.index=q,k.nr.key=U,k.nr.type=Q,v.set(U,k),I=!0;else if(!k.nr.used&&(k.nr.used=!0,I=!0,A)){const P=A.indexOf(k);P!==-1&&A.splice(P,1)}k.item=oe,I&&(q===h.length-1&&this.$emit("scroll-end"),q===0&&this.$emit("scroll-start")),n===null?(k.position=g[q-1].accumulator,k.offset=0):(k.position=Math.floor(q/i)*n,k.offset=q%i*s)}return this.$_startIndex=$,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",$,C,N,O),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=Py(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const s=e.getBoundingClientRect(),l=n?s.height:s.width;let u=-(n?s.top:s.left),f=n?window.innerHeight:window.innerWidth;u<0&&(f+=u,u=0),u+f>l&&(f=l-u),i={start:u,end:u+f}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Gh?{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 n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,s;if(this.pageMode){const l=Py(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,i=t.scroll,s=e+u+p}else n=this.$el,i=t.scroll,s=e;n[i]=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 Pbe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Obe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Rbe(e,t,n,i,s,l){const u=Ko("ResizeObserver"),f=Dr("observe-visibility");return ct((se(),ye("div",{class:ot(["vue-recycle-scroller",{ready:s.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(se(),ye("div",Pbe,[xn(e.$slots,"before")],512)):je("v-if",!0),(se(),Ye(ih(n.listTag),{ref:"wrapper",style:tn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:it(()=>[(se(!0),ye(nt,null,hr(s.pool,h=>(se(),Ye(ih(n.itemTag),_i({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:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&s.hoverKey===h.nr.key}]]},$T(n.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[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?(se(),ye("div",Obe,[xn(e.$slots,"after")],512)):je("v-if",!0),Ie(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}Jp.render=Rbe;Jp.__file="src/components/RecycleScroller.vue";function zbe(e){const t=_e(()=>Eh.value?!1:!et.onlyTests),n=_e(()=>Un.value===""),i=Ue(Un.value);$p(()=>Un.value,h=>{i.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Un.value="",h&&((p=e.value)==null||p.focus())}function l(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function u(){l(!1),s(!0)}function f(h,p,g,v,y){Qs.value&&(dn.value.search=(h==null?void 0:h.trim())??"",dn.value.failed=p,dn.value.success=g,dn.value.skipped=v,dn.value.onlyTests=y)}return St(()=>[i.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,g,v,y])=>{f(h,p,g,v,y),Ae.filterNodes()},{flush:"post"}),St(()=>Rr.value.length,h=>{h&&(dn.value.expandAll=void 0)},{flush:"post"}),{initialized:Qs,filter:et,search:Un,disableFilter:t,isFiltered:Dx,isFilteredByStatus:Eh,disableClearSearch:n,clearAll:u,clearSearch:s,clearFilter:l,filteredFiles:ff,testsTotal:fM,uiEntries:Jn}}const Dbe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Fbe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Hbe=["op"],Bbe={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Wbe={"text-red5":""},jbe={"text-yellow5":""},qbe={"text-green5":""},Ube={class:"text-purple5:50"},Vbe={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Gbe=["disabled"],Xbe=["disabled"],Kbe={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Jbe=at({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,i=_e(()=>tl.value.includeTaskLocation),s=Ue(),{initialized:l,filter:u,search:f,disableFilter:h,isFiltered:p,isFilteredByStatus:g,disableClearSearch:v,clearAll:y,clearSearch:w,clearFilter:L,filteredFiles:$,testsTotal:C,uiEntries:E}=zbe(s),N=Ue("grid-cols-2"),O=Ue("grid-col-span-2"),k=Ue();return Ox(()=>k.value,([{contentRect:z}])=>{z.width<420?(N.value="grid-cols-2",O.value="grid-col-span-2"):(N.value="grid-cols-4",O.value="grid-col-span-4")}),(z,D)=>{const oe=ri,Q=cbe,W=lbe,q=Gye,U=Dr("tooltip");return se(),ye("div",{ref_key:"testExplorerRef",ref:k,h:"full",flex:"~ col"},[te("div",null,[te("div",Dbe,[xn(z.$slots,"header",{filteredFiles:j(p)||j(g)?j($):void 0})]),te("div",Fbe,[D[13]||(D[13]=te("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(te("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":D[0]||(D[0]=A=>kt(f)?f.value=A:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:j(f).length?"100":"50",onKeydown:[D[1]||(D[1]=hh(A=>j(w)(!1),["esc"])),D[2]||(D[2]=hh(A=>n("run",j(p)||j(g)?j($):void 0),["enter"]))]},null,40,Hbe),[[XC,j(f)]]),ct(Ie(oe,{disabled:j(v),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:D[3]||(D[3]=A=>j(w)(!0))},null,8,["disabled"]),[[U,"Clear search",void 0,{bottom:!0}]])]),te("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(j(N))},[te("div",{class:ot(j(O)),flex:"~ gap-2 items-center"},[D[14]||(D[14]=te("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),D[15]||(D[15]=te("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Ie(oe,{disabled:j(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:D[4]||(D[4]=A=>j(L)(!1))},null,8,["disabled"]),[[U,"Clear Filter",void 0,{bottom:!0}]])],2),Ie(Q,{modelValue:j(u).failed,"onUpdate:modelValue":D[5]||(D[5]=A=>j(u).failed=A),label:"Fail"},null,8,["modelValue"]),Ie(Q,{modelValue:j(u).success,"onUpdate:modelValue":D[6]||(D[6]=A=>j(u).success=A),label:"Pass"},null,8,["modelValue"]),Ie(Q,{modelValue:j(u).skipped,"onUpdate:modelValue":D[7]||(D[7]=A=>j(u).skipped=A),label:"Skip"},null,8,["modelValue"]),Ie(Q,{modelValue:j(u).onlyTests,"onUpdate:modelValue":D[8]||(D[8]=A=>j(u).onlyTests=A),label:"Only Tests"},null,8,["modelValue"])],2)]),te("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:D[12]||(D[12]=(...A)=>j(Yv)&&j(Yv)(...A))},[Ie(q,null,LT({default:it(()=>[(j(p)||j(g))&&j(E).length===0?(se(),ye(nt,{key:0},[j(l)?(se(),ye("div",Vbe,[D[18]||(D[18]=te("div",{op30:""}," No matched test ",-1)),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(j(v)?null:"hover:op100"),disabled:j(v),onClickPassive:D[9]||(D[9]=A=>j(w)(!0))}," Clear Search ",42,Gbe),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(j(h)?null:"hover:op100"),disabled:j(h),onClickPassive:D[10]||(D[10]=A=>j(L)(!0))}," Clear Filter ",42,Xbe),te("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:D[11]||(D[11]=(...A)=>j(y)&&j(y)(...A))}," Clear All ",32)])):(se(),ye("div",Kbe,D[19]||(D[19]=[te("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),te("div",{op30:""}," Loading... ",-1)])))],64)):(se(),Ye(j(Jp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:j(E),buffer:100},{default:it(({item:A})=>[Ie(W,{class:ot(["h-28px m-0 p-0",j(vo)===A.id?"bg-active":""]),"task-id":A.id,expandable:A.expandable,type:A.type,current:j(vo)===A.id,indent:A.indent,name:A.name,typecheck:A.typecheck===!0,"project-name":A.projectName??"","project-name-color":A.projectNameColor??"",state:A.state,duration:A.duration,opened:A.expanded,"disable-task-location":!j(i),"on-item-click":z.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},[j(l)?{name:"summary",fn:it(()=>[te("div",Bbe,[te("span",Wbe," FAIL ("+Re(j(C).failed)+") ",1),D[16]||(D[16]=te("span",null,"/",-1)),te("span",jbe," RUNNING ("+Re(j(C).running)+") ",1),te("span",qbe," PASS ("+Re(j(C).success)+") ",1),D[17]||(D[17]=te("span",null,"/",-1)),te("span",Ube," SKIP ("+Re(j(u).onlyTests?j(C).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Ybe=""+new URL("../favicon.svg",import.meta.url).href,Zbe={class:"flex text-lg"},Qbe=at({__name:"Navigation",setup(e){function t(){return ht.rpc.updateSnapshot()}const n=_e(()=>al.value?"light":"dark");async function i(u){Is.value&&(Nu.value=!0,await Et(),yo.value&&(Iu(!0),await Et())),u!=null&&u.length?await zp(u):await Xfe()}function s(){Ae.collapseAllNodes()}function l(){Ae.expandAllNodes()}return(u,f)=>{const h=ri,p=Jbe,g=Dr("tooltip");return se(),Ye(p,{border:"r base","on-item-click":j(BM),nested:!0,onRun:i},{header:it(({filteredFiles:v})=>[f[8]||(f[8]=te("img",{"w-6":"","h-6":"",src:Ybe,alt:"Vitest logo"},null,-1)),f[9]||(f[9]=te("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),te("div",Zbe,[ct(Ie(h,{title:"Collapse tests",disabled:!j(Qs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:f[0]||(f[0]=y=>s())},null,8,["disabled"]),[[no,!j(D0)],[g,"Collapse tests",void 0,{bottom:!0}]]),ct(Ie(h,{disabled:!j(Qs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:f[1]||(f[1]=y=>l())},null,8,["disabled"]),[[no,j(D0)],[g,"Expand tests",void 0,{bottom:!0}]]),ct(Ie(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:f[2]||(f[2]=y=>j(Iu)(!0))},null,512),[[no,j($h)&&!j(Is)||!j(Us)],[g,"Dashboard",void 0,{bottom:!0}]]),j($h)&&!j(Is)?(se(),Ye(j(jw),{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:it(()=>f[6]||(f[6]=[te("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),te("div",null,"Coverage enabled but missing html reporter."),te("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:it(()=>[f[7]||(f[7]=te("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1,__:[7]})):je("",!0),j(Is)?ct((se(),Ye(h,{key:1,disabled:j(Nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:f[3]||(f[3]=y=>j(WM)())},null,8,["disabled"])),[[no,!j(yo)],[g,"Coverage",void 0,{bottom:!0}]]):je("",!0),j(Ae).summary.failedSnapshot&&!j(pr)?ct((se(),Ye(h,{key:2,icon:"i-carbon:result-old",disabled:!j(Ae).summary.failedSnapshotEnabled,onClick:f[4]||(f[4]=y=>j(Ae).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):je("",!0),j(pr)?je("",!0):ct((se(),Ye(h,{key:3,disabled:(v==null?void 0:v.length)===0,icon:"i-carbon:play",onClick:y=>i(v)},null,8,["disabled","onClick"])),[[g,v?v.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ct(Ie(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:f[5]||(f[5]=y=>j(Ode)())},null,512),[[g,`Toggle to ${j(n)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),ewe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},twe=at({__name:"ProgressBar",setup(e){const{width:t}=Rx(),n=_e(()=>[Ae.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ms.value&&"in-progress"].filter(Boolean).join(" ")),i=_e(()=>{const f=Ae.summary.files;return f>0?t.value*Ae.summary.filesSuccess/f:0}),s=_e(()=>{const f=Ae.summary.files;return f>0?t.value*Ae.summary.filesFailed/f:0}),l=_e(()=>Ae.summary.files-Ae.summary.filesFailed-Ae.summary.filesSuccess),u=_e(()=>{const f=Ae.summary.files;return f>0?t.value*l.value/f:0});return(f,h)=>(se(),ye("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:ot(j(n))},[te("div",ewe,[te("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(j(n)),style:tn(`width: ${j(s)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(j(n)),style:tn(`left: ${j(s)}px; width: ${j(i)}px;`)},"   ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(j(n)),style:tn(`left: ${j(i)+j(s)}px; width: ${j(u)}px;`)},"   ",6)])],2))}}),nwe=ni(twe,[["__scopeId","data-v-16879415"]]),Oy={__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 n=t,i=e,s=NT(),l=Ue([]),u=_e(()=>l.value.reduce((re,V)=>(re[~~V.id]=V)&&re,{})),f=_e(()=>l.value.length),h=Ue(null),p=Ue(!1),g=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ue({splitter:null,timeoutId:null}),y=_e(()=>({[`splitpanes splitpanes--${i.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",C,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",E))},L=()=>{document.removeEventListener("mousemove",C,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",C,{passive:!1}),document.removeEventListener("touchend",E))},$=(re,V)=>{const ee=re.target.closest(".splitpanes__splitter");if(ee){const{left:J,top:ae}=ee.getBoundingClientRect(),{clientX:ge,clientY:F}="ontouchstart"in window&&re.touches?re.touches[0]:re;g.value.cursorOffset=i.horizontal?F-ae:ge-J}w(),g.value.mouseDown=!0,g.value.activeSplitter=V},C=re=>{g.value.mouseDown&&(re.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{oe(z(re)),n("resize",l.value.map(V=>({min:V.min,max:V.max,size:V.size})))}))},E=()=>{g.value.dragging&&n("resized",l.value.map(re=>({min:re.min,max:re.max,size:re.size}))),g.value.mouseDown=!1,setTimeout(()=>{g.value.dragging=!1,L()},100)},N=(re,V)=>{"ontouchstart"in window&&(re.preventDefault(),i.dblClickSplitter&&(v.value.splitter===V?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,O(re,V),v.value.splitter=null):(v.value.splitter=V,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500)))),g.value.dragging||n("splitter-click",l.value[V])},O=(re,V)=>{let ee=0;l.value=l.value.map((J,ae)=>(J.size=ae===V?J.max:J.min,ae!==V&&(ee+=J.min),J)),l.value[V].size-=ee,n("pane-maximize",l.value[V]),n("resized",l.value.map(J=>({min:J.min,max:J.max,size:J.size})))},k=(re,V)=>{n("pane-click",u.value[V])},z=re=>{const V=h.value.getBoundingClientRect(),{clientX:ee,clientY:J}="ontouchstart"in window&&re.touches?re.touches[0]:re;return{x:ee-(i.horizontal?0:g.value.cursorOffset)-V.left,y:J-(i.horizontal?g.value.cursorOffset:0)-V.top}},D=re=>{re=re[i.horizontal?"y":"x"];const V=h.value[i.horizontal?"clientHeight":"clientWidth"];return i.rtl&&!i.horizontal&&(re=V-re),re*100/V},oe=re=>{const V=g.value.activeSplitter;let ee={prevPanesSize:W(V),nextPanesSize:q(V),prevReachedMinPanes:0,nextReachedMinPanes:0};const J=0+(i.pushOtherPanes?0:ee.prevPanesSize),ae=100-(i.pushOtherPanes?0:ee.nextPanesSize),ge=Math.max(Math.min(D(re),ae),J);let F=[V,V+1],G=l.value[F[0]]||null,Y=l.value[F[1]]||null;const fe=G.max<100&&ge>=G.max+ee.prevPanesSize,pe=Y.max<100&&ge<=100-(Y.max+q(V+1));if(fe||pe){fe?(G.size=G.max,Y.size=Math.max(100-G.max-ee.prevPanesSize-ee.nextPanesSize,0)):(G.size=Math.max(100-Y.max-ee.prevPanesSize-q(V+1),0),Y.size=Y.max);return}if(i.pushOtherPanes){const he=Q(ee,ge);if(!he)return;({sums:ee,panesToResize:F}=he),G=l.value[F[0]]||null,Y=l.value[F[1]]||null}G!==null&&(G.size=Math.min(Math.max(ge-ee.prevPanesSize-ee.prevReachedMinPanes,G.min),G.max)),Y!==null&&(Y.size=Math.min(Math.max(100-ge-ee.nextPanesSize-ee.nextReachedMinPanes,Y.min),Y.max))},Q=(re,V)=>{const ee=g.value.activeSplitter,J=[ee,ee+1];return V<re.prevPanesSize+l.value[J[0]].min&&(J[0]=U(ee).index,re.prevReachedMinPanes=0,J[0]<ee&&l.value.forEach((ae,ge)=>{ge>J[0]&&ge<=ee&&(ae.size=ae.min,re.prevReachedMinPanes+=ae.min)}),re.prevPanesSize=W(J[0]),J[0]===void 0)?(re.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((ae,ge)=>{ge>0&&ge<=ee&&(ae.size=ae.min,re.prevReachedMinPanes+=ae.min)}),l.value[J[1]].size=100-re.prevReachedMinPanes-l.value[0].min-re.prevPanesSize-re.nextPanesSize,null):V>100-re.nextPanesSize-l.value[J[1]].min&&(J[1]=A(ee).index,re.nextReachedMinPanes=0,J[1]>ee+1&&l.value.forEach((ae,ge)=>{ge>ee&&ge<J[1]&&(ae.size=ae.min,re.nextReachedMinPanes+=ae.min)}),re.nextPanesSize=q(J[1]-1),J[1]===void 0)?(re.nextReachedMinPanes=0,l.value.forEach((ae,ge)=>{ge<f.value-1&&ge>=ee+1&&(ae.size=ae.min,re.nextReachedMinPanes+=ae.min)}),l.value[J[0]].size=100-re.prevPanesSize-q(J[0]-1),null):{sums:re,panesToResize:J}},W=re=>l.value.reduce((V,ee,J)=>V+(J<re?ee.size:0),0),q=re=>l.value.reduce((V,ee,J)=>V+(J>re+1?ee.size:0),0),U=re=>[...l.value].reverse().find(V=>V.index<re&&V.size>V.min)||{},A=re=>l.value.find(V=>V.index>re+1&&V.size>V.min)||{},I=()=>{var re;Array.from(((re=h.value)==null?void 0:re.children)||[]).forEach(V=>{const ee=V.classList.contains("splitpanes__pane"),J=V.classList.contains("splitpanes__splitter");!ee&&!J&&(V.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},P=(re,V,ee=!1)=>{const J=re-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),ee||(ae.onmousedown=ge=>$(ge,J),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=ge=>$(ge,J)),ae.onclick=ge=>N(ge,J+1)),i.dblClickSplitter&&(ae.ondblclick=ge=>O(ge,J+1)),V.parentNode.insertBefore(ae,V)},S=re=>{re.onmousedown=void 0,re.onclick=void 0,re.ondblclick=void 0,re.remove()},R=()=>{var re;const V=Array.from(((re=h.value)==null?void 0:re.children)||[]);V.forEach(J=>{J.className.includes("splitpanes__splitter")&&S(J)});let ee=0;V.forEach(J=>{J.className.includes("splitpanes__pane")&&(!ee&&i.firstSplitter?P(ee,J,!0):ee&&P(ee,J),ee++)})},B=({uid:re,...V})=>{const ee=u.value[re];Object.entries(V).forEach(([J,ae])=>ee[J]=ae)},ie=re=>{var V;let ee=-1;Array.from(((V=h.value)==null?void 0:V.children)||[]).some(J=>(J.className.includes("splitpanes__pane")&&ee++,J.isSameNode(re.el))),l.value.splice(ee,0,{...re,index:ee}),l.value.forEach((J,ae)=>J.index=ae),p.value&&Et(()=>{R(),we({addedPane:l.value[ee]}),n("pane-add",{index:ee,panes:l.value.map(J=>({min:J.min,max:J.max,size:J.size}))})})},ue=re=>{const V=l.value.findIndex(J=>J.id===re),ee=l.value.splice(V,1)[0];l.value.forEach((J,ae)=>J.index=ae),Et(()=>{R(),we({removedPane:{...ee}}),n("pane-remove",{removed:ee,panes:l.value.map(J=>({min:J.min,max:J.max,size:J.size}))})})},we=(re={})=>{!re.addedPane&&!re.removedPane?qe():l.value.some(V=>V.givenSize!==null||V.min||V.max<100)?Ze(re):Pe(),p.value&&n("resized",l.value.map(V=>({min:V.min,max:V.max,size:V.size})))},Pe=()=>{const re=100/f.value;let V=0;const ee=[],J=[];l.value.forEach(ae=>{ae.size=Math.max(Math.min(re,ae.max),ae.min),V-=ae.size,ae.size>=ae.max&&ee.push(ae.id),ae.size<=ae.min&&J.push(ae.id)}),V>.1&&Ke(V,ee,J)},qe=()=>{let re=100;const V=[],ee=[];let J=0;l.value.forEach(ge=>{re-=ge.size,ge.givenSize!==null&&J++,ge.size>=ge.max&&V.push(ge.id),ge.size<=ge.min&&ee.push(ge.id)});let ae=100;re>.1&&(l.value.forEach(ge=>{ge.givenSize===null&&(ge.size=Math.max(Math.min(re/(f.value-J),ge.max),ge.min)),ae-=ge.size}),ae>.1&&Ke(ae,V,ee))},Ze=({addedPane:re,removedPane:V}={})=>{let ee=100/f.value,J=0;const ae=[],ge=[];((re==null?void 0:re.givenSize)??null)!==null&&(ee=(100-re.givenSize)/(f.value-1).value),l.value.forEach(F=>{J-=F.size,F.size>=F.max&&ae.push(F.id),F.size<=F.min&&ge.push(F.id)}),!(Math.abs(J)<.1)&&(l.value.forEach(F=>{(re==null?void 0:re.givenSize)!==null&&(re==null?void 0:re.id)===F.id||(F.size=Math.max(Math.min(ee,F.max),F.min)),J-=F.size,F.size>=F.max&&ae.push(F.id),F.size<=F.min&&ge.push(F.id)}),J>.1&&Ke(J,ae,ge))},Ke=(re,V,ee)=>{let J;re>0?J=re/(f.value-V.length):J=re/(f.value-ee.length),l.value.forEach((ae,ge)=>{if(re>0&&!V.includes(ae.id)){const F=Math.max(Math.min(ae.size+J,ae.max),ae.min),G=F-ae.size;re-=G,ae.size=F}else if(!ee.includes(ae.id)){const F=Math.max(Math.min(ae.size+J,ae.max),ae.min),G=F-ae.size;re-=G,ae.size=F}}),Math.abs(re)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};St(()=>i.firstSplitter,()=>R()),St(()=>i.dblClickSplitter,re=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((V,ee)=>{V.ondblclick=re?J=>O(J,ee):void 0})}),Ba(()=>p.value=!1),wo(()=>{I(),R(),we(),n("ready"),p.value=!0});const Je=()=>{var re;return ja("div",{ref:h,class:y.value},(re=s.default)==null?void 0:re.call(s))};return Er("panes",l),Er("indexedPanes",u),Er("horizontal",_e(()=>i.horizontal)),Er("requestUpdate",B),Er("onPaneAdd",ie),Er("onPaneRemove",ue),Er("onPaneClick",k),(re,V)=>(se(),Ye(ih(Je)))}},Xc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,i=bn("requestUpdate"),s=bn("onPaneAdd"),l=bn("horizontal"),u=bn("onPaneRemove"),f=bn("onPaneClick"),h=(t=$i())==null?void 0:t.uid,p=bn("indexedPanes"),g=_e(()=>p.value[h]),v=Ue(null),y=_e(()=>{const C=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(C,L.value),w.value)}),w=_e(()=>{const C=parseFloat(n.minSize);return isNaN(C)?0:C}),L=_e(()=>{const C=parseFloat(n.maxSize);return isNaN(C)?100:C}),$=_e(()=>{var C;return`${l.value?"height":"width"}: ${(C=g.value)==null?void 0:C.size}%`});return wo(()=>{s({id:h,el:v.value,min:w.value,max:L.value,givenSize:n.size===void 0?null:y.value,size:y.value})}),St(()=>y.value,C=>i({uid:h,size:C})),St(()=>w.value,C=>i({uid:h,min:C})),St(()=>L.value,C=>i({uid:h,max:C})),Ba(()=>u(h)),(C,E)=>(se(),ye("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:E[0]||(E[0]=N=>j(f)(N,C._.uid)),style:tn($.value)},[xn(C.$slots,"default")],4))}},rwe={"h-screen":"","w-screen":"",overflow:"hidden"},iwe=at({__name:"index",setup(e){const t=HM(),n=Hc(g=>{h(),f(g)},0),i=Hc(g=>{g.forEach((v,y)=>{Vs.value[y]=v.size}),u(g),p()},0),s=Hc(g=>{g.forEach((v,y)=>{uo.value[y]=v.size}),f(g),p()},0),l=Hc(g=>{u(g),h()},0);function u(g){At.navigation=g[0].size,At.details.size=g[1].size}function f(g){At.details.browser=g[0].size,At.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>{const y=nwe,w=Qbe,L=Uye,$=lye,C=rye,E=ude,N=Qfe;return se(),ye(nt,null,[Ie(y),te("div",rwe,[Ie(j(Oy),{class:"pt-4px",onResized:j(i),onResize:j(l)},{default:it(()=>[Ie(j(Xc),{size:j(Vs)[0]},{default:it(()=>[Ie(w)]),_:1},8,["size"]),Ie(j(Xc),{size:j(Vs)[1]},{default:it(()=>[j(It)?(se(),Ye(j(Oy),{id:"details-splitpanes",key:"browser-detail",onResize:j(n),onResized:j(s)},{default:it(()=>[Ie(j(Xc),{size:j(uo)[0],"min-size":"10"},{default:it(()=>[v[0]||(vu(-1,!0),(v[0]=Ie(E)).cacheIndex=0,vu(1),v[0])]),_:1},8,["size"]),Ie(j(Xc),{size:j(uo)[1]},{default:it(()=>[j(t)?(se(),Ye(L,{key:"summary"})):j(yo)?(se(),Ye($,{key:"coverage",src:j(W0)},null,8,["src"])):(se(),Ye(C,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(se(),Ye(AC,{key:"ui-detail"},{default:it(()=>[j(t)?(se(),Ye(L,{key:"summary"})):j(yo)?(se(),Ye($,{key:"coverage",src:j(W0)},null,8,["src"])):(se(),Ye(C,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ie(N)],64)}}}),owe=[{name:"index",path:"/",component:iwe,props:!0}];/*!
54
54
  * vue-router v4.5.1
55
55
  * (c) 2025 Eduardo San Martin Morote
56
56
  * @license MIT
57
- */const Ls=typeof document<"u";function cS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function swe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cS(e.default)}const bt=Object.assign;function Xd(e,t){const n={};for(const i in t){const s=t[i];n[i]=zr(s)?s.map(e):e(s)}return n}const ca=()=>{},zr=Array.isArray,uS=/#/g,lwe=/&/g,awe=/\//g,cwe=/=/g,uwe=/\?/g,fS=/\+/g,fwe=/%5B/g,dwe=/%5D/g,dS=/%5E/g,hwe=/%60/g,hS=/%7B/g,pwe=/%7C/g,pS=/%7D/g,gwe=/%20/g;function Yp(e){return encodeURI(""+e).replace(pwe,"|").replace(fwe,"[").replace(dwe,"]")}function mwe(e){return Yp(e).replace(hS,"{").replace(pS,"}").replace(dS,"^")}function Xh(e){return Yp(e).replace(fS,"%2B").replace(gwe,"+").replace(uS,"%23").replace(lwe,"%26").replace(hwe,"`").replace(hS,"{").replace(pS,"}").replace(dS,"^")}function vwe(e){return Xh(e).replace(cwe,"%3D")}function ywe(e){return Yp(e).replace(uS,"%23").replace(uwe,"%3F")}function bwe(e){return e==null?"":ywe(e).replace(awe,"%2F")}function Pa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const wwe=/\/$/,xwe=e=>e.replace(wwe,"");function Kd(e,t,n="/"){let i,s={},l="",u="";const f=t.indexOf("#");let h=t.indexOf("?");return f<h&&f>=0&&(h=-1),h>-1&&(i=t.slice(0,h),l=t.slice(h+1,f>-1?f:t.length),s=e(l)),f>-1&&(i=i||t.slice(0,f),u=t.slice(f,t.length)),i=Twe(i??t,n),{fullPath:i+(l&&"?")+l+u,path:i,query:s,hash:Pa(u)}}function Swe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ry(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _we(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&rl(t.matched[i],n.matched[s])&&gS(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gS(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!kwe(e[n],t[n]))return!1;return!0}function kwe(e,t){return zr(e)?zy(e,t):zr(t)?zy(t,e):e===t}function zy(e,t){return zr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Twe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let l=n.length-1,u,f;for(u=0;u<i.length;u++)if(f=i[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+i.slice(u).join("/")}const Vi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Oa;(function(e){e.pop="pop",e.push="push"})(Oa||(Oa={}));var ua;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ua||(ua={}));function Cwe(e){if(!e)if(Ls){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xwe(e)}const Ewe=/^[^#]+#/;function Awe(e,t){return e.replace(Ewe,"#")+t}function Lwe(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const yf=()=>({left:window.scrollX,top:window.scrollY});function $we(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Lwe(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 Dy(e,t){return(history.state?history.state.position-t:-1)+e}const Kh=new Map;function Mwe(e,t){Kh.set(e,t)}function Nwe(e){const t=Kh.get(e);return Kh.delete(e),t}let Iwe=()=>location.protocol+"//"+location.host;function mS(e,t){const{pathname:n,search:i,hash:s}=t,l=e.indexOf("#");if(l>-1){let f=s.includes(e.slice(l))?e.slice(l).length:1,h=s.slice(f);return h[0]!=="/"&&(h="/"+h),Ry(h,"")}return Ry(n,e)+i+s}function Pwe(e,t,n,i){let s=[],l=[],u=null;const f=({state:y})=>{const w=mS(e,location),L=n.value,$=t.value;let C=0;if(y){if(n.value=w,t.value=y,u&&u===L){u=null;return}C=$?y.position-$.position:0}else i(w);s.forEach(E=>{E(n.value,L,{delta:C,type:Oa.pop,direction:C?C>0?ua.forward:ua.back:ua.unknown})})};function h(){u=n.value}function p(y){s.push(y);const w=()=>{const L=s.indexOf(y);L>-1&&s.splice(L,1)};return l.push(w),w}function g(){const{history:y}=window;y.state&&y.replaceState(bt({},y.state,{scroll:yf()}),"")}function v(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:h,listen:p,destroy:v}}function Fy(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?yf():null}}function Owe(e){const{history:t,location:n}=window,i={value:mS(e,n)},s={value:t.state};s.value||l(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+h:Iwe()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),s.value=p}catch(w){console.error(w),n[g?"replace":"assign"](y)}}function u(h,p){const g=bt({},t.state,Fy(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});l(h,g,!0),i.value=h}function f(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:yf()});l(g.current,g,!0);const v=bt({},Fy(i.value,h,null),{position:g.position+1},p);l(h,v,!1),i.value=h}return{location:i,state:s,push:f,replace:u}}function Rwe(e){e=Cwe(e);const t=Owe(e),n=Pwe(e,t.state,t.location,t.replace);function i(l,u=!0){u||n.pauseListeners(),history.go(l)}const s=bt({location:"",base:e,go:i,createHref:Awe.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function zwe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Rwe(e)}function Dwe(e){return typeof e=="string"||e&&typeof e=="object"}function vS(e){return typeof e=="string"||typeof e=="symbol"}const yS=Symbol("");var Hy;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Hy||(Hy={}));function il(e,t){return bt(new Error,{type:e,[yS]:!0},t)}function vi(e,t){return e instanceof Error&&yS in e&&(t==null||!!(e.type&t))}const By="[^/]+?",Fwe={sensitive:!1,strict:!1,start:!0,end:!0},Hwe=/[.+*?^${}()[\]/\\]/g;function Bwe(e,t){const n=bt({},Fwe,t),i=[];let s=n.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const y=p[v];let w=40+(n.sensitive?.25:0);if(y.type===0)v||(s+="/"),s+=y.value.replace(Hwe,"\\$&"),w+=40;else if(y.type===1){const{value:L,repeatable:$,optional:C,regexp:E}=y;l.push({name:L,repeatable:$,optional:C});const N=E||By;if(N!==By){w+=10;try{new RegExp(`(${N})`)}catch(k){throw new Error(`Invalid custom RegExp for param "${L}" (${N}): `+k.message)}}let O=$?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;v||(O=C&&p.length<2?`(?:/${O})`:"/"+O),C&&(O+="?"),s+=O,w+=20,C&&(w+=-8),$&&(w+=-20),N===".*"&&(w+=-50)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const u=new RegExp(s,n.sensitive?"":"i");function f(p){const g=p.match(u),v={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",L=l[y-1];v[L.name]=w&&L.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const y of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of y)if(w.type===0)g+=w.value;else if(w.type===1){const{value:L,repeatable:$,optional:C}=w,E=L in p?p[L]:"";if(zr(E)&&!$)throw new Error(`Provided param "${L}" is an array but it is not repeatable (* or + modifiers)`);const N=zr(E)?E.join("/"):E;if(!N)if(C)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${L}"`);g+=N}}return g||"/"}return{re:u,score:i,keys:l,parse:f,stringify:h}}function Wwe(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}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 bS(e,t){let n=0;const i=e.score,s=t.score;for(;n<i.length&&n<s.length;){const l=Wwe(i[n],s[n]);if(l)return l;n++}if(Math.abs(s.length-i.length)===1){if(Wy(i))return 1;if(Wy(s))return-1}return s.length-i.length}function Wy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const jwe={type:0,value:""},qwe=/[a-zA-Z0-9_]/;function Uwe(e){if(!e)return[[]];if(e==="/")return[[jwe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=0,i=n;const s=[];let l;function u(){l&&s.push(l),l=[]}let f=0,h,p="",g="";function v(){p&&(n===0?l.push({type:0,value:p}):n===1||n===2||n===3?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f<e.length;){if(h=e[f++],h==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:h==="/"?(p&&v(),u()):h===":"?(v(),n=1):y();break;case 4:y(),n=i;break;case 1:h==="("?n=2:qwe.test(h)?y():(v(),n=0,h!=="*"&&h!=="?"&&h!=="+"&&f--);break;case 2:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=3:g+=h;break;case 3:v(),n=0,h!=="*"&&h!=="?"&&h!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),v(),u(),s}function Vwe(e,t,n){const i=Bwe(Uwe(e.path),n),s=bt(i,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Gwe(e,t){const n=[],i=new Map;t=Vy({strict:!1,end:!0,sensitive:!1},t);function s(v){return i.get(v)}function l(v,y,w){const L=!w,$=qy(v);$.aliasOf=w&&w.record;const C=Vy(t,v),E=[$];if("alias"in v){const k=typeof v.alias=="string"?[v.alias]:v.alias;for(const z of k)E.push(qy(bt({},$,{components:w?w.record.components:$.components,path:z,aliasOf:w?w.record:$})))}let N,O;for(const k of E){const{path:z}=k;if(y&&z[0]!=="/"){const D=y.record.path,oe=D[D.length-1]==="/"?"":"/";k.path=y.record.path+(z&&oe+z)}if(N=Vwe(k,y,C),w?w.alias.push(N):(O=O||N,O!==N&&O.alias.push(N),L&&v.name&&!Uy(N)&&u(v.name)),wS(N)&&h(N),$.children){const D=$.children;for(let oe=0;oe<D.length;oe++)l(D[oe],N,w&&w.children[oe])}w=w||N}return O?()=>{u(O)}:ca}function u(v){if(vS(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function f(){return n}function h(v){const y=Jwe(v,n);n.splice(y,0,v),v.record.name&&!Uy(v)&&i.set(v.record.name,v)}function p(v,y){let w,L={},$,C;if("name"in v&&v.name){if(w=i.get(v.name),!w)throw il(1,{location:v});C=w.record.name,L=bt(jy(y.params,w.keys.filter(O=>!O.optional).concat(w.parent?w.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),v.params&&jy(v.params,w.keys.map(O=>O.name))),$=w.stringify(L)}else if(v.path!=null)$=v.path,w=n.find(O=>O.re.test($)),w&&(L=w.parse($),C=w.record.name);else{if(w=y.name?i.get(y.name):n.find(O=>O.re.test(y.path)),!w)throw il(1,{location:v,currentLocation:y});C=w.record.name,L=bt({},y.params,v.params),$=w.stringify(L)}const E=[];let N=w;for(;N;)E.unshift(N.record),N=N.parent;return{name:C,path:$,params:L,matched:E,meta:Kwe(E)}}e.forEach(v=>l(v));function g(){n.length=0,i.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:s}}function jy(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function qy(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Xwe(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 Xwe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Uy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kwe(e){return e.reduce((t,n)=>bt(t,n.meta),{})}function Vy(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Jwe(e,t){let n=0,i=t.length;for(;n!==i;){const l=n+i>>1;bS(e,t[l])<0?i=l:n=l+1}const s=Ywe(e);return s&&(i=t.lastIndexOf(s,i-1)),i}function Ywe(e){let t=e;for(;t=t.parent;)if(wS(t)&&bS(e,t)===0)return t}function wS({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Zwe(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<i.length;++s){const l=i[s].replace(fS," "),u=l.indexOf("="),f=Pa(u<0?l:l.slice(0,u)),h=u<0?null:Pa(l.slice(u+1));if(f in t){let p=t[f];zr(p)||(p=t[f]=[p]),p.push(h)}else t[f]=h}return t}function Gy(e){let t="";for(let n in e){const i=e[n];if(n=vwe(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(zr(i)?i.map(l=>l&&Xh(l)):[i&&Xh(i)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function Qwe(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=zr(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}const exe=Symbol(""),Xy=Symbol(""),Zp=Symbol(""),xS=Symbol(""),Jh=Symbol("");function Vl(){let e=[];function t(i){return e.push(i),()=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function eo(e,t,n,i,s,l=u=>u()){const u=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(il(4,{from:n,to:t})):y instanceof Error?h(y):Dwe(y)?h(il(2,{from:t,to:y})):(u&&i.enterCallbacks[s]===u&&typeof y=="function"&&u.push(y),f())},g=l(()=>e.call(i&&i.instances[s],t,n,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(y=>h(y))})}function Jd(e,t,n,i,s=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(cS(h)){const g=(h.__vccOpts||h)[t];g&&l.push(eo(g,n,i,u,f,s))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const v=swe(g)?g.default:g;u.mods[f]=g,u.components[f]=v;const w=(v.__vccOpts||v)[t];return w&&eo(w,n,i,u,f,s)()}))}}return l}function Ky(e){const t=wn(Zp),n=wn(xS),i=_e(()=>{const h=j(e.to);return t.resolve(h)}),s=_e(()=>{const{matched:h}=i.value,{length:p}=h,g=h[p-1],v=n.matched;if(!g||!v.length)return-1;const y=v.findIndex(rl.bind(null,g));if(y>-1)return y;const w=Jy(h[p-2]);return p>1&&Jy(g)===w&&v[v.length-1].path!==w?v.findIndex(rl.bind(null,h[p-2])):y}),l=_e(()=>s.value>-1&&oxe(n.params,i.value.params)),u=_e(()=>s.value>-1&&s.value===n.matched.length-1&&gS(n.params,i.value.params));function f(h={}){if(ixe(h)){const p=t[j(e.replace)?"replace":"push"](j(e.to)).catch(ca);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:_e(()=>i.value.href),isActive:l,isExactActive:u,navigate:f}}function txe(e){return e.length===1?e[0]:e}const nxe=at({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:Ky,setup(e,{slots:t}){const n=rr(Ky(e)),{options:i}=wn(Zp),s=_e(()=>({[Yy(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Yy(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&txe(t.default(n));return e.custom?l:Wa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},l)}}}),rxe=nxe;function ixe(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 oxe(e,t){for(const n in t){const i=t[n],s=e[n];if(typeof i=="string"){if(i!==s)return!1}else if(!zr(s)||s.length!==i.length||i.some((l,u)=>l!==s[u]))return!1}return!0}function Jy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yy=(e,t,n)=>e??t??n,sxe=at({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=wn(Jh),s=_e(()=>e.route||i.value),l=wn(Xy,0),u=_e(()=>{let p=j(l);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),f=_e(()=>s.value.matched[u.value]);Er(Xy,_e(()=>u.value+1)),Er(exe,f),Er(Jh,s);const h=Ue();return St(()=>[h.value,f.value,e.name],([p,g,v],[y,w,L])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!rl(g,w)||!y)&&(g.enterCallbacks[v]||[]).forEach($=>$(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=f.value,y=v&&v.components[g];if(!y)return Zy(n.default,{Component:y,route:p});const w=v.props[g],L=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=Wa(y,bt({},L,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Zy(n.default,{Component:C,route:p})||C}}});function Zy(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lxe=sxe;function axe(e){const t=Gwe(e.routes,e),n=e.parseQuery||Zwe,i=e.stringifyQuery||Gy,s=e.history,l=Vl(),u=Vl(),f=Vl(),h=rn(Vi);let p=Vi;Ls&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Xd.bind(null,V=>""+V),v=Xd.bind(null,bwe),y=Xd.bind(null,Pa);function w(V,ee){let J,ae;return vS(V)?(J=t.getRecordMatcher(V),ae=ee):ae=V,t.addRoute(ae,J)}function L(V){const ee=t.getRecordMatcher(V);ee&&t.removeRoute(ee)}function $(){return t.getRoutes().map(V=>V.record)}function C(V){return!!t.getRecordMatcher(V)}function E(V,ee){if(ee=bt({},ee||h.value),typeof V=="string"){const Y=Kd(n,V,ee.path),fe=t.resolve({path:Y.path},ee),pe=s.createHref(Y.fullPath);return bt(Y,fe,{params:y(fe.params),hash:Pa(Y.hash),redirectedFrom:void 0,href:pe})}let J;if(V.path!=null)J=bt({},V,{path:Kd(n,V.path,ee.path).path});else{const Y=bt({},V.params);for(const fe in Y)Y[fe]==null&&delete Y[fe];J=bt({},V,{params:v(Y)}),ee.params=v(ee.params)}const ae=t.resolve(J,ee),ge=V.hash||"";ae.params=g(y(ae.params));const F=Swe(i,bt({},V,{hash:mwe(ge),path:ae.path})),G=s.createHref(F);return bt({fullPath:F,hash:ge,query:i===Gy?Qwe(V.query):V.query||{}},ae,{redirectedFrom:void 0,href:G})}function N(V){return typeof V=="string"?Kd(n,V,h.value.path):bt({},V)}function O(V,ee){if(p!==V)return il(8,{from:ee,to:V})}function k(V){return oe(V)}function z(V){return k(bt(N(V),{replace:!0}))}function D(V){const ee=V.matched[V.matched.length-1];if(ee&&ee.redirect){const{redirect:J}=ee;let ae=typeof J=="function"?J(V):J;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=N(ae):{path:ae},ae.params={}),bt({query:V.query,hash:V.hash,params:ae.path!=null?{}:V.params},ae)}}function oe(V,ee){const J=p=E(V),ae=h.value,ge=V.state,F=V.force,G=V.replace===!0,Y=D(J);if(Y)return oe(bt(N(Y),{state:typeof Y=="object"?bt({},ge,Y.state):ge,force:F,replace:G}),ee||J);const fe=J;fe.redirectedFrom=ee;let pe;return!F&&_we(i,ae,J)&&(pe=il(16,{to:fe,from:ae}),Pe(ae,ae,!0,!1)),(pe?Promise.resolve(pe):q(fe,ae)).catch(he=>vi(he)?vi(he,2)?he:we(he):ie(he,fe,ae)).then(he=>{if(he){if(vi(he,2))return oe(bt({replace:G},N(he.to),{state:typeof he.to=="object"?bt({},ge,he.to.state):ge,force:F}),ee||fe)}else he=A(fe,ae,!0,G,ge);return U(fe,ae,he),he})}function Q(V,ee){const J=O(V,ee);return J?Promise.reject(J):Promise.resolve()}function W(V){const ee=Ke.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(V):V()}function q(V,ee){let J;const[ae,ge,F]=cxe(V,ee);J=Jd(ae.reverse(),"beforeRouteLeave",V,ee);for(const Y of ae)Y.leaveGuards.forEach(fe=>{J.push(eo(fe,V,ee))});const G=Q.bind(null,V,ee);return J.push(G),re(J).then(()=>{J=[];for(const Y of l.list())J.push(eo(Y,V,ee));return J.push(G),re(J)}).then(()=>{J=Jd(ge,"beforeRouteUpdate",V,ee);for(const Y of ge)Y.updateGuards.forEach(fe=>{J.push(eo(fe,V,ee))});return J.push(G),re(J)}).then(()=>{J=[];for(const Y of F)if(Y.beforeEnter)if(zr(Y.beforeEnter))for(const fe of Y.beforeEnter)J.push(eo(fe,V,ee));else J.push(eo(Y.beforeEnter,V,ee));return J.push(G),re(J)}).then(()=>(V.matched.forEach(Y=>Y.enterCallbacks={}),J=Jd(F,"beforeRouteEnter",V,ee,W),J.push(G),re(J))).then(()=>{J=[];for(const Y of u.list())J.push(eo(Y,V,ee));return J.push(G),re(J)}).catch(Y=>vi(Y,8)?Y:Promise.reject(Y))}function U(V,ee,J){f.list().forEach(ae=>W(()=>ae(V,ee,J)))}function A(V,ee,J,ae,ge){const F=O(V,ee);if(F)return F;const G=ee===Vi,Y=Ls?history.state:{};J&&(ae||G?s.replace(V.fullPath,bt({scroll:G&&Y&&Y.scroll},ge)):s.push(V.fullPath,ge)),h.value=V,Pe(V,ee,J,G),we()}let I;function P(){I||(I=s.listen((V,ee,J)=>{if(!Je.listening)return;const ae=E(V),ge=D(ae);if(ge){oe(bt(ge,{replace:!0,force:!0}),ae).catch(ca);return}p=ae;const F=h.value;Ls&&Mwe(Dy(F.fullPath,J.delta),yf()),q(ae,F).catch(G=>vi(G,12)?G:vi(G,2)?(oe(bt(N(G.to),{force:!0}),ae).then(Y=>{vi(Y,20)&&!J.delta&&J.type===Oa.pop&&s.go(-1,!1)}).catch(ca),Promise.reject()):(J.delta&&s.go(-J.delta,!1),ie(G,ae,F))).then(G=>{G=G||A(ae,F,!1),G&&(J.delta&&!vi(G,8)?s.go(-J.delta,!1):J.type===Oa.pop&&vi(G,20)&&s.go(-1,!1)),U(ae,F,G)}).catch(ca)}))}let S=Vl(),R=Vl(),B;function ie(V,ee,J){we(V);const ae=R.list();return ae.length?ae.forEach(ge=>ge(V,ee,J)):console.error(V),Promise.reject(V)}function ue(){return B&&h.value!==Vi?Promise.resolve():new Promise((V,ee)=>{S.add([V,ee])})}function we(V){return B||(B=!V,P(),S.list().forEach(([ee,J])=>V?J(V):ee()),S.reset()),V}function Pe(V,ee,J,ae){const{scrollBehavior:ge}=e;if(!Ls||!ge)return Promise.resolve();const F=!J&&Nwe(Dy(V.fullPath,0))||(ae||!J)&&history.state&&history.state.scroll||null;return Et().then(()=>ge(V,ee,F)).then(G=>G&&$we(G)).catch(G=>ie(G,V,ee))}const qe=V=>s.go(V);let Ze;const Ke=new Set,Je={currentRoute:h,listening:!0,addRoute:w,removeRoute:L,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:$,resolve:E,options:e,push:k,replace:z,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:R.add,isReady:ue,install(V){const ee=this;V.component("RouterLink",rxe),V.component("RouterView",lxe),V.config.globalProperties.$router=ee,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>j(h)}),Ls&&!Ze&&h.value===Vi&&(Ze=!0,k(s.location).catch(ge=>{}));const J={};for(const ge in Vi)Object.defineProperty(J,ge,{get:()=>h.value[ge],enumerable:!0});V.provide(Zp,ee),V.provide(xS,op(J)),V.provide(Jh,h);const ae=V.unmount;Ke.add(V),V.unmount=function(){Ke.delete(V),Ke.size<1&&(p=Vi,I&&I(),I=null,h.value=Vi,Ze=!1,B=!1),ae()}}};function re(V){return V.reduce((ee,J)=>ee.then(()=>W(J)),Promise.resolve())}return Je}function cxe(e,t){const n=[],i=[],s=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(p=>rl(p,f))?i.push(f):n.push(f));const h=e.matched[u];h&&(t.matched.find(p=>rl(p,h))||s.push(h))}return[n,i,s]}const uxe={tooltip:rA};qw.options.instantMove=!0;qw.options.distance=10;function fxe(){return axe({history:zwe(),routes:owe})}const dxe=[fxe],Qp=Sw(sE);dxe.forEach(e=>{Qp.use(e())});Object.entries(uxe).forEach(([e,t])=>{Qp.directive(e,t)});Qp.mount("#app");
57
+ */const $s=typeof document<"u";function aS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function swe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&aS(e.default)}const bt=Object.assign;function Xd(e,t){const n={};for(const i in t){const s=t[i];n[i]=zr(s)?s.map(e):e(s)}return n}const ua=()=>{},zr=Array.isArray,cS=/#/g,lwe=/&/g,awe=/\//g,cwe=/=/g,uwe=/\?/g,uS=/\+/g,fwe=/%5B/g,dwe=/%5D/g,fS=/%5E/g,hwe=/%60/g,dS=/%7B/g,pwe=/%7C/g,hS=/%7D/g,gwe=/%20/g;function Yp(e){return encodeURI(""+e).replace(pwe,"|").replace(fwe,"[").replace(dwe,"]")}function mwe(e){return Yp(e).replace(dS,"{").replace(hS,"}").replace(fS,"^")}function Xh(e){return Yp(e).replace(uS,"%2B").replace(gwe,"+").replace(cS,"%23").replace(lwe,"%26").replace(hwe,"`").replace(dS,"{").replace(hS,"}").replace(fS,"^")}function vwe(e){return Xh(e).replace(cwe,"%3D")}function ywe(e){return Yp(e).replace(cS,"%23").replace(uwe,"%3F")}function bwe(e){return e==null?"":ywe(e).replace(awe,"%2F")}function Oa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const wwe=/\/$/,xwe=e=>e.replace(wwe,"");function Kd(e,t,n="/"){let i,s={},l="",u="";const f=t.indexOf("#");let h=t.indexOf("?");return f<h&&f>=0&&(h=-1),h>-1&&(i=t.slice(0,h),l=t.slice(h+1,f>-1?f:t.length),s=e(l)),f>-1&&(i=i||t.slice(0,f),u=t.slice(f,t.length)),i=Twe(i??t,n),{fullPath:i+(l&&"?")+l+u,path:i,query:s,hash:Oa(u)}}function Swe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ry(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _we(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&il(t.matched[i],n.matched[s])&&pS(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function il(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pS(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!kwe(e[n],t[n]))return!1;return!0}function kwe(e,t){return zr(e)?zy(e,t):zr(t)?zy(t,e):e===t}function zy(e,t){return zr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Twe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let l=n.length-1,u,f;for(u=0;u<i.length;u++)if(f=i[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+i.slice(u).join("/")}const Gi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ra;(function(e){e.pop="pop",e.push="push"})(Ra||(Ra={}));var fa;(function(e){e.back="back",e.forward="forward",e.unknown=""})(fa||(fa={}));function Cwe(e){if(!e)if($s){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xwe(e)}const Ewe=/^[^#]+#/;function Awe(e,t){return e.replace(Ewe,"#")+t}function Lwe(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const yf=()=>({left:window.scrollX,top:window.scrollY});function $we(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Lwe(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 Dy(e,t){return(history.state?history.state.position-t:-1)+e}const Kh=new Map;function Mwe(e,t){Kh.set(e,t)}function Nwe(e){const t=Kh.get(e);return Kh.delete(e),t}let Iwe=()=>location.protocol+"//"+location.host;function gS(e,t){const{pathname:n,search:i,hash:s}=t,l=e.indexOf("#");if(l>-1){let f=s.includes(e.slice(l))?e.slice(l).length:1,h=s.slice(f);return h[0]!=="/"&&(h="/"+h),Ry(h,"")}return Ry(n,e)+i+s}function Pwe(e,t,n,i){let s=[],l=[],u=null;const f=({state:y})=>{const w=gS(e,location),L=n.value,$=t.value;let C=0;if(y){if(n.value=w,t.value=y,u&&u===L){u=null;return}C=$?y.position-$.position:0}else i(w);s.forEach(E=>{E(n.value,L,{delta:C,type:Ra.pop,direction:C?C>0?fa.forward:fa.back:fa.unknown})})};function h(){u=n.value}function p(y){s.push(y);const w=()=>{const L=s.indexOf(y);L>-1&&s.splice(L,1)};return l.push(w),w}function g(){const{history:y}=window;y.state&&y.replaceState(bt({},y.state,{scroll:yf()}),"")}function v(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:h,listen:p,destroy:v}}function Fy(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?yf():null}}function Owe(e){const{history:t,location:n}=window,i={value:gS(e,n)},s={value:t.state};s.value||l(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+h:Iwe()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),s.value=p}catch(w){console.error(w),n[g?"replace":"assign"](y)}}function u(h,p){const g=bt({},t.state,Fy(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});l(h,g,!0),i.value=h}function f(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:yf()});l(g.current,g,!0);const v=bt({},Fy(i.value,h,null),{position:g.position+1},p);l(h,v,!1),i.value=h}return{location:i,state:s,push:f,replace:u}}function Rwe(e){e=Cwe(e);const t=Owe(e),n=Pwe(e,t.state,t.location,t.replace);function i(l,u=!0){u||n.pauseListeners(),history.go(l)}const s=bt({location:"",base:e,go:i,createHref:Awe.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function zwe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Rwe(e)}function Dwe(e){return typeof e=="string"||e&&typeof e=="object"}function mS(e){return typeof e=="string"||typeof e=="symbol"}const vS=Symbol("");var Hy;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Hy||(Hy={}));function ol(e,t){return bt(new Error,{type:e,[vS]:!0},t)}function vi(e,t){return e instanceof Error&&vS in e&&(t==null||!!(e.type&t))}const By="[^/]+?",Fwe={sensitive:!1,strict:!1,start:!0,end:!0},Hwe=/[.+*?^${}()[\]/\\]/g;function Bwe(e,t){const n=bt({},Fwe,t),i=[];let s=n.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const y=p[v];let w=40+(n.sensitive?.25:0);if(y.type===0)v||(s+="/"),s+=y.value.replace(Hwe,"\\$&"),w+=40;else if(y.type===1){const{value:L,repeatable:$,optional:C,regexp:E}=y;l.push({name:L,repeatable:$,optional:C});const N=E||By;if(N!==By){w+=10;try{new RegExp(`(${N})`)}catch(k){throw new Error(`Invalid custom RegExp for param "${L}" (${N}): `+k.message)}}let O=$?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;v||(O=C&&p.length<2?`(?:/${O})`:"/"+O),C&&(O+="?"),s+=O,w+=20,C&&(w+=-8),$&&(w+=-20),N===".*"&&(w+=-50)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const u=new RegExp(s,n.sensitive?"":"i");function f(p){const g=p.match(u),v={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",L=l[y-1];v[L.name]=w&&L.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const y of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of y)if(w.type===0)g+=w.value;else if(w.type===1){const{value:L,repeatable:$,optional:C}=w,E=L in p?p[L]:"";if(zr(E)&&!$)throw new Error(`Provided param "${L}" is an array but it is not repeatable (* or + modifiers)`);const N=zr(E)?E.join("/"):E;if(!N)if(C)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${L}"`);g+=N}}return g||"/"}return{re:u,score:i,keys:l,parse:f,stringify:h}}function Wwe(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}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 yS(e,t){let n=0;const i=e.score,s=t.score;for(;n<i.length&&n<s.length;){const l=Wwe(i[n],s[n]);if(l)return l;n++}if(Math.abs(s.length-i.length)===1){if(Wy(i))return 1;if(Wy(s))return-1}return s.length-i.length}function Wy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const jwe={type:0,value:""},qwe=/[a-zA-Z0-9_]/;function Uwe(e){if(!e)return[[]];if(e==="/")return[[jwe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=0,i=n;const s=[];let l;function u(){l&&s.push(l),l=[]}let f=0,h,p="",g="";function v(){p&&(n===0?l.push({type:0,value:p}):n===1||n===2||n===3?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f<e.length;){if(h=e[f++],h==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:h==="/"?(p&&v(),u()):h===":"?(v(),n=1):y();break;case 4:y(),n=i;break;case 1:h==="("?n=2:qwe.test(h)?y():(v(),n=0,h!=="*"&&h!=="?"&&h!=="+"&&f--);break;case 2:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=3:g+=h;break;case 3:v(),n=0,h!=="*"&&h!=="?"&&h!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),v(),u(),s}function Vwe(e,t,n){const i=Bwe(Uwe(e.path),n),s=bt(i,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Gwe(e,t){const n=[],i=new Map;t=Vy({strict:!1,end:!0,sensitive:!1},t);function s(v){return i.get(v)}function l(v,y,w){const L=!w,$=qy(v);$.aliasOf=w&&w.record;const C=Vy(t,v),E=[$];if("alias"in v){const k=typeof v.alias=="string"?[v.alias]:v.alias;for(const z of k)E.push(qy(bt({},$,{components:w?w.record.components:$.components,path:z,aliasOf:w?w.record:$})))}let N,O;for(const k of E){const{path:z}=k;if(y&&z[0]!=="/"){const D=y.record.path,oe=D[D.length-1]==="/"?"":"/";k.path=y.record.path+(z&&oe+z)}if(N=Vwe(k,y,C),w?w.alias.push(N):(O=O||N,O!==N&&O.alias.push(N),L&&v.name&&!Uy(N)&&u(v.name)),bS(N)&&h(N),$.children){const D=$.children;for(let oe=0;oe<D.length;oe++)l(D[oe],N,w&&w.children[oe])}w=w||N}return O?()=>{u(O)}:ua}function u(v){if(mS(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function f(){return n}function h(v){const y=Jwe(v,n);n.splice(y,0,v),v.record.name&&!Uy(v)&&i.set(v.record.name,v)}function p(v,y){let w,L={},$,C;if("name"in v&&v.name){if(w=i.get(v.name),!w)throw ol(1,{location:v});C=w.record.name,L=bt(jy(y.params,w.keys.filter(O=>!O.optional).concat(w.parent?w.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),v.params&&jy(v.params,w.keys.map(O=>O.name))),$=w.stringify(L)}else if(v.path!=null)$=v.path,w=n.find(O=>O.re.test($)),w&&(L=w.parse($),C=w.record.name);else{if(w=y.name?i.get(y.name):n.find(O=>O.re.test(y.path)),!w)throw ol(1,{location:v,currentLocation:y});C=w.record.name,L=bt({},y.params,v.params),$=w.stringify(L)}const E=[];let N=w;for(;N;)E.unshift(N.record),N=N.parent;return{name:C,path:$,params:L,matched:E,meta:Kwe(E)}}e.forEach(v=>l(v));function g(){n.length=0,i.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:s}}function jy(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function qy(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Xwe(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 Xwe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Uy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kwe(e){return e.reduce((t,n)=>bt(t,n.meta),{})}function Vy(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Jwe(e,t){let n=0,i=t.length;for(;n!==i;){const l=n+i>>1;yS(e,t[l])<0?i=l:n=l+1}const s=Ywe(e);return s&&(i=t.lastIndexOf(s,i-1)),i}function Ywe(e){let t=e;for(;t=t.parent;)if(bS(t)&&yS(e,t)===0)return t}function bS({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Zwe(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<i.length;++s){const l=i[s].replace(uS," "),u=l.indexOf("="),f=Oa(u<0?l:l.slice(0,u)),h=u<0?null:Oa(l.slice(u+1));if(f in t){let p=t[f];zr(p)||(p=t[f]=[p]),p.push(h)}else t[f]=h}return t}function Gy(e){let t="";for(let n in e){const i=e[n];if(n=vwe(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(zr(i)?i.map(l=>l&&Xh(l)):[i&&Xh(i)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function Qwe(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=zr(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}const exe=Symbol(""),Xy=Symbol(""),Zp=Symbol(""),wS=Symbol(""),Jh=Symbol("");function Gl(){let e=[];function t(i){return e.push(i),()=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function to(e,t,n,i,s,l=u=>u()){const u=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(ol(4,{from:n,to:t})):y instanceof Error?h(y):Dwe(y)?h(ol(2,{from:t,to:y})):(u&&i.enterCallbacks[s]===u&&typeof y=="function"&&u.push(y),f())},g=l(()=>e.call(i&&i.instances[s],t,n,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(y=>h(y))})}function Jd(e,t,n,i,s=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(aS(h)){const g=(h.__vccOpts||h)[t];g&&l.push(to(g,n,i,u,f,s))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const v=swe(g)?g.default:g;u.mods[f]=g,u.components[f]=v;const w=(v.__vccOpts||v)[t];return w&&to(w,n,i,u,f,s)()}))}}return l}function Ky(e){const t=bn(Zp),n=bn(wS),i=_e(()=>{const h=j(e.to);return t.resolve(h)}),s=_e(()=>{const{matched:h}=i.value,{length:p}=h,g=h[p-1],v=n.matched;if(!g||!v.length)return-1;const y=v.findIndex(il.bind(null,g));if(y>-1)return y;const w=Jy(h[p-2]);return p>1&&Jy(g)===w&&v[v.length-1].path!==w?v.findIndex(il.bind(null,h[p-2])):y}),l=_e(()=>s.value>-1&&oxe(n.params,i.value.params)),u=_e(()=>s.value>-1&&s.value===n.matched.length-1&&pS(n.params,i.value.params));function f(h={}){if(ixe(h)){const p=t[j(e.replace)?"replace":"push"](j(e.to)).catch(ua);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:_e(()=>i.value.href),isActive:l,isExactActive:u,navigate:f}}function txe(e){return e.length===1?e[0]:e}const nxe=at({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:Ky,setup(e,{slots:t}){const n=rr(Ky(e)),{options:i}=bn(Zp),s=_e(()=>({[Yy(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Yy(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&txe(t.default(n));return e.custom?l:ja("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},l)}}}),rxe=nxe;function ixe(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 oxe(e,t){for(const n in t){const i=t[n],s=e[n];if(typeof i=="string"){if(i!==s)return!1}else if(!zr(s)||s.length!==i.length||i.some((l,u)=>l!==s[u]))return!1}return!0}function Jy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yy=(e,t,n)=>e??t??n,sxe=at({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=bn(Jh),s=_e(()=>e.route||i.value),l=bn(Xy,0),u=_e(()=>{let p=j(l);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),f=_e(()=>s.value.matched[u.value]);Er(Xy,_e(()=>u.value+1)),Er(exe,f),Er(Jh,s);const h=Ue();return St(()=>[h.value,f.value,e.name],([p,g,v],[y,w,L])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!il(g,w)||!y)&&(g.enterCallbacks[v]||[]).forEach($=>$(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=f.value,y=v&&v.components[g];if(!y)return Zy(n.default,{Component:y,route:p});const w=v.props[g],L=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=ja(y,bt({},L,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Zy(n.default,{Component:C,route:p})||C}}});function Zy(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lxe=sxe;function axe(e){const t=Gwe(e.routes,e),n=e.parseQuery||Zwe,i=e.stringifyQuery||Gy,s=e.history,l=Gl(),u=Gl(),f=Gl(),h=nn(Gi);let p=Gi;$s&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Xd.bind(null,V=>""+V),v=Xd.bind(null,bwe),y=Xd.bind(null,Oa);function w(V,ee){let J,ae;return mS(V)?(J=t.getRecordMatcher(V),ae=ee):ae=V,t.addRoute(ae,J)}function L(V){const ee=t.getRecordMatcher(V);ee&&t.removeRoute(ee)}function $(){return t.getRoutes().map(V=>V.record)}function C(V){return!!t.getRecordMatcher(V)}function E(V,ee){if(ee=bt({},ee||h.value),typeof V=="string"){const Y=Kd(n,V,ee.path),fe=t.resolve({path:Y.path},ee),pe=s.createHref(Y.fullPath);return bt(Y,fe,{params:y(fe.params),hash:Oa(Y.hash),redirectedFrom:void 0,href:pe})}let J;if(V.path!=null)J=bt({},V,{path:Kd(n,V.path,ee.path).path});else{const Y=bt({},V.params);for(const fe in Y)Y[fe]==null&&delete Y[fe];J=bt({},V,{params:v(Y)}),ee.params=v(ee.params)}const ae=t.resolve(J,ee),ge=V.hash||"";ae.params=g(y(ae.params));const F=Swe(i,bt({},V,{hash:mwe(ge),path:ae.path})),G=s.createHref(F);return bt({fullPath:F,hash:ge,query:i===Gy?Qwe(V.query):V.query||{}},ae,{redirectedFrom:void 0,href:G})}function N(V){return typeof V=="string"?Kd(n,V,h.value.path):bt({},V)}function O(V,ee){if(p!==V)return ol(8,{from:ee,to:V})}function k(V){return oe(V)}function z(V){return k(bt(N(V),{replace:!0}))}function D(V){const ee=V.matched[V.matched.length-1];if(ee&&ee.redirect){const{redirect:J}=ee;let ae=typeof J=="function"?J(V):J;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=N(ae):{path:ae},ae.params={}),bt({query:V.query,hash:V.hash,params:ae.path!=null?{}:V.params},ae)}}function oe(V,ee){const J=p=E(V),ae=h.value,ge=V.state,F=V.force,G=V.replace===!0,Y=D(J);if(Y)return oe(bt(N(Y),{state:typeof Y=="object"?bt({},ge,Y.state):ge,force:F,replace:G}),ee||J);const fe=J;fe.redirectedFrom=ee;let pe;return!F&&_we(i,ae,J)&&(pe=ol(16,{to:fe,from:ae}),Pe(ae,ae,!0,!1)),(pe?Promise.resolve(pe):q(fe,ae)).catch(he=>vi(he)?vi(he,2)?he:we(he):ie(he,fe,ae)).then(he=>{if(he){if(vi(he,2))return oe(bt({replace:G},N(he.to),{state:typeof he.to=="object"?bt({},ge,he.to.state):ge,force:F}),ee||fe)}else he=A(fe,ae,!0,G,ge);return U(fe,ae,he),he})}function Q(V,ee){const J=O(V,ee);return J?Promise.reject(J):Promise.resolve()}function W(V){const ee=Ke.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(V):V()}function q(V,ee){let J;const[ae,ge,F]=cxe(V,ee);J=Jd(ae.reverse(),"beforeRouteLeave",V,ee);for(const Y of ae)Y.leaveGuards.forEach(fe=>{J.push(to(fe,V,ee))});const G=Q.bind(null,V,ee);return J.push(G),re(J).then(()=>{J=[];for(const Y of l.list())J.push(to(Y,V,ee));return J.push(G),re(J)}).then(()=>{J=Jd(ge,"beforeRouteUpdate",V,ee);for(const Y of ge)Y.updateGuards.forEach(fe=>{J.push(to(fe,V,ee))});return J.push(G),re(J)}).then(()=>{J=[];for(const Y of F)if(Y.beforeEnter)if(zr(Y.beforeEnter))for(const fe of Y.beforeEnter)J.push(to(fe,V,ee));else J.push(to(Y.beforeEnter,V,ee));return J.push(G),re(J)}).then(()=>(V.matched.forEach(Y=>Y.enterCallbacks={}),J=Jd(F,"beforeRouteEnter",V,ee,W),J.push(G),re(J))).then(()=>{J=[];for(const Y of u.list())J.push(to(Y,V,ee));return J.push(G),re(J)}).catch(Y=>vi(Y,8)?Y:Promise.reject(Y))}function U(V,ee,J){f.list().forEach(ae=>W(()=>ae(V,ee,J)))}function A(V,ee,J,ae,ge){const F=O(V,ee);if(F)return F;const G=ee===Gi,Y=$s?history.state:{};J&&(ae||G?s.replace(V.fullPath,bt({scroll:G&&Y&&Y.scroll},ge)):s.push(V.fullPath,ge)),h.value=V,Pe(V,ee,J,G),we()}let I;function P(){I||(I=s.listen((V,ee,J)=>{if(!Je.listening)return;const ae=E(V),ge=D(ae);if(ge){oe(bt(ge,{replace:!0,force:!0}),ae).catch(ua);return}p=ae;const F=h.value;$s&&Mwe(Dy(F.fullPath,J.delta),yf()),q(ae,F).catch(G=>vi(G,12)?G:vi(G,2)?(oe(bt(N(G.to),{force:!0}),ae).then(Y=>{vi(Y,20)&&!J.delta&&J.type===Ra.pop&&s.go(-1,!1)}).catch(ua),Promise.reject()):(J.delta&&s.go(-J.delta,!1),ie(G,ae,F))).then(G=>{G=G||A(ae,F,!1),G&&(J.delta&&!vi(G,8)?s.go(-J.delta,!1):J.type===Ra.pop&&vi(G,20)&&s.go(-1,!1)),U(ae,F,G)}).catch(ua)}))}let S=Gl(),R=Gl(),B;function ie(V,ee,J){we(V);const ae=R.list();return ae.length?ae.forEach(ge=>ge(V,ee,J)):console.error(V),Promise.reject(V)}function ue(){return B&&h.value!==Gi?Promise.resolve():new Promise((V,ee)=>{S.add([V,ee])})}function we(V){return B||(B=!V,P(),S.list().forEach(([ee,J])=>V?J(V):ee()),S.reset()),V}function Pe(V,ee,J,ae){const{scrollBehavior:ge}=e;if(!$s||!ge)return Promise.resolve();const F=!J&&Nwe(Dy(V.fullPath,0))||(ae||!J)&&history.state&&history.state.scroll||null;return Et().then(()=>ge(V,ee,F)).then(G=>G&&$we(G)).catch(G=>ie(G,V,ee))}const qe=V=>s.go(V);let Ze;const Ke=new Set,Je={currentRoute:h,listening:!0,addRoute:w,removeRoute:L,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:$,resolve:E,options:e,push:k,replace:z,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:R.add,isReady:ue,install(V){const ee=this;V.component("RouterLink",rxe),V.component("RouterView",lxe),V.config.globalProperties.$router=ee,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>j(h)}),$s&&!Ze&&h.value===Gi&&(Ze=!0,k(s.location).catch(ge=>{}));const J={};for(const ge in Gi)Object.defineProperty(J,ge,{get:()=>h.value[ge],enumerable:!0});V.provide(Zp,ee),V.provide(wS,op(J)),V.provide(Jh,h);const ae=V.unmount;Ke.add(V),V.unmount=function(){Ke.delete(V),Ke.size<1&&(p=Gi,I&&I(),I=null,h.value=Gi,Ze=!1,B=!1),ae()}}};function re(V){return V.reduce((ee,J)=>ee.then(()=>W(J)),Promise.resolve())}return Je}function cxe(e,t){const n=[],i=[],s=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(p=>il(p,f))?i.push(f):n.push(f));const h=e.matched[u];h&&(t.matched.find(p=>il(p,h))||s.push(h))}return[n,i,s]}const uxe={tooltip:nA};qw.options.instantMove=!0;qw.options.distance=10;function fxe(){return axe({history:zwe(),routes:owe})}const dxe=[fxe],Qp=Sw(oE);dxe.forEach(e=>{Qp.use(e())});Object.entries(uxe).forEach(([e,t])=>{Qp.directive(e,t)});Qp.mount("#app");