@vitest/browser 4.0.14 → 4.0.15
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.
- package/dist/client/.vite/manifest.json +1 -1
- package/dist/client/__vitest__/assets/index-CfDzoXo3.js +57 -0
- package/dist/client/__vitest__/assets/index-DlhE0rqZ.css +1 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{tester-gw0ZBXrK.js → tester-CrGChK3u.js} +1 -0
- package/dist/client/tester/tester.html +1 -1
- package/dist/expect-element.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +6 -6
- package/dist/client/__vitest__/assets/index-Cb3HQb77.css +0 -1
- package/dist/client/__vitest__/assets/index-DnyN8l5D.js +0 -57
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
-
* @vue/shared v3.5.25
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function Mh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const mt={},As=[],Kr=()=>{},uy=()=>!1,Lu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nh=e=>e.startsWith("onUpdate:"),on=Object.assign,Oh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},bS=Object.prototype.hasOwnProperty,wt=(e,t)=>bS.call(e,t),qe=Array.isArray,Ls=e=>La(e)==="[object Map]",Mu=e=>La(e)==="[object Set]",Lv=e=>La(e)==="[object Date]",Ye=e=>typeof e=="function",Dt=e=>typeof e=="string",Nr=e=>typeof e=="symbol",xt=e=>e!==null&&typeof e=="object",fy=e=>(xt(e)||Ye(e))&&Ye(e.then)&&Ye(e.catch),dy=Object.prototype.toString,La=e=>dy.call(e),wS=e=>La(e).slice(8,-1),hy=e=>La(e)==="[object Object]",Nu=e=>Dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vl=Mh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ou=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},xS=/-\w/g,sr=Ou(e=>e.replace(xS,t=>t.slice(1).toUpperCase())),_S=/\B([A-Z])/g,Ci=Ou(e=>e.replace(_S,"-$1").toLowerCase()),Ru=Ou(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hc=Ou(e=>e?`on${Ru(e)}`:""),Vn=(e,t)=>!Object.is(e,t),Bc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},py=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Rh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gy=e=>{const t=Dt(e)?Number(e):NaN;return isNaN(t)?e:t};let Mv;const Pu=()=>Mv||(Mv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vt(e){if(qe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Dt(o)?CS(o):Vt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Dt(e)||xt(e))return e}const SS=/;(?![^(]*\))/g,kS=/:([^]+)/,TS=/\/\*[^]*?\*\//g;function CS(e){const t={};return e.replace(TS,"").split(SS).forEach(r=>{if(r){const o=r.split(kS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function lt(e){let t="";if(Dt(e))t=e;else if(qe(e))for(let r=0;r<e.length;r++){const o=lt(e[r]);o&&(t+=o+" ")}else if(xt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function ES(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Dt(t)&&(e.class=lt(t)),r&&(e.style=Vt(r)),e}const AS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",LS=Mh(AS);function vy(e){return!!e||e===""}function MS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=$u(e[o],t[o]);return r}function $u(e,t){if(e===t)return!0;let r=Lv(e),o=Lv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Nr(e),o=Nr(t),r||o)return e===t;if(r=qe(e),o=qe(t),r||o)return r&&o?MS(e,t):!1;if(r=xt(e),o=xt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!$u(e[f],t[f]))return!1}}return String(e)===String(t)}function my(e,t){return e.findIndex(r=>$u(r,t))}const yy=e=>!!(e&&e.__v_isRef===!0),Pe=e=>Dt(e)?e:e==null?"":qe(e)||xt(e)&&(e.toString===dy||!Ye(e.toString))?yy(e)?Pe(e.value):JSON.stringify(e,by,2):String(e),by=(e,t)=>yy(t)?by(e,t.value):Ls(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[rd(o,c)+" =>"]=s,r),{})}:Mu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>rd(r))}:Nr(t)?rd(t):xt(t)&&!qe(t)&&!hy(t)?String(t):t,rd=(e,t="")=>{var r;return Nr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.25
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let bn;class NS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=bn;try{return bn=this,t()}finally{bn=r}}}on(){++this._on===1&&(this.prevScope=bn,bn=this)}off(){this._on>0&&--this._on===0&&(bn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function wy(){return bn}function OS(e,t=!1){bn&&bn.cleanups.push(e)}let kt;const id=new WeakSet;class xy{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,bn&&bn.active&&bn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,id.has(this)&&(id.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Sy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Nv(this),ky(this);const t=kt,r=Lr;kt=this,Lr=!0;try{return this.fn()}finally{Ty(this),kt=t,Lr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ih(t);this.deps=this.depsTail=void 0,Nv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?id.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$d(this)&&this.run()}get dirty(){return $d(this)}}let _y=0,Gl,Kl;function Sy(e,t=!1){if(e.flags|=8,t){e.next=Kl,Kl=e;return}e.next=Gl,Gl=e}function Ph(){_y++}function $h(){if(--_y>0)return;if(Kl){let t=Kl;for(Kl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Gl;){let t=Gl;for(Gl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function ky(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ty(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Ih(o),RS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function $d(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===oa)||(e.globalVersion=oa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$d(e))))return;e.flags|=2;const t=e.dep,r=kt,o=Lr;kt=e,Lr=!0;try{ky(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{kt=r,Lr=o,Ty(e),e.flags&=-3}}function Ih(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Ih(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function RS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Lr=!0;const Ey=[];function xi(){Ey.push(Lr),Lr=!1}function _i(){const e=Ey.pop();Lr=e===void 0?!0:e}function Nv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let oa=0;class PS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Iu{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(!kt||!Lr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new PS(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,Ay(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,oa++,this.notify(t)}notify(t){Ph();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{$h()}}}function Ay(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Ay(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const eu=new WeakMap,zo=Symbol(""),Id=Symbol(""),sa=Symbol("");function wn(e,t,r){if(Lr&&kt){let o=eu.get(e);o||eu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Iu),s.map=o,s.key=r),s.track()}}function mi(e,t,r,o,s,c){const f=eu.get(e);if(!f){oa++;return}const d=h=>{h&&h.trigger()};if(Ph(),t==="clear")f.forEach(d);else{const h=qe(e),p=h&&Nu(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===sa||!Nr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(sa)),t){case"add":h?p&&d(f.get("length")):(d(f.get(zo)),Ls(e)&&d(f.get(Id)));break;case"delete":h||(d(f.get(zo)),Ls(e)&&d(f.get(Id)));break;case"set":Ls(e)&&d(f.get(zo));break}}$h()}function $S(e,t){const r=eu.get(e);return r&&r.get(t)}function bs(e){const t=vt(e);return t===e?t:(wn(t,"iterate",sa),or(e)?t:t.map(Or))}function Du(e){return wn(e=vt(e),"iterate",sa),e}function Ki(e,t){return Si(e)?Fo(e)?Ws(Or(t)):Ws(t):Or(t)}const IS={__proto__:null,[Symbol.iterator](){return od(this,Symbol.iterator,e=>Ki(this,e))},concat(...e){return bs(this).concat(...e.map(t=>qe(t)?bs(t):t))},entries(){return od(this,"entries",e=>(e[1]=Ki(this,e[1]),e))},every(e,t){return ci(this,"every",e,t,void 0,arguments)},filter(e,t){return ci(this,"filter",e,t,r=>r.map(o=>Ki(this,o)),arguments)},find(e,t){return ci(this,"find",e,t,r=>Ki(this,r),arguments)},findIndex(e,t){return ci(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ci(this,"findLast",e,t,r=>Ki(this,r),arguments)},findLastIndex(e,t){return ci(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ci(this,"forEach",e,t,void 0,arguments)},includes(...e){return sd(this,"includes",e)},indexOf(...e){return sd(this,"indexOf",e)},join(e){return bs(this).join(e)},lastIndexOf(...e){return sd(this,"lastIndexOf",e)},map(e,t){return ci(this,"map",e,t,void 0,arguments)},pop(){return Pl(this,"pop")},push(...e){return Pl(this,"push",e)},reduce(e,...t){return Ov(this,"reduce",e,t)},reduceRight(e,...t){return Ov(this,"reduceRight",e,t)},shift(){return Pl(this,"shift")},some(e,t){return ci(this,"some",e,t,void 0,arguments)},splice(...e){return Pl(this,"splice",e)},toReversed(){return bs(this).toReversed()},toSorted(e){return bs(this).toSorted(e)},toSpliced(...e){return bs(this).toSpliced(...e)},unshift(...e){return Pl(this,"unshift",e)},values(){return od(this,"values",e=>Ki(this,e))}};function od(e,t,r){const o=Du(e),s=o[t]();return o!==e&&!or(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const DS=Array.prototype;function ci(e,t,r,o,s,c){const f=Du(e),d=f!==e&&!or(e),h=f[t];if(h!==DS[t]){const m=h.apply(e,c);return d?Or(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,Ki(e,m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function Ov(e,t,r,o){const s=Du(e);let c=r;return s!==e&&(or(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,Ki(e,d),h,e)}),s[t](c,...o)}function sd(e,t,r){const o=vt(e);wn(o,"iterate",sa);const s=o[t](...r);return(s===-1||s===!1)&&zu(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Pl(e,t,r=[]){xi(),Ph();const o=vt(e)[t].apply(e,r);return $h(),_i(),o}const zS=Mh("__proto__,__v_isRef,__isVue"),Ly=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nr));function FS(e){Nr(e)||(e=String(e));const t=vt(this);return wn(t,"has",e),t.hasOwnProperty(e)}class My{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?XS:Py:c?Ry:Oy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=qe(t);if(!s){let h;if(f&&(h=IS[r]))return h;if(r==="hasOwnProperty")return FS}const d=Reflect.get(t,r,Mt(t)?t:o);if((Nr(r)?Ly.has(r):zS(r))||(s||wn(t,"get",r),c))return d;if(Mt(d)){const h=f&&Nu(r)?d:d.value;return s&&xt(h)?Bs(h):h}return xt(d)?s?Bs(d):ir(d):d}}class Ny extends My{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=qe(t)&&Nu(r);if(!this._isShallow){const p=Si(c);if(!or(o)&&!Si(o)&&(c=vt(c),o=vt(o)),!f&&Mt(c)&&!Mt(o))return p||(c.value=o),!0}const d=f?Number(r)<t.length:wt(t,r),h=Reflect.set(t,r,o,Mt(t)?t:s);return t===vt(s)&&(d?Vn(o,c)&&mi(t,"set",r,o):mi(t,"add",r,o)),h}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&mi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Nr(r)||!Ly.has(r))&&wn(t,"has",r),o}ownKeys(t){return wn(t,"iterate",qe(t)?"length":zo),Reflect.ownKeys(t)}}class HS extends My{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const BS=new Ny,WS=new HS,qS=new Ny(!0);const Dd=e=>e,_c=e=>Reflect.getPrototypeOf(e);function jS(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=Ls(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Dd:t?Ws:Or;return!t&&wn(c,"iterate",h?Id:zo),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function Sc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function US(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(Vn(s,d)&&wn(f,"get",s),wn(f,"get",d));const{has:h}=_c(f),p=t?Dd:e?Ws:Or;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&wn(vt(s),"iterate",zo),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(Vn(s,d)&&wn(f,"has",s),wn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=vt(d),p=t?Dd:e?Ws:Or;return!e&&wn(h,"iterate",zo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return on(r,e?{add:Sc("add"),set:Sc("set"),delete:Sc("delete"),clear:Sc("clear")}:{add(s){!t&&!or(s)&&!Si(s)&&(s=vt(s));const c=vt(this);return _c(c).has.call(c,s)||(c.add(s),mi(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!Si(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=_c(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Vn(c,v)&&mi(f,"set",s,c):mi(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=_c(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&mi(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&mi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=jS(s,e,t)}),r}function Dh(e,t){const r=US(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const VS={get:Dh(!1,!1)},GS={get:Dh(!1,!0)},KS={get:Dh(!0,!1)};const Oy=new WeakMap,Ry=new WeakMap,Py=new WeakMap,XS=new WeakMap;function YS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZS(e){return e.__v_skip||!Object.isExtensible(e)?0:YS(wS(e))}function ir(e){return Si(e)?e:Fh(e,!1,BS,VS,Oy)}function zh(e){return Fh(e,!1,qS,GS,Ry)}function Bs(e){return Fh(e,!0,WS,KS,Py)}function Fh(e,t,r,o,s){if(!xt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=ZS(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function Fo(e){return Si(e)?Fo(e.__v_raw):!!(e&&e.__v_isReactive)}function Si(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function zu(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Hh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&py(e,"__v_skip",!0),e}const Or=e=>xt(e)?ir(e):e,Ws=e=>xt(e)?Bs(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return $y(e,!1)}function rn(e){return $y(e,!0)}function $y(e,t){return Mt(e)?e:new JS(e,t)}class JS{constructor(t,r){this.dep=new Iu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:Or(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||or(t)||Si(t);t=o?t:vt(t),Vn(t,r)&&(this._rawValue=t,this._value=o?t:Or(t),this.dep.trigger())}}function X(e){return Mt(e)?e.value:e}function Kt(e){return Ye(e)?e():X(e)}const QS={get:(e,t,r)=>t==="__v_raw"?e:X(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Mt(s)&&!Mt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function Iy(e){return Fo(e)?e:new Proxy(e,QS)}class ek{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Iu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Dy(e){return new ek(e)}function tk(e){const t=qe(e)?new Array(e.length):{};for(const r in e)t[r]=zy(e,r);return t}class nk{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=vt(t);let s=!0,c=t;if(!qe(t)||!Nu(String(r)))do s=!zu(c)||or(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=X(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Mt(this._raw[this._key])){const r=this._object[this._key];if(Mt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return $S(this._raw,this._key)}}class rk{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 ik(e,t,r){return Mt(e)?e:Ye(e)?new rk(e):xt(e)&&arguments.length>1?zy(e,t,r):Ue(e)}function zy(e,t,r){return new nk(e,t,r)}class ok{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Iu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=oa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return Sy(this,!0),!0}get value(){const t=this.dep.track();return Cy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function sk(e,t,r=!1){let o,s;return Ye(e)?o=e:(o=e.get,s=e.set),new ok(o,s,r)}const kc={},tu=new WeakMap;let No;function lk(e,t=!1,r=No){if(r){let o=tu.get(r);o||tu.set(r,o=[]),o.push(e)}}function ak(e,t,r=mt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:or(E)||s===!1||s===0?yi(E,1):yi(E);let v,m,b,x,T=!1,L=!1;if(Mt(e)?(m=()=>e.value,T=or(e)):Fo(e)?(m=()=>p(e),T=!0):qe(e)?(L=!0,T=e.some(E=>Fo(E)||or(E)),m=()=>e.map(E=>{if(Mt(E))return E.value;if(Fo(E))return p(E);if(Ye(E))return h?h(E,2):E()})):Ye(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){xi();try{b()}finally{_i()}}const E=No;No=v;try{return h?h(e,3,[x]):e(x)}finally{No=E}}:m=Kr,t&&s){const E=m,W=s===!0?1/0:s;m=()=>yi(E(),W)}const M=wy(),A=()=>{v.stop(),M&&M.active&&Oh(M.effects,v)};if(c&&t){const E=t;t=(...W)=>{E(...W),A()}}let R=L?new Array(e.length).fill(kc):kc;const B=E=>{if(!(!(v.flags&1)||!v.dirty&&!E))if(t){const W=v.run();if(s||T||(L?W.some((U,se)=>Vn(U,R[se])):Vn(W,R))){b&&b();const U=No;No=v;try{const se=[W,R===kc?void 0:L&&R[0]===kc?[]:R,x];R=W,h?h(t,3,se):t(...se)}finally{No=U}}}else v.run()};return d&&d(B),v=new xy(m),v.scheduler=f?()=>f(B,!1):B,x=E=>lk(E,!1,v),b=v.onStop=()=>{const E=tu.get(v);if(E){if(h)h(E,4);else for(const W of E)W();tu.delete(v)}},t?o?B(!0):R=v.run():f?f(B.bind(null,!0),!0):v.run(),A.pause=v.pause.bind(v),A.resume=v.resume.bind(v),A.stop=A,A}function yi(e,t=1/0,r){if(t<=0||!xt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Mt(e))yi(e.value,t,r);else if(qe(e))for(let o=0;o<e.length;o++)yi(e[o],t,r);else if(Mu(e)||Ls(e))e.forEach(o=>{yi(o,t,r)});else if(hy(e)){for(const o in e)yi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&yi(e[o],t,r)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.25
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Ma(e,t,r,o){try{return o?e(...o):e()}catch(s){Na(s,t,r)}}function Rr(e,t,r,o){if(Ye(e)){const s=Ma(e,t,r,o);return s&&fy(s)&&s.catch(c=>{Na(c,t,r)}),s}if(qe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Rr(e[c],t,r,o));return s}}function Na(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||mt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){xi(),Ma(c,null,10,[e,h,p]),_i();return}}ck(e,r,s,o,f)}function ck(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Rn=[];let Vr=-1;const Ms=[];let Xi=null,xs=0;const Fy=Promise.resolve();let nu=null;function Ct(e){const t=nu||Fy;return e?t.then(this?e.bind(this):e):t}function uk(e){let t=Vr+1,r=Rn.length;for(;t<r;){const o=t+r>>>1,s=Rn[o],c=la(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Bh(e){if(!(e.flags&1)){const t=la(e),r=Rn[Rn.length-1];!r||!(e.flags&2)&&t>=la(r)?Rn.push(e):Rn.splice(uk(t),0,e),e.flags|=1,Hy()}}function Hy(){nu||(nu=Fy.then(Wy))}function zd(e){qe(e)?Ms.push(...e):Xi&&e.id===-1?Xi.splice(xs+1,0,e):e.flags&1||(Ms.push(e),e.flags|=1),Hy()}function Rv(e,t,r=Vr+1){for(;r<Rn.length;r++){const o=Rn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Rn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function By(e){if(Ms.length){const t=[...new Set(Ms)].sort((r,o)=>la(r)-la(o));if(Ms.length=0,Xi){Xi.push(...t);return}for(Xi=t,xs=0;xs<Xi.length;xs++){const r=Xi[xs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Xi=null,xs=0}}const la=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Wy(e){try{for(Vr=0;Vr<Rn.length;Vr++){const t=Rn[Vr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ma(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Vr<Rn.length;Vr++){const t=Rn[Vr];t&&(t.flags&=-2)}Vr=-1,Rn.length=0,By(),nu=null,(Rn.length||Ms.length)&&Wy()}}let gn=null,Fu=null;function ru(e){const t=gn;return gn=e,Fu=e&&e.type.__scopeId||null,t}function qy(e){Fu=e}function jy(){Fu=null}const Uy=e=>Xe;function Xe(e,t=gn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&js(-1);const c=ru(t);let f;try{f=e(...s)}finally{ru(c),o._d&&js(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function st(e,t){if(gn===null)return e;const r=Vu(gn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=mt]=t[s];c&&(Ye(c)&&(c={mounted:c,updated:c}),c.deep&&yi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function Co(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(xi(),Rr(h,r,8,[e.el,d,e,t]),_i())}}const fk=Symbol("_vte"),Vy=e=>e.__isTeleport,vi=Symbol("_leaveCb"),Tc=Symbol("_enterCb");function dk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ai(()=>{e.isMounted=!0}),Oa(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],Gy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},Ky=e=>{const t=e.subTree;return t.component?Ky(t.component):t},hk={name:"BaseTransition",props:Gy,setup(e,{slots:t}){const r=Qr(),o=dk();return()=>{const s=t.default&&Zy(t.default(),!0);if(!s||!s.length)return;const c=Xy(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return ld(c);const h=Pv(c);if(!h)return ld(c);let p=Fd(h,f,o,r,m=>p=m);h.type!==ln&&aa(h,p);let v=r.subTree&&Pv(r.subTree);if(v&&v.type!==ln&&!Gr(v,h)&&Ky(r).type!==ln){let m=Fd(v,f,o,r);if(aa(v,m),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},ld(c);d==="in-out"&&h.type!==ln?m.delayLeave=(b,x,T)=>{const L=Yy(o,v);L[String(v.key)]=v,b[vi]=()=>{x(),b[vi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{T(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function Xy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ln){t=r;break}}return t}const pk=hk;function Yy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Fd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:T,onLeaveCancelled:L,onBeforeAppear:M,onAppear:A,onAfterAppear:R,onAppearCancelled:B}=t,E=String(e.key),W=Yy(r,e),U=(Q,K)=>{Q&&Rr(Q,o,9,K)},se=(Q,K)=>{const V=K[1];U(Q,K),qe(Q)?Q.every(P=>P.length<=1)&&V():Q.length<=1&&V()},ne={mode:f,persisted:d,beforeEnter(Q){let K=h;if(!r.isMounted)if(c)K=M||h;else return;Q[vi]&&Q[vi](!0);const V=W[E];V&&Gr(e,V)&&V.el[vi]&&V.el[vi](),U(K,[Q])},enter(Q){let K=p,V=v,P=m;if(!r.isMounted)if(c)K=A||p,V=R||v,P=B||m;else return;let O=!1;const N=Q[Tc]=S=>{O||(O=!0,S?U(P,[Q]):U(V,[Q]),ne.delayedLeave&&ne.delayedLeave(),Q[Tc]=void 0)};K?se(K,[Q,N]):N()},leave(Q,K){const V=String(e.key);if(Q[Tc]&&Q[Tc](!0),r.isUnmounting)return K();U(b,[Q]);let P=!1;const O=Q[vi]=N=>{P||(P=!0,K(),N?U(L,[Q]):U(T,[Q]),Q[vi]=void 0,W[V]===e&&delete W[V])};W[V]=e,x?se(x,[Q,O]):O()},clone(Q){const K=Fd(Q,t,r,o,s);return s&&s(K),K}};return ne}function ld(e){if(Hu(e))return e=lo(e),e.children=null,e}function Pv(e){if(!Hu(e))return Vy(e.type)&&e.children?Xy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ye(r.default))return r.default()}}function aa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,aa(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 Zy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===tt?(f.patchFlag&128&&s++,o=o.concat(Zy(f.children,t,d))):(t||f.type!==ln)&&o.push(d!=null?lo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function et(e,t){return Ye(e)?on({name:e.name},t,{setup:e}):e}function Wh(){const e=Qr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Jy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const iu=new WeakMap;function Xl(e,t,r,o,s=!1){if(qe(e)){e.forEach((T,L)=>Xl(T,t&&(qe(t)?t[L]:t),r,o,s));return}if(Ns(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Xl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Vu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===mt?d.refs={}:d.refs,m=d.setupState,b=vt(m),x=m===mt?uy:T=>wt(b,T);if(p!=null&&p!==h){if($v(t),Dt(p))v[p]=null,x(p)&&(m[p]=null);else if(Mt(p)){p.value=null;const T=t;T.k&&(v[T.k]=null)}}if(Ye(h))Ma(h,d,12,[f,v]);else{const T=Dt(h),L=Mt(h);if(T||L){const M=()=>{if(e.f){const A=T?x(h)?m[h]:v[h]:h.value;if(s)qe(A)&&Oh(A,c);else if(qe(A))A.includes(c)||A.push(c);else if(T)v[h]=[c],x(h)&&(m[h]=v[h]);else{const R=[c];h.value=R,e.k&&(v[e.k]=R)}}else T?(v[h]=f,x(h)&&(m[h]=f)):L&&(h.value=f,e.k&&(v[e.k]=f))};if(f){const A=()=>{M(),iu.delete(e)};A.id=-1,iu.set(e,A),qn(A,r)}else $v(e),M()}}}function $v(e){const t=iu.get(e);t&&(t.flags|=8,iu.delete(e))}Pu().requestIdleCallback;Pu().cancelIdleCallback;const Ns=e=>!!e.type.__asyncLoader,Hu=e=>e.type.__isKeepAlive;function gk(e,t){Qy(e,"a",t)}function vk(e,t){Qy(e,"da",t)}function Qy(e,t,r=xn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Bu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Hu(s.parent.vnode)&&mk(o,t,r,s),s=s.parent}}function mk(e,t,r,o){const s=Bu(t,e,o,!0);Ra(()=>{Oh(o[t],s)},r)}function Bu(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{xi();const d=Pa(r),h=Rr(t,r,e,f);return d(),_i(),h});return o?s.unshift(c):s.push(c),c}}const Ei=e=>(t,r=xn)=>{(!fa||e==="sp")&&Bu(e,(...o)=>t(...o),r)},yk=Ei("bm"),Ai=Ei("m"),bk=Ei("bu"),wk=Ei("u"),Oa=Ei("bum"),Ra=Ei("um"),xk=Ei("sp"),_k=Ei("rtg"),Sk=Ei("rtc");function kk(e,t=xn){Bu("ec",e,t)}const qh="components",Tk="directives";function Wo(e,t){return jh(qh,e,!0,t)||e}const eb=Symbol.for("v-ndc");function Hd(e){return Dt(e)?jh(qh,e,!1)||e:e||eb}function Dr(e){return jh(Tk,e)}function jh(e,t,r=!0,o=!1){const s=gn||xn;if(s){const c=s.type;if(e===qh){const d=mT(c,!1);if(d&&(d===t||d===sr(t)||d===Ru(sr(t))))return c}const f=Iv(s[e]||c[e],t)||Iv(s.appContext[e],t);return!f&&o?c:f}}function Iv(e,t){return e&&(e[t]||e[sr(t)]||e[Ru(sr(t))])}function Kn(e,t,r,o){let s;const c=r,f=qe(e);if(f||Dt(e)){const d=f&&Fo(e);let h=!1,p=!1;d&&(h=!or(e),p=Si(e),e=Du(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?Ws(Or(e[v])):Or(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(xt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function Ck(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(qe(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Bt(e,t,r={},o,s){if(gn.ce||gn.parent&&Ns(gn.parent)&&gn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),re(),Ge(tt,null,[Ne("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),re();const f=c&&tb(c(r)),d=r.key||f&&f.key,h=Ge(tt,{key:(d&&!Nr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function tb(e){return e.some(t=>Us(t)?!(t.type===ln||t.type===tt&&!tb(t.children)):!0)?e:null}function Ek(e,t){const r={};for(const o in e)r[Hc(o)]=e[o];return r}const Bd=e=>e?Eb(e)?Vu(e):Bd(e.parent):null,Yl=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=>Bd(e.parent),$root:e=>Bd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ob(e),$forceUpdate:e=>e.f||(e.f=()=>{Bh(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>Hk.bind(e)}),ad=(e,t)=>e!==mt&&!e.__isScriptSetup&&wt(e,t),Ak={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(ad(o,t))return f[t]=1,o[t];if(s!==mt&&wt(s,t))return f[t]=2,s[t];if(wt(c,t))return f[t]=3,c[t];if(r!==mt&&wt(r,t))return f[t]=4,r[t];Wd&&(f[t]=0)}}const p=Yl[t];let v,m;if(p)return t==="$attrs"&&wn(e.attrs,"get",""),p(e);if((v=d.__cssModules)&&(v=v[t]))return v;if(r!==mt&&wt(r,t))return f[t]=4,r[t];if(m=h.config.globalProperties,wt(m,t))return m[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return ad(s,t)?(s[t]=r,!0):o!==mt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,props:c,type:f}},d){let h;return!!(r[d]||e!==mt&&d[0]!=="$"&&wt(e,d)||ad(t,d)||wt(c,d)||wt(o,d)||wt(Yl,d)||wt(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function nb(){return rb().slots}function Lk(){return rb().attrs}function rb(e){const t=Qr();return t.setupContext||(t.setupContext=Lb(t))}function ou(e){return qe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function ca(e,t){return!e||!t?e||t:qe(e)&&qe(t)?e.concat(t):on({},ou(e),ou(t))}let Wd=!0;function Mk(e){const t=ob(e),r=e.proxy,o=e.ctx;Wd=!1,t.beforeCreate&&Dv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:x,updated:T,activated:L,deactivated:M,beforeDestroy:A,beforeUnmount:R,destroyed:B,unmounted:E,render:W,renderTracked:U,renderTriggered:se,errorCaptured:ne,serverPrefetch:Q,expose:K,inheritAttrs:V,components:P,directives:O,filters:N}=t;if(p&&Nk(p,o,null),f)for(const H in f){const ie=f[H];Ye(ie)&&(o[H]=ie.bind(r))}if(s){const H=s.call(r,r);xt(H)&&(e.data=ir(H))}if(Wd=!0,c)for(const H in c){const ie=c[H],me=Ye(ie)?ie.bind(r,r):Ye(ie.get)?ie.get.bind(r,r):Kr,xe=!Ye(ie)&&Ye(ie.set)?ie.set.bind(r):Kr,$e=be({get:me,set:xe});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>$e.value,set:Ve=>$e.value=Ve})}if(d)for(const H in d)ib(d[H],o,r,H);if(h){const H=Ye(h)?h.call(r):h;Reflect.ownKeys(H).forEach(ie=>{dr(ie,H[ie])})}v&&Dv(v,e,"c");function z(H,ie){qe(ie)?ie.forEach(me=>H(me.bind(r))):ie&&H(ie.bind(r))}if(z(yk,m),z(Ai,b),z(bk,x),z(wk,T),z(gk,L),z(vk,M),z(kk,ne),z(Sk,U),z(_k,se),z(Oa,R),z(Ra,E),z(xk,Q),qe(K))if(K.length){const H=e.exposed||(e.exposed={});K.forEach(ie=>{Object.defineProperty(H,ie,{get:()=>r[ie],set:me=>r[ie]=me,enumerable:!0})})}else e.exposed||(e.exposed={});W&&e.render===Kr&&(e.render=W),V!=null&&(e.inheritAttrs=V),P&&(e.components=P),O&&(e.directives=O),Q&&Jy(e)}function Nk(e,t,r=Kr){qe(e)&&(e=qd(e));for(const o in e){const s=e[o];let c;xt(s)?"default"in s?c=hn(s.from||o,s.default,!0):c=hn(s.from||o):c=hn(s),Mt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Dv(e,t,r){Rr(qe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function ib(e,t,r,o){let s=o.includes(".")?ab(r,o):()=>r[o];if(Dt(e)){const c=t[e];Ye(c)&&St(s,c)}else if(Ye(e))St(s,e.bind(r));else if(xt(e))if(qe(e))e.forEach(c=>ib(c,t,r,o));else{const c=Ye(e.handler)?e.handler.bind(r):t[e.handler];Ye(c)&&St(s,c,e)}}function ob(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>su(h,p,f,!0)),su(h,t,f)),xt(t)&&c.set(t,h),h}function su(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&su(e,c,r,!0),s&&s.forEach(f=>su(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=Ok[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const Ok={data:zv,props:Fv,emits:Fv,methods:Wl,computed:Wl,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Wl,directives:Wl,watch:Pk,provide:zv,inject:Rk};function zv(e,t){return t?e?function(){return on(Ye(e)?e.call(this,this):e,Ye(t)?t.call(this,this):t)}:t:e}function Rk(e,t){return Wl(qd(e),qd(t))}function qd(e){if(qe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Wl(e,t){return e?on(Object.create(null),e,t):t}function Fv(e,t){return e?qe(e)&&qe(t)?[...new Set([...e,...t])]:on(Object.create(null),ou(e),ou(t??{})):t}function Pk(e,t){if(!e)return t;if(!t)return e;const r=on(Object.create(null),e);for(const o in t)r[o]=Mn(e[o],t[o]);return r}function sb(){return{app:null,config:{isNativeTag:uy,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 $k=0;function Ik(e,t){return function(o,s=null){Ye(o)||(o=on({},o)),s!=null&&!xt(s)&&(s=null);const c=sb(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:$k++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:bT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ye(v.install)?(f.add(v),v.install(p,...m)):Ye(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const x=p._ceVNode||Ne(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,v,b),h=!0,p._container=v,v.__vue_app__=p,Vu(x.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Rr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=Ho;Ho=p;try{return v()}finally{Ho=m}}};return p}}let Ho=null;function dr(e,t){if(xn){let r=xn.provides;const o=xn.parent&&xn.parent.provides;o===r&&(r=xn.provides=Object.create(o)),r[e]=t}}function hn(e,t,r=!1){const o=Qr();if(o||Ho){let s=Ho?Ho._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ye(t)?t.call(o&&o.proxy):t}}function lb(){return!!(Qr()||Ho)}const Dk=Symbol.for("v-scx"),zk=()=>hn(Dk);function Uh(e,t){return Wu(e,null,t)}function Fk(e,t){return Wu(e,null,{flush:"sync"})}function St(e,t,r){return Wu(e,t,r)}function Wu(e,t,r=mt){const{immediate:o,deep:s,flush:c,once:f}=r,d=on({},r),h=t&&o||!t&&c!=="post";let p;if(fa){if(c==="sync"){const x=zk();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Kr,x.resume=Kr,x.pause=Kr,x}}const v=xn;d.call=(x,T,L)=>Rr(x,v,T,L);let m=!1;c==="post"?d.scheduler=x=>{qn(x,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(x,T)=>{T?x():Bh(x)}),d.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const b=ak(e,t,d);return fa&&(p?p.push(b):h&&b()),b}function Hk(e,t,r){const o=this.proxy,s=Dt(e)?e.includes(".")?ab(o,e):()=>o[e]:e.bind(o,o);let c;Ye(t)?c=t:(c=t.handler,r=t);const f=Pa(this),d=Wu(s,c.bind(o),r);return f(),d}function ab(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function qu(e,t,r=mt){const o=Qr(),s=sr(t),c=Ci(t),f=cb(e,s),d=Dy((h,p)=>{let v,m=mt,b;return Fk(()=>{const x=e[s];Vn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const T=r.set?r.set(x):x;if(!Vn(T,v)&&!(m!==mt&&Vn(x,m)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(v=x,p()),o.emit(`update:${t}`,T),Vn(x,T)&&Vn(x,m)&&!Vn(T,b)&&p(),m=x,b=T}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||mt:d,done:!1}:{done:!0}}}},d}const cb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sr(t)}Modifiers`]||e[`${Ci(t)}Modifiers`];function Bk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const c=t.startsWith("update:"),f=c&&cb(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Dt(v)?v.trim():v)),f.number&&(s=r.map(Rh)));let d,h=o[d=Hc(t)]||o[d=Hc(sr(t))];!h&&c&&(h=o[d=Hc(Ci(t))]),h&&Rr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Rr(p,e,6,s)}}const Wk=new WeakMap;function ub(e,t,r=!1){const o=r?Wk:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ye(e)){const h=p=>{const v=ub(p,t,!0);v&&(d=!0,on(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(xt(e)&&o.set(e,null),null):(qe(c)?c.forEach(h=>f[h]=null):on(f,c),xt(e)&&o.set(e,f),f)}function ju(e,t){return!e||!Lu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ci(t))||wt(e,t))}function Hv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:x,ctx:T,inheritAttrs:L}=e,M=ru(e);let A,R;try{if(r.shapeFlag&4){const E=s||o,W=E;A=Er(p.call(W,E,v,m,x,b,T)),R=d}else{const E=t;A=Er(E.length>1?E(m,{attrs:d,slots:f,emit:h}):E(m,null)),R=t.props?d:jk(d)}}catch(E){Zl.length=0,Na(E,e,1),A=Ne(ln)}let B=A;if(R&&L!==!1){const E=Object.keys(R),{shapeFlag:W}=B;E.length&&W&7&&(c&&E.some(Nh)&&(R=Uk(R,c)),B=lo(B,R,!1,!0))}return r.dirs&&(B=lo(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(r.dirs):r.dirs),r.transition&&aa(B,r.transition),A=B,ru(M),A}function qk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Us(s)){if(s.type!==ln||s.children==="v-if"){if(r)return;r=s}}else return}return r}const jk=e=>{let t;for(const r in e)(r==="class"||r==="style"||Lu(r))&&((t||(t={}))[r]=e[r]);return t},Uk=(e,t)=>{const r={};for(const o in e)(!Nh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Vk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Bv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!ju(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Bv(o,f,p):!0:!!f;return!1}function Bv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!ju(r,c))return!0}return!1}function Vh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const fb={},db=()=>Object.create(fb),hb=e=>Object.getPrototypeOf(e)===fb;function Gk(e,t,r,o=!1){const s={},c=db();e.propsDefaults=Object.create(null),pb(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:zh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function Kk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(ju(e.emitsOptions,b))continue;const x=t[b];if(h)if(wt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const T=sr(b);s[T]=jd(h,d,T,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{pb(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=Ci(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=jd(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&mi(e.attrs,"set","")}function pb(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Vl(h))continue;const p=t[h];let v;s&&wt(s,v=sr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:ju(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||mt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=jd(s,h,m,p[m],e,!wt(p,m))}}return f}function jd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ye(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Pa(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Ci(r))&&(o=!0))}return o}const Xk=new WeakMap;function gb(e,t,r=!1){const o=r?Xk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ye(e)){const v=m=>{h=!0;const[b,x]=gb(m,t,!0);on(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return xt(e)&&o.set(e,As),As;if(qe(c))for(let v=0;v<c.length;v++){const m=sr(c[v]);Wv(m)&&(f[m]=mt)}else if(c)for(const v in c){const m=sr(v);if(Wv(m)){const b=c[v],x=f[m]=qe(b)||Ye(b)?{type:b}:on({},b),T=x.type;let L=!1,M=!0;if(qe(T))for(let A=0;A<T.length;++A){const R=T[A],B=Ye(R)&&R.name;if(B==="Boolean"){L=!0;break}else B==="String"&&(M=!1)}else L=Ye(T)&&T.name==="Boolean";x[0]=L,x[1]=M,(L||wt(x,"default"))&&d.push(m)}}const p=[f,d];return xt(e)&&o.set(e,p),p}function Wv(e){return e[0]!=="$"&&!Vl(e)}const Gh=e=>e==="_"||e==="_ctx"||e==="$stable",Kh=e=>qe(e)?e.map(Er):[Er(e)],Yk=(e,t,r)=>{if(t._n)return t;const o=Xe((...s)=>Kh(t(...s)),r);return o._c=!1,o},vb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Gh(s))continue;const c=e[s];if(Ye(c))t[s]=Yk(s,c,o);else if(c!=null){const f=Kh(c);t[s]=()=>f}}},mb=(e,t)=>{const r=Kh(t);e.slots.default=()=>r},yb=(e,t,r)=>{for(const o in t)(r||!Gh(o))&&(e[o]=t[o])},Zk=(e,t,r)=>{const o=e.slots=db();if(e.vnode.shapeFlag&32){const s=t._;s?(yb(o,t,r),r&&py(o,"_",s,!0)):vb(t,o)}else t&&mb(e,t)},Jk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:yb(s,t,r):(c=!t.$stable,vb(t,s)),f=t}else t&&(mb(e,t),f={default:1});if(c)for(const d in s)!Gh(d)&&f[d]==null&&delete s[d]},qn=aT;function Qk(e){return eT(e)}function eT(e,t){const r=Pu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:x=Kr,insertStaticContent:T}=e,L=($,F,Y,ue=null,he=null,de=null,Se=void 0,Ee=null,ve=!!F.dynamicChildren)=>{if($===F)return;$&&!Gr($,F)&&(ue=I($),Ve($,he,de,!0),$=null),F.patchFlag===-2&&(ve=!1,F.dynamicChildren=null);const{type:ye,ref:je,shapeFlag:Oe}=F;switch(ye){case Uu:M($,F,Y,ue);break;case ln:A($,F,Y,ue);break;case ud:$==null&&R(F,Y,ue,Se);break;case tt:P($,F,Y,ue,he,de,Se,Ee,ve);break;default:Oe&1?W($,F,Y,ue,he,de,Se,Ee,ve):Oe&6?O($,F,Y,ue,he,de,Se,Ee,ve):(Oe&64||Oe&128)&&ye.process($,F,Y,ue,he,de,Se,Ee,ve,le)}je!=null&&he?Xl(je,$&&$.ref,de,F||$,!F):je==null&&$&&$.ref!=null&&Xl($.ref,null,de,$,!0)},M=($,F,Y,ue)=>{if($==null)o(F.el=d(F.children),Y,ue);else{const he=F.el=$.el;F.children!==$.children&&p(he,F.children)}},A=($,F,Y,ue)=>{$==null?o(F.el=h(F.children||""),Y,ue):F.el=$.el},R=($,F,Y,ue)=>{[$.el,$.anchor]=T($.children,F,Y,ue,$.el,$.anchor)},B=({el:$,anchor:F},Y,ue)=>{let he;for(;$&&$!==F;)he=b($),o($,Y,ue),$=he;o(F,Y,ue)},E=({el:$,anchor:F})=>{let Y;for(;$&&$!==F;)Y=b($),s($),$=Y;s(F)},W=($,F,Y,ue,he,de,Se,Ee,ve)=>{if(F.type==="svg"?Se="svg":F.type==="math"&&(Se="mathml"),$==null)U(F,Y,ue,he,de,Se,Ee,ve);else{const ye=$.el&&$.el._isVueCE?$.el:null;try{ye&&ye._beginPatch(),Q($,F,he,de,Se,Ee,ve)}finally{ye&&ye._endPatch()}}},U=($,F,Y,ue,he,de,Se,Ee)=>{let ve,ye;const{props:je,shapeFlag:Oe,transition:He,dirs:Ke}=$;if(ve=$.el=f($.type,de,je&&je.is,je),Oe&8?v(ve,$.children):Oe&16&&ne($.children,ve,null,ue,he,cd($,de),Se,Ee),Ke&&Co($,null,ue,"created"),se(ve,$,$.scopeId,Se,ue),je){for(const at in je)at!=="value"&&!Vl(at)&&c(ve,at,null,je[at],de,ue);"value"in je&&c(ve,"value",null,je.value,de),(ye=je.onVnodeBeforeMount)&&Ur(ye,ue,$)}Ke&&Co($,null,ue,"beforeMount");const ot=tT(he,He);ot&&He.beforeEnter(ve),o(ve,F,Y),((ye=je&&je.onVnodeMounted)||ot||Ke)&&qn(()=>{ye&&Ur(ye,ue,$),ot&&He.enter(ve),Ke&&Co($,null,ue,"mounted")},he)},se=($,F,Y,ue,he)=>{if(Y&&x($,Y),ue)for(let de=0;de<ue.length;de++)x($,ue[de]);if(he){let de=he.subTree;if(F===de||xb(de.type)&&(de.ssContent===F||de.ssFallback===F)){const Se=he.vnode;se($,Se,Se.scopeId,Se.slotScopeIds,he.parent)}}},ne=($,F,Y,ue,he,de,Se,Ee,ve=0)=>{for(let ye=ve;ye<$.length;ye++){const je=$[ye]=Ee?Yi($[ye]):Er($[ye]);L(null,je,F,Y,ue,he,de,Se,Ee)}},Q=($,F,Y,ue,he,de,Se)=>{const Ee=F.el=$.el;let{patchFlag:ve,dynamicChildren:ye,dirs:je}=F;ve|=$.patchFlag&16;const Oe=$.props||mt,He=F.props||mt;let Ke;if(Y&&Eo(Y,!1),(Ke=He.onVnodeBeforeUpdate)&&Ur(Ke,Y,F,$),je&&Co(F,$,Y,"beforeUpdate"),Y&&Eo(Y,!0),(Oe.innerHTML&&He.innerHTML==null||Oe.textContent&&He.textContent==null)&&v(Ee,""),ye?K($.dynamicChildren,ye,Ee,Y,ue,cd(F,he),de):Se||ie($,F,Ee,null,Y,ue,cd(F,he),de,!1),ve>0){if(ve&16)V(Ee,Oe,He,Y,he);else if(ve&2&&Oe.class!==He.class&&c(Ee,"class",null,He.class,he),ve&4&&c(Ee,"style",Oe.style,He.style,he),ve&8){const ot=F.dynamicProps;for(let at=0;at<ot.length;at++){const ft=ot[at],Nt=Oe[ft],ct=He[ft];(ct!==Nt||ft==="value")&&c(Ee,ft,Nt,ct,he,Y)}}ve&1&&$.children!==F.children&&v(Ee,F.children)}else!Se&&ye==null&&V(Ee,Oe,He,Y,he);((Ke=He.onVnodeUpdated)||je)&&qn(()=>{Ke&&Ur(Ke,Y,F,$),je&&Co(F,$,Y,"updated")},ue)},K=($,F,Y,ue,he,de,Se)=>{for(let Ee=0;Ee<F.length;Ee++){const ve=$[Ee],ye=F[Ee],je=ve.el&&(ve.type===tt||!Gr(ve,ye)||ve.shapeFlag&198)?m(ve.el):Y;L(ve,ye,je,null,ue,he,de,Se,!0)}},V=($,F,Y,ue,he)=>{if(F!==Y){if(F!==mt)for(const de in F)!Vl(de)&&!(de in Y)&&c($,de,F[de],null,he,ue);for(const de in Y){if(Vl(de))continue;const Se=Y[de],Ee=F[de];Se!==Ee&&de!=="value"&&c($,de,Ee,Se,he,ue)}"value"in Y&&c($,"value",F.value,Y.value,he)}},P=($,F,Y,ue,he,de,Se,Ee,ve)=>{const ye=F.el=$?$.el:d(""),je=F.anchor=$?$.anchor:d("");let{patchFlag:Oe,dynamicChildren:He,slotScopeIds:Ke}=F;Ke&&(Ee=Ee?Ee.concat(Ke):Ke),$==null?(o(ye,Y,ue),o(je,Y,ue),ne(F.children||[],Y,je,he,de,Se,Ee,ve)):Oe>0&&Oe&64&&He&&$.dynamicChildren?(K($.dynamicChildren,He,Y,he,de,Se,Ee),(F.key!=null||he&&F===he.subTree)&&bb($,F,!0)):ie($,F,Y,je,he,de,Se,Ee,ve)},O=($,F,Y,ue,he,de,Se,Ee,ve)=>{F.slotScopeIds=Ee,$==null?F.shapeFlag&512?he.ctx.activate(F,Y,ue,Se,ve):N(F,Y,ue,he,de,Se,ve):S($,F,ve)},N=($,F,Y,ue,he,de,Se)=>{const Ee=$.component=hT($,ue,he);if(Hu($)&&(Ee.ctx.renderer=le),pT(Ee,!1,Se),Ee.asyncDep){if(he&&he.registerDep(Ee,z,Se),!$.el){const ve=Ee.subTree=Ne(ln);A(null,ve,F,Y),$.placeholder=ve.el}}else z(Ee,$,F,Y,he,de,Se)},S=($,F,Y)=>{const ue=F.component=$.component;if(Vk($,F,Y))if(ue.asyncDep&&!ue.asyncResolved){H(ue,F,Y);return}else ue.next=F,ue.update();else F.el=$.el,ue.vnode=F},z=($,F,Y,ue,he,de,Se)=>{const Ee=()=>{if($.isMounted){let{next:Oe,bu:He,u:Ke,parent:ot,vnode:at}=$;{const Wt=wb($);if(Wt){Oe&&(Oe.el=at.el,H($,Oe,Se)),Wt.asyncDep.then(()=>{$.isUnmounted||Ee()});return}}let ft=Oe,Nt;Eo($,!1),Oe?(Oe.el=at.el,H($,Oe,Se)):Oe=at,He&&Bc(He),(Nt=Oe.props&&Oe.props.onVnodeBeforeUpdate)&&Ur(Nt,ot,Oe,at),Eo($,!0);const ct=Hv($),Xt=$.subTree;$.subTree=ct,L(Xt,ct,m(Xt.el),I(Xt),$,he,de),Oe.el=ct.el,ft===null&&Vh($,ct.el),Ke&&qn(Ke,he),(Nt=Oe.props&&Oe.props.onVnodeUpdated)&&qn(()=>Ur(Nt,ot,Oe,at),he)}else{let Oe;const{el:He,props:Ke}=F,{bm:ot,m:at,parent:ft,root:Nt,type:ct}=$,Xt=Ns(F);Eo($,!1),ot&&Bc(ot),!Xt&&(Oe=Ke&&Ke.onVnodeBeforeMount)&&Ur(Oe,ft,F),Eo($,!0);{Nt.ce&&Nt.ce._def.shadowRoot!==!1&&Nt.ce._injectChildStyle(ct);const Wt=$.subTree=Hv($);L(null,Wt,Y,ue,$,he,de),F.el=Wt.el}if(at&&qn(at,he),!Xt&&(Oe=Ke&&Ke.onVnodeMounted)){const Wt=F;qn(()=>Ur(Oe,ft,Wt),he)}(F.shapeFlag&256||ft&&Ns(ft.vnode)&&ft.vnode.shapeFlag&256)&&$.a&&qn($.a,he),$.isMounted=!0,F=Y=ue=null}};$.scope.on();const ve=$.effect=new xy(Ee);$.scope.off();const ye=$.update=ve.run.bind(ve),je=$.job=ve.runIfDirty.bind(ve);je.i=$,je.id=$.uid,ve.scheduler=()=>Bh(je),Eo($,!0),ye()},H=($,F,Y)=>{F.component=$;const ue=$.vnode.props;$.vnode=F,$.next=null,Kk($,F.props,ue,Y),Jk($,F.children,Y),xi(),Rv($),_i()},ie=($,F,Y,ue,he,de,Se,Ee,ve=!1)=>{const ye=$&&$.children,je=$?$.shapeFlag:0,Oe=F.children,{patchFlag:He,shapeFlag:Ke}=F;if(He>0){if(He&128){xe(ye,Oe,Y,ue,he,de,Se,Ee,ve);return}else if(He&256){me(ye,Oe,Y,ue,he,de,Se,Ee,ve);return}}Ke&8?(je&16&&Me(ye,he,de),Oe!==ye&&v(Y,Oe)):je&16?Ke&16?xe(ye,Oe,Y,ue,he,de,Se,Ee,ve):Me(ye,he,de,!0):(je&8&&v(Y,""),Ke&16&&ne(Oe,Y,ue,he,de,Se,Ee,ve))},me=($,F,Y,ue,he,de,Se,Ee,ve)=>{$=$||As,F=F||As;const ye=$.length,je=F.length,Oe=Math.min(ye,je);let He;for(He=0;He<Oe;He++){const Ke=F[He]=ve?Yi(F[He]):Er(F[He]);L($[He],Ke,Y,null,he,de,Se,Ee,ve)}ye>je?Me($,he,de,!0,!1,Oe):ne(F,Y,ue,he,de,Se,Ee,ve,Oe)},xe=($,F,Y,ue,he,de,Se,Ee,ve)=>{let ye=0;const je=F.length;let Oe=$.length-1,He=je-1;for(;ye<=Oe&&ye<=He;){const Ke=$[ye],ot=F[ye]=ve?Yi(F[ye]):Er(F[ye]);if(Gr(Ke,ot))L(Ke,ot,Y,null,he,de,Se,Ee,ve);else break;ye++}for(;ye<=Oe&&ye<=He;){const Ke=$[Oe],ot=F[He]=ve?Yi(F[He]):Er(F[He]);if(Gr(Ke,ot))L(Ke,ot,Y,null,he,de,Se,Ee,ve);else break;Oe--,He--}if(ye>Oe){if(ye<=He){const Ke=He+1,ot=Ke<je?F[Ke].el:ue;for(;ye<=He;)L(null,F[ye]=ve?Yi(F[ye]):Er(F[ye]),Y,ot,he,de,Se,Ee,ve),ye++}}else if(ye>He)for(;ye<=Oe;)Ve($[ye],he,de,!0),ye++;else{const Ke=ye,ot=ye,at=new Map;for(ye=ot;ye<=He;ye++){const zt=F[ye]=ve?Yi(F[ye]):Er(F[ye]);zt.key!=null&&at.set(zt.key,ye)}let ft,Nt=0;const ct=He-ot+1;let Xt=!1,Wt=0;const zn=new Array(ct);for(ye=0;ye<ct;ye++)zn[ye]=0;for(ye=Ke;ye<=Oe;ye++){const zt=$[ye];if(Nt>=ct){Ve(zt,he,de,!0);continue}let Fn;if(zt.key!=null)Fn=at.get(zt.key);else for(ft=ot;ft<=He;ft++)if(zn[ft-ot]===0&&Gr(zt,F[ft])){Fn=ft;break}Fn===void 0?Ve(zt,he,de,!0):(zn[Fn-ot]=ye+1,Fn>=Wt?Wt=Fn:Xt=!0,L(zt,F[Fn],Y,null,he,de,Se,Ee,ve),Nt++)}const Fr=Xt?nT(zn):As;for(ft=Fr.length-1,ye=ct-1;ye>=0;ye--){const zt=ot+ye,Fn=F[zt],it=F[zt+1],po=zt+1<je?it.el||it.placeholder:ue;zn[ye]===0?L(null,Fn,Y,po,he,de,Se,Ee,ve):Xt&&(ft<0||ye!==Fr[ft]?$e(Fn,Y,po,2):ft--)}}},$e=($,F,Y,ue,he=null)=>{const{el:de,type:Se,transition:Ee,children:ve,shapeFlag:ye}=$;if(ye&6){$e($.component.subTree,F,Y,ue);return}if(ye&128){$.suspense.move(F,Y,ue);return}if(ye&64){Se.move($,F,Y,le);return}if(Se===tt){o(de,F,Y);for(let Oe=0;Oe<ve.length;Oe++)$e(ve[Oe],F,Y,ue);o($.anchor,F,Y);return}if(Se===ud){B($,F,Y);return}if(ue!==2&&ye&1&&Ee)if(ue===0)Ee.beforeEnter(de),o(de,F,Y),qn(()=>Ee.enter(de),he);else{const{leave:Oe,delayLeave:He,afterLeave:Ke}=Ee,ot=()=>{$.ctx.isUnmounted?s(de):o(de,F,Y)},at=()=>{de._isLeaving&&de[vi](!0),Oe(de,()=>{ot(),Ke&&Ke()})};He?He(de,ot,at):at()}else o(de,F,Y)},Ve=($,F,Y,ue=!1,he=!1)=>{const{type:de,props:Se,ref:Ee,children:ve,dynamicChildren:ye,shapeFlag:je,patchFlag:Oe,dirs:He,cacheIndex:Ke}=$;if(Oe===-2&&(he=!1),Ee!=null&&(xi(),Xl(Ee,null,Y,$,!0),_i()),Ke!=null&&(F.renderCache[Ke]=void 0),je&256){F.ctx.deactivate($);return}const ot=je&1&&He,at=!Ns($);let ft;if(at&&(ft=Se&&Se.onVnodeBeforeUnmount)&&Ur(ft,F,$),je&6)Fe($.component,Y,ue);else{if(je&128){$.suspense.unmount(Y,ue);return}ot&&Co($,null,F,"beforeUnmount"),je&64?$.type.remove($,F,Y,le,ue):ye&&!ye.hasOnce&&(de!==tt||Oe>0&&Oe&64)?Me(ye,F,Y,!1,!0):(de===tt&&Oe&384||!he&&je&16)&&Me(ve,F,Y),ue&&nt($)}(at&&(ft=Se&&Se.onVnodeUnmounted)||ot)&&qn(()=>{ft&&Ur(ft,F,$),ot&&Co($,null,F,"unmounted")},Y)},nt=$=>{const{type:F,el:Y,anchor:ue,transition:he}=$;if(F===tt){Je(Y,ue);return}if(F===ud){E($);return}const de=()=>{s(Y),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if($.shapeFlag&1&&he&&!he.persisted){const{leave:Se,delayLeave:Ee}=he,ve=()=>Se(Y,de);Ee?Ee($.el,de,ve):ve()}else de()},Je=($,F)=>{let Y;for(;$!==F;)Y=b($),s($),$=Y;s(F)},Fe=($,F,Y)=>{const{bum:ue,scope:he,job:de,subTree:Se,um:Ee,m:ve,a:ye}=$;qv(ve),qv(ye),ue&&Bc(ue),he.stop(),de&&(de.flags|=8,Ve(Se,$,F,Y)),Ee&&qn(Ee,F),qn(()=>{$.isUnmounted=!0},F)},Me=($,F,Y,ue=!1,he=!1,de=0)=>{for(let Se=de;Se<$.length;Se++)Ve($[Se],F,Y,ue,he)},I=$=>{if($.shapeFlag&6)return I($.component.subTree);if($.shapeFlag&128)return $.suspense.next();const F=b($.anchor||$.el),Y=F&&F[fk];return Y?b(Y):F};let G=!1;const ee=($,F,Y)=>{$==null?F._vnode&&Ve(F._vnode,null,null,!0):L(F._vnode||null,$,F,null,null,null,Y),F._vnode=$,G||(G=!0,Rv(),By(),G=!1)},le={p:L,um:Ve,m:$e,r:nt,mt:N,mc:ne,pc:ie,pbc:K,n:I,o:e};return{render:ee,hydrate:void 0,createApp:Ik(ee)}}function cd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Eo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bb(e,t,r=!1){const o=e.children,s=t.children;if(qe(o)&&qe(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Yi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&bb(f,d)),d.type===Uu&&d.patchFlag!==-1&&(d.el=f.el),d.type===ln&&!d.el&&(d.el=f.el)}}function nT(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function wb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wb(t)}function qv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const xb=e=>e.__isSuspense;let Ud=0;const rT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)iT(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}oT(e,t,r,o,s,f,d,h,p)}},hydrate:sT,normalize:lT},Xh=rT;function ua(e,t){const r=e.props&&e.props[t];Ye(r)&&r()}function iT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=_b(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(ua(e,"onPending"),ua(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Os(b,e.ssFallback)):b.resolve(!1,!0)}function oT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:T,pendingBranch:L,isInFallback:M,isHydrating:A}=m;if(L)m.pendingBranch=b,Gr(L,b)?(h(L,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():M&&(A||(h(T,x,r,o,s,null,c,f,d),Os(m,x)))):(m.pendingId=Ud++,A?(m.isHydrating=!1,m.activeBranch=L):p(L,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),M?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(T,x,r,o,s,null,c,f,d),Os(m,x))):T&&Gr(T,b)?(h(T,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(T&&Gr(T,b))h(T,b,r,o,s,m,c,f,d),Os(m,b);else if(ua(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ud++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:R,pendingId:B}=m;R>0?setTimeout(()=>{m.pendingId===B&&m.fallback(x)},R):R===0&&m.fallback(x)}}function _b(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:x,n:T,o:{parentNode:L,remove:M}}=p;let A;const R=cT(e);R&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const B=e.props?gy(e.props.timeout):void 0,E=c,W={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ud++,timeout:typeof B=="number"?B:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(U=!1,se=!1){const{vnode:ne,activeBranch:Q,pendingBranch:K,pendingId:V,effects:P,parentComponent:O,container:N,isInFallback:S}=W;let z=!1;W.isHydrating?W.isHydrating=!1:U||(z=Q&&K.transition&&K.transition.mode==="out-in",z&&(Q.transition.afterLeave=()=>{V===W.pendingId&&(b(K,N,c===E?T(Q):c,0),zd(P),S&&ne.ssFallback&&(ne.ssFallback.el=null))}),Q&&(L(Q.el)===N&&(c=T(Q)),x(Q,O,W,!0),!z&&S&&ne.ssFallback&&qn(()=>ne.ssFallback.el=null,W)),z||b(K,N,c,0)),Os(W,K),W.pendingBranch=null,W.isInFallback=!1;let H=W.parent,ie=!1;for(;H;){if(H.pendingBranch){H.effects.push(...P),ie=!0;break}H=H.parent}!ie&&!z&&zd(P),W.effects=[],R&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!se&&t.resolve()),ua(ne,"onResolve")},fallback(U){if(!W.pendingBranch)return;const{vnode:se,activeBranch:ne,parentComponent:Q,container:K,namespace:V}=W;ua(se,"onFallback");const P=T(ne),O=()=>{W.isInFallback&&(m(null,U,K,P,Q,null,V,d,h),Os(W,U))},N=U.transition&&U.transition.mode==="out-in";N&&(ne.transition.afterLeave=O),W.isInFallback=!0,x(ne,Q,null,!0),N||O()},move(U,se,ne){W.activeBranch&&b(W.activeBranch,U,se,ne),W.container=U},next(){return W.activeBranch&&T(W.activeBranch)},registerDep(U,se,ne){const Q=!!W.pendingBranch;Q&&W.deps++;const K=U.vnode.el;U.asyncDep.catch(V=>{Na(V,U,0)}).then(V=>{if(U.isUnmounted||W.isUnmounted||W.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:P}=U;Gd(U,V),K&&(P.el=K);const O=!K&&U.subTree.el;se(U,P,L(K||U.subTree.el),K?null:T(U.subTree),W,f,ne),O&&(P.placeholder=null,M(O)),Vh(U,P.el),Q&&--W.deps===0&&W.resolve()})},unmount(U,se){W.isUnmounted=!0,W.activeBranch&&x(W.activeBranch,r,U,se),W.pendingBranch&&x(W.pendingBranch,r,U,se)}};return W}function sT(e,t,r,o,s,c,f,d,h){const p=t.suspense=_b(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function lT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=jv(o?r.default:r),e.ssFallback=o?jv(r.fallback):Ne(ln)}function jv(e){let t;if(Ye(e)){const r=qs&&e._c;r&&(e._d=!1,re()),e=e(),r&&(e._d=!0,t=Xn,Sb())}return qe(e)&&(e=qk(e)),e=Er(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function aT(e,t){t&&t.pendingBranch?qe(e)?t.effects.push(...e):t.effects.push(e):zd(e)}function Os(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Vh(o,s))}function cT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const tt=Symbol.for("v-fgt"),Uu=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),ud=Symbol.for("v-stc"),Zl=[];let Xn=null;function re(e=!1){Zl.push(Xn=e?null:[])}function Sb(){Zl.pop(),Xn=Zl[Zl.length-1]||null}let qs=1;function js(e,t=!1){qs+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function kb(e){return e.dynamicChildren=qs>0?Xn||As:null,Sb(),qs>0&&Xn&&Xn.push(e),e}function ge(e,t,r,o,s,c){return kb(J(e,t,r,o,s,c,!0))}function Ge(e,t,r,o,s){return kb(Ne(e,t,r,o,s,!0))}function Us(e){return e?e.__v_isVNode===!0:!1}function Gr(e,t){return e.type===t.type&&e.key===t.key}const Tb=({key:e})=>e??null,Wc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||Mt(e)||Ye(e)?{i:gn,r:e,k:t,f:!!r}:e:null);function J(e,t=null,r=null,o=0,s=null,c=e===tt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tb(t),ref:t&&Wc(t),scopeId:Fu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:gn};return d?(Yh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Dt(r)?8:16),qs>0&&!f&&Xn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ne=uT;function uT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===eb)&&(e=ln),Us(e)){const d=lo(e,t,!0);return r&&Yh(d,r),qs>0&&!c&&Xn&&(d.shapeFlag&6?Xn[Xn.indexOf(e)]=d:Xn.push(d)),d.patchFlag=-2,d}if(yT(e)&&(e=e.__vccOpts),t){t=Cb(t);let{class:d,style:h}=t;d&&!Dt(d)&&(t.class=lt(d)),xt(h)&&(zu(h)&&!qe(h)&&(h=on({},h)),t.style=Vt(h))}const f=Dt(e)?1:xb(e)?128:Vy(e)?64:xt(e)?4:Ye(e)?2:0;return J(e,t,r,o,s,f,c,!0)}function Cb(e){return e?zu(e)||hb(e)?on({},e):e:null}function lo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?wi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Tb(p),ref:t&&t.ref?r&&c?qe(c)?c.concat(Wc(t)):[c,Wc(t)]:Wc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==tt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lo(e.ssContent),ssFallback:e.ssFallback&&lo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&aa(v,h.clone(v)),v}function ut(e=" ",t=0){return Ne(Uu,null,e,t)}function ze(e="",t=!1){return t?(re(),Ge(ln,null,e)):Ne(ln,null,e)}function Er(e){return e==null||typeof e=="boolean"?Ne(ln):qe(e)?Ne(tt,null,e.slice()):Us(e)?Yi(e):Ne(Uu,null,String(e))}function Yi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:lo(e)}function Yh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(qe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Yh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!hb(t)?t._ctx=gn:s===3&&gn&&(gn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ye(t)?(t={default:t,_ctx:gn},r=32):(t=String(t),o&64?(r=16,t=[ut(t)]):r=8);e.children=t,e.shapeFlag|=r}function wi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=lt([t.class,o.class]));else if(s==="style")t.style=Vt([t.style,o.style]);else if(Lu(s)){const c=t[s],f=o[s];f&&c!==f&&!(qe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Ur(e,t,r,o=null){Rr(e,t,7,[r,o])}const fT=sb();let dT=0;function hT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||fT,c={uid:dT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new NS(!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:gb(o,s),emitsOptions:ub(o,s),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:o.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Bk.bind(null,c),e.ce&&e.ce(c),c}let xn=null;const Qr=()=>xn||gn;let lu,Vd;{const e=Pu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};lu=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),Vd=t("__VUE_SSR_SETTERS__",r=>fa=r)}const Pa=e=>{const t=xn;return lu(e),e.scope.on(),()=>{e.scope.off(),lu(t)}},Uv=()=>{xn&&xn.scope.off(),lu(null)};function Eb(e){return e.vnode.shapeFlag&4}let fa=!1;function pT(e,t=!1,r=!1){t&&Vd(t);const{props:o,children:s}=e.vnode,c=Eb(e);Gk(e,o,c,t),Zk(e,s,r||t);const f=c?gT(e,t):void 0;return t&&Vd(!1),f}function gT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ak);const{setup:o}=r;if(o){xi();const s=e.setupContext=o.length>1?Lb(e):null,c=Pa(e),f=Ma(o,e,0,[e.props,s]),d=fy(f);if(_i(),c(),(d||e.sp)&&!Ns(e)&&Jy(e),d){if(f.then(Uv,Uv),t)return f.then(h=>{Gd(e,h)}).catch(h=>{Na(h,e,0)});e.asyncDep=f}else Gd(e,f)}else Ab(e)}function Gd(e,t,r){Ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=Iy(t)),Ab(e)}function Ab(e,t,r){const o=e.type;e.render||(e.render=o.render||Kr);{const s=Pa(e);xi();try{Mk(e)}finally{_i(),s()}}}const vT={get(e,t){return wn(e,"get",""),e[t]}};function Lb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,vT),slots:e.slots,emit:e.emit,expose:t}}function Vu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Iy(Hh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Yl)return Yl[r](e)},has(t,r){return r in t||r in Yl}})):e.proxy}function mT(e,t=!0){return Ye(e)?e.displayName||e.name:e.name||t&&e.__name}function yT(e){return Ye(e)&&"__vccOpts"in e}const be=(e,t)=>sk(e,t,fa);function $a(e,t,r){try{js(-1);const o=arguments.length;return o===2?xt(t)&&!qe(t)?Us(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Us(r)&&(r=[r]),Ne(e,t,r))}finally{js(1)}}const bT="3.5.25";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.25
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Kd;const Vv=typeof window<"u"&&window.trustedTypes;if(Vv)try{Kd=Vv.createPolicy("vue",{createHTML:e=>e})}catch{}const Mb=Kd?e=>Kd.createHTML(e):e=>e,wT="http://www.w3.org/2000/svg",xT="http://www.w3.org/1998/Math/MathML",pi=typeof document<"u"?document:null,Gv=pi&&pi.createElement("template"),_T={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?pi.createElementNS(wT,e):t==="mathml"?pi.createElementNS(xT,e):r?pi.createElement(e,{is:r}):pi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>pi.createTextNode(e),createComment:e=>pi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Gv.innerHTML=Mb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Gv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},qi="transition",$l="animation",da=Symbol("_vtc"),Nb={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},ST=on({},Gy,Nb),kT=e=>(e.displayName="Transition",e.props=ST,e),TT=kT((e,{slots:t})=>$a(pk,CT(e),t)),Ao=(e,t=[])=>{qe(e)?e.forEach(r=>r(...t)):e&&e(...t)},Kv=e=>e?qe(e)?e.some(t=>t.length>1):e.length>1:!1;function CT(e){const t={};for(const P in e)P in Nb||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,T=ET(s),L=T&&T[0],M=T&&T[1],{onBeforeEnter:A,onEnter:R,onEnterCancelled:B,onLeave:E,onLeaveCancelled:W,onBeforeAppear:U=A,onAppear:se=R,onAppearCancelled:ne=B}=t,Q=(P,O,N,S)=>{P._enterCancelled=S,Lo(P,O?v:d),Lo(P,O?p:f),N&&N()},K=(P,O)=>{P._isLeaving=!1,Lo(P,m),Lo(P,x),Lo(P,b),O&&O()},V=P=>(O,N)=>{const S=P?se:R,z=()=>Q(O,P,N);Ao(S,[O,z]),Xv(()=>{Lo(O,P?h:c),ui(O,P?v:d),Kv(S)||Yv(O,o,L,z)})};return on(t,{onBeforeEnter(P){Ao(A,[P]),ui(P,c),ui(P,f)},onBeforeAppear(P){Ao(U,[P]),ui(P,h),ui(P,p)},onEnter:V(!1),onAppear:V(!0),onLeave(P,O){P._isLeaving=!0;const N=()=>K(P,O);ui(P,m),P._enterCancelled?(ui(P,b),Qv(P)):(Qv(P),ui(P,b)),Xv(()=>{P._isLeaving&&(Lo(P,m),ui(P,x),Kv(E)||Yv(P,o,M,N))}),Ao(E,[P,N])},onEnterCancelled(P){Q(P,!1,void 0,!0),Ao(B,[P])},onAppearCancelled(P){Q(P,!0,void 0,!0),Ao(ne,[P])},onLeaveCancelled(P){K(P),Ao(W,[P])}})}function ET(e){if(e==null)return null;if(xt(e))return[fd(e.enter),fd(e.leave)];{const t=fd(e);return[t,t]}}function fd(e){return gy(e)}function ui(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[da]||(e[da]=new Set)).add(t)}function Lo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[da];r&&(r.delete(t),r.size||(e[da]=void 0))}function Xv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let AT=0;function Yv(e,t,r,o){const s=e._endId=++AT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=LT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function LT(e,t){const r=window.getComputedStyle(e),o=T=>(r[T]||"").split(", "),s=o(`${qi}Delay`),c=o(`${qi}Duration`),f=Zv(s,c),d=o(`${$l}Delay`),h=o(`${$l}Duration`),p=Zv(d,h);let v=null,m=0,b=0;t===qi?f>0&&(v=qi,m=f,b=c.length):t===$l?p>0&&(v=$l,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?qi:$l:null,b=v?v===qi?c.length:h.length:0);const x=v===qi&&/\b(?:transform|all)(?:,|$)/.test(o(`${qi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Zv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Jv(r)+Jv(e[o])))}function Jv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Qv(e){return(e?e.ownerDocument:document).body.offsetHeight}function MT(e,t,r){const o=e[da];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const au=Symbol("_vod"),Ob=Symbol("_vsh"),eo={name:"show",beforeMount(e,{value:t},{transition:r}){e[au]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Il(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Il(e,!0),o.enter(e)):o.leave(e,()=>{Il(e,!1)}):Il(e,t))},beforeUnmount(e,{value:t}){Il(e,t)}};function Il(e,t){e.style.display=t?e[au]:"none",e[Ob]=!t}const NT=Symbol(""),OT=/(?:^|;)\s*display\s*:/;function RT(e,t,r){const o=e.style,s=Dt(r);let c=!1;if(r&&!s){if(t)if(Dt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&qc(o,d,"")}else for(const f in t)r[f]==null&&qc(o,f,"");for(const f in r)f==="display"&&(c=!0),qc(o,f,r[f])}else if(s){if(t!==r){const f=o[NT];f&&(r+=";"+f),o.cssText=r,c=OT.test(r)}}else t&&e.removeAttribute("style");au in e&&(e[au]=c?o.display:"",e[Ob]&&(o.display="none"))}const em=/\s*!important$/;function qc(e,t,r){if(qe(r))r.forEach(o=>qc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=PT(e,t);em.test(r)?e.setProperty(Ci(o),r.replace(em,""),"important"):e[o]=r}}const tm=["Webkit","Moz","ms"],dd={};function PT(e,t){const r=dd[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return dd[t]=o;o=Ru(o);for(let s=0;s<tm.length;s++){const c=tm[s]+o;if(c in e)return dd[t]=c}return t}const nm="http://www.w3.org/1999/xlink";function rm(e,t,r,o,s,c=LS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(nm,t.slice(6,t.length)):e.setAttributeNS(nm,t,r):r==null||c&&!vy(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Nr(r)?String(r):r)}function im(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Mb(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=vy(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Po(e,t,r,o){e.addEventListener(t,r,o)}function $T(e,t,r,o){e.removeEventListener(t,r,o)}const om=Symbol("_vei");function IT(e,t,r,o,s=null){const c=e[om]||(e[om]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=DT(t);if(o){const p=c[t]=HT(o,s);Po(e,d,p,h)}else f&&($T(e,d,f,h),c[t]=void 0)}}const sm=/(?:Once|Passive|Capture)$/;function DT(e){let t;if(sm.test(e)){t={};let o;for(;o=e.match(sm);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ci(e.slice(2)),t]}let hd=0;const zT=Promise.resolve(),FT=()=>hd||(zT.then(()=>hd=0),hd=Date.now());function HT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Rr(BT(o,r.value),t,5,[o])};return r.value=e,r.attached=FT(),r}function BT(e,t){if(qe(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const lm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,WT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?MT(e,o,f):t==="style"?RT(e,r,o):Lu(t)?Nh(t)||IT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qT(e,t,o,f))?(im(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rm(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(o))?im(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),rm(e,t,o,f))};function qT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&lm(t)&&Ye(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return lm(t)&&Dt(r)?!1:t in e}const cu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qe(t)?r=>Bc(t,r):t};function jT(e){e.target.composing=!0}function am(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rs=Symbol("_assign");function cm(e,t,r){return t&&(e=e.trim()),r&&(e=Rh(e)),e}const Rb={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Rs]=cu(s);const c=o||s.props&&s.props.type==="number";Po(e,t?"change":"input",f=>{f.target.composing||e[Rs](cm(e.value,r,c))}),(r||c)&&Po(e,"change",()=>{e.value=cm(e.value,r,c)}),t||(Po(e,"compositionstart",jT),Po(e,"compositionend",am),Po(e,"change",am))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Rs]=cu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Rh(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},Pb={deep:!0,created(e,t,r){e[Rs]=cu(r),Po(e,"change",()=>{const o=e._modelValue,s=UT(e),c=e.checked,f=e[Rs];if(qe(o)){const d=my(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Mu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f($b(e,c))})},mounted:um,beforeUpdate(e,t,r){e[Rs]=cu(r),um(e,t,r)}};function um(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(qe(t))s=my(t,o.props.value)>-1;else if(Mu(t))s=t.has(o.props.value);else{if(t===r)return;s=$u(t,$b(e,!0))}e.checked!==s&&(e.checked=s)}function UT(e){return"_value"in e?e._value:e.value}function $b(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const VT=["ctrl","shift","alt","meta"],GT={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)=>VT.some(r=>e[`${r}Key`]&&!t.includes(r))},jc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=GT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},KT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ci(s.key);if(t.some(f=>f===c||KT[f]===c))return e(s)}))},XT=on({patchProp:WT},_T);let fm;function YT(){return fm||(fm=Qk(XT))}const Ib=((...e)=>{const t=YT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=JT(o);if(!s)return;const c=t._component;!Ye(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,ZT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function ZT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function JT(e){return Dt(e)?document.querySelector(e):e}const Li=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},QT={};function eC(e,t){const r=Wo("RouterView");return re(),Ge(r)}const tC=Li(QT,[["render",eC]]),nC=["top","right","bottom","left"],dm=["start","end"],hm=nC.reduce((e,t)=>e.concat(t,t+"-"+dm[0],t+"-"+dm[1]),[]),ha=Math.min,Oo=Math.max,rC={left:"right",right:"left",bottom:"top",top:"bottom"},iC={start:"end",end:"start"};function Yd(e,t,r){return Oo(e,ha(t,r))}function jo(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Mr(e){return e.split("-")[1]}function Db(e){return e==="x"?"y":"x"}function Zh(e){return e==="y"?"height":"width"}function Ia(e){return["top","bottom"].includes(Jr(e))?"y":"x"}function Jh(e){return Db(Ia(e))}function zb(e,t,r){r===void 0&&(r=!1);const o=Mr(e),s=Jh(e),c=Zh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=fu(f)),[f,fu(f)]}function oC(e){const t=fu(e);return[uu(e),t,uu(t)]}function uu(e){return e.replace(/start|end/g,t=>iC[t])}function sC(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function lC(e,t,r,o){const s=Mr(e);let c=sC(Jr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(uu)))),c}function fu(e){return e.replace(/left|right|bottom|top/g,t=>rC[t])}function aC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fb(e){return typeof e!="number"?aC(e):{top:e,right:e,bottom:e,left:e}}function Jl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function pm(e,t,r){let{reference:o,floating:s}=e;const c=Ia(t),f=Jh(t),d=Zh(f),h=Jr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Mr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const cC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=pm(p,o,h),b=o,x={},T=0;for(let L=0;L<d.length;L++){const{name:M,fn:A}=d[L],{x:R,y:B,data:E,reset:W}=await A({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=R??v,m=B??m,x={...x,[M]:{...x[M],...E}},W&&T<=50&&(T++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(p=W.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):W.rects),{x:v,y:m}=pm(p,b,h)),L=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function Gu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=jo(t,e),T=Fb(x),M=d[b?m==="floating"?"reference":"floating":m],A=Jl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(M)))==null||r?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),R=m==="floating"?{...f.floating,x:o,y:s}:f.reference,B=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(B))?await(c.getScale==null?void 0:c.getScale(B))||{x:1,y:1}:{x:1,y:1},W=Jl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:B,strategy:h}):R);return{top:(A.top-W.top+T.top)/E.y,bottom:(W.bottom-A.bottom+T.bottom)/E.y,left:(A.left-W.left+T.left)/E.x,right:(W.right-A.right+T.right)/E.x}}const uC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=jo(e,t)||{};if(p==null)return{};const m=Fb(v),b={x:r,y:o},x=Jh(s),T=Zh(x),L=await f.getDimensions(p),M=x==="y",A=M?"top":"left",R=M?"bottom":"right",B=M?"clientHeight":"clientWidth",E=c.reference[T]+c.reference[x]-b[x]-c.floating[T],W=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let se=U?U[B]:0;(!se||!await(f.isElement==null?void 0:f.isElement(U)))&&(se=d.floating[B]||c.floating[T]);const ne=E/2-W/2,Q=se/2-L[T]/2-1,K=ha(m[A],Q),V=ha(m[R],Q),P=K,O=se-L[T]-V,N=se/2-L[T]/2+ne,S=Yd(P,N,O),z=!h.arrow&&Mr(s)!=null&&N!==S&&c.reference[T]/2-(N<P?K:V)-L[T]/2<0,H=z?N<P?N-P:N-O:0;return{[x]:b[x]+H,data:{[x]:S,centerOffset:N-S-H,...z&&{alignmentOffset:H}},reset:z}}});function fC(e,t,r){return(e?[...r.filter(s=>Mr(s)===e),...r.filter(s=>Mr(s)!==e)]:r.filter(s=>Jr(s)===s)).filter(s=>e?Mr(s)===e||(t?uu(s)!==s:!1):!0)}const dC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=hm,autoAlignment:x=!0,...T}=jo(e,t),L=m!==void 0||b===hm?fC(m||null,x,b):b,M=await Gu(t,T),A=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[A];if(R==null)return{};const B=zb(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const E=[M[Jr(R)],M[B[0]],M[B[1]]],W=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:E}],U=L[A+1];if(U)return{data:{index:A+1,overflows:W},reset:{placement:U}};const se=W.map(K=>{const V=Mr(K.placement);return[K.placement,V&&v?K.overflows.slice(0,2).reduce((P,O)=>P+O,0):K.overflows[0],K.overflows]}).sort((K,V)=>K[1]-V[1]),Q=((s=se.filter(K=>K[2].slice(0,Mr(K[0])?2:3).every(V=>V<=0))[0])==null?void 0:s[0])||se[0][0];return Q!==d?{data:{index:A+1,overflows:W},reset:{placement:Q}}:{}}}},hC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:L=!0,...M}=jo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const A=Jr(s),R=Jr(d)===d,B=await(h.isRTL==null?void 0:h.isRTL(p.floating)),E=b||(R||!L?[fu(d)]:oC(d));!b&&T!=="none"&&E.push(...lC(d,L,T,B));const W=[d,...E],U=await Gu(t,M),se=[];let ne=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&se.push(U[A]),m){const P=zb(s,f,B);se.push(U[P[0]],U[P[1]])}if(ne=[...ne,{placement:s,overflows:se}],!se.every(P=>P<=0)){var Q,K;const P=(((Q=c.flip)==null?void 0:Q.index)||0)+1,O=W[P];if(O)return{data:{index:P,overflows:ne},reset:{placement:O}};let N=(K=ne.filter(S=>S.overflows[0]<=0).sort((S,z)=>S.overflows[1]-z.overflows[1])[0])==null?void 0:K.placement;if(!N)switch(x){case"bestFit":{var V;const S=(V=ne.map(z=>[z.placement,z.overflows.filter(H=>H>0).reduce((H,ie)=>H+ie,0)]).sort((z,H)=>z[1]-H[1])[0])==null?void 0:V[0];S&&(N=S);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function pC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Jr(r),d=Mr(r),h=Ia(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=jo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:T}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof T=="number"&&(x=d==="end"?T*-1:T),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const gC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await pC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},vC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:M=>{let{x:A,y:R}=M;return{x:A,y:R}}},...h}=jo(e,t),p={x:r,y:o},v=await Gu(t,h),m=Ia(Jr(s)),b=Db(m);let x=p[b],T=p[m];if(c){const M=b==="y"?"top":"left",A=b==="y"?"bottom":"right",R=x+v[M],B=x-v[A];x=Yd(R,x,B)}if(f){const M=m==="y"?"top":"left",A=m==="y"?"bottom":"right",R=T+v[M],B=T-v[A];T=Yd(R,T,B)}const L=d.fn({...t,[b]:x,[m]:T});return{...L,data:{x:L.x-r,y:L.y-o}}}}},mC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=jo(e,t),h=await Gu(t,d),p=Jr(r),v=Mr(r),m=Ia(r)==="y",{width:b,height:x}=o.floating;let T,L;p==="top"||p==="bottom"?(T=p,L=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,T=v==="end"?"top":"bottom");const M=x-h[T],A=b-h[L],R=!t.middlewareData.shift;let B=M,E=A;if(m){const U=b-h.left-h.right;E=v||R?ha(A,U):U}else{const U=x-h.top-h.bottom;B=v||R?ha(M,U):U}if(R&&!v){const U=Oo(h.left,0),se=Oo(h.right,0),ne=Oo(h.top,0),Q=Oo(h.bottom,0);m?E=b-2*(U!==0||se!==0?U+se:Oo(h.left,h.right)):B=x-2*(ne!==0||Q!==0?ne+Q:Oo(h.top,h.bottom))}await f({...t,availableWidth:E,availableHeight:B});const W=await s.getDimensions(c.floating);return b!==W.width||x!==W.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){return hr(e).getComputedStyle(e)}const gm=Math.min,Ql=Math.max,du=Math.round;function Hb(e){const t=Xr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=du(r)!==s||du(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function ao(e){return Wb(e)?(e.nodeName||"").toLowerCase():""}let Cc;function Bb(){if(Cc)return Cc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Cc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Cc):navigator.userAgent}function Yr(e){return e instanceof hr(e).HTMLElement}function ro(e){return e instanceof hr(e).Element}function Wb(e){return e instanceof hr(e).Node}function vm(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function Ku(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function yC(e){return["table","td","th"].includes(ao(e))}function Zd(e){const t=/firefox/i.test(Bb()),r=Xr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function qb(){return!/^((?!chrome|android).)*safari/i.test(Bb())}function Qh(e){return["html","body","#document"].includes(ao(e))}function jb(e){return ro(e)?e:e.contextElement}const Ub={x:1,y:1};function Ps(e){const t=jb(e);if(!Yr(t))return Ub;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Hb(t);let f=(c?du(r.width):r.width)/o,d=(c?du(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function pa(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=jb(e);let h=Ub;t&&(o?ro(o)&&(h=Ps(o)):h=Ps(e));const p=d?hr(d):window,v=!qb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,T=f.height/h.y;if(d){const L=hr(d),M=o&&ro(o)?hr(o):o;let A=L.frameElement;for(;A&&o&&M!==L;){const R=Ps(A),B=A.getBoundingClientRect(),E=getComputedStyle(A);B.x+=(A.clientLeft+parseFloat(E.paddingLeft))*R.x,B.y+=(A.clientTop+parseFloat(E.paddingTop))*R.y,m*=R.x,b*=R.y,x*=R.x,T*=R.y,m+=B.x,b+=B.y,A=hr(A).frameElement}}return{width:x,height:T,top:b,right:m+x,bottom:b+T,left:m,x:m,y:b}}function io(e){return((Wb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xu(e){return ro(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Vb(e){return pa(io(e)).left+Xu(e).scrollLeft}function ga(e){if(ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vm(e)&&e.host||io(e);return vm(t)?t.host:t}function Gb(e){const t=ga(e);return Qh(t)?t.ownerDocument.body:Yr(t)&&Ku(t)?t:Gb(t)}function hu(e,t){var r;t===void 0&&(t=[]);const o=Gb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],Ku(o)?o:[]):t.concat(o,hu(o))}function mm(e,t,r){return t==="viewport"?Jl((function(o,s){const c=hr(o),f=io(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=qb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):ro(t)?Jl((function(o,s){const c=pa(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Yr(o)?Ps(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):Jl((function(o){const s=io(o),c=Xu(o),f=o.ownerDocument.body,d=Ql(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Ql(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Vb(o);const v=-c.scrollTop;return Xr(f).direction==="rtl"&&(p+=Ql(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(io(e)))}function ym(e){return Yr(e)&&Xr(e).position!=="fixed"?e.offsetParent:null}function bm(e){const t=hr(e);let r=ym(e);for(;r&&yC(r)&&Xr(r).position==="static";)r=ym(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Xr(r).position==="static"&&!Zd(r))?t:r||(function(o){let s=ga(o);for(;Yr(s)&&!Qh(s);){if(Zd(s))return s;s=ga(s)}return null})(e)||t}function bC(e,t,r){const o=Yr(t),s=io(t),c=pa(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((ao(t)!=="body"||Ku(s))&&(f=Xu(t)),Yr(t)){const h=pa(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Vb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const wC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,v){const m=v.get(p);if(m)return m;let b=hu(p).filter((M=>ro(M)&&ao(M)!=="body")),x=null;const T=Xr(p).position==="fixed";let L=T?ga(p):p;for(;ro(L)&&!Qh(L);){const M=Xr(L),A=Zd(L);(T?A||x:A||M.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=M:b=b.filter((R=>R!==L)),L=ga(L)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=mm(t,v,s);return p.top=Ql(m.top,p.top),p.right=gm(m.right,p.right),p.bottom=gm(m.bottom,p.bottom),p.left=Ql(m.left,p.left),p}),mm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Yr(r),c=io(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((ao(r)!=="body"||Ku(c))&&(f=Xu(r)),Yr(r))){const p=pa(r);d=Ps(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:ro,getDimensions:function(e){return Yr(e)?Hb(e):e.getBoundingClientRect()},getOffsetParent:bm,getDocumentElement:io,getScale:Ps,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||bm,c=this.getDimensions;return{reference:bC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xr(e).direction==="rtl"},xC=(e,t,r)=>{const o=new Map,s={platform:wC,...r},c={...s.platform,_c:o};return cC(e,t,{...s,platform:c})},oo={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 va(e,t){let r=oo.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=oo.themes[r.$extend]||{}:(r=null,o=oo[t]):r=null;while(r);return o}function _C(e){const t=[e];let r=oo.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=oo.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function wm(e){const t=[e];let r=oo.themes[e]||{};do r.$extend?(t.push(r.$extend),r=oo.themes[r.$extend]||{}):r=null;while(r);return t}let ma=!1;if(typeof window<"u"){ma=!1;try{const e=Object.defineProperty({},"passive",{get(){ma=!0}});window.addEventListener("test",null,e)}catch{}}let Kb=!1;typeof window<"u"&&typeof navigator<"u"&&(Kb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Xb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),xm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},_m={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Sm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function pd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Mo=null;const km={};function Tm(e){let t=km[e];return t||(t=km[e]=[]),t}let Jd=function(){};typeof window<"u"&&(Jd=window.Element);function dt(e){return function(t){return va(t.theme,e)}}const gd="__floating-vue__popper",Yb=()=>et({name:"VPopper",provide(){return{[gd]:{parentPopper:this}}},inject:{[gd]:{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:dt("disabled")},positioningDisabled:{type:Boolean,default:dt("positioningDisabled")},placement:{type:String,default:dt("placement"),validator:e=>Xb.includes(e)},delay:{type:[String,Number,Object],default:dt("delay")},distance:{type:[Number,String],default:dt("distance")},skidding:{type:[Number,String],default:dt("skidding")},triggers:{type:Array,default:dt("triggers")},showTriggers:{type:[Array,Function],default:dt("showTriggers")},hideTriggers:{type:[Array,Function],default:dt("hideTriggers")},popperTriggers:{type:Array,default:dt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:dt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:dt("popperHideTriggers")},container:{type:[String,Object,Jd,Boolean],default:dt("container")},boundary:{type:[String,Jd],default:dt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:dt("strategy")},autoHide:{type:[Boolean,Function],default:dt("autoHide")},handleResize:{type:Boolean,default:dt("handleResize")},instantMove:{type:Boolean,default:dt("instantMove")},eagerMount:{type:Boolean,default:dt("eagerMount")},popperClass:{type:[String,Array,Object],default:dt("popperClass")},computeTransformOrigin:{type:Boolean,default:dt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:dt("autoMinSize")},autoSize:{type:[Boolean,String],default:dt("autoSize")},autoMaxSize:{type:Boolean,default:dt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:dt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:dt("preventOverflow")},overflowPadding:{type:[Number,String],default:dt("overflowPadding")},arrowPadding:{type:[Number,String],default:dt("arrowPadding")},arrowOverflow:{type:Boolean,default:dt("arrowOverflow")},flip:{type:Boolean,default:dt("flip")},shift:{type:Boolean,default:dt("shift")},shiftCrossAxis:{type:Boolean,default:dt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:dt("noAutoFocus")},disposeTimeout:{type:Number,default:dt("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[gd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(gC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(dC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(vC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(hC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(uC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(mC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await xC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Mo&&this.instantMove&&Mo.instantMove&&Mo!==this.parentPopper){Mo.$_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&&(Mo=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 pd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...hu(this.$_referenceNode),...hu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of wm(this.theme))Tm(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 pd(),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,Sm(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of wm(this.theme)){const o=Tm(r);Sm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Mo===this&&(Mo=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 pd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,xm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],xm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,_m,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],_m,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ma?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ea>=e.left&&ea<=e.right&&ta>=e.top&&ta<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ea-Vi,o=ta-Gi,s=t.left+t.width/2-Vi+(t.top+t.height/2)-Gi+t.width+t.height,c=Vi+r*s,f=Gi+o*s;return Ec(Vi,Gi,c,f,t.left,t.top,t.left,t.bottom)||Ec(Vi,Gi,c,f,t.left,t.top,t.right,t.top)||Ec(Vi,Gi,c,f,t.right,t.top,t.right,t.bottom)||Ec(Vi,Gi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Kb){const e=ma?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Cm(t),e),document.addEventListener("touchend",t=>Em(t,!0),e)}else window.addEventListener("mousedown",e=>Cm(e),!0),window.addEventListener("click",e=>Em(e,!1),!0);window.addEventListener("resize",TC)}function Cm(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Em(e,t){SC(e,t)}function SC(e,t){const r={};for(let o=nr.length-1;o>=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Am(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Am(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Am(e,t,r){return r.closeAllPopover||r.closePopover&&t||kC(e,r)&&!t}function kC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function TC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function Lm(){for(let e=0;e<nr.length;e++)nr[e].hide()}let Vi=0,Gi=0,ea=0,ta=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vi=ea,Gi=ta,ea=e.clientX,ta=e.clientY},ma?{passive:!0}:void 0);function Ec(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const CC={extends:Yb()},Yu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function EC(e,t,r,o,s,c){return re(),ge("div",{ref:"reference",class:lt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Bt(e.$slots,"default",ES(Cb(e.slotData)))],2)}const AC=Yu(CC,[["render",EC]]);function LC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Uc;function Qd(){Qd.init||(Qd.init=!0,Uc=LC()!==-1)}var Zu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Qd(),Ct(()=>{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",Uc&&this.$el.appendChild(e),e.data="about:blank",Uc||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&&(!Uc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const MC=Uy();qy("data-v-b329ee4c");const NC={class:"resize-observer",tabindex:"-1"};jy();const OC=MC((e,t,r,o,s,c)=>(re(),Ge("div",NC)));Zu.render=OC;Zu.__scopeId="data-v-b329ee4c";Zu.__file="src/components/ResizeObserver.vue";const Zb=(e="theme")=>({computed:{themeClass(){return _C(this[e])}}}),RC=et({name:"VPopperContent",components:{ResizeObserver:Zu},mixins:[Zb()],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}}}),PC=["id","aria-hidden","tabindex","data-popper-placement"],$C={ref:"inner",class:"v-popper__inner"},IC=J("div",{class:"v-popper__arrow-outer"},null,-1),DC=J("div",{class:"v-popper__arrow-inner"},null,-1),zC=[IC,DC];function FC(e,t,r,o,s,c){const f=Wo("ResizeObserver");return re(),ge("div",{id:e.popperId,ref:"popover",class:lt(["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:Vt(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]=Xd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[J("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),J("div",{class:"v-popper__wrapper",style:Vt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[J("div",$C,[e.mounted?(re(),ge(tt,{key:0},[J("div",null,[Bt(e.$slots,"default")]),e.handleResize?(re(),Ge(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):ze("",!0)],64)):ze("",!0)],512),J("div",{ref:"arrow",class:"v-popper__arrow-container",style:Vt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},zC,4)],4)],46,PC)}const Jb=Yu(RC,[["render",FC]]),Qb={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 eh=function(){};typeof window<"u"&&(eh=window.Element);const HC=et({name:"VPopperWrapper",components:{Popper:AC,PopperContent:Jb},mixins:[Qb,Zb("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,eh,Boolean],default:void 0},boundary:{type:[String,eh],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 BC(e,t,r,o,s,c){const f=Wo("PopperContent"),d=Wo("Popper");return re(),Ge(d,wi({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:Xe(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:T,handleResize:L,onResize:M,classes:A,result:R})=>[Bt(e.$slots,"default",{shown:p,show:x,hide:T}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":L,classes:A,result:R,onHide:T,onResize:M},{default:Xe(()=>[Bt(e.$slots,"popper",{shown:p,hide:T})]),_: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 ep=Yu(HC,[["render",BC]]);({...ep});({...ep});const WC={...ep,name:"VTooltip",vPopperTheme:"tooltip"},qC=et({name:"VTooltipDirective",components:{Popper:Yb(),PopperContent:Jb},mixins:[Qb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>va(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>va(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),jC=["innerHTML"],UC=["textContent"];function VC(e,t,r,o,s,c){const f=Wo("PopperContent"),d=Wo("Popper");return re(),Ge(d,wi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Xe(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:T,onResize:L,classes:M,result:A})=>[Ne(f,{ref:"popperContent",class:lt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":T,classes:M,result:A,onHide:x,onResize:L},{default:Xe(()=>[e.html?(re(),ge("div",{key:0,innerHTML:e.finalContent},null,8,jC)):(re(),ge("div",{key:1,textContent:Pe(e.finalContent)},null,8,UC))]),_: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 GC=Yu(qC,[["render",VC]]),ew="v-popper--has-tooltip";function KC(e,t){let r=e.placement;if(!r&&t)for(const o of Xb)t[o]&&(r=o);return r||(r=va(e.theme||"tooltip","placement")),r}function tw(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=KC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let vd,ya,XC=0;function YC(){if(vd)return;ya=Ue([]),vd=Ib({name:"VTooltipDirectiveApp",setup(){return{directives:ya}},render(){return this.directives.map(t=>$a(GC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),vd.mount(e)}function nw(e,t,r){YC();const o=Ue(tw(e,t,r)),s=Ue(!1),c={id:XC++,options:o,shown:s};return ya.value.push(c),e.classList&&e.classList.add(ew),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function tp(e){if(e.$_popper){const t=ya.value.indexOf(e.$_popper.item);t!==-1&&ya.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(ew)}function Mm(e,{value:t,modifiers:r}){const o=tw(e,t,r);if(!o.content||va(o.theme||"tooltip","disabled"))tp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=nw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const ZC={beforeMount:Mm,updated:Mm,beforeUnmount(e){tp(e)}},JC=ZC,rw=WC,iw={options:oo};function np(e){return wy()?(OS(e),!0):!1}const md=new WeakMap,QC=(...e)=>{var t;const r=e[0],o=(t=Qr())==null?void 0:t.proxy;if(o==null&&!lb())throw new Error("injectLocal must be called in setup");return o&&md.has(o)&&r in md.get(o)?md.get(o)[r]:hn(...e)},eE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tE=Object.prototype.toString,nE=e=>tE.call(e)==="[object Object]",pu=()=>{};function ow(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const sw=e=>e();function lw(e,t={}){let r,o,s=pu;const c=h=>{clearTimeout(h),s(),s=pu};let f;return h=>{const p=Kt(e),v=Kt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function rE(e=sw,t={}){const{initialState:r="active"}=t,o=Uo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Bs(o),pause:s,resume:c,eventFilter:f}}function Nm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Om(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function iE(e){return Qr()}function yd(e){return Array.isArray(e)?e:[e]}function Uo(...e){if(e.length!==1)return ik(...e);const t=e[0];return typeof t=="function"?Bs(Dy(()=>({get:t,set:pu}))):Ue(t)}function Ac(e,t=200,r={}){return ow(lw(t,r),e)}function aw(e,t,r={}){const{eventFilter:o=sw,...s}=r;return St(e,ow(o,t),s)}function cw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=rE(o,{initialState:s});return{stop:aw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function rp(e,t=!0,r){iE()?Ai(e,r):t?e():Ct(e)}function th(e,t=!1){function r(m,{flush:b="sync",deep:x=!1,timeout:T,throwOnTimeout:L}={}){let M=null;const R=[new Promise(B=>{M=St(e,E=>{m(E)!==t&&(M?M():Ct(()=>M?.()),B(E))},{flush:b,deep:x,immediate:!0})})];return T!=null&&R.push(Nm(T,L).then(()=>Kt(e)).finally(()=>M?.())),Promise.race(R)}function o(m,b){if(!Mt(m))return r(E=>E===m,b);const{flush:x="sync",deep:T=!1,timeout:L,throwOnTimeout:M}=b??{};let A=null;const B=[new Promise(E=>{A=St([e,m],([W,U])=>{t!==(W===U)&&(A?A():Ct(()=>A?.()),E(W))},{flush:x,deep:T,immediate:!0})})];return L!=null&&B.push(Nm(L,M).then(()=>Kt(e)).finally(()=>(A?.(),Kt(e)))),Promise.race(B)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(x=>{const T=Array.from(x);return T.includes(m)||T.includes(Kt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let x=-1;return r(()=>(x+=1,x>=m),b)}return Array.isArray(Kt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return th(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return th(e,!t)}}}function Rm(e){return th(e)}function oE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=rn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Kt(r);return c.value=c.value===h?Kt(o):h,c.value}}return s?f:[c,f]}function ip(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return aw(e,t,{...c,eventFilter:lw(o,{maxWait:s})})}function sE(e,t,r){return St(e,t,{...r,immediate:!0})}function lE(e,t,r){const o=St(e,(...s)=>(Ct(()=>o()),t(...s)),r);return o}function aE(e,t,r){let o;Mt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=pu}=o,h=rn(!s),p=f?rn(t):Ue(t);let v=0;return Uh(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const T=await e(L=>{m(()=>{c&&(c.value=!1),x||L()})});b===v&&(p.value=T)}catch(T){d(T)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?be(()=>(h.value=!0,p.value)):p}const Pr=eE?window:void 0;function gu(e){var t;const r=Kt(e);return(t=r?.$el)!=null?t:r}function co(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=be(()=>{const d=yd(Kt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=sE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>gu(p)))!=null?h:[Pr].filter(p=>p!=null),yd(Kt(s.value?e[1]:e[0])),yd(X(s.value?e[2]:e[1])),Kt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const m=nE(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(T=>o(b,x,T,m)))))},{flush:"post"}),f=()=>{c(),r()};return np(r),f}function cE(){const e=rn(!1),t=Qr();return t&&Ai(()=>{e.value=!0},t),e}function uw(e){const t=cE();return be(()=>(t.value,!!e()))}function uE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function fw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Pr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=uE(t);return co(s,c,v=>{v.repeat&&Kt(d)||h(v)&&r(v)},f)}function fE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Pr,once:c=!1}=t,f=rn(!1),d=be(()=>o?1e3/Kt(o):null);let h=0,p=null;function v(x){if(!f.value||!s)return;h||(h=x);const T=x-h;if(d.value&&T<d.value){p=s.requestAnimationFrame(v);return}if(h=x,e({delta:T,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),np(b),{isActive:Bs(f),pause:b,resume:m}}const dE=Symbol("vueuse-ssr-width");function hE(){const e=lb()?QC(dE,null):null;return typeof e=="number"?e:void 0}function dw(e,t={}){const{window:r=Pr,ssrWidth:o=hE()}=t,s=uw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=rn(typeof o=="number"),f=rn(),d=rn(!1),h=p=>{d.value=p.matches};return Uh(()=>{if(c.value){c.value=!s.value;const p=Kt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let T=!!(b||x);return b&&T&&(T=o>=Om(b[1])),x&&T&&(T=o<=Om(x[1])),m?!T:T});return}s.value&&(f.value=r.matchMedia(Kt(e)),d.value=f.value.matches)}),co(f,"change",h,{passive:!0}),be(()=>d.value)}const Lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mc="__vueuse_ssr_handlers__",pE=gE();function gE(){return Mc in Lc||(Lc[Mc]=Lc[Mc]||{}),Lc[Mc]}function hw(e,t){return pE[e]||t}function vE(e){return dw("(prefers-color-scheme: dark)",e)}function mE(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 yE={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()}},Pm="vueuse-storage";function pw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Pr,eventFilter:b,onError:x=V=>{console.error(V)},initOnMounted:T}=o,L=(v?rn:Ue)(typeof t=="function"?t():t),M=be(()=>Kt(e));if(!r)try{r=hw("getDefaultStorage",()=>{var V;return(V=Pr)==null?void 0:V.localStorage})()}catch(V){x(V)}if(!r)return L;const A=Kt(t),R=mE(A),B=(s=o.serializer)!=null?s:yE[R],{pause:E,resume:W}=cw(L,()=>se(L.value),{flush:c,deep:f,eventFilter:b});St(M,()=>Q(),{flush:c}),m&&d&&rp(()=>{r instanceof Storage?co(m,"storage",Q,{passive:!0}):co(m,Pm,K),T&&Q()}),T||Q();function U(V,P){if(m){const O={key:M.value,oldValue:V,newValue:P,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Pm,{detail:O}))}}function se(V){try{const P=r.getItem(M.value);if(V==null)U(P,null),r.removeItem(M.value);else{const O=B.write(V);P!==O&&(r.setItem(M.value,O),U(P,O))}}catch(P){x(P)}}function ne(V){const P=V?V.newValue:r.getItem(M.value);if(P==null)return h&&A!=null&&r.setItem(M.value,B.write(A)),A;if(!V&&p){const O=B.read(P);return typeof p=="function"?p(O,A):R==="object"&&!Array.isArray(O)?{...A,...O}:O}else return typeof P!="string"?P:B.read(P)}function Q(V){if(!(V&&V.storageArea!==r)){if(V&&V.key==null){L.value=A;return}if(!(V&&V.key!==M.value)){E();try{V?.newValue!==B.write(L.value)&&(L.value=ne(V))}catch(P){x(P)}finally{V?Ct(W):W()}}}}function K(V){Q(V.detail)}return L}const bE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function wE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Pr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=vE({window:s}),x=be(()=>b.value?"dark":"light"),T=h||(f==null?Uo(o):pw(f,o,c,{window:s,listenToStorageChanges:d})),L=be(()=>T.value==="auto"?x.value:T.value),M=hw("updateHTMLAttrs",(E,W,U)=>{const se=typeof E=="string"?s?.document.querySelector(E):gu(E);if(!se)return;const ne=new Set,Q=new Set;let K=null;if(W==="class"){const P=U.split(/\s/g);Object.values(m).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?ne.add(O):Q.add(O)})}else K={key:W,value:U};if(ne.size===0&&Q.size===0&&K===null)return;let V;v&&(V=s.document.createElement("style"),V.appendChild(document.createTextNode(bE)),s.document.head.appendChild(V));for(const P of ne)se.classList.add(P);for(const P of Q)se.classList.remove(P);K&&se.setAttribute(K.key,K.value),v&&(s.getComputedStyle(V).opacity,document.head.removeChild(V))});function A(E){var W;M(t,r,(W=m[E])!=null?W:E)}function R(E){e.onChanged?e.onChanged(E,A):A(E)}St(L,R,{flush:"post",immediate:!0}),rp(()=>R(L.value));const B=be({get(){return p?T.value:L.value},set(E){T.value=E}});return Object.assign(B,{store:T,system:x,state:L})}function xE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=wE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=be(()=>o.system.value);return be({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function gw(e,t,r={}){const{window:o=Pr,...s}=r;let c;const f=uw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=be(()=>{const m=Kt(e);return Array.isArray(m)?m.map(b=>gu(b)):[gu(m)]}),p=St(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return np(v),{isSupported:f,stop:v}}function Ju(e,t,r={}){const{window:o=Pr}=r;return pw(e,t,o?.localStorage,r)}function _E(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Pr}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const B=d.location.hash||"",E=B.indexOf("?");return E>0?B.slice(E):""}else return(d.location.hash||"").replace(/^#/,"")}function v(B){const E=B.toString();if(e==="history")return`${E?`?${E}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${E?`#${E}`:""}`;const W=d.location.hash||"#",U=W.indexOf("?");return U>0?`${d.location.search||""}${W.slice(0,U)}${E?`?${E}`:""}`:`${d.location.search||""}${W}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(B){const E=new Set(Object.keys(h));for(const W of B.keys()){const U=B.getAll(W);h[W]=U.length>1?U:B.get(W)||"",E.delete(W)}Array.from(E).forEach(W=>delete h[W])}const{pause:x,resume:T}=cw(h,()=>{const B=new URLSearchParams("");Object.keys(h).forEach(E=>{const W=h[E];Array.isArray(W)?W.forEach(U=>B.append(E,U)):o&&W==null||s&&!W?B.delete(E):B.set(E,W)}),L(B,!1)},{deep:!0});function L(B,E){x(),E&&b(B),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(B)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(B)),T()}function M(){c&&L(m(),!0)}const A={passive:!0};co(d,"popstate",M,A),e!=="history"&&co(d,"hashchange",M,A);const R=m();return R.keys().next().value?b(R):Object.assign(h,r),h}function vw(e={}){const{window:t=Pr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=rn(r),h=rn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:x}=t.visualViewport;d.value=Math.round(m*x),h.value=Math.round(b*x)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),rp(p);const v={passive:!0};if(co("resize",p,v),t&&f==="visual"&&t.visualViewport&&co(t.visualViewport,"resize",p,v),s){const m=dw("(orientation: portrait)");St(m,()=>p())}return{width:d,height:h}}const $m={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=nb(),c=Ue([]),f=be(()=>c.value.reduce((I,G)=>(I[~~G.id]=G)&&I,{})),d=be(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=be(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),x=()=>{document.addEventListener("mousemove",M,{passive:!1}),document.addEventListener("mouseup",A),"ontouchstart"in window&&(document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",A))},T=()=>{document.removeEventListener("mousemove",M,{passive:!1}),document.removeEventListener("mouseup",A),"ontouchstart"in window&&(document.removeEventListener("touchmove",M,{passive:!1}),document.removeEventListener("touchend",A))},L=(I,G)=>{const ee=I.target.closest(".splitpanes__splitter");if(ee){const{left:le,top:oe}=ee.getBoundingClientRect(),{clientX:$,clientY:F}="ontouchstart"in window&&I.touches?I.touches[0]:I;v.value.cursorOffset=o.horizontal?F-oe:$-le}x(),v.value.mouseDown=!0,v.value.activeSplitter=G},M=I=>{v.value.mouseDown&&(I.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{se(W(I)),Fe("resize",{event:I},!0)}))},A=I=>{v.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:I},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,T()},100)},R=(I,G)=>{"ontouchstart"in window&&(I.preventDefault(),m.value.splitter===G?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,B(I,G),m.value.splitter=null):(m.value.splitter=G,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500))),v.value.dragging||Fe("splitter-click",{event:I,index:G},!0)},B=(I,G)=>{if(Fe("splitter-dblclick",{event:I,index:G},!0),o.maximizePanes){let ee=0;c.value=c.value.map((le,oe)=>(le.size=oe===G?le.max:le.min,oe!==G&&(ee+=le.min),le)),c.value[G].size-=ee,Fe("pane-maximize",{event:I,index:G,pane:c.value[G]}),Fe("resized",{event:I,index:G},!0)}},E=(I,G)=>{Fe("pane-click",{event:I,index:f.value[G].index,pane:f.value[G]})},W=I=>{const G=h.value.getBoundingClientRect(),{clientX:ee,clientY:le}="ontouchstart"in window&&I.touches?I.touches[0]:I;return{x:ee-(o.horizontal?0:v.value.cursorOffset)-G.left,y:le-(o.horizontal?v.value.cursorOffset:0)-G.top}},U=I=>{I=I[o.horizontal?"y":"x"];const G=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(I=G-I),I*100/G},se=I=>{const G=v.value.activeSplitter;let ee={prevPanesSize:Q(G),nextPanesSize:K(G),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:ee.prevPanesSize),oe=100-(o.pushOtherPanes?0:ee.nextPanesSize),$=Math.max(Math.min(U(I),oe),le);let F=[G,G+1],Y=c.value[F[0]]||null,ue=c.value[F[1]]||null;const he=Y.max<100&&$>=Y.max+ee.prevPanesSize,de=ue.max<100&&$<=100-(ue.max+K(G+1));if(he||de){he?(Y.size=Y.max,ue.size=Math.max(100-Y.max-ee.prevPanesSize-ee.nextPanesSize,0)):(Y.size=Math.max(100-ue.max-ee.prevPanesSize-K(G+1),0),ue.size=ue.max);return}if(o.pushOtherPanes){const Se=ne(ee,$);if(!Se)return;({sums:ee,panesToResize:F}=Se),Y=c.value[F[0]]||null,ue=c.value[F[1]]||null}Y!==null&&(Y.size=Math.min(Math.max($-ee.prevPanesSize-ee.prevReachedMinPanes,Y.min),Y.max)),ue!==null&&(ue.size=Math.min(Math.max(100-$-ee.nextPanesSize-ee.nextReachedMinPanes,ue.min),ue.max))},ne=(I,G)=>{const ee=v.value.activeSplitter,le=[ee,ee+1];return G<I.prevPanesSize+c.value[le[0]].min&&(le[0]=V(ee).index,I.prevReachedMinPanes=0,le[0]<ee&&c.value.forEach((oe,$)=>{$>le[0]&&$<=ee&&(oe.size=oe.min,I.prevReachedMinPanes+=oe.min)}),I.prevPanesSize=Q(le[0]),le[0]===void 0)?(I.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((oe,$)=>{$>0&&$<=ee&&(oe.size=oe.min,I.prevReachedMinPanes+=oe.min)}),c.value[le[1]].size=100-I.prevReachedMinPanes-c.value[0].min-I.prevPanesSize-I.nextPanesSize,null):G>100-I.nextPanesSize-c.value[le[1]].min&&(le[1]=P(ee).index,I.nextReachedMinPanes=0,le[1]>ee+1&&c.value.forEach((oe,$)=>{$>ee&&$<le[1]&&(oe.size=oe.min,I.nextReachedMinPanes+=oe.min)}),I.nextPanesSize=K(le[1]-1),le[1]===void 0)?(I.nextReachedMinPanes=0,c.value.forEach((oe,$)=>{$<d.value-1&&$>=ee+1&&(oe.size=oe.min,I.nextReachedMinPanes+=oe.min)}),c.value[le[0]].size=100-I.prevPanesSize-K(le[0]-1),null):{sums:I,panesToResize:le}},Q=I=>c.value.reduce((G,ee,le)=>G+(le<I?ee.size:0),0),K=I=>c.value.reduce((G,ee,le)=>G+(le>I+1?ee.size:0),0),V=I=>[...c.value].reverse().find(G=>G.index<I&&G.size>G.min)||{},P=I=>c.value.find(G=>G.index>I+1&&G.size>G.min)||{},O=()=>{var I;const G=Array.from(((I=h.value)==null?void 0:I.children)||[]);for(const ee of G){const le=ee.classList.contains("splitpanes__pane"),oe=ee.classList.contains("splitpanes__splitter");!le&&!oe&&(ee.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},N=(I,G,ee=!1)=>{const le=I-1,oe=document.createElement("div");oe.classList.add("splitpanes__splitter"),ee||(oe.onmousedown=$=>L($,le),typeof window<"u"&&"ontouchstart"in window&&(oe.ontouchstart=$=>L($,le)),oe.onclick=$=>R($,le+1)),oe.ondblclick=$=>B($,le+1),G.parentNode.insertBefore(oe,G)},S=I=>{I.onmousedown=void 0,I.onclick=void 0,I.ondblclick=void 0,I.remove()},z=()=>{var I;const G=Array.from(((I=h.value)==null?void 0:I.children)||[]);for(const le of G)le.className.includes("splitpanes__splitter")&&S(le);let ee=0;for(const le of G)le.className.includes("splitpanes__pane")&&(!ee&&o.firstSplitter?N(ee,le,!0):ee&&N(ee,le),ee++)},H=({uid:I,...G})=>{const ee=f.value[I];for(const[le,oe]of Object.entries(G))ee[le]=oe},ie=I=>{var G;let ee=-1;Array.from(((G=h.value)==null?void 0:G.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&ee++,le.isSameNode(I.el))),c.value.splice(ee,0,{...I,index:ee}),c.value.forEach((le,oe)=>le.index=oe),p.value&&Ct(()=>{z(),xe({addedPane:c.value[ee]}),Fe("pane-add",{pane:c.value[ee]})})},me=I=>{const G=c.value.findIndex(le=>le.id===I);c.value[G].el=null;const ee=c.value.splice(G,1)[0];c.value.forEach((le,oe)=>le.index=oe),Ct(()=>{z(),Fe("pane-remove",{pane:ee}),xe({removedPane:{...ee}})})},xe=(I={})=>{!I.addedPane&&!I.removedPane?Ve():c.value.some(G=>G.givenSize!==null||G.min||G.max<100)?nt(I):$e(),p.value&&Fe("resized")},$e=()=>{const I=100/d.value;let G=0;const ee=[],le=[];for(const oe of c.value)oe.size=Math.max(Math.min(I,oe.max),oe.min),G-=oe.size,oe.size>=oe.max&&ee.push(oe.id),oe.size<=oe.min&&le.push(oe.id);G>.1&&Je(G,ee,le)},Ve=()=>{let I=100;const G=[],ee=[];let le=0;for(const $ of c.value)I-=$.size,$.givenSize!==null&&le++,$.size>=$.max&&G.push($.id),$.size<=$.min&&ee.push($.id);let oe=100;if(I>.1){for(const $ of c.value)$.givenSize===null&&($.size=Math.max(Math.min(I/(d.value-le),$.max),$.min)),oe-=$.size;oe>.1&&Je(oe,G,ee)}},nt=({addedPane:I,removedPane:G}={})=>{let ee=100/d.value,le=0;const oe=[],$=[];(I?.givenSize??null)!==null&&(ee=(100-I.givenSize)/(d.value-1));for(const F of c.value)le-=F.size,F.size>=F.max&&oe.push(F.id),F.size<=F.min&&$.push(F.id);if(!(Math.abs(le)<.1)){for(const F of c.value)I?.givenSize!==null&&I?.id===F.id||(F.size=Math.max(Math.min(ee,F.max),F.min)),le-=F.size,F.size>=F.max&&oe.push(F.id),F.size<=F.min&&$.push(F.id);le>.1&&Je(le,oe,$)}},Je=(I,G,ee)=>{let le;I>0?le=I/(d.value-G.length):le=I/(d.value-ee.length),c.value.forEach((oe,$)=>{if(I>0&&!G.includes(oe.id)){const F=Math.max(Math.min(oe.size+le,oe.max),oe.min),Y=F-oe.size;I-=Y,oe.size=F}else if(!ee.includes(oe.id)){const F=Math.max(Math.min(oe.size+le,oe.max),oe.min),Y=F-oe.size;I-=Y,oe.size=F}}),Math.abs(I)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(I,G=void 0,ee=!1)=>{const le=G?.index??v.value.activeSplitter??null;r(I,{...G,...le!==null&&{index:le},...ee&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(oe=>({min:oe.min,max:oe.max,size:oe.size}))})};St(()=>o.firstSplitter,()=>z()),Ai(()=>{O(),z(),xe(),Fe("ready"),p.value=!0}),Oa(()=>p.value=!1);const Me=()=>{var I;return $a("div",{ref:h,class:b.value},(I=s.default)==null?void 0:I.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",be(()=>o.horizontal)),dr("requestUpdate",H),dr("onPaneAdd",ie),dr("onPaneRemove",me),dr("onPaneClick",E),(I,G)=>(re(),Ge(Hd(Me)))}},Nc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=hn("requestUpdate"),s=hn("onPaneAdd"),c=hn("horizontal"),f=hn("onPaneRemove"),d=hn("onPaneClick"),h=(t=Qr())==null?void 0:t.uid,p=hn("indexedPanes"),v=be(()=>p.value[h]),m=Ue(null),b=be(()=>{const M=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(M,T.value),x.value)}),x=be(()=>{const M=parseFloat(r.minSize);return isNaN(M)?0:M}),T=be(()=>{const M=parseFloat(r.maxSize);return isNaN(M)?100:M}),L=be(()=>{var M;return`${c.value?"height":"width"}: ${(M=v.value)==null?void 0:M.size}%`});return St(()=>b.value,M=>o({uid:h,size:M})),St(()=>x.value,M=>o({uid:h,min:M})),St(()=>T.value,M=>o({uid:h,max:M})),Ai(()=>{s({id:h,el:m.value,min:x.value,max:T.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),Oa(()=>f(h)),(M,A)=>(re(),ge("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:A[0]||(A[0]=R=>X(d)(R,M._.uid)),style:Vt(L.value)},[Bt(M.$slots,"default")],4))}},tr=Ue([414,896]);function mw(e){return e!=null}function op(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const SE=/^[A-Za-z]:\//;function kE(e=""){return e&&e.replace(/\\/g,"/").replace(SE,t=>t.toUpperCase())}const TE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function CE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const yw=function(...e){e=e.map(o=>kE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:CE();!s||s.length===0||(t=`${s}/${t}`,r=Im(s))}return t=EE(t,!r),r&&!Im(t)?`/${t}`:t.length>0?t:"."};function EE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Im=function(e){return TE.test(e)};var AE=44,Dm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",LE=new Uint8Array(64),bw=new Uint8Array(128);for(let e=0;e<Dm.length;e++){const t=Dm.charCodeAt(e);LE[e]=t,bw[t]=e}function Dl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=bw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function zm(e,t){return e.pos>=t?!1:e.peek()!==AE}var ME=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function NE(e){const{length:t}=e,r=new ME(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let x;s=Dl(r,s),s<b&&(m=!1),b=s,zm(r,p)?(c=Dl(r,c),f=Dl(r,f),d=Dl(r,d),zm(r,p)?(h=Dl(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||OE(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function OE(e){e.sort(RE)}function RE(e,t){return e[0]-t[0]}var Qu=0,PE=1,$E=2,IE=3,DE=4,vu=!1;function zE(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Qu]-t;if(c===0)return vu=!0,s;c<0?r=s+1:o=s-1}return vu=!1,r-1}function FE(e,t,r){for(let o=r+1;o<e.length&&e[o][Qu]===t;r=o++);return r}function HE(e,t,r){for(let o=r-1;o>=0&&e[o][Qu]===t;r=o--);return r}function BE(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return vu=f!==-1&&e[f][Qu]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=zE(e,t,d,h)}var WE="`line` must be greater than 0 (lines start at line 1)",qE="`column` must be greater than or equal to 0 (columns start at column 0)",Fm=-1,jE=1;function UE(e){var t;return(t=e)._decoded||(t._decoded=NE(e._encoded))}function VE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(WE);if(o<0)throw new Error(qE);const c=UE(e);if(r>=c.length)return Oc(null,null,null,null);const f=c[r],d=GE(f,e._decodedMemo,r,o,s||jE);if(d===-1)return Oc(null,null,null,null);const h=f[d];if(h.length===1)return Oc(null,null,null,null);const{names:p,resolvedSources:v}=e;return Oc(v[h[PE]],h[$E]+1,h[IE],h.length===5?p[h[DE]]:null)}function Oc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function GE(e,t,r,o,s){let c=BE(e,o,t,r);return vu?c=(s===Fm?FE:HE)(e,o,c):s===Fm&&c++,c===-1||c===e.length?-1:c}const ww=/^\s*at .*(?:\S:\d+|\(native\))/m,KE=/^(?:eval@)?(?:\[native code\])?$/,XE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function xw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function YE(e){let t=e.trim();if(KE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=xw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function ZE(e){let t=e.trim();if(!ww.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=xw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:yw(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function JE(e,t={}){const{ignoreStackEntries:r=XE}=t;return(ww.test(e)?eA(e):QE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Hm(r,s.file)?null:s;const d=new tA(f,s.file),h=rA(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),Hm(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function Hm(e,t){return e.some(r=>t.match(r))}function QE(e){return e.split(`
|
|
18
|
-
`).map(t=>YE(t)).filter(mw)}function eA(e){return e.split(`
|
|
19
|
-
`).map(t=>ZE(t)).filter(mw)}class tA{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=nA(),this.url=r,this.resolvedSources=(c||[]).map(f=>yw(f||"",r))}}function nA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function rA(e,t){const r=VE(e,t);return r.column==null?null:r}const iA=/^[A-Za-z]:\//;function oA(e=""){return e&&e.replace(/\\/g,"/").replace(iA,t=>t.toUpperCase())}const sA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Bm=/^\/([A-Za-z]:)?$/;function lA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Wm=function(...e){e=e.map(o=>oA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:lA();!s||s.length===0||(t=`${s}/${t}`,r=qm(s))}return t=aA(t,!r),r&&!qm(t)?`/${t}`:t.length>0?t:"."};function aA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const qm=function(e){return sA.test(e)},_w=function(e,t){const r=Wm(e).replace(Bm,"$1").split("/"),o=Wm(t).replace(Bm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function cA(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Sw(e,t,r,o){const s=_w(t,e),c={id:uA(s,r),name:s,fullName:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function uA(e,t){return cA(`${e}${t||""}`)}function Vs(e){return e.type==="test"}function kw(e){const t=[],r=op(e);for(const o of r)if(Vs(o))t.push(o);else for(const s of o.tasks)if(Vs(s))t.push(s);else{const c=kw(s);for(const f of c)t.push(f)}return t}function sp(e=[]){return op(e).flatMap(t=>Vs(t)?[t]:[t,...sp(t.tasks)])}function fA(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const jm="q",Um="s",dA=6e4;function Tw(e){return e}const hA=Tw,{clearTimeout:Vm,setTimeout:pA}=globalThis,gA=Math.random.bind(Math);function vA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Tw,deserialize:d=hA,resolver:h,bind:p="rpc",timeout:v=dA}=t;let m=!1;const b=new Map;let x;async function T(ne,Q,K,V){if(m)throw new Error(`[birpc] rpc is closed, cannot call "${ne}"`);const P={m:ne,a:Q,t:jm};V&&(P.o=!0);const O=async xe=>r(f(xe));if(K){await O(P);return}if(x)try{await x}finally{x=void 0}let{promise:N,resolve:S,reject:z}=mA();const H=bA();P.i=H;let ie;async function me(xe=P){return v>=0&&(ie=pA(()=>{try{if(t.onTimeoutError?.(ne,Q)!==!0)throw new Error(`[birpc] timeout on calling "${ne}"`)}catch($e){z($e)}b.delete(H)},v),typeof ie=="object"&&(ie=ie.unref?.())),b.set(H,{resolve:S,reject:z,timeoutId:ie,method:ne}),await O(xe),N}try{t.onRequest?await t.onRequest(P,me,S):await me()}catch(xe){if(t.onGeneralError?.(xe)!==!0)throw xe;return}finally{Vm(ie),b.delete(H)}return N}const B={$call:(ne,...Q)=>T(ne,Q,!1),$callOptional:(ne,...Q)=>T(ne,Q,!1,!0),$callEvent:(ne,...Q)=>T(ne,Q,!0),$callRaw:ne=>T(ne.method,ne.args,ne.event,ne.optional),$rejectPendingCalls:U,get $closed(){return m},$close:W,$functions:e},E=new Proxy({},{get(ne,Q){if(Object.prototype.hasOwnProperty.call(B,Q))return B[Q];if(Q==="then"&&!c.includes("then")&&!("then"in e))return;const K=(...P)=>T(Q,P,!0);if(c.includes(Q))return K.asEvent=K,K;const V=(...P)=>T(Q,P,!1);return V.asEvent=K,V}});function W(ne){m=!0,b.forEach(({reject:Q,method:K})=>{const V=new Error(`[birpc] rpc is closed, cannot call "${K}"`);if(ne)return ne.cause??=V,Q(ne);Q(V)}),b.clear(),s(se)}function U(ne){const K=Array.from(b.values()).map(({method:V,reject:P})=>ne?ne({method:V,reject:P}):P(new Error(`[birpc]: rejected pending call "${V}".`)));return b.clear(),K}async function se(ne,...Q){let K;try{K=d(ne)}catch(V){if(t.onGeneralError?.(V)!==!0)throw V;return}if(K.t===jm){const{m:V,a:P,o:O}=K;let N,S,z=await(h?h(V,e[V]):e[V]);if(O&&(z||=()=>{}),!z)S=new Error(`[birpc] function "${V}" not found`);else try{N=await z.apply(p==="rpc"?E:e,P)}catch(H){S=H}if(K.i){if(S&&t.onError&&t.onError(S,V,P),S&&t.onFunctionError&&t.onFunctionError(S,V,P)===!0)return;if(!S)try{await r(f({t:Um,i:K.i,r:N}),...Q);return}catch(H){if(S=H,t.onGeneralError?.(H,V,P)!==!0)throw H}try{await r(f({t:Um,i:K.i,e:S}),...Q)}catch(H){if(t.onGeneralError?.(H,V,P)!==!0)throw H}}}else{const{i:V,r:P,e:O}=K,N=b.get(V);N&&(Vm(N.timeoutId),O?N.reject(O):N.resolve(P)),b.delete(V)}}return x=o(se),E}function mA(){let e,t;return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const yA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function bA(e=21){let t="",r=e;for(;r--;)t+=yA[gA()*64|0];return t}const{parse:Cw,stringify:wA}=JSON,{keys:xA}=Object,ba=String,Ew="string",Gm={},mu="object",Aw=(e,t)=>t,_A=e=>e instanceof ba?ba(e):e,SA=(e,t)=>typeof t===Ew?new ba(t):t,Lw=(e,t,r,o)=>{const s=[];for(let c=xA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ba){const v=e[p];typeof v===mu&&!t.has(v)?(t.add(v),r[h]=Gm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Gm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Lw.apply(null,h))}return r},Km=(e,t,r)=>{const o=ba(t.push(r)-1);return e.set(r,o),o},nh=(e,t)=>{const r=Cw(e,SA).map(_A),o=r[0],s=t||Aw,c=typeof o===mu&&o?Lw(r,new Set,o,s):o;return s.call({"":c},"",c)},Mw=(e,t,r)=>{const o=t&&typeof t===mu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Aw,s=new Map,c=[],f=[];let d=+Km(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=wA(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case mu:if(b===null)return b;case Ew:return s.get(b)||Km(s,c,b)}return b}},kA=e=>Cw(Mw(e));class Nw{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Sw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function TA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Nw,waitForConnection:A,reconnect:L},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate(R,B){r.onTestAnnotate?.(R,B)},onTestArtifactRecord(R,B){r.onTestArtifactRecord?.(R,B)},onSpecsCollected(R,B){R?.forEach(([E,W])=>{v.state.clearFiles({config:E},[W])}),r.onSpecsCollected?.(R,B)},onPathsCollected(R){v.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){v.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,B){v.state.updateTasks(R),r.onTaskUpdate?.(R,B)},onUserConsoleLog(R){v.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,B,E,W){r.onFinished?.(R,B,E,W)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:R=>v.ws.send(R),on:R=>m=R,serialize:R=>Mw(R,(B,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:nh,timeout:-1};v.rpc=vA(b,x);let T;function L(R=!1){R&&(p=c),v.ws=new h(e),M()}function M(){T=new Promise((R,B)=>{const E=setTimeout(()=>{B(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();v.ws.OPEN===v.ws.readyState&&R(),v.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(E)})}),v.ws.addEventListener("message",R=>{m(R.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}M();function A(){return T}return v}const rh=rn([]),Jn=rn([]),$r=Ju("vitest-ui_task-tree-opened",[],{shallow:!0}),yu=be(()=>new Set($r.value)),pn=Ju("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ue(pn.value.search),CA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ow(e){return e.replace(/[&<>"']/g,t=>CA[t])}const EA=be(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${Ow(e)})`,"gi"):null}),Rw=be(()=>Un.value.trim()!==""),Qe=ir({failed:pn.value.failed,success:pn.value.success,skipped:pn.value.skipped,onlyTests:pn.value.onlyTests}),ih=be(()=>!!(Qe.failed||Qe.success||Qe.skipped)),ef=rn([]),Gs=Ue(!1),Xm=be(()=>{const e=pn.value.expandAll;return $r.value.length>0?e!==!0:e!==!1}),AA=be(()=>{const e=Rw.value,t=ih.value,r=Qe.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=ef.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Da(e){return Object.hasOwn(e,"tasks")}function LA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Pw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function $w(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 MA(e){return e.type==="test"}function NA(e){return e.mode==="run"&&e.type==="test"}function $n(e){return e.type==="file"}function ki(e){return e.type==="file"||e.type==="suite"}function OA(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function wa(e,t=!1){let r=Ce.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:yu.value.size>0&&yu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ce.colors.get(e.projectName||"")||Pw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)za(e.id,e.tasks[o],!0)}function Iw(e,t){const r=Ce.nodes.get(e);if(!r||!ki(r))return;const o=ht.state.idMap.get(e);if(!(!o||!Da(o)))return za(r.parentId,o,t&&o.tasks.length>0),[r,o]}function RA(e){const t=Ce.nodes.get(e);if(!t)return;const r=ht.state.idMap.get(e);!r||!Vs(r)||za(t.parentId,r,!1)}function za(e,t,r){const o=Ce.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Ce.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Vs(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:yu.value.size>0&&yu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Da(t)))for(let f=0;f<t.tasks.length;f++)za(s.id,t.tasks[f],r)}function PA(e){const t=Ce.nodes.get(e);if(!t||!ki(t))return;const r=new Set($r.value);r.delete(t.id);const o=[...IA(t)];$r.value=Array.from(r),Jn.value=o}function $A(){oh(Ce.root.tasks);const e=[...Jn.value.filter($n)];oh(e),$r.value=[],pn.value.expandAll=!0,Jn.value=e}function oh(e){for(const t of e)ki(t)&&(t.expanded=!1,oh(t.tasks))}function*Dw(e,t){if(t&&(yield e.id),ki(e))for(let r=0;r<e.tasks.length;r++)yield*Dw(e.tasks[r],!0)}function*IA(e){const t=e.id,r=new Set(Dw(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const tf=Ue("idle"),ks=be(()=>tf.value==="idle"),Zi=Ue([]);function DA(e,t,r){return e?Hw(e,t,r):!1}function lp(e,t){const r=[...zw(e,t)];Jn.value=r,ef.value=r.filter($n).map(o=>gr(o.id))}function*zw(e,t){for(const r of OA())yield*Fw(r,e,t)}function*Fw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of sh(e,o,x=>Ym(x,t,r)))c.push([m,b]);else{for(const[m,b]of sh(e,o,x=>Ym(x,t,r)))ki(b)?(s.set(b.id,m),$n(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!$n(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...FA(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(m=>$n(m)||ki(m)&&p.get(m.parentId)?.expanded).map(m=>m.id));yield*h.filter(m=>$n(m)||v.has(m.parentId)&&p.get(m.parentId)?.expanded)}function zA(e,t,r,o,s){if(o){if($n(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&$n(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&$n(c)&&s.add(c.id),t}}function*FA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=ki(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),$n(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=zA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&$n(p)&&o.add(p.id),yield d}}}function HA(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Hw(e,t,r){if(t.length===0||LA(e.name,t))if(r.success||r.failed||r.skipped){if(HA(e,r))return!0}else return!0;return!1}function*sh(e,t,r){const o=r(e);if(o)if(MA(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if($n(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],ki(e))for(let s=0;s<e.tasks.length;s++)yield*sh(e.tasks[s],t,r)}function Ym(e,t,r){const o=ht.state.idMap.get(e.id);return o?Hw(o,t,r):!1}function BA(e,t,r){const o=Iw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)za(s.id,p,!1);s.expanded=!0;const f=new Set($r.value);f.add(s.id);const d=new Set(Fw(s,t,r)),h=[...jA(s,d)];$r.value=Array.from(f),Jn.value=h}function WA(e,t){ap(Ce.root.tasks,!1);const r=[...zw(e,t)];pn.value.expandAll=!1,$r.value=[],Jn.value=r,ef.value=r.filter($n).map(o=>gr(o.id))}function qA(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&ap(Jn.value.filter($n),!0)}function ap(e,t){for(const r of e)ki(r)&&(r.expanded=!0,ap(r.tasks,!1));t&&(pn.value.expandAll=!1,$r.value=[])}function*jA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function cp(e){return kw(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function UA(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>wa(s,t)),rh.value=[...Ce.root.tasks],lp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function VA(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=ht.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function GA(e,t){const r=Ce.pendingTasks,s=ht.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function Zm(e,t,r,o,s,c){e&&QA(r);const f=!e;queueMicrotask(()=>{t?YA(f):ZA(f)}),queueMicrotask(()=>{eL(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=rh.value&&cp(rh.value.map(d=>gr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{JA(o,s,t)})}function*KA(){yield*Jn.value.filter(NA)}function XA(){const e=ht.state.idMap;let t;for(const r of KA())t=e.get(r.parentId),t&&Da(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function YA(e){const t=ht.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)wa(o[c],e),bu(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=gr(f.id);!d||(wa(d,e),!d.tasks?.length)||bu(d.tasks)}}function ZA(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>gr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],wa(s,!1),bu(s.tasks),t.delete(s.id);const c=ht.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=gr(h.id);if(!p)continue;const v=t.get(p.id);v&&(wa(p,e),bu(Array.from(v,m=>c.get(m)).filter(Boolean)))}}function JA(e,t,r=!1){const o=pn.value.expandAll,s=o!==!0,c=new Set($r.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Jm(e,t,r)}),Gs.value||queueMicrotask(()=>{(Jn.value.length||r)&&(Gs.value=!0)}),f&&(queueMicrotask(()=>{qA(c,r),s&&(pn.value.expandAll=!1)}),queueMicrotask(()=>{Jm(e,t,r)}))}function Jm(e,t,r){lp(e,t),r&&(XA(),tf.value="idle")}function bu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Da(t)?Iw(t.id,!0):RA(t.id)}function QA(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 eL(e,t){const r=ht.state.idMap,o=new Map(Ce.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,gr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:v,total:m,ignored:b,todo:x}=Bw(d);c.totalTests+=m,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=v,c.testsTodo+=x,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function Bw(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of Ww(e))(!r||DA(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function tL(e,t,r,o,s,c){if(t)return r.map(f=>Bw(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:v})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=v,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const v of r)v.result?.state==="fail"?f.failed+=h?1:0:v.result?.state==="pass"?f.success+=p?1:0:v.mode==="skip"||v.mode==="todo"||f.running++;return f}return o}function*Ww(e){const t=op(e);let r;for(let o=0;o<t.length;o++)r=t[o],Vs(r)?yield r:yield*Ww(r.tasks)}class nL{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=ir({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=fE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),UA(t,!0,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){GA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){VA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Zm(t,r,this.summary,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):Zm(t,r,this.summary,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return tL(t,r,o,s,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{PA(t)})}expandNode(t){queueMicrotask(()=>{BA(t,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{$A()})}expandAllNodes(){queueMicrotask(()=>{WA(Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{lp(Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Ce=new nL;function qw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vc={exports:{}},rL=Vc.exports,Qm;function tl(){return Qm||(Qm=1,(function(e,t){(function(r,o){e.exports=o()})(rL,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],T=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),A=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),B=/Android/.test(r),E=R||B||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),W=R||/Mac/.test(o),U=/\bCrOS\b/.test(r),se=/win/i.test(o),ne=T&&r.match(/Version\/(\d*\.\d*)/);ne&&(ne=Number(ne[1])),ne&&ne>=15&&(T=!1,v=!0);var Q=W&&(m||T&&(ne==null||ne<12.11)),K=s||h&&p>=9;function V(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var P=function(n,i){var a=n.className,l=V(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function N(n,i){return O(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function z(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var H;document.createRange?H=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:H=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ie(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function me(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function xe(n,i){var a=n.className;V(i).test(a)||(n.className+=(a?" ":"")+i)}function $e(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!V(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ve=function(n){n.select()};R?Ve=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ve=function(n){try{n.select()}catch{}});function nt(n){return n.display.wrapper.ownerDocument}function Je(n){return Fe(n.display.wrapper)}function Fe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Me(n){return nt(n).defaultView}function I(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function G(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function ee(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function oe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var $=50,F={toString:function(){return"CodeMirror.Pass"}},Y={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Se=[""];function Ee(n){for(;Se.length<=n;)Se.push(ve(Se)+" ");return Se[n]}function ve(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function je(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Oe(){}function He(n,i){var a;return Object.create?a=Object.create(n):(Oe.prototype=n,a=new Oe),i&&G(i,a),a}var Ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ot(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ke.test(n))}function at(n,i){return i?i.source.indexOf("\\w")>-1&&ot(n)?!0:i.test(n):ot(n)}function ft(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ct(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Xt(n,i,a){for(;(a<0?i>0:i<n.length)&&ct(n.charAt(i));)i+=a;return i}function Wt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function zn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Fr=null;function zt(n,i,a){var l;Fr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Fr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Fr=u)}return l??Fr}var Fn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function _(k,D,j){this.level=k,this.from=D,this.to=j}return function(k,D){var j=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var te=k.length,Z=[],ce=0;ce<te;++ce)Z.push(a(k.charCodeAt(ce)));for(var pe=0,_e=j;pe<te;++pe){var ke=Z[pe];ke=="m"?Z[pe]=_e:_e=ke}for(var Le=0,Te=j;Le<te;++Le){var Re=Z[Le];Re=="1"&&Te=="r"?Z[Le]="n":g.test(Re)&&(Te=Re,Re=="r"&&(Z[Le]="R"))}for(var We=1,De=Z[0];We<te-1;++We){var rt=Z[We];rt=="+"&&De=="1"&&Z[We+1]=="1"?Z[We]="1":rt==","&&De==Z[We+1]&&(De=="1"||De=="n")&&(Z[We]=De),De=rt}for(var _t=0;_t<te;++_t){var en=Z[_t];if(en==",")Z[_t]="N";else if(en=="%"){var Ot=void 0;for(Ot=_t+1;Ot<te&&Z[Ot]=="%";++Ot);for(var Wn=_t&&Z[_t-1]=="!"||Ot<te&&Z[Ot]=="1"?"1":"N",Cn=_t;Cn<Ot;++Cn)Z[Cn]=Wn;_t=Ot-1}}for(var qt=0,En=j;qt<te;++qt){var sn=Z[qt];En=="L"&&sn=="1"?Z[qt]="L":g.test(sn)&&(En=sn)}for(var Gt=0;Gt<te;++Gt)if(u.test(Z[Gt])){var jt=void 0;for(jt=Gt+1;jt<te&&u.test(Z[jt]);++jt);for(var It=(Gt?Z[Gt-1]:j)=="L",An=(jt<te?Z[jt]:j)=="L",ms=It==An?It?"L":"R":j,Wi=Gt;Wi<jt;++Wi)Z[Wi]=ms;Gt=jt-1}for(var fn=[],jr,tn=0;tn<te;)if(y.test(Z[tn])){var td=tn;for(++tn;tn<te&&y.test(Z[tn]);++tn);fn.push(new _(0,td,tn))}else{var ai=tn,ko=fn.length,To=D=="rtl"?1:0;for(++tn;tn<te&&Z[tn]!="L";++tn);for(var mn=ai;mn<tn;)if(w.test(Z[mn])){ai<mn&&(fn.splice(ko,0,new _(1,ai,mn)),ko+=To);var ys=mn;for(++mn;mn<tn&&w.test(Z[mn]);++mn);fn.splice(ko,0,new _(2,ys,mn)),ko+=To,ai=mn}else++mn;ai<tn&&fn.splice(ko,0,new _(1,ai,tn))}return D=="ltr"&&(fn[0].level==1&&(jr=k.match(/^\s+/))&&(fn[0].from=jr[0].length,fn.unshift(new _(0,0,jr[0].length))),ve(fn).level==1&&(jr=k.match(/\s+$/))&&(ve(fn).to-=jr[0].length,fn.push(new _(0,te-jr[0].length,te)))),D=="rtl"?fn.reverse():fn}})();function it(n,i){var a=n.order;return a==null&&(a=n.order=Fn(n.text,i)),a}var po=[],Be=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||po).concat(a)}};function ti(n,i){return n._handlers&&n._handlers[i]||po}function an(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=oe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Rt(n,i){var a=ti(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Pt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Rt(n,a||i.type,n,i),_n(i)||i.codemirrorIgnore}function ar(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)oe(a,i[l])==-1&&a.push(i[l])}function Hn(n,i){return ti(n,i).length>0}function vr(n){n.prototype.on=function(i,a){Be(this,i,a)},n.prototype.off=function(i,a){an(this,i,a)}}function cn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Vo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function _n(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Mi(n){cn(n),Vo(n)}function rl(n){return n.target||n.srcElement}function mr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),W&&n.ctrlKey&&i==1&&(i=3),i}var af=(function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n})(),Go;function ja(n){if(Go==null){var i=S("span","");N(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Go=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Go?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var il;function Ni(n){if(il!=null)return il;var i=N(n,document.createTextNode("AخA")),a=H(i,0,1).getBoundingClientRect(),l=H(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:il=l.right-a.right<3}var cr=`
|
|
20
|
-
|
|
21
|
-
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
22
|
-
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Oi=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ua=(function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),yr=null;function cf(n){if(yr!=null)return yr;var i=N(n,S("span","x")),a=i.getBoundingClientRect(),l=H(i,0,1).getBoundingClientRect();return yr=Math.abs(a.left-l.left)>1}var Ko={},br={};function wr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ko[n]=i}function go(n,i){br[n]=i}function Xo(n){if(typeof n=="string"&&br.hasOwnProperty(n))n=br[n];else if(n&&typeof n.name=="string"&&br.hasOwnProperty(n.name)){var i=br[n.name];typeof i=="string"&&(i={name:i}),n=He(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Xo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Xo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Yo(n,i){i=Xo(i);var a=Ko[i.name];if(!a)return Yo(n,"text/plain");var l=a(n,i);if(Ri.hasOwnProperty(i.name)){var u=Ri[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var Ri={};function Zo(n,i){var a=Ri.hasOwnProperty(n)?Ri[n]:Ri[n]={};G(i,a)}function Hr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function ol(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Jo(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ee(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ee(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return ee(this.string,null,this.tabSize)-(this.lineStart?ee(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Ie(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function ni(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function sl(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Qn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=oe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function q(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var w=n.lines[y],_=w.height;if(i<_)break;i-=_}return a+y}function fe(n,i){return i>=n.first&&i<n.first+n.size}function we(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ae(n,i,a){if(a===void 0&&(a=null),!(this instanceof ae))return new ae(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ae(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ae(n,i)==0}function Yt(n){return ae(n.line,n.ch)}function Sn(n,i){return Ae(n,i)<0?i:n}function Qo(n,i){return Ae(n,i)<0?n:i}function Mp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ze(n,i){if(i.line<n.first)return ae(n.first,0);var a=n.first+n.size-1;return i.line>a?ae(a,Ie(n,a).text.length):w1(i,Ie(n,i.line).text.length)}function w1(n,i){var a=n.ch;return a==null||a>i?ae(n.line,i):a<0?ae(n.line,0):n}function Np(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ze(n,i[l]);return a}var Va=function(n,i){this.state=n,this.lookAhead=i},Br=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Br.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Br.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Br.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Br.fromSaved=function(n,i,a){return i instanceof Va?new Br(n,Hr(n.mode,i.state),a,i.lookAhead):new Br(n,Hr(n.mode,i),a)},Br.prototype.save=function(n){var i=n!==!1?Hr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Va(i,this.maxLookAhead):i};function Op(n,i,a,l){var u=[n.state.modeGen],g={};zp(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,w=function(k){a.baseTokens=u;var D=n.state.overlays[k],j=1,te=0;a.state=!0,zp(n,i.text,D.mode,a,function(Z,ce){for(var pe=j;te<Z;){var _e=u[j];_e>Z&&u.splice(j,1,Z,u[j+1],_e),j+=2,te=Math.min(Z,_e)}if(ce)if(D.opaque)u.splice(pe,j-pe,Z,"overlay "+ce),j=pe+2;else for(;pe<j;pe+=2){var ke=u[pe+1];u[pe+1]=(ke?ke+" ":"")+"overlay "+ce}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function Rp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=ll(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Hr(n.doc.mode,l.state),g=Op(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function ll(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Br(l,!0,i);var g=x1(n,i,a),y=g>l.first&&Ie(l,g-1).stateAfter,w=y?Br.fromSaved(l,y,g):new Br(l,Jo(l.mode),g);return l.iter(g,i,function(_){uf(n,_.text,w);var k=w.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function uf(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&Pp(u,a.state);!g.eol();)ff(u,g,a.state),g.start=g.pos}function Pp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=ol(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function ff(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=ol(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var $p=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Ip(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ze(u,i);var w=Ie(u,i.line),_=ll(n,i.line,a),k=new $t(w.text,n.options.tabSize,_),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=ff(g,k,_.state),l&&D.push(new $p(k,y,Hr(u.mode,_.state)));return l?D:new $p(k,y,_.state)}function Dp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function zp(n,i,a,l,u,g,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,k=null,D=new $t(i,n.options.tabSize,l),j,te=n.options.addModeClass&&[null];for(i==""&&Dp(Pp(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(w=!1,y&&uf(n,i,l,D.pos),D.pos=i.length,j=null):j=Dp(ff(a,D,l.state,te),g),te){var Z=te[0].name;Z&&(j="m-"+(j?Z+" "+j:Z))}if(!w||k!=j){for(;_<D.start;)_=Math.min(D.start,_+5e3),u(_,k);k=j}D.start=D.pos}for(;_<D.pos;){var ce=Math.min(D.pos,_+5e3);u(ce,k),_=ce}}function x1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=g.first)return g.first;var _=Ie(g,w-1),k=_.stateAfter;if(k&&(!a||w+(k instanceof Va?k.lookAhead:0)<=g.modeFrontier))return w;var D=ee(_.text,null,n.options.tabSize);(u==null||l>D)&&(u=w-1,l=D)}return u}function _1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Ie(n,l).stateAfter;if(u&&(!(u instanceof Va)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Fp=!1,ri=!1;function S1(){Fp=!0}function k1(){ri=!0}function Ga(n,i,a){this.marker=n,this.from=i,this.to=a}function al(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function T1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function C1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function E1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Ga(y,g.from,_?null:g.to))}}return l}function A1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Ga(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function df(n,i){if(i.full)return null;var a=fe(n,i.from.line)&&Ie(n,i.from.line).markedSpans,l=fe(n,i.to.line)&&Ie(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ae(i.from,i.to)==0,w=E1(a,u,y),_=A1(l,g,y),k=i.text.length==1,D=ve(i.text).length+(k?u:0);if(w)for(var j=0;j<w.length;++j){var te=w[j];if(te.to==null){var Z=al(_,te.marker);Z?k&&(te.to=Z.to==null?null:Z.to+D):te.to=u}}if(_)for(var ce=0;ce<_.length;++ce){var pe=_[ce];if(pe.to!=null&&(pe.to+=D),pe.from==null){var _e=al(w,pe.marker);_e||(pe.from=D,k&&(w||(w=[])).push(pe))}else pe.from+=D,k&&(w||(w=[])).push(pe)}w&&(w=Hp(w)),_&&_!=w&&(_=Hp(_));var ke=[w];if(!k){var Le=i.text.length-2,Te;if(Le>0&&w)for(var Re=0;Re<w.length;++Re)w[Re].to==null&&(Te||(Te=[])).push(new Ga(w[Re].marker,null,null));for(var We=0;We<Le;++We)ke.push(Te);ke.push(_)}return ke}function Hp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function L1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Z){if(Z.markedSpans)for(var ce=0;ce<Z.markedSpans.length;++ce){var pe=Z.markedSpans[ce].marker;pe.readOnly&&(!l||oe(l,pe)==-1)&&(l||(l=[])).push(pe)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],w=y.find(0),_=0;_<u.length;++_){var k=u[_];if(!(Ae(k.to,w.from)<0||Ae(k.from,w.to)>0)){var D=[_,1],j=Ae(k.from,w.from),te=Ae(k.to,w.to);(j<0||!y.inclusiveLeft&&!j)&&D.push({from:k.from,to:w.from}),(te>0||!y.inclusiveRight&&!te)&&D.push({from:w.to,to:k.to}),u.splice.apply(u,D),_+=D.length-3}}return u}function Bp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Wp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ka(n){return n.inclusiveLeft?-1:0}function Xa(n){return n.inclusiveRight?1:0}function hf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ae(l.from,u.from)||Ka(n)-Ka(i);if(g)return-g;var y=Ae(l.to,u.to)||Xa(n)-Xa(i);return y||i.id-n.id}function qp(n,i){var a=ri&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||hf(l,u.marker)<0)&&(l=u.marker);return l}function jp(n){return qp(n,!0)}function Ya(n){return qp(n,!1)}function M1(n,i){var a=ri&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||hf(l,g.marker)<0)&&(l=g.marker)}return l}function Up(n,i,a,l,u){var g=Ie(n,i),y=ri&&g.markedSpans;if(y)for(var w=0;w<y.length;++w){var _=y[w];if(_.marker.collapsed){var k=_.marker.find(0),D=Ae(k.from,a)||Ka(_.marker)-Ka(u),j=Ae(k.to,l)||Xa(_.marker)-Xa(u);if(!(D>=0&&j<=0||D<=0&&j>=0)&&(D<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.to,a)>=0:Ae(k.to,a)>0)||D>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.from,l)<=0:Ae(k.from,l)<0)))return!0}}}function xr(n){for(var i;i=jp(n);)n=i.find(-1,!0).line;return n}function N1(n){for(var i;i=Ya(n);)n=i.find(1,!0).line;return n}function O1(n){for(var i,a;i=Ya(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function pf(n,i){var a=Ie(n,i),l=xr(a);return a==l?i:C(l)}function Vp(n,i){if(i>n.lastLine())return i;var a=Ie(n,i),l;if(!Pi(n,a))return i;for(;l=Ya(a);)a=l.find(1,!0).line;return C(a)+1}function Pi(n,i){var a=ri&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&gf(n,i,l))return!0}}}function gf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return gf(n,l.line,al(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&gf(n,i,u))return!0}function ii(n){n=xr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var w=g.children[y];if(w==a)break;i+=w.height}return i}function Za(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=jp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Ya(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function vf(n){var i=n.display,a=n.doc;i.maxLine=Ie(a,a.first),i.maxLineLength=Za(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Za(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var es=function(n,i,a){this.text=n,Wp(this,i),this.height=a?a(this):1};es.prototype.lineNo=function(){return C(this)},vr(es);function R1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Bp(n),Wp(n,a);var u=l?l(n):1;u!=n.height&&Qn(n,u)}function P1(n){n.parent=null,Bp(n)}var $1={},I1={};function Gp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?I1:$1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Kp(n,i){var a=z("span",null,null,v?"padding-right: .1px":null),l={pre:z("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=z1,Ni(n.display.measure)&&(y=it(g,n.doc.direction))&&(l.addToken=H1(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&C(g);B1(g,l,Rp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=$e(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=$e(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ja(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Rt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=$e(l.pre.className,l.textClass||"")),l}function D1(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function z1(n,i,a,l,u,g,y){if(i){var w=n.splitSpaces?F1(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,D;if(!_.test(i))n.col+=i.length,D=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var j=0;;){_.lastIndex=j;var te=_.exec(i),Z=te?te.index-j:i.length-j;if(Z){var ce=document.createTextNode(w.slice(j,j+Z));h&&p<9?D.appendChild(S("span",[ce])):D.appendChild(ce),n.map.push(n.pos,n.pos+Z,ce),n.col+=Z,n.pos+=Z}if(!te)break;j+=Z+1;var pe=void 0;if(te[0]==" "){var _e=n.cm.options.tabSize,ke=_e-n.col%_e;pe=D.appendChild(S("span",Ee(ke),"cm-tab")),pe.setAttribute("role","presentation"),pe.setAttribute("cm-text"," "),n.col+=ke}else te[0]=="\r"||te[0]==`
|
|
23
|
-
`?(pe=D.appendChild(S("span",te[0]=="\r"?"␍":"","cm-invalidchar")),pe.setAttribute("cm-text",te[0]),n.col+=1):(pe=n.cm.options.specialCharPlaceholder(te[0]),pe.setAttribute("cm-text",te[0]),h&&p<9?D.appendChild(S("span",[pe])):D.appendChild(pe),n.col+=1);n.map.push(n.pos,n.pos+1,pe),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Le=a||"";l&&(Le+=l),u&&(Le+=u);var Te=S("span",[D],Le,g);if(y)for(var Re in y)y.hasOwnProperty(Re)&&Re!="style"&&Re!="class"&&Te.setAttribute(Re,y[Re]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function F1(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function H1(n,i){return function(a,l,u,g,y,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var j=void 0,te=0;te<i.length&&(j=i[te],!(j.to>k&&j.from<=k));te++);if(j.to>=D)return n(a,l,u,g,y,w,_);n(a,l.slice(0,j.to-k),u,g,null,w,_),g=null,l=l.slice(j.to-k),k=j.to}}}function Xp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function B1(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Gp(a[y+1],i.cm.options));return}for(var w=u.length,_=0,k=1,D="",j,te,Z=0,ce,pe,_e,ke,Le;;){if(Z==_){ce=pe=_e=te="",Le=null,ke=null,Z=1/0;for(var Te=[],Re=void 0,We=0;We<l.length;++We){var De=l[We],rt=De.marker;if(rt.type=="bookmark"&&De.from==_&&rt.widgetNode)Te.push(rt);else if(De.from<=_&&(De.to==null||De.to>_||rt.collapsed&&De.to==_&&De.from==_)){if(De.to!=null&&De.to!=_&&Z>De.to&&(Z=De.to,pe=""),rt.className&&(ce+=" "+rt.className),rt.css&&(te=(te?te+";":"")+rt.css),rt.startStyle&&De.from==_&&(_e+=" "+rt.startStyle),rt.endStyle&&De.to==Z&&(Re||(Re=[])).push(rt.endStyle,De.to),rt.title&&((Le||(Le={})).title=rt.title),rt.attributes)for(var _t in rt.attributes)(Le||(Le={}))[_t]=rt.attributes[_t];rt.collapsed&&(!ke||hf(ke.marker,rt)<0)&&(ke=De)}else De.from>_&&Z>De.from&&(Z=De.from)}if(Re)for(var en=0;en<Re.length;en+=2)Re[en+1]==Z&&(pe+=" "+Re[en]);if(!ke||ke.from==_)for(var Ot=0;Ot<Te.length;++Ot)Xp(i,0,Te[Ot]);if(ke&&(ke.from||0)==_){if(Xp(i,(ke.to==null?w+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=w)break;for(var Wn=Math.min(w,Z);;){if(D){var Cn=_+D.length;if(!ke){var qt=Cn>Wn?D.slice(0,Wn-_):D;i.addToken(i,qt,j?j+ce:ce,_e,_+qt.length==Z?pe:"",te,Le)}if(Cn>=Wn){D=D.slice(Wn-_),_=Wn;break}_=Cn,_e=""}D=u.slice(g,g=a[k++]),j=Gp(a[k++],i.cm.options)}}}function Yp(n,i,a){this.line=i,this.rest=O1(i),this.size=this.rest?C(ve(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Pi(n,i)}function Ja(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Yp(n.doc,Ie(n.doc,g),g);u=g+y.size,l.push(y)}return l}var ts=null;function W1(n){ts?ts.ops.push(n):n.ownsGroup=ts={ops:[n],delayedCallbacks:[]}}function q1(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function j1(n,i){var a=n.ownsGroup;if(a)try{q1(a)}finally{ts=null,i(a)}}var cl=null;function Zt(n,i){var a=ti(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;ts?u=ts.delayedCallbacks:cl?u=cl:(u=cl=[],setTimeout(U1,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function U1(){var n=cl;cl=null;for(var i=0;i<n.length;++i)n[i]()}function Zp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?G1(n,i):g=="gutter"?Qp(n,i,a,l):g=="class"?mf(n,i):g=="widget"&&K1(n,i,l)}i.changes=null}function ul(n){return n.node==n.text&&(n.node=S("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function V1(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=ul(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Jp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Kp(n,i)}function G1(n,i){var a=i.text.className,l=Jp(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,mf(n,i)):a&&(i.text.className=a)}function mf(n,i){V1(n,i),i.line.wrapClass?ul(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Qp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=ul(i);i.gutterBackground=S("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=ul(i),w=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),y.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(S("div",we(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,D=g.hasOwnProperty(k)&&g[k];D&&w.appendChild(S("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function K1(n,i,a){i.alignable&&(i.alignable=null);for(var l=V("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);eg(n,i,a)}function X1(n,i,a,l){var u=Jp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),mf(n,i),Qp(n,i,a,l),eg(n,i,l),i.node}function eg(n,i,a){if(tg(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)tg(n,i.rest[l],i,a,!1)}function tg(n,i,a,l,u){if(i.widgets)for(var g=ul(a),y=0,w=i.widgets;y<w.length;++y){var _=w[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),Y1(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Zt(_,"redraw")}}function Y1(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function fl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ie(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),N(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function oi(n,i){for(var a=rl(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Qa(n){return n.lineSpace.offsetTop}function yf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function ng(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=N(n.measure,S("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Wr(n){return $-n.display.nativeBarWidth}function vo(n){return n.display.scroller.clientWidth-Wr(n)-n.display.barWidth}function bf(n){return n.display.scroller.clientHeight-Wr(n)-n.display.barHeight}function Z1(n,i,a){var l=n.options.lineWrapping,u=l&&vo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),w=0;w<y.length-1;w++){var _=y[w],k=y[w+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function rg(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function J1(n,i){i=xr(i);var a=C(i),l=n.display.externalMeasured=new Yp(n.doc,i,a);l.lineN=a;var u=l.built=Kp(n,l);return l.text=u.pre,N(n.display.lineMeasure,u.pre),l}function ig(n,i,a,l){return qr(n,ns(n,i),a,l)}function wf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[bo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function ns(n,i){var a=C(i),l=wf(n,a);l&&!l.text?l=null:l&&l.changes&&(Zp(n,l,a,Tf(n)),n.curOp.forceUpdate=!0),l||(l=J1(n,i));var u=rg(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function qr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Z1(n,i.view,i.rect),i.hasHeights=!0),y=e_(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var og={left:0,right:0,top:0,bottom:0};function sg(n,i,a){for(var l,u,g,y,w,_,k=0;k<n.length;k+=3)if(w=n[k],_=n[k+1],i<w?(u=0,g=1,y="left"):i<_?(u=i-w,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-w,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],w==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==_-w)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:w,coverEnd:_}}function Q1(n,i){var a=og;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function e_(n,i,a,l){var u=sg(i.map,a,l),g=u.node,y=u.start,w=u.end,_=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&ct(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&ct(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=Q1(H(g,y,w).getClientRects(),l),k.left||k.right||y==0)break;w=y,y=y-1,_="right"}h&&p<11&&(k=t_(n.display.measure,k))}else{y>0&&(_=l="right");var j;n.options.lineWrapping&&(j=g.getClientRects()).length>1?k=j[l=="right"?j.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var te=g.parentNode.getClientRects()[0];te?k={left:te.left,right:te.left+is(n.display),top:te.top,bottom:te.bottom}:k=og}for(var Z=k.top-i.rect.top,ce=k.bottom-i.rect.top,pe=(Z+ce)/2,_e=i.view.measure.heights,ke=0;ke<_e.length-1&&!(pe<_e[ke]);ke++);var Le=ke?_e[ke-1]:0,Te=_e[ke],Re={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Le,bottom:Te};return!k.left&&!k.right&&(Re.bogus=!0),n.options.singleCursorHeightPerLine||(Re.rtop=Z,Re.rbottom=ce),Re}function t_(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!cf(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function lg(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function ag(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)lg(n.display.view[i])}function dl(n){ag(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function cg(n){return b&&B?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function ug(n){return b&&B?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function xf(n){var i=xr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=fl(a[u]));return l}function ec(n,i,a,l,u){if(!u){var g=xf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ii(i);if(l=="local"?y+=Qa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:ug(nt(n)));var _=w.left+(l=="window"?0:cg(nt(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function fg(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=cg(nt(n)),u-=ug(nt(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function tc(n,i,a,l,u){return l||(l=Ie(n.doc,i.line)),ec(n,l,ig(n,l,i.ch,u),a)}function _r(n,i,a,l,u,g){l=l||Ie(n.doc,i.line),u||(u=ns(n,l));function y(ce,pe){var _e=qr(n,u,ce,pe?"right":"left",g);return pe?_e.left=_e.right:_e.right=_e.left,ec(n,l,_e,a)}var w=it(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!w)return y(k=="before"?_-1:_,k=="before");function D(ce,pe,_e){var ke=w[pe],Le=ke.level==1;return y(_e?ce-1:ce,Le!=_e)}var j=zt(w,_,k),te=Fr,Z=D(_,j,k=="before");return te!=null&&(Z.other=D(_,te,k!="before")),Z}function dg(n,i){var a=0;i=Ze(n.doc,i),n.options.lineWrapping||(a=is(n.display)*i.ch);var l=Ie(n.doc,i.line),u=ii(l)+Qa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function _f(n,i,a,l,u){var g=ae(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function Sf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return _f(l.first,0,null,-1,-1);var u=q(l,a),g=l.first+l.size-1;if(u>g)return _f(l.first+l.size-1,Ie(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Ie(l,u);;){var w=n_(n,y,u,i,a),_=M1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var k=_.find(1);if(k.line==u)return k;y=Ie(l,u=k.line)}}function hg(n,i,a,l){l-=xf(i);var u=i.text.length,g=Wt(function(y){return qr(n,a,y-1).bottom<=l},u,0);return u=Wt(function(y){return qr(n,a,y).top>l},g,u),{begin:g,end:u}}function pg(n,i,a,l){a||(a=ns(n,i));var u=ec(n,i,qr(n,a,l),"line").top;return hg(n,i,a,u)}function kf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function n_(n,i,a,l,u){u-=ii(i);var g=ns(n,i),y=xf(i),w=0,_=i.text.length,k=!0,D=it(i,n.doc.direction);if(D){var j=(n.options.lineWrapping?i_:r_)(n,i,a,g,D,l,u);k=j.level!=1,w=k?j.from:j.to-1,_=k?j.to:j.from-1}var te=null,Z=null,ce=Wt(function(We){var De=qr(n,g,We);return De.top+=y,De.bottom+=y,kf(De,l,u,!1)?(De.top<=u&&De.left<=l&&(te=We,Z=De),!0):!1},w,_),pe,_e,ke=!1;if(Z){var Le=l-Z.left<Z.right-l,Te=Le==k;ce=te+(Te?0:1),_e=Te?"after":"before",pe=Le?Z.left:Z.right}else{!k&&(ce==_||ce==w)&&ce++,_e=ce==0?"after":ce==i.text.length?"before":qr(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Re=_r(n,ae(a,ce,_e),"line",i,g);pe=Re.left,ke=u<Re.top?-1:u>=Re.bottom?1:0}return ce=Xt(i.text,ce,1),_f(a,ce,_e,ke,l-pe)}function r_(n,i,a,l,u,g,y){var w=Wt(function(j){var te=u[j],Z=te.level!=1;return kf(_r(n,ae(a,Z?te.to:te.from,Z?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[w];if(w>0){var k=_.level!=1,D=_r(n,ae(a,k?_.from:_.to,k?"after":"before"),"line",i,l);kf(D,g,y,!0)&&D.top>y&&(_=u[w-1])}return _}function i_(n,i,a,l,u,g,y){var w=hg(n,i,l,y),_=w.begin,k=w.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,j=null,te=0;te<u.length;te++){var Z=u[te];if(!(Z.from>=k||Z.to<=_)){var ce=Z.level!=1,pe=qr(n,l,ce?Math.min(k,Z.to)-1:Math.max(_,Z.from)).right,_e=pe<g?g-pe+1e9:pe-g;(!D||j>_e)&&(D=Z,j=_e)}}return D||(D=u[u.length-1]),D.from<_&&(D={from:_,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var mo;function rs(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(mo==null){mo=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)mo.appendChild(document.createTextNode("x")),mo.appendChild(S("br"));mo.appendChild(document.createTextNode("x"))}N(n.measure,mo);var a=mo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function is(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");N(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Tf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:Cf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Cf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function gg(n){var i=rs(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/is(n.display)-3);return function(u){if(Pi(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function Ef(n){var i=n.doc,a=gg(n);i.iter(function(l){var u=a(l);u!=l.height&&Qn(l,u)})}function yo(n,i,a,l){var u=n.display;if(!a&&rl(i).getAttribute("cm-not-content")=="true")return null;var g,y,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var _=Sf(n,g,y),k;if(l&&_.xRel>0&&(k=Ie(n.doc,_.line).text).length==_.ch){var D=ee(k,k.length,n.options.tabSize)-k.length;_=ae(_.line,Math.max(0,Math.round((g-ng(n.display).left)/is(n.display))-D))}return _}function bo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function kn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)ri&&pf(n.doc,i)<u.viewTo&&Ii(n);else if(a<=u.viewFrom)ri&&Vp(n.doc,a+l)>u.viewFrom?Ii(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ii(n);else if(i<=u.viewFrom){var g=nc(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ii(n)}else if(a>=u.viewTo){var y=nc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ii(n)}else{var w=nc(n,i,i,-1),_=nc(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(Ja(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):Ii(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function $i(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[bo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);oe(y,a)==-1&&y.push(a)}}}function Ii(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function nc(n,i,a,l){var u=bo(n,i),g,y=n.display.view;if(!ri||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=y[_].size;if(w!=i){if(l>0){if(u==y.length-1)return null;g=w+y[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;pf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function o_(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ja(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ja(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(bo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ja(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,bo(n,a)))),l.viewTo=a}function vg(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function hl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function mg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(y){var D=y(n,_);D&&Af(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&Af(n,_.head,u);k||s_(n,_,g)}}return l}function Af(n,i,a){var l=_r(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=tc(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function rc(n,i){return n.top-i.top||n.left-i.left}function s_(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=ng(n.display),w=y.left,_=Math.max(l.sizerWidth,vo(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,Re,We,De){Re<0&&(Re=0),Re=Math.round(Re),De=Math.round(De),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
|
|
24
|
-
top: `+Re+"px; width: "+(We??_-Te)+`px;
|
|
25
|
-
height: `+(De-Re)+"px"))}function j(Te,Re,We){var De=Ie(u,Te),rt=De.text.length,_t,en;function Ot(qt,En){return tc(n,ae(Te,qt),"div",De,En)}function Wn(qt,En,sn){var Gt=pg(n,De,null,qt),jt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?Gt.begin:Gt.end-(/\s/.test(De.text.charAt(Gt.end-1))?2:1);return Ot(It,jt)[jt]}var Cn=it(De,u.direction);return zn(Cn,Re||0,We??rt,function(qt,En,sn,Gt){var jt=sn=="ltr",It=Ot(qt,jt?"left":"right"),An=Ot(En-1,jt?"right":"left"),ms=Re==null&&qt==0,Wi=We==null&&En==rt,fn=Gt==0,jr=!Cn||Gt==Cn.length-1;if(An.top-It.top<=3){var tn=(k?ms:Wi)&&fn,td=(k?Wi:ms)&&jr,ai=tn?w:(jt?It:An).left,ko=td?_:(jt?An:It).right;D(ai,It.top,ko-ai,It.bottom)}else{var To,mn,ys,nd;jt?(To=k&&ms&&fn?w:It.left,mn=k?_:Wn(qt,sn,"before"),ys=k?w:Wn(En,sn,"after"),nd=k&&Wi&&jr?_:An.right):(To=k?Wn(qt,sn,"before"):w,mn=!k&&ms&&fn?_:It.right,ys=!k&&Wi&&jr?w:An.left,nd=k?Wn(En,sn,"after"):_),D(To,It.top,mn-To,It.bottom),It.bottom<An.top&&D(w,It.bottom,null,An.top),D(ys,An.top,nd-ys,An.bottom)}(!_t||rc(It,_t)<0)&&(_t=It),rc(An,_t)<0&&(_t=An),(!en||rc(It,en)<0)&&(en=It),rc(An,en)<0&&(en=An)}),{start:_t,end:en}}var te=i.from(),Z=i.to();if(te.line==Z.line)j(te.line,te.ch,Z.ch);else{var ce=Ie(u,te.line),pe=Ie(u,Z.line),_e=xr(ce)==xr(pe),ke=j(te.line,te.ch,_e?ce.text.length+1:null).end,Le=j(Z.line,_e?0:null,Z.ch).start;_e&&(ke.top<Le.top-2?(D(ke.right,ke.top,null,ke.bottom),D(w,Le.top,Le.left,Le.bottom)):D(ke.right,ke.top,Le.left-ke.right,ke.bottom)),ke.bottom<Le.top&&D(w,ke.bottom,null,Le.top)}a.appendChild(g)}function Lf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||os(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function yg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Nf(n))}function Mf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&os(n))},100)}function Nf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Rt(n,"focus",n,i),n.state.focused=!0,xe(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Lf(n))}function os(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Rt(n,"blur",n,i),n.state.focused=!1,P(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function ic(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var w=i.view[y],_=n.options.lineWrapping,k=void 0,D=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var j=w.node.offsetTop+w.node.offsetHeight;k=j-a,a=j}else{var te=w.node.getBoundingClientRect();k=te.bottom-te.top,!_&&w.text.firstChild&&(D=w.text.firstChild.getBoundingClientRect().right-te.left-1)}var Z=w.line.height-k;if((Z>.005||Z<-.005)&&(u<l&&(g-=Z),Qn(w.line,k),bg(w.line),w.rest))for(var ce=0;ce<w.rest.length;ce++)bg(w.rest[ce]);if(D>n.display.sizerWidth){var pe=Math.ceil(D/is(n.display));pe>n.display.maxLineLength&&(n.display.maxLineLength=pe,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function bg(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function oc(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Qa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=q(i,l),y=q(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,y=q(i,ii(Ie(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=q(i,ii(Ie(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function l_(n,i){if(!Pt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!A){var y=S("div","",null,`position: absolute;
|
|
26
|
-
top: `+(i.top-a.viewOffset-Qa(n.display))+`px;
|
|
27
|
-
height: `+(i.bottom-i.top+Wr(n)+a.barHeight)+`px;
|
|
28
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function a_(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ae(i.line,i.ch+1,"before"):i,i=i.ch?ae(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,w=_r(n,i),_=!a||a==i?w:_r(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var k=Of(n,u),D=n.doc.scrollTop,j=n.doc.scrollLeft;if(k.scrollTop!=null&&(gl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(wo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-j)>1&&(y=!0)),!y)break}return u}function c_(n,i){var a=Of(n,i);a.scrollTop!=null&&gl(n,a.scrollTop),a.scrollLeft!=null&&wo(n,a.scrollLeft)}function Of(n,i){var a=n.display,l=rs(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=bf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+yf(a),_=i.top<l,k=i.bottom>w-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?w:i.bottom)-g);D!=u&&(y.scrollTop=D)}var j=n.options.fixedGutter?0:a.gutters.offsetWidth,te=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-j,Z=vo(n)-a.gutters.offsetWidth,ce=i.right-i.left>Z;return ce&&(i.right=i.left+Z),i.left<10?y.scrollLeft=0:i.left<te?y.scrollLeft=Math.max(0,i.left+j-(ce?0:10)):i.right>Z+te-3&&(y.scrollLeft=i.right+(ce?0:10)-Z),y}function Rf(n,i){i!=null&&(sc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function ss(n){sc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function pl(n,i,a){(i!=null||a!=null)&&sc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function u_(n,i){sc(n),n.curOp.scrollToPos=i}function sc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=dg(n,i.from),l=dg(n,i.to);wg(n,a,l,i.margin)}}function wg(n,i,a,l){var u=Of(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});pl(n,u.scrollLeft,u.scrollTop)}function gl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||$f(n,{top:i}),xg(n,i,!0),s&&$f(n),yl(n,100))}function xg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function wo(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,Cg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function vl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+yf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Wr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var xo=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Be(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Be(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},xo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xo.prototype.zeroWidthHack=function(){var n=W&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},xo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},xo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var ml=function(){};ml.prototype.update=function(){return{bottom:0,right:0}},ml.prototype.setScrollLeft=function(){},ml.prototype.setScrollTop=function(){},ml.prototype.clear=function(){};function ls(n,i){i||(i=vl(n));var a=n.display.barWidth,l=n.display.barHeight;_g(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&ic(n),_g(n,vl(n)),a=n.display.barWidth,l=n.display.barHeight}function _g(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var Sg={native:xo,null:ml};function kg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&P(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Sg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Be(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?wo(n,i):gl(n,i)},n),n.display.scrollbars.addClass&&xe(n.display.wrapper,n.display.scrollbars.addClass)}var f_=0;function _o(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++f_,markArrays:null},W1(n.curOp)}function So(n){var i=n.curOp;i&&j1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;d_(a)})}function d_(n){for(var i=n.ops,a=0;a<i.length;a++)h_(i[a]);for(var l=0;l<i.length;l++)p_(i[l]);for(var u=0;u<i.length;u++)g_(i[u]);for(var g=0;g<i.length;g++)v_(i[g]);for(var y=0;y<i.length;y++)m_(i[y])}function h_(n){var i=n.cm,a=i.display;b_(i),n.updateMaxLine&&vf(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new lc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function p_(n){n.updatedDisplay=n.mustUpdate&&Pf(n.cm,n.update)}function g_(n){var i=n.cm,a=i.display;n.updatedDisplay&&ic(i),n.barMeasure=vl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=ig(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Wr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-vo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function v_(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&wo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(Je(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&ls(i,n.barMeasure),n.updatedDisplay&&Df(i,n.barMeasure),n.selectionChanged&&Lf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&yg(n.cm)}function m_(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Tg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&xg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&wo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=a_(i,Ze(l,n.scrollToPos.from),Ze(l,n.scrollToPos.to),n.scrollToPos.margin);l_(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Rt(g[w],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&Rt(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Rt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Bn(n,i){if(n.curOp)return i();_o(n);try{return i()}finally{So(n)}}function Jt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);_o(n);try{return i.apply(n,arguments)}finally{So(n)}}}function vn(n){return function(){if(this.curOp)return n.apply(this,arguments);_o(this);try{return n.apply(this,arguments)}finally{So(this)}}}function Qt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);_o(i);try{return n.apply(this,arguments)}finally{So(i)}}}function yl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,I(y_,n))}function y_(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ll(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,w=g.text.length>n.options.maxHighlightLength?Hr(i.mode,l.state):null,_=Op(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var k=g.styleClasses,D=_.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var j=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),te=0;!j&&te<y.length;++te)j=y[te]!=g.styles[te];j&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&uf(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return yl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Bn(n,function(){for(var g=0;g<u.length;g++)$i(n,u[g],"text")})}}var lc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=oc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=vo(n),this.force=a,this.dims=Tf(n),this.events=[]};lc.prototype.signal=function(n,i){Hn(n,i)&&this.events.push(arguments)},lc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Rt.apply(null,this.events[n])};function b_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Wr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Wr(n)+"px",i.scrollbarsClipped=!0)}function w_(n){if(n.hasFocus())return null;var i=me(Je(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Me(n).getSelection();l.anchorNode&&l.extend&&ie(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function x_(n){if(!(!n||!n.activeElt||n.activeElt==me(Fe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ie(document.body,n.anchorNode)&&ie(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function Pf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ii(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&vg(n)==0)return!1;Eg(n)&&(Ii(n),i.dims=Tf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),ri&&(g=pf(n.doc,g),y=Vp(n.doc,y));var w=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;o_(n,g,y),a.viewOffset=ii(Ie(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=vg(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=w_(n);return _>4&&(a.lineDiv.style.display="none"),__(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,x_(k),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,yl(n,400)),a.updateLineNumbers=null,!0}function Tg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==vo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+yf(n.display)-bf(n),a.top)}),i.visible=oc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=oc(n.display,n.doc,a));if(!Pf(n,i))break;ic(n);var u=vl(n);hl(n),ls(n,u),Df(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function $f(n,i){var a=new lc(n,i);if(Pf(n,a)){ic(n),Tg(n,a);var l=vl(n);hl(n),ls(n,l),Df(n,l),a.finish()}}function __(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function w(ce){var pe=ce.nextSibling;return v&&W&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),pe}for(var _=l.view,k=l.viewFrom,D=0;D<_.length;D++){var j=_[D];if(!j.hidden)if(!j.node||j.node.parentNode!=g){var te=X1(n,j,k,a);g.insertBefore(te,y)}else{for(;y!=j.node;)y=w(y);var Z=u&&i!=null&&i<=k&&j.lineNumber;j.changes&&(oe(j.changes,"gutter")>-1&&(Z=!1),Zp(n,j,k,a)),Z&&(O(j.lineNumber),j.lineNumber.appendChild(document.createTextNode(we(n.options,k)))),y=j.node.nextSibling}k+=j.size}for(;y;)y=w(y)}function If(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Zt(n,"gutterChanged",n)}function Df(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+Wr(n)+"px"}function Cg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Cf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var w=a[y].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Eg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=we(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",If(n.display),!0}return!1}function zf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Ag(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,w=i.appendChild(S("div",null,"CodeMirror-gutter "+g));y&&(w.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",If(n)}function bl(n){Ag(n.display),kn(n),Cg(n)}function S_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=z("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=z("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=z("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+$+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=zf(l.gutters,l.lineNumbers),Ag(u),a.init(u)}var ac=0,si=null;h?si=-.53:s?si=15:b?si=-.7:L&&(si=-1/3);function Lg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function k_(n){var i=Lg(n);return i.x*=si,i.y*=si,i}function Mg(n,i){b&&x==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=Lg(i),l=a.x,u=a.y,g=si;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,w=y.scroller,_=w.scrollWidth>w.clientWidth,k=w.scrollHeight>w.clientHeight;if(l&&_||u&&k){if(u&&W&&v){e:for(var D=i.target,j=y.view;D!=w;D=D.parentNode)for(var te=0;te<j.length;te++)if(j[te].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!T&&g!=null){u&&k&&gl(n,Math.max(0,w.scrollTop+u*g)),wo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&k)&&cn(i),y.wheelStartX=null;return}if(u&&g!=null){var Z=u*g,ce=n.doc.scrollTop,pe=ce+y.wrapper.clientHeight;Z<0?ce=Math.max(0,ce+Z-50):pe=Math.min(n.doc.height,pe+Z+50),$f(n,{top:ce,bottom:pe})}ac<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var _e=w.scrollLeft-y.wheelStartX,ke=w.scrollTop-y.wheelStartY,Le=ke&&y.wheelDY&&ke/y.wheelDY||_e&&y.wheelDX&&_e/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Le&&(si=(si*ac+Le)/(ac+1),++ac)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var er=function(n,i){this.ranges=n,this.primIndex=i};er.prototype.primary=function(){return this.ranges[this.primIndex]},er.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},er.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Yt(this.ranges[i].anchor),Yt(this.ranges[i].head));return new er(n,this.primIndex)},er.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},er.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ae(i,l.from())>=0&&Ae(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return Qo(this.anchor,this.head)},gt.prototype.to=function(){return Sn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Sr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(te,Z){return Ae(te.from(),Z.from())}),a=oe(i,u);for(var g=1;g<i.length;g++){var y=i[g],w=i[g-1],_=Ae(w.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Qo(w.from(),y.from()),D=Sn(w.to(),y.to()),j=w.empty()?y.from()==y.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new gt(j?D:k,j?k:D))}}return new er(i,a)}function Di(n,i){return new er([new gt(n,i||n)],0)}function zi(n){return n.text?ae(n.from.line+n.text.length-1,ve(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Ng(n,i){if(Ae(n,i.from)<0)return n;if(Ae(n,i.to)<=0)return zi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=zi(i).ch-i.to.ch),ae(a,l)}function Ff(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(Ng(u.anchor,i),Ng(u.head,i)))}return Sr(n.cm,a,n.sel.primIndex)}function Og(n,i,a){return n.line==i.line?ae(a.line,n.ch-i.ch+a.ch):ae(a.line+(n.line-i.line),n.ch)}function T_(n,i,a){for(var l=[],u=ae(n.first,0),g=u,y=0;y<i.length;y++){var w=i[y],_=Og(w.from,u,g),k=Og(zi(w),u,g);if(u=w.to,g=k,a=="around"){var D=n.sel.ranges[y],j=Ae(D.head,D.anchor)<0;l[y]=new gt(j?k:_,j?_:k)}else l[y]=new gt(_,_)}return new er(l,n.sel.primIndex)}function Hf(n){n.doc.mode=Yo(n.options,n.doc.modeOption),wl(n)}function wl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,yl(n,100),n.state.modeGen++,n.curOp&&kn(n)}function Rg(n,i){return i.from.ch==0&&i.to.ch==0&&ve(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Bf(n,i,a,l){function u(Le){return a?a[Le]:null}function g(Le,Te,Re){R1(Le,Te,Re,l),Zt(Le,"change",Le,i)}function y(Le,Te){for(var Re=[],We=Le;We<Te;++We)Re.push(new es(k[We],u(We),l));return Re}var w=i.from,_=i.to,k=i.text,D=Ie(n,w.line),j=Ie(n,_.line),te=ve(k),Z=u(k.length-1),ce=_.line-w.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(Rg(n,i)){var pe=y(0,k.length-1);g(j,j.text,Z),ce&&n.remove(w.line,ce),pe.length&&n.insert(w.line,pe)}else if(D==j)if(k.length==1)g(D,D.text.slice(0,w.ch)+te+D.text.slice(_.ch),Z);else{var _e=y(1,k.length-1);_e.push(new es(te+D.text.slice(_.ch),Z,l)),g(D,D.text.slice(0,w.ch)+k[0],u(0)),n.insert(w.line+1,_e)}else if(k.length==1)g(D,D.text.slice(0,w.ch)+k[0]+j.text.slice(_.ch),u(0)),n.remove(w.line+1,ce);else{g(D,D.text.slice(0,w.ch)+k[0],u(0)),g(j,te+j.text.slice(_.ch),Z);var ke=y(1,k.length-1);ce>1&&n.remove(w.line+1,ce-1),n.insert(w.line+1,ke)}Zt(n,"change",n,i)}function Fi(n,i,a){function l(u,g,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function Pg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Ef(n),Hf(n),$g(n),n.options.direction=i.direction,n.options.lineWrapping||vf(n),n.options.mode=i.modeOption,kn(n)}function $g(n){(n.doc.direction=="rtl"?xe:P)(n.display.lineDiv,"CodeMirror-rtl")}function C_(n){Bn(n,function(){$g(n),kn(n)})}function cc(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Wf(n,i){var a={from:Yt(i.from),to:zi(i),text:ni(n,i.from,i.to)};return zg(n,a,i.from.line,i.to.line+1),Fi(n,function(l){return zg(l,a,i.from.line,i.to.line+1)},!0),a}function Ig(n){for(;n.length;){var i=ve(n);if(i.ranges)n.pop();else break}}function E_(n,i){if(i)return Ig(n.done),ve(n.done);if(n.done.length&&!ve(n.done).ranges)return ve(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ve(n.done)}function Dg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=E_(u,u.lastOp==l)))w=ve(y.changes),Ae(i.from,i.to)==0&&Ae(i.from,w.to)==0?w.to=zi(i):y.changes.push(Wf(n,i));else{var _=ve(u.done);for((!_||!_.ranges)&&uc(n.sel,u.done),y={changes:[Wf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Rt(n,"historyAdded")}function A_(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function L_(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||A_(n,g,ve(u.done),i))?u.done[u.done.length-1]=i:uc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&Ig(u.undone)}function uc(n,i){var a=ve(i);a&&a.ranges&&a.equals(n)||i.push(n)}function zg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function M_(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function N_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(M_(a[u]));return l}function Fg(n,i){var a=N_(n,i),l=df(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var w=0;w<y.length;++w){for(var _=y[w],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function as(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?er.prototype.deepCopy.call(g):g);continue}var y=g.changes,w=[];l.push({changes:w});for(var _=0;_<y.length;++_){var k=y[_],D=void 0;if(w.push({from:k.from,to:k.to,text:k.text}),i)for(var j in k)(D=j.match(/^spans_(\d+)$/))&&oe(i,Number(D[1]))>-1&&(ve(w)[j]=k[j],delete k[j])}}return l}function qf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ae(i,u)<0;g!=Ae(a,u)<0?(u=i,i=a):g!=Ae(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function fc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),un(n,new er([qf(n.sel.primary(),i,a,u)],0),l)}function Hg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=qf(n.sel.ranges[g],i[g],null,u);var y=Sr(n.cm,l,n.sel.primIndex);un(n,y,a)}function jf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,un(n,Sr(n.cm,u,n.sel.primIndex),l)}function Bg(n,i,a,l){un(n,Di(i,a),l)}function O_(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new gt(Ze(n,u[g].anchor),Ze(n,u[g].head))},origin:a&&a.origin};return Rt(n,"beforeSelectionChange",n,l),n.cm&&Rt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Sr(n.cm,l.ranges,l.ranges.length-1):i}function Wg(n,i,a){var l=n.history.done,u=ve(l);u&&u.ranges?(l[l.length-1]=i,dc(n,i,a)):un(n,i,a)}function un(n,i,a){dc(n,i,a),L_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function dc(n,i,a){(Hn(n,"beforeSelectionChange")||n.cm&&Hn(n.cm,"beforeSelectionChange"))&&(i=O_(n,i,a));var l=a&&a.bias||(Ae(i.primary().head,n.sel.primary().head)<0?-1:1);qg(n,Ug(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&ss(n.cm)}function qg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ar(n.cm)),Zt(n,"cursorActivity",n))}function jg(n){qg(n,Ug(n,n.sel,null,!1))}function Ug(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=hc(n,y.anchor,w&&w.anchor,a,l),k=y.head==y.anchor?_:hc(n,y.head,w&&w.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(_,k))}return u?Sr(n.cm,u,i.primIndex):i}function cs(n,i,a,l,u){var g=Ie(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var w=g.markedSpans[y],_=w.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,D="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(k?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(D?w.to>=i.ch:w.to>i.ch))){if(u&&(Rt(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var j=_.find(l<0?1:-1),te=void 0;if((l<0?D:k)&&(j=Vg(n,j,-l,j&&j.line==i.line?g:null)),j&&j.line==i.line&&(te=Ae(j,a))&&(l<0?te<0:te>0))return cs(n,j,i,l,u)}var Z=_.find(l<0?-1:1);return(l<0?k:D)&&(Z=Vg(n,Z,l,Z.line==i.line?g:null)),Z?cs(n,Z,i,l,u):null}}return i}function hc(n,i,a,l,u){var g=l||1,y=cs(n,i,a,g,u)||!u&&cs(n,i,a,g,!0)||cs(n,i,a,-g,u)||!u&&cs(n,i,a,-g,!0);return y||(n.cantEdit=!0,ae(n.first,0))}function Vg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ze(n,ae(i.line-1)):null:a>0&&i.ch==(l||Ie(n,i.line)).text.length?i.line<n.first+n.size-1?ae(i.line+1,0):null:new ae(i.line,i.ch+a)}function Gg(n){n.setSelection(ae(n.firstLine(),0),ae(n.lastLine()),Y)}function Kg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,w){u&&(l.from=Ze(n,u)),g&&(l.to=Ze(n,g)),y&&(l.text=y),w!==void 0&&(l.origin=w)}),Rt(n,"beforeChange",n,l),n.cm&&Rt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function us(n,i,a){if(n.cm){if(!n.cm.curOp)return Jt(n.cm,us)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Hn(n,"beforeChange")||n.cm&&Hn(n.cm,"beforeChange"))&&(i=Kg(n,i,!0),!i))){var l=Fp&&!a&&L1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Xg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Xg(n,i)}}function Xg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ae(i.from,i.to)==0)){var a=Ff(n,i);Dg(n,i,a,n.cm?n.cm.curOp.id:NaN),xl(n,i,a,df(n,i));var l=[];Fi(n,function(u,g){!g&&oe(l,u.history)==-1&&(Qg(u.history,i),l.push(u.history)),xl(u,i,null,df(u,i))})}}function pc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,k=0;k<w.length&&(g=w[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(uc(g,_),a&&!g.equals(n.sel)){un(n,g,{clearRedo:!1});return}y=g}else if(l){w.push(g);return}else break;var D=[];uc(y,_),_.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var j=Hn(n,"beforeChange")||n.cm&&Hn(n.cm,"beforeChange"),te=function(pe){var _e=g.changes[pe];if(_e.origin=i,j&&!Kg(n,_e,!1))return w.length=0,{};D.push(Wf(n,_e));var ke=pe?Ff(n,_e):ve(w);xl(n,_e,ke,Fg(n,_e)),!pe&&n.cm&&n.cm.scrollIntoView({from:_e.from,to:zi(_e)});var Le=[];Fi(n,function(Te,Re){!Re&&oe(Le,Te.history)==-1&&(Qg(Te.history,_e),Le.push(Te.history)),xl(Te,_e,null,Fg(Te,_e))})},Z=g.changes.length-1;Z>=0;--Z){var ce=te(Z);if(ce)return ce.v}}}}function Yg(n,i){if(i!=0&&(n.first+=i,n.sel=new er(ye(n.sel.ranges,function(u){return new gt(ae(u.anchor.line+i,u.anchor.ch),ae(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){kn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)$i(n.cm,l,"gutter")}}function xl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Jt(n.cm,xl)(n,i,a,l);if(i.to.line<n.first){Yg(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Yg(n,u),i={from:ae(n.first,0),to:ae(i.to.line+u,i.to.ch),text:[ve(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ae(g,Ie(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ni(n,i.from,i.to),a||(a=Ff(n,i)),n.cm?R_(n.cm,i,l):Bf(n,i,l),dc(n,a,Y),n.cantEdit&&hc(n,ae(n.firstLine(),0))&&(n.cantEdit=!1)}}function R_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=C(xr(Ie(l,g.line))),l.iter(_,y.line+1,function(Z){if(Z==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ar(n),Bf(l,i,a,gg(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(Z){var ce=Za(Z);ce>u.maxLineLength&&(u.maxLine=Z,u.maxLineLength=ce,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),_1(l,g.line),yl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?kn(n):g.line==y.line&&i.text.length==1&&!Rg(n.doc,i)?$i(n,g.line,"text"):kn(n,g.line,y.line+1,k);var D=Hn(n,"changes"),j=Hn(n,"change");if(j||D){var te={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};j&&Zt(n,"change",n,te),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(te)}n.display.selForContextMenu=null}function fs(n,i,a,l,u){var g;l||(l=a),Ae(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),us(n,{from:a,to:l,text:i,origin:u})}function Zg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Jg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)Zg(g.ranges[w].anchor,i,a,l),Zg(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=ae(k.from.line+l,k.from.ch),k.to=ae(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Qg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Jg(n.done,a,l,u),Jg(n.undone,a,l,u)}function _l(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Ie(n,Mp(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&$i(n.cm,u,a),g)}function Sl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}Sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,P1(u),Zt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function kl(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}kl.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Sl))){var w=[];this.collapse(w),this.children=[new Sl(w)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,w=y;w<u.lines.length;){var _=new Sl(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new kl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=oe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new kl(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var Tl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Tl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=fl(this);Qn(a,Math.max(0,a.height-g)),n&&(Bn(n,function(){ev(n,a,-g),$i(n,l,"widget")}),Zt(n,"lineWidgetCleared",n,this,l))}},Tl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=fl(this)-i;u&&(Pi(this.doc,l)||Qn(l,l.height+u),a&&Bn(a,function(){a.curOp.forceUpdate=!0,ev(a,l,u),Zt(a,"lineWidgetChanged",a,n,C(l))}))},vr(Tl);function ev(n,i,a){ii(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Rf(n,a)}function P_(n,i,a,l){var u=new Tl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),_l(n,i,"widget",function(y){var w=y.widgets||(y.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Pi(n,y)){var _=ii(y)<n.scrollTop;Qn(y,y.height+fl(u)),_&&Rf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Zt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var tv=0,Hi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++tv};Hi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&_o(n),Hn(this,"clear")){var a=this.find();a&&Zt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],w=al(y.markedSpans,this);n&&!this.collapsed?$i(n,C(y),"text"):n&&(w.to!=null&&(u=C(y)),w.from!=null&&(l=C(y))),y.markedSpans=T1(y.markedSpans,w),w.from==null&&this.collapsed&&!Pi(this.doc,y)&&n&&Qn(y,rs(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=xr(this.lines[_]),D=Za(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&kn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&jg(n.doc)),n&&Zt(n,"markerCleared",n,this,l,u),i&&So(n),this.parent&&this.parent.clear()}},Hi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=al(g.markedSpans,this);if(y.from!=null&&(a=ae(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=ae(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Hi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Bn(l,function(){var u=i.line,g=C(i.line),y=wf(l,g);if(y&&(lg(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Pi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=fl(a)-w;_&&Qn(u,u.height+_)}Zt(l,"markerChanged",l,n)})},Hi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||oe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Hi.prototype.detachLine=function(n){if(this.lines.splice(oe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},vr(Hi);function ds(n,i,a,l,u){if(l&&l.shared)return $_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Jt(n.cm,ds)(n,i,a,l,u);var g=new Hi(n,u),y=Ae(i,a);if(l&&G(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=z("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Up(n,i.line,i,a,g)||i.line!=a.line&&Up(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");k1()}g.addToHistory&&Dg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,k;if(n.iter(w,a.line+1,function(j){_&&g.collapsed&&!_.options.lineWrapping&&xr(j)==_.display.maxLine&&(k=!0),g.collapsed&&w!=i.line&&Qn(j,0),C1(j,new Ga(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(j){Pi(n,j)&&Qn(j,0)}),g.clearOnEnter&&Be(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(S1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++tv,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)kn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)$i(_,D,"text");g.atomic&&jg(_.doc),Zt(_,"markerAdded",_,g)}return g}var Cl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Cl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Zt(this,"clear")}},Cl.prototype.find=function(n,i){return this.primary.find(n,i)},vr(Cl);function $_(n,i,a,l,u){l=G(l),l.shared=!1;var g=[ds(n,i,a,l,u)],y=g[0],w=l.widgetNode;return Fi(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(ds(_,Ze(_,i),Ze(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=ve(g)}),new Cl(g,y)}function nv(n){return n.findMarks(ae(n.first,0),n.clipPos(ae(n.lastLine())),function(i){return i.parent})}function I_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Ae(g,y)){var w=ds(n,g,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function D_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Fi(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];oe(g,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var z_=0,Tn=function(n,i,a,l,u){if(!(this instanceof Tn))return new Tn(n,i,a,l,u);a==null&&(a=0),kl.call(this,[new Sl([new es("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ae(a,0);this.sel=Di(g),this.history=new cc(null),this.id=++z_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Bf(this,{from:g,to:g,text:n}),un(this,Di(g),Y)};Tn.prototype=He(kl.prototype,{constructor:Tn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=sl(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Qt(function(n){var i=ae(this.first,0),a=this.first+this.size-1;us(this,{from:i,to:ae(a,Ie(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&pl(this.cm,0,0),un(this,Di(i),Y)}),replaceRange:function(n,i,a,l){i=Ze(this,i),a=a?Ze(this,a):i,fs(this,n,i,a,l)},getRange:function(n,i,a){var l=ni(this,Ze(this,n),Ze(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(fe(this,n))return Ie(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Ie(this,n)),xr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ze(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Qt(function(n,i,a){Bg(this,Ze(this,typeof n=="number"?ae(n,i||0):n),null,a)}),setSelection:Qt(function(n,i,a){Bg(this,Ze(this,n),Ze(this,i||n),a)}),extendSelection:Qt(function(n,i,a){fc(this,Ze(this,n),i&&Ze(this,i),a)}),extendSelections:Qt(function(n,i){Hg(this,Np(this,n),i)}),extendSelectionsBy:Qt(function(n,i){var a=ye(this.sel.ranges,n);Hg(this,Np(this,a),i)}),setSelections:Qt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(Ze(this,n[u].anchor),Ze(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),un(this,Sr(this.cm,l,i),a)}}),addSelection:Qt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(Ze(this,n),Ze(this,i||n))),un(this,Sr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=ni(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=ni(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Qt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&T_(this,l,i),_=l.length-1;_>=0;_--)us(this,l[_]);w?Wg(this,w):this.cm&&ss(this.cm)}),undo:Qt(function(){pc(this,"undo")}),redo:Qt(function(){pc(this,"redo")}),undoSelection:Qt(function(){pc(this,"undo",!0)}),redoSelection:Qt(function(){pc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new cc(this.history),Fi(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:as(this.history.done),undone:as(this.history.undone)}},setHistory:function(n){var i=this.history=new cc(this.history);i.done=as(n.done.slice(0),null,!0),i.undone=as(n.undone.slice(0),null,!0)},setGutterMarker:Qt(function(n,i,a){return _l(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ft(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Qt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&_l(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ft(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Ie(this,n),!n))return null}else if(i=C(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Qt(function(n,i,a){return _l(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(V(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Qt(function(n,i,a){return _l(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(V(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Qt(function(n,i,a){return P_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return ds(this,Ze(this,n),Ze(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ze(this,n),ds(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ze(this,n);var i=[],a=Ie(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ze(this,n),i=Ze(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var w=0;w<y.length;w++){var _=y[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ze(this,ae(a,i))},indexFromPos:function(n){n=Ze(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new Tn(sl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new Tn(sl(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],I_(l,nv(this)),l},unlinkDoc:function(n){if(n instanceof Tt&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),D_(nv(this));break}}if(n.history==this.history){var l=[n.id];Fi(n,function(u){return l.push(u.id)},!0),n.history=new cc(null),n.history.done=as(this.history.done,l),n.history.undone=as(this.history.undone,l)}},iterLinkedDocs:function(n){Fi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):cr(n)},lineSeparator:function(){return this.lineSep||`
|
|
29
|
-
`},setDirection:Qt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&C_(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var rv=0;function F_(n){var i=this;if(iv(i),!(Pt(i,n)||oi(i.display,n))){cn(n),h&&(rv=+new Date);var a=yo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,w=function(){++y==u&&Jt(i,function(){a=Ze(i.doc,a);var Z={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};us(i.doc,Z),Wg(i.doc,Di(Ze(i.doc,a),Ze(i.doc,zi(Z))))})()},_=function(Z,ce){if(i.options.allowDropFileTypes&&oe(i.options.allowDropFileTypes,Z.type)==-1){w();return}var pe=new FileReader;pe.onerror=function(){return w()},pe.onload=function(){var _e=pe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(_e)){w();return}g[ce]=_e,w()},pe.readAsText(Z)},k=0;k<l.length;k++)_(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var j;if(i.state.draggingText&&!i.state.draggingText.copy&&(j=i.listSelections()),dc(i.doc,Di(a,a)),j)for(var te=0;te<j.length;++te)fs(i.doc,"",j[te].anchor,j[te].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function H_(n,i){if(h&&(!n.state.draggingText||+new Date-rv<100)){Mi(i);return}if(!(Pt(n,i)||oi(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",T&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),T&&a.parentNode.removeChild(a)}}function B_(n,i){var a=yo(n,i);if(a){var l=document.createDocumentFragment();Af(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),N(n.display.dragCursor,l)}}function iv(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function ov(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var sv=!1;function W_(){sv||(q_(),sv=!0)}function q_(){var n;Be(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,ov(j_)},100))}),Be(window,"blur",function(){return ov(os)})}function j_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.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"},El=0;El<10;El++)Bi[El+48]=Bi[El+96]=String(El);for(var gc=65;gc<=90;gc++)Bi[gc]=String.fromCharCode(gc);for(var Al=1;Al<=12;Al++)Bi[Al+111]=Bi[Al+63235]="F"+Al;var li={};li.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"},li.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"},li.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"},li.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"]},li.default=W?li.macDefault:li.pcDefault;function U_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function V_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),U_),g=0;g<u.length;g++){var y=void 0,w=void 0;g==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,g+1).join(" "),y="...");var _=i[w];if(!_)i[w]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var k in i)n[k]=i[k];return n}function hs(n,i,a,l){i=vc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return hs(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=hs(n,i.fallthrough[g],a,l);if(y)return y}}}function lv(n){var i=typeof n=="string"?n:Bi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function av(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Q?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Q?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function cv(n,i){if(T&&n.keyCode==34&&n.char)return!1;var a=Bi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),av(a,n,i))}function vc(n){return typeof n=="string"?li[n]:n}function ps(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ae(g.from,ve(l).to)<=0;){var y=l.pop();if(Ae(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Bn(n,function(){for(var w=l.length-1;w>=0;w--)fs(n.doc,"",l[w].from,l[w].to,"+delete");ss(n)})}function Uf(n,i,a){var l=Xt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Vf(n,i,a){var l=Uf(n,i.ch,a);return l==null?null:new ae(i.line,l,a<0?"after":"before")}function Gf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=it(a,i.doc.direction);if(g){var y=u<0?ve(g):g[0],w=u<0==(y.level==1),_=w?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=ns(i,a);k=u<0?a.text.length-1:0;var j=qr(i,D,k).top;k=Wt(function(te){return qr(i,D,te).top==j},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=Uf(a,k,1))}else k=u<0?y.to:y.from;return new ae(l,k,_)}}return new ae(l,u<0?a.text.length:0,u<0?"before":"after")}function G_(n,i,a,l){var u=it(i,n.doc.direction);if(!u)return Vf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=zt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Vf(i,a,l);var w=function(ke,Le){return Uf(i,ke instanceof ae?ke.ch:ke,Le)},_,k=function(ke){return n.options.lineWrapping?(_=_||ns(n,i),pg(n,i,_,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var j=y.level==1==l<0,te=w(a,j?1:-1);if(te!=null&&(j?te<=y.to&&te<=D.end:te>=y.from&&te>=D.begin)){var Z=j?"before":"after";return new ae(a.line,te,Z)}}var ce=function(ke,Le,Te){for(var Re=function(_t,en){return en?new ae(a.line,w(_t,1),"before"):new ae(a.line,_t,"after")};ke>=0&&ke<u.length;ke+=Le){var We=u[ke],De=Le>0==(We.level!=1),rt=De?Te.begin:w(Te.end,-1);if(We.from<=rt&&rt<We.to||(rt=De?We.from:w(We.to,-1),Te.begin<=rt&&rt<Te.end))return Re(rt,De)}},pe=ce(g+l,l,D);if(pe)return pe;var _e=l>0?D.end:w(D.begin,-1);return _e!=null&&!(l>0&&_e==i.text.length)&&(pe=ce(l>0?0:u.length-1,l,k(_e)),pe)?pe:null}var Ll={selectAll:Gg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Y)},killLine:function(n){return ps(n,function(i){if(i.empty()){var a=Ie(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ae(i.head.line+1,0)}:{from:i.head,to:ae(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ps(n,function(i){return{from:ae(i.from().line,0),to:Ze(n.doc,ae(i.to().line+1,0))}})},delLineLeft:function(n){return ps(n,function(i){return{from:ae(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ps(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return ps(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(ae(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ae(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return uv(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return fv(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return K_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?fv(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=ee(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Bn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Ie(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ae(u.line,u.ch-1)),u.ch>0)u=new ae(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ae(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Ie(n.doc,u.line-1).text;y&&(u=new ae(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ae(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Bn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);ss(n)})},openLine:function(n){return n.replaceSelection(`
|
|
30
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function uv(n,i){var a=Ie(n.doc,i),l=xr(a);return l!=a&&(i=C(l)),Gf(!0,n,l,i,1)}function K_(n,i){var a=Ie(n.doc,i),l=N1(a);return l!=a&&(i=C(l)),Gf(!0,n,a,i,-1)}function fv(n,i){var a=uv(n,i.line),l=Ie(n.doc,a.line),u=it(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return ae(a.line,y?0:g,a.sticky)}return a}function mc(n,i,a){if(typeof i=="string"&&(i=Ll[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=F}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function X_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=hs(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&hs(i,n.options.extraKeys,a,n)||hs(i,n.options.keyMap,a,n)}var Y_=new le;function Ml(n,i,a,l){var u=n.state.keySeq;if(u){if(lv(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:Y_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),dv(n,u+" "+i,a,l))return!0}return dv(n,i,a,l)}function dv(n,i,a,l){var u=X_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Zt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(cn(a),Lf(n)),!!u}function hv(n,i){var a=cv(i,!0);return a?i.shiftKey&&!n.state.keySeq?Ml(n,"Shift-"+a,i,function(l){return mc(n,l,!0)})||Ml(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return mc(n,l)}):Ml(n,a,i,function(l){return mc(n,l)}):!1}function Z_(n,i,a){return Ml(n,"'"+a+"'",i,function(l){return mc(n,l,!0)})}var Kf=null;function pv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(Je(i)),!Pt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=hv(i,n);T&&(Kf=l?a:null,!l&&a==88&&!Ua&&(W?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!W&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&J_(i)}}function J_(n){var i=n.display.lineDiv;xe(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(P(i,"CodeMirror-crosshair"),an(document,"keyup",a),an(document,"mouseover",a))}Be(document,"keyup",a),Be(document,"mouseover",a)}function gv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,n)}function vv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(oi(i.display,n)||Pt(i,n)||n.ctrlKey&&!n.altKey||W&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(T&&a==Kf){Kf=null,cn(n);return}if(!(T&&(!n.which||n.which<10)&&hv(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(Z_(i,n,u)||i.display.input.onKeyPress(n))}}}var Q_=400,Xf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Xf.prototype.compare=function(n,i,a){return this.time+Q_>n&&Ae(i,this.pos)==0&&a==this.button};var Nl,Ol;function eS(n,i){var a=+new Date;return Ol&&Ol.compare(a,n,i)?(Nl=Ol=null,"triple"):Nl&&Nl.compare(a,n,i)?(Ol=new Xf(a,n,i),Nl=null,"double"):(Nl=new Xf(a,n,i),Ol=null,"single")}function mv(n){var i=this,a=i.display;if(!(Pt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,oi(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Yf(i,n)){var l=yo(i,n),u=mr(n),g=l?eS(l,u):"single";Me(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&tS(i,u,l,g,n))&&(u==1?l?rS(i,l,g,n):rl(n)==a.scroller&&cn(n):u==2?(l&&fc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(K?i.display.input.onContextMenu(n):Mf(i)))}}}function tS(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,Ml(n,av(g,u),u,function(y){if(typeof y=="string"&&(y=Ll[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=F}finally{n.state.suppressEdits=!1}return w})}function nS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=U?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=W?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(W?a.altKey:a.ctrlKey)),u}function rS(n,i,a,l){h?setTimeout(I(yg,n),0):n.curOp.focus=me(Je(n));var u=nS(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&af&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ae((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ae(y.to(),i)>0||i.xRel<0)?iS(n,l,i,u):oS(n,l,i,u)}function iS(n,i,a,l){var u=n.display,g=!1,y=Jt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Mf(n)),an(u.wrapper.ownerDocument,"mouseup",y),an(u.wrapper.ownerDocument,"mousemove",w),an(u.scroller,"dragstart",_),an(u.scroller,"drop",y),g||(cn(k),l.addNew||fc(n.doc,a,null,null,l.extend),v&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Be(u.wrapper.ownerDocument,"mouseup",y),Be(u.wrapper.ownerDocument,"mousemove",w),Be(u.scroller,"dragstart",_),Be(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function yv(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(ae(i.line,0),Ze(n.doc,ae(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function oS(n,i,a,l){h&&Mf(n);var u=n.display,g=n.doc;cn(i);var y,w,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?y=k[w]:y=new gt(a,a)):(y=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=yo(n,i,!0,!0),w=-1;else{var D=yv(n,a,l.unit);l.extend?y=qf(y,D.anchor,D.head,l.extend):y=D}l.addNew?w==-1?(w=k.length,un(g,Sr(n,k.concat([y]),w),{scroll:!1,origin:"*mouse"})):k.length>1&&k[w].empty()&&l.unit=="char"&&!l.extend?(un(g,Sr(n,k.slice(0,w).concat(k.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):jf(g,w,y,ue):(w=0,un(g,new er([y],0),ue),_=g.sel);var j=a;function te(Te){if(Ae(j,Te)!=0)if(j=Te,l.unit=="rectangle"){for(var Re=[],We=n.options.tabSize,De=ee(Ie(g,a.line).text,a.ch,We),rt=ee(Ie(g,Te.line).text,Te.ch,We),_t=Math.min(De,rt),en=Math.max(De,rt),Ot=Math.min(a.line,Te.line),Wn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Ot<=Wn;Ot++){var Cn=Ie(g,Ot).text,qt=de(Cn,_t,We);_t==en?Re.push(new gt(ae(Ot,qt),ae(Ot,qt))):Cn.length>qt&&Re.push(new gt(ae(Ot,qt),ae(Ot,de(Cn,en,We))))}Re.length||Re.push(new gt(a,a)),un(g,Sr(n,_.ranges.slice(0,w).concat(Re),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var En=y,sn=yv(n,Te,l.unit),Gt=En.anchor,jt;Ae(sn.anchor,Gt)>0?(jt=sn.head,Gt=Qo(En.from(),sn.anchor)):(jt=sn.anchor,Gt=Sn(En.to(),sn.head));var It=_.ranges.slice(0);It[w]=sS(n,new gt(Ze(g,Gt),jt)),un(g,Sr(n,It,w),ue)}}var Z=u.wrapper.getBoundingClientRect(),ce=0;function pe(Te){var Re=++ce,We=yo(n,Te,!0,l.unit=="rectangle");if(We)if(Ae(We,j)!=0){n.curOp.focus=me(Je(n)),te(We);var De=oc(u,g);(We.line>=De.to||We.line<De.from)&&setTimeout(Jt(n,function(){ce==Re&&pe(Te)}),150)}else{var rt=Te.clientY<Z.top?-20:Te.clientY>Z.bottom?20:0;rt&&setTimeout(Jt(n,function(){ce==Re&&(u.scroller.scrollTop+=rt,pe(Te))}),50)}}function _e(Te){n.state.selectingText=!1,ce=1/0,Te&&(cn(Te),u.input.focus()),an(u.wrapper.ownerDocument,"mousemove",ke),an(u.wrapper.ownerDocument,"mouseup",Le),g.history.lastSelOrigin=null}var ke=Jt(n,function(Te){Te.buttons===0||!mr(Te)?_e(Te):pe(Te)}),Le=Jt(n,_e);n.state.selectingText=Le,Be(u.wrapper.ownerDocument,"mousemove",ke),Be(u.wrapper.ownerDocument,"mouseup",Le)}function sS(n,i){var a=i.anchor,l=i.head,u=Ie(n.doc,a.line);if(Ae(a,l)==0&&a.sticky==l.sticky)return i;var g=it(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),w=g[y];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=y+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=zt(g,l.ch,l.sticky),j=D-y||(l.ch-a.ch)*(w.level==1?-1:1);D==_-1||D==_?k=j<0:k=j>0}var te=g[_+(k?-1:0)],Z=k==(te.level==1),ce=Z?te.from:te.to,pe=Z?"after":"before";return a.ch==ce&&a.sticky==pe?i:new gt(new ae(a.line,ce,pe),l)}function bv(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&cn(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(g>w.bottom||!Hn(n,a))return _n(i);g-=w.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var D=q(n.doc,g),j=n.display.gutterSpecs[_];return Rt(n,a,n,D,j.className,i),_n(i)}}}function Yf(n,i){return bv(n,i,"gutterClick",!0)}function wv(n,i){oi(n.display,i)||lS(n,i)||Pt(n,i,"contextmenu")||K||n.display.input.onContextMenu(i)}function lS(n,i){return Hn(n,"gutterContextMenu")?bv(n,i,"gutterContextMenu",!1):!1}function xv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dl(n)}var gs={toString:function(){return"CodeMirror.Init"}},_v={},yc={};function aS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(w,_,k){k!=gs&&g(w,_,k)}:g)}n.defineOption=a,n.Init=gs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Hf(l)},!0),a("indentUnit",2,Hf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){wl(l),dl(l),kn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var k=0;;){var D=_.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(ae(y,D))}y++});for(var w=g.length-1;w>=0;w--)fs(l.doc,u,g[w],ae(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=gs&&l.refresh()}),a("specialCharPlaceholder",D1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!se),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){xv(l),bl(l)},!0),a("keyMap","default",function(l,u,g){var y=vc(u),w=g!=gs&&vc(g);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,uS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=zf(u,l.options.lineNumbers),bl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Cf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ls(l)},!0),a("scrollbarStyle","native",function(l){kg(l),ls(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=zf(l.options.gutters,u),bl(l)},!0),a("firstLineNumber",1,bl,!0),a("lineNumberFormatter",function(l){return l},bl,!0),a("showCursorWhenSelecting",!1,hl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(os(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,cS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,hl,!0),a("singleCursorHeightPerLine",!0,hl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,wl,!0),a("addModeClass",!1,wl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,wl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function cS(n,i,a){var l=a&&a!=gs;if(!i!=!l){var u=n.display.dragFunctions,g=i?Be:an;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function uS(n){n.options.lineWrapping?(xe(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(P(n.display.wrapper,"CodeMirror-wrap"),vf(n)),Ef(n),kn(n),dl(n),setTimeout(function(){return ls(n)},100)}function Tt(n,i){var a=this;if(!(this instanceof Tt))return new Tt(n,i);this.options=i=i?G(i):{},G(_v,i,!1);var l=i.value;typeof l=="string"?l=new Tn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Tt.inputStyles[i.inputStyle](this),g=this.display=new S_(n,l,u,i);g.wrapper.CodeMirror=this,xv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),kg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!E&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),fS(this),W_(),_o(this),this.curOp.forceUpdate=!0,Pg(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Nf(a)},20):os(this);for(var y in yc)yc.hasOwnProperty(y)&&yc[y](this,i[y],gs);Eg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Zf.length;++w)Zf[w](this);So(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Tt.defaults=_v,Tt.optionHandlers=yc;function fS(n){var i=n.display;Be(i.scroller,"mousedown",Jt(n,mv)),h&&p<11?Be(i.scroller,"dblclick",Jt(n,function(_){if(!Pt(n,_)){var k=yo(n,_);if(!(!k||Yf(n,_)||oi(n.display,_))){cn(_);var D=n.findWordAt(k);fc(n.doc,D.anchor,D.head)}}})):Be(i.scroller,"dblclick",function(_){return Pt(n,_)||cn(_)}),Be(i.scroller,"contextmenu",function(_){return wv(n,_)}),Be(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||wv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var D=k.left-_.left,j=k.top-_.top;return D*D+j*j>400}Be(i.scroller,"touchstart",function(_){if(!Pt(n,_)&&!g(_)&&!Yf(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Be(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Be(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!oi(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),j;!k.prev||y(k,k.prev)?j=new gt(D,D):!k.prev.prev||y(k,k.prev.prev)?j=n.findWordAt(D):j=new gt(ae(D.line,0),Ze(n.doc,ae(D.line+1,0))),n.setSelection(j.anchor,j.head),n.focus(),cn(_)}u()}),Be(i.scroller,"touchcancel",u),Be(i.scroller,"scroll",function(){i.scroller.clientHeight&&(gl(n,i.scroller.scrollTop),wo(n,i.scroller.scrollLeft,!0),Rt(n,"scroll",n))}),Be(i.scroller,"mousewheel",function(_){return Mg(n,_)}),Be(i.scroller,"DOMMouseScroll",function(_){return Mg(n,_)}),Be(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Pt(n,_)||Mi(_)},over:function(_){Pt(n,_)||(B_(n,_),Mi(_))},start:function(_){return H_(n,_)},drop:Jt(n,F_),leave:function(_){Pt(n,_)||iv(n)}};var w=i.input.getField();Be(w,"keyup",function(_){return gv.call(n,_)}),Be(w,"keydown",Jt(n,pv)),Be(w,"keypress",Jt(n,vv)),Be(w,"focus",function(_){return Nf(n,_)}),Be(w,"blur",function(_){return os(n,_)})}var Zf=[];Tt.defineInitHook=function(n){return Zf.push(n)};function Rl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=ll(n,i).state:a="prev");var y=n.options.tabSize,w=Ie(u,i),_=ee(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var k=w.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(w.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,w.text.slice(k.length),w.text),D==F||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=ee(Ie(u,i-1).text,null,y):D=0:a=="add"?D=_+n.options.indentUnit:a=="subtract"?D=_-n.options.indentUnit:typeof a=="number"&&(D=_+a),D=Math.max(0,D);var j="",te=0;if(n.options.indentWithTabs)for(var Z=Math.floor(D/y);Z;--Z)te+=y,j+=" ";if(te<D&&(j+=Ee(D-te)),j!=k)return fs(u,j,ae(i,0),ae(i,k.length),"+input"),w.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var pe=u.sel.ranges[ce];if(pe.head.line==i&&pe.head.ch<k.length){var _e=ae(i,k.length);jf(u,ce,new gt(_e,_e));break}}}var kr=null;function bc(n){kr=n}function Jf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,_=cr(i),k=null;if(w&&l.ranges.length>1)if(kr&&kr.text.join(`
|
|
31
|
-
`)==i){if(l.ranges.length%kr.text.length==0){k=[];for(var D=0;D<kr.text.length;D++)k.push(g.splitLines(kr.text[D]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=ye(_,function(ke){return[ke]}));for(var j=n.curOp.updateInput,te=l.ranges.length-1;te>=0;te--){var Z=l.ranges[te],ce=Z.from(),pe=Z.to();Z.empty()&&(a&&a>0?ce=ae(ce.line,ce.ch-a):n.state.overwrite&&!w?pe=ae(pe.line,Math.min(Ie(g,pe.line).text.length,pe.ch+ve(_).length)):w&&kr&&kr.lineWise&&kr.text.join(`
|
|
32
|
-
`)==_.join(`
|
|
33
|
-
`)&&(ce=pe=ae(ce.line,0)));var _e={from:ce,to:pe,text:k?k[te%k.length]:_,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};us(n.doc,_e),Zt(n,"inputRead",n,_e)}i&&!w&&kv(n,i),ss(n),n.curOp.updateInput<2&&(n.curOp.updateInput=j),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Sv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Bn(i,function(){return Jf(i,a,0,null,"paste")}),!0}function kv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){y=Rl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Ie(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Rl(n,u.head.line,"smart"));y&&Zt(n,"electricInput",n,u.head.line)}}}function Tv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:ae(u,0),head:ae(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Qf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function Cv(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),R&&(n.style.border="1px solid black"),i}function dS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Me(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Jt(this,i[l])(this,u,y),Rt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](vc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:vn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");je(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,kn(this)}),removeOverlay:vn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,kn(this);return}}}),indentLine:vn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),fe(this.doc,l)&&Rl(this,l,u,g)}),indentSelection:vn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>g&&(Rl(this,w.head.line,l,!0),g=w.head.line,y==this.doc.sel.primIndex&&ss(this));else{var _=w.from(),k=w.to(),D=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var j=D;j<g;++j)Rl(this,j,l);var te=this.doc.sel.ranges;_.ch==0&&u.length==te.length&&te[y].from().ch>0&&jf(this.doc,y,new gt(_,te[y].to()),Y)}}}),getTokenAt:function(l,u){return Ip(this,l,u)},getLineTokens:function(l,u){return Ip(this,ae(l),u,!0)},getTokenTypeAt:function(l){l=Ze(this.doc,l);var u=Rp(this,Ie(this.doc,l.line)),g=0,y=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=w)y=k;else if(u[k*2+1]<w)g=k+1;else{_=u[k*2+2];break}}var D=_?_.indexOf("overlay "):-1;return D<0?_:D==0?null:_.slice(0,D-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&g.push(y[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var k=y[w[u][_]];k&&g.push(k)}else w.helperType&&y[w.helperType]?g.push(y[w.helperType]):y[w.name]&&g.push(y[w.name]);for(var D=0;D<y._global.length;D++){var j=y._global[D];j.pred(w,this)&&oe(g,j.val)==-1&&g.push(j.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=Mp(g,l??g.first+g.size-1),ll(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ze(this.doc,l):g=l?y.from():y.to(),_r(this,g,u||"page")},charCoords:function(l,u){return tc(this,Ze(this.doc,l),u||"page")},coordsChar:function(l,u){return l=fg(this,l,u||"page"),Sf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=fg(this,{top:l,left:0},u||"page").top,q(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),w=Ie(this.doc,l)}else w=l;return ec(this,w,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ii(w):0)},defaultTextHeight:function(){return rs(this.display)},defaultCharWidth:function(){return is(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,w){var _=this.display;l=_r(this,Ze(this.doc,l));var k=l.bottom,D=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var j=Math.max(_.wrapper.clientHeight,this.doc.height),te=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>j)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=j&&(k=l.bottom),D+u.offsetWidth>te&&(D=te-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",w=="right"?(D=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?D=0:w=="middle"&&(D=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=D+"px"),g&&c_(this,{left:D,top:k,right:D+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:vn(pv),triggerOnKeyPress:vn(vv),triggerOnKeyUp:gv,triggerOnMouseDown:vn(mv),execCommand:function(l){if(Ll.hasOwnProperty(l))return Ll[l].call(null,this)},triggerElectric:vn(function(l){kv(this,l)}),findPosH:function(l,u,g,y){var w=1;u<0&&(w=-1,u=-u);for(var _=Ze(this.doc,l),k=0;k<u&&(_=ed(this.doc,_,w,g,y),!_.hitSide);++k);return _},moveH:vn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?ed(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:vn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ps(this,function(w){var _=ed(y,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,y){var w=1,_=y;u<0&&(w=-1,u=-u);for(var k=Ze(this.doc,l),D=0;D<u;++D){var j=_r(this,k,"div");if(_==null?_=j.left:j.left=_,k=Ev(this,j,w,g),k.hitSide)break}return k},moveV:vn(function(l,u){var g=this,y=this.doc,w=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(D){if(_)return l<0?D.from():D.to();var j=_r(g,D.head,"div");D.goalColumn!=null&&(j.left=D.goalColumn),w.push(j.left);var te=Ev(g,j,l,u);return u=="page"&&D==y.sel.primary()&&Rf(g,tc(g,te,"div").top-j.top),te},he),w.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=w[k]}),findWordAt:function(l){var u=this.doc,g=Ie(u,l.line).text,y=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&y?--y:++w;for(var k=g.charAt(y),D=at(k,_)?function(j){return at(j,_)}:/\s/.test(k)?function(j){return/\s/.test(j)}:function(j){return!/\s/.test(j)&&!at(j)};y>0&&D(g.charAt(y-1));)--y;for(;w<g.length&&D(g.charAt(w));)++w}return new gt(ae(l.line,y),ae(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?xe(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),Rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Je(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vn(function(l,u){pl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Wr(this)-this.display.barHeight,width:l.scrollWidth-Wr(this)-this.display.barWidth,clientHeight:bf(this),clientWidth:vo(this)}},scrollIntoView:vn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:ae(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?u_(this,l):wg(this,l.from,l.to,l.margin)}),setSize:vn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&ag(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){$i(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Rt(this,"refresh",this)}),operation:function(l){return Bn(this,l)},startOperation:function(){return _o(this)},endOperation:function(){return So(this)},refresh:vn(function(){var l=this.display.cachedTextHeight;kn(this),this.curOp.forceUpdate=!0,dl(this),pl(this,this.doc.scrollLeft,this.doc.scrollTop),If(this.display),(l==null||Math.abs(l-rs(this.display))>.5||this.options.lineWrapping)&&Ef(this),Rt(this,"refresh",this)}),swapDoc:vn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Pg(this,l),dl(this),this.display.input.reset(),pl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Zt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},vr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function ed(n,i,a,l,u){var g=i,y=a,w=Ie(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Le=i.line+_;return Le<n.first||Le>=n.first+n.size?!1:(i=new ae(Le,i.ch,i.sticky),w=Ie(n,Le))}function D(Le){var Te;if(l=="codepoint"){var Re=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Re))Te=null;else{var We=a>0?Re>=55296&&Re<56320:Re>=56320&&Re<57343;Te=new ae(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(We?2:1))),-a)}}else u?Te=G_(n.cm,w,i,a):Te=Vf(w,i,a);if(Te==null)if(!Le&&k())i=Gf(u,n.cm,w,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")D();else if(l=="column")D(!0);else if(l=="word"||l=="group")for(var j=null,te=l=="group",Z=n.cm&&n.cm.getHelper(i,"wordChars"),ce=!0;!(a<0&&!D(!ce));ce=!1){var pe=w.text.charAt(i.ch)||`
|
|
34
|
-
`,_e=at(pe,Z)?"w":te&&pe==`
|
|
35
|
-
`?"n":!te||/\s/.test(pe)?null:"p";if(te&&!ce&&!_e&&(_e="s"),j&&j!=_e){a<0&&(a=1,D(),i.sticky="after");break}if(_e&&(j=_e),a>0&&!D(!ce))break}var ke=hc(n,i,g,y,!0);return pt(g,ke)&&(ke.hitSide=!0),ke}function Ev(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Me(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*rs(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=Sf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Qf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Be(u,"paste",function(w){!g(w)||Pt(l,w)||Sv(w,l)||p<=11&&setTimeout(Jt(l,function(){return i.updateFromDOM()}),20)}),Be(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Be(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Be(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Be(u,"touchstart",function(){return a.forceCompositionEnd()}),Be(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!g(w)||Pt(l,w))){if(l.somethingSelected())bc({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=Tv(l);bc({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,Y),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var k=kr.text.join(`
|
|
36
|
-
`);if(w.clipboardData.setData("Text",k),w.clipboardData.getData("Text")==k){w.preventDefault();return}}var D=Cv(),j=D.firstChild;Qf(j),l.display.lineSpace.insertBefore(D,l.display.lineSpace.firstChild),j.value=kr.text.join(`
|
|
37
|
-
`);var te=me(Fe(u));Ve(j),setTimeout(function(){l.display.lineSpace.removeChild(D),te.focus(),te==u&&a.showPrimarySelection()},50)}}Be(u,"copy",y),Be(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=mg(this.cm,!1);return n.focus=me(Fe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=wc(i,n.anchorNode,n.anchorOffset),y=wc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ae(Qo(g,y),l)==0&&Ae(Sn(g,y),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&Av(i,l)||{node:w[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&Av(i,u);if(!k){var D=w[w.length-1].measure,j=D.maps?D.maps[D.maps.length-1]:D.map;k={node:j[j.length-1],offset:j[j.length-2]-j[j.length-3]}}if(!_||!k){n.removeAllRanges();return}var te=n.rangeCount&&n.getRangeAt(0),Z;try{Z=H(_.node,_.offset,k.offset,k.node)}catch{}Z&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Z.collapsed||(n.removeAllRanges(),n.addRange(Z))):(n.removeAllRanges(),n.addRange(Z)),te&&n.anchorNode==null?n.addRange(te):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){N(this.cm.display.cursorDiv,n.cursors),N(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ie(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(Fe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Bn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(B&&b&&this.cm.display.gutterSpecs.length&&hS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=wc(i,n.anchorNode,n.anchorOffset),l=wc(i,n.focusNode,n.focusOffset);a&&l&&Bn(i,function(){un(i.doc,Di(a,l),Y),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ae(l.line-1,Ie(n.doc,l.line-1).length)),u.ch==Ie(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ae(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,w;l.line==i.viewFrom||(g=bo(n,l.line))==0?(y=C(i.view[0].line),w=i.view[0].node):(y=C(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=bo(n,u.line),k,D;if(_==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=C(i.view[_+1].line)-1,D=i.view[_+1].node.previousSibling),!w)return!1;for(var j=n.doc.splitLines(pS(n,w,D,y,k)),te=ni(n.doc,ae(y,0),ae(k,Ie(n.doc,k).text.length));j.length>1&&te.length>1;)if(ve(j)==ve(te))j.pop(),te.pop(),k--;else if(j[0]==te[0])j.shift(),te.shift(),y++;else break;for(var Z=0,ce=0,pe=j[0],_e=te[0],ke=Math.min(pe.length,_e.length);Z<ke&&pe.charCodeAt(Z)==_e.charCodeAt(Z);)++Z;for(var Le=ve(j),Te=ve(te),Re=Math.min(Le.length-(j.length==1?Z:0),Te.length-(te.length==1?Z:0));ce<Re&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(j.length==1&&te.length==1&&y==l.line)for(;Z&&Z>l.ch&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Z--,ce++;j[j.length-1]=Le.slice(0,Le.length-ce).replace(/^\u200b+/,""),j[0]=j[0].slice(Z).replace(/\u200b+$/,"");var We=ae(y,Z),De=ae(k,te.length?ve(te).length-ce:0);if(j.length>1||j[0]||Ae(We,De))return fs(n.doc,j,We,De,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Bn(this.cm,function(){return kn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Jt(this.cm,Jf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Av(n,i){var a=wf(n,i.line);if(!a||a.hidden)return null;var l=Ie(n.doc,i.line),u=rg(a,l,i.line),g=it(l,n.doc.direction),y="left";if(g){var w=zt(g,i.ch);y=w%2?"right":"left"}var _=sg(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function hS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function vs(n,i){return i&&(n.bad=!0),n}function pS(n,i,a,l,u){var g="",y=!1,w=n.doc.lineSeparator(),_=!1;function k(Z){return function(ce){return ce.id==Z}}function D(){y&&(g+=w,_&&(g+=w),y=_=!1)}function j(Z){Z&&(D(),g+=Z)}function te(Z){if(Z.nodeType==1){var ce=Z.getAttribute("cm-text");if(ce){j(ce);return}var pe=Z.getAttribute("cm-marker"),_e;if(pe){var ke=n.findMarks(ae(l,0),ae(u+1,0),k(+pe));ke.length&&(_e=ke[0].find(0))&&j(ni(n.doc,_e.from,_e.to).join(w));return}if(Z.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;Le&&D();for(var Te=0;Te<Z.childNodes.length;Te++)te(Z.childNodes[Te]);/^(pre|p)$/i.test(Z.nodeName)&&(_=!0),Le&&(y=!0)}else Z.nodeType==3&&j(Z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;te(i),i!=a;)i=i.nextSibling,_=!1;return g}function wc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return vs(n.clipPos(ae(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return gS(g,i,a)}}function gS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ie(l,i))return vs(ae(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ve(n.rest):n.line;return vs(ae(C(g),g.text.length),u)}var y=i.nodeType==3?i:null,w=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,k=_.maps;function D(_e,ke,Le){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Re=Te<0?_.map:k[Te],We=0;We<Re.length;We+=3){var De=Re[We+2];if(De==_e||De==ke){var rt=C(Te<0?n.line:n.rest[Te]),_t=Re[We]+Le;return(Le<0||De!=_e)&&(_t=Re[We+(Le?1:0)]),ae(rt,_t)}}}var j=D(y,w,a);if(j)return vs(j,u);for(var te=w.nextSibling,Z=y?y.nodeValue.length-a:0;te;te=te.nextSibling){if(j=D(te,te.firstChild,0),j)return vs(ae(j.line,j.ch-Z),u);Z+=te.textContent.length}for(var ce=w.previousSibling,pe=a;ce;ce=ce.previousSibling){if(j=D(ce,ce.firstChild,-1),j)return vs(ae(j.line,j.ch+pe),u);pe+=ce.textContent.length}}var Ft=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ft.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),R&&(u.style.width="0px"),Be(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Be(u,"paste",function(y){Pt(l,y)||Sv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Pt(l,y)){if(l.somethingSelected())bc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=Tv(l);bc({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,Y):(a.prevInput="",u.value=w.text.join(`
|
|
38
|
-
`),Ve(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Be(u,"cut",g),Be(u,"copy",g),Be(n.scroller,"paste",function(y){if(!(oi(n,y)||Pt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=y.clipboardData,u.dispatchEvent(w)}}),Be(n.lineSpace,"selectstart",function(y){oi(n,y)||cn(y)}),Be(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Be(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ft.prototype.createField=function(n){this.wrapper=Cv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Qf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ft.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=mg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Ft.prototype.showSelection=function(n){var i=this.cm,a=i.display;N(a.cursorDiv,n.cursors),N(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ft.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ve(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||me(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ft.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Ft.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Oi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||W&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l=""),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,w=Math.min(l.length,u.length);y<w&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Bn(i,function(){Jf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
39
|
-
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ft.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ft.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=yo(a,n),y=l.scroller.scrollTop;if(!g||T)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Jt(a,un)(a.doc,Di(g),Y);var _=u.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
40
|
-
top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.left-5)+`px;
|
|
41
|
-
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
42
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var j;v&&(j=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,j),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Z,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function te(){if(u.selectionStart!=null){var pe=a.somethingSelected(),_e=""+(pe?u.value:"");u.value="⇚",u.value=_e,i.prevInput=pe?"":"",u.selectionStart=1,u.selectionEnd=_e.length,l.selForContextMenu=a.doc.sel}}function Z(){if(i.contextMenuPending==Z&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&te();var pe=0,_e=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Jt(a,Gg)(a):pe++<10?l.detectingSelectAll=setTimeout(_e,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(_e,200)}}if(h&&p>=9&&te(),K){Mi(n);var ce=function(){an(window,"mouseup",ce),setTimeout(Z,20)};Be(window,"mouseup",ce)}else setTimeout(Z,50)},Ft.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ft.prototype.setUneditable=function(){},Ft.prototype.needsContentAttribute=!1;function vS(n,i){if(i=i?G(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=me(Fe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Be(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(an(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=Tt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function mS(n){n.off=an,n.on=Be,n.wheelEventPixels=k_,n.Doc=Tn,n.splitLines=cr,n.countColumn=ee,n.findColumn=de,n.isWordChar=ot,n.Pass=F,n.signal=Rt,n.Line=es,n.changeEnd=zi,n.scrollbarModel=Sg,n.Pos=ae,n.cmpPos=Ae,n.modes=Ko,n.mimeModes=br,n.resolveMode=Xo,n.getMode=Yo,n.modeExtensions=Ri,n.extendMode=Zo,n.copyState=Hr,n.startState=Jo,n.innerMode=ol,n.commands=Ll,n.keyMap=li,n.keyName=cv,n.isModifierKey=lv,n.lookupKey=hs,n.normalizeKeyMap=V_,n.StringStream=$t,n.SharedTextMarker=Cl,n.TextMarker=Hi,n.LineWidget=Tl,n.e_preventDefault=cn,n.e_stopPropagation=Vo,n.e_stop=Mi,n.addClass=xe,n.contains=ie,n.rmClass=P,n.keyNames=Bi}aS(Tt),dS(Tt);var yS="iter insert remove copy getEditor constructor".split(" ");for(var xc in Tn.prototype)Tn.prototype.hasOwnProperty(xc)&&oe(yS,xc)<0&&(Tt.prototype[xc]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Tn.prototype[xc]));return vr(Tn),Tt.inputStyles={textarea:Ft,contenteditable:yt},Tt.defineMode=function(n){!Tt.defaults.mode&&n!="null"&&(Tt.defaults.mode=n),wr.apply(this,arguments)},Tt.defineMIME=go,Tt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Tt.defineMIME("text/plain","null"),Tt.defineExtension=function(n,i){Tt.prototype[n]=i},Tt.defineDocExtension=function(n,i){Tn.prototype[n]=i},Tt.fromTextArea=vS,mS(Tt),Tt.version="5.65.18",Tt}))})(Vc)),Vc.exports}var iL=tl();const oL=qw(iL);var bd={},Tr={};const sL="Á",lL="á",aL="Ă",cL="ă",uL="∾",fL="∿",dL="∾̳",hL="Â",pL="â",gL="´",vL="А",mL="а",yL="Æ",bL="æ",wL="",xL="𝔄",_L="𝔞",SL="À",kL="à",TL="ℵ",CL="ℵ",EL="Α",AL="α",LL="Ā",ML="ā",NL="⨿",OL="&",RL="&",PL="⩕",$L="⩓",IL="∧",DL="⩜",zL="⩘",FL="⩚",HL="∠",BL="⦤",WL="∠",qL="⦨",jL="⦩",UL="⦪",VL="⦫",GL="⦬",KL="⦭",XL="⦮",YL="⦯",ZL="∡",JL="∟",QL="⊾",eM="⦝",tM="∢",nM="Å",rM="⍼",iM="Ą",oM="ą",sM="𝔸",lM="𝕒",aM="⩯",cM="≈",uM="⩰",fM="≊",dM="≋",hM="'",pM="",gM="≈",vM="≊",mM="Å",yM="å",bM="𝒜",wM="𝒶",xM="≔",_M="*",SM="≈",kM="≍",TM="Ã",CM="ã",EM="Ä",AM="ä",LM="∳",MM="⨑",NM="≌",OM="϶",RM="‵",PM="∽",$M="⋍",IM="∖",DM="⫧",zM="⊽",FM="⌅",HM="⌆",BM="⌅",WM="⎵",qM="⎶",jM="≌",UM="Б",VM="б",GM="„",KM="∵",XM="∵",YM="∵",ZM="⦰",JM="϶",QM="ℬ",eN="ℬ",tN="Β",nN="β",rN="ℶ",iN="≬",oN="𝔅",sN="𝔟",lN="⋂",aN="◯",cN="⋃",uN="⨀",fN="⨁",dN="⨂",hN="⨆",pN="★",gN="▽",vN="△",mN="⨄",yN="⋁",bN="⋀",wN="⤍",xN="⧫",_N="▪",SN="▴",kN="▾",TN="◂",CN="▸",EN="␣",AN="▒",LN="░",MN="▓",NN="█",ON="=⃥",RN="≡⃥",PN="⫭",$N="⌐",IN="𝔹",DN="𝕓",zN="⊥",FN="⊥",HN="⋈",BN="⧉",WN="┐",qN="╕",jN="╖",UN="╗",VN="┌",GN="╒",KN="╓",XN="╔",YN="─",ZN="═",JN="┬",QN="╤",eO="╥",tO="╦",nO="┴",rO="╧",iO="╨",oO="╩",sO="⊟",lO="⊞",aO="⊠",cO="┘",uO="╛",fO="╜",dO="╝",hO="└",pO="╘",gO="╙",vO="╚",mO="│",yO="║",bO="┼",wO="╪",xO="╫",_O="╬",SO="┤",kO="╡",TO="╢",CO="╣",EO="├",AO="╞",LO="╟",MO="╠",NO="‵",OO="˘",RO="˘",PO="¦",$O="𝒷",IO="ℬ",DO="⁏",zO="∽",FO="⋍",HO="⧅",BO="\\",WO="⟈",qO="•",jO="•",UO="≎",VO="⪮",GO="≏",KO="≎",XO="≏",YO="Ć",ZO="ć",JO="⩄",QO="⩉",e2="⩋",t2="∩",n2="⋒",r2="⩇",i2="⩀",o2="ⅅ",s2="∩︀",l2="⁁",a2="ˇ",c2="ℭ",u2="⩍",f2="Č",d2="č",h2="Ç",p2="ç",g2="Ĉ",v2="ĉ",m2="∰",y2="⩌",b2="⩐",w2="Ċ",x2="ċ",_2="¸",S2="¸",k2="⦲",T2="¢",C2="·",E2="·",A2="𝔠",L2="ℭ",M2="Ч",N2="ч",O2="✓",R2="✓",P2="Χ",$2="χ",I2="ˆ",D2="≗",z2="↺",F2="↻",H2="⊛",B2="⊚",W2="⊝",q2="⊙",j2="®",U2="Ⓢ",V2="⊖",G2="⊕",K2="⊗",X2="○",Y2="⧃",Z2="≗",J2="⨐",Q2="⫯",eR="⧂",tR="∲",nR="”",rR="’",iR="♣",oR="♣",sR=":",lR="∷",aR="⩴",cR="≔",uR="≔",fR=",",dR="@",hR="∁",pR="∘",gR="∁",vR="ℂ",mR="≅",yR="⩭",bR="≡",wR="∮",xR="∯",_R="∮",SR="𝕔",kR="ℂ",TR="∐",CR="∐",ER="©",AR="©",LR="℗",MR="∳",NR="↵",OR="✗",RR="⨯",PR="𝒞",$R="𝒸",IR="⫏",DR="⫑",zR="⫐",FR="⫒",HR="⋯",BR="⤸",WR="⤵",qR="⋞",jR="⋟",UR="↶",VR="⤽",GR="⩈",KR="⩆",XR="≍",YR="∪",ZR="⋓",JR="⩊",QR="⊍",eP="⩅",tP="∪︀",nP="↷",rP="⤼",iP="⋞",oP="⋟",sP="⋎",lP="⋏",aP="¤",cP="↶",uP="↷",fP="⋎",dP="⋏",hP="∲",pP="∱",gP="⌭",vP="†",mP="‡",yP="ℸ",bP="↓",wP="↡",xP="⇓",_P="‐",SP="⫤",kP="⊣",TP="⤏",CP="˝",EP="Ď",AP="ď",LP="Д",MP="д",NP="‡",OP="⇊",RP="ⅅ",PP="ⅆ",$P="⤑",IP="⩷",DP="°",zP="∇",FP="Δ",HP="δ",BP="⦱",WP="⥿",qP="𝔇",jP="𝔡",UP="⥥",VP="⇃",GP="⇂",KP="´",XP="˙",YP="˝",ZP="`",JP="˜",QP="⋄",e$="⋄",t$="⋄",n$="♦",r$="♦",i$="¨",o$="ⅆ",s$="ϝ",l$="⋲",a$="÷",c$="÷",u$="⋇",f$="⋇",d$="Ђ",h$="ђ",p$="⌞",g$="⌍",v$="$",m$="𝔻",y$="𝕕",b$="¨",w$="˙",x$="⃜",_$="≐",S$="≑",k$="≐",T$="∸",C$="∔",E$="⊡",A$="⌆",L$="∯",M$="¨",N$="⇓",O$="⇐",R$="⇔",P$="⫤",$$="⟸",I$="⟺",D$="⟹",z$="⇒",F$="⊨",H$="⇑",B$="⇕",W$="∥",q$="⤓",j$="↓",U$="↓",V$="⇓",G$="⇵",K$="̑",X$="⇊",Y$="⇃",Z$="⇂",J$="⥐",Q$="⥞",eI="⥖",tI="↽",nI="⥟",rI="⥗",iI="⇁",oI="↧",sI="⊤",lI="⤐",aI="⌟",cI="⌌",uI="𝒟",fI="𝒹",dI="Ѕ",hI="ѕ",pI="⧶",gI="Đ",vI="đ",mI="⋱",yI="▿",bI="▾",wI="⇵",xI="⥯",_I="⦦",SI="Џ",kI="џ",TI="⟿",CI="É",EI="é",AI="⩮",LI="Ě",MI="ě",NI="Ê",OI="ê",RI="≖",PI="≕",$I="Э",II="э",DI="⩷",zI="Ė",FI="ė",HI="≑",BI="ⅇ",WI="≒",qI="𝔈",jI="𝔢",UI="⪚",VI="È",GI="è",KI="⪖",XI="⪘",YI="⪙",ZI="∈",JI="⏧",QI="ℓ",eD="⪕",tD="⪗",nD="Ē",rD="ē",iD="∅",oD="∅",sD="◻",lD="∅",aD="▫",cD=" ",uD=" ",fD=" ",dD="Ŋ",hD="ŋ",pD=" ",gD="Ę",vD="ę",mD="𝔼",yD="𝕖",bD="⋕",wD="⧣",xD="⩱",_D="ε",SD="Ε",kD="ε",TD="ϵ",CD="≖",ED="≕",AD="≂",LD="⪖",MD="⪕",ND="⩵",OD="=",RD="≂",PD="≟",$D="⇌",ID="≡",DD="⩸",zD="⧥",FD="⥱",HD="≓",BD="ℯ",WD="ℰ",qD="≐",jD="⩳",UD="≂",VD="Η",GD="η",KD="Ð",XD="ð",YD="Ë",ZD="ë",JD="€",QD="!",ez="∃",tz="∃",nz="ℰ",rz="ⅇ",iz="ⅇ",oz="≒",sz="Ф",lz="ф",az="♀",cz="ffi",uz="ff",fz="ffl",dz="𝔉",hz="𝔣",pz="fi",gz="◼",vz="▪",mz="fj",yz="♭",bz="fl",wz="▱",xz="ƒ",_z="𝔽",Sz="𝕗",kz="∀",Tz="∀",Cz="⋔",Ez="⫙",Az="ℱ",Lz="⨍",Mz="½",Nz="⅓",Oz="¼",Rz="⅕",Pz="⅙",$z="⅛",Iz="⅔",Dz="⅖",zz="¾",Fz="⅗",Hz="⅜",Bz="⅘",Wz="⅚",qz="⅝",jz="⅞",Uz="⁄",Vz="⌢",Gz="𝒻",Kz="ℱ",Xz="ǵ",Yz="Γ",Zz="γ",Jz="Ϝ",Qz="ϝ",eF="⪆",tF="Ğ",nF="ğ",rF="Ģ",iF="Ĝ",oF="ĝ",sF="Г",lF="г",aF="Ġ",cF="ġ",uF="≥",fF="≧",dF="⪌",hF="⋛",pF="≥",gF="≧",vF="⩾",mF="⪩",yF="⩾",bF="⪀",wF="⪂",xF="⪄",_F="⋛︀",SF="⪔",kF="𝔊",TF="𝔤",CF="≫",EF="⋙",AF="⋙",LF="ℷ",MF="Ѓ",NF="ѓ",OF="⪥",RF="≷",PF="⪒",$F="⪤",IF="⪊",DF="⪊",zF="⪈",FF="≩",HF="⪈",BF="≩",WF="⋧",qF="𝔾",jF="𝕘",UF="`",VF="≥",GF="⋛",KF="≧",XF="⪢",YF="≷",ZF="⩾",JF="≳",QF="𝒢",eH="ℊ",tH="≳",nH="⪎",rH="⪐",iH="⪧",oH="⩺",sH=">",lH=">",aH="≫",cH="⋗",uH="⦕",fH="⩼",dH="⪆",hH="⥸",pH="⋗",gH="⋛",vH="⪌",mH="≷",yH="≳",bH="≩︀",wH="≩︀",xH="ˇ",_H=" ",SH="½",kH="ℋ",TH="Ъ",CH="ъ",EH="⥈",AH="↔",LH="⇔",MH="↭",NH="^",OH="ℏ",RH="Ĥ",PH="ĥ",$H="♥",IH="♥",DH="…",zH="⊹",FH="𝔥",HH="ℌ",BH="ℋ",WH="⤥",qH="⤦",jH="⇿",UH="∻",VH="↩",GH="↪",KH="𝕙",XH="ℍ",YH="―",ZH="─",JH="𝒽",QH="ℋ",e3="ℏ",t3="Ħ",n3="ħ",r3="≎",i3="≏",o3="⁃",s3="‐",l3="Í",a3="í",c3="",u3="Î",f3="î",d3="И",h3="и",p3="İ",g3="Е",v3="е",m3="¡",y3="⇔",b3="𝔦",w3="ℑ",x3="Ì",_3="ì",S3="ⅈ",k3="⨌",T3="∭",C3="⧜",E3="℩",A3="IJ",L3="ij",M3="Ī",N3="ī",O3="ℑ",R3="ⅈ",P3="ℐ",$3="ℑ",I3="ı",D3="ℑ",z3="⊷",F3="Ƶ",H3="⇒",B3="℅",W3="∞",q3="⧝",j3="ı",U3="⊺",V3="∫",G3="∬",K3="ℤ",X3="∫",Y3="⊺",Z3="⋂",J3="⨗",Q3="⨼",eB="",tB="",nB="Ё",rB="ё",iB="Į",oB="į",sB="𝕀",lB="𝕚",aB="Ι",cB="ι",uB="⨼",fB="¿",dB="𝒾",hB="ℐ",pB="∈",gB="⋵",vB="⋹",mB="⋴",yB="⋳",bB="∈",wB="",xB="Ĩ",_B="ĩ",SB="І",kB="і",TB="Ï",CB="ï",EB="Ĵ",AB="ĵ",LB="Й",MB="й",NB="𝔍",OB="𝔧",RB="ȷ",PB="𝕁",$B="𝕛",IB="𝒥",DB="𝒿",zB="Ј",FB="ј",HB="Є",BB="є",WB="Κ",qB="κ",jB="ϰ",UB="Ķ",VB="ķ",GB="К",KB="к",XB="𝔎",YB="𝔨",ZB="ĸ",JB="Х",QB="х",e5="Ќ",t5="ќ",n5="𝕂",r5="𝕜",i5="𝒦",o5="𝓀",s5="⇚",l5="Ĺ",a5="ĺ",c5="⦴",u5="ℒ",f5="Λ",d5="λ",h5="⟨",p5="⟪",g5="⦑",v5="⟨",m5="⪅",y5="ℒ",b5="«",w5="⇤",x5="⤟",_5="←",S5="↞",k5="⇐",T5="⤝",C5="↩",E5="↫",A5="⤹",L5="⥳",M5="↢",N5="⤙",O5="⤛",R5="⪫",P5="⪭",$5="⪭︀",I5="⤌",D5="⤎",z5="❲",F5="{",H5="[",B5="⦋",W5="⦏",q5="⦍",j5="Ľ",U5="ľ",V5="Ļ",G5="ļ",K5="⌈",X5="{",Y5="Л",Z5="л",J5="⤶",Q5="“",e8="„",t8="⥧",n8="⥋",r8="↲",i8="≤",o8="≦",s8="⟨",l8="⇤",a8="←",c8="←",u8="⇐",f8="⇆",d8="↢",h8="⌈",p8="⟦",g8="⥡",v8="⥙",m8="⇃",y8="⌊",b8="↽",w8="↼",x8="⇇",_8="↔",S8="↔",k8="⇔",T8="⇆",C8="⇋",E8="↭",A8="⥎",L8="↤",M8="⊣",N8="⥚",O8="⋋",R8="⧏",P8="⊲",$8="⊴",I8="⥑",D8="⥠",z8="⥘",F8="↿",H8="⥒",B8="↼",W8="⪋",q8="⋚",j8="≤",U8="≦",V8="⩽",G8="⪨",K8="⩽",X8="⩿",Y8="⪁",Z8="⪃",J8="⋚︀",Q8="⪓",eW="⪅",tW="⋖",nW="⋚",rW="⪋",iW="⋚",oW="≦",sW="≶",lW="≶",aW="⪡",cW="≲",uW="⩽",fW="≲",dW="⥼",hW="⌊",pW="𝔏",gW="𝔩",vW="≶",mW="⪑",yW="⥢",bW="↽",wW="↼",xW="⥪",_W="▄",SW="Љ",kW="љ",TW="⇇",CW="≪",EW="⋘",AW="⌞",LW="⇚",MW="⥫",NW="◺",OW="Ŀ",RW="ŀ",PW="⎰",$W="⎰",IW="⪉",DW="⪉",zW="⪇",FW="≨",HW="⪇",BW="≨",WW="⋦",qW="⟬",jW="⇽",UW="⟦",VW="⟵",GW="⟵",KW="⟸",XW="⟷",YW="⟷",ZW="⟺",JW="⟼",QW="⟶",e4="⟶",t4="⟹",n4="↫",r4="↬",i4="⦅",o4="𝕃",s4="𝕝",l4="⨭",a4="⨴",c4="∗",u4="_",f4="↙",d4="↘",h4="◊",p4="◊",g4="⧫",v4="(",m4="⦓",y4="⇆",b4="⌟",w4="⇋",x4="⥭",_4="",S4="⊿",k4="‹",T4="𝓁",C4="ℒ",E4="↰",A4="↰",L4="≲",M4="⪍",N4="⪏",O4="[",R4="‘",P4="‚",$4="Ł",I4="ł",D4="⪦",z4="⩹",F4="<",H4="<",B4="≪",W4="⋖",q4="⋋",j4="⋉",U4="⥶",V4="⩻",G4="◃",K4="⊴",X4="◂",Y4="⦖",Z4="⥊",J4="⥦",Q4="≨︀",eq="≨︀",tq="¯",nq="♂",rq="✠",iq="✠",oq="↦",sq="↦",lq="↧",aq="↤",cq="↥",uq="▮",fq="⨩",dq="М",hq="м",pq="—",gq="∺",vq="∡",mq=" ",yq="ℳ",bq="𝔐",wq="𝔪",xq="℧",_q="µ",Sq="*",kq="⫰",Tq="∣",Cq="·",Eq="⊟",Aq="−",Lq="∸",Mq="⨪",Nq="∓",Oq="⫛",Rq="…",Pq="∓",$q="⊧",Iq="𝕄",Dq="𝕞",zq="∓",Fq="𝓂",Hq="ℳ",Bq="∾",Wq="Μ",qq="μ",jq="⊸",Uq="⊸",Vq="∇",Gq="Ń",Kq="ń",Xq="∠⃒",Yq="≉",Zq="⩰̸",Jq="≋̸",Qq="ʼn",ej="≉",tj="♮",nj="ℕ",rj="♮",ij=" ",oj="≎̸",sj="≏̸",lj="⩃",aj="Ň",cj="ň",uj="Ņ",fj="ņ",dj="≇",hj="⩭̸",pj="⩂",gj="Н",vj="н",mj="–",yj="⤤",bj="↗",wj="⇗",xj="↗",_j="≠",Sj="≐̸",kj="",Tj="",Cj="",Ej="",Aj="≢",Lj="⤨",Mj="≂̸",Nj="≫",Oj="≪",Rj=`
|
|
43
|
-
`,Pj="∄",$j="∄",Ij="𝔑",Dj="𝔫",zj="≧̸",Fj="≱",Hj="≱",Bj="≧̸",Wj="⩾̸",qj="⩾̸",jj="⋙̸",Uj="≵",Vj="≫⃒",Gj="≯",Kj="≯",Xj="≫̸",Yj="↮",Zj="⇎",Jj="⫲",Qj="∋",e6="⋼",t6="⋺",n6="∋",r6="Њ",i6="њ",o6="↚",s6="⇍",l6="‥",a6="≦̸",c6="≰",u6="↚",f6="⇍",d6="↮",h6="⇎",p6="≰",g6="≦̸",v6="⩽̸",m6="⩽̸",y6="≮",b6="⋘̸",w6="≴",x6="≪⃒",_6="≮",S6="⋪",k6="⋬",T6="≪̸",C6="∤",E6="",A6=" ",L6="𝕟",M6="ℕ",N6="⫬",O6="¬",R6="≢",P6="≭",$6="∦",I6="∉",D6="≠",z6="≂̸",F6="∄",H6="≯",B6="≱",W6="≧̸",q6="≫̸",j6="≹",U6="⩾̸",V6="≵",G6="≎̸",K6="≏̸",X6="∉",Y6="⋵̸",Z6="⋹̸",J6="∉",Q6="⋷",eU="⋶",tU="⧏̸",nU="⋪",rU="⋬",iU="≮",oU="≰",sU="≸",lU="≪̸",aU="⩽̸",cU="≴",uU="⪢̸",fU="⪡̸",dU="∌",hU="∌",pU="⋾",gU="⋽",vU="⊀",mU="⪯̸",yU="⋠",bU="∌",wU="⧐̸",xU="⋫",_U="⋭",SU="⊏̸",kU="⋢",TU="⊐̸",CU="⋣",EU="⊂⃒",AU="⊈",LU="⊁",MU="⪰̸",NU="⋡",OU="≿̸",RU="⊃⃒",PU="⊉",$U="≁",IU="≄",DU="≇",zU="≉",FU="∤",HU="∦",BU="∦",WU="⫽⃥",qU="∂̸",jU="⨔",UU="⊀",VU="⋠",GU="⊀",KU="⪯̸",XU="⪯̸",YU="⤳̸",ZU="↛",JU="⇏",QU="↝̸",eV="↛",tV="⇏",nV="⋫",rV="⋭",iV="⊁",oV="⋡",sV="⪰̸",lV="𝒩",aV="𝓃",cV="∤",uV="∦",fV="≁",dV="≄",hV="≄",pV="∤",gV="∦",vV="⋢",mV="⋣",yV="⊄",bV="⫅̸",wV="⊈",xV="⊂⃒",_V="⊈",SV="⫅̸",kV="⊁",TV="⪰̸",CV="⊅",EV="⫆̸",AV="⊉",LV="⊃⃒",MV="⊉",NV="⫆̸",OV="≹",RV="Ñ",PV="ñ",$V="≸",IV="⋪",DV="⋬",zV="⋫",FV="⋭",HV="Ν",BV="ν",WV="#",qV="№",jV=" ",UV="≍⃒",VV="⊬",GV="⊭",KV="⊮",XV="⊯",YV="≥⃒",ZV=">⃒",JV="⤄",QV="⧞",eG="⤂",tG="≤⃒",nG="<⃒",rG="⊴⃒",iG="⤃",oG="⊵⃒",sG="∼⃒",lG="⤣",aG="↖",cG="⇖",uG="↖",fG="⤧",dG="Ó",hG="ó",pG="⊛",gG="Ô",vG="ô",mG="⊚",yG="О",bG="о",wG="⊝",xG="Ő",_G="ő",SG="⨸",kG="⊙",TG="⦼",CG="Œ",EG="œ",AG="⦿",LG="𝔒",MG="𝔬",NG="˛",OG="Ò",RG="ò",PG="⧁",$G="⦵",IG="Ω",DG="∮",zG="↺",FG="⦾",HG="⦻",BG="‾",WG="⧀",qG="Ō",jG="ō",UG="Ω",VG="ω",GG="Ο",KG="ο",XG="⦶",YG="⊖",ZG="𝕆",JG="𝕠",QG="⦷",e9="“",t9="‘",n9="⦹",r9="⊕",i9="↻",o9="⩔",s9="∨",l9="⩝",a9="ℴ",c9="ℴ",u9="ª",f9="º",d9="⊶",h9="⩖",p9="⩗",g9="⩛",v9="Ⓢ",m9="𝒪",y9="ℴ",b9="Ø",w9="ø",x9="⊘",_9="Õ",S9="õ",k9="⨶",T9="⨷",C9="⊗",E9="Ö",A9="ö",L9="⌽",M9="‾",N9="⏞",O9="⎴",R9="⏜",P9="¶",$9="∥",I9="∥",D9="⫳",z9="⫽",F9="∂",H9="∂",B9="П",W9="п",q9="%",j9=".",U9="‰",V9="⊥",G9="‱",K9="𝔓",X9="𝔭",Y9="Φ",Z9="φ",J9="ϕ",Q9="ℳ",e7="☎",t7="Π",n7="π",r7="⋔",i7="ϖ",o7="ℏ",s7="ℎ",l7="ℏ",a7="⨣",c7="⊞",u7="⨢",f7="+",d7="∔",h7="⨥",p7="⩲",g7="±",v7="±",m7="⨦",y7="⨧",b7="±",w7="ℌ",x7="⨕",_7="𝕡",S7="ℙ",k7="£",T7="⪷",C7="⪻",E7="≺",A7="≼",L7="⪷",M7="≺",N7="≼",O7="≺",R7="⪯",P7="≼",$7="≾",I7="⪯",D7="⪹",z7="⪵",F7="⋨",H7="⪯",B7="⪳",W7="≾",q7="′",j7="″",U7="ℙ",V7="⪹",G7="⪵",K7="⋨",X7="∏",Y7="∏",Z7="⌮",J7="⌒",Q7="⌓",eK="∝",tK="∝",nK="∷",rK="∝",iK="≾",oK="⊰",sK="𝒫",lK="𝓅",aK="Ψ",cK="ψ",uK=" ",fK="𝔔",dK="𝔮",hK="⨌",pK="𝕢",gK="ℚ",vK="⁗",mK="𝒬",yK="𝓆",bK="ℍ",wK="⨖",xK="?",_K="≟",SK='"',kK='"',TK="⇛",CK="∽̱",EK="Ŕ",AK="ŕ",LK="√",MK="⦳",NK="⟩",OK="⟫",RK="⦒",PK="⦥",$K="⟩",IK="»",DK="⥵",zK="⇥",FK="⤠",HK="⤳",BK="→",WK="↠",qK="⇒",jK="⤞",UK="↪",VK="↬",GK="⥅",KK="⥴",XK="⤖",YK="↣",ZK="↝",JK="⤚",QK="⤜",eX="∶",tX="ℚ",nX="⤍",rX="⤏",iX="⤐",oX="❳",sX="}",lX="]",aX="⦌",cX="⦎",uX="⦐",fX="Ř",dX="ř",hX="Ŗ",pX="ŗ",gX="⌉",vX="}",mX="Р",yX="р",bX="⤷",wX="⥩",xX="”",_X="”",SX="↳",kX="ℜ",TX="ℛ",CX="ℜ",EX="ℝ",AX="ℜ",LX="▭",MX="®",NX="®",OX="∋",RX="⇋",PX="⥯",$X="⥽",IX="⌋",DX="𝔯",zX="ℜ",FX="⥤",HX="⇁",BX="⇀",WX="⥬",qX="Ρ",jX="ρ",UX="ϱ",VX="⟩",GX="⇥",KX="→",XX="→",YX="⇒",ZX="⇄",JX="↣",QX="⌉",eY="⟧",tY="⥝",nY="⥕",rY="⇂",iY="⌋",oY="⇁",sY="⇀",lY="⇄",aY="⇌",cY="⇉",uY="↝",fY="↦",dY="⊢",hY="⥛",pY="⋌",gY="⧐",vY="⊳",mY="⊵",yY="⥏",bY="⥜",wY="⥔",xY="↾",_Y="⥓",SY="⇀",kY="˚",TY="≓",CY="⇄",EY="⇌",AY="",LY="⎱",MY="⎱",NY="⫮",OY="⟭",RY="⇾",PY="⟧",$Y="⦆",IY="𝕣",DY="ℝ",zY="⨮",FY="⨵",HY="⥰",BY=")",WY="⦔",qY="⨒",jY="⇉",UY="⇛",VY="›",GY="𝓇",KY="ℛ",XY="↱",YY="↱",ZY="]",JY="’",QY="’",eZ="⋌",tZ="⋊",nZ="▹",rZ="⊵",iZ="▸",oZ="⧎",sZ="⧴",lZ="⥨",aZ="℞",cZ="Ś",uZ="ś",fZ="‚",dZ="⪸",hZ="Š",pZ="š",gZ="⪼",vZ="≻",mZ="≽",yZ="⪰",bZ="⪴",wZ="Ş",xZ="ş",_Z="Ŝ",SZ="ŝ",kZ="⪺",TZ="⪶",CZ="⋩",EZ="⨓",AZ="≿",LZ="С",MZ="с",NZ="⊡",OZ="⋅",RZ="⩦",PZ="⤥",$Z="↘",IZ="⇘",DZ="↘",zZ="§",FZ=";",HZ="⤩",BZ="∖",WZ="∖",qZ="✶",jZ="𝔖",UZ="𝔰",VZ="⌢",GZ="♯",KZ="Щ",XZ="щ",YZ="Ш",ZZ="ш",JZ="↓",QZ="←",eJ="∣",tJ="∥",nJ="→",rJ="↑",iJ="",oJ="Σ",sJ="σ",lJ="ς",aJ="ς",cJ="∼",uJ="⩪",fJ="≃",dJ="≃",hJ="⪞",pJ="⪠",gJ="⪝",vJ="⪟",mJ="≆",yJ="⨤",bJ="⥲",wJ="←",xJ="∘",_J="∖",SJ="⨳",kJ="⧤",TJ="∣",CJ="⌣",EJ="⪪",AJ="⪬",LJ="⪬︀",MJ="Ь",NJ="ь",OJ="⌿",RJ="⧄",PJ="/",$J="𝕊",IJ="𝕤",DJ="♠",zJ="♠",FJ="∥",HJ="⊓",BJ="⊓︀",WJ="⊔",qJ="⊔︀",jJ="√",UJ="⊏",VJ="⊑",GJ="⊏",KJ="⊑",XJ="⊐",YJ="⊒",ZJ="⊐",JJ="⊒",QJ="□",eQ="□",tQ="⊓",nQ="⊏",rQ="⊑",iQ="⊐",oQ="⊒",sQ="⊔",lQ="▪",aQ="□",cQ="▪",uQ="→",fQ="𝒮",dQ="𝓈",hQ="∖",pQ="⌣",gQ="⋆",vQ="⋆",mQ="☆",yQ="★",bQ="ϵ",wQ="ϕ",xQ="¯",_Q="⊂",SQ="⋐",kQ="⪽",TQ="⫅",CQ="⊆",EQ="⫃",AQ="⫁",LQ="⫋",MQ="⊊",NQ="⪿",OQ="⥹",RQ="⊂",PQ="⋐",$Q="⊆",IQ="⫅",DQ="⊆",zQ="⊊",FQ="⫋",HQ="⫇",BQ="⫕",WQ="⫓",qQ="⪸",jQ="≻",UQ="≽",VQ="≻",GQ="⪰",KQ="≽",XQ="≿",YQ="⪰",ZQ="⪺",JQ="⪶",QQ="⋩",eee="≿",tee="∋",nee="∑",ree="∑",iee="♪",oee="¹",see="²",lee="³",aee="⊃",cee="⋑",uee="⪾",fee="⫘",dee="⫆",hee="⊇",pee="⫄",gee="⊃",vee="⊇",mee="⟉",yee="⫗",bee="⥻",wee="⫂",xee="⫌",_ee="⊋",See="⫀",kee="⊃",Tee="⋑",Cee="⊇",Eee="⫆",Aee="⊋",Lee="⫌",Mee="⫈",Nee="⫔",Oee="⫖",Ree="⤦",Pee="↙",$ee="⇙",Iee="↙",Dee="⤪",zee="ß",Fee=" ",Hee="⌖",Bee="Τ",Wee="τ",qee="⎴",jee="Ť",Uee="ť",Vee="Ţ",Gee="ţ",Kee="Т",Xee="т",Yee="⃛",Zee="⌕",Jee="𝔗",Qee="𝔱",ete="∴",tte="∴",nte="∴",rte="Θ",ite="θ",ote="ϑ",ste="ϑ",lte="≈",ate="∼",cte=" ",ute=" ",fte=" ",dte="≈",hte="∼",pte="Þ",gte="þ",vte="˜",mte="∼",yte="≃",bte="≅",wte="≈",xte="⨱",_te="⊠",Ste="×",kte="⨰",Tte="∭",Cte="⤨",Ete="⌶",Ate="⫱",Lte="⊤",Mte="𝕋",Nte="𝕥",Ote="⫚",Rte="⤩",Pte="‴",$te="™",Ite="™",Dte="▵",zte="▿",Fte="◃",Hte="⊴",Bte="≜",Wte="▹",qte="⊵",jte="◬",Ute="≜",Vte="⨺",Gte="⃛",Kte="⨹",Xte="⧍",Yte="⨻",Zte="⏢",Jte="𝒯",Qte="𝓉",ene="Ц",tne="ц",nne="Ћ",rne="ћ",ine="Ŧ",one="ŧ",sne="≬",lne="↞",ane="↠",cne="Ú",une="ú",fne="↑",dne="↟",hne="⇑",pne="⥉",gne="Ў",vne="ў",mne="Ŭ",yne="ŭ",bne="Û",wne="û",xne="У",_ne="у",Sne="⇅",kne="Ű",Tne="ű",Cne="⥮",Ene="⥾",Ane="𝔘",Lne="𝔲",Mne="Ù",Nne="ù",One="⥣",Rne="↿",Pne="↾",$ne="▀",Ine="⌜",Dne="⌜",zne="⌏",Fne="◸",Hne="Ū",Bne="ū",Wne="¨",qne="_",jne="⏟",Une="⎵",Vne="⏝",Gne="⋃",Kne="⊎",Xne="Ų",Yne="ų",Zne="𝕌",Jne="𝕦",Qne="⤒",ere="↑",tre="↑",nre="⇑",rre="⇅",ire="↕",ore="↕",sre="⇕",lre="⥮",are="↿",cre="↾",ure="⊎",fre="↖",dre="↗",hre="υ",pre="ϒ",gre="ϒ",vre="Υ",mre="υ",yre="↥",bre="⊥",wre="⇈",xre="⌝",_re="⌝",Sre="⌎",kre="Ů",Tre="ů",Cre="◹",Ere="𝒰",Are="𝓊",Lre="⋰",Mre="Ũ",Nre="ũ",Ore="▵",Rre="▴",Pre="⇈",$re="Ü",Ire="ü",Dre="⦧",zre="⦜",Fre="ϵ",Hre="ϰ",Bre="∅",Wre="ϕ",qre="ϖ",jre="∝",Ure="↕",Vre="⇕",Gre="ϱ",Kre="ς",Xre="⊊︀",Yre="⫋︀",Zre="⊋︀",Jre="⫌︀",Qre="ϑ",eie="⊲",tie="⊳",nie="⫨",rie="⫫",iie="⫩",oie="В",sie="в",lie="⊢",aie="⊨",cie="⊩",uie="⊫",fie="⫦",die="⊻",hie="∨",pie="⋁",gie="≚",vie="⋮",mie="|",yie="‖",bie="|",wie="‖",xie="∣",_ie="|",Sie="❘",kie="≀",Tie=" ",Cie="𝔙",Eie="𝔳",Aie="⊲",Lie="⊂⃒",Mie="⊃⃒",Nie="𝕍",Oie="𝕧",Rie="∝",Pie="⊳",$ie="𝒱",Iie="𝓋",Die="⫋︀",zie="⊊︀",Fie="⫌︀",Hie="⊋︀",Bie="⊪",Wie="⦚",qie="Ŵ",jie="ŵ",Uie="⩟",Vie="∧",Gie="⋀",Kie="≙",Xie="℘",Yie="𝔚",Zie="𝔴",Jie="𝕎",Qie="𝕨",eoe="℘",toe="≀",noe="≀",roe="𝒲",ioe="𝓌",ooe="⋂",soe="◯",loe="⋃",aoe="▽",coe="𝔛",uoe="𝔵",foe="⟷",doe="⟺",hoe="Ξ",poe="ξ",goe="⟵",voe="⟸",moe="⟼",yoe="⋻",boe="⨀",woe="𝕏",xoe="𝕩",_oe="⨁",Soe="⨂",koe="⟶",Toe="⟹",Coe="𝒳",Eoe="𝓍",Aoe="⨆",Loe="⨄",Moe="△",Noe="⋁",Ooe="⋀",Roe="Ý",Poe="ý",$oe="Я",Ioe="я",Doe="Ŷ",zoe="ŷ",Foe="Ы",Hoe="ы",Boe="¥",Woe="𝔜",qoe="𝔶",joe="Ї",Uoe="ї",Voe="𝕐",Goe="𝕪",Koe="𝒴",Xoe="𝓎",Yoe="Ю",Zoe="ю",Joe="ÿ",Qoe="Ÿ",ese="Ź",tse="ź",nse="Ž",rse="ž",ise="З",ose="з",sse="Ż",lse="ż",ase="ℨ",cse="",use="Ζ",fse="ζ",dse="𝔷",hse="ℨ",pse="Ж",gse="ж",vse="⇝",mse="𝕫",yse="ℤ",bse="𝒵",wse="𝓏",xse="",_se="",jw={Aacute:sL,aacute:lL,Abreve:aL,abreve:cL,ac:uL,acd:fL,acE:dL,Acirc:hL,acirc:pL,acute:gL,Acy:vL,acy:mL,AElig:yL,aelig:bL,af:wL,Afr:xL,afr:_L,Agrave:SL,agrave:kL,alefsym:TL,aleph:CL,Alpha:EL,alpha:AL,Amacr:LL,amacr:ML,amalg:NL,amp:OL,AMP:RL,andand:PL,And:$L,and:IL,andd:DL,andslope:zL,andv:FL,ang:HL,ange:BL,angle:WL,angmsdaa:qL,angmsdab:jL,angmsdac:UL,angmsdad:VL,angmsdae:GL,angmsdaf:KL,angmsdag:XL,angmsdah:YL,angmsd:ZL,angrt:JL,angrtvb:QL,angrtvbd:eM,angsph:tM,angst:nM,angzarr:rM,Aogon:iM,aogon:oM,Aopf:sM,aopf:lM,apacir:aM,ap:cM,apE:uM,ape:fM,apid:dM,apos:hM,ApplyFunction:pM,approx:gM,approxeq:vM,Aring:mM,aring:yM,Ascr:bM,ascr:wM,Assign:xM,ast:_M,asymp:SM,asympeq:kM,Atilde:TM,atilde:CM,Auml:EM,auml:AM,awconint:LM,awint:MM,backcong:NM,backepsilon:OM,backprime:RM,backsim:PM,backsimeq:$M,Backslash:IM,Barv:DM,barvee:zM,barwed:FM,Barwed:HM,barwedge:BM,bbrk:WM,bbrktbrk:qM,bcong:jM,Bcy:UM,bcy:VM,bdquo:GM,becaus:KM,because:XM,Because:YM,bemptyv:ZM,bepsi:JM,bernou:QM,Bernoullis:eN,Beta:tN,beta:nN,beth:rN,between:iN,Bfr:oN,bfr:sN,bigcap:lN,bigcirc:aN,bigcup:cN,bigodot:uN,bigoplus:fN,bigotimes:dN,bigsqcup:hN,bigstar:pN,bigtriangledown:gN,bigtriangleup:vN,biguplus:mN,bigvee:yN,bigwedge:bN,bkarow:wN,blacklozenge:xN,blacksquare:_N,blacktriangle:SN,blacktriangledown:kN,blacktriangleleft:TN,blacktriangleright:CN,blank:EN,blk12:AN,blk14:LN,blk34:MN,block:NN,bne:ON,bnequiv:RN,bNot:PN,bnot:$N,Bopf:IN,bopf:DN,bot:zN,bottom:FN,bowtie:HN,boxbox:BN,boxdl:WN,boxdL:qN,boxDl:jN,boxDL:UN,boxdr:VN,boxdR:GN,boxDr:KN,boxDR:XN,boxh:YN,boxH:ZN,boxhd:JN,boxHd:QN,boxhD:eO,boxHD:tO,boxhu:nO,boxHu:rO,boxhU:iO,boxHU:oO,boxminus:sO,boxplus:lO,boxtimes:aO,boxul:cO,boxuL:uO,boxUl:fO,boxUL:dO,boxur:hO,boxuR:pO,boxUr:gO,boxUR:vO,boxv:mO,boxV:yO,boxvh:bO,boxvH:wO,boxVh:xO,boxVH:_O,boxvl:SO,boxvL:kO,boxVl:TO,boxVL:CO,boxvr:EO,boxvR:AO,boxVr:LO,boxVR:MO,bprime:NO,breve:OO,Breve:RO,brvbar:PO,bscr:$O,Bscr:IO,bsemi:DO,bsim:zO,bsime:FO,bsolb:HO,bsol:BO,bsolhsub:WO,bull:qO,bullet:jO,bump:UO,bumpE:VO,bumpe:GO,Bumpeq:KO,bumpeq:XO,Cacute:YO,cacute:ZO,capand:JO,capbrcup:QO,capcap:e2,cap:t2,Cap:n2,capcup:r2,capdot:i2,CapitalDifferentialD:o2,caps:s2,caret:l2,caron:a2,Cayleys:c2,ccaps:u2,Ccaron:f2,ccaron:d2,Ccedil:h2,ccedil:p2,Ccirc:g2,ccirc:v2,Cconint:m2,ccups:y2,ccupssm:b2,Cdot:w2,cdot:x2,cedil:_2,Cedilla:S2,cemptyv:k2,cent:T2,centerdot:C2,CenterDot:E2,cfr:A2,Cfr:L2,CHcy:M2,chcy:N2,check:O2,checkmark:R2,Chi:P2,chi:$2,circ:I2,circeq:D2,circlearrowleft:z2,circlearrowright:F2,circledast:H2,circledcirc:B2,circleddash:W2,CircleDot:q2,circledR:j2,circledS:U2,CircleMinus:V2,CirclePlus:G2,CircleTimes:K2,cir:X2,cirE:Y2,cire:Z2,cirfnint:J2,cirmid:Q2,cirscir:eR,ClockwiseContourIntegral:tR,CloseCurlyDoubleQuote:nR,CloseCurlyQuote:rR,clubs:iR,clubsuit:oR,colon:sR,Colon:lR,Colone:aR,colone:cR,coloneq:uR,comma:fR,commat:dR,comp:hR,compfn:pR,complement:gR,complexes:vR,cong:mR,congdot:yR,Congruent:bR,conint:wR,Conint:xR,ContourIntegral:_R,copf:SR,Copf:kR,coprod:TR,Coproduct:CR,copy:ER,COPY:AR,copysr:LR,CounterClockwiseContourIntegral:MR,crarr:NR,cross:OR,Cross:RR,Cscr:PR,cscr:$R,csub:IR,csube:DR,csup:zR,csupe:FR,ctdot:HR,cudarrl:BR,cudarrr:WR,cuepr:qR,cuesc:jR,cularr:UR,cularrp:VR,cupbrcap:GR,cupcap:KR,CupCap:XR,cup:YR,Cup:ZR,cupcup:JR,cupdot:QR,cupor:eP,cups:tP,curarr:nP,curarrm:rP,curlyeqprec:iP,curlyeqsucc:oP,curlyvee:sP,curlywedge:lP,curren:aP,curvearrowleft:cP,curvearrowright:uP,cuvee:fP,cuwed:dP,cwconint:hP,cwint:pP,cylcty:gP,dagger:vP,Dagger:mP,daleth:yP,darr:bP,Darr:wP,dArr:xP,dash:_P,Dashv:SP,dashv:kP,dbkarow:TP,dblac:CP,Dcaron:EP,dcaron:AP,Dcy:LP,dcy:MP,ddagger:NP,ddarr:OP,DD:RP,dd:PP,DDotrahd:$P,ddotseq:IP,deg:DP,Del:zP,Delta:FP,delta:HP,demptyv:BP,dfisht:WP,Dfr:qP,dfr:jP,dHar:UP,dharl:VP,dharr:GP,DiacriticalAcute:KP,DiacriticalDot:XP,DiacriticalDoubleAcute:YP,DiacriticalGrave:ZP,DiacriticalTilde:JP,diam:QP,diamond:e$,Diamond:t$,diamondsuit:n$,diams:r$,die:i$,DifferentialD:o$,digamma:s$,disin:l$,div:a$,divide:c$,divideontimes:u$,divonx:f$,DJcy:d$,djcy:h$,dlcorn:p$,dlcrop:g$,dollar:v$,Dopf:m$,dopf:y$,Dot:b$,dot:w$,DotDot:x$,doteq:_$,doteqdot:S$,DotEqual:k$,dotminus:T$,dotplus:C$,dotsquare:E$,doublebarwedge:A$,DoubleContourIntegral:L$,DoubleDot:M$,DoubleDownArrow:N$,DoubleLeftArrow:O$,DoubleLeftRightArrow:R$,DoubleLeftTee:P$,DoubleLongLeftArrow:$$,DoubleLongLeftRightArrow:I$,DoubleLongRightArrow:D$,DoubleRightArrow:z$,DoubleRightTee:F$,DoubleUpArrow:H$,DoubleUpDownArrow:B$,DoubleVerticalBar:W$,DownArrowBar:q$,downarrow:j$,DownArrow:U$,Downarrow:V$,DownArrowUpArrow:G$,DownBreve:K$,downdownarrows:X$,downharpoonleft:Y$,downharpoonright:Z$,DownLeftRightVector:J$,DownLeftTeeVector:Q$,DownLeftVectorBar:eI,DownLeftVector:tI,DownRightTeeVector:nI,DownRightVectorBar:rI,DownRightVector:iI,DownTeeArrow:oI,DownTee:sI,drbkarow:lI,drcorn:aI,drcrop:cI,Dscr:uI,dscr:fI,DScy:dI,dscy:hI,dsol:pI,Dstrok:gI,dstrok:vI,dtdot:mI,dtri:yI,dtrif:bI,duarr:wI,duhar:xI,dwangle:_I,DZcy:SI,dzcy:kI,dzigrarr:TI,Eacute:CI,eacute:EI,easter:AI,Ecaron:LI,ecaron:MI,Ecirc:NI,ecirc:OI,ecir:RI,ecolon:PI,Ecy:$I,ecy:II,eDDot:DI,Edot:zI,edot:FI,eDot:HI,ee:BI,efDot:WI,Efr:qI,efr:jI,eg:UI,Egrave:VI,egrave:GI,egs:KI,egsdot:XI,el:YI,Element:ZI,elinters:JI,ell:QI,els:eD,elsdot:tD,Emacr:nD,emacr:rD,empty:iD,emptyset:oD,EmptySmallSquare:sD,emptyv:lD,EmptyVerySmallSquare:aD,emsp13:cD,emsp14:uD,emsp:fD,ENG:dD,eng:hD,ensp:pD,Eogon:gD,eogon:vD,Eopf:mD,eopf:yD,epar:bD,eparsl:wD,eplus:xD,epsi:_D,Epsilon:SD,epsilon:kD,epsiv:TD,eqcirc:CD,eqcolon:ED,eqsim:AD,eqslantgtr:LD,eqslantless:MD,Equal:ND,equals:OD,EqualTilde:RD,equest:PD,Equilibrium:$D,equiv:ID,equivDD:DD,eqvparsl:zD,erarr:FD,erDot:HD,escr:BD,Escr:WD,esdot:qD,Esim:jD,esim:UD,Eta:VD,eta:GD,ETH:KD,eth:XD,Euml:YD,euml:ZD,euro:JD,excl:QD,exist:ez,Exists:tz,expectation:nz,exponentiale:rz,ExponentialE:iz,fallingdotseq:oz,Fcy:sz,fcy:lz,female:az,ffilig:cz,fflig:uz,ffllig:fz,Ffr:dz,ffr:hz,filig:pz,FilledSmallSquare:gz,FilledVerySmallSquare:vz,fjlig:mz,flat:yz,fllig:bz,fltns:wz,fnof:xz,Fopf:_z,fopf:Sz,forall:kz,ForAll:Tz,fork:Cz,forkv:Ez,Fouriertrf:Az,fpartint:Lz,frac12:Mz,frac13:Nz,frac14:Oz,frac15:Rz,frac16:Pz,frac18:$z,frac23:Iz,frac25:Dz,frac34:zz,frac35:Fz,frac38:Hz,frac45:Bz,frac56:Wz,frac58:qz,frac78:jz,frasl:Uz,frown:Vz,fscr:Gz,Fscr:Kz,gacute:Xz,Gamma:Yz,gamma:Zz,Gammad:Jz,gammad:Qz,gap:eF,Gbreve:tF,gbreve:nF,Gcedil:rF,Gcirc:iF,gcirc:oF,Gcy:sF,gcy:lF,Gdot:aF,gdot:cF,ge:uF,gE:fF,gEl:dF,gel:hF,geq:pF,geqq:gF,geqslant:vF,gescc:mF,ges:yF,gesdot:bF,gesdoto:wF,gesdotol:xF,gesl:_F,gesles:SF,Gfr:kF,gfr:TF,gg:CF,Gg:EF,ggg:AF,gimel:LF,GJcy:MF,gjcy:NF,gla:OF,gl:RF,glE:PF,glj:$F,gnap:IF,gnapprox:DF,gne:zF,gnE:FF,gneq:HF,gneqq:BF,gnsim:WF,Gopf:qF,gopf:jF,grave:UF,GreaterEqual:VF,GreaterEqualLess:GF,GreaterFullEqual:KF,GreaterGreater:XF,GreaterLess:YF,GreaterSlantEqual:ZF,GreaterTilde:JF,Gscr:QF,gscr:eH,gsim:tH,gsime:nH,gsiml:rH,gtcc:iH,gtcir:oH,gt:sH,GT:lH,Gt:aH,gtdot:cH,gtlPar:uH,gtquest:fH,gtrapprox:dH,gtrarr:hH,gtrdot:pH,gtreqless:gH,gtreqqless:vH,gtrless:mH,gtrsim:yH,gvertneqq:bH,gvnE:wH,Hacek:xH,hairsp:_H,half:SH,hamilt:kH,HARDcy:TH,hardcy:CH,harrcir:EH,harr:AH,hArr:LH,harrw:MH,Hat:NH,hbar:OH,Hcirc:RH,hcirc:PH,hearts:$H,heartsuit:IH,hellip:DH,hercon:zH,hfr:FH,Hfr:HH,HilbertSpace:BH,hksearow:WH,hkswarow:qH,hoarr:jH,homtht:UH,hookleftarrow:VH,hookrightarrow:GH,hopf:KH,Hopf:XH,horbar:YH,HorizontalLine:ZH,hscr:JH,Hscr:QH,hslash:e3,Hstrok:t3,hstrok:n3,HumpDownHump:r3,HumpEqual:i3,hybull:o3,hyphen:s3,Iacute:l3,iacute:a3,ic:c3,Icirc:u3,icirc:f3,Icy:d3,icy:h3,Idot:p3,IEcy:g3,iecy:v3,iexcl:m3,iff:y3,ifr:b3,Ifr:w3,Igrave:x3,igrave:_3,ii:S3,iiiint:k3,iiint:T3,iinfin:C3,iiota:E3,IJlig:A3,ijlig:L3,Imacr:M3,imacr:N3,image:O3,ImaginaryI:R3,imagline:P3,imagpart:$3,imath:I3,Im:D3,imof:z3,imped:F3,Implies:H3,incare:B3,in:"∈",infin:W3,infintie:q3,inodot:j3,intcal:U3,int:V3,Int:G3,integers:K3,Integral:X3,intercal:Y3,Intersection:Z3,intlarhk:J3,intprod:Q3,InvisibleComma:eB,InvisibleTimes:tB,IOcy:nB,iocy:rB,Iogon:iB,iogon:oB,Iopf:sB,iopf:lB,Iota:aB,iota:cB,iprod:uB,iquest:fB,iscr:dB,Iscr:hB,isin:pB,isindot:gB,isinE:vB,isins:mB,isinsv:yB,isinv:bB,it:wB,Itilde:xB,itilde:_B,Iukcy:SB,iukcy:kB,Iuml:TB,iuml:CB,Jcirc:EB,jcirc:AB,Jcy:LB,jcy:MB,Jfr:NB,jfr:OB,jmath:RB,Jopf:PB,jopf:$B,Jscr:IB,jscr:DB,Jsercy:zB,jsercy:FB,Jukcy:HB,jukcy:BB,Kappa:WB,kappa:qB,kappav:jB,Kcedil:UB,kcedil:VB,Kcy:GB,kcy:KB,Kfr:XB,kfr:YB,kgreen:ZB,KHcy:JB,khcy:QB,KJcy:e5,kjcy:t5,Kopf:n5,kopf:r5,Kscr:i5,kscr:o5,lAarr:s5,Lacute:l5,lacute:a5,laemptyv:c5,lagran:u5,Lambda:f5,lambda:d5,lang:h5,Lang:p5,langd:g5,langle:v5,lap:m5,Laplacetrf:y5,laquo:b5,larrb:w5,larrbfs:x5,larr:_5,Larr:S5,lArr:k5,larrfs:T5,larrhk:C5,larrlp:E5,larrpl:A5,larrsim:L5,larrtl:M5,latail:N5,lAtail:O5,lat:R5,late:P5,lates:$5,lbarr:I5,lBarr:D5,lbbrk:z5,lbrace:F5,lbrack:H5,lbrke:B5,lbrksld:W5,lbrkslu:q5,Lcaron:j5,lcaron:U5,Lcedil:V5,lcedil:G5,lceil:K5,lcub:X5,Lcy:Y5,lcy:Z5,ldca:J5,ldquo:Q5,ldquor:e8,ldrdhar:t8,ldrushar:n8,ldsh:r8,le:i8,lE:o8,LeftAngleBracket:s8,LeftArrowBar:l8,leftarrow:a8,LeftArrow:c8,Leftarrow:u8,LeftArrowRightArrow:f8,leftarrowtail:d8,LeftCeiling:h8,LeftDoubleBracket:p8,LeftDownTeeVector:g8,LeftDownVectorBar:v8,LeftDownVector:m8,LeftFloor:y8,leftharpoondown:b8,leftharpoonup:w8,leftleftarrows:x8,leftrightarrow:_8,LeftRightArrow:S8,Leftrightarrow:k8,leftrightarrows:T8,leftrightharpoons:C8,leftrightsquigarrow:E8,LeftRightVector:A8,LeftTeeArrow:L8,LeftTee:M8,LeftTeeVector:N8,leftthreetimes:O8,LeftTriangleBar:R8,LeftTriangle:P8,LeftTriangleEqual:$8,LeftUpDownVector:I8,LeftUpTeeVector:D8,LeftUpVectorBar:z8,LeftUpVector:F8,LeftVectorBar:H8,LeftVector:B8,lEg:W8,leg:q8,leq:j8,leqq:U8,leqslant:V8,lescc:G8,les:K8,lesdot:X8,lesdoto:Y8,lesdotor:Z8,lesg:J8,lesges:Q8,lessapprox:eW,lessdot:tW,lesseqgtr:nW,lesseqqgtr:rW,LessEqualGreater:iW,LessFullEqual:oW,LessGreater:sW,lessgtr:lW,LessLess:aW,lesssim:cW,LessSlantEqual:uW,LessTilde:fW,lfisht:dW,lfloor:hW,Lfr:pW,lfr:gW,lg:vW,lgE:mW,lHar:yW,lhard:bW,lharu:wW,lharul:xW,lhblk:_W,LJcy:SW,ljcy:kW,llarr:TW,ll:CW,Ll:EW,llcorner:AW,Lleftarrow:LW,llhard:MW,lltri:NW,Lmidot:OW,lmidot:RW,lmoustache:PW,lmoust:$W,lnap:IW,lnapprox:DW,lne:zW,lnE:FW,lneq:HW,lneqq:BW,lnsim:WW,loang:qW,loarr:jW,lobrk:UW,longleftarrow:VW,LongLeftArrow:GW,Longleftarrow:KW,longleftrightarrow:XW,LongLeftRightArrow:YW,Longleftrightarrow:ZW,longmapsto:JW,longrightarrow:QW,LongRightArrow:e4,Longrightarrow:t4,looparrowleft:n4,looparrowright:r4,lopar:i4,Lopf:o4,lopf:s4,loplus:l4,lotimes:a4,lowast:c4,lowbar:u4,LowerLeftArrow:f4,LowerRightArrow:d4,loz:h4,lozenge:p4,lozf:g4,lpar:v4,lparlt:m4,lrarr:y4,lrcorner:b4,lrhar:w4,lrhard:x4,lrm:_4,lrtri:S4,lsaquo:k4,lscr:T4,Lscr:C4,lsh:E4,Lsh:A4,lsim:L4,lsime:M4,lsimg:N4,lsqb:O4,lsquo:R4,lsquor:P4,Lstrok:$4,lstrok:I4,ltcc:D4,ltcir:z4,lt:F4,LT:H4,Lt:B4,ltdot:W4,lthree:q4,ltimes:j4,ltlarr:U4,ltquest:V4,ltri:G4,ltrie:K4,ltrif:X4,ltrPar:Y4,lurdshar:Z4,luruhar:J4,lvertneqq:Q4,lvnE:eq,macr:tq,male:nq,malt:rq,maltese:iq,Map:"⤅",map:oq,mapsto:sq,mapstodown:lq,mapstoleft:aq,mapstoup:cq,marker:uq,mcomma:fq,Mcy:dq,mcy:hq,mdash:pq,mDDot:gq,measuredangle:vq,MediumSpace:mq,Mellintrf:yq,Mfr:bq,mfr:wq,mho:xq,micro:_q,midast:Sq,midcir:kq,mid:Tq,middot:Cq,minusb:Eq,minus:Aq,minusd:Lq,minusdu:Mq,MinusPlus:Nq,mlcp:Oq,mldr:Rq,mnplus:Pq,models:$q,Mopf:Iq,mopf:Dq,mp:zq,mscr:Fq,Mscr:Hq,mstpos:Bq,Mu:Wq,mu:qq,multimap:jq,mumap:Uq,nabla:Vq,Nacute:Gq,nacute:Kq,nang:Xq,nap:Yq,napE:Zq,napid:Jq,napos:Qq,napprox:ej,natural:tj,naturals:nj,natur:rj,nbsp:ij,nbump:oj,nbumpe:sj,ncap:lj,Ncaron:aj,ncaron:cj,Ncedil:uj,ncedil:fj,ncong:dj,ncongdot:hj,ncup:pj,Ncy:gj,ncy:vj,ndash:mj,nearhk:yj,nearr:bj,neArr:wj,nearrow:xj,ne:_j,nedot:Sj,NegativeMediumSpace:kj,NegativeThickSpace:Tj,NegativeThinSpace:Cj,NegativeVeryThinSpace:Ej,nequiv:Aj,nesear:Lj,nesim:Mj,NestedGreaterGreater:Nj,NestedLessLess:Oj,NewLine:Rj,nexist:Pj,nexists:$j,Nfr:Ij,nfr:Dj,ngE:zj,nge:Fj,ngeq:Hj,ngeqq:Bj,ngeqslant:Wj,nges:qj,nGg:jj,ngsim:Uj,nGt:Vj,ngt:Gj,ngtr:Kj,nGtv:Xj,nharr:Yj,nhArr:Zj,nhpar:Jj,ni:Qj,nis:e6,nisd:t6,niv:n6,NJcy:r6,njcy:i6,nlarr:o6,nlArr:s6,nldr:l6,nlE:a6,nle:c6,nleftarrow:u6,nLeftarrow:f6,nleftrightarrow:d6,nLeftrightarrow:h6,nleq:p6,nleqq:g6,nleqslant:v6,nles:m6,nless:y6,nLl:b6,nlsim:w6,nLt:x6,nlt:_6,nltri:S6,nltrie:k6,nLtv:T6,nmid:C6,NoBreak:E6,NonBreakingSpace:A6,nopf:L6,Nopf:M6,Not:N6,not:O6,NotCongruent:R6,NotCupCap:P6,NotDoubleVerticalBar:$6,NotElement:I6,NotEqual:D6,NotEqualTilde:z6,NotExists:F6,NotGreater:H6,NotGreaterEqual:B6,NotGreaterFullEqual:W6,NotGreaterGreater:q6,NotGreaterLess:j6,NotGreaterSlantEqual:U6,NotGreaterTilde:V6,NotHumpDownHump:G6,NotHumpEqual:K6,notin:X6,notindot:Y6,notinE:Z6,notinva:J6,notinvb:Q6,notinvc:eU,NotLeftTriangleBar:tU,NotLeftTriangle:nU,NotLeftTriangleEqual:rU,NotLess:iU,NotLessEqual:oU,NotLessGreater:sU,NotLessLess:lU,NotLessSlantEqual:aU,NotLessTilde:cU,NotNestedGreaterGreater:uU,NotNestedLessLess:fU,notni:dU,notniva:hU,notnivb:pU,notnivc:gU,NotPrecedes:vU,NotPrecedesEqual:mU,NotPrecedesSlantEqual:yU,NotReverseElement:bU,NotRightTriangleBar:wU,NotRightTriangle:xU,NotRightTriangleEqual:_U,NotSquareSubset:SU,NotSquareSubsetEqual:kU,NotSquareSuperset:TU,NotSquareSupersetEqual:CU,NotSubset:EU,NotSubsetEqual:AU,NotSucceeds:LU,NotSucceedsEqual:MU,NotSucceedsSlantEqual:NU,NotSucceedsTilde:OU,NotSuperset:RU,NotSupersetEqual:PU,NotTilde:$U,NotTildeEqual:IU,NotTildeFullEqual:DU,NotTildeTilde:zU,NotVerticalBar:FU,nparallel:HU,npar:BU,nparsl:WU,npart:qU,npolint:jU,npr:UU,nprcue:VU,nprec:GU,npreceq:KU,npre:XU,nrarrc:YU,nrarr:ZU,nrArr:JU,nrarrw:QU,nrightarrow:eV,nRightarrow:tV,nrtri:nV,nrtrie:rV,nsc:iV,nsccue:oV,nsce:sV,Nscr:lV,nscr:aV,nshortmid:cV,nshortparallel:uV,nsim:fV,nsime:dV,nsimeq:hV,nsmid:pV,nspar:gV,nsqsube:vV,nsqsupe:mV,nsub:yV,nsubE:bV,nsube:wV,nsubset:xV,nsubseteq:_V,nsubseteqq:SV,nsucc:kV,nsucceq:TV,nsup:CV,nsupE:EV,nsupe:AV,nsupset:LV,nsupseteq:MV,nsupseteqq:NV,ntgl:OV,Ntilde:RV,ntilde:PV,ntlg:$V,ntriangleleft:IV,ntrianglelefteq:DV,ntriangleright:zV,ntrianglerighteq:FV,Nu:HV,nu:BV,num:WV,numero:qV,numsp:jV,nvap:UV,nvdash:VV,nvDash:GV,nVdash:KV,nVDash:XV,nvge:YV,nvgt:ZV,nvHarr:JV,nvinfin:QV,nvlArr:eG,nvle:tG,nvlt:nG,nvltrie:rG,nvrArr:iG,nvrtrie:oG,nvsim:sG,nwarhk:lG,nwarr:aG,nwArr:cG,nwarrow:uG,nwnear:fG,Oacute:dG,oacute:hG,oast:pG,Ocirc:gG,ocirc:vG,ocir:mG,Ocy:yG,ocy:bG,odash:wG,Odblac:xG,odblac:_G,odiv:SG,odot:kG,odsold:TG,OElig:CG,oelig:EG,ofcir:AG,Ofr:LG,ofr:MG,ogon:NG,Ograve:OG,ograve:RG,ogt:PG,ohbar:$G,ohm:IG,oint:DG,olarr:zG,olcir:FG,olcross:HG,oline:BG,olt:WG,Omacr:qG,omacr:jG,Omega:UG,omega:VG,Omicron:GG,omicron:KG,omid:XG,ominus:YG,Oopf:ZG,oopf:JG,opar:QG,OpenCurlyDoubleQuote:e9,OpenCurlyQuote:t9,operp:n9,oplus:r9,orarr:i9,Or:o9,or:s9,ord:l9,order:a9,orderof:c9,ordf:u9,ordm:f9,origof:d9,oror:h9,orslope:p9,orv:g9,oS:v9,Oscr:m9,oscr:y9,Oslash:b9,oslash:w9,osol:x9,Otilde:_9,otilde:S9,otimesas:k9,Otimes:T9,otimes:C9,Ouml:E9,ouml:A9,ovbar:L9,OverBar:M9,OverBrace:N9,OverBracket:O9,OverParenthesis:R9,para:P9,parallel:$9,par:I9,parsim:D9,parsl:z9,part:F9,PartialD:H9,Pcy:B9,pcy:W9,percnt:q9,period:j9,permil:U9,perp:V9,pertenk:G9,Pfr:K9,pfr:X9,Phi:Y9,phi:Z9,phiv:J9,phmmat:Q9,phone:e7,Pi:t7,pi:n7,pitchfork:r7,piv:i7,planck:o7,planckh:s7,plankv:l7,plusacir:a7,plusb:c7,pluscir:u7,plus:f7,plusdo:d7,plusdu:h7,pluse:p7,PlusMinus:g7,plusmn:v7,plussim:m7,plustwo:y7,pm:b7,Poincareplane:w7,pointint:x7,popf:_7,Popf:S7,pound:k7,prap:T7,Pr:C7,pr:E7,prcue:A7,precapprox:L7,prec:M7,preccurlyeq:N7,Precedes:O7,PrecedesEqual:R7,PrecedesSlantEqual:P7,PrecedesTilde:$7,preceq:I7,precnapprox:D7,precneqq:z7,precnsim:F7,pre:H7,prE:B7,precsim:W7,prime:q7,Prime:j7,primes:U7,prnap:V7,prnE:G7,prnsim:K7,prod:X7,Product:Y7,profalar:Z7,profline:J7,profsurf:Q7,prop:eK,Proportional:tK,Proportion:nK,propto:rK,prsim:iK,prurel:oK,Pscr:sK,pscr:lK,Psi:aK,psi:cK,puncsp:uK,Qfr:fK,qfr:dK,qint:hK,qopf:pK,Qopf:gK,qprime:vK,Qscr:mK,qscr:yK,quaternions:bK,quatint:wK,quest:xK,questeq:_K,quot:SK,QUOT:kK,rAarr:TK,race:CK,Racute:EK,racute:AK,radic:LK,raemptyv:MK,rang:NK,Rang:OK,rangd:RK,range:PK,rangle:$K,raquo:IK,rarrap:DK,rarrb:zK,rarrbfs:FK,rarrc:HK,rarr:BK,Rarr:WK,rArr:qK,rarrfs:jK,rarrhk:UK,rarrlp:VK,rarrpl:GK,rarrsim:KK,Rarrtl:XK,rarrtl:YK,rarrw:ZK,ratail:JK,rAtail:QK,ratio:eX,rationals:tX,rbarr:nX,rBarr:rX,RBarr:iX,rbbrk:oX,rbrace:sX,rbrack:lX,rbrke:aX,rbrksld:cX,rbrkslu:uX,Rcaron:fX,rcaron:dX,Rcedil:hX,rcedil:pX,rceil:gX,rcub:vX,Rcy:mX,rcy:yX,rdca:bX,rdldhar:wX,rdquo:xX,rdquor:_X,rdsh:SX,real:kX,realine:TX,realpart:CX,reals:EX,Re:AX,rect:LX,reg:MX,REG:NX,ReverseElement:OX,ReverseEquilibrium:RX,ReverseUpEquilibrium:PX,rfisht:$X,rfloor:IX,rfr:DX,Rfr:zX,rHar:FX,rhard:HX,rharu:BX,rharul:WX,Rho:qX,rho:jX,rhov:UX,RightAngleBracket:VX,RightArrowBar:GX,rightarrow:KX,RightArrow:XX,Rightarrow:YX,RightArrowLeftArrow:ZX,rightarrowtail:JX,RightCeiling:QX,RightDoubleBracket:eY,RightDownTeeVector:tY,RightDownVectorBar:nY,RightDownVector:rY,RightFloor:iY,rightharpoondown:oY,rightharpoonup:sY,rightleftarrows:lY,rightleftharpoons:aY,rightrightarrows:cY,rightsquigarrow:uY,RightTeeArrow:fY,RightTee:dY,RightTeeVector:hY,rightthreetimes:pY,RightTriangleBar:gY,RightTriangle:vY,RightTriangleEqual:mY,RightUpDownVector:yY,RightUpTeeVector:bY,RightUpVectorBar:wY,RightUpVector:xY,RightVectorBar:_Y,RightVector:SY,ring:kY,risingdotseq:TY,rlarr:CY,rlhar:EY,rlm:AY,rmoustache:LY,rmoust:MY,rnmid:NY,roang:OY,roarr:RY,robrk:PY,ropar:$Y,ropf:IY,Ropf:DY,roplus:zY,rotimes:FY,RoundImplies:HY,rpar:BY,rpargt:WY,rppolint:qY,rrarr:jY,Rrightarrow:UY,rsaquo:VY,rscr:GY,Rscr:KY,rsh:XY,Rsh:YY,rsqb:ZY,rsquo:JY,rsquor:QY,rthree:eZ,rtimes:tZ,rtri:nZ,rtrie:rZ,rtrif:iZ,rtriltri:oZ,RuleDelayed:sZ,ruluhar:lZ,rx:aZ,Sacute:cZ,sacute:uZ,sbquo:fZ,scap:dZ,Scaron:hZ,scaron:pZ,Sc:gZ,sc:vZ,sccue:mZ,sce:yZ,scE:bZ,Scedil:wZ,scedil:xZ,Scirc:_Z,scirc:SZ,scnap:kZ,scnE:TZ,scnsim:CZ,scpolint:EZ,scsim:AZ,Scy:LZ,scy:MZ,sdotb:NZ,sdot:OZ,sdote:RZ,searhk:PZ,searr:$Z,seArr:IZ,searrow:DZ,sect:zZ,semi:FZ,seswar:HZ,setminus:BZ,setmn:WZ,sext:qZ,Sfr:jZ,sfr:UZ,sfrown:VZ,sharp:GZ,SHCHcy:KZ,shchcy:XZ,SHcy:YZ,shcy:ZZ,ShortDownArrow:JZ,ShortLeftArrow:QZ,shortmid:eJ,shortparallel:tJ,ShortRightArrow:nJ,ShortUpArrow:rJ,shy:iJ,Sigma:oJ,sigma:sJ,sigmaf:lJ,sigmav:aJ,sim:cJ,simdot:uJ,sime:fJ,simeq:dJ,simg:hJ,simgE:pJ,siml:gJ,simlE:vJ,simne:mJ,simplus:yJ,simrarr:bJ,slarr:wJ,SmallCircle:xJ,smallsetminus:_J,smashp:SJ,smeparsl:kJ,smid:TJ,smile:CJ,smt:EJ,smte:AJ,smtes:LJ,SOFTcy:MJ,softcy:NJ,solbar:OJ,solb:RJ,sol:PJ,Sopf:$J,sopf:IJ,spades:DJ,spadesuit:zJ,spar:FJ,sqcap:HJ,sqcaps:BJ,sqcup:WJ,sqcups:qJ,Sqrt:jJ,sqsub:UJ,sqsube:VJ,sqsubset:GJ,sqsubseteq:KJ,sqsup:XJ,sqsupe:YJ,sqsupset:ZJ,sqsupseteq:JJ,square:QJ,Square:eQ,SquareIntersection:tQ,SquareSubset:nQ,SquareSubsetEqual:rQ,SquareSuperset:iQ,SquareSupersetEqual:oQ,SquareUnion:sQ,squarf:lQ,squ:aQ,squf:cQ,srarr:uQ,Sscr:fQ,sscr:dQ,ssetmn:hQ,ssmile:pQ,sstarf:gQ,Star:vQ,star:mQ,starf:yQ,straightepsilon:bQ,straightphi:wQ,strns:xQ,sub:_Q,Sub:SQ,subdot:kQ,subE:TQ,sube:CQ,subedot:EQ,submult:AQ,subnE:LQ,subne:MQ,subplus:NQ,subrarr:OQ,subset:RQ,Subset:PQ,subseteq:$Q,subseteqq:IQ,SubsetEqual:DQ,subsetneq:zQ,subsetneqq:FQ,subsim:HQ,subsub:BQ,subsup:WQ,succapprox:qQ,succ:jQ,succcurlyeq:UQ,Succeeds:VQ,SucceedsEqual:GQ,SucceedsSlantEqual:KQ,SucceedsTilde:XQ,succeq:YQ,succnapprox:ZQ,succneqq:JQ,succnsim:QQ,succsim:eee,SuchThat:tee,sum:nee,Sum:ree,sung:iee,sup1:oee,sup2:see,sup3:lee,sup:aee,Sup:cee,supdot:uee,supdsub:fee,supE:dee,supe:hee,supedot:pee,Superset:gee,SupersetEqual:vee,suphsol:mee,suphsub:yee,suplarr:bee,supmult:wee,supnE:xee,supne:_ee,supplus:See,supset:kee,Supset:Tee,supseteq:Cee,supseteqq:Eee,supsetneq:Aee,supsetneqq:Lee,supsim:Mee,supsub:Nee,supsup:Oee,swarhk:Ree,swarr:Pee,swArr:$ee,swarrow:Iee,swnwar:Dee,szlig:zee,Tab:Fee,target:Hee,Tau:Bee,tau:Wee,tbrk:qee,Tcaron:jee,tcaron:Uee,Tcedil:Vee,tcedil:Gee,Tcy:Kee,tcy:Xee,tdot:Yee,telrec:Zee,Tfr:Jee,tfr:Qee,there4:ete,therefore:tte,Therefore:nte,Theta:rte,theta:ite,thetasym:ote,thetav:ste,thickapprox:lte,thicksim:ate,ThickSpace:cte,ThinSpace:ute,thinsp:fte,thkap:dte,thksim:hte,THORN:pte,thorn:gte,tilde:vte,Tilde:mte,TildeEqual:yte,TildeFullEqual:bte,TildeTilde:wte,timesbar:xte,timesb:_te,times:Ste,timesd:kte,tint:Tte,toea:Cte,topbot:Ete,topcir:Ate,top:Lte,Topf:Mte,topf:Nte,topfork:Ote,tosa:Rte,tprime:Pte,trade:$te,TRADE:Ite,triangle:Dte,triangledown:zte,triangleleft:Fte,trianglelefteq:Hte,triangleq:Bte,triangleright:Wte,trianglerighteq:qte,tridot:jte,trie:Ute,triminus:Vte,TripleDot:Gte,triplus:Kte,trisb:Xte,tritime:Yte,trpezium:Zte,Tscr:Jte,tscr:Qte,TScy:ene,tscy:tne,TSHcy:nne,tshcy:rne,Tstrok:ine,tstrok:one,twixt:sne,twoheadleftarrow:lne,twoheadrightarrow:ane,Uacute:cne,uacute:une,uarr:fne,Uarr:dne,uArr:hne,Uarrocir:pne,Ubrcy:gne,ubrcy:vne,Ubreve:mne,ubreve:yne,Ucirc:bne,ucirc:wne,Ucy:xne,ucy:_ne,udarr:Sne,Udblac:kne,udblac:Tne,udhar:Cne,ufisht:Ene,Ufr:Ane,ufr:Lne,Ugrave:Mne,ugrave:Nne,uHar:One,uharl:Rne,uharr:Pne,uhblk:$ne,ulcorn:Ine,ulcorner:Dne,ulcrop:zne,ultri:Fne,Umacr:Hne,umacr:Bne,uml:Wne,UnderBar:qne,UnderBrace:jne,UnderBracket:Une,UnderParenthesis:Vne,Union:Gne,UnionPlus:Kne,Uogon:Xne,uogon:Yne,Uopf:Zne,uopf:Jne,UpArrowBar:Qne,uparrow:ere,UpArrow:tre,Uparrow:nre,UpArrowDownArrow:rre,updownarrow:ire,UpDownArrow:ore,Updownarrow:sre,UpEquilibrium:lre,upharpoonleft:are,upharpoonright:cre,uplus:ure,UpperLeftArrow:fre,UpperRightArrow:dre,upsi:hre,Upsi:pre,upsih:gre,Upsilon:vre,upsilon:mre,UpTeeArrow:yre,UpTee:bre,upuparrows:wre,urcorn:xre,urcorner:_re,urcrop:Sre,Uring:kre,uring:Tre,urtri:Cre,Uscr:Ere,uscr:Are,utdot:Lre,Utilde:Mre,utilde:Nre,utri:Ore,utrif:Rre,uuarr:Pre,Uuml:$re,uuml:Ire,uwangle:Dre,vangrt:zre,varepsilon:Fre,varkappa:Hre,varnothing:Bre,varphi:Wre,varpi:qre,varpropto:jre,varr:Ure,vArr:Vre,varrho:Gre,varsigma:Kre,varsubsetneq:Xre,varsubsetneqq:Yre,varsupsetneq:Zre,varsupsetneqq:Jre,vartheta:Qre,vartriangleleft:eie,vartriangleright:tie,vBar:nie,Vbar:rie,vBarv:iie,Vcy:oie,vcy:sie,vdash:lie,vDash:aie,Vdash:cie,VDash:uie,Vdashl:fie,veebar:die,vee:hie,Vee:pie,veeeq:gie,vellip:vie,verbar:mie,Verbar:yie,vert:bie,Vert:wie,VerticalBar:xie,VerticalLine:_ie,VerticalSeparator:Sie,VerticalTilde:kie,VeryThinSpace:Tie,Vfr:Cie,vfr:Eie,vltri:Aie,vnsub:Lie,vnsup:Mie,Vopf:Nie,vopf:Oie,vprop:Rie,vrtri:Pie,Vscr:$ie,vscr:Iie,vsubnE:Die,vsubne:zie,vsupnE:Fie,vsupne:Hie,Vvdash:Bie,vzigzag:Wie,Wcirc:qie,wcirc:jie,wedbar:Uie,wedge:Vie,Wedge:Gie,wedgeq:Kie,weierp:Xie,Wfr:Yie,wfr:Zie,Wopf:Jie,wopf:Qie,wp:eoe,wr:toe,wreath:noe,Wscr:roe,wscr:ioe,xcap:ooe,xcirc:soe,xcup:loe,xdtri:aoe,Xfr:coe,xfr:uoe,xharr:foe,xhArr:doe,Xi:hoe,xi:poe,xlarr:goe,xlArr:voe,xmap:moe,xnis:yoe,xodot:boe,Xopf:woe,xopf:xoe,xoplus:_oe,xotime:Soe,xrarr:koe,xrArr:Toe,Xscr:Coe,xscr:Eoe,xsqcup:Aoe,xuplus:Loe,xutri:Moe,xvee:Noe,xwedge:Ooe,Yacute:Roe,yacute:Poe,YAcy:$oe,yacy:Ioe,Ycirc:Doe,ycirc:zoe,Ycy:Foe,ycy:Hoe,yen:Boe,Yfr:Woe,yfr:qoe,YIcy:joe,yicy:Uoe,Yopf:Voe,yopf:Goe,Yscr:Koe,yscr:Xoe,YUcy:Yoe,yucy:Zoe,yuml:Joe,Yuml:Qoe,Zacute:ese,zacute:tse,Zcaron:nse,zcaron:rse,Zcy:ise,zcy:ose,Zdot:sse,zdot:lse,zeetrf:ase,ZeroWidthSpace:cse,Zeta:use,zeta:fse,zfr:dse,Zfr:hse,ZHcy:pse,zhcy:gse,zigrarr:vse,zopf:mse,Zopf:yse,Zscr:bse,zscr:wse,zwj:xse,zwnj:_se},Sse="Á",kse="á",Tse="Â",Cse="â",Ese="´",Ase="Æ",Lse="æ",Mse="À",Nse="à",Ose="&",Rse="&",Pse="Å",$se="å",Ise="Ã",Dse="ã",zse="Ä",Fse="ä",Hse="¦",Bse="Ç",Wse="ç",qse="¸",jse="¢",Use="©",Vse="©",Gse="¤",Kse="°",Xse="÷",Yse="É",Zse="é",Jse="Ê",Qse="ê",ele="È",tle="è",nle="Ð",rle="ð",ile="Ë",ole="ë",sle="½",lle="¼",ale="¾",cle=">",ule=">",fle="Í",dle="í",hle="Î",ple="î",gle="¡",vle="Ì",mle="ì",yle="¿",ble="Ï",wle="ï",xle="«",_le="<",Sle="<",kle="¯",Tle="µ",Cle="·",Ele=" ",Ale="¬",Lle="Ñ",Mle="ñ",Nle="Ó",Ole="ó",Rle="Ô",Ple="ô",$le="Ò",Ile="ò",Dle="ª",zle="º",Fle="Ø",Hle="ø",Ble="Õ",Wle="õ",qle="Ö",jle="ö",Ule="¶",Vle="±",Gle="£",Kle='"',Xle='"',Yle="»",Zle="®",Jle="®",Qle="§",eae="",tae="¹",nae="²",rae="³",iae="ß",oae="Þ",sae="þ",lae="×",aae="Ú",cae="ú",uae="Û",fae="û",dae="Ù",hae="ù",pae="¨",gae="Ü",vae="ü",mae="Ý",yae="ý",bae="¥",wae="ÿ",xae={Aacute:Sse,aacute:kse,Acirc:Tse,acirc:Cse,acute:Ese,AElig:Ase,aelig:Lse,Agrave:Mse,agrave:Nse,amp:Ose,AMP:Rse,Aring:Pse,aring:$se,Atilde:Ise,atilde:Dse,Auml:zse,auml:Fse,brvbar:Hse,Ccedil:Bse,ccedil:Wse,cedil:qse,cent:jse,copy:Use,COPY:Vse,curren:Gse,deg:Kse,divide:Xse,Eacute:Yse,eacute:Zse,Ecirc:Jse,ecirc:Qse,Egrave:ele,egrave:tle,ETH:nle,eth:rle,Euml:ile,euml:ole,frac12:sle,frac14:lle,frac34:ale,gt:cle,GT:ule,Iacute:fle,iacute:dle,Icirc:hle,icirc:ple,iexcl:gle,Igrave:vle,igrave:mle,iquest:yle,Iuml:ble,iuml:wle,laquo:xle,lt:_le,LT:Sle,macr:kle,micro:Tle,middot:Cle,nbsp:Ele,not:Ale,Ntilde:Lle,ntilde:Mle,Oacute:Nle,oacute:Ole,Ocirc:Rle,ocirc:Ple,Ograve:$le,ograve:Ile,ordf:Dle,ordm:zle,Oslash:Fle,oslash:Hle,Otilde:Ble,otilde:Wle,Ouml:qle,ouml:jle,para:Ule,plusmn:Vle,pound:Gle,quot:Kle,QUOT:Xle,raquo:Yle,reg:Zle,REG:Jle,sect:Qle,shy:eae,sup1:tae,sup2:nae,sup3:rae,szlig:iae,THORN:oae,thorn:sae,times:lae,Uacute:aae,uacute:cae,Ucirc:uae,ucirc:fae,Ugrave:dae,ugrave:hae,uml:pae,Uuml:gae,uuml:vae,Yacute:mae,yacute:yae,yen:bae,yuml:wae},_ae="&",Sae="'",kae=">",Tae="<",Cae='"',Uw={amp:_ae,apos:Sae,gt:kae,lt:Tae,quot:Cae};var ws={};const Eae={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 e0;function Aae(){if(e0)return ws;e0=1;var e=ws&&ws.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ws,"__esModule",{value:!0});var t=e(Eae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ws.default=o,ws}var t0;function n0(){if(t0)return Tr;t0=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(jw),r=e(xae),o=e(Uw),s=e(Aae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tr.decodeXML=f(o.default),Tr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};Tr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var x=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),T=h(t.default);function L(M){return M.substr(-1)!==";"&&(M+=";"),T(M)}return function(M){return String(M).replace(x,L)}})();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return Tr}var Ln={},r0;function i0(){if(r0)return Ln;r0=1;var e=Ln&&Ln.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(Uw),r=d(t.default),o=h(r);Ln.encodeXML=M(r);var s=e(jw),c=d(s.default),f=h(c);Ln.encodeHTML=b(c,f),Ln.encodeNonAsciiHTML=M(c);function d(A){return Object.keys(A).sort().reduce(function(R,B){return R[A[B]]="&"+B+";",R},{})}function h(A){for(var R=[],B=[],E=0,W=Object.keys(A);E<W.length;E++){var U=W[E];U.length===1?R.push("\\"+U):B.push(U)}R.sort();for(var se=0;se<R.length-1;se++){for(var ne=se;ne<R.length-1&&R[ne].charCodeAt(1)+1===R[ne+1].charCodeAt(1);)ne+=1;var Q=1+ne-se;Q<3||R.splice(se,Q,R[se]+"-"+R[ne])}return B.unshift("["+R.join("")+"]"),new RegExp(B.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(A){return A.codePointAt(0)}:function(A){return(A.charCodeAt(0)-55296)*1024+A.charCodeAt(1)-56320+65536};function m(A){return"&#x"+(A.length>1?v(A):A.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(A,R){return function(B){return B.replace(R,function(E){return A[E]}).replace(p,m)}}var x=new RegExp(o.source+"|"+p.source,"g");function T(A){return A.replace(x,m)}Ln.escape=T;function L(A){return A.replace(o,m)}Ln.escapeUTF8=L;function M(A){return function(R){return R.replace(x,function(B){return A[B]||m(B)})}}return Ln}var o0;function Lae(){return o0||(o0=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=n0(),r=i0();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=i0();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=n0();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(bd)),bd}var wd,s0;function Mae(){if(s0)return wd;s0=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var N=0;N<O.length;N++){var S=O[N];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function r(P,O,N){return O&&t(P.prototype,O),P}function o(P,O){var N=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!N){if(Array.isArray(P)||(N=s(P))||O){N&&(P=N);var S=0,z=function(){};return{s:z,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function($e){throw $e},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
44
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,ie=!1,me;return{s:function(){N=N.call(P)},n:function(){var $e=N.next();return H=$e.done,$e},e:function($e){ie=!0,me=$e},f:function(){try{!H&&N.return!=null&&N.return()}finally{if(ie)throw me}}}}function s(P,O){if(P){if(typeof P=="string")return c(P,O);var N=Object.prototype.toString.call(P).slice(8,-1);if(N==="Object"&&P.constructor&&(N=P.constructor.name),N==="Map"||N==="Set")return Array.from(P);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return c(P,O)}}function c(P,O){(O==null||O>P.length)&&(O=P.length);for(var N=0,S=new Array(O);N<O;N++)S[N]=P[N];return S}var f=Lae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={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 M(0,5).forEach(function(O){M(0,5).forEach(function(N){M(0,5).forEach(function(S){return p(O,N,S,P)})})}),M(0,23).forEach(function(O){var N=O+232,S=v(O*10+8);P[N]="#"+S+S+S}),P}function p(P,O,N,S){var z=16+P*36+O*6+N,H=P>0?P*40+55:0,ie=O>0?O*40+55:0,me=N>0?N*40+55:0;S[z]=m([H,ie,me])}function v(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function m(P){var O=[],N=o(P),S;try{for(N.s();!(S=N.n()).done;){var z=S.value;O.push(v(z))}}catch(H){N.e(H)}finally{N.f()}return"#"+O.join("")}function b(P,O,N,S){var z;return O==="text"?z=B(N,S):O==="display"?z=T(P,N,S):O==="xterm256Foreground"?z=U(P,S.colors[N]):O==="xterm256Background"?z=se(P,S.colors[N]):O==="rgb"&&(z=x(P,N)),z}function x(P,O){O=O.substring(2).slice(0,-1);var N=+O.substr(0,2),S=O.substring(5).split(";"),z=S.map(function(H){return("0"+Number(H).toString(16)).substr(-2)}).join("");return W(P,(N===38?"color:#":"background-color:#")+z)}function T(P,O,N){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&L(P)},1:function(){return E(P,"b")},3:function(){return E(P,"i")},4:function(){return E(P,"u")},8:function(){return W(P,"display:none")},9:function(){return E(P,"strike")},22:function(){return W(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ne(P,"i")},24:function(){return ne(P,"u")},39:function(){return U(P,N.fg)},49:function(){return se(P,N.bg)},53:function(){return W(P,"text-decoration:overline")}},z;return S[O]?z=S[O]():4<O&&O<7?z=E(P,"blink"):29<O&&O<38?z=U(P,N.colors[O-30]):39<O&&O<48?z=se(P,N.colors[O-40]):89<O&&O<98?z=U(P,N.colors[8+(O-90)]):99<O&&O<108&&(z=se(P,N.colors[8+(O-100)])),z}function L(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(N){return"</"+N+">"}).join("")}function M(P,O){for(var N=[],S=P;S<=O;S++)N.push(S);return N}function A(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function R(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function B(P,O){return O.escapeXML?f.encodeXML(P):P}function E(P,O,N){return N||(N=""),P.push(O),"<".concat(O).concat(N?' style="'.concat(N,'"'):"",">")}function W(P,O){return E(P,"span",O)}function U(P,O){return E(P,"span","color:"+O)}function se(P,O){return E(P,"span","background-color:"+O)}function ne(P,O){var N;if(P.slice(-1)[0]===O&&(N=P.pop()),N)return"</"+O+">"}function Q(P,O,N){var S=!1,z=3;function H(){return""}function ie(F,Y){return N("xterm256Foreground",Y),""}function me(F,Y){return N("xterm256Background",Y),""}function xe(F){return O.newline?N("display",-1):N("text",F),""}function $e(F,Y){S=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var ue=o(Y),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;N("display",de)}}catch(Se){ue.e(Se)}finally{ue.f()}return""}function Ve(F){return N("text",F),""}function nt(F){return N("rgb",F),""}var Je=[{pattern:/^\x08+/,sub:H},{pattern:/^\x1b\[[012]?K/,sub:H},{pattern:/^\x1b\[\(B/,sub:H},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:nt},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ie},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:xe},{pattern:/^\r+\n/,sub:xe},{pattern:/^\r/,sub:xe},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:$e},{pattern:/^\x1b\[\d?J/,sub:H},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:H},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:H},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ve}];function Fe(F,Y){Y>z&&S||(S=!1,P=P.replace(F.pattern,F.sub))}var Me=[],I=P,G=I.length;e:for(;G>0;){for(var ee=0,le=0,oe=Je.length;le<oe;ee=++le){var $=Je[ee];if(Fe($,ee),P.length!==G){G=P.length;continue e}}if(P.length===G)break;Me.push(0),G=P.length}return Me}function K(P,O,N){return O!=="text"&&(P=P.filter(A(R(N))),P.push({token:O,data:N,category:R(N)})),P}var V=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(P,[{key:"toHtml",value:function(N){var S=this;N=typeof N=="string"?[N]:N;var z=this.stack,H=this.options,ie=[];return this.stickyStack.forEach(function(me){var xe=b(z,me.token,me.data,H);xe&&ie.push(xe)}),Q(N.join(""),H,function(me,xe){var $e=b(z,me,xe,H);$e&&ie.push($e),H.stream&&(S.stickyStack=K(S.stickyStack,me,xe))}),z.length&&ie.push(L(z)),ie.join("")}}]),P})();return wd=V,wd}var Nae=Mae();const Oae=qw(Nae);function na(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Rae(e,t){return t&&e.endsWith(t)}async function up(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function fp(e){return new Oae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Pae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Vw(e){let t=e;if(Pae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=JE(t.stack||"",{ignoreStackEntries:[]}),t}function $ae(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(na(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(na(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(na(t.stack))}`),r.length>0?r:null}function Gw(e,t){const r=fp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>$ae(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Fa=_E("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),uo=Uo(Fa,"file"),dn=Uo(Fa,"view"),Kw=Uo(Fa,"line"),Xw=Uo(Fa,"column"),$s=Uo(Fa,"test");var l0={exports:{}},a0;function Yw(){return a0||(a0=1,(function(e,t){(function(r){r(tl())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function C(Yt){return{type:Yt,style:"keyword"}}var q=C("keyword a"),fe=C("keyword b"),we=C("keyword c"),ae=C("keyword d"),Ae=C("operator"),pt={type:"atom",style:"atom"};return{if:C("if"),while:q,with:q,else:fe,do:fe,try:fe,finally:fe,return:ae,break:ae,continue:ae,new:C("new"),delete:we,void:we,throw:we,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ae,typeof:Ae,instanceof:Ae,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:C("this"),class:C("class"),super:C("atom"),yield:we,export:C("export"),import:C("import"),extends:we,await:we}})(),x=/[+\-*&%=<>!?|~^@]/,T=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(C){for(var q=!1,fe,we=!1;(fe=C.next())!=null;){if(!q){if(fe=="/"&&!we)return;fe=="["?we=!0:we&&fe=="]"&&(we=!1)}q=!q&&fe=="\\"}}var M,A;function R(C,q,fe){return M=C,A=fe,q}function B(C,q){var fe=C.next();if(fe=='"'||fe=="'")return q.tokenize=E(fe),q.tokenize(C,q);if(fe=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(fe=="."&&C.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return R(fe);if(fe=="="&&C.eat(">"))return R("=>","operator");if(fe=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(fe))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(fe=="/")return C.eat("*")?(q.tokenize=W,W(C,q)):C.eat("/")?(C.skipToEnd(),R("comment","comment")):Qn(C,q,1)?(L(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(C.eat("="),R("operator","operator",C.current()));if(fe=="`")return q.tokenize=U,U(C,q);if(fe=="#"&&C.peek()=="!")return C.skipToEnd(),R("meta","meta");if(fe=="#"&&C.eatWhile(m))return R("variable","property");if(fe=="<"&&C.match("!--")||fe=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),R("comment","comment");if(x.test(fe))return(fe!=">"||!q.lexical||q.lexical.type!=">")&&(C.eat("=")?(fe=="!"||fe=="=")&&C.eat("="):/[<>*+\-|&?]/.test(fe)&&(C.eat(fe),fe==">"&&C.eat(fe))),fe=="?"&&C.eat(".")?R("."):R("operator","operator",C.current());if(m.test(fe)){C.eatWhile(m);var we=C.current();if(q.lastType!="."){if(b.propertyIsEnumerable(we)){var ae=b[we];return R(ae.type,ae.style,we)}if(we=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",we)}return R("variable","variable",we)}}function E(C){return function(q,fe){var we=!1,ae;if(d&&q.peek()=="@"&&q.match(T))return fe.tokenize=B,R("jsonld-keyword","meta");for(;(ae=q.next())!=null&&!(ae==C&&!we);)we=!we&&ae=="\\";return we||(fe.tokenize=B),R("string","string")}}function W(C,q){for(var fe=!1,we;we=C.next();){if(we=="/"&&fe){q.tokenize=B;break}fe=we=="*"}return R("comment","comment")}function U(C,q){for(var fe=!1,we;(we=C.next())!=null;){if(!fe&&(we=="`"||we=="$"&&C.eat("{"))){q.tokenize=B;break}fe=!fe&&we=="\\"}return R("quasi","string-2",C.current())}var se="([{}])";function ne(C,q){q.fatArrowAt&&(q.fatArrowAt=null);var fe=C.string.indexOf("=>",C.start);if(!(fe<0)){if(v){var we=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,fe));we&&(fe=we.index)}for(var ae=0,Ae=!1,pt=fe-1;pt>=0;--pt){var Yt=C.string.charAt(pt),Sn=se.indexOf(Yt);if(Sn>=0&&Sn<3){if(!ae){++pt;break}if(--ae==0){Yt=="("&&(Ae=!0);break}}else if(Sn>=3&&Sn<6)++ae;else if(m.test(Yt))Ae=!0;else if(/["'\/`]/.test(Yt))for(;;--pt){if(pt==0)return;var Qo=C.string.charAt(pt-1);if(Qo==Yt&&C.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ae&&!ae){++pt;break}}Ae&&!ae&&(q.fatArrowAt=pt)}}var Q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(C,q,fe,we,ae,Ae){this.indented=C,this.column=q,this.type=fe,this.prev=ae,this.info=Ae,we!=null&&(this.align=we)}function V(C,q){if(!p)return!1;for(var fe=C.localVars;fe;fe=fe.next)if(fe.name==q)return!0;for(var we=C.context;we;we=we.prev)for(var fe=we.vars;fe;fe=fe.next)if(fe.name==q)return!0}function P(C,q,fe,we,ae){var Ae=C.cc;for(O.state=C,O.stream=ae,O.marked=null,O.cc=Ae,O.style=q,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var pt=Ae.length?Ae.pop():h?oe:ee;if(pt(fe,we)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return O.marked?O.marked:fe=="variable"&&V(C,we)?"variable-2":q}}}var O={state:null,marked:null,cc:null};function N(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function S(){return N.apply(null,arguments),!0}function z(C,q){for(var fe=q;fe;fe=fe.next)if(fe.name==C)return!0;return!1}function H(C){var q=O.state;if(O.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var fe=ie(C,q.context);if(fe!=null){q.context=fe;return}}else if(!z(C,q.localVars)){q.localVars=new $e(C,q.localVars);return}}s.globalVars&&!z(C,q.globalVars)&&(q.globalVars=new $e(C,q.globalVars))}}function ie(C,q){if(q)if(q.block){var fe=ie(C,q.prev);return fe?fe==q.prev?q:new xe(fe,q.vars,!0):null}else return z(C,q.vars)?q:new xe(q.prev,new $e(C,q.vars),!1);else return null}function me(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function xe(C,q,fe){this.prev=C,this.vars=q,this.block=fe}function $e(C,q){this.name=C,this.next=q}var Ve=new $e("this",new $e("arguments",null));function nt(){O.state.context=new xe(O.state.context,O.state.localVars,!1),O.state.localVars=Ve}function Je(){O.state.context=new xe(O.state.context,O.state.localVars,!0),O.state.localVars=null}nt.lex=Je.lex=!0;function Fe(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Fe.lex=!0;function Me(C,q){var fe=function(){var we=O.state,ae=we.indented;if(we.lexical.type=="stat")ae=we.lexical.indented;else for(var Ae=we.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)ae=Ae.indented;we.lexical=new K(ae,O.stream.column(),C,null,we.lexical,q)};return fe.lex=!0,fe}function I(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}I.lex=!0;function G(C){function q(fe){return fe==C?S():C==";"||fe=="}"||fe==")"||fe=="]"?N():S(q)}return q}function ee(C,q){return C=="var"?S(Me("vardef",q),Vo,G(";"),I):C=="keyword a"?S(Me("form"),F,ee,I):C=="keyword b"?S(Me("form"),ee,I):C=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(Me("stat"),ue,G(";"),I):C=="debugger"?S(G(";")):C=="{"?S(Me("}"),Je,Wt,I,Fe):C==";"?S():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==I&&O.state.cc.pop()(),S(Me("form"),F,ee,I,Go)):C=="function"?S(cr):C=="for"?S(Me("form"),Je,ja,ee,Fe,I):C=="class"||v&&q=="interface"?(O.marked="keyword",S(Me("form",C=="class"?C:q),Ko,I)):C=="variable"?v&&q=="declare"?(O.marked="keyword",S(ee)):v&&(q=="module"||q=="enum"||q=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",q=="enum"?S(Ie):q=="type"?S(Ua,G("operator"),it,G(";")):S(Me("form"),_n,G("{"),Me("}"),Wt,I,I)):v&&q=="namespace"?(O.marked="keyword",S(Me("form"),oe,ee,I)):v&&q=="abstract"?(O.marked="keyword",S(ee)):S(Me("stat"),Ke):C=="switch"?S(Me("form"),F,G("{"),Me("}","switch"),Je,Wt,I,I,Fe):C=="case"?S(oe,G(":")):C=="default"?S(G(":")):C=="catch"?S(Me("form"),nt,le,ee,I,Fe):C=="export"?S(Me("stat"),Xo,I):C=="import"?S(Me("stat"),Ri,I):C=="async"?S(ee):q=="@"?S(oe,ee):N(Me("stat"),oe,G(";"),I)}function le(C){if(C=="(")return S(yr,G(")"))}function oe(C,q){return Y(C,q,!1)}function $(C,q){return Y(C,q,!0)}function F(C){return C!="("?N():S(Me(")"),ue,G(")"),I)}function Y(C,q,fe){if(O.state.fatArrowAt==O.stream.start){var we=fe?ye:ve;if(C=="(")return S(nt,Me(")"),ct(yr,")"),I,G("=>"),we,Fe);if(C=="variable")return N(nt,_n,G("=>"),we,Fe)}var ae=fe?de:he;return Q.hasOwnProperty(C)?S(ae):C=="function"?S(cr,ae):C=="class"||v&&q=="interface"?(O.marked="keyword",S(Me("form"),cf,I)):C=="keyword c"||C=="async"?S(fe?$:oe):C=="("?S(Me(")"),ue,G(")"),I,ae):C=="operator"||C=="spread"?S(fe?$:oe):C=="["?S(Me("]"),$t,I,ae):C=="{"?Xt(at,"}",null,ae):C=="quasi"?N(Se,ae):C=="new"?S(je(fe)):S()}function ue(C){return C.match(/[;\}\)\],]/)?N():N(oe)}function he(C,q){return C==","?S(ue):de(C,q,!1)}function de(C,q,fe){var we=fe==!1?he:de,ae=fe==!1?oe:$;if(C=="=>")return S(nt,fe?ye:ve,Fe);if(C=="operator")return/\+\+|--/.test(q)||v&&q=="!"?S(we):v&&q=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Me(">"),ct(it,">"),I,we):q=="?"?S(oe,G(":"),ae):S(ae);if(C=="quasi")return N(Se,we);if(C!=";"){if(C=="(")return Xt($,")","call",we);if(C==".")return S(ot,we);if(C=="[")return S(Me("]"),ue,G("]"),I,we);if(v&&q=="as")return O.marked="keyword",S(it,we);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(ae)}}function Se(C,q){return C!="quasi"?N():q.slice(q.length-2)!="${"?S(Se):S(ue,Ee)}function Ee(C){if(C=="}")return O.marked="string-2",O.state.tokenize=U,S(Se)}function ve(C){return ne(O.stream,O.state),N(C=="{"?ee:oe)}function ye(C){return ne(O.stream,O.state),N(C=="{"?ee:$)}function je(C){return function(q){return q=="."?S(C?He:Oe):q=="variable"&&v?S(Hn,C?de:he):N(C?$:oe)}}function Oe(C,q){if(q=="target")return O.marked="keyword",S(he)}function He(C,q){if(q=="target")return O.marked="keyword",S(de)}function Ke(C){return C==":"?S(I,ee):N(he,G(";"),I)}function ot(C){if(C=="variable")return O.marked="property",S()}function at(C,q){if(C=="async")return O.marked="property",S(at);if(C=="variable"||O.style=="keyword"){if(O.marked="property",q=="get"||q=="set")return S(ft);var fe;return v&&O.state.fatArrowAt==O.stream.start&&(fe=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+fe[0].length),S(Nt)}else{if(C=="number"||C=="string")return O.marked=d?"property":O.style+" property",S(Nt);if(C=="jsonld-keyword")return S(Nt);if(v&&me(q))return O.marked="keyword",S(at);if(C=="[")return S(oe,zn,G("]"),Nt);if(C=="spread")return S($,Nt);if(q=="*")return O.marked="keyword",S(at);if(C==":")return N(Nt)}}function ft(C){return C!="variable"?N(Nt):(O.marked="property",S(cr))}function Nt(C){if(C==":")return S($);if(C=="(")return N(cr)}function ct(C,q,fe){function we(ae,Ae){if(fe?fe.indexOf(ae)>-1:ae==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Yt,Sn){return Yt==q||Sn==q?N():N(C)},we)}return ae==q||Ae==q?S():fe&&fe.indexOf(";")>-1?N(C):S(G(q))}return function(ae,Ae){return ae==q||Ae==q?S():N(C,we)}}function Xt(C,q,fe){for(var we=3;we<arguments.length;we++)O.cc.push(arguments[we]);return S(Me(q,fe),ct(C,q),I)}function Wt(C){return C=="}"?S():N(ee,Wt)}function zn(C,q){if(v){if(C==":")return S(it);if(q=="?")return S(zn)}}function Fr(C,q){if(v&&(C==":"||q=="in"))return S(it)}function zt(C){if(v&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(oe,Fn,it):S(it)}function Fn(C,q){if(q=="is")return O.marked="keyword",S()}function it(C,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return O.marked="keyword",S(q=="typeof"?$:it);if(C=="variable"||q=="void")return O.marked="type",S(ar);if(q=="|"||q=="&")return S(it);if(C=="string"||C=="number"||C=="atom")return S(ar);if(C=="[")return S(Me("]"),ct(it,"]",","),I,ar);if(C=="{")return S(Me("}"),Be,I,ar);if(C=="(")return S(ct(Pt,")"),po,ar);if(C=="<")return S(ct(it,">"),it);if(C=="quasi")return N(an,ar)}function po(C){if(C=="=>")return S(it)}function Be(C){return C.match(/[\}\)\]]/)?S():C==","||C==";"?S(Be):N(ti,Be)}function ti(C,q){if(C=="variable"||O.style=="keyword")return O.marked="property",S(ti);if(q=="?"||C=="number"||C=="string")return S(ti);if(C==":")return S(it);if(C=="[")return S(G("variable"),Fr,G("]"),ti);if(C=="(")return N(Oi,ti);if(!C.match(/[;\}\)\],]/))return S()}function an(C,q){return C!="quasi"?N():q.slice(q.length-2)!="${"?S(an):S(it,Rt)}function Rt(C){if(C=="}")return O.marked="string-2",O.state.tokenize=U,S(an)}function Pt(C,q){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||q=="?"?S(Pt):C==":"?S(it):C=="spread"?S(Pt):N(it)}function ar(C,q){if(q=="<")return S(Me(">"),ct(it,">"),I,ar);if(q=="|"||C=="."||q=="&")return S(it);if(C=="[")return S(it,G("]"),ar);if(q=="extends"||q=="implements")return O.marked="keyword",S(it);if(q=="?")return S(it,G(":"),it)}function Hn(C,q){if(q=="<")return S(Me(">"),ct(it,">"),I,ar)}function vr(){return N(it,cn)}function cn(C,q){if(q=="=")return S(it)}function Vo(C,q){return q=="enum"?(O.marked="keyword",S(Ie)):N(_n,zn,mr,af)}function _n(C,q){if(v&&me(q))return O.marked="keyword",S(_n);if(C=="variable")return H(q),S();if(C=="spread")return S(_n);if(C=="[")return Xt(rl,"]");if(C=="{")return Xt(Mi,"}")}function Mi(C,q){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(H(q),S(mr)):(C=="variable"&&(O.marked="property"),C=="spread"?S(_n):C=="}"?N():C=="["?S(oe,G("]"),G(":"),Mi):S(G(":"),_n,mr))}function rl(){return N(_n,mr)}function mr(C,q){if(q=="=")return S($)}function af(C){if(C==",")return S(Vo)}function Go(C,q){if(C=="keyword b"&&q=="else")return S(Me("form","else"),ee,I)}function ja(C,q){if(q=="await")return S(ja);if(C=="(")return S(Me(")"),il,I)}function il(C){return C=="var"?S(Vo,Ni):C=="variable"?S(Ni):N(Ni)}function Ni(C,q){return C==")"?S():C==";"?S(Ni):q=="in"||q=="of"?(O.marked="keyword",S(oe,Ni)):N(oe,Ni)}function cr(C,q){if(q=="*")return O.marked="keyword",S(cr);if(C=="variable")return H(q),S(cr);if(C=="(")return S(nt,Me(")"),ct(yr,")"),I,zt,ee,Fe);if(v&&q=="<")return S(Me(">"),ct(vr,">"),I,cr)}function Oi(C,q){if(q=="*")return O.marked="keyword",S(Oi);if(C=="variable")return H(q),S(Oi);if(C=="(")return S(nt,Me(")"),ct(yr,")"),I,zt,Fe);if(v&&q=="<")return S(Me(">"),ct(vr,">"),I,Oi)}function Ua(C,q){if(C=="keyword"||C=="variable")return O.marked="type",S(Ua);if(q=="<")return S(Me(">"),ct(vr,">"),I)}function yr(C,q){return q=="@"&&S(oe,yr),C=="spread"?S(yr):v&&me(q)?(O.marked="keyword",S(yr)):v&&C=="this"?S(zn,mr):N(_n,zn,mr)}function cf(C,q){return C=="variable"?Ko(C,q):br(C,q)}function Ko(C,q){if(C=="variable")return H(q),S(br)}function br(C,q){if(q=="<")return S(Me(">"),ct(vr,">"),I,br);if(q=="extends"||q=="implements"||v&&C==",")return q=="implements"&&(O.marked="keyword"),S(v?it:oe,br);if(C=="{")return S(Me("}"),wr,I)}function wr(C,q){if(C=="async"||C=="variable"&&(q=="static"||q=="get"||q=="set"||v&&me(q))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(wr);if(C=="variable"||O.style=="keyword")return O.marked="property",S(go,wr);if(C=="number"||C=="string")return S(go,wr);if(C=="[")return S(oe,zn,G("]"),go,wr);if(q=="*")return O.marked="keyword",S(wr);if(v&&C=="(")return N(Oi,wr);if(C==";"||C==",")return S(wr);if(C=="}")return S();if(q=="@")return S(oe,wr)}function go(C,q){if(q=="!"||q=="?")return S(go);if(C==":")return S(it,mr);if(q=="=")return S($);var fe=O.state.lexical.prev,we=fe&&fe.info=="interface";return N(we?Oi:cr)}function Xo(C,q){return q=="*"?(O.marked="keyword",S(Jo,G(";"))):q=="default"?(O.marked="keyword",S(oe,G(";"))):C=="{"?S(ct(Yo,"}"),Jo,G(";")):N(ee)}function Yo(C,q){if(q=="as")return O.marked="keyword",S(G("variable"));if(C=="variable")return N($,Yo)}function Ri(C){return C=="string"?S():C=="("?N(oe):C=="."?N(he):N(Zo,Hr,Jo)}function Zo(C,q){return C=="{"?Xt(Zo,"}"):(C=="variable"&&H(q),q=="*"&&(O.marked="keyword"),S(ol))}function Hr(C){if(C==",")return S(Zo,Hr)}function ol(C,q){if(q=="as")return O.marked="keyword",S(Zo)}function Jo(C,q){if(q=="from")return O.marked="keyword",S(oe)}function $t(C){return C=="]"?S():N(ct($,"]"))}function Ie(){return N(Me("form"),_n,G("{"),Me("}"),ct(ni,"}"),I,I)}function ni(){return N(_n,mr)}function sl(C,q){return C.lastType=="operator"||C.lastType==","||x.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Qn(C,q,fe){return q.tokenize==B&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(fe||0)))}return{startState:function(C){var q={tokenize:B,lastType:"sof",cc:[],lexical:new K((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new xe(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(q.globalVars=s.globalVars),q},token:function(C,q){if(C.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=C.indentation(),ne(C,q)),q.tokenize!=W&&C.eatSpace())return null;var fe=q.tokenize(C,q);return M=="comment"?fe:(q.lastType=M=="operator"&&(A=="++"||A=="--")?"incdec":M,P(q,fe,M,A,C))},indent:function(C,q){if(C.tokenize==W||C.tokenize==U)return r.Pass;if(C.tokenize!=B)return 0;var fe=q&&q.charAt(0),we=C.lexical,ae;if(!/^\s*else\b/.test(q))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var pt=C.cc[Ae];if(pt==I)we=we.prev;else if(pt!=Go&&pt!=Fe)break}for(;(we.type=="stat"||we.type=="form")&&(fe=="}"||(ae=C.cc[C.cc.length-1])&&(ae==he||ae==de)&&!/^[,\.=+\-*:?[\(]/.test(q));)we=we.prev;f&&we.type==")"&&we.prev.type=="stat"&&(we=we.prev);var Yt=we.type,Sn=fe==Yt;return Yt=="vardef"?we.indented+(C.lastType=="operator"||C.lastType==","?we.info.length+1:0):Yt=="form"&&fe=="{"?we.indented:Yt=="form"?we.indented+c:Yt=="stat"?we.indented+(sl(C,q)?f||c:0):we.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?we.indented+(/^(?:case|default)\b/.test(q)?c:2*c):we.align?we.column+(Sn?0:1):we.indented+(Sn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Qn,skipExpression:function(C){P(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),l0.exports}Yw();var c0={exports:{}},u0;function Zw(){return u0||(u0=1,(function(e,t){(function(r){r(tl())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function x(S,z){function H(xe){return z.tokenize=xe,xe(S,z)}var ie=S.next();if(ie=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?H(M("atom","]]>")):null:S.match("--")?H(M("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),H(A(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),z.tokenize=M("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",z.tokenize=T,"tag bracket");if(ie=="&"){var me;return S.eat("#")?S.eat("x")?me=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):me=S.eatWhile(/[\d]/)&&S.eat(";"):me=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),me?"atom":"error"}else return S.eatWhile(/[^&<]/),null}x.isInText=!0;function T(S,z){var H=S.next();if(H==">"||H=="/"&&S.eat(">"))return z.tokenize=x,m=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return m="equals",null;if(H=="<"){z.tokenize=x,z.state=U,z.tagName=z.tagStart=null;var ie=z.tokenize(S,z);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(H)?(z.tokenize=L(H),z.stringStartCol=S.column(),z.tokenize(S,z)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(S){var z=function(H,ie){for(;!H.eol();)if(H.next()==S){ie.tokenize=T;break}return"string"};return z.isInAttribute=!0,z}function M(S,z){return function(H,ie){for(;!H.eol();){if(H.match(z)){ie.tokenize=x;break}H.next()}return S}}function A(S){return function(z,H){for(var ie;(ie=z.next())!=null;){if(ie=="<")return H.tokenize=A(S+1),H.tokenize(z,H);if(ie==">")if(S==1){H.tokenize=x;break}else return H.tokenize=A(S-1),H.tokenize(z,H)}return"meta"}}function R(S){return S&&S.toLowerCase()}function B(S,z,H){this.prev=S.context,this.tagName=z||"",this.indent=S.indented,this.startOfLine=H,(h.doNotIndent.hasOwnProperty(z)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function E(S){S.context&&(S.context=S.context.prev)}function W(S,z){for(var H;;){if(!S.context||(H=S.context.tagName,!h.contextGrabbers.hasOwnProperty(R(H))||!h.contextGrabbers[R(H)].hasOwnProperty(R(z))))return;E(S)}}function U(S,z,H){return S=="openTag"?(H.tagStart=z.column(),se):S=="closeTag"?ne:U}function se(S,z,H){return S=="word"?(H.tagName=z.current(),b="tag",V):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",V(S,z,H)):(b="error",se)}function ne(S,z,H){if(S=="word"){var ie=z.current();return H.context&&H.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(R(H.context.tagName))&&E(H),H.context&&H.context.tagName==ie||h.matchClosing===!1?(b="tag",Q):(b="tag error",K)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",Q(S,z,H)):(b="error",K)}function Q(S,z,H){return S!="endTag"?(b="error",Q):(E(H),U)}function K(S,z,H){return b="error",Q(S,z,H)}function V(S,z,H){if(S=="word")return b="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var ie=H.tagName,me=H.tagStart;return H.tagName=H.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(ie))?W(H,ie):(W(H,ie),H.context=new B(H,ie,me==H.indented)),U}return b="error",V}function P(S,z,H){return S=="equals"?O:(h.allowMissing||(b="error"),V(S,z,H))}function O(S,z,H){return S=="string"?N:S=="word"&&h.allowUnquoted?(b="string",V):(b="error",V(S,z,H))}function N(S,z,H){return S=="string"?N:V(S,z,H)}return{startState:function(S){var z={tokenize:x,state:U,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(z.baseIndent=S),z},token:function(S,z){if(!z.tagName&&S.sol()&&(z.indented=S.indentation()),S.eatSpace())return null;m=null;var H=z.tokenize(S,z);return(H||m)&&H!="comment"&&(b=null,z.state=z.state(m||H,S,z),b&&(H=b=="error"?H+" error":b)),H},indent:function(S,z,H){var ie=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(ie&&ie.noIndent)return r.Pass;if(S.tokenize!=T&&S.tokenize!=x)return H?H.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var me=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(me&&me[1])for(;ie;)if(ie.tagName==me[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(R(ie.tagName)))ie=ie.prev;else break;else if(me)for(;ie;){var xe=h.contextGrabbers[R(ie.tagName)];if(xe&&xe.hasOwnProperty(R(me[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=V)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var z=[],H=S.context;H;H=H.prev)z.push(H.tagName);return z.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),c0.exports}Zw();var f0={exports:{}},d0;function Iae(){return d0||(d0=1,(function(e,t){(function(r){r(tl(),Zw(),Yw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var T=x.tagName;x.tagName=null;var L=d.indent(x,"","");return x.tagName=T,L}function v(x,T){return T.context.mode==d?m(x,T,T.context):b(x,T,T.context)}function m(x,T,L){if(L.depth==2)return x.match(/^.*?\*\//)?L.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(L.state);var M=p(L.state),A=L.state.context;if(A&&x.match(/^[^>]*>\s*$/,!1)){for(;A.prev&&!A.startOfLine;)A=A.prev;A.startOfLine?M-=c.indentUnit:L.prev.state.lexical&&(M=L.prev.state.lexical.indented)}else L.depth==1&&(M+=c.indentUnit);return T.context=new o(r.startState(h,M),h,0,T.context),null}if(L.depth==1){if(x.peek()=="<")return d.skipAttribute(L.state),T.context=new o(r.startState(d,p(L.state)),d,0,T.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return L.depth=2,v(x,T)}var R=d.token(x,L.state),B=x.current(),E;return/\btag\b/.test(R)?/>$/.test(B)?L.state.context?L.depth=0:T.context=T.context.prev:/^</.test(B)&&(L.depth=1):!R&&(E=B.indexOf("{"))>-1&&x.backUp(B.length-E),R}function b(x,T,L){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,L.state))return T.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,T.context),h.skipExpression(L.state),null;var M=h.token(x,L.state);if(!M&&L.depth!=null){var A=x.current();A=="{"?L.depth++:A=="}"&&--L.depth==0&&(T.context=T.context.prev)}return M}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,T,L){return x.context.mode.indent(x.context.state,T,L)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),f0.exports}Iae();var h0={exports:{}},p0;function Dae(){return p0||(p0=1,(function(e,t){(function(r){r(tl())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),h0.exports}Dae();var g0={exports:{}},v0;function zae(){return v0||(v0=1,(function(e,t){(function(r){r(tl())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",x=m[b],T=p.pos;function L(){r.off(document,"mousemove",M),r.off(document,"mouseup",L)}function M(A){if(A.which!=1)return L();p.moveTo(T+(A[b]-x)*(p.total/p.size))}r.on(document,"mousemove",M),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=m.clientX<b.left?-1:m.clientX>b.right?1:0:x=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),g0.exports}zae();const Nn=rn();function Fae(e,t,r={}){const o=oL.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),St(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Ra(()=>{Nn.value=void 0}),Hh(o)}async function Jw(e){xa({file:e.file.id,line:e.location?.line??0,view:"editor",test:e.id,column:null})}function Hae(e,t){xa({file:e,column:t.column-1,line:t.line,view:"editor",test:$s.value})}function Bae(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return up(s,r,o);xa({file:e.file.id,column:o-1,line:r,view:"editor",test:$s.value})}const Ks=Ue(),Is=Ue(!0),fo=Ue(!1),wu=Ue(!0),Ts=be(()=>Xs.value?.coverage),lh=be(()=>Ts.value?.enabled),Cs=be(()=>lh.value&&!!Ts.value.htmlReporter),Ds=Ju("vitest-ui_splitpanes-mainSizes",[33,67]),so=Ju("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:Ds.value[0],details:{size:Ds.value[1],browser:so.value[0],main:so.value[1]}}),m0=be(()=>{if(Cs.value){const e=Ts.value.reportsDirectory.lastIndexOf("/"),t=Ts.value.htmlReporter?.subdir;return t?`/${Ts.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${Ts.value.reportsDirectory.slice(e+1)}/index.html`}});St(tf,e=>{wu.value=e==="running"},{immediate:!0});function Wae(){const e=uo.value;if(e&&e.length>0){const t=gr(e);t?(Ks.value=t,Is.value=!1,fo.value=!1):lE(()=>ht.state.getFiles(),()=>{Ks.value=gr(e),Is.value=!1,fo.value=!1})}return Is}function xu(e){Is.value=e,fo.value=!1,e&&(Ks.value=void 0,uo.value="")}function xa({file:e,line:t,view:r,test:o,column:s}){uo.value=e,Kw.value=t,Xw.value=s,dn.value=r,$s.value=o,Ks.value=gr(e),xu(!1)}function qae(e){e.type==="test"?dn.value==="editor"?Jw(e):xa({file:e.file.id,line:null,column:null,view:dn.value,test:e.id}):xa({file:e.file.id,test:null,line:null,view:dn.value,column:null})}function jae(){fo.value=!0,Is.value=!1,Ks.value=void 0,uo.value=""}function Uae(){At.details.browser=100,At.details.main=0,so.value=[100,0]}function Qw(){if(Zn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function Vae(){At.details.browser=Qw(),At.details.main=100-At.details.browser,so.value=[At.details.browser,At.details.main]}function Gae(){At.navigation=33,At.details.size=67,Ds.value=[33,67]}function ex(){At.details.main!==0&&(At.details.browser=Qw(),At.details.main=100-At.details.browser,so.value=[At.details.browser,At.details.main])}const Kae={setCurrentFileId(e){uo.value=e,Ks.value=gr(e),xu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Zn?.provider==="webdriverio"&&ex(),await new Promise(r=>requestAnimationFrame(r))}},Xae=location.port,Yae=[location.hostname,Xae].filter(Boolean).join(":"),Zae=`${location.protocol==="https:"?"wss:":"ws:"}//${Yae}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var rr=Uint8Array,Es=Uint16Array,Jae=Int32Array,tx=new rr([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]),nx=new rr([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]),Qae=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),rx=function(e,t){for(var r=new Es(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Jae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},ix=rx(tx,2),ox=ix.b,ece=ix.r;ox[28]=258,ece[258]=28;var tce=rx(nx,0),nce=tce.b,ah=new Es(32768);for(var Lt=0;Lt<32768;++Lt){var ji=(Lt&43690)>>1|(Lt&21845)<<1;ji=(ji&52428)>>2|(ji&13107)<<2,ji=(ji&61680)>>4|(ji&3855)<<4,ah[Lt]=((ji&65280)>>8|(ji&255)<<8)>>1}var ra=(function(e,t,r){for(var o=e.length,s=0,c=new Es(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Es(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Es(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[ah[m]>>h]=p}else for(d=new Es(o),s=0;s<o;++s)e[s]&&(d[s]=ah[f[e[s]-1]++]>>15-e[s]);return d}),Ha=new rr(288);for(var Lt=0;Lt<144;++Lt)Ha[Lt]=8;for(var Lt=144;Lt<256;++Lt)Ha[Lt]=9;for(var Lt=256;Lt<280;++Lt)Ha[Lt]=7;for(var Lt=280;Lt<288;++Lt)Ha[Lt]=8;var sx=new rr(32);for(var Lt=0;Lt<32;++Lt)sx[Lt]=5;var rce=ra(Ha,9,1),ice=ra(sx,5,1),xd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Cr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},_d=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},oce=function(e){return(e+7)/8|0},lx=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},sce=["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"],jn=function(e,t,r){var o=new Error(t||sce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,jn),!r)throw o;return o},dp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(oe){var $=r.length;if(oe>$){var F=new rr(Math.max($*2,oe));F.set(r),r=F}},v=t.f||0,m=t.p||0,b=t.b||0,x=t.l,T=t.d,L=t.m,M=t.n,A=s*8;do{if(!x){v=Cr(e,m,1);var R=Cr(e,m+1,3);if(m+=3,R)if(R==1)x=rce,T=ice,L=9,M=5;else if(R==2){var U=Cr(e,m,31)+257,se=Cr(e,m+10,15)+4,ne=U+Cr(e,m+5,31)+1;m+=14;for(var Q=new rr(ne),K=new rr(19),V=0;V<se;++V)K[Qae[V]]=Cr(e,m+V*3,7);m+=se*3;for(var P=xd(K),O=(1<<P)-1,N=ra(K,P,1),V=0;V<ne;){var S=N[Cr(e,m,O)];m+=S&15;var B=S>>4;if(B<16)Q[V++]=B;else{var z=0,H=0;for(B==16?(H=3+Cr(e,m,3),m+=2,z=Q[V-1]):B==17?(H=3+Cr(e,m,7),m+=3):B==18&&(H=11+Cr(e,m,127),m+=7);H--;)Q[V++]=z}}var ie=Q.subarray(0,U),me=Q.subarray(U);L=xd(ie),M=xd(me),x=ra(ie,L,1),T=ra(me,M,1)}else jn(1);else{var B=oce(m)+4,E=e[B-4]|e[B-3]<<8,W=B+E;if(W>s){h&&jn(0);break}d&&p(b+E),r.set(e.subarray(B,W),b),t.b=b+=E,t.p=m=W*8,t.f=v;continue}if(m>A){h&&jn(0);break}}d&&p(b+131072);for(var xe=(1<<L)-1,$e=(1<<M)-1,Ve=m;;Ve=m){var z=x[_d(e,m)&xe],nt=z>>4;if(m+=z&15,m>A){h&&jn(0);break}if(z||jn(2),nt<256)r[b++]=nt;else if(nt==256){Ve=m,x=null;break}else{var Je=nt-254;if(nt>264){var V=nt-257,Fe=tx[V];Je=Cr(e,m,(1<<Fe)-1)+ox[V],m+=Fe}var Me=T[_d(e,m)&$e],I=Me>>4;Me||jn(3),m+=Me&15;var me=nce[I];if(I>3){var Fe=nx[I];me+=_d(e,m)&(1<<Fe)-1,m+=Fe}if(m>A){h&&jn(0);break}d&&p(b+131072);var G=b+Je;if(b<me){var ee=c-me,le=Math.min(me,G);for(ee+b<0&&jn(3);b<le;++b)r[b]=o[ee+b]}for(;b<G;++b)r[b]=r[b-me]}}t.l=x,t.p=Ve,t.b=b,t.f=v,x&&(v=1,t.m=L,t.d=T,t.n=M)}while(!v);return b!=r.length&&f?lx(r,0,b):r.subarray(0,b)},lce=new rr(0),ace=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&jn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},cce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},uce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&jn(6,"invalid zlib data"),(e[1]>>5&1)==1&&jn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function fce(e,t){return dp(e,{i:2},t,t)}function dce(e,t){var r=ace(e);return r+8>e.length&&jn(6,"invalid gzip data"),dp(e.subarray(r,-8),{i:2},new rr(cce(e)),t)}function hce(e,t){return dp(e.subarray(uce(e),-4),{i:2},t,t)}function pce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?dce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?fce(e,t):hce(e,t)}var ch=typeof TextDecoder<"u"&&new TextDecoder,gce=0;try{ch.decode(lce,{stream:!0}),gce=1}catch{}var vce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:lx(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function mce(e,t){var r;if(ch)return ch.decode(e);var o=vce(e),s=o.s,r=o.r;return r.length&&jn(8),s}const Sd=()=>{},yn=()=>Promise.resolve();function yce(){const e=ir({state:new Nw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:yn,onDone:Sd,onTaskUpdate:Sd,writeFile:yn,rerun:yn,rerunTask:yn,updateSnapshot:yn,resolveSnapshotPath:yn,snapshotSaved:yn,onAfterSuiteRun:yn,onCancel:yn,getCountOfFailedTests:()=>0,sendLog:yn,resolveSnapshotRawPath:yn,readSnapshotFile:yn,saveSnapshotFile:yn,readTestFile:async d=>t.sources[d],removeSnapshotFile:yn,onUnhandledError:Sd,saveTestFile:yn,getProvidedContext:()=>({}),getTestFiles:yn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=d.headers.get("content-type")?.toLowerCase()||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await d.arrayBuffer()),m=mce(pce(v));t=nh(m)}else t=nh(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ht=(function(){return pr?yce():TA(Zae,{reactive:(t,r)=>r==="state"?ir(t):rn(t),handlers:{onTestAnnotate(t,r){Ce.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Ce.recordTestArtifact(t,r)},onTaskUpdate(t,r){Ce.resumeRun(t,r),tf.value="running"},onSpecsCollected(t,r){Ce.startTime=r||performance.now()},onFinished(t,r,o,s){Ce.endRun(s),Zi.value=(r||[]).map(Vw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),Xs=rn({}),$o=Ue("CONNECTING"),Ut=be(()=>{const e=uo.value;return e?gr(e):void 0}),ax=be(()=>sp(Ut.value).map(e=>e?.logs||[]).flat()||[]);function gr(e){const t=ht.state.idMap.get(e);return t||void 0}const bce=be(()=>$o.value==="OPEN"),kd=be(()=>$o.value==="CONNECTING");be(()=>$o.value==="CLOSED");function wce(){return hp(ht.state.getFiles())}function cx(e){delete e.result;const t=Ce.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Da(e)))for(const r of e.tasks)cx(r)}function xce(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,sp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,$n(o)&&(o.collectDuration=void 0))})}function hp(e){return xce(e),Ce.startRun(),ht.rpc.rerun(e.map(t=>t.filepath),!0)}function _ce(e){return cx(e),Ce.startRun(),ht.rpc.rerunTask(e.id)}const Zn=window.__vitest_browser_runner__;window.__vitest_ui_api__=Kae;St(()=>ht.ws,e=>{$o.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{$o.value="OPEN",ht.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ht.rpc.getFiles(),ht.rpc.getConfig(),ht.rpc.getUnhandledErrors(),ht.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ht.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Sw(h,d,f);return p.mode="skip",p})),Ce.loadFiles(t,s),ht.state.collectFiles(t),Ce.startRun(),Zi.value=(o||[]).map(Vw),Xs.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{$o.value==="CONNECTING"&&($o.value="CLOSED")},1e3)})},{immediate:!0});const Sce=["aria-label","opacity","disabled","hover"],Et=et({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(re(),ge("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:lt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Bt(t.$slots,"default",{},()=>[J("span",{class:lt(e.icon),ma:"",block:""},null,2)])],10,Sce))}}),kce={h:"full",flex:"~ col"},Tce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Cce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Ece={class:"pointer-events-none","text-sm":""},Ace={key:0},Lce={id:"tester-container",relative:""},Mce=["data-scale"],y0=20,Nce=100,Oce=et({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return tr.value[0]===v[0]&&tr.value[1]===v[1]}const{width:o,height:s}=vw();async function c(p){tr.value=t[p],Zn?.provider==="webdriverio"&&ex()}const f=be(()=>{if(Zn?.provider==="webdriverio"){const[x,T]=tr.value;return{width:x,height:T}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-y0,b=s.value-Nce;return{width:m,height:b}}),d=be(()=>{if(Zn?.provider==="webdriverio")return 1;const[p,v]=tr.value,{width:m,height:b}=f.value,x=m>p?1:m/p,T=b>v?1:b/v;return Math.min(1,x,T)}),h=be(()=>{const p=f.value.width,v=tr.value[0];return`${Math.trunc((p+y0-v)/2)}px`});return(p,v)=>{const m=Dr("tooltip");return re(),ge("div",kce,[J("div",Tce,[st(Ne(Et,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=b=>X(Gae)())},null,512),[[eo,X(At).navigation<=15],[m,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=J("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=J("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Ne(Et,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=b=>X(Uae)())},null,512),[[eo,X(At).details.main>0],[m,"Hide Right Panel",void 0,{bottom:!0}]]),st(Ne(Et,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=b=>X(Vae)())},null,512),[[eo,X(At).details.main===0],[m,"Show Right Panel",void 0,{bottom:!0}]])]),J("div",Cce,[st(Ne(Et,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=b=>c("small-mobile"))},null,8,["active"]),[[m,"Small mobile",void 0,{bottom:!0}]]),st(Ne(Et,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=b=>c("large-mobile"))},null,8,["active"]),[[m,"Large mobile",void 0,{bottom:!0}]]),st(Ne(Et,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=b=>c("tablet"))},null,8,["active"]),[[m,"Tablet",void 0,{bottom:!0}]]),J("span",Ece,[ut(Pe(X(tr)[0])+"x"+Pe(X(tr)[1])+"px ",1),d.value<1?(re(),ge("span",Ace,"("+Pe((d.value*100).toFixed(0))+"%)",1)):ze("",!0)])]),J("div",Lce,[J("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:Vt({"--viewport-width":`${X(tr)[0]}px`,"--viewport-height":`${X(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,Mce)])])}}}),Rce=Li(Oce,[["__scopeId","data-v-2e86b8c3"]]),Pce={"text-2xl":""},$ce={"text-lg":"",op50:""},Ice=et({__name:"ConnectionOverlay",setup(e){return(t,r)=>X(bce)?ze("",!0):(re(),ge("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>X(ht).reconnect&&X(ht).reconnect(...o))},[J("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:lt(X(kd)?"animate-pulse":"")},[J("div",{text:"5xl",class:lt(X(kd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),J("div",Pce,Pe(X(kd)?"Connecting...":"Disconnected"),1),J("div",$ce," Check your terminal or start a new server with `"+Pe(X(Zn)?`vitest --browser=${X(Zn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Dce={h:"full",flex:"~ col"},zce={"flex-auto":"","py-1":"","bg-white":""},Fce=["src"],b0=et({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(re(),ge("div",Dce,[r[0]||(r[0]=J("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[J("div",{class:"i-carbon:folder-details-reference"}),J("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),J("div",zce,[J("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,Fce)])]))}}),Hce={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Bce={"font-bold":""},Wce={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},qce=["font-bold"],jce={text:"red500/70"},Uce={key:1,text:"sm","mb-2":""},Vce={"font-bold":""},Gce={key:2,text:"sm","mb-2":""},Kce={"font-bold":""},Xce=et({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(re(),ge(tt,null,[J("h4",Hce,[J("span",Bce,[ut(Pe(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(re(),ge(tt,{key:0},[ut(":")],64)):ze("",!0)]),ut(" "+Pe(e.error.message),1)]),e.error.stacks?.length?(re(),ge("p",Wce,[(re(!0),ge(tt,null,Kn(e.error.stacks,(o,s)=>(re(),ge("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[ut("❯ "+Pe(o.method)+" "+Pe(o.file)+":",1),J("span",jce,Pe(o.line)+":"+Pe(o.column),1),r[0]||(r[0]=J("br",null,null,-1))],8,qce))),128))])):ze("",!0),e.error.VITEST_TEST_PATH?(re(),ge("p",Uce,[r[1]||(r[1]=ut(" This error originated in ",-1)),J("span",Vce,Pe(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=ut(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):ze("",!0),e.error.VITEST_TEST_NAME?(re(),ge("div",Gce,[r[3]||(r[3]=ut(" The latest test that might've caused the error is ",-1)),J("span",Kce,Pe(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=ut(". It might mean one of the following:",-1)),r[5]||(r[5]=J("br",null,null,-1)),r[6]||(r[6]=J("ul",null,[J("li",null," The error was thrown, while Vitest was running this test. "),J("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):ze("",!0)],64))}}),Yce={"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:""},Zce={class:"number","data-testid":"num-files"},Jce={class:"number"},Qce={class:"number","text-red5":""},eue={class:"number","text-red5":""},tue={class:"number","text-red5":""},nue={class:"number","data-testid":"run-time"},rue={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},iue={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},oue={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},sue=et({__name:"TestFilesEntry",setup(e){return(t,r)=>(re(),ge(tt,null,[J("div",Yce,[r[8]||(r[8]=J("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=J("div",null,"Files",-1)),J("div",Zce,Pe(X(Ce).summary.files),1),X(Ce).summary.filesSuccess?(re(),ge(tt,{key:0},[r[0]||(r[0]=J("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=J("div",null,"Pass",-1)),J("div",Jce,Pe(X(Ce).summary.filesSuccess),1)],64)):ze("",!0),X(Ce).summary.filesFailed?(re(),ge(tt,{key:1},[r[2]||(r[2]=J("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=J("div",null," Fail ",-1)),J("div",Qce,Pe(X(Ce).summary.filesFailed),1)],64)):ze("",!0),X(Ce).summary.filesSnapshotFailed?(re(),ge(tt,{key:2},[r[4]||(r[4]=J("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=J("div",null," Snapshot Fail ",-1)),J("div",eue,Pe(X(Ce).summary.filesSnapshotFailed),1)],64)):ze("",!0),X(Zi).length?(re(),ge(tt,{key:3},[r[6]||(r[6]=J("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=J("div",null," Errors ",-1)),J("div",tue,Pe(X(Zi).length),1)],64)):ze("",!0),r[10]||(r[10]=J("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=J("div",null,"Time",-1)),J("div",nue,Pe(X(Ce).summary.time),1)]),X(Zi).length?(re(),ge("div",rue,[r[15]||(r[15]=J("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),J("p",iue,[ut(" Vitest caught "+Pe(X(Zi).length)+" error"+Pe(X(Zi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=J("br",null,null,-1)),r[13]||(r[13]=ut(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),J("details",oue,[r[14]||(r[14]=J("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(re(!0),ge(tt,null,Kn(X(Zi),(o,s)=>(re(),Ge(Xce,{key:s,error:o},null,8,["error"]))),128))])])):ze("",!0)],64))}}),lue=Li(sue,[["__scopeId","data-v-1bd0f2ea"]]),aue={"p-2":"","text-center":"",flex:""},cue={"text-4xl":"","min-w-2em":""},uue={"text-md":""},zl=et({__name:"DashboardEntry",setup(e){return(t,r)=>(re(),ge("div",aue,[J("div",null,[J("div",cue,[Bt(t.$slots,"body")]),J("div",uue,[Bt(t.$slots,"header")])])]))}}),fue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},due=et({__name:"TestsEntry",setup(e){function t(r){Qe.success=!1,Qe.failed=!1,Qe.skipped=!1,r!=="total"&&(Qe[r]=!0)}return(r,o)=>(re(),ge("div",fue,[Ne(zl,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:Xe(()=>[...o[4]||(o[4]=[ut(" Pass ",-1)])]),body:Xe(()=>[ut(Pe(X(Ce).summary.testsSuccess),1)]),_:1}),Ne(zl,{class:lt({"text-red5":X(Ce).summary.testsFailed,op50:!X(Ce).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:Xe(()=>[...o[5]||(o[5]=[ut(" Fail ",-1)])]),body:Xe(()=>[ut(Pe(X(Ce).summary.testsFailed),1)]),_:1},8,["class"]),X(Ce).summary.testsSkipped?(re(),Ge(zl,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:Xe(()=>[...o[6]||(o[6]=[ut(" Skip ",-1)])]),body:Xe(()=>[ut(Pe(X(Ce).summary.testsSkipped),1)]),_:1})):ze("",!0),X(Ce).summary.testsTodo?(re(),Ge(zl,{key:1,op50:"","data-testid":"todo-entry"},{header:Xe(()=>[...o[7]||(o[7]=[ut(" Todo ",-1)])]),body:Xe(()=>[ut(Pe(X(Ce).summary.testsTodo),1)]),_:1})):ze("",!0),Ne(zl,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:Xe(()=>[...o[8]||(o[8]=[ut(" Total ",-1)])]),body:Xe(()=>[ut(Pe(X(Ce).summary.totalTests),1)]),_:1})]))}}),hue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},pue={key:0,class:"text-gray-5"},gue={"aria-labelledby":"tests",m:"y-4 x-2"},vue=et({__name:"TestsFilesContainer",setup(e){return(t,r)=>(re(),ge("div",hue,[X(Ce).summary.files===0&&X(ks)?(re(),ge("div",pue," No tests found ")):ze("",!0),J("section",gue,[Ne(due)]),Ne(lue)]))}}),mue={h:"full",flex:"~ col"},yue={class:"scrolls","flex-auto":"","py-1":""},w0=et({__name:"Dashboard",setup(e){return(t,r)=>(re(),ge("div",mue,[r[0]||(r[0]=J("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[J("div",{class:"i-carbon-dashboard"}),J("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),J("div",yue,[Ne(vue)])]))}});function bue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var uh="http://www.w3.org/1999/xhtml";const x0={svg:"http://www.w3.org/2000/svg",xhtml:uh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nf(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),x0.hasOwnProperty(t)?{space:x0[t],local:e}:e}function wue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===uh&&t.documentElement.namespaceURI===uh?t.createElement(e):t.createElementNS(r,e)}}function xue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ux(e){var t=nf(e);return(t.local?xue:wue)(t)}function _ue(){}function pp(e){return e==null?_ue:function(){return this.querySelector(e)}}function Sue(e){typeof e!="function"&&(e=pp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new lr(o,this._parents)}function kue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Tue(){return[]}function fx(e){return e==null?Tue:function(){return this.querySelectorAll(e)}}function Cue(e){return function(){return kue(e.apply(this,arguments))}}function Eue(e){typeof e=="function"?e=Cue(e):e=fx(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new lr(o,s)}function dx(e){return function(){return this.matches(e)}}function hx(e){return function(t){return t.matches(e)}}var Aue=Array.prototype.find;function Lue(e){return function(){return Aue.call(this.children,e)}}function Mue(){return this.firstElementChild}function Nue(e){return this.select(e==null?Mue:Lue(typeof e=="function"?e:hx(e)))}var Oue=Array.prototype.filter;function Rue(){return Array.from(this.children)}function Pue(e){return function(){return Oue.call(this.children,e)}}function $ue(e){return this.selectAll(e==null?Rue:Pue(typeof e=="function"?e:hx(e)))}function Iue(e){typeof e!="function"&&(e=dx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new lr(o,this._parents)}function px(e){return new Array(e.length)}function Due(){return new lr(this._enter||this._groups.map(px),this._parents)}function _u(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}_u.prototype={constructor:_u,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 zue(e){return function(){return e}}function Fue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new _u(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Hue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<m;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new _u(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Bue(e){return e.__data__}function Wue(e,t){if(!arguments.length)return Array.from(this,Bue);var r=t?Hue:Fue,o=this._parents,s=this._groups;typeof e!="function"&&(e=zue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,x=que(e.call(v,v&&v.__data__,p,o)),T=x.length,L=d[p]=new Array(T),M=f[p]=new Array(T),A=h[p]=new Array(b);r(v,m,L,M,A,x,t);for(var R=0,B=0,E,W;R<T;++R)if(E=L[R]){for(R>=B&&(B=R+1);!(W=M[B])&&++B<T;);E._next=W||null}}return f=new lr(f,o),f._enter=d,f._exit=h,f}function que(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jue(){return new lr(this._exit||this._groups.map(px),this._parents)}function Uue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Vue(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),x,T=0;T<m;++T)(x=p[T]||v[T])&&(b[T]=x);for(;h<s;++h)d[h]=r[h];return new lr(d,this._parents)}function Gue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Kue(e){e||(e=Xue);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new lr(s,this._parents).order()}function Xue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Yue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Zue(){return Array.from(this)}function Jue(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Que(){let e=0;for(const t of this)++e;return e}function efe(){return!this.node()}function tfe(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function nfe(e){return function(){this.removeAttribute(e)}}function rfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ife(e,t){return function(){this.setAttribute(e,t)}}function ofe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function sfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function lfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function afe(e,t){var r=nf(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?rfe:nfe:typeof t=="function"?r.local?lfe:sfe:r.local?ofe:ife)(r,t))}function gx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function cfe(e){return function(){this.style.removeProperty(e)}}function ufe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function ffe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function dfe(e,t,r){return arguments.length>1?this.each((t==null?cfe:typeof t=="function"?ffe:ufe)(e,t,r??"")):Ys(this.node(),e)}function Ys(e,t){return e.style.getPropertyValue(t)||gx(e).getComputedStyle(e,null).getPropertyValue(t)}function hfe(e){return function(){delete this[e]}}function pfe(e,t){return function(){this[e]=t}}function gfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function vfe(e,t){return arguments.length>1?this.each((t==null?hfe:typeof t=="function"?gfe:pfe)(e,t)):this.node()[e]}function vx(e){return e.trim().split(/^|\s+/)}function gp(e){return e.classList||new mx(e)}function mx(e){this._node=e,this._names=vx(e.getAttribute("class")||"")}mx.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 yx(e,t){for(var r=gp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function bx(e,t){for(var r=gp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function mfe(e){return function(){yx(this,e)}}function yfe(e){return function(){bx(this,e)}}function bfe(e,t){return function(){(t.apply(this,arguments)?yx:bx)(this,e)}}function wfe(e,t){var r=vx(e+"");if(arguments.length<2){for(var o=gp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?bfe:t?mfe:yfe)(r,t))}function xfe(){this.textContent=""}function _fe(e){return function(){this.textContent=e}}function Sfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function kfe(e){return arguments.length?this.each(e==null?xfe:(typeof e=="function"?Sfe:_fe)(e)):this.node().textContent}function Tfe(){this.innerHTML=""}function Cfe(e){return function(){this.innerHTML=e}}function Efe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Afe(e){return arguments.length?this.each(e==null?Tfe:(typeof e=="function"?Efe:Cfe)(e)):this.node().innerHTML}function Lfe(){this.nextSibling&&this.parentNode.appendChild(this)}function Mfe(){return this.each(Lfe)}function Nfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ofe(){return this.each(Nfe)}function Rfe(e){var t=typeof e=="function"?e:ux(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Pfe(){return null}function $fe(e,t){var r=typeof e=="function"?e:ux(e),o=t==null?Pfe:typeof t=="function"?t:pp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Ife(){var e=this.parentNode;e&&e.removeChild(this)}function Dfe(){return this.each(Ife)}function zfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ffe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hfe(e){return this.select(e?Ffe:zfe)}function Bfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Wfe(e){return function(t){e.call(this,t,this.__data__)}}function qfe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function jfe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Ufe(e,t,r){return function(){var o=this.__on,s,c=Wfe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Vfe(e,t,r){var o=qfe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Ufe:jfe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function wx(e,t,r){var o=gx(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Gfe(e,t){return function(){return wx(this,e,t)}}function Kfe(e,t){return function(){return wx(this,e,t.apply(this,arguments))}}function Xfe(e,t){return this.each((typeof t=="function"?Kfe:Gfe)(e,t))}function*Yfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var xx=[null];function lr(e,t){this._groups=e,this._parents=t}function Ba(){return new lr([[document.documentElement]],xx)}function Zfe(){return this}lr.prototype=Ba.prototype={constructor:lr,select:Sue,selectAll:Eue,selectChild:Nue,selectChildren:$ue,filter:Iue,data:Wue,enter:Due,exit:jue,join:Uue,merge:Vue,selection:Zfe,order:Gue,sort:Kue,call:Yue,nodes:Zue,node:Jue,size:Que,empty:efe,each:tfe,attr:afe,style:dfe,property:vfe,classed:wfe,text:kfe,html:Afe,raise:Mfe,lower:Ofe,append:Rfe,insert:$fe,remove:Dfe,clone:Hfe,datum:Bfe,on:Vfe,dispatch:Xfe,[Symbol.iterator]:Yfe};function Gn(e){return typeof e=="string"?new lr([[document.querySelector(e)]],[document.documentElement]):new lr([[e]],xx)}function Jfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function gi(e,t){if(e=Jfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Zs=class hi{x;y;static of([t,r]){return new hi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new hi(this.x+t.x,this.y+t.y)}subtract(t){return new hi(this.x-t.x,this.y-t.y)}multiply(t){return new hi(this.x*t,this.y*t)}divide(t){return new hi(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 hi(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 hi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new hi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Qfe={value:()=>{}};function Wa(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Gc(r)}function Gc(e){this._=e}function ede(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Gc.prototype=Wa.prototype={constructor:Gc,on:function(e,t){var r=this._,o=ede(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=tde(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=_0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=_0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Gc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function tde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function _0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Qfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const nde={passive:!1},_a={capture:!0,passive:!1};function Td(e){e.stopImmediatePropagation()}function zs(e){e.preventDefault(),e.stopImmediatePropagation()}function _x(e){var t=e.document.documentElement,r=Gn(e).on("dragstart.drag",zs,_a);"onselectstart"in t?r.on("selectstart.drag",zs,_a):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Sx(e,t){var r=e.document.documentElement,o=Gn(e).on("dragstart.drag",null);t&&(o.on("click.drag",zs,_a),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Rc=e=>()=>e;function fh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}fh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function rde(e){return!e.ctrlKey&&!e.button}function ide(){return this.parentNode}function ode(e,t){return t??{x:e.x,y:e.y}}function sde(){return navigator.maxTouchPoints||"ontouchstart"in this}function lde(){var e=rde,t=ide,r=ode,o=sde,s={},c=Wa("start","drag","end"),f=0,d,h,p,v,m=0;function b(E){E.on("mousedown.drag",x).filter(o).on("touchstart.drag",M).on("touchmove.drag",A,nde).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(E,W){if(!(v||!e.call(this,E,W))){var U=B(this,t.call(this,E,W),E,W,"mouse");U&&(Gn(E.view).on("mousemove.drag",T,_a).on("mouseup.drag",L,_a),_x(E.view),Td(E),p=!1,d=E.clientX,h=E.clientY,U("start",E))}}function T(E){if(zs(E),!p){var W=E.clientX-d,U=E.clientY-h;p=W*W+U*U>m}s.mouse("drag",E)}function L(E){Gn(E.view).on("mousemove.drag mouseup.drag",null),Sx(E.view,p),zs(E),s.mouse("end",E)}function M(E,W){if(e.call(this,E,W)){var U=E.changedTouches,se=t.call(this,E,W),ne=U.length,Q,K;for(Q=0;Q<ne;++Q)(K=B(this,se,E,W,U[Q].identifier,U[Q]))&&(Td(E),K("start",E,U[Q]))}}function A(E){var W=E.changedTouches,U=W.length,se,ne;for(se=0;se<U;++se)(ne=s[W[se].identifier])&&(zs(E),ne("drag",E,W[se]))}function R(E){var W=E.changedTouches,U=W.length,se,ne;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),se=0;se<U;++se)(ne=s[W[se].identifier])&&(Td(E),ne("end",E,W[se]))}function B(E,W,U,se,ne,Q){var K=c.copy(),V=gi(Q||U,W),P,O,N;if((N=r.call(E,new fh("beforestart",{sourceEvent:U,target:b,identifier:ne,active:f,x:V[0],y:V[1],dx:0,dy:0,dispatch:K}),se))!=null)return P=N.x-V[0]||0,O=N.y-V[1]||0,function S(z,H,ie){var me=V,xe;switch(z){case"start":s[ne]=S,xe=f++;break;case"end":delete s[ne],--f;case"drag":V=gi(ie||H,W),xe=f;break}K.call(z,E,new fh(z,{sourceEvent:H,subject:N,target:b,identifier:ne,active:xe,x:V[0]+P,y:V[1]+O,dx:V[0]-me[0],dy:V[1]-me[1],dispatch:K}),se)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:Rc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:Rc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Rc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Rc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(m=(E=+E)*E,b):Math.sqrt(m)},b}function vp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function kx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function qa(){}var Sa=.7,Su=1/Sa,Fs="\\s*([+-]?\\d+)\\s*",ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ade=/^#([0-9a-f]{3,8})$/,cde=new RegExp(`^rgb\\(${Fs},${Fs},${Fs}\\)$`),ude=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),fde=new RegExp(`^rgba\\(${Fs},${Fs},${Fs},${ka}\\)$`),dde=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${ka}\\)$`),hde=new RegExp(`^hsl\\(${ka},${Zr},${Zr}\\)$`),pde=new RegExp(`^hsla\\(${ka},${Zr},${Zr},${ka}\\)$`),S0={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};vp(qa,Ta,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:k0,formatHex:k0,formatHex8:gde,formatHsl:vde,formatRgb:T0,toString:T0});function k0(){return this.rgb().formatHex()}function gde(){return this.rgb().formatHex8()}function vde(){return Tx(this).formatHsl()}function T0(){return this.rgb().formatRgb()}function Ta(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ade.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?C0(t):r===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Pc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Pc(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=cde.exec(e))?new Yn(t[1],t[2],t[3],1):(t=ude.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fde.exec(e))?Pc(t[1],t[2],t[3],t[4]):(t=dde.exec(e))?Pc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hde.exec(e))?L0(t[1],t[2]/100,t[3]/100,1):(t=pde.exec(e))?L0(t[1],t[2]/100,t[3]/100,t[4]):S0.hasOwnProperty(e)?C0(S0[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function C0(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function Pc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Yn(e,t,r,o)}function mde(e){return e instanceof qa||(e=Ta(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function dh(e,t,r,o){return arguments.length===1?mde(e):new Yn(e,t,r,o??1)}function Yn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}vp(Yn,dh,kx(qa,{brighter(e){return e=e==null?Su:Math.pow(Su,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Sa:Math.pow(Sa,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Bo(this.r),Bo(this.g),Bo(this.b),ku(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:E0,formatHex:E0,formatHex8:yde,formatRgb:A0,toString:A0}));function E0(){return`#${Io(this.r)}${Io(this.g)}${Io(this.b)}`}function yde(){return`#${Io(this.r)}${Io(this.g)}${Io(this.b)}${Io((isNaN(this.opacity)?1:this.opacity)*255)}`}function A0(){const e=ku(this.opacity);return`${e===1?"rgb(":"rgba("}${Bo(this.r)}, ${Bo(this.g)}, ${Bo(this.b)}${e===1?")":`, ${e})`}`}function ku(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Io(e){return e=Bo(e),(e<16?"0":"")+e.toString(16)}function L0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ar(e,t,r,o)}function Tx(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);if(e instanceof qa||(e=Ta(e)),!e)return new Ar;if(e instanceof Ar)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Ar(f,d,h,e.opacity)}function bde(e,t,r,o){return arguments.length===1?Tx(e):new Ar(e,t,r,o??1)}function Ar(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}vp(Ar,bde,kx(qa,{brighter(e){return e=e==null?Su:Math.pow(Su,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Sa:Math.pow(Sa,e),new Ar(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Yn(Cd(e>=240?e-240:e+120,s,o),Cd(e,s,o),Cd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Ar(M0(this.h),$c(this.s),$c(this.l),ku(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=ku(this.opacity);return`${e===1?"hsl(":"hsla("}${M0(this.h)}, ${$c(this.s)*100}%, ${$c(this.l)*100}%${e===1?")":`, ${e})`}`}}));function M0(e){return e=(e||0)%360,e<0?e+360:e}function $c(e){return Math.max(0,Math.min(1,e||0))}function Cd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Cx=e=>()=>e;function wde(e,t){return function(r){return e+r*t}}function xde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function _de(e){return(e=+e)==1?Ex:function(t,r){return r-t?xde(t,r,e):Cx(isNaN(t)?r:t)}}function Ex(e,t){var r=t-e;return r?wde(e,r):Cx(isNaN(e)?t:e)}const N0=(function e(t){var r=_de(t);function o(s,c){var f=r((s=dh(s)).r,(c=dh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=Ex(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o})(1);function Ji(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var hh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ed=new RegExp(hh.source,"g");function Sde(e){return function(){return e}}function kde(e){return function(t){return e(t)+""}}function Tde(e,t){var r=hh.lastIndex=Ed.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=hh.exec(e))&&(s=Ed.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Ji(o,s)})),r=Ed.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?kde(h[0].x):Sde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var O0=180/Math.PI,ph={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ax(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*O0,skewX:Math.atan(h)*O0,scaleX:f,scaleY:d}}var Ic;function Cde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ph:Ax(t.a,t.b,t.c,t.d,t.e,t.f)}function Ede(e){return e==null||(Ic||(Ic=document.createElementNS("http://www.w3.org/2000/svg","g")),Ic.setAttribute("transform",e),!(e=Ic.transform.baseVal.consolidate()))?ph:(e=e.matrix,Ax(e.a,e.b,e.c,e.d,e.e,e.f))}function Lx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,T){if(p!==m||v!==b){var L=x.push("translate(",null,t,null,r);T.push({i:L-4,x:Ji(p,m)},{i:L-2,x:Ji(v,b)})}else(m||b)&&x.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Ji(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Ji(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,x,T){if(p!==m||v!==b){var L=x.push(s(x)+"scale(",null,",",null,")");T.push({i:L-4,x:Ji(p,m)},{i:L-2,x:Ji(v,b)})}else(m!==1||b!==1)&&x.push(s(x)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(x){for(var T=-1,L=b.length,M;++T<L;)m[(M=b[T]).i]=M.x(x);return m.join("")}}}var Ade=Lx(Cde,"px, ","px)","deg)"),Lde=Lx(Ede,", ",")",")"),Mde=1e-12;function R0(e){return((e=Math.exp(e))+1/e)/2}function Nde(e){return((e=Math.exp(e))-1/e)/2}function Ode(e){return((e=Math.exp(2*e))-1)/(e+1)}const Rde=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],x=v-d,T=m-h,L=x*x+T*T,M,A;if(L<Mde)A=Math.log(b/p)/t,M=function(se){return[d+se*x,h+se*T,p*Math.exp(t*se*A)]};else{var R=Math.sqrt(L),B=(b*b-p*p+o*L)/(2*p*r*R),E=(b*b-p*p-o*L)/(2*b*r*R),W=Math.log(Math.sqrt(B*B+1)-B),U=Math.log(Math.sqrt(E*E+1)-E);A=(U-W)/t,M=function(se){var ne=se*A,Q=R0(W),K=p/(r*R)*(Q*Ode(t*ne+W)-Nde(W));return[d+K*x,h+K*T,p*Q/R0(t*ne+W)]}}return M.duration=A*1e3*t/Math.SQRT2,M}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s})(Math.SQRT2,2,4);var Js=0,ql=0,Fl=0,Mx=1e3,Tu,jl,Cu=0,qo=0,rf=0,Ca=typeof performance=="object"&&performance.now?performance:Date,Nx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function mp(){return qo||(Nx(Pde),qo=Ca.now()+rf)}function Pde(){qo=0}function Eu(){this._call=this._time=this._next=null}Eu.prototype=yp.prototype={constructor:Eu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?mp():+r)+(t==null?0:+t),!this._next&&jl!==this&&(jl?jl._next=this:Tu=this,jl=this),this._call=e,this._time=r,gh()},stop:function(){this._call&&(this._call=null,this._time=1/0,gh())}};function yp(e,t,r){var o=new Eu;return o.restart(e,t,r),o}function $de(){mp(),++Js;for(var e=Tu,t;e;)(t=qo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Js}function P0(){qo=(Cu=Ca.now())+rf,Js=ql=0;try{$de()}finally{Js=0,Dde(),qo=0}}function Ide(){var e=Ca.now(),t=e-Cu;t>Mx&&(rf-=t,Cu=e)}function Dde(){for(var e,t=Tu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Tu=r);jl=e,gh(o)}function gh(e){if(!Js){ql&&(ql=clearTimeout(ql));var t=e-qo;t>24?(e<1/0&&(ql=setTimeout(P0,e-Ca.now()-rf)),Fl&&(Fl=clearInterval(Fl))):(Fl||(Cu=Ca.now(),Fl=setInterval(Ide,Mx)),Js=1,Nx(P0))}}function $0(e,t,r){var o=new Eu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var zde=Wa("start","end","cancel","interrupt"),Fde=[],Ox=0,I0=1,vh=2,Kc=3,D0=4,mh=5,Xc=6;function of(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Hde(e,r,{name:t,index:o,group:s,on:zde,tween:Fde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Ox})}function bp(e,t){var r=zr(e,t);if(r.state>Ox)throw new Error("too late; already scheduled");return r}function ei(e,t){var r=zr(e,t);if(r.state>Kc)throw new Error("too late; already running");return r}function zr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Hde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=yp(c,0,r.time);function c(p){r.state=I0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,x;if(r.state!==I0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===Kc)return $0(f);x.state===D0?(x.state=Xc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Xc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if($0(function(){r.state===Kc&&(r.state=D0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=vh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===vh){for(r.state=Kc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=x);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=mh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===mh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Xc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Yc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>vh&&o.state<mh,o.state=Xc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Bde(e){return this.each(function(){Yc(this,e)})}function Wde(e,t){var r,o;return function(){var s=ei(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function qde(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=ei(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function jde(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=zr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Wde:qde)(r,e,t))}function wp(e,t,r){var o=e._id;return e.each(function(){var s=ei(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return zr(s,o).value[t]}}function Rx(e,t){var r;return(typeof t=="number"?Ji:t instanceof Ta?N0:(r=Ta(t))?(t=r,N0):Tde)(e,t)}function Ude(e){return function(){this.removeAttribute(e)}}function Vde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Gde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function Kde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Xde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Yde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Zde(e,t){var r=nf(e),o=r==="transform"?Lde:Rx;return this.attrTween(e,typeof t=="function"?(r.local?Yde:Xde)(r,o,wp(this,"attr."+e,t)):t==null?(r.local?Vde:Ude)(r):(r.local?Kde:Gde)(r,o,t))}function Jde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Qde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function ehe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Qde(e,c)),r}return s._value=t,s}function the(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Jde(e,c)),r}return s._value=t,s}function nhe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=nf(e);return this.tween(r,(o.local?ehe:the)(o,t))}function rhe(e,t){return function(){bp(this,e).delay=+t.apply(this,arguments)}}function ihe(e,t){return t=+t,function(){bp(this,e).delay=t}}function ohe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?rhe:ihe)(t,e)):zr(this.node(),t).delay}function she(e,t){return function(){ei(this,e).duration=+t.apply(this,arguments)}}function lhe(e,t){return t=+t,function(){ei(this,e).duration=t}}function ahe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?she:lhe)(t,e)):zr(this.node(),t).duration}function che(e,t){if(typeof t!="function")throw new Error;return function(){ei(this,e).ease=t}}function uhe(e){var t=this._id;return arguments.length?this.each(che(t,e)):zr(this.node(),t).ease}function fhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ei(this,e).ease=r}}function dhe(e){if(typeof e!="function")throw new Error;return this.each(fhe(this._id,e))}function hhe(e){typeof e!="function"&&(e=dx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new Ti(o,this._parents,this._name,this._id)}function phe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(m[x]=b);for(;d<o;++d)f[d]=t[d];return new Ti(f,this._parents,this._name,this._id)}function ghe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function vhe(e,t,r){var o,s,c=ghe(t)?bp:ei;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function mhe(e,t){var r=this._id;return arguments.length<2?zr(this.node(),r).on.on(e):this.each(vhe(r,e,t))}function yhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function bhe(){return this.on("end.remove",yhe(this._id))}function whe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=pp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,of(p[b],t,r,b,p,zr(v,r)));return new Ti(c,this._parents,t,r)}function xhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=fx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),x,T=zr(v,r),L=0,M=b.length;L<M;++L)(x=b[L])&&of(x,t,r,L,b,T);c.push(b),f.push(v)}return new Ti(c,f,t,r)}var _he=Ba.prototype.constructor;function She(){return new _he(this._groups,this._parents)}function khe(e,t){var r,o,s;return function(){var c=Ys(this,e),f=(this.style.removeProperty(e),Ys(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Px(e){return function(){this.style.removeProperty(e)}}function The(e,t,r){var o,s=r+"",c;return function(){var f=Ys(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Che(e,t,r){var o,s,c;return function(){var f=Ys(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ys(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Ehe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=ei(this,e),p=h.on,v=h.value[c]==null?d||(d=Px(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Ahe(e,t,r){var o=(e+="")=="transform"?Ade:Rx;return t==null?this.styleTween(e,khe(e,o)).on("end.style."+e,Px(e)):typeof t=="function"?this.styleTween(e,Che(e,o,wp(this,"style."+e,t))).each(Ehe(this._id,e)):this.styleTween(e,The(e,o,t),r).on("end.style."+e,null)}function Lhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Mhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Lhe(e,f,r)),o}return c._value=t,c}function Nhe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Mhe(e,t,r??""))}function Ohe(e){return function(){this.textContent=e}}function Rhe(e){return function(){var t=e(this);this.textContent=t??""}}function Phe(e){return this.tween("text",typeof e=="function"?Rhe(wp(this,"text",e)):Ohe(e==null?"":e+""))}function $he(e){return function(t){this.textContent=e.call(this,t)}}function Ihe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&$he(s)),t}return o._value=e,o}function Dhe(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,Ihe(e))}function zhe(){for(var e=this._name,t=this._id,r=$x(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=zr(h,t);of(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Ti(o,this._parents,e,r)}function Fhe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=ei(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Hhe=0;function Ti(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function $x(){return++Hhe}var fi=Ba.prototype;Ti.prototype={constructor:Ti,select:whe,selectAll:xhe,selectChild:fi.selectChild,selectChildren:fi.selectChildren,filter:hhe,merge:phe,selection:She,transition:zhe,call:fi.call,nodes:fi.nodes,node:fi.node,size:fi.size,empty:fi.empty,each:fi.each,on:mhe,attr:Zde,attrTween:nhe,style:Ahe,styleTween:Nhe,text:Phe,textTween:Dhe,remove:bhe,tween:jde,delay:ohe,duration:ahe,ease:uhe,easeVarying:dhe,end:Fhe,[Symbol.iterator]:fi[Symbol.iterator]};function Bhe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Whe={time:null,delay:0,duration:250,ease:Bhe};function qhe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function jhe(e){var t,r;e instanceof Ti?(t=e._id,e=e._name):(t=$x(),(r=Whe).time=mp(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&of(h,e,t,p,f,r||qhe(h,t));return new Ti(o,this._parents,e,t)}Ba.prototype.interrupt=Bde;Ba.prototype.transition=jhe;const Dc=e=>()=>e;function Uhe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function bi(e,t,r){this.k=e,this.x=t,this.y=r}bi.prototype={constructor:bi,scale:function(e){return e===1?this:new bi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new bi(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 xp=new bi(1,0,0);bi.prototype;function Ad(e){e.stopImmediatePropagation()}function Hl(e){e.preventDefault(),e.stopImmediatePropagation()}function Vhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Ghe(){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 z0(){return this.__zoom||xp}function Khe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Xhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Yhe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Zhe(){var e=Vhe,t=Ghe,r=Yhe,o=Khe,s=Xhe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Rde,p=Wa("start","zoom","end"),v,m,b,x=500,T=150,L=0,M=10;function A(N){N.property("__zoom",z0).on("wheel.zoom",ne,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",K).filter(s).on("touchstart.zoom",V).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(N,S,z,H){var ie=N.selection?N.selection():N;ie.property("__zoom",z0),N!==ie?W(N,S,z,H):ie.interrupt().each(function(){U(this,arguments).event(H).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},A.scaleBy=function(N,S,z,H){A.scaleTo(N,function(){var ie=this.__zoom.k,me=typeof S=="function"?S.apply(this,arguments):S;return ie*me},z,H)},A.scaleTo=function(N,S,z,H){A.transform(N,function(){var ie=t.apply(this,arguments),me=this.__zoom,xe=z==null?E(ie):typeof z=="function"?z.apply(this,arguments):z,$e=me.invert(xe),Ve=typeof S=="function"?S.apply(this,arguments):S;return r(B(R(me,Ve),xe,$e),ie,f)},z,H)},A.translateBy=function(N,S,z,H){A.transform(N,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),f)},null,H)},A.translateTo=function(N,S,z,H,ie){A.transform(N,function(){var me=t.apply(this,arguments),xe=this.__zoom,$e=H==null?E(me):typeof H=="function"?H.apply(this,arguments):H;return r(xp.translate($e[0],$e[1]).scale(xe.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof z=="function"?-z.apply(this,arguments):-z),me,f)},H,ie)};function R(N,S){return S=Math.max(c[0],Math.min(c[1],S)),S===N.k?N:new bi(S,N.x,N.y)}function B(N,S,z){var H=S[0]-z[0]*N.k,ie=S[1]-z[1]*N.k;return H===N.x&&ie===N.y?N:new bi(N.k,H,ie)}function E(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function W(N,S,z,H){N.on("start.zoom",function(){U(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(H).end()}).tween("zoom",function(){var ie=this,me=arguments,xe=U(ie,me).event(H),$e=t.apply(ie,me),Ve=z==null?E($e):typeof z=="function"?z.apply(ie,me):z,nt=Math.max($e[1][0]-$e[0][0],$e[1][1]-$e[0][1]),Je=ie.__zoom,Fe=typeof S=="function"?S.apply(ie,me):S,Me=h(Je.invert(Ve).concat(nt/Je.k),Fe.invert(Ve).concat(nt/Fe.k));return function(I){if(I===1)I=Fe;else{var G=Me(I),ee=nt/G[2];I=new bi(ee,Ve[0]-G[0]*ee,Ve[1]-G[1]*ee)}xe.zoom(null,I)}})}function U(N,S,z){return!z&&N.__zooming||new se(N,S)}function se(N,S){this.that=N,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(N,S),this.taps=0}se.prototype={event:function(N){return N&&(this.sourceEvent=N),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(N,S){return this.mouse&&N!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&N!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&N!=="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(N){var S=Gn(this.that).datum();p.call(N,this.that,new Uhe(N,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),S)}};function ne(N,...S){if(!e.apply(this,arguments))return;var z=U(this,S).event(N),H=this.__zoom,ie=Math.max(c[0],Math.min(c[1],H.k*Math.pow(2,o.apply(this,arguments)))),me=gi(N);if(z.wheel)(z.mouse[0][0]!==me[0]||z.mouse[0][1]!==me[1])&&(z.mouse[1]=H.invert(z.mouse[0]=me)),clearTimeout(z.wheel);else{if(H.k===ie)return;z.mouse=[me,H.invert(me)],Yc(this),z.start()}Hl(N),z.wheel=setTimeout(xe,T),z.zoom("mouse",r(B(R(H,ie),z.mouse[0],z.mouse[1]),z.extent,f));function xe(){z.wheel=null,z.end()}}function Q(N,...S){if(b||!e.apply(this,arguments))return;var z=N.currentTarget,H=U(this,S,!0).event(N),ie=Gn(N.view).on("mousemove.zoom",Ve,!0).on("mouseup.zoom",nt,!0),me=gi(N,z),xe=N.clientX,$e=N.clientY;_x(N.view),Ad(N),H.mouse=[me,this.__zoom.invert(me)],Yc(this),H.start();function Ve(Je){if(Hl(Je),!H.moved){var Fe=Je.clientX-xe,Me=Je.clientY-$e;H.moved=Fe*Fe+Me*Me>L}H.event(Je).zoom("mouse",r(B(H.that.__zoom,H.mouse[0]=gi(Je,z),H.mouse[1]),H.extent,f))}function nt(Je){ie.on("mousemove.zoom mouseup.zoom",null),Sx(Je.view,H.moved),Hl(Je),H.event(Je).end()}}function K(N,...S){if(e.apply(this,arguments)){var z=this.__zoom,H=gi(N.changedTouches?N.changedTouches[0]:N,this),ie=z.invert(H),me=z.k*(N.shiftKey?.5:2),xe=r(B(R(z,me),H,ie),t.apply(this,S),f);Hl(N),d>0?Gn(this).transition().duration(d).call(W,xe,H,N):Gn(this).call(A.transform,xe,H,N)}}function V(N,...S){if(e.apply(this,arguments)){var z=N.touches,H=z.length,ie=U(this,S,N.changedTouches.length===H).event(N),me,xe,$e,Ve;for(Ad(N),xe=0;xe<H;++xe)$e=z[xe],Ve=gi($e,this),Ve=[Ve,this.__zoom.invert(Ve),$e.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==Ve[2]&&(ie.touch1=Ve,ie.taps=0):(ie.touch0=Ve,me=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(ie.taps<2&&(m=Ve[0],v=setTimeout(function(){v=null},x)),Yc(this),ie.start())}}function P(N,...S){if(this.__zooming){var z=U(this,S).event(N),H=N.changedTouches,ie=H.length,me,xe,$e,Ve;for(Hl(N),me=0;me<ie;++me)xe=H[me],$e=gi(xe,this),z.touch0&&z.touch0[2]===xe.identifier?z.touch0[0]=$e:z.touch1&&z.touch1[2]===xe.identifier&&(z.touch1[0]=$e);if(xe=z.that.__zoom,z.touch1){var nt=z.touch0[0],Je=z.touch0[1],Fe=z.touch1[0],Me=z.touch1[1],I=(I=Fe[0]-nt[0])*I+(I=Fe[1]-nt[1])*I,G=(G=Me[0]-Je[0])*G+(G=Me[1]-Je[1])*G;xe=R(xe,Math.sqrt(I/G)),$e=[(nt[0]+Fe[0])/2,(nt[1]+Fe[1])/2],Ve=[(Je[0]+Me[0])/2,(Je[1]+Me[1])/2]}else if(z.touch0)$e=z.touch0[0],Ve=z.touch0[1];else return;z.zoom("touch",r(B(xe,$e,Ve),z.extent,f))}}function O(N,...S){if(this.__zooming){var z=U(this,S).event(N),H=N.changedTouches,ie=H.length,me,xe;for(Ad(N),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),me=0;me<ie;++me)xe=H[me],z.touch0&&z.touch0[2]===xe.identifier?delete z.touch0:z.touch1&&z.touch1[2]===xe.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(xe=gi(xe,this),Math.hypot(m[0]-xe[0],m[1]-xe[1])<M)){var $e=Gn(this).on("dblclick.zoom");$e&&$e.apply(this,arguments)}}}return A.wheelDelta=function(N){return arguments.length?(o=typeof N=="function"?N:Dc(+N),A):o},A.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Dc(!!N),A):e},A.touchable=function(N){return arguments.length?(s=typeof N=="function"?N:Dc(!!N),A):s},A.extent=function(N){return arguments.length?(t=typeof N=="function"?N:Dc([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),A):t},A.scaleExtent=function(N){return arguments.length?(c[0]=+N[0],c[1]=+N[1],A):[c[0],c[1]]},A.translateExtent=function(N){return arguments.length?(f[0][0]=+N[0][0],f[1][0]=+N[1][0],f[0][1]=+N[0][1],f[1][1]=+N[1][1],A):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},A.constrain=function(N){return arguments.length?(r=N,A):r},A.duration=function(N){return arguments.length?(d=+N,A):d},A.interpolate=function(N){return arguments.length?(h=N,A):h},A.on=function(){var N=p.on.apply(p,arguments);return N===p?A:N},A.clickDistance=function(N){return arguments.length?(L=(N=+N)*N,A):Math.sqrt(L)},A.tapDistance=function(N){return arguments.length?(M=+N,A):M},A}function Jhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Ix(this.cover(t,r),t,r,e)}function Ix(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,x,T,L,M,A,R;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[A=M<<1|L]))return s[A]=f,e;if(x=+e._x.call(null,c.data),T=+e._y.call(null,c.data),t===x&&r===T)return f.next=c,s?s[A]=f:e._root=f,e;do s=s?s[A]=new Array(4):e._root=new Array(4),(L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b;while((A=M<<1|L)===(R=(T>=b)<<1|x>=m));return s[R]=c,s[A]=f,e}function Qhe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)Ix(this,f[r],d[r],e[r]);return this}function epe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function tpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function npe(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,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function rpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],x=this._root,T,L;for(x&&b.push(new Pn(x,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);T=b.pop();)if(!(!(x=T.node)||(f=T.x0)>v||(d=T.y0)>m||(h=T.x1)<s||(p=T.y1)<c))if(x.length){var M=(f+h)/2,A=(d+p)/2;b.push(new Pn(x[3],M,A,h,p),new Pn(x[2],f,A,M,p),new Pn(x[1],M,d,h,A),new Pn(x[0],f,d,M,A)),(L=(t>=A)<<1|e>=M)&&(T=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=T)}else{var R=e-+this._x.call(null,x.data),B=t-+this._y.call(null,x.data),E=R*R+B*B;if(E<r){var W=Math.sqrt(r=E);s=e-W,c=t-W,v=e+W,m=t+W,o=x.data}}return o}function ipe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,x,T,L,M,A;if(!r)return this;if(r.length)for(;;){if((T=v>=(b=(f+h)/2))?f=b:h=b,(L=m>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[M=L<<1|T]))return this;if(!r.length)break;(t[M+1&3]||t[M+2&3]||t[M+3&3])&&(o=t,A=M)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[M]=c:delete t[M],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[A]=r:this._root=r),this):(this._root=c,this)}function ope(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function spe(){return this._root}function lpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function ape(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Pn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new Pn(s,p,v,d,h)),(s=o[2])&&t.push(new Pn(s,c,v,p,h)),(s=o[1])&&t.push(new Pn(s,p,f,d,v)),(s=o[0])&&t.push(new Pn(s,c,f,p,v))}return this}function cpe(e){var t=[],r=[],o;for(this._root&&t.push(new Pn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new Pn(c,f,d,v,m)),(c=s[1])&&t.push(new Pn(c,v,d,h,m)),(c=s[2])&&t.push(new Pn(c,f,m,v,p)),(c=s[3])&&t.push(new Pn(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function upe(e){return e[0]}function fpe(e){return arguments.length?(this._x=e,this):this._x}function dpe(e){return e[1]}function hpe(e){return arguments.length?(this._y=e,this):this._y}function _p(e,t,r){var o=new Sp(t??upe,r??dpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Sp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function F0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Dn=_p.prototype=Sp.prototype;Dn.copy=function(){var e=new Sp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=F0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=F0(o));return e};Dn.add=Jhe;Dn.addAll=Qhe;Dn.cover=epe;Dn.data=tpe;Dn.extent=npe;Dn.find=rpe;Dn.remove=ipe;Dn.removeAll=ope;Dn.root=spe;Dn.size=lpe;Dn.visit=ape;Dn.visitAfter=cpe;Dn.x=fpe;Dn.y=hpe;function In(e){return function(){return e}}function to(e){return(e()-.5)*1e-6}function ppe(e){return e.x+e.vx}function gpe(e){return e.y+e.vy}function vpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=In(e==null?1:+e));function f(){for(var p,v=t.length,m,b,x,T,L,M,A=0;A<c;++A)for(m=_p(t,ppe,gpe).visitAfter(d),p=0;p<v;++p)b=t[p],L=r[b.index],M=L*L,x=b.x+b.vx,T=b.y+b.vy,m.visit(R);function R(B,E,W,U,se){var ne=B.data,Q=B.r,K=L+Q;if(ne){if(ne.index>b.index){var V=x-ne.x-ne.vx,P=T-ne.y-ne.vy,O=V*V+P*P;O<K*K&&(V===0&&(V=to(o),O+=V*V),P===0&&(P=to(o),O+=P*P),O=(K-(O=Math.sqrt(O)))/O*s,b.vx+=(V*=O)*(K=(Q*=Q)/(M+Q)),b.vy+=(P*=O)*K,ne.vx-=V*(K=1-K),ne.vy-=P*K)}return}return E>x+K||U<x-K||W>T+K||se<T-K}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:In(+p),h(),f):e},f}function mpe(e){return e.index}function H0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function ype(e){var t=mpe,r=m,o,s=In(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(M){return 1/Math.min(d[M.source.index],d[M.target.index])}function b(M){for(var A=0,R=e.length;A<v;++A)for(var B=0,E,W,U,se,ne,Q,K;B<R;++B)E=e[B],W=E.source,U=E.target,se=U.x+U.vx-W.x-W.vx||to(p),ne=U.y+U.vy-W.y-W.vy||to(p),Q=Math.sqrt(se*se+ne*ne),Q=(Q-c[B])/Q*M*o[B],se*=Q,ne*=Q,U.vx-=se*(K=h[B]),U.vy-=ne*K,W.vx+=se*(K=1-K),W.vy+=ne*K}function x(){if(f){var M,A=f.length,R=e.length,B=new Map(f.map((W,U)=>[t(W,U,f),W])),E;for(M=0,d=new Array(A);M<R;++M)E=e[M],E.index=M,typeof E.source!="object"&&(E.source=H0(B,E.source)),typeof E.target!="object"&&(E.target=H0(B,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(M=0,h=new Array(R);M<R;++M)E=e[M],h[M]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array(R),T(),c=new Array(R),L()}}function T(){if(f)for(var M=0,A=e.length;M<A;++M)o[M]=+r(e[M],M,e)}function L(){if(f)for(var M=0,A=e.length;M<A;++M)c[M]=+s(e[M],M,e)}return b.initialize=function(M,A){f=M,p=A,x()},b.links=function(M){return arguments.length?(e=M,x(),b):e},b.id=function(M){return arguments.length?(t=M,b):t},b.iterations=function(M){return arguments.length?(v=+M,b):v},b.strength=function(M){return arguments.length?(r=typeof M=="function"?M:In(+M),T(),b):r},b.distance=function(M){return arguments.length?(s=typeof M=="function"?M:In(+M),L(),b):s},b}const bpe=1664525,wpe=1013904223,B0=4294967296;function xpe(){let e=1;return()=>(e=(bpe*e+wpe)%B0)/B0}function _pe(e){return e.x}function Spe(e){return e.y}var kpe=10,Tpe=Math.PI*(3-Math.sqrt(5));function Cpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=yp(m),p=Wa("tick","end"),v=xpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var M,A=e.length,R;L===void 0&&(L=1);for(var B=0;B<L;++B)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),M=0;M<A;++M)R=e[M],R.fx==null?R.x+=R.vx*=f:(R.x=R.fx,R.vx=0),R.fy==null?R.y+=R.vy*=f:(R.y=R.fy,R.vy=0);return t}function x(){for(var L=0,M=e.length,A;L<M;++L){if(A=e[L],A.index=L,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var R=kpe*Math.sqrt(.5+L),B=L*Tpe;A.x=R*Math.cos(B),A.y=R*Math.sin(B)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function T(L){return L.initialize&&L.initialize(e,v),L}return x(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,x(),d.forEach(T),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(v=L,d.forEach(T),t):v},force:function(L,M){return arguments.length>1?(M==null?d.delete(L):d.set(L,T(M)),t):d.get(L)},find:function(L,M,A){var R=0,B=e.length,E,W,U,se,ne;for(A==null?A=1/0:A*=A,R=0;R<B;++R)se=e[R],E=L-se.x,W=M-se.y,U=E*E+W*W,U<A&&(ne=se,A=U);return ne},on:function(L,M){return arguments.length>1?(p.on(L,M),t):p.on(L)}}}function Epe(){var e,t,r,o,s=In(-30),c,f=1,d=1/0,h=.81;function p(x){var T,L=e.length,M=_p(e,_pe,Spe).visitAfter(m);for(o=x,T=0;T<L;++T)t=e[T],M.visit(b)}function v(){if(e){var x,T=e.length,L;for(c=new Array(T),x=0;x<T;++x)L=e[x],c[L.index]=+s(L,x,e)}}function m(x){var T=0,L,M,A=0,R,B,E;if(x.length){for(R=B=E=0;E<4;++E)(L=x[E])&&(M=Math.abs(L.value))&&(T+=L.value,A+=M,R+=M*L.x,B+=M*L.y);x.x=R/A,x.y=B/A}else{L=x,L.x=L.data.x,L.y=L.data.y;do T+=c[L.data.index];while(L=L.next)}x.value=T}function b(x,T,L,M){if(!x.value)return!0;var A=x.x-t.x,R=x.y-t.y,B=M-T,E=A*A+R*R;if(B*B/h<E)return E<d&&(A===0&&(A=to(r),E+=A*A),R===0&&(R=to(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)),t.vx+=A*x.value*o/E,t.vy+=R*x.value*o/E),!0;if(x.length||E>=d)return;(x.data!==t||x.next)&&(A===0&&(A=to(r),E+=A*A),R===0&&(R=to(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)));do x.data!==t&&(B=c[x.data.index]*o/E,t.vx+=A*B,t.vy+=R*B);while(x=x.next)}return p.initialize=function(x,T){e=x,r=T,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:In(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Ape(e){var t=In(.1),r,o,s;typeof e!="function"&&(e=In(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:In(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:In(+d),f(),c):e},c}function Lpe(e){var t=In(.1),r,o,s;typeof e!="function"&&(e=In(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:In(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:In(+d),f(),c):e},c}function Mpe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function W0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function no(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=no.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:W0(t[o])&&W0(r[o])?t[o]=no(t[o],r[o]):t[o]=r[o])}),t},{})}const Dx={mergeArrays:!0};no.options=Dx;no.withOptions=(e,...t)=>{no.options={mergeArrays:!0,...e};const r=no(...t);return no.options=Dx,r};var Npe=no;function Ope(){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 Rpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function zx(e){e.preventDefault(),e.stopPropagation()}function Fx(e){return typeof e=="number"}function ho(e,t){return Fx(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Ppe(e){return`${e.source.id}-${e.target.id}`}function Hx(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function $pe(e){return`url(#${Hx(e.color)})`}function Ipe(e){return{size:e,padding:(t,r)=>ho(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Bx={Arrow:e=>Ipe(e)},Dpe=(e,t,r)=>[t/2,r/2],zpe=(e,t,r)=>[q0(0,t),q0(0,r)];function q0(e,t){return Math.random()*(t-e)+e}const yh={Centered:Dpe,Randomized:zpe};function Fpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:Rpe(),nodeRadius:16,marker:Bx.Arrow(4),modifiers:{},positionInitializer:yh.Centered,simulation:{alphas:Mpe(),forces:Ope()},zoom:{initial:1,min:.1,max:2}}}function Hpe(e={}){return Npe.withOptions({mergeArrays:!1},Fpe(),e)}function Bpe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>zx(v)).on("dblclick",v=>r?.(v)).on("dblclick.zoom",null).on("pointermove",v=>o?.(v)).on("pointerup",v=>s?.(v)).style("cursor","grab");return e&&p.call(h.transform,xp.translate(c,f).scale(d)),p.append("g")}function Wpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function qpe({config:e,onDragStart:t,onDragEnd:r}){const o=lde().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Gn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Gn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function jpe({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Upe({links:c},r)}function Upe(e,t){const r=[...Vpe(e,t),...Gpe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Vpe(e,t){return Wx(e,t,(r,o)=>r.target.id===o.id)}function Gpe(e,t){return Wx(e,t,(r,o)=>r.source.id===o.id)}function Wx(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function bh(e){return e.x??0}function wh(e){return e.y??0}function kp({source:e,target:t}){const r=new Zs(bh(e),wh(e)),o=new Zs(bh(t),wh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function qx({center:e,node:t}){const r=new Zs(bh(t),wh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Zs(0,1))),{n:r,c:o}}function jx({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=kp({source:t,target:r});return{start:o.add(c.multiply(ho(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function Kpe(e){const{start:t,end:r}=jx(e);return`M${t.x},${t.y}
|
|
45
|
-
L${r.x},${r.y}`}function Xpe(e){const{start:t,end:r}=jx(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Ype({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=kp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(ho(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(ho(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
46
|
-
A${m},${m},0,0,1,${v.x},${v.y}`}function Zpe({center:e,config:t,node:r}){const{n:o,c:s}=qx({center:e,node:r}),c=ho(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
47
|
-
A${c},${c},0,1,0,${v.x},${v.y}`}function Jpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=kp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Qpe({center:e,config:t,node:r}){const{n:o,c:s}=qx({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ho(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Hs={line:{labelTransform:Xpe,path:Kpe},arc:{labelTransform:Jpe,path:Ype},reflexive:{labelTransform:Qpe,path:Zpe}};function ege(e){return e.append("g").classed("links",!0).selectAll("path")}function tge({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>Ppe(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>$pe(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function nge(e){rge(e),ige(e)}function rge({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Hs.reflexive.path({config:t,node:s.source,center:e}):Ux(r,s.source,s.target)?Hs.arc.path({config:t,source:s.source,target:s.target}):Hs.line.path({config:t,source:s.source,target:s.target}))}function ige({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Hs.reflexive.labelTransform({config:e,node:s.source,center:t}):Ux(r,s.source,s.target)?Hs.arc.labelTransform({config:e,source:s.source,target:s.target}):Hs.line.labelTransform({config:e,source:s.source,target:s.target}))}function Ux(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function oge(e){return e.append("defs").selectAll("marker")}function sge({config:e,graph:t,selection:r}){return r?.data(lge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Hx(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",age(e.marker.path)),s})}function lge(e){return[...new Set(e.links.map(t=>t.color))]}function age(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function cge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function uge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",b=>ho(e,b)).on("contextmenu",(b,x)=>{zx(b),o(x)}).on("pointerdown",(b,x)=>dge(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(m),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const fge=500;function dge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>fge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function hge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function pge({center:e,config:t,graph:r,onTick:o}){const s=Cpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",Ape(()=>e().x).strength(p)).force("y",Lpe(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",Epe().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",vpe().radius(p=>d.radiusMultiplier*ho(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",ype(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function gge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=Zhe().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var vge=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(bue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Zs.of([this.width,this.height]).divide(2).subtract(Zs.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(Fx(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=sge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=tge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=uge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=pge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=gge({config:this.config,canvasContainer:()=>Gn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Bpe({applyZoom:this.scale!==1,container:Gn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=ege(this.canvas),this.nodeSelection=cge(this.canvas),this.markerSelection=oge(this.canvas),this.drag=qpe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){hge(this.nodeSelection),nge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.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(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Wpe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=jpe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function j0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function mge(e){return{...e}}function Vx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function yge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:v,candidate:m}=c;t.set(v,m);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function bge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function wge(e){const t=e.map(o=>bge(o)),r=yge(t);return t.map(({raw:o,id:s})=>Vx({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function xge(e,t){return Vx({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 _ge(e,t){if(!e)return j0({});const r=wge(e.externalized),o=e.inlined.map(d=>xge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return mge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return j0({nodes:s,links:f})}const Sge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},kge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Tge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Cge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Ege={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Age={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Gx=et({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Dr("tooltip");return e.state==="pass"?(re(),ge("div",Sge)):e.failedSnapshot?st((re(),ge("div",kge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(re(),ge("div",Tge)):e.mode==="todo"?st((re(),ge("div",Cge,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((re(),ge("div",Ege,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(re(),ge("div",Age))}}}),nl=xE(),Lge=oE(nl),Mge={border:"b base","p-4":""},Nge=["innerHTML"],Oge=et({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(re(),ge("div",Mge,[J("div",{"text-xs":"","mb-1":"",class:lt(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Pe(t(e.time))+" | "+Pe(e.taskName)+" | "+Pe(e.type),3),J("pre",{"data-type":"html",innerHTML:e.content},null,8,Nge)]))}}),Rge={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Pge={key:1,p6:""},$ge=et({__name:"ViewConsoleOutput",setup(e){const t=be(()=>{const o=ax.value;if(o){const s=fp(nl.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(na(h))}))}});function r(o){const s=o&&ht.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?fA(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(re(),ge("div",Rge,[(re(!0),ge(tt,null,Kn(t.value,({taskId:c,type:f,time:d,content:h})=>(re(),ge("div",{key:c,"font-mono":""},[Ne(Oge,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(re(),ge("div",Pge,[...s[0]||(s[0]=[ut(" Log something in your test and it would print here. (e.g. ",-1),J("pre",{inline:""},"console.log(foo)",-1),ut(") ",-1)])]))}}),Kx={"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(Kx);var fr=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_s,Ul,Ro;class Ige{constructor(...t){_s.set(this,new Map),Ul.set(this,new Map),Ro.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),fr(this,Ro,"f").has(o)||fr(this,Ro,"f").set(o,new Set);const c=fr(this,Ro,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&fr(this,Ul,"f").set(o,d),f=!1,h)continue;const p=fr(this,_s,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);fr(this,_s,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:fr(this,_s,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&fr(this,Ul,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:fr(this,Ro,"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 fr(this,Ro,"f").values())Object.freeze(t);return this}_getTestState(){return{types:fr(this,_s,"f"),extensions:fr(this,Ul,"f")}}}_s=new WeakMap,Ul=new WeakMap,Ro=new WeakMap;const Dge=new Ige(Kx)._freeze();function Ea(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 Xx(e,t){const r=t?Dge.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function Yx(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function xh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Ea(e)}const Zc=et({__name:"CodeMirrorContainer",props:ca({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ca(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=qu(e,"modelValue"),s=Lk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ue();return Ai(async()=>{const d=Fae(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Nn.value=d,setTimeout(()=>Nn.value.refresh(),100)}),(d,h)=>(re(),ge("div",{relative:"","font-mono":"","text-sm":"",class:lt(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[J("textarea",{ref_key:"el",ref:f},null,512)],2))}}),zge=et({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=rn(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();St(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ht.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Q){console.error("cannot fetch file",Q)}await Ct(),d.value=!1}},{immediate:!0}),St(()=>[d.value,h.value,r.file,Kw.value,Xw.value],([Q,K,V,P,O])=>{!Q&&!K&&(P!=null?Ct(()=>{const N=p.value,S=N??{line:(P??1)-1,ch:O??0};N?p.value=void 0:(Nn.value?.scrollIntoView(S,100),Ct(()=>{Nn.value?.focus(),Nn.value?.setCursor(S)}))}):Ct(()=>{Nn.value?.focus()}))},{flush:"post"});const v=be(()=>r.file?.filepath?.split(/\./g).pop()||"js"),m=Ue(),b=be(()=>{const Q=[];function K(V){V.result?.errors&&Q.push(...V.result.errors),V.type==="suite"&&V.tasks.forEach(K)}return r.file?.tasks.forEach(K),Q}),x=be(()=>{const Q=[];function K(V){V.type==="test"&&Q.push(...V.annotations),V.type==="suite"&&V.tasks.forEach(K)}return r.file?.tasks.forEach(K),Q}),T=[],L=[],M=[],A=Ue(!1);function R(){M.forEach(([Q,K,V])=>{Q.removeEventListener("click",K),V()}),M.length=0}gw(m,()=>{Nn.value?.refresh()});function B(){f.value=c.value!==Nn.value.getValue()}St(f,Q=>{o("draft",Q)},{immediate:!0});function E(Q){const V=(Q?.stacks||[]).filter(z=>z.file&&z.file===r.file?.filepath)?.[0];if(!V)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(V.column)}^ ${Q.name}: ${Q?.message||""}`,P.appendChild(O);const N=document.createElement("span");N.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",N.tabIndex=0,N.ariaLabel="Open in Editor",nw(N,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await up(V.file,V.line,V.column)};N.addEventListener("click",S),P.appendChild(N),M.push([N,S,()=>tp(N)]),L.push(Nn.value.addLineClass(V.line-1,"wrap","bg-red-500/10")),T.push(Nn.value.addLineWidget(V.line-1,P))}function W(Q){if(!Q.location)return;const{line:K,file:V}=Q.location;if(V!==r.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const N=document.createElement("span");N.textContent=`${Q.type}: `,N.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=Q.message.replace(/[^\r]\n/,`\r
|
|
48
|
-
`),O.append(N,S),P.append(O);const z=Q.attachment;if(z?.path||z?.body)if(z.contentType?.startsWith("image/")){const H=document.createElement("a"),ie=document.createElement("img");H.classList.add("inline-block","mt-3"),H.style.maxWidth="50vw";const me=z.path||z.body;typeof me=="string"&&(me.startsWith("http://")||me.startsWith("https://"))?(ie.setAttribute("src",me),H.referrerPolicy="no-referrer"):ie.setAttribute("src",Ea(z)),H.target="_blank",H.href=ie.src,H.append(ie),P.append(H)}else{const H=document.createElement("a");H.href=Ea(z),H.download=Xx(Q.message,z.contentType),H.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ie=document.createElement("div");ie.classList.add("i-carbon:download","block");const me=document.createElement("span");me.textContent="Download",H.append(ie,me),P.append(H)}T.push(Nn.value.addLineWidget(K-1,P))}const{pause:U,resume:se}=St([Nn,b,x,ks],([Q,K,V,P])=>{if(!Q){T.length=0,L.length=0,R();return}P&&(Q.off("changes",B),R(),T.forEach(O=>O.clear()),L.forEach(O=>Q?.removeLineClass(O,"wrap")),T.length=0,L.length=0,setTimeout(()=>{K.forEach(E),V.forEach(W),A.value||Q.clearHistory(),Q.on("changes",B)},100))},{flush:"post"});ip(()=>[ks.value,h.value,p.value],([Q,K],V)=>{Q&&!K&&V&&V[2]&&Nn.value?.setCursor(V[2])},{debounce:100,flush:"post"});async function ne(Q){if(h.value)return;U(),h.value=!0,await Ct();const K=Nn.value;K&&(K.setOption("readOnly",!0),await Ct(),K.refresh()),p.value=K?.getCursor(),K?.off("changes",B),R(),T.forEach(V=>V.clear()),L.forEach(V=>K?.removeLineClass(V,"wrap")),T.length=0,L.length=0;try{A.value=!0,await ht.rpc.saveTestFile(r.file.filepath,Q),c.value=Q,f.value=!1}catch(V){console.error("error saving file",V)}A.value||K?.clearHistory();try{await Rm(ks).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Rm(ks).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(E),x.value.forEach(W),K?.on("changes",B),h.value=!1,await Ct(),K&&(K.setOption("readOnly",!1),await Ct(),K.refresh()),se()}return Oa(R),(Q,K)=>(re(),Ge(Zc,wi({ref_key:"editor",ref:m,modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=V=>s.value=V),"h-full":""},{lineNumbers:!0,readOnly:X(pr),saving:h.value},{mode:v.value,"data-testid":"code-mirror",onSave:ne}),null,16,["modelValue","mode"]))}}),Tp=et({__name:"Modal",props:ca({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=qu(e,"modelValue"),r=be(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=be(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(re(),ge("div",{class:lt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[J("div",{class:lt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),J("div",{class:lt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:Vt(t.value?{}:{transform:o.value})},[Bt(c.$slots,"default")],6)],2))}}),Fge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Hge={"p-4":"",relative:""},Bge={op50:"","font-mono":"","text-sm":""},Wge={key:0,"p-5":""},qge={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},jge={key:0},Uge={p:"x3 y-1","bg-overlay":"",border:"base b t"},Vge=et({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=aE(()=>ht.rpc.getTransformResult(r.projectName,r.id,!!Zn)),c=be(()=>r.id?.split(/\./g).pop()||"js"),f=be(()=>s.value?.source?.trim()||""),d=be(()=>s.value?.code?.replace(/\/\/# sourceMappingURL=.*\n/,"").trim()||""),h=be(()=>({mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}));return fw("Escape",()=>{o("close")}),(p,v)=>(re(),ge("div",Fge,[J("div",Hge,[v[1]||(v[1]=J("p",null,"Module Info",-1)),J("p",Bge,Pe(e.id),1),Ne(Et,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=m=>o("close"))})]),X(s)?(re(),ge(tt,{key:1},[J("div",qge,[v[2]||(v[2]=J("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=J("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Ne(Zc,wi({"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"]),Ne(Zc,wi({"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])]),h.value.mappings!==""?(re(),ge("div",jge,[J("div",Uge," Source map (v"+Pe(h.value.version)+") ",1),Ne(Zc,wi({"model-value":h.value.mappings,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])])):ze("",!0)],64)):(re(),ge("div",Wge," No transform result found for this module. "))]))}}),Gge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Kge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Xge={flex:"~ gap-1","items-center":"","select-none":""},Yge=["id","checked","onChange"],Zge=["for"],Jge=et({__name:"ViewModuleGraph",props:ca({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=qu(e,"modelValue"),{graph:o}=tk(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();Uh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),Ai(()=>{v()}),Ra(()=>{d.value?.shutdown()}),St(o,()=>v());function h(x,T){d.value?.filterNodesByType(T,x)}function p(x){f.value=x,c.value=!0}function v(x=!1){if(d.value?.shutdown(),x&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new vge(s.value,o.value,Hpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:T,newWidth:L})=>T===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Bx.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?yh.Randomized:yh.Centered,zoom:{min:.5,max:2}})))}const m=x=>x.button===0;function b(x){if(pr)return;let T=0,L=0,M=0;x.on("pointerdown",(A,R)=>{R.type!=="external"&&(!R.x||!R.y||!m(A)||(T=R.x,L=R.y,M=Date.now()))}).on("pointerup",(A,R)=>{if(R.type==="external"||!R.x||!R.y||!m(A)||Date.now()-M>500)return;const B=R.x-T,E=R.y-L;B**2+E**2<100&&p(R.id)})}return(x,T)=>{const L=Dr("tooltip");return re(),ge("div",Gge,[J("div",null,[J("div",Kge,[J("div",Xge,[st(J("input",{id:"hide-node-modules","onUpdate:modelValue":T[0]||(T[0]=M=>r.value=M),type:"checkbox"},null,512),[[Pb,r.value]]),T[4]||(T[4]=J("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))]),(re(!0),ge(tt,null,Kn(d.value?.nodeTypes.sort(),M=>(re(),ge("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[J("input",{id:`type-${M}`,type:"checkbox",checked:d.value?.nodeTypeFilter.includes(M),onChange:A=>h(M,A.target.checked)},null,40,Yge),J("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${M}`,"border-b-2":"",style:Vt({"border-color":`var(--color-node-${M})`})},Pe(M)+" Modules",13,Zge)]))),128)),T[5]||(T[5]=J("div",{"flex-auto":""},null,-1)),J("div",null,[st(Ne(Et,{icon:"i-carbon-reset",onClick:T[1]||(T[1]=M=>v(!0))},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),J("div",{ref_key:"el",ref:s},null,512),Ne(Tp,{modelValue:c.value,"onUpdate:modelValue":T[3]||(T[3]=M=>c.value=M),direction:"right"},{default:Xe(()=>[f.value?(re(),Ge(Xh,{key:0},{default:Xe(()=>[Ne(Vge,{id:f.value,"project-name":e.projectName,onClose:T[2]||(T[2]=M=>c.value=!1)},null,8,["id","project-name"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])])}}});function Zx(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function Jx(){const e=Ue(!1),t=Ue(Date.now()),r=Ue(),o=be(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Qge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},eve={"p-4":"",relative:"",border:"base b"},tve={op50:"","font-mono":"","text-sm":""},nve={op50:"","font-mono":"","text-sm":""},rve={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},ive=["src","alt"],ove={key:1},sve=et({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return fw("Escape",()=>{r("close")}),(o,s)=>(re(),ge("div",Qge,[J("div",eve,[s[1]||(s[1]=J("p",null,"Screenshot error",-1)),J("p",tve,Pe(e.file),1),J("p",nve,Pe(e.name),1),Ne(Et,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),J("div",rve,[e.url?(re(),ge("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,ive)):(re(),ge("div",ove," Something was wrong, the image cannot be resolved. "))])]))}}),Qx=Li(sve,[["__scopeId","data-v-08ce44b7"]]),lve={class:"scrolls scrolls-rounded task-error"},ave=["onClickPassive"],cve=["innerHTML"],uve=et({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=be(()=>fp(nl.value)),s=be(()=>!!t.error?.diff),c=be(()=>t.error.diff?o.value.toHtml(na(t.error.diff)):void 0);function f(d){return Rae(d.file,t.filename)?Hae(t.fileId,d):up(d.file,d.line,d.column)}return(d,h)=>{const p=Dr("tooltip");return re(),ge("div",lve,[J("pre",null,[J("b",null,Pe(e.error.name),1),ut(": "+Pe(e.error.message),1)]),(re(!0),ge(tt,null,Kn(e.error.stacks,(v,m)=>(re(),ge("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[J("pre",null," - "+Pe(r(v.file))+":"+Pe(v.line)+":"+Pe(v.column),1),st(J("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:b=>f(v)},null,40,ave),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(re(),ge("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,cve)):ze("",!0)])}}}),e1=Li(uve,[["__scopeId","data-v-1fcfe7a4"]]),fve={"h-full":"",class:"scrolls"},dve=["id"],hve={flex:"~ gap-2 items-center"},pve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},gve=["innerHTML"],vve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},mve=et({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>r(v,p+1))]}const o=be(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],v=h.result;if(v?.errors?.[0]){const b={id:h.id,file:h,name:h.name,fullName:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(b)}return p.length>0?Gw(nl.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Jx();return(h,p)=>{const v=Dr("tooltip");return re(),ge("div",fve,[o.value.length?(re(!0),ge(tt,{key:0},Kn(o.value,m=>(re(),ge("div",{id:m.id,key:m.id},[J("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Vt({"margin-left":`${m.result?.htmlError?.5:2*m.level+.5}rem`})},[J("div",hve,[J("span",null,Pe(m.name),1),X(Zn)&&m.meta?.failScreenshotPath?(re(),ge(tt,{key:0},[st(Ne(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>X(f)(m)},null,8,["onClick"]),[[v,"View screenshot error",void 0,{bottom:!0}]]),st(Ne(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>X(Zx)(m)},null,8,["onClick"]),[[v,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):ze("",!0)]),m.result?.htmlError?(re(),ge("div",pve,[J("pre",{innerHTML:m.result.htmlError},null,8,gve)])):m.result?.errors?(re(!0),ge(tt,{key:1},Kn(m.result.errors,(b,x)=>(re(),Ge(e1,{key:x,error:b,filename:e.file.name,root:X(Xs).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):ze("",!0)],4)],8,dve))),128)):(re(),ge("div",vve," All tests passed in this file ")),X(Zn)?(re(),Ge(Tp,{key:2,modelValue:X(c),"onUpdate:modelValue":p[1]||(p[1]=m=>Mt(c)?c.value=m:null),direction:"right"},{default:Xe(()=>[X(s)?(re(),Ge(Xh,{key:0},{default:Xe(()=>[Ne(Qx,{file:X(s).file.filepath,name:X(s).name,url:X(d),onClose:p[0]||(p[0]=m=>c.value=!1)},null,8,["file","name","url"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])):ze("",!0)])}}}),yve=Li(mve,[["__scopeId","data-v-9d875d6e"]]),bve=["href","referrerPolicy"],wve=["src"],xve=et({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=be(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Ea(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(re(),ge("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:X(Yx)(e.annotation.attachment)?"no-referrer":void 0},[J("img",{src:r.value},null,8,wve)],8,bve)):ze("",!0)}}),_ve={class:"flex flex-col gap-4"},Sve={key:0},kve=et({__name:"ArtifactTemplate",setup(e){const t=nb();return(r,o)=>(re(),ge("article",_ve,[J("h1",null,[Bt(r.$slots,"title")]),X(t).message?(re(),ge("p",Sve,[Bt(r.$slots,"message")])):ze("",!0),Bt(r.$slots,"default")]))}}),t1=Symbol("tabContext"),Au={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},Tve={class:"flex flex-col items-center gap-6"},Cve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},Eve=["id","aria-selected","aria-controls","onClick"],Ave=et({__name:"SmallTabs",setup(e){const t=Ue(null),r=Ue([]),o=Wh();return dr(t1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(re(),ge("div",Tve,[J("div",Cve,[(re(!0),ge(tt,null,Kn(r.value,f=>(re(),ge("button",{id:X(Au).tab(f.id,X(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":X(Au).tabpanel(f.id,X(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Pe(f.title),9,Eve))),128))]),Bt(s.$slots,"default")]))}}),Lve=["id","aria-labelledby","hidden"],zc=et({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=hn(t1);if(!r)throw new Error("TabPane must be used within Tabs");const o=Wh(),s=be(()=>r.activeTab.value===o);return Ai(()=>{r.registerTab({...t,id:o})}),Ra(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(re(),ge("div",{id:X(Au).tabpanel(X(o),X(r).id),role:"tabpanel","aria-labelledby":X(Au).tab(X(o),X(r).id),hidden:!s.value,class:"max-w-full"},[Bt(c.$slots,"default")],8,Lve))}}),n1=et({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(r,o)=>(re(),ge("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Vt({backgroundImage:t})},[Bt(r.$slots,"default")],4))}}),Mve=["href","referrerPolicy"],Nve=["src"],Ld=et({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=be(()=>xh(e.attachment));return(r,o)=>(re(),Ge(n1,null,{default:Xe(()=>[J("a",{target:"_blank",href:t.value,referrerPolicy:X(Yx)(e.attachment)?"no-referrer":void 0},[J("img",{src:t.value},null,8,Nve)],8,Mve)]),_:1}))}}),Ove={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},Rve=["src"],Pve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},$ve=["src"],Ive=["id"],Dve=["for"],zve=et({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=be(()=>xh(e.reference)),r=be(()=>xh(e.actual)),o=be(()=>Math.max(e.reference.width,e.actual.width)),s=be(()=>Math.max(e.reference.height,e.actual.height)),c=Ue(50),f=Wh();return(d,h)=>(re(),Ge(n1,null,{default:Xe(()=>[J("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Vt({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[J("div",Ove,[J("img",{src:t.value},null,8,Rve)]),J("div",Pve,[J("img",{src:r.value},null,8,$ve)]),h[1]||(h[1]=J("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(J("input",{id:X(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,Ive),[[Rb,c.value]]),J("output",{for:X(f),class:"sr-only"}," Showing "+Pe(c.value)+"% reference, "+Pe(100-c.value)+"% actual ",9,Dve)],4)]),_:1}))}}),Fve=et({__name:"VisualRegression",props:{regression:{}},setup(e){const t=be(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(re(),Ge(kve,null,{title:Xe(()=>[...o[0]||(o[0]=[ut(" Visual Regression ",-1)])]),message:Xe(()=>[ut(Pe(e.regression.message),1)]),default:Xe(()=>[Ne(Ave,null,{default:Xe(()=>[t.value.diff?(re(),Ge(zc,{key:t.value.diff.path,title:"Diff"},{default:Xe(()=>[Ne(Ld,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference?(re(),Ge(zc,{key:t.value.reference.path,title:"Reference"},{default:Xe(()=>[Ne(Ld,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):ze("",!0),t.value.actual?(re(),Ge(zc,{key:t.value.actual.path,title:"Actual"},{default:Xe(()=>[Ne(Ld,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference&&t.value.actual?(re(),Ge(zc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:Xe(()=>[Ne(zve,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):ze("",!0)]),_:1})]),_:1}))}}),Hve={"h-full":"",class:"scrolls"},Bve={key:0},Wve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},qve={flex:"~ gap-2 items-center"},jve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Uve=["innerHTML"],Vve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Gve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Kve={class:"flex gap-2","overflow-hidden":""},Xve={class:"font-bold","ws-nowrap":"",truncate:""},Yve=["href","download"],Zve=["onClick"],Jve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Qve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},eme={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},tme=["onClick"],nme={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},rme={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":""},ime={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},ome={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},sme=et({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=be(()=>!t.test.result||!t.test.result.errors?.length?null:Gw(nl.value,[t.test])[0]);function o(m){return Bae(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Jx();function h(m){return`${_w(Xs.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=be(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{const x=Dr("tooltip");return re(),ge("div",Hve,[r.value?(re(),ge("div",Bve,[J("div",Wve,[J("div",qve,[X(Zn)&&e.test.meta?.failScreenshotPath?(re(),ge(tt,{key:0},[st(Ne(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=T=>X(f)(e.test))},null,512),[[x,"View screenshot error",void 0,{bottom:!0}]]),st(Ne(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=T=>X(Zx)(e.test))},null,512),[[x,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):ze("",!0)]),e.test.result?.htmlError?(re(),ge("div",jve,[J("pre",{innerHTML:e.test.result.htmlError},null,8,Uve)])):e.test.result?.errors?(re(!0),ge(tt,{key:1},Kn(e.test.result.errors,(T,L)=>(re(),Ge(e1,{key:L,"file-id":e.test.file.id,error:T,filename:e.test.file.name,root:X(Xs).root},null,8,["file-id","error","filename","root"]))),128)):ze("",!0)])])):(re(),ge("div",Vve," All tests passed in this file ")),e.test.annotations.length?(re(),ge(tt,{key:2},[b[5]||(b[5]=J("h1",{"m-2":""}," Test Annotations ",-1)),(re(!0),ge(tt,null,Kn(e.test.annotations,T=>(re(),ge("div",{key:T.type+T.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[J("div",Gve,[J("div",Kve,[J("span",Xve,Pe(T.type),1),T.attachment&&!T.attachment.contentType?.startsWith("image/")?(re(),ge("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:X(Ea)(T.attachment),download:X(Xx)(T.message,T.attachment.contentType)},[...b[4]||(b[4]=[J("span",{class:"i-carbon:download block"},null,-1),ut(" Download ",-1)])],8,Yve)):ze("",!0)]),J("div",null,[T.location&&T.location.file===e.test.file.filepath?st((re(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(T.location)},[ut(Pe(h(T.location)),1)],8,Zve)),[[x,"Open in Editor",void 0,{bottom:!0}]]):T.location&&T.location.file!==e.test.file.filepath?(re(),ge("span",Jve,Pe(h(T.location)),1)):ze("",!0)])]),J("div",Qve,Pe(T.message),1),Ne(xve,{annotation:T},null,8,["annotation"])]))),128))],64)):ze("",!0),e.test.artifacts.length?(re(),ge(tt,{key:3},[b[6]||(b[6]=J("h1",{"m-2":""}," Test Artifacts ",-1)),(re(!0),ge(tt,null,Kn(e.test.artifacts,(T,L)=>(re(),ge("div",{key:T.type+L,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[J("div",eme,[J("div",null,[T.location&&T.location.file===e.test.file.filepath?st((re(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:M=>o(T.location)},[ut(Pe(h(T.location)),1)],8,tme)),[[x,"Open in Editor",void 0,{bottom:!0}]]):T.location&&T.location.file!==e.test.file.filepath?(re(),ge("span",nme,Pe(h(T.location)),1)):ze("",!0)])]),T.type==="internal:toMatchScreenshot"&&T.kind==="visual-regression"?(re(),Ge(Fve,{key:0,regression:T},null,8,["regression"])):ze("",!0)]))),128))],64)):ze("",!0),v.value.length?(re(),ge(tt,{key:4},[b[7]||(b[7]=J("h1",{"m-2":""}," Test Meta ",-1)),J("div",rme,[(re(!0),ge(tt,null,Kn(v.value,([T,L])=>(re(),ge(tt,{key:T},[J("div",ime,Pe(T),1),J("pre",ome,Pe(L),1)],64))),128))])],64)):ze("",!0),X(Zn)?(re(),Ge(Tp,{key:5,modelValue:X(c),"onUpdate:modelValue":b[3]||(b[3]=T=>Mt(c)?c.value=T:null),direction:"right"},{default:Xe(()=>[X(s)?(re(),Ge(Xh,{key:0},{default:Xe(()=>[Ne(Qx,{file:X(s).file.filepath,name:X(s).name,url:X(d),onClose:b[2]||(b[2]=T=>c.value=!1)},null,8,["file","name","url"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])):ze("",!0)])}}}),lme=Li(sme,[["__scopeId","data-v-1a68630b"]]),ame={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},cme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},ume={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},fme={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},dme={class:"flex text-lg"},hme={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},pme={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},gme={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},vme={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},mme=["flex-1"],U0=et({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=be(()=>$s.value?ht.state.idMap.get($s.value):void 0),h=be(()=>{const E=Ut.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),p=be(()=>Ut.value&&cp(Ut.value)),v=be(()=>!!Ut.value?.meta?.typecheck);function m(){const E=Ut.value?.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function b(E){E==="graph"&&(o.value=!0),dn.value=E}const x=be(()=>ax.value?.reduce((E,{size:W})=>E+W,0)??0);function T(E){r.value=E}const L=/[/\\]node_modules[/\\]/;async function M(E=!1){if(!(s.value||h.value?.filepath===c.value&&!E)){s.value=!0,await Ct();try{const W=h.value;if(!W){s.value=!1;return}if(E||!c.value||W.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let U=await ht.rpc.getModuleGraph(W.projectName,W.filepath,!!Zn);f.value&&(pr&&(U=typeof window.structuredClone<"u"?window.structuredClone(U):kA(U)),U.inlined=U.inlined.filter(se=>!L.test(se)),U.externalized=U.externalized.filter(se=>!L.test(se))),t.value=_ge(U,W.filepath),c.value=W.filepath}b("graph")}finally{await new Promise(W=>setTimeout(W,100)),s.value=!1}}}ip(()=>[h.value,dn.value,f.value],([,E,W],U)=>{E==="graph"&&M(U&&W!==U[2])},{debounce:100,immediate:!0});const A=be(()=>{const E=Ut.value?.file.projectName||"";return Ce.colors.get(E)||Pw(Ut.value?.file.projectName)}),R=be(()=>$w(A.value)),B=be(()=>{const E=$s.value;if(!E)return Ut.value?.name;const W=[];let U=ht.state.idMap.get(E);for(;U;)W.push(U.name),U=U.suite?U.suite:U===U.file?void 0:U.file;return W.reverse().join(" > ")});return(E,W)=>{const U=Dr("tooltip");return X(Ut)?(re(),ge("div",ame,[J("div",null,[J("div",cme,[Ne(Gx,{state:X(Ut).result?.state,mode:X(Ut).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),v.value?st((re(),ge("div",ume,null,512)),[[U,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),X(Ut)?.file.projectName?(re(),ge("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Vt({backgroundColor:A.value,color:R.value})},Pe(X(Ut).file.projectName),5)):ze("",!0),J("div",fme,Pe(B.value),1),J("div",dme,[X(pr)?ze("",!0):st((re(),Ge(Et,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!X(Ut)?.filepath,onClick:m},null,8,["disabled"])),[[U,"Open in editor",void 0,{bottom:!0}]])])]),J("div",hme,[J("button",{"tab-button":"",class:lt(["flex items-center gap-2",{"tab-button-active":X(dn)==null}]),"data-testid":"btn-report",onClick:W[0]||(W[0]=se=>b(null))},[...W[5]||(W[5]=[J("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ut(" Report ",-1)])],2),J("button",{"tab-button":"","data-testid":"btn-graph",class:lt(["flex items-center gap-2",{"tab-button-active":X(dn)==="graph"}]),onClick:W[1]||(W[1]=se=>b("graph"))},[s.value?(re(),ge("span",pme)):(re(),ge("span",gme)),W[6]||(W[6]=ut(" Module Graph ",-1))],2),J("button",{"tab-button":"","data-testid":"btn-code",class:lt(["flex items-center gap-2",{"tab-button-active":X(dn)==="editor"}]),onClick:W[2]||(W[2]=se=>b("editor"))},[W[7]||(W[7]=J("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),ut(" "+Pe(r.value?"* ":"")+"Code ",1)],2),J("button",{"tab-button":"","data-testid":"btn-console",class:lt(["flex items-center gap-2",{"tab-button-active":X(dn)==="console",op20:X(dn)!=="console"&&x.value===0}]),onClick:W[3]||(W[3]=se=>b("console"))},[W[8]||(W[8]=J("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),ut(" Console ("+Pe(x.value)+") ",1)],2)])]),J("div",vme,[o.value?(re(),ge("div",{key:0,"flex-1":X(dn)==="graph"&&""},[st(Ne(Jge,{modelValue:f.value,"onUpdate:modelValue":W[4]||(W[4]=se=>f.value=se),graph:t.value,"data-testid":"graph","project-name":X(Ut).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[eo,X(dn)==="graph"&&!s.value]])],8,mme)):ze("",!0),X(dn)==="editor"?(re(),Ge(zge,{key:X(Ut).id,file:X(Ut),"data-testid":"editor",onDraft:T},null,8,["file"])):X(dn)==="console"?(re(),Ge($ge,{key:2,file:X(Ut),"data-testid":"console"},null,8,["file"])):!X(dn)&&!d.value&&X(Ut)?(re(),Ge(yve,{key:3,file:X(Ut),"data-testid":"report"},null,8,["file"])):!X(dn)&&d.value?(re(),Ge(lme,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):ze("",!0)])])):ze("",!0)}}}),yme=""+new URL("../favicon.svg",import.meta.url).href;function bme(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Jc;function _h(){_h.init||(_h.init=!0,Jc=bme()!==-1)}var sf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){_h(),Ct(()=>{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",Jc&&this.$el.appendChild(e),e.data="about:blank",Jc||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&&(!Jc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wme=Uy();qy("data-v-b329ee4c");const xme={class:"resize-observer",tabindex:"-1"};jy();const _me=wme((e,t,r,o,s,c)=>(re(),Ge("div",xme)));sf.render=_me;sf.__scopeId="data-v-b329ee4c";sf.__file="src/components/ResizeObserver.vue";function Qc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qc=function(t){return typeof t}:Qc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qc(e)}function Sme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kme(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Tme(e,t,r){return t&&kme(e.prototype,t),e}function V0(e){return Cme(e)||Eme(e)||Ame(e)||Lme()}function Cme(e){if(Array.isArray(e))return Sh(e)}function Eme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Ame(e,t){if(e){if(typeof e=="string")return Sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sh(e,t)}}function Sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Lme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Nme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(V0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(V0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function r1(e,t){if(e===t)return!0;if(Qc(e)==="object"){for(var r in e)if(!r1(e[r],t[r]))return!1;return!0}return!1}var Ome=(function(){function e(t,r,o){Sme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Tme(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Mme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Nme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Ct(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 i1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new Ome(e,o,r);e._vue_visibilityState=s}}function Rme(e,t,r){var o=t.value,s=t.oldValue;if(!r1(o,s)){var c=e._vue_visibilityState;if(!o){o1(e);return}c?c.createObserver(o,r):i1(e,{value:o},r)}}function o1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Pme={beforeMount:i1,updated:Rme,unmounted:o1},$me={itemsLimit:1e3},Ime=/(auto|scroll)/;function s1(e,t){return e.parentNode===null?t:s1(e.parentNode,t.concat([e]))}var Md=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Dme=function(t){return Md(t,"overflow")+Md(t,"overflow-y")+Md(t,"overflow-x")},zme=function(t){return Ime.test(Dme(t))};function G0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=s1(e.parentNode,[]),r=0;r<t.length;r+=1)if(zme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function kh(e){"@babel/helpers - typeof";return kh=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},kh(e)}var Fme={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Hme(){return this.items.length&&kh(this.items[0])!=="object"}var Th=!1;if(typeof window<"u"){Th=!1;try{var Bme=Object.defineProperty({},"passive",{get:function(){Th=!0}});window.addEventListener("test",null,Bme)}catch{}}let Wme=0;var Cp={name:"RecycleScroller",components:{ResizeObserver:sf},directives:{ObserveVisibility:Pme},props:{...Fme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:Hme,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Hh({id:Wme++,index:t,used:!0,key:o,type:s}),f=zh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,x=this.pool,T=this.itemIndexByKey;let L,M,A,R,B;if(!p)L=M=R=B=A=0;else if(this.$_prerender)L=R=0,M=B=Math.min(this.prerender,h.length),A=null;else{const K=this.getScroll();if(t){let O=K.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=K.start;const V=this.buffer;K.start-=V,K.end+=V;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,K.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;K.end+=O}if(r===null){let O,N=0,S=p-1,z=~~(p/2),H;do H=z,O=v[z].accumulator,O<K.start?N=z:z<p-1&&v[z+1].accumulator>K.start&&(S=z),z=~~((N+S)/2);while(z!==H);for(z<0&&(z=0),L=z,A=v[p-1].accumulator,M=z;M<p&&v[M].accumulator<K.end;M++);for(M===-1?M=h.length-1:(M++,M>p&&(M=p)),R=L;R<p&&P+v[R].accumulator<K.start;R++);for(B=R;B<p&&P+v[B].accumulator<K.end;B++);}else{L=~~(K.start/r*o);const O=L%o;L-=O,M=Math.ceil(K.end/r*o),R=Math.max(0,Math.floor((K.start-P)/r*o)),B=Math.floor((K.end-P)/r*o),L<0&&(L=0),M>p&&(M=p),R<0&&(R=0),B>p&&(B=p),A=Math.ceil(p/o)*r}}M-L>$me.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let E;const W=L<=this.$_endIndex&&M>=this.$_startIndex;if(W)for(let K=0,V=x.length;K<V;K++)E=x[K],E.nr.used&&(e&&(E.nr.index=T[E.item[d]]),(E.nr.index==null||E.nr.index<L||E.nr.index>=M)&&this.unuseView(E));const U=W?null:new Map;let se,ne,Q;for(let K=L;K<M;K++){se=h[K];const V=d?se[d]:se;if(V==null)throw new Error(`Key is ${V} on item (keyField is '${d}')`);if(E=m.get(V),!r&&!v[K].size){E&&this.unuseView(E);continue}ne=se[f];let P=b.get(ne),O=!1;if(!E)W?P&&P.length?E=P.pop():E=this.addView(x,K,se,V,ne):(Q=U.get(ne)||0,(!P||Q>=P.length)&&(E=this.addView(x,K,se,V,ne),this.unuseView(E,!0),P=b.get(ne)),E=P[Q],U.set(ne,Q+1)),m.delete(E.nr.key),E.nr.used=!0,E.nr.index=K,E.nr.key=V,E.nr.type=ne,m.set(V,E),O=!0;else if(!E.nr.used&&(E.nr.used=!0,O=!0,P)){const N=P.indexOf(E);N!==-1&&P.splice(N,1)}E.item=se,O&&(K===h.length-1&&this.$emit("scroll-end"),K===0&&this.$emit("scroll-start")),r===null?(E.position=v[K-1].accumulator,E.offset=0):(E.position=Math.floor(K/o)*r,E.offset=K%o*s)}return this.$_startIndex=L,this.$_endIndex=M,this.emitUpdate&&this.$emit("update",L,M,R,B),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:W}},getListenerTarget(){let e=G0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Th?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=G0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const qme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},jme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Ume(e,t,r,o,s,c){const f=Wo("ResizeObserver"),d=Dr("observe-visibility");return st((re(),ge("div",{class:lt(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(re(),ge("div",qme,[Bt(e.$slots,"before")],512)):ze("v-if",!0),(re(),Ge(Hd(r.listTag),{ref:"wrapper",style:Vt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:lt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:Xe(()=>[(re(!0),ge(tt,null,Kn(s.pool,h=>(re(),Ge(Hd(r.itemTag),wi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},Ek(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:Xe(()=>[Bt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Bt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(re(),ge("div",jme,[Bt(e.$slots,"after")],512)):ze("v-if",!0),Ne(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}Cp.render=Ume;Cp.__file="src/components/RecycleScroller.vue";function Vme(e){const t=be(()=>ih.value?!1:!Qe.onlyTests),r=be(()=>Un.value===""),o=Ue(Un.value);ip(()=>Un.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Un.value="",h&&e.value?.focus()}function c(h){Qe.failed=!1,Qe.success=!1,Qe.skipped=!1,Qe.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Gs.value&&(pn.value.search=h?.trim()??"",pn.value.failed=p,pn.value.success=v,pn.value.skipped=m,pn.value.onlyTests=b)}return St(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ce.filterNodes()},{flush:"post"}),St(()=>$r.value.length,h=>{h&&(pn.value.expandAll=void 0)},{flush:"post"}),{initialized:Gs,filter:Qe,search:Un,disableFilter:t,isFiltered:Rw,isFilteredByStatus:ih,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:ef,testsTotal:AA,uiEntries:Jn}}const Gme=["open"],Kme=et({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(re(),ge("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[J("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:lt(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=J("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Bt(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=J("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Bt(r.$slots,"default")],40,Gme))}}),Xme={"flex-1":"","ms-2":"","select-none":""},Fc=et({__name:"FilterStatus",props:ca({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=qu(e,"modelValue");return(r,o)=>(re(),ge("label",wi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=jc(s=>t.value=!t.value,["prevent"]))}),[J("span",{class:lt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),st(J("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[Pb,t.value]]),J("span",Xme,Pe(e.label),1)],16))}}),Yme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Zme=et({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(re(),ge("button",Yme,[J("span",{block:"",class:lt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Jme=["aria-label","data-current"],Qme={key:1,"w-4":""},e0e={flex:"","items-end":"","gap-2":"","overflow-hidden":""},t0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},n0e={"text-sm":"",truncate:"","font-light":""},r0e=["text","innerHTML"],i0e={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},o0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},s0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},l0e={key:1},a0e=et({__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=be(()=>ht.state.idMap.get(e.taskId)),r=be(()=>{if(pr)return!1;const M=t.value;return M&&cp(M)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId)}async function s(M){e.onItemClick?.(M),Cs.value&&(wu.value=!0,await Ct()),e.type==="file"?await hp([M.file]):await _ce(M)}function c(M){return ht.rpc.updateSnapshot(M.file)}const f=be(()=>e.indent<=0?[]:Array.from({length:e.indent},(M,A)=>`${e.taskId}-${A}`)),d=be(()=>{const M=f.value,A=[];return(e.type==="file"||e.type==="suite")&&A.push("min-content"),A.push("min-content"),e.type==="suite"&&e.typecheck&&A.push("min-content"),A.push("minmax(0, 1fr)"),A.push("min-content"),`grid-template-columns: ${M.map(()=>"1rem").join(" ")} ${A.join(" ")};`}),h=be(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=be(()=>Ow(e.name)),v=be(()=>{const M=EA.value,A=p.value;return M?A.replace(M,R=>`<span class="highlight">${R}</span>`):A}),m=be(()=>e.type!=="file"&&e.disableTaskLocation),b=be(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=be(()=>m.value?"color-red5 dark:color-#f43f5e":null);function T(){const M=t.value;e.type==="file"?e.onItemClick?.(M):Jw(M)}const L=be(()=>$w(e.projectNameColor));return(M,A)=>{const R=Dr("tooltip");return t.value?(re(),ge("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:Vt(d.value),"aria-label":e.name,"data-current":e.current,onClick:A[2]||(A[2]=B=>o())},[e.indent>0?(re(!0),ge(tt,{key:0},Kn(f.value,B=>(re(),ge("div",{key:B,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):ze("",!0),e.type==="file"||e.type==="suite"?(re(),ge("div",Qme,[J("div",{class:lt(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):ze("",!0),Ne(Gx,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),J("div",e0e,[e.type==="file"&&e.typecheck?st((re(),ge("div",t0e,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),J("span",n0e,[e.type==="file"&&e.projectName?(re(),ge("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Vt({backgroundColor:e.projectNameColor,color:L.value})},Pe(e.projectName),5)):ze("",!0),J("span",{text:e.state==="fail"?"red-500":"",innerHTML:v.value},null,8,r0e)]),typeof e.duration=="number"?(re(),ge("span",i0e,Pe(e.duration>0?e.duration:"< 1")+"ms ",1)):ze("",!0)]),J("div",o0e,[!X(pr)&&r.value?st((re(),Ge(Zme,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:A[0]||(A[0]=jc(B=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),Ne(X(rw),{placement:"bottom",class:lt(["w-1.4em h-1.4em op100 rounded flex",x.value])},{popper:Xe(()=>[m.value?(re(),ge("div",s0e,[A[5]||(A[5]=J("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),J("div",null,[ut(Pe(b.value)+": this feature is not available, you have disabled ",1),A[3]||(A[3]=J("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),A[4]||(A[4]=ut(" in your configuration file.",-1))]),A[6]||(A[6]=J("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))])):(re(),ge("div",l0e,Pe(b.value),1))]),default:Xe(()=>[Ne(Et,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:jc(T,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),X(pr)?ze("",!0):st((re(),Ge(Et,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:A[1]||(A[1]=jc(B=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[R,h.value,void 0,{bottom:!0}]])])],12,Jme)):ze("",!0)}}}),c0e=Li(a0e,[["__scopeId","data-v-58d301d8"]]),u0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},f0e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},d0e=["op"],h0e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},p0e={"text-red5":""},g0e={"text-yellow5":""},v0e={"text-green5":""},m0e={class:"text-purple5:50"},y0e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},b0e=["disabled"],w0e=["disabled"],x0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},_0e=et({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=be(()=>Xs.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:x,clearFilter:T,filteredFiles:L,testsTotal:M,uiEntries:A}=Vme(s),R=Ue("grid-cols-2"),B=Ue("grid-col-span-2"),E=Ue();return gw(()=>E.value,([{contentRect:W}])=>{W.width<420?(R.value="grid-cols-2",B.value="grid-col-span-2"):(R.value="grid-cols-4",B.value="grid-col-span-4")}),(W,U)=>{const se=Dr("tooltip");return re(),ge("div",{ref_key:"testExplorerRef",ref:E,h:"full",flex:"~ col"},[J("div",null,[J("div",u0e,[Bt(W.$slots,"header",{filteredFiles:X(p)||X(v)?X(L):void 0})]),J("div",f0e,[U[13]||(U[13]=J("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(J("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=ne=>Mt(d)?d.value=ne:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:X(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Xd(ne=>X(x)(!1),["esc"])),U[2]||(U[2]=Xd(ne=>r("run",X(p)||X(v)?X(L):void 0),["enter"]))]},null,40,d0e),[[Rb,X(d)]]),st(Ne(Et,{disabled:X(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=ne=>X(x)(!0))},null,8,["disabled"]),[[se,"Clear search",void 0,{bottom:!0}]])]),J("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:lt(R.value)},[J("div",{class:lt(B.value),flex:"~ gap-2 items-center"},[U[14]||(U[14]=J("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=J("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Ne(Et,{disabled:X(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=ne=>X(T)(!1))},null,8,["disabled"]),[[se,"Clear Filter",void 0,{bottom:!0}]])],2),Ne(Fc,{modelValue:X(f).failed,"onUpdate:modelValue":U[5]||(U[5]=ne=>X(f).failed=ne),label:"Fail"},null,8,["modelValue"]),Ne(Fc,{modelValue:X(f).success,"onUpdate:modelValue":U[6]||(U[6]=ne=>X(f).success=ne),label:"Pass"},null,8,["modelValue"]),Ne(Fc,{modelValue:X(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=ne=>X(f).skipped=ne),label:"Skip"},null,8,["modelValue"]),Ne(Fc,{modelValue:X(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=ne=>X(f).onlyTests=ne),label:"Only Tests"},null,8,["modelValue"])],2)]),J("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...ne)=>X(Lm)&&X(Lm)(...ne))},[Ne(Kme,null,Ck({default:Xe(()=>[(X(p)||X(v))&&X(A).length===0?(re(),ge(tt,{key:0},[X(c)?(re(),ge("div",y0e,[U[18]||(U[18]=J("div",{op30:""}," No matched test ",-1)),J("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(X(m)?null:"hover:op100"),disabled:X(m),onClickPassive:U[9]||(U[9]=ne=>X(x)(!0))}," Clear Search ",42,b0e),J("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(X(h)?null:"hover:op100"),disabled:X(h),onClickPassive:U[10]||(U[10]=ne=>X(T)(!0))}," Clear Filter ",42,w0e),J("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...ne)=>X(b)&&X(b)(...ne))}," Clear All ",32)])):(re(),ge("div",x0e,[...U[19]||(U[19]=[J("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),J("div",{op30:""}," Loading... ",-1)])]))],64)):(re(),Ge(X(Cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:X(A),buffer:100},{default:Xe(({item:ne})=>[Ne(c0e,{class:lt(["h-28px m-0 p-0",X(uo)===ne.id?"bg-active":""]),"task-id":ne.id,expandable:ne.expandable,type:ne.type,current:X(uo)===ne.id,indent:ne.indent,name:ne.name,typecheck:ne.typecheck===!0,"project-name":ne.projectName??"","project-name-color":ne.projectNameColor??"",state:ne.state,duration:ne.duration,opened:ne.expanded,"disable-task-location":!o.value,"on-item-click":e.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},[X(c)?{name:"summary",fn:Xe(()=>[J("div",h0e,[J("span",p0e," FAIL ("+Pe(X(M).failed)+") ",1),U[16]||(U[16]=J("span",null,"/",-1)),J("span",g0e," RUNNING ("+Pe(X(M).running)+") ",1),J("span",v0e," PASS ("+Pe(X(M).success)+") ",1),U[17]||(U[17]=J("span",null,"/",-1)),J("span",m0e," SKIP ("+Pe(X(f).onlyTests?X(M).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),S0e={class:"flex text-lg"},k0e=et({__name:"Navigation",setup(e){function t(){return ht.rpc.updateSnapshot()}const r=be(()=>nl.value?"light":"dark");async function o(f){Cs.value&&(wu.value=!0,await Ct(),fo.value&&(xu(!0),await Ct())),f?.length?await hp(f):await wce()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=Dr("tooltip");return re(),Ge(_0e,{border:"r base","on-item-click":X(qae),nested:!0,onRun:o},{header:Xe(({filteredFiles:p})=>[d[8]||(d[8]=J("img",{"w-6":"","h-6":"",src:yme,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=J("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),J("div",S0e,[st(Ne(Et,{title:"Collapse tests",disabled:!X(Gs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=v=>s())},null,8,["disabled"]),[[eo,!X(Xm)],[h,"Collapse tests",void 0,{bottom:!0}]]),st(Ne(Et,{disabled:!X(Gs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=v=>c())},null,8,["disabled"]),[[eo,X(Xm)],[h,"Expand tests",void 0,{bottom:!0}]]),st(Ne(Et,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=v=>X(xu)(!0))},null,512),[[eo,X(lh)&&!X(Cs)||!X(Is)],[h,"Dashboard",void 0,{bottom:!0}]]),X(lh)&&!X(Cs)?(re(),Ge(X(rw),{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:Xe(()=>[...d[6]||(d[6]=[J("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[J("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),J("div",null,"Coverage enabled but missing html reporter."),J("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:Xe(()=>[d[7]||(d[7]=J("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):ze("",!0),X(Cs)?st((re(),Ge(Et,{key:1,disabled:X(wu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=v=>X(jae)())},null,8,["disabled"])),[[eo,!X(fo)],[h,"Coverage",void 0,{bottom:!0}]]):ze("",!0),X(Ce).summary.failedSnapshot&&!X(pr)?st((re(),Ge(Et,{key:2,icon:"i-carbon:result-old",disabled:!X(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=v=>X(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),X(pr)?ze("",!0):st((re(),Ge(Et,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:v=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),st(Ne(Et,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=v=>X(Lge)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),T0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},C0e=et({__name:"ProgressBar",setup(e){const{width:t}=vw(),r=be(()=>[Ce.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ks.value&&"in-progress"].filter(Boolean).join(" ")),o=be(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=be(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=be(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=be(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(re(),ge("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:lt(r.value)},[J("div",T0e,[J("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:lt(r.value),style:Vt(`width: ${s.value}px;`)}," ",6),J("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:lt(r.value),style:Vt(`left: ${s.value}px; width: ${o.value}px;`)}," ",6),J("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:lt(r.value),style:Vt(`left: ${o.value+s.value}px; width: ${f.value}px;`)}," ",6)])],2))}}),E0e=Li(C0e,[["__scopeId","data-v-5320005b"]]),A0e={"h-screen":"","w-screen":"",overflow:"hidden"},L0e=et({__name:"index",setup(e){const t=Wae(),r=Ac(({panes:v})=>{h(),d(v)},0),o=Ac(({panes:v})=>{v.forEach((m,b)=>{Ds.value[b]=m.size}),f(v),p()},0),s=Ac(({panes:v})=>{v.forEach((m,b)=>{so.value[b]=m.size}),d(v),p()},0),c=Ac(({panes:v})=>{f(v),h()},0);function f(v){At.navigation=v[0].size,At.details.size=v[1].size}function d(v){At.details.browser=v[0].size,At.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>(re(),ge(tt,null,[Ne(E0e),J("div",A0e,[Ne(X($m),{class:"pt-4px",onResized:X(o),onResize:X(c)},{default:Xe(()=>[Ne(X(Nc),{size:X(Ds)[0]},{default:Xe(()=>[Ne(k0e)]),_:1},8,["size"]),Ne(X(Nc),{size:X(Ds)[1]},{default:Xe(()=>[X(Zn)?(re(),Ge(X($m),{id:"details-splitpanes",key:"browser-detail",onResize:X(r),onResized:X(s)},{default:Xe(()=>[Ne(X(Nc),{size:X(so)[0],"min-size":"10"},{default:Xe(()=>[m[0]||(js(-1,!0),(m[0]=Ne(Rce)).cacheIndex=0,js(1),m[0])]),_:1},8,["size"]),Ne(X(Nc),{size:X(so)[1]},{default:Xe(()=>[X(t)?(re(),Ge(w0,{key:"summary"})):X(fo)?(re(),Ge(b0,{key:"coverage",src:X(m0)},null,8,["src"])):(re(),Ge(U0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(re(),Ge(TT,{key:"ui-detail"},{default:Xe(()=>[X(t)?(re(),Ge(w0,{key:"summary"})):X(fo)?(re(),Ge(b0,{key:"coverage",src:X(m0)},null,8,["src"])):(re(),Ge(U0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(Ice)],64))}}),M0e=[{name:"index",path:"/",component:L0e,props:!0}];/*!
|
|
50
|
-
* vue-router v4.6.3
|
|
51
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
52
|
-
* @license MIT
|
|
53
|
-
*/const Ss=typeof document<"u";function l1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function N0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&l1(e.default)}const bt=Object.assign;function Nd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Ir(s)?s.map(e):e(s)}return r}const ia=()=>{},Ir=Array.isArray;function K0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const a1=/#/g,O0e=/&/g,R0e=/\//g,P0e=/=/g,$0e=/\?/g,c1=/\+/g,I0e=/%5B/g,D0e=/%5D/g,u1=/%5E/g,z0e=/%60/g,f1=/%7B/g,F0e=/%7C/g,d1=/%7D/g,H0e=/%20/g;function Ep(e){return e==null?"":encodeURI(""+e).replace(F0e,"|").replace(I0e,"[").replace(D0e,"]")}function B0e(e){return Ep(e).replace(f1,"{").replace(d1,"}").replace(u1,"^")}function Ch(e){return Ep(e).replace(c1,"%2B").replace(H0e,"+").replace(a1,"%23").replace(O0e,"%26").replace(z0e,"`").replace(f1,"{").replace(d1,"}").replace(u1,"^")}function W0e(e){return Ch(e).replace(P0e,"%3D")}function q0e(e){return Ep(e).replace(a1,"%23").replace($0e,"%3F")}function j0e(e){return q0e(e).replace(R0e,"%2F")}function Aa(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const U0e=/\/$/,V0e=e=>e.replace(U0e,"");function Od(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=Y0e(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Aa(f)}}function G0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function X0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function K0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Qs(t.matched[o],r.matched[s])&&h1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Qs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function h1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!X0e(e[r],t[r]))return!1;return!0}function X0e(e,t){return Ir(e)?Y0(e,t):Ir(t)?Y0(t,e):e===t}function Y0(e,t){return Ir(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function Y0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Ui={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Eh=(function(e){return e.pop="pop",e.push="push",e})({}),Rd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Z0e(e){if(!e)if(Ss){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),V0e(e)}const J0e=/^[^#]+#/;function Q0e(e,t){return e.replace(J0e,"#")+t}function eye(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const lf=()=>({left:window.scrollX,top:window.scrollY});function tye(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=eye(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 Z0(e,t){return(history.state?history.state.position-t:-1)+e}const Ah=new Map;function nye(e,t){Ah.set(e,t)}function rye(e){const t=Ah.get(e);return Ah.delete(e),t}function iye(e){return typeof e=="string"||e&&typeof e=="object"}function p1(e){return typeof e=="string"||typeof e=="symbol"}let Ht=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const g1=Symbol("");Ht.MATCHER_NOT_FOUND+"",Ht.NAVIGATION_GUARD_REDIRECT+"",Ht.NAVIGATION_ABORTED+"",Ht.NAVIGATION_CANCELLED+"",Ht.NAVIGATION_DUPLICATED+"";function el(e,t){return bt(new Error,{type:e,[g1]:!0},t)}function di(e,t){return e instanceof Error&&g1 in e&&(t==null||!!(e.type&t))}const oye=["params","query","hash"];function sye(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of oye)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function lye(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const s=r[o].replace(c1," "),c=s.indexOf("="),f=Aa(c<0?s:s.slice(0,c)),d=c<0?null:Aa(s.slice(c+1));if(f in t){let h=t[f];Ir(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function J0(e){let t="";for(let r in e){const o=e[r];if(r=W0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Ir(o)?o.map(s=>s&&Ch(s)):[o&&Ch(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function aye(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Ir(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const cye=Symbol(""),Q0=Symbol(""),Ap=Symbol(""),v1=Symbol(""),Lh=Symbol("");function Bl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Qi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(el(Ht.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):iye(b)?h(el(Ht.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function Pd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(l1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(Qi(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=N0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const b=(m.__vccOpts||m)[t];return b&&Qi(b,r,o,f,d,s)()}))}}return c}function uye(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Qs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Qs(p,h))||s.push(h))}return[r,o,s]}/*!
|
|
54
|
-
* vue-router v4.6.3
|
|
55
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
56
|
-
* @license MIT
|
|
57
|
-
*/let fye=()=>location.protocol+"//"+location.host;function m1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),X0(d,"")}return X0(r,e)+o+s}function dye(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=m1(e,location),T=r.value,L=t.value;let M=0;if(b){if(r.value=x,t.value=b,f&&f===T){f=null;return}M=L?b.position-L.position:0}else o(x);s.forEach(A=>{A(r.value,T,{delta:M,type:Eh.pop,direction:M?M>0?Rd.forward:Rd.back:Rd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const T=s.indexOf(b);T>-1&&s.splice(T,1)};return c.push(x),x}function v(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:lf()}),"")}}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",v),document.removeEventListener("visibilitychange",v)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",v),document.addEventListener("visibilitychange",v),{pauseListeners:h,listen:p,destroy:m}}function ey(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?lf():null}}function hye(e){const{history:t,location:r}=window,o={value:m1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:fye()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,ey(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:lf()});c(v.current,v,!0),c(h,bt({},ey(o.value,h,null),{position:v.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function pye(e){e=Z0e(e);const t=hye(e),r=dye(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:Q0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function gye(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),pye(e)}let Do=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var nn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(nn||{});const vye={type:Do.Static,value:""},mye=/[a-zA-Z0-9_]/;function yye(e){if(!e)return[[]];if(e==="/")return[[vye]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=nn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===nn.Static?c.push({type:Do.Static,value:p}):r===nn.Param||r===nn.ParamRegExp||r===nn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Do.Param,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==nn.ParamRegExp){o=r,r=nn.EscapeNext;continue}switch(r){case nn.Static:h==="/"?(p&&m(),f()):h===":"?(m(),r=nn.Param):b();break;case nn.EscapeNext:b(),r=o;break;case nn.Param:h==="("?r=nn.ParamRegExp:mye.test(h)?b():(m(),r=nn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case nn.ParamRegExp:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=nn.ParamRegExpEnd:v+=h;break;case nn.ParamRegExpEnd:m(),r=nn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===nn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}const ty="[^/]+?",bye={sensitive:!1,strict:!1,start:!0,end:!0};var On=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(On||{});const wye=/[.+*?^${}()[\]/\\]/g;function xye(e,t){const r=bt({},bye,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[On.Root];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let x=On.Segment+(r.sensitive?On.BonusCaseSensitive:0);if(b.type===Do.Static)m||(s+="/"),s+=b.value.replace(wye,"\\$&"),x+=On.Static;else if(b.type===Do.Param){const{value:T,repeatable:L,optional:M,regexp:A}=b;c.push({name:T,repeatable:L,optional:M});const R=A||ty;if(R!==ty){x+=On.BonusCustomRegExp;try{`${R}`}catch(E){throw new Error(`Invalid custom RegExp for param "${T}" (${R}): `+E.message)}}let B=L?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;m||(B=M&&p.length<2?`(?:/${B})`:"/"+B),M&&(B+="?"),s+=B,x+=On.Dynamic,M&&(x+=On.BonusOptional),L&&(x+=On.BonusRepeatable),R===".*"&&(x+=On.BonusWildcard)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=On.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",T=c[b-1];m[T.name]=x&&T.repeatable?x.split("/"):x}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const x of b)if(x.type===Do.Static)v+=x.value;else if(x.type===Do.Param){const{value:T,repeatable:L,optional:M}=x,A=T in p?p[T]:"";if(Ir(A)&&!L)throw new Error(`Provided param "${T}" is an array but it is not repeatable (* or + modifiers)`);const R=Ir(A)?A.join("/"):A;if(!R)if(M)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${T}"`);v+=R}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function _ye(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===On.Static+On.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===On.Static+On.Segment?1:-1:0}function y1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=_ye(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(ny(o))return 1;if(ny(s))return-1}return s.length-o.length}function ny(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Sye={strict:!1,end:!0,sensitive:!1};function kye(e,t,r){const o=xye(yye(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Tye(e,t){const r=[],o=new Map;t=K0(Sye,t);function s(m){return o.get(m)}function c(m,b,x){const T=!x,L=iy(m);L.aliasOf=x&&x.record;const M=K0(t,m),A=[L];if("alias"in m){const E=typeof m.alias=="string"?[m.alias]:m.alias;for(const W of E)A.push(iy(bt({},L,{components:x?x.record.components:L.components,path:W,aliasOf:x?x.record:L})))}let R,B;for(const E of A){const{path:W}=E;if(b&&W[0]!=="/"){const U=b.record.path,se=U[U.length-1]==="/"?"":"/";E.path=b.record.path+(W&&se+W)}if(R=kye(E,b,M),x?x.alias.push(R):(B=B||R,B!==R&&B.alias.push(R),T&&m.name&&!oy(R)&&f(m.name)),b1(R)&&h(R),L.children){const U=L.children;for(let se=0;se<U.length;se++)c(U[se],R,x&&x.children[se])}x=x||R}return B?()=>{f(B)}:ia}function f(m){if(p1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=Aye(m,r);r.splice(b,0,m),m.record.name&&!oy(m)&&o.set(m.record.name,m)}function p(m,b){let x,T={},L,M;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw el(Ht.MATCHER_NOT_FOUND,{location:m});M=x.record.name,T=bt(ry(b.params,x.keys.filter(B=>!B.optional).concat(x.parent?x.parent.keys.filter(B=>B.optional):[]).map(B=>B.name)),m.params&&ry(m.params,x.keys.map(B=>B.name))),L=x.stringify(T)}else if(m.path!=null)L=m.path,x=r.find(B=>B.re.test(L)),x&&(T=x.parse(L),M=x.record.name);else{if(x=b.name?o.get(b.name):r.find(B=>B.re.test(b.path)),!x)throw el(Ht.MATCHER_NOT_FOUND,{location:m,currentLocation:b});M=x.record.name,T=bt({},b.params,m.params),L=x.stringify(T)}const A=[];let R=x;for(;R;)A.unshift(R.record),R=R.parent;return{name:M,path:L,params:T,matched:A,meta:Eye(A)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function ry(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function iy(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Cye(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 Cye(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function oy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Eye(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function Aye(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;y1(e,t[c])<0?o=c:r=c+1}const s=Lye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function Lye(e){let t=e;for(;t=t.parent;)if(b1(t)&&y1(e,t)===0)return t}function b1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function sy(e){const t=hn(Ap),r=hn(v1),o=be(()=>{const h=X(e.to);return t.resolve(h)}),s=be(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Qs.bind(null,v));if(b>-1)return b;const x=ly(h[p-2]);return p>1&&ly(v)===x&&m[m.length-1].path!==x?m.findIndex(Qs.bind(null,h[p-2])):b}),c=be(()=>s.value>-1&&Pye(r.params,o.value.params)),f=be(()=>s.value>-1&&s.value===r.matched.length-1&&h1(r.params,o.value.params));function d(h={}){if(Rye(h)){const p=t[X(e.replace)?"replace":"push"](X(e.to)).catch(ia);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:be(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function Mye(e){return e.length===1?e[0]:e}const Nye=et({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:sy,setup(e,{slots:t}){const r=ir(sy(e)),{options:o}=hn(Ap),s=be(()=>({[ay(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[ay(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&Mye(t.default(r));return e.custom?c:$a("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),Oye=Nye;function Rye(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 Pye(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!Ir(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function ly(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ay=(e,t,r)=>e??t??r,$ye=et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=hn(Lh),s=be(()=>e.route||o.value),c=hn(Q0,0),f=be(()=>{let p=X(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=be(()=>s.value.matched[f.value]);dr(Q0,be(()=>f.value+1)),dr(cye,d),dr(Lh,s);const h=Ue();return St(()=>[h.value,d.value,e.name],([p,v,m],[b,x,T])=>{v&&(v.instances[m]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!Qs(v,x)||!b)&&(v.enterCallbacks[m]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return cy(r.default,{Component:b,route:p});const x=m.props[v],T=x?x===!0?p.params:typeof x=="function"?x(p):x:null,M=$a(b,bt({},T,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return cy(r.default,{Component:M,route:p})||M}}});function cy(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Iye=$ye;function Dye(e){const t=Tye(e.routes,e),r=e.parseQuery||lye,o=e.stringifyQuery||J0,s=e.history,c=Bl(),f=Bl(),d=Bl(),h=rn(Ui);let p=Ui;Ss&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Nd.bind(null,I=>""+I),m=Nd.bind(null,j0e),b=Nd.bind(null,Aa);function x(I,G){let ee,le;return p1(I)?(ee=t.getRecordMatcher(I),le=G):le=I,t.addRoute(le,ee)}function T(I){const G=t.getRecordMatcher(I);G&&t.removeRoute(G)}function L(){return t.getRoutes().map(I=>I.record)}function M(I){return!!t.getRecordMatcher(I)}function A(I,G){if(G=bt({},G||h.value),typeof I=="string"){const Y=Od(r,I,G.path),ue=t.resolve({path:Y.path},G),he=s.createHref(Y.fullPath);return bt(Y,ue,{params:b(ue.params),hash:Aa(Y.hash),redirectedFrom:void 0,href:he})}let ee;if(I.path!=null)ee=bt({},I,{path:Od(r,I.path,G.path).path});else{const Y=bt({},I.params);for(const ue in Y)Y[ue]==null&&delete Y[ue];ee=bt({},I,{params:m(Y)}),G.params=m(G.params)}const le=t.resolve(ee,G),oe=I.hash||"";le.params=v(b(le.params));const $=G0e(o,bt({},I,{hash:B0e(oe),path:le.path})),F=s.createHref($);return bt({fullPath:$,hash:oe,query:o===J0?aye(I.query):I.query||{}},le,{redirectedFrom:void 0,href:F})}function R(I){return typeof I=="string"?Od(r,I,h.value.path):bt({},I)}function B(I,G){if(p!==I)return el(Ht.NAVIGATION_CANCELLED,{from:G,to:I})}function E(I){return se(I)}function W(I){return E(bt(R(I),{replace:!0}))}function U(I,G){const ee=I.matched[I.matched.length-1];if(ee&&ee.redirect){const{redirect:le}=ee;let oe=typeof le=="function"?le(I,G):le;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=R(oe):{path:oe},oe.params={}),bt({query:I.query,hash:I.hash,params:oe.path!=null?{}:I.params},oe)}}function se(I,G){const ee=p=A(I),le=h.value,oe=I.state,$=I.force,F=I.replace===!0,Y=U(ee,le);if(Y)return se(bt(R(Y),{state:typeof Y=="object"?bt({},oe,Y.state):oe,force:$,replace:F}),G||ee);const ue=ee;ue.redirectedFrom=G;let he;return!$&&K0e(o,le,ee)&&(he=el(Ht.NAVIGATION_DUPLICATED,{to:ue,from:le}),$e(le,le,!0,!1)),(he?Promise.resolve(he):K(ue,le)).catch(de=>di(de)?di(de,Ht.NAVIGATION_GUARD_REDIRECT)?de:xe(de):ie(de,ue,le)).then(de=>{if(de){if(di(de,Ht.NAVIGATION_GUARD_REDIRECT))return se(bt({replace:F},R(de.to),{state:typeof de.to=="object"?bt({},oe,de.to.state):oe,force:$}),G||ue)}else de=P(ue,le,!0,F,oe);return V(ue,le,de),de})}function ne(I,G){const ee=B(I,G);return ee?Promise.reject(ee):Promise.resolve()}function Q(I){const G=Je.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext(I):I()}function K(I,G){let ee;const[le,oe,$]=uye(I,G);ee=Pd(le.reverse(),"beforeRouteLeave",I,G);for(const Y of le)Y.leaveGuards.forEach(ue=>{ee.push(Qi(ue,I,G))});const F=ne.bind(null,I,G);return ee.push(F),Me(ee).then(()=>{ee=[];for(const Y of c.list())ee.push(Qi(Y,I,G));return ee.push(F),Me(ee)}).then(()=>{ee=Pd(oe,"beforeRouteUpdate",I,G);for(const Y of oe)Y.updateGuards.forEach(ue=>{ee.push(Qi(ue,I,G))});return ee.push(F),Me(ee)}).then(()=>{ee=[];for(const Y of $)if(Y.beforeEnter)if(Ir(Y.beforeEnter))for(const ue of Y.beforeEnter)ee.push(Qi(ue,I,G));else ee.push(Qi(Y.beforeEnter,I,G));return ee.push(F),Me(ee)}).then(()=>(I.matched.forEach(Y=>Y.enterCallbacks={}),ee=Pd($,"beforeRouteEnter",I,G,Q),ee.push(F),Me(ee))).then(()=>{ee=[];for(const Y of f.list())ee.push(Qi(Y,I,G));return ee.push(F),Me(ee)}).catch(Y=>di(Y,Ht.NAVIGATION_CANCELLED)?Y:Promise.reject(Y))}function V(I,G,ee){d.list().forEach(le=>Q(()=>le(I,G,ee)))}function P(I,G,ee,le,oe){const $=B(I,G);if($)return $;const F=G===Ui,Y=Ss?history.state:{};ee&&(le||F?s.replace(I.fullPath,bt({scroll:F&&Y&&Y.scroll},oe)):s.push(I.fullPath,oe)),h.value=I,$e(I,G,ee,F),xe()}let O;function N(){O||(O=s.listen((I,G,ee)=>{if(!Fe.listening)return;const le=A(I),oe=U(le,Fe.currentRoute.value);if(oe){se(bt(oe,{replace:!0,force:!0}),le).catch(ia);return}p=le;const $=h.value;Ss&&nye(Z0($.fullPath,ee.delta),lf()),K(le,$).catch(F=>di(F,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_CANCELLED)?F:di(F,Ht.NAVIGATION_GUARD_REDIRECT)?(se(bt(R(F.to),{force:!0}),le).then(Y=>{di(Y,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&!ee.delta&&ee.type===Eh.pop&&s.go(-1,!1)}).catch(ia),Promise.reject()):(ee.delta&&s.go(-ee.delta,!1),ie(F,le,$))).then(F=>{F=F||P(le,$,!1),F&&(ee.delta&&!di(F,Ht.NAVIGATION_CANCELLED)?s.go(-ee.delta,!1):ee.type===Eh.pop&&di(F,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),V(le,$,F)}).catch(ia)}))}let S=Bl(),z=Bl(),H;function ie(I,G,ee){xe(I);const le=z.list();return le.length?le.forEach(oe=>oe(I,G,ee)):console.error(I),Promise.reject(I)}function me(){return H&&h.value!==Ui?Promise.resolve():new Promise((I,G)=>{S.add([I,G])})}function xe(I){return H||(H=!I,N(),S.list().forEach(([G,ee])=>I?ee(I):G()),S.reset()),I}function $e(I,G,ee,le){const{scrollBehavior:oe}=e;if(!Ss||!oe)return Promise.resolve();const $=!ee&&rye(Z0(I.fullPath,0))||(le||!ee)&&history.state&&history.state.scroll||null;return Ct().then(()=>oe(I,G,$)).then(F=>F&&tye(F)).catch(F=>ie(F,I,G))}const Ve=I=>s.go(I);let nt;const Je=new Set,Fe={currentRoute:h,listening:!0,addRoute:x,removeRoute:T,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:L,resolve:A,options:e,push:E,replace:W,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:z.add,isReady:me,install(I){I.component("RouterLink",Oye),I.component("RouterView",Iye),I.config.globalProperties.$router=Fe,Object.defineProperty(I.config.globalProperties,"$route",{enumerable:!0,get:()=>X(h)}),Ss&&!nt&&h.value===Ui&&(nt=!0,E(s.location).catch(le=>{}));const G={};for(const le in Ui)Object.defineProperty(G,le,{get:()=>h.value[le],enumerable:!0});I.provide(Ap,Fe),I.provide(v1,zh(G)),I.provide(Lh,h);const ee=I.unmount;Je.add(I),I.unmount=function(){Je.delete(I),Je.size<1&&(p=Ui,O&&O(),O=null,h.value=Ui,nt=!1,H=!1),ee()}}};function Me(I){return I.reduce((G,ee)=>G.then(()=>Q(ee)),Promise.resolve())}return Fe}const zye={tooltip:JC};iw.options.instantMove=!0;iw.options.distance=10;function Fye(){return Dye({history:gye(),routes:M0e})}const Hye=[Fye],Lp=Ib(tC);Hye.forEach(e=>{Lp.use(e())});Object.entries(zye).forEach(([e,t])=>{Lp.directive(e,t)});Lp.mount("#app");
|