@vitest/browser 4.1.0-beta.1 → 4.1.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.d.ts +0 -1
- package/dist/client/.vite/manifest.json +2 -2
- package/dist/client/__vitest__/assets/index-BcP0bNv8.js +59 -0
- package/dist/client/__vitest__/assets/index-DC7speYS.css +1 -0
- package/dist/client/__vitest__/favicon.ico +0 -0
- package/dist/client/__vitest__/favicon.svg +49 -4
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-S_3e_uzt.js → orchestrator-fh7lJzlE.js} +69 -27
- package/dist/client/__vitest_browser__/{tester-cVWT4Xmu.js → tester-CH-bVWK6.js} +56 -18
- package/dist/client/favicon.svg +49 -4
- package/dist/client/orchestrator.html +1 -1
- package/dist/client/tester/tester.html +1 -1
- package/dist/client.js +1 -1
- package/dist/context.js +0 -3
- package/dist/expect-element.js +1 -1
- package/dist/{index-5ZLDAkrH.js → index-Dlkb5vw8.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -10
- package/dist/locators.js +1 -1
- package/package.json +7 -7
- package/dist/client/__vitest__/assets/index-DHXSWiHD.js +0 -57
- package/dist/client/__vitest__/assets/index-DlhE0rqZ.css +0 -1
|
@@ -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.26
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function Fh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},$s=[],Xr=()=>{},A0=()=>!1,$u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hh=e=>e.startsWith("onUpdate:"),on=Object.assign,Bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},zS=Object.prototype.hasOwnProperty,wt=(e,t)=>zS.call(e,t),Ze=Array.isArray,Is=e=>Pa(e)==="[object Map]",Iu=e=>Pa(e)==="[object Set]",Bm=e=>Pa(e)==="[object Date]",tt=e=>typeof e=="function",Ht=e=>typeof e=="string",Pr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",L0=e=>(kt(e)||tt(e))&&tt(e.then)&&tt(e.catch),M0=Object.prototype.toString,Pa=e=>M0.call(e),FS=e=>Pa(e).slice(8,-1),N0=e=>Pa(e)==="[object Object]",Du=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yl=Fh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},HS=/-\w/g,sr=zu(e=>e.replace(HS,t=>t.slice(1).toUpperCase())),BS=/\B([A-Z])/g,Li=zu(e=>e.replace(BS,"-$1").toLowerCase()),Fu=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),qc=zu(e=>e?`on${Fu(e)}`:""),Gn=(e,t)=>!Object.is(e,t),jc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},O0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Wh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},P0=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let Wm;const Hu=()=>Wm||(Wm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(e){if(Ze(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ht(o)?US(o):zt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ht(e)||kt(e))return e}const WS=/;(?![^(]*\))/g,qS=/:([^]+)/,jS=/\/\*[^]*?\*\//g;function US(e){const t={};return e.replace(jS,"").split(WS).forEach(r=>{if(r){const o=r.split(qS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Ht(e))t=e;else if(Ze(e))for(let r=0;r<e.length;r++){const o=ot(e[r]);o&&(t+=o+" ")}else if(kt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function VS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ht(t)&&(e.class=ot(t)),r&&(e.style=zt(r)),e}const GS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",KS=Fh(GS);function R0(e){return!!e||e===""}function XS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Bu(e[o],t[o]);return r}function Bu(e,t){if(e===t)return!0;let r=Bm(e),o=Bm(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Pr(e),o=Pr(t),r||o)return e===t;if(r=Ze(e),o=Ze(t),r||o)return r&&o?XS(e,t):!1;if(r=kt(e),o=kt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!Bu(e[f],t[f]))return!1}}return String(e)===String(t)}function $0(e,t){return e.findIndex(r=>Bu(r,t))}const I0=e=>!!(e&&e.__v_isRef===!0),Re=e=>Ht(e)?e:e==null?"":Ze(e)||kt(e)&&(e.toString===M0||!tt(e.toString))?I0(e)?Re(e.value):JSON.stringify(e,D0,2):String(e),D0=(e,t)=>I0(t)?D0(e,t.value):Is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[fd(o,c)+" =>"]=s,r),{})}:Iu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>fd(r))}:Pr(t)?fd(t):kt(t)&&!Ze(t)&&!N0(t)?String(t):t,fd=(e,t="")=>{var r;return Pr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.26
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let bn;class YS{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 z0(){return bn}function ZS(e,t=!1){bn&&bn.cleanups.push(e)}let Tt;const dd=new WeakSet;class F0{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,dd.has(this)&&(dd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||B0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qm(this),W0(this);const t=Tt,r=Nr;Tt=this,Nr=!0;try{return this.fn()}finally{q0(this),Tt=t,Nr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Uh(t);this.deps=this.depsTail=void 0,qm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?dd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){jd(this)&&this.run()}get dirty(){return jd(this)}}let H0=0,Zl,Jl;function B0(e,t=!1){if(e.flags|=8,t){e.next=Jl,Jl=e;return}e.next=Zl,Zl=e}function qh(){H0++}function jh(){if(--H0>0)return;if(Jl){let t=Jl;for(Jl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Zl;){let t=Zl;for(Zl=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 W0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function q0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Uh(o),JS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function jd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(j0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function j0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ca)||(e.globalVersion=ca,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jd(e))))return;e.flags|=2;const t=e.dep,r=Tt,o=Nr;Tt=e,Nr=!0;try{W0(e);const s=e.fn(e._value);(t.version===0||Gn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=r,Nr=o,q0(e),e.flags&=-3}}function Uh(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)Uh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function JS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Nr=!0;const U0=[];function _i(){U0.push(Nr),Nr=!1}function Ti(){const e=U0.pop();Nr=e===void 0?!0:e}function qm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Tt;Tt=void 0;try{t()}finally{Tt=r}}}let ca=0;class QS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Tt||!Nr||Tt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Tt)r=this.activeLink=new QS(Tt,this),Tt.deps?(r.prevDep=Tt.depsTail,Tt.depsTail.nextDep=r,Tt.depsTail=r):Tt.deps=Tt.depsTail=r,V0(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=Tt.depsTail,r.nextDep=void 0,Tt.depsTail.nextDep=r,Tt.depsTail=r,Tt.deps===r&&(Tt.deps=o)}return r}trigger(t){this.version++,ca++,this.notify(t)}notify(t){qh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{jh()}}}function V0(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)V0(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const iu=new WeakMap,jo=Symbol(""),Ud=Symbol(""),ua=Symbol("");function wn(e,t,r){if(Nr&&Tt){let o=iu.get(e);o||iu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Wu),s.map=o,s.key=r),s.track()}}function bi(e,t,r,o,s,c){const f=iu.get(e);if(!f){ca++;return}const d=h=>{h&&h.trigger()};if(qh(),t==="clear")f.forEach(d);else{const h=Ze(e),p=h&&Du(r);if(h&&r==="length"){const g=Number(o);f.forEach((v,b)=>{(b==="length"||b===ua||!Pr(b)&&b>=g)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ua)),t){case"add":h?p&&d(f.get("length")):(d(f.get(jo)),Is(e)&&d(f.get(Ud)));break;case"delete":h||(d(f.get(jo)),Is(e)&&d(f.get(Ud)));break;case"set":Is(e)&&d(f.get(jo));break}}jh()}function e_(e,t){const r=iu.get(e);return r&&r.get(t)}function Ts(e){const t=mt(e);return t===e?t:(wn(t,"iterate",ua),or(e)?t:t.map(Rr))}function qu(e){return wn(e=mt(e),"iterate",ua),e}function Zi(e,t){return Ci(e)?Uo(e)?Xs(Rr(t)):Xs(t):Rr(t)}const t_={__proto__:null,[Symbol.iterator](){return hd(this,Symbol.iterator,e=>Zi(this,e))},concat(...e){return Ts(this).concat(...e.map(t=>Ze(t)?Ts(t):t))},entries(){return hd(this,"entries",e=>(e[1]=Zi(this,e[1]),e))},every(e,t){return fi(this,"every",e,t,void 0,arguments)},filter(e,t){return fi(this,"filter",e,t,r=>r.map(o=>Zi(this,o)),arguments)},find(e,t){return fi(this,"find",e,t,r=>Zi(this,r),arguments)},findIndex(e,t){return fi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return fi(this,"findLast",e,t,r=>Zi(this,r),arguments)},findLastIndex(e,t){return fi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return fi(this,"forEach",e,t,void 0,arguments)},includes(...e){return pd(this,"includes",e)},indexOf(...e){return pd(this,"indexOf",e)},join(e){return Ts(this).join(e)},lastIndexOf(...e){return pd(this,"lastIndexOf",e)},map(e,t){return fi(this,"map",e,t,void 0,arguments)},pop(){return zl(this,"pop")},push(...e){return zl(this,"push",e)},reduce(e,...t){return jm(this,"reduce",e,t)},reduceRight(e,...t){return jm(this,"reduceRight",e,t)},shift(){return zl(this,"shift")},some(e,t){return fi(this,"some",e,t,void 0,arguments)},splice(...e){return zl(this,"splice",e)},toReversed(){return Ts(this).toReversed()},toSorted(e){return Ts(this).toSorted(e)},toSpliced(...e){return Ts(this).toSpliced(...e)},unshift(...e){return zl(this,"unshift",e)},values(){return hd(this,"values",e=>Zi(this,e))}};function hd(e,t,r){const o=qu(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 n_=Array.prototype;function fi(e,t,r,o,s,c){const f=qu(e),d=f!==e&&!or(e),h=f[t];if(h!==n_[t]){const v=h.apply(e,c);return d?Rr(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,Zi(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const g=h.call(f,p,o);return d&&s?s(g):g}function jm(e,t,r,o){const s=qu(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,Zi(e,d),h,e)}),s[t](c,...o)}function pd(e,t,r){const o=mt(e);wn(o,"iterate",ua);const s=o[t](...r);return(s===-1||s===!1)&&ju(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function zl(e,t,r=[]){_i(),qh();const o=mt(e)[t].apply(e,r);return jh(),Ti(),o}const r_=Fh("__proto__,__v_isRef,__isVue"),G0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pr));function i_(e){Pr(e)||(e=String(e));const t=mt(this);return wn(t,"has",e),t.hasOwnProperty(e)}class K0{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?p_:J0:c?Z0:Y0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Ze(t);if(!s){let h;if(f&&(h=t_[r]))return h;if(r==="hasOwnProperty")return i_}const d=Reflect.get(t,r,Mt(t)?t:o);if((Pr(r)?G0.has(r):r_(r))||(s||wn(t,"get",r),c))return d;if(Mt(d)){const h=f&&Du(r)?d:d.value;return s&&kt(h)?Ks(h):h}return kt(d)?s?Ks(d):ir(d):d}}class X0 extends K0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Ze(t)&&Du(r);if(!this._isShallow){const p=Ci(c);if(!or(o)&&!Ci(o)&&(c=mt(c),o=mt(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===mt(s)&&(d?Gn(o,c)&&bi(t,"set",r,o):bi(t,"add",r,o)),h}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&bi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Pr(r)||!G0.has(r))&&wn(t,"has",r),o}ownKeys(t){return wn(t,"iterate",Ze(t)?"length":jo),Reflect.ownKeys(t)}}class o_ extends K0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const s_=new X0,l_=new o_,a_=new X0(!0);const Vd=e=>e,Tc=e=>Reflect.getPrototypeOf(e);function c_(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=Is(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),g=r?Vd:t?Xs:Rr;return!t&&wn(c,"iterate",h?Ud:jo),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[g(v[0]),g(v[1])]:g(v),done:b}},[Symbol.iterator](){return this}}}}function Cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function u_(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Gn(s,d)&&wn(f,"get",s),wn(f,"get",d));const{has:h}=Tc(f),p=t?Vd:e?Xs:Rr;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(mt(s),"iterate",jo),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Gn(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=mt(d),p=t?Vd:e?Xs:Rr;return!e&&wn(h,"iterate",jo),d.forEach((g,v)=>s.call(c,p(g),p(v),f))}};return on(r,e?{add:Cc("add"),set:Cc("set"),delete:Cc("delete"),clear:Cc("clear")}:{add(s){!t&&!or(s)&&!Ci(s)&&(s=mt(s));const c=mt(this);return Tc(c).has.call(c,s)||(c.add(s),bi(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!Ci(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=Tc(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const g=h.call(f,s);return f.set(s,c),p?Gn(c,g)&&bi(f,"set",s,c):bi(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=Tc(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&bi(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&bi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=c_(s,e,t)}),r}function Vh(e,t){const r=u_(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 f_={get:Vh(!1,!1)},d_={get:Vh(!1,!0)},h_={get:Vh(!0,!1)};const Y0=new WeakMap,Z0=new WeakMap,J0=new WeakMap,p_=new WeakMap;function g_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function m_(e){return e.__v_skip||!Object.isExtensible(e)?0:g_(FS(e))}function ir(e){return Ci(e)?e:Kh(e,!1,s_,f_,Y0)}function Gh(e){return Kh(e,!1,a_,d_,Z0)}function Ks(e){return Kh(e,!0,l_,h_,J0)}function Kh(e,t,r,o,s){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=m_(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 Uo(e){return Ci(e)?Uo(e.__v_raw):!!(e&&e.__v_isReactive)}function Ci(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function ju(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function Uu(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&O0(e,"__v_skip",!0),e}const Rr=e=>kt(e)?ir(e):e,Xs=e=>kt(e)?Ks(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function Ge(e){return Q0(e,!1)}function Ft(e){return Q0(e,!0)}function Q0(e,t){return Mt(e)?e:new v_(e,t)}class v_{constructor(t,r){this.dep=new Wu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:Rr(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)||Ci(t);t=o?t:mt(t),Gn(t,r)&&(this._rawValue=t,this._value=o?t:Rr(t),this.dep.trigger())}}function K(e){return Mt(e)?e.value:e}function Xt(e){return tt(e)?e():K(e)}const y_={get:(e,t,r)=>t==="__v_raw"?e:K(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 eb(e){return Uo(e)?e:new Proxy(e,y_)}class b_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Wu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function tb(e){return new b_(e)}function w_(e){const t=Ze(e)?new Array(e.length):{};for(const r in e)t[r]=nb(e,r);return t}class x_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=mt(t);let s=!0,c=t;if(!Ze(t)||!Du(String(r)))do s=!ju(c)||or(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=K(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 e_(this._raw,this._key)}}class k_{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 S_(e,t,r){return Mt(e)?e:tt(e)?new k_(e):kt(e)&&arguments.length>1?nb(e,t,r):Ge(e)}function nb(e,t,r){return new x_(e,t,r)}class __{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Wu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ca-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return B0(this,!0),!0}get value(){const t=this.dep.track();return j0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function T_(e,t,r=!1){let o,s;return tt(e)?o=e:(o=e.get,s=e.set),new __(o,s,r)}const Ec={},ou=new WeakMap;let Io;function C_(e,t=!1,r=Io){if(r){let o=ou.get(r);o||ou.set(r,o=[]),o.push(e)}}function E_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=_=>s?_:or(_)||s===!1||s===0?wi(_,1):wi(_);let g,v,b,w,E=!1,L=!1;if(Mt(e)?(v=()=>e.value,E=or(e)):Uo(e)?(v=()=>p(e),E=!0):Ze(e)?(L=!0,E=e.some(_=>Uo(_)||or(_)),v=()=>e.map(_=>{if(Mt(_))return _.value;if(Uo(_))return p(_);if(tt(_))return h?h(_,2):_()})):tt(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){_i();try{b()}finally{Ti()}}const _=Io;Io=g;try{return h?h(e,3,[w]):e(w)}finally{Io=_}}:v=Xr,t&&s){const _=v,$=s===!0?1/0:s;v=()=>wi(_(),$)}const P=z0(),M=()=>{g.stop(),P&&P.active&&Bh(P.effects,g)};if(c&&t){const _=t;t=(...$)=>{_(...$),M()}}let R=L?new Array(e.length).fill(Ec):Ec;const I=_=>{if(!(!(g.flags&1)||!g.dirty&&!_))if(t){const $=g.run();if(s||E||(L?$.some((j,re)=>Gn(j,R[re])):Gn($,R))){b&&b();const j=Io;Io=g;try{const re=[$,R===Ec?void 0:L&&R[0]===Ec?[]:R,w];R=$,h?h(t,3,re):t(...re)}finally{Io=j}}}else g.run()};return d&&d(I),g=new F0(v),g.scheduler=f?()=>f(I,!1):I,w=_=>C_(_,!1,g),b=g.onStop=()=>{const _=ou.get(g);if(_){if(h)h(_,4);else for(const $ of _)$();ou.delete(g)}},t?o?I(!0):R=g.run():f?f(I.bind(null,!0),!0):g.run(),M.pause=g.pause.bind(g),M.resume=g.resume.bind(g),M.stop=M,M}function wi(e,t=1/0,r){if(t<=0||!kt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Mt(e))wi(e.value,t,r);else if(Ze(e))for(let o=0;o<e.length;o++)wi(e[o],t,r);else if(Iu(e)||Is(e))e.forEach(o=>{wi(o,t,r)});else if(N0(e)){for(const o in e)wi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&wi(e[o],t,r)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.26
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Ra(e,t,r,o){try{return o?e(...o):e()}catch(s){$a(s,t,r)}}function $r(e,t,r,o){if(tt(e)){const s=Ra(e,t,r,o);return s&&L0(s)&&s.catch(c=>{$a(c,t,r)}),s}if(Ze(e)){const s=[];for(let c=0;c<e.length;c++)s.push($r(e[c],t,r,o));return s}}function $a(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const g=d.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}d=d.parent}if(c){_i(),Ra(c,null,10,[e,h,p]),Ti();return}}A_(e,r,s,o,f)}function A_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Pn=[];let Gr=-1;const Ds=[];let Ji=null,As=0;const rb=Promise.resolve();let su=null;function Et(e){const t=su||rb;return e?t.then(this?e.bind(this):e):t}function L_(e){let t=Gr+1,r=Pn.length;for(;t<r;){const o=t+r>>>1,s=Pn[o],c=fa(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Xh(e){if(!(e.flags&1)){const t=fa(e),r=Pn[Pn.length-1];!r||!(e.flags&2)&&t>=fa(r)?Pn.push(e):Pn.splice(L_(t),0,e),e.flags|=1,ib()}}function ib(){su||(su=rb.then(sb))}function Gd(e){Ze(e)?Ds.push(...e):Ji&&e.id===-1?Ji.splice(As+1,0,e):e.flags&1||(Ds.push(e),e.flags|=1),ib()}function Um(e,t,r=Gr+1){for(;r<Pn.length;r++){const o=Pn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Pn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function ob(e){if(Ds.length){const t=[...new Set(Ds)].sort((r,o)=>fa(r)-fa(o));if(Ds.length=0,Ji){Ji.push(...t);return}for(Ji=t,As=0;As<Ji.length;As++){const r=Ji[As];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Ji=null,As=0}}const fa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function sb(e){try{for(Gr=0;Gr<Pn.length;Gr++){const t=Pn[Gr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ra(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gr<Pn.length;Gr++){const t=Pn[Gr];t&&(t.flags&=-2)}Gr=-1,Pn.length=0,ob(),su=null,(Pn.length||Ds.length)&&sb()}}let mn=null,Vu=null;function lu(e){const t=mn;return mn=e,Vu=e&&e.type.__scopeId||null,t}function lb(e){Vu=e}function ab(){Vu=null}const cb=e=>We;function We(e,t=mn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Zs(-1);const c=lu(t);let f;try{f=e(...s)}finally{lu(c),o._d&&Zs(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function at(e,t){if(mn===null)return e;const r=Qu(mn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(tt(c)&&(c={mounted:c,updated:c}),c.deep&&wi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function No(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&&(_i(),$r(h,r,8,[e.el,d,e,t]),Ti())}}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 pn(e,t,r=!1){const o=ti();if(o||Vo){let s=Vo?Vo._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&&tt(t)?t.call(o&&o.proxy):t}}function ub(){return!!(ti()||Vo)}const M_=Symbol.for("v-scx"),N_=()=>pn(M_);function fb(e,t){return Gu(e,null,t)}function O_(e,t){return Gu(e,null,{flush:"sync"})}function xt(e,t,r){return Gu(e,t,r)}function Gu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=on({},r),h=t&&o||!t&&c!=="post";let p;if(ga){if(c==="sync"){const w=N_();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Xr,w.resume=Xr,w.pause=Xr,w}}const g=xn;d.call=(w,E,L)=>$r(w,g,E,L);let v=!1;c==="post"?d.scheduler=w=>{jn(w,g&&g.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(w,E)=>{E?w():Xh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const b=E_(e,t,d);return ga&&(p?p.push(b):h&&b()),b}function P_(e,t,r){const o=this.proxy,s=Ht(e)?e.includes(".")?db(o,e):()=>o[e]:e.bind(o,o);let c;tt(t)?c=t:(c=t.handler,r=t);const f=za(this),d=Gu(s,c.bind(o),r);return f(),d}function db(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}}const R_=Symbol("_vte"),hb=e=>e.__isTeleport,yi=Symbol("_leaveCb"),Ac=Symbol("_enterCb");function $_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ni(()=>{e.isMounted=!0}),Ia(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],pb={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},gb=e=>{const t=e.subTree;return t.component?gb(t.component):t},I_={name:"BaseTransition",props:pb,setup(e,{slots:t}){const r=ti(),o=$_();return()=>{const s=t.default&&yb(t.default(),!0);if(!s||!s.length)return;const c=mb(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return gd(c);const h=Vm(c);if(!h)return gd(c);let p=Kd(h,f,o,r,v=>p=v);h.type!==ln&&da(h,p);let g=r.subTree&&Vm(r.subTree);if(g&&g.type!==ln&&!Kr(g,h)&&gb(r).type!==ln){let v=Kd(g,f,o,r);if(da(g,v),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},gd(c);d==="in-out"&&h.type!==ln?v.delayLeave=(b,w,E)=>{const L=vb(o,g);L[String(g.key)]=g,b[yi]=()=>{w(),b[yi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{E(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function mb(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ln){t=r;break}}return t}const D_=I_;function vb(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 Kd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:E,onLeaveCancelled:L,onBeforeAppear:P,onAppear:M,onAfterAppear:R,onAppearCancelled:I}=t,_=String(e.key),$=vb(r,e),j=(Z,G)=>{Z&&$r(Z,o,9,G)},re=(Z,G)=>{const q=G[1];j(Z,G),Ze(Z)?Z.every(O=>O.length<=1)&&q():Z.length<=1&&q()},ee={mode:f,persisted:d,beforeEnter(Z){let G=h;if(!r.isMounted)if(c)G=P||h;else return;Z[yi]&&Z[yi](!0);const q=$[_];q&&Kr(e,q)&&q.el[yi]&&q.el[yi](),j(G,[Z])},enter(Z){let G=p,q=g,O=v;if(!r.isMounted)if(c)G=M||p,q=R||g,O=I||v;else return;let N=!1;const C=Z[Ac]=k=>{N||(N=!0,k?j(O,[Z]):j(q,[Z]),ee.delayedLeave&&ee.delayedLeave(),Z[Ac]=void 0)};G?re(G,[Z,C]):C()},leave(Z,G){const q=String(e.key);if(Z[Ac]&&Z[Ac](!0),r.isUnmounting)return G();j(b,[Z]);let O=!1;const N=Z[yi]=C=>{O||(O=!0,G(),C?j(L,[Z]):j(E,[Z]),Z[yi]=void 0,$[q]===e&&delete $[q])};$[q]=e,w?re(w,[Z,N]):N()},clone(Z){const G=Kd(Z,t,r,o,s);return s&&s(G),G}};return ee}function gd(e){if(Ku(e))return e=fo(e),e.children=null,e}function Vm(e){if(!Ku(e))return hb(e.type)&&e.children?mb(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&&tt(r.default))return r.default()}}function da(e,t){e.shapeFlag&6&&e.component?(e.transition=t,da(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 yb(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===et?(f.patchFlag&128&&s++,o=o.concat(yb(f.children,t,d))):(t||f.type!==ln)&&o.push(d!=null?fo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function rt(e,t){return tt(e)?on({name:e.name},t,{setup:e}):e}function Yh(){const e=ti();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function bb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const au=new WeakMap;function Ql(e,t,r,o,s=!1){if(Ze(e)){e.forEach((E,L)=>Ql(E,t&&(Ze(t)?t[L]:t),r,o,s));return}if(zs(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Ql(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Qu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,g=d.refs===vt?d.refs={}:d.refs,v=d.setupState,b=mt(v),w=v===vt?A0:E=>wt(b,E);if(p!=null&&p!==h){if(Gm(t),Ht(p))g[p]=null,w(p)&&(v[p]=null);else if(Mt(p)){p.value=null;const E=t;E.k&&(g[E.k]=null)}}if(tt(h))Ra(h,d,12,[f,g]);else{const E=Ht(h),L=Mt(h);if(E||L){const P=()=>{if(e.f){const M=E?w(h)?v[h]:g[h]:h.value;if(s)Ze(M)&&Bh(M,c);else if(Ze(M))M.includes(c)||M.push(c);else if(E)g[h]=[c],w(h)&&(v[h]=g[h]);else{const R=[c];h.value=R,e.k&&(g[e.k]=R)}}else E?(g[h]=f,w(h)&&(v[h]=f)):L&&(h.value=f,e.k&&(g[e.k]=f))};if(f){const M=()=>{P(),au.delete(e)};M.id=-1,au.set(e,M),jn(M,r)}else Gm(e),P()}}}function Gm(e){const t=au.get(e);t&&(t.flags|=8,au.delete(e))}Hu().requestIdleCallback;Hu().cancelIdleCallback;const zs=e=>!!e.type.__asyncLoader,Ku=e=>e.type.__isKeepAlive;function z_(e,t){wb(e,"a",t)}function F_(e,t){wb(e,"da",t)}function wb(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(Xu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Ku(s.parent.vnode)&&H_(o,t,r,s),s=s.parent}}function H_(e,t,r,o){const s=Xu(t,e,o,!0);Da(()=>{Bh(o[t],s)},r)}function Xu(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{_i();const d=za(r),h=$r(t,r,e,f);return d(),Ti(),h});return o?s.unshift(c):s.push(c),c}}const Mi=e=>(t,r=xn)=>{(!ga||e==="sp")&&Xu(e,(...o)=>t(...o),r)},B_=Mi("bm"),Ni=Mi("m"),W_=Mi("bu"),q_=Mi("u"),Ia=Mi("bum"),Da=Mi("um"),j_=Mi("sp"),U_=Mi("rtg"),V_=Mi("rtc");function G_(e,t=xn){Xu("ec",e,t)}const Zh="components",K_="directives";function Ko(e,t){return Jh(Zh,e,!0,t)||e}const xb=Symbol.for("v-ndc");function Xd(e){return Ht(e)?Jh(Zh,e,!1)||e:e||xb}function vr(e){return Jh(K_,e)}function Jh(e,t,r=!0,o=!1){const s=mn||xn;if(s){const c=s.type;if(e===Zh){const d=IT(c,!1);if(d&&(d===t||d===sr(t)||d===Fu(sr(t))))return c}const f=Km(s[e]||c[e],t)||Km(s.appContext[e],t);return!f&&o?c:f}}function Km(e,t){return e&&(e[t]||e[sr(t)]||e[Fu(sr(t))])}function $n(e,t,r,o){let s;const c=r,f=Ze(e);if(f||Ht(e)){const d=f&&Uo(e);let h=!1,p=!1;d&&(h=!or(e),p=Ci(e),e=qu(e)),s=new Array(e.length);for(let g=0,v=e.length;g<v;g++)s[g]=t(h?p?Xs(Rr(e[g])):Rr(e[g]):e[g],g,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(kt(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 g=d[h];s[h]=t(e[g],g,h,c)}}else s=[];return s}function X_(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Ze(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Dt(e,t,r={},o,s){if(mn.ce||mn.parent&&zs(mn.parent)&&mn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),ie(),Ve(et,null,[Ne("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),ie();const f=c&&kb(c(r)),d=r.key||f&&f.key,h=Ve(et,{key:(d&&!Pr(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 kb(e){return e.some(t=>Js(t)?!(t.type===ln||t.type===et&&!kb(t.children)):!0)?e:null}function Y_(e,t){const r={};for(const o in e)r[qc(o)]=e[o];return r}const Yd=e=>e?Gb(e)?Qu(e):Yd(e.parent):null,ea=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=>Yd(e.parent),$root:e=>Yd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Cb(e),$forceUpdate:e=>e.f||(e.f=()=>{Xh(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>P_.bind(e)}),md=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),Z_={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(md(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if(wt(c,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Zd&&(f[t]=0)}}const p=ea[t];let g,v;if(p)return t==="$attrs"&&wn(e.attrs,"get",""),p(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,wt(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return md(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,props:c,type:f}},d){let h;return!!(r[d]||e!==vt&&d[0]!=="$"&&wt(e,d)||md(t,d)||wt(c,d)||wt(o,d)||wt(ea,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 Sb(){return _b().slots}function J_(){return _b().attrs}function _b(e){const t=ti();return t.setupContext||(t.setupContext=Xb(t))}function cu(e){return Ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function ha(e,t){return!e||!t?e||t:Ze(e)&&Ze(t)?e.concat(t):on({},cu(e),cu(t))}let Zd=!0;function Q_(e){const t=Cb(e),r=e.proxy,o=e.ctx;Zd=!1,t.beforeCreate&&Xm(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:g,beforeMount:v,mounted:b,beforeUpdate:w,updated:E,activated:L,deactivated:P,beforeDestroy:M,beforeUnmount:R,destroyed:I,unmounted:_,render:$,renderTracked:j,renderTriggered:re,errorCaptured:ee,serverPrefetch:Z,expose:G,inheritAttrs:q,components:O,directives:N,filters:C}=t;if(p&&eT(p,o,null),f)for(const B in f){const ae=f[B];tt(ae)&&(o[B]=ae.bind(r))}if(s){const B=s.call(r,r);kt(B)&&(e.data=ir(B))}if(Zd=!0,c)for(const B in c){const ae=c[B],me=tt(ae)?ae.bind(r,r):tt(ae.get)?ae.get.bind(r,r):Xr,Se=!tt(ae)&&tt(ae.set)?ae.set.bind(r):Xr,Be=ke({get:me,set:Se});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ae=>Be.value=Ae})}if(d)for(const B in d)Tb(d[B],o,r,B);if(h){const B=tt(h)?h.call(r):h;Reflect.ownKeys(B).forEach(ae=>{dr(ae,B[ae])})}g&&Xm(g,e,"c");function z(B,ae){Ze(ae)?ae.forEach(me=>B(me.bind(r))):ae&&B(ae.bind(r))}if(z(B_,v),z(Ni,b),z(W_,w),z(q_,E),z(z_,L),z(F_,P),z(G_,ee),z(V_,j),z(U_,re),z(Ia,R),z(Da,_),z(j_,Z),Ze(G))if(G.length){const B=e.exposed||(e.exposed={});G.forEach(ae=>{Object.defineProperty(B,ae,{get:()=>r[ae],set:me=>r[ae]=me,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===Xr&&(e.render=$),q!=null&&(e.inheritAttrs=q),O&&(e.components=O),N&&(e.directives=N),Z&&bb(e)}function eT(e,t,r=Xr){Ze(e)&&(e=Jd(e));for(const o in e){const s=e[o];let c;kt(s)?"default"in s?c=pn(s.from||o,s.default,!0):c=pn(s.from||o):c=pn(s),Mt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Xm(e,t,r){$r(Ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Tb(e,t,r,o){let s=o.includes(".")?db(r,o):()=>r[o];if(Ht(e)){const c=t[e];tt(c)&&xt(s,c)}else if(tt(e))xt(s,e.bind(r));else if(kt(e))if(Ze(e))e.forEach(c=>Tb(c,t,r,o));else{const c=tt(e.handler)?e.handler.bind(r):t[e.handler];tt(c)&&xt(s,c,e)}}function Cb(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=>uu(h,p,f,!0)),uu(h,t,f)),kt(t)&&c.set(t,h),h}function uu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&uu(e,c,r,!0),s&&s.forEach(f=>uu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=tT[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const tT={data:Ym,props:Zm,emits:Zm,methods:Vl,computed:Vl,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:Vl,directives:Vl,watch:rT,provide:Ym,inject:nT};function Ym(e,t){return t?e?function(){return on(tt(e)?e.call(this,this):e,tt(t)?t.call(this,this):t)}:t:e}function nT(e,t){return Vl(Jd(e),Jd(t))}function Jd(e){if(Ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Vl(e,t){return e?on(Object.create(null),e,t):t}function Zm(e,t){return e?Ze(e)&&Ze(t)?[...new Set([...e,...t])]:on(Object.create(null),cu(e),cu(t??{})):t}function rT(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 Eb(){return{app:null,config:{isNativeTag:A0,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 iT=0;function oT(e,t){return function(o,s=null){tt(o)||(o=on({},o)),s!=null&&!kt(s)&&(s=null);const c=Eb(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:iT++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:zT,get config(){return c.config},set config(g){},use(g,...v){return f.has(g)||(g&&tt(g.install)?(f.add(g),g.install(p,...v)):tt(g)&&(f.add(g),g(p,...v))),p},mixin(g){return c.mixins.includes(g)||c.mixins.push(g),p},component(g,v){return v?(c.components[g]=v,p):c.components[g]},directive(g,v){return v?(c.directives[g]=v,p):c.directives[g]},mount(g,v,b){if(!h){const w=p._ceVNode||Ne(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,g,b),h=!0,p._container=g,g.__vue_app__=p,Qu(w.component)}},onUnmount(g){d.push(g)},unmount(){h&&($r(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return c.provides[g]=v,p},runWithContext(g){const v=Vo;Vo=p;try{return g()}finally{Vo=v}}};return p}}let Vo=null;function Yu(e,t,r=vt){const o=ti(),s=sr(t),c=Li(t),f=Ab(e,s),d=tb((h,p)=>{let g,v=vt,b;return O_(()=>{const w=e[s];Gn(g,w)&&(g=w,p())}),{get(){return h(),r.get?r.get(g):g},set(w){const E=r.set?r.set(w):w;if(!Gn(E,g)&&!(v!==vt&&Gn(w,v)))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)||(g=w,p()),o.emit(`update:${t}`,E),Gn(w,E)&&Gn(w,v)&&!Gn(E,b)&&p(),v=w,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Ab=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sr(t)}Modifiers`]||e[`${Li(t)}Modifiers`];function sT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Ab(o,t.slice(7));f&&(f.trim&&(s=r.map(g=>Ht(g)?g.trim():g)),f.number&&(s=r.map(Wh)));let d,h=o[d=qc(t)]||o[d=qc(sr(t))];!h&&c&&(h=o[d=qc(Li(t))]),h&&$r(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,$r(p,e,6,s)}}const lT=new WeakMap;function Lb(e,t,r=!1){const o=r?lT:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!tt(e)){const h=p=>{const g=Lb(p,t,!0);g&&(d=!0,on(f,g))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(kt(e)&&o.set(e,null),null):(Ze(c)?c.forEach(h=>f[h]=null):on(f,c),kt(e)&&o.set(e,f),f)}function Zu(e,t){return!e||!$u(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Li(t))||wt(e,t))}function Jm(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:g,props:v,data:b,setupState:w,ctx:E,inheritAttrs:L}=e,P=lu(e);let M,R;try{if(r.shapeFlag&4){const _=s||o,$=_;M=Lr(p.call($,_,g,v,w,b,E)),R=d}else{const _=t;M=Lr(_.length>1?_(v,{attrs:d,slots:f,emit:h}):_(v,null)),R=t.props?d:cT(d)}}catch(_){ta.length=0,$a(_,e,1),M=Ne(ln)}let I=M;if(R&&L!==!1){const _=Object.keys(R),{shapeFlag:$}=I;_.length&&$&7&&(c&&_.some(Hh)&&(R=uT(R,c)),I=fo(I,R,!1,!0))}return r.dirs&&(I=fo(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(r.dirs):r.dirs),r.transition&&da(I,r.transition),M=I,lu(P),M}function aT(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Js(s)){if(s.type!==ln||s.children==="v-if"){if(r)return;r=s}}else return}return r}const cT=e=>{let t;for(const r in e)(r==="class"||r==="style"||$u(r))&&((t||(t={}))[r]=e[r]);return t},uT=(e,t)=>{const r={};for(const o in e)(!Hh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function fT(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?Qm(o,f,p):!!f;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const b=g[v];if(f[b]!==o[b]&&!Zu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Qm(o,f,p):!0:!!f;return!1}function Qm(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]&&!Zu(r,c))return!0}return!1}function Qh({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 Mb={},Nb=()=>Object.create(Mb),Ob=e=>Object.getPrototypeOf(e)===Mb;function dT(e,t,r,o=!1){const s={},c=Nb();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:Gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function hT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let b=g[v];if(Zu(e.emitsOptions,b))continue;const w=t[b];if(h)if(wt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const E=sr(b);s[E]=Qd(h,d,E,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Pb(e,t,s,c)&&(p=!0);let g;for(const v in d)(!t||!wt(t,v)&&((g=Li(v))===v||!wt(t,g)))&&(h?r&&(r[v]!==void 0||r[g]!==void 0)&&(s[v]=Qd(h,d,v,void 0,e,!0)):delete s[v]);if(c!==d)for(const v in c)(!t||!wt(t,v))&&(delete c[v],p=!0)}p&&bi(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(Yl(h))continue;const p=t[h];let g;s&&wt(s,g=sr(h))?!c||!c.includes(g)?r[g]=p:(d||(d={}))[g]=p:Zu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=mt(r),p=d||vt;for(let g=0;g<c.length;g++){const v=c[g];r[v]=Qd(s,h,v,p[v],e,!wt(p,v))}}return f}function Qd(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&&tt(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const g=za(s);o=p[r]=h.call(null,t),g()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Li(r))&&(o=!0))}return o}const pT=new WeakMap;function Rb(e,t,r=!1){const o=r?pT:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!tt(e)){const g=v=>{h=!0;const[b,w]=Rb(v,t,!0);on(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!c&&!h)return kt(e)&&o.set(e,$s),$s;if(Ze(c))for(let g=0;g<c.length;g++){const v=sr(c[g]);ev(v)&&(f[v]=vt)}else if(c)for(const g in c){const v=sr(g);if(ev(v)){const b=c[g],w=f[v]=Ze(b)||tt(b)?{type:b}:on({},b),E=w.type;let L=!1,P=!0;if(Ze(E))for(let M=0;M<E.length;++M){const R=E[M],I=tt(R)&&R.name;if(I==="Boolean"){L=!0;break}else I==="String"&&(P=!1)}else L=tt(E)&&E.name==="Boolean";w[0]=L,w[1]=P,(L||wt(w,"default"))&&d.push(v)}}const p=[f,d];return kt(e)&&o.set(e,p),p}function ev(e){return e[0]!=="$"&&!Yl(e)}const ep=e=>e==="_"||e==="_ctx"||e==="$stable",tp=e=>Ze(e)?e.map(Lr):[Lr(e)],gT=(e,t,r)=>{if(t._n)return t;const o=We((...s)=>tp(t(...s)),r);return o._c=!1,o},$b=(e,t,r)=>{const o=e._ctx;for(const s in e){if(ep(s))continue;const c=e[s];if(tt(c))t[s]=gT(s,c,o);else if(c!=null){const f=tp(c);t[s]=()=>f}}},Ib=(e,t)=>{const r=tp(t);e.slots.default=()=>r},Db=(e,t,r)=>{for(const o in t)(r||!ep(o))&&(e[o]=t[o])},mT=(e,t,r)=>{const o=e.slots=Nb();if(e.vnode.shapeFlag&32){const s=t._;s?(Db(o,t,r),r&&O0(o,"_",s,!0)):$b(t,o)}else t&&Ib(e,t)},vT=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Db(s,t,r):(c=!t.$stable,$b(t,s)),f=t}else t&&(Ib(e,t),f={default:1});if(c)for(const d in s)!ep(d)&&f[d]==null&&delete s[d]},jn=ET;function yT(e){return bT(e)}function bT(e,t){const r=Hu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:b,setScopeId:w=Xr,insertStaticContent:E}=e,L=(D,W,Q,de=null,he=null,ge=null,Ce=void 0,Ee=null,xe=!!W.dynamicChildren)=>{if(D===W)return;D&&!Kr(D,W)&&(de=F(D),Ae(D,he,ge,!0),D=null),W.patchFlag===-2&&(xe=!1,W.dynamicChildren=null);const{type:be,ref:J,shapeFlag:ue}=W;switch(be){case Ju:P(D,W,Q,de);break;case ln:M(D,W,Q,de);break;case yd:D==null&&R(W,Q,de,Ce);break;case et:O(D,W,Q,de,he,ge,Ce,Ee,xe);break;default:ue&1?$(D,W,Q,de,he,ge,Ce,Ee,xe):ue&6?N(D,W,Q,de,he,ge,Ce,Ee,xe):(ue&64||ue&128)&&be.process(D,W,Q,de,he,ge,Ce,Ee,xe,le)}J!=null&&he?Ql(J,D&&D.ref,ge,W||D,!W):J==null&&D&&D.ref!=null&&Ql(D.ref,null,ge,D,!0)},P=(D,W,Q,de)=>{if(D==null)o(W.el=d(W.children),Q,de);else{const he=W.el=D.el;W.children!==D.children&&p(he,W.children)}},M=(D,W,Q,de)=>{D==null?o(W.el=h(W.children||""),Q,de):W.el=D.el},R=(D,W,Q,de)=>{[D.el,D.anchor]=E(D.children,W,Q,de,D.el,D.anchor)},I=({el:D,anchor:W},Q,de)=>{let he;for(;D&&D!==W;)he=b(D),o(D,Q,de),D=he;o(W,Q,de)},_=({el:D,anchor:W})=>{let Q;for(;D&&D!==W;)Q=b(D),s(D),D=Q;s(W)},$=(D,W,Q,de,he,ge,Ce,Ee,xe)=>{if(W.type==="svg"?Ce="svg":W.type==="math"&&(Ce="mathml"),D==null)j(W,Q,de,he,ge,Ce,Ee,xe);else{const be=D.el&&D.el._isVueCE?D.el:null;try{be&&be._beginPatch(),Z(D,W,he,ge,Ce,Ee,xe)}finally{be&&be._endPatch()}}},j=(D,W,Q,de,he,ge,Ce,Ee)=>{let xe,be;const{props:J,shapeFlag:ue,transition:oe,dirs:$e}=D;if(xe=D.el=f(D.type,ge,J&&J.is,J),ue&8?g(xe,D.children):ue&16&&ee(D.children,xe,null,de,he,vd(D,ge),Ce,Ee),$e&&No(D,null,de,"created"),re(xe,D,D.scopeId,Ce,de),J){for(const ct in J)ct!=="value"&&!Yl(ct)&&c(xe,ct,null,J[ct],ge,de);"value"in J&&c(xe,"value",null,J.value,ge),(be=J.onVnodeBeforeMount)&&Vr(be,de,D)}$e&&No(D,null,de,"beforeMount");const Je=wT(he,oe);Je&&oe.beforeEnter(xe),o(xe,W,Q),((be=J&&J.onVnodeMounted)||Je||$e)&&jn(()=>{be&&Vr(be,de,D),Je&&oe.enter(xe),$e&&No(D,null,de,"mounted")},he)},re=(D,W,Q,de,he)=>{if(Q&&w(D,Q),de)for(let ge=0;ge<de.length;ge++)w(D,de[ge]);if(he){let ge=he.subTree;if(W===ge||Bb(ge.type)&&(ge.ssContent===W||ge.ssFallback===W)){const Ce=he.vnode;re(D,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},ee=(D,W,Q,de,he,ge,Ce,Ee,xe=0)=>{for(let be=xe;be<D.length;be++){const J=D[be]=Ee?Qi(D[be]):Lr(D[be]);L(null,J,W,Q,de,he,ge,Ce,Ee)}},Z=(D,W,Q,de,he,ge,Ce)=>{const Ee=W.el=D.el;let{patchFlag:xe,dynamicChildren:be,dirs:J}=W;xe|=D.patchFlag&16;const ue=D.props||vt,oe=W.props||vt;let $e;if(Q&&Oo(Q,!1),($e=oe.onVnodeBeforeUpdate)&&Vr($e,Q,W,D),J&&No(W,D,Q,"beforeUpdate"),Q&&Oo(Q,!0),(ue.innerHTML&&oe.innerHTML==null||ue.textContent&&oe.textContent==null)&&g(Ee,""),be?G(D.dynamicChildren,be,Ee,Q,de,vd(W,he),ge):Ce||ae(D,W,Ee,null,Q,de,vd(W,he),ge,!1),xe>0){if(xe&16)q(Ee,ue,oe,Q,he);else if(xe&2&&ue.class!==oe.class&&c(Ee,"class",null,oe.class,he),xe&4&&c(Ee,"style",ue.style,oe.style,he),xe&8){const Je=W.dynamicProps;for(let ct=0;ct<Je.length;ct++){const dt=Je[ct],Nt=ue[dt],ut=oe[dt];(ut!==Nt||dt==="value")&&c(Ee,dt,Nt,ut,he,Q)}}xe&1&&D.children!==W.children&&g(Ee,W.children)}else!Ce&&be==null&&q(Ee,ue,oe,Q,he);(($e=oe.onVnodeUpdated)||J)&&jn(()=>{$e&&Vr($e,Q,W,D),J&&No(W,D,Q,"updated")},de)},G=(D,W,Q,de,he,ge,Ce)=>{for(let Ee=0;Ee<W.length;Ee++){const xe=D[Ee],be=W[Ee],J=xe.el&&(xe.type===et||!Kr(xe,be)||xe.shapeFlag&198)?v(xe.el):Q;L(xe,be,J,null,de,he,ge,Ce,!0)}},q=(D,W,Q,de,he)=>{if(W!==Q){if(W!==vt)for(const ge in W)!Yl(ge)&&!(ge in Q)&&c(D,ge,W[ge],null,he,de);for(const ge in Q){if(Yl(ge))continue;const Ce=Q[ge],Ee=W[ge];Ce!==Ee&&ge!=="value"&&c(D,ge,Ee,Ce,he,de)}"value"in Q&&c(D,"value",W.value,Q.value,he)}},O=(D,W,Q,de,he,ge,Ce,Ee,xe)=>{const be=W.el=D?D.el:d(""),J=W.anchor=D?D.anchor:d("");let{patchFlag:ue,dynamicChildren:oe,slotScopeIds:$e}=W;$e&&(Ee=Ee?Ee.concat($e):$e),D==null?(o(be,Q,de),o(J,Q,de),ee(W.children||[],Q,J,he,ge,Ce,Ee,xe)):ue>0&&ue&64&&oe&&D.dynamicChildren&&D.dynamicChildren.length===oe.length?(G(D.dynamicChildren,oe,Q,he,ge,Ce,Ee),(W.key!=null||he&&W===he.subTree)&&zb(D,W,!0)):ae(D,W,Q,J,he,ge,Ce,Ee,xe)},N=(D,W,Q,de,he,ge,Ce,Ee,xe)=>{W.slotScopeIds=Ee,D==null?W.shapeFlag&512?he.ctx.activate(W,Q,de,Ce,xe):C(W,Q,de,he,ge,Ce,xe):k(D,W,xe)},C=(D,W,Q,de,he,ge,Ce)=>{const Ee=D.component=OT(D,de,he);if(Ku(D)&&(Ee.ctx.renderer=le),PT(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,z,Ce),!D.el){const xe=Ee.subTree=Ne(ln);M(null,xe,W,Q),D.placeholder=xe.el}}else z(Ee,D,W,Q,he,ge,Ce)},k=(D,W,Q)=>{const de=W.component=D.component;if(fT(D,W,Q))if(de.asyncDep&&!de.asyncResolved){B(de,W,Q);return}else de.next=W,de.update();else W.el=D.el,de.vnode=W},z=(D,W,Q,de,he,ge,Ce)=>{const Ee=()=>{if(D.isMounted){let{next:ue,bu:oe,u:$e,parent:Je,vnode:ct}=D;{const jt=Fb(D);if(jt){ue&&(ue.el=ct.el,B(D,ue,Ce)),jt.asyncDep.then(()=>{D.isUnmounted||Ee()});return}}let dt=ue,Nt;Oo(D,!1),ue?(ue.el=ct.el,B(D,ue,Ce)):ue=ct,oe&&jc(oe),(Nt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Vr(Nt,Je,ue,ct),Oo(D,!0);const ut=Jm(D),Yt=D.subTree;D.subTree=ut,L(Yt,ut,v(Yt.el),F(Yt),D,he,ge),ue.el=ut.el,dt===null&&Qh(D,ut.el),$e&&jn($e,he),(Nt=ue.props&&ue.props.onVnodeUpdated)&&jn(()=>Vr(Nt,Je,ue,ct),he)}else{let ue;const{el:oe,props:$e}=W,{bm:Je,m:ct,parent:dt,root:Nt,type:ut}=D,Yt=zs(W);Oo(D,!1),Je&&jc(Je),!Yt&&(ue=$e&&$e.onVnodeBeforeMount)&&Vr(ue,dt,W),Oo(D,!0);{Nt.ce&&Nt.ce._def.shadowRoot!==!1&&Nt.ce._injectChildStyle(ut);const jt=D.subTree=Jm(D);L(null,jt,Q,de,D,he,ge),W.el=jt.el}if(ct&&jn(ct,he),!Yt&&(ue=$e&&$e.onVnodeMounted)){const jt=W;jn(()=>Vr(ue,dt,jt),he)}(W.shapeFlag&256||dt&&zs(dt.vnode)&&dt.vnode.shapeFlag&256)&&D.a&&jn(D.a,he),D.isMounted=!0,W=Q=de=null}};D.scope.on();const xe=D.effect=new F0(Ee);D.scope.off();const be=D.update=xe.run.bind(xe),J=D.job=xe.runIfDirty.bind(xe);J.i=D,J.id=D.uid,xe.scheduler=()=>Xh(J),Oo(D,!0),be()},B=(D,W,Q)=>{W.component=D;const de=D.vnode.props;D.vnode=W,D.next=null,hT(D,W.props,de,Q),vT(D,W.children,Q),_i(),Um(D),Ti()},ae=(D,W,Q,de,he,ge,Ce,Ee,xe=!1)=>{const be=D&&D.children,J=D?D.shapeFlag:0,ue=W.children,{patchFlag:oe,shapeFlag:$e}=W;if(oe>0){if(oe&128){Se(be,ue,Q,de,he,ge,Ce,Ee,xe);return}else if(oe&256){me(be,ue,Q,de,he,ge,Ce,Ee,xe);return}}$e&8?(J&16&&Pe(be,he,ge),ue!==be&&g(Q,ue)):J&16?$e&16?Se(be,ue,Q,de,he,ge,Ce,Ee,xe):Pe(be,he,ge,!0):(J&8&&g(Q,""),$e&16&&ee(ue,Q,de,he,ge,Ce,Ee,xe))},me=(D,W,Q,de,he,ge,Ce,Ee,xe)=>{D=D||$s,W=W||$s;const be=D.length,J=W.length,ue=Math.min(be,J);let oe;for(oe=0;oe<ue;oe++){const $e=W[oe]=xe?Qi(W[oe]):Lr(W[oe]);L(D[oe],$e,Q,null,he,ge,Ce,Ee,xe)}be>J?Pe(D,he,ge,!0,!1,ue):ee(W,Q,de,he,ge,Ce,Ee,xe,ue)},Se=(D,W,Q,de,he,ge,Ce,Ee,xe)=>{let be=0;const J=W.length;let ue=D.length-1,oe=J-1;for(;be<=ue&&be<=oe;){const $e=D[be],Je=W[be]=xe?Qi(W[be]):Lr(W[be]);if(Kr($e,Je))L($e,Je,Q,null,he,ge,Ce,Ee,xe);else break;be++}for(;be<=ue&&be<=oe;){const $e=D[ue],Je=W[oe]=xe?Qi(W[oe]):Lr(W[oe]);if(Kr($e,Je))L($e,Je,Q,null,he,ge,Ce,Ee,xe);else break;ue--,oe--}if(be>ue){if(be<=oe){const $e=oe+1,Je=$e<J?W[$e].el:de;for(;be<=oe;)L(null,W[be]=xe?Qi(W[be]):Lr(W[be]),Q,Je,he,ge,Ce,Ee,xe),be++}}else if(be>oe)for(;be<=ue;)Ae(D[be],he,ge,!0),be++;else{const $e=be,Je=be,ct=new Map;for(be=Je;be<=oe;be++){const Bt=W[be]=xe?Qi(W[be]):Lr(W[be]);Bt.key!=null&&ct.set(Bt.key,be)}let dt,Nt=0;const ut=oe-Je+1;let Yt=!1,jt=0;const Fn=new Array(ut);for(be=0;be<ut;be++)Fn[be]=0;for(be=$e;be<=ue;be++){const Bt=D[be];if(Nt>=ut){Ae(Bt,he,ge,!0);continue}let Hn;if(Bt.key!=null)Hn=ct.get(Bt.key);else for(dt=Je;dt<=oe;dt++)if(Fn[dt-Je]===0&&Kr(Bt,W[dt])){Hn=dt;break}Hn===void 0?Ae(Bt,he,ge,!0):(Fn[Hn-Je]=be+1,Hn>=jt?jt=Hn:Yt=!0,L(Bt,W[Hn],Q,null,he,ge,Ce,Ee,xe),Nt++)}const Hr=Yt?xT(Fn):$s;for(dt=Hr.length-1,be=ut-1;be>=0;be--){const Bt=Je+be,Hn=W[Bt],lt=W[Bt+1],bo=Bt+1<J?lt.el||Hb(lt):de;Fn[be]===0?L(null,Hn,Q,bo,he,ge,Ce,Ee,xe):Yt&&(dt<0||be!==Hr[dt]?Be(Hn,Q,bo,2):dt--)}}},Be=(D,W,Q,de,he=null)=>{const{el:ge,type:Ce,transition:Ee,children:xe,shapeFlag:be}=D;if(be&6){Be(D.component.subTree,W,Q,de);return}if(be&128){D.suspense.move(W,Q,de);return}if(be&64){Ce.move(D,W,Q,le);return}if(Ce===et){o(ge,W,Q);for(let ue=0;ue<xe.length;ue++)Be(xe[ue],W,Q,de);o(D.anchor,W,Q);return}if(Ce===yd){I(D,W,Q);return}if(de!==2&&be&1&&Ee)if(de===0)Ee.beforeEnter(ge),o(ge,W,Q),jn(()=>Ee.enter(ge),he);else{const{leave:ue,delayLeave:oe,afterLeave:$e}=Ee,Je=()=>{D.ctx.isUnmounted?s(ge):o(ge,W,Q)},ct=()=>{ge._isLeaving&&ge[yi](!0),ue(ge,()=>{Je(),$e&&$e()})};oe?oe(ge,Je,ct):ct()}else o(ge,W,Q)},Ae=(D,W,Q,de=!1,he=!1)=>{const{type:ge,props:Ce,ref:Ee,children:xe,dynamicChildren:be,shapeFlag:J,patchFlag:ue,dirs:oe,cacheIndex:$e}=D;if(ue===-2&&(he=!1),Ee!=null&&(_i(),Ql(Ee,null,Q,D,!0),Ti()),$e!=null&&(W.renderCache[$e]=void 0),J&256){W.ctx.deactivate(D);return}const Je=J&1&&oe,ct=!zs(D);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Vr(dt,W,D),J&6)Fe(D.component,Q,de);else{if(J&128){D.suspense.unmount(Q,de);return}Je&&No(D,null,W,"beforeUnmount"),J&64?D.type.remove(D,W,Q,le,de):be&&!be.hasOnce&&(ge!==et||ue>0&&ue&64)?Pe(be,W,Q,!1,!0):(ge===et&&ue&384||!he&&J&16)&&Pe(xe,W,Q),de&&Ke(D)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||Je)&&jn(()=>{dt&&Vr(dt,W,D),Je&&No(D,null,W,"unmounted")},Q)},Ke=D=>{const{type:W,el:Q,anchor:de,transition:he}=D;if(W===et){je(Q,de);return}if(W===yd){_(D);return}const ge=()=>{s(Q),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(D.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,xe=()=>Ce(Q,ge);Ee?Ee(D.el,ge,xe):xe()}else ge()},je=(D,W)=>{let Q;for(;D!==W;)Q=b(D),s(D),D=Q;s(W)},Fe=(D,W,Q)=>{const{bum:de,scope:he,job:ge,subTree:Ce,um:Ee,m:xe,a:be}=D;tv(xe),tv(be),de&&jc(de),he.stop(),ge&&(ge.flags|=8,Ae(Ce,D,W,Q)),Ee&&jn(Ee,W),jn(()=>{D.isUnmounted=!0},W)},Pe=(D,W,Q,de=!1,he=!1,ge=0)=>{for(let Ce=ge;Ce<D.length;Ce++)Ae(D[Ce],W,Q,de,he)},F=D=>{if(D.shapeFlag&6)return F(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();const W=b(D.anchor||D.el),Q=W&&W[R_];return Q?b(Q):W};let Y=!1;const ne=(D,W,Q)=>{let de;D==null?W._vnode&&(Ae(W._vnode,null,null,!0),de=W._vnode.component):L(W._vnode||null,D,W,null,null,null,Q),W._vnode=D,Y||(Y=!0,Um(de),ob(),Y=!1)},le={p:L,um:Ae,m:Be,r:Ke,mt:C,mc:ee,pc:ae,pbc:G,n:F,o:e};return{render:ne,hydrate:void 0,createApp:oT(ne)}}function vd({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 Oo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zb(e,t,r=!1){const o=e.children,s=t.children;if(Ze(o)&&Ze(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Qi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&zb(f,d)),d.type===Ju&&(d.patchFlag!==-1?d.el=f.el:d.__elIndex=c+(e.type===et?1:0)),d.type===ln&&!d.el&&(d.el=f.el)}}function xT(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 Fb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fb(t)}function tv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Hb(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Hb(t.subTree):null}const Bb=e=>e.__isSuspense;let eh=0;const kT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)ST(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}_T(e,t,r,o,s,f,d,h,p)}},hydrate:TT,normalize:CT},np=kT;function pa(e,t){const r=e.props&&e.props[t];tt(r)&&r()}function ST(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:g}}=h,v=g("div"),b=e.suspense=Wb(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(pa(e,"onPending"),pa(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Fs(b,e.ssFallback)):b.resolve(!1,!0)}function _T(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:L,isInFallback:P,isHydrating:M}=v;if(L)v.pendingBranch=b,Kr(L,b)?(h(L,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():P&&(M||(h(E,w,r,o,s,null,c,f,d),Fs(v,w)))):(v.pendingId=eh++,M?(v.isHydrating=!1,v.activeBranch=L):p(L,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),P?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(E,w,r,o,s,null,c,f,d),Fs(v,w))):E&&Kr(E,b)?(h(E,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(E&&Kr(E,b))h(E,b,r,o,s,v,c,f,d),Fs(v,b);else if(pa(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=eh++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:R,pendingId:I}=v;R>0?setTimeout(()=>{v.pendingId===I&&v.fallback(w)},R):R===0&&v.fallback(w)}}function Wb(e,t,r,o,s,c,f,d,h,p,g=!1){const{p:v,m:b,um:w,n:E,o:{parentNode:L,remove:P}}=p;let M;const R=AT(e);R&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const I=e.props?P0(e.props.timeout):void 0,_=c,$={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:eh++,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(j=!1,re=!1){const{vnode:ee,activeBranch:Z,pendingBranch:G,pendingId:q,effects:O,parentComponent:N,container:C,isInFallback:k}=$;let z=!1;$.isHydrating?$.isHydrating=!1:j||(z=Z&&G.transition&&G.transition.mode==="out-in",z&&(Z.transition.afterLeave=()=>{q===$.pendingId&&(b(G,C,c===_?E(Z):c,0),Gd(O),k&&ee.ssFallback&&(ee.ssFallback.el=null))}),Z&&(L(Z.el)===C&&(c=E(Z)),w(Z,N,$,!0),!z&&k&&ee.ssFallback&&jn(()=>ee.ssFallback.el=null,$)),z||b(G,C,c,0)),Fs($,G),$.pendingBranch=null,$.isInFallback=!1;let B=$.parent,ae=!1;for(;B;){if(B.pendingBranch){B.effects.push(...O),ae=!0;break}B=B.parent}!ae&&!z&&Gd(O),$.effects=[],R&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!re&&t.resolve()),pa(ee,"onResolve")},fallback(j){if(!$.pendingBranch)return;const{vnode:re,activeBranch:ee,parentComponent:Z,container:G,namespace:q}=$;pa(re,"onFallback");const O=E(ee),N=()=>{$.isInFallback&&(v(null,j,G,O,Z,null,q,d,h),Fs($,j))},C=j.transition&&j.transition.mode==="out-in";C&&(ee.transition.afterLeave=N),$.isInFallback=!0,w(ee,Z,null,!0),C||N()},move(j,re,ee){$.activeBranch&&b($.activeBranch,j,re,ee),$.container=j},next(){return $.activeBranch&&E($.activeBranch)},registerDep(j,re,ee){const Z=!!$.pendingBranch;Z&&$.deps++;const G=j.vnode.el;j.asyncDep.catch(q=>{$a(q,j,0)}).then(q=>{if(j.isUnmounted||$.isUnmounted||$.pendingId!==j.suspenseId)return;j.asyncResolved=!0;const{vnode:O}=j;nh(j,q),G&&(O.el=G);const N=!G&&j.subTree.el;re(j,O,L(G||j.subTree.el),G?null:E(j.subTree),$,f,ee),N&&(O.placeholder=null,P(N)),Qh(j,O.el),Z&&--$.deps===0&&$.resolve()})},unmount(j,re){$.isUnmounted=!0,$.activeBranch&&w($.activeBranch,r,j,re),$.pendingBranch&&w($.pendingBranch,r,j,re)}};return $}function TT(e,t,r,o,s,c,f,d,h){const p=t.suspense=Wb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),g}function CT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=nv(o?r.default:r),e.ssFallback=o?nv(r.fallback):Ne(ln)}function nv(e){let t;if(tt(e)){const r=Ys&&e._c;r&&(e._d=!1,ie()),e=e(),r&&(e._d=!0,t=Xn,qb())}return Ze(e)&&(e=aT(e)),e=Lr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function ET(e,t){t&&t.pendingBranch?Ze(e)?t.effects.push(...e):t.effects.push(e):Gd(e)}function Fs(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,Qh(o,s))}function AT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const et=Symbol.for("v-fgt"),Ju=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),yd=Symbol.for("v-stc"),ta=[];let Xn=null;function ie(e=!1){ta.push(Xn=e?null:[])}function qb(){ta.pop(),Xn=ta[ta.length-1]||null}let Ys=1;function Zs(e,t=!1){Ys+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function jb(e){return e.dynamicChildren=Ys>0?Xn||$s:null,qb(),Ys>0&&Xn&&Xn.push(e),e}function ye(e,t,r,o,s,c){return jb(X(e,t,r,o,s,c,!0))}function Ve(e,t,r,o,s){return jb(Ne(e,t,r,o,s,!0))}function Js(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}const Ub=({key:e})=>e??null,Uc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||Mt(e)||tt(e)?{i:mn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,o=0,s=null,c=e===et?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ub(t),ref:t&&Uc(t),scopeId:Vu,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:mn};return d?(rp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ht(r)?8:16),Ys>0&&!f&&Xn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ne=LT;function LT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===xb)&&(e=ln),Js(e)){const d=fo(e,t,!0);return r&&rp(d,r),Ys>0&&!c&&Xn&&(d.shapeFlag&6?Xn[Xn.indexOf(e)]=d:Xn.push(d)),d.patchFlag=-2,d}if(DT(e)&&(e=e.__vccOpts),t){t=Vb(t);let{class:d,style:h}=t;d&&!Ht(d)&&(t.class=ot(d)),kt(h)&&(ju(h)&&!Ze(h)&&(h=on({},h)),t.style=zt(h))}const f=Ht(e)?1:Bb(e)?128:hb(e)?64:kt(e)?4:tt(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function Vb(e){return e?ju(e)||Ob(e)?on({},e):e:null}function fo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?Si(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Ub(p),ref:t&&t.ref?r&&c?Ze(c)?c.concat(Uc(t)):[c,Uc(t)]:Uc(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!==et?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&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&da(g,h.clone(g)),g}function Qe(e=" ",t=0){return Ne(Ju,null,e,t)}function He(e="",t=!1){return t?(ie(),Ve(ln,null,e)):Ne(ln,null,e)}function Lr(e){return e==null||typeof e=="boolean"?Ne(ln):Ze(e)?Ne(et,null,e.slice()):Js(e)?Qi(e):Ne(Ju,null,String(e))}function Qi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function rp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ze(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),rp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Ob(t)?t._ctx=mn:s===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else tt(t)?(t={default:t,_ctx:mn},r=32):(t=String(t),o&64?(r=16,t=[Qe(t)]):r=8);e.children=t,e.shapeFlag|=r}function Si(...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=ot([t.class,o.class]));else if(s==="style")t.style=zt([t.style,o.style]);else if($u(s)){const c=t[s],f=o[s];f&&c!==f&&!(Ze(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Vr(e,t,r,o=null){$r(e,t,7,[r,o])}const MT=Eb();let NT=0;function OT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||MT,c={uid:NT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new YS(!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:Rb(o,s),emitsOptions:Lb(o,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=sT.bind(null,c),e.ce&&e.ce(c),c}let xn=null;const ti=()=>xn||mn;let fu,th;{const e=Hu(),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)}};fu=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),th=t("__VUE_SSR_SETTERS__",r=>ga=r)}const za=e=>{const t=xn;return fu(e),e.scope.on(),()=>{e.scope.off(),fu(t)}},rv=()=>{xn&&xn.scope.off(),fu(null)};function Gb(e){return e.vnode.shapeFlag&4}let ga=!1;function PT(e,t=!1,r=!1){t&&th(t);const{props:o,children:s}=e.vnode,c=Gb(e);dT(e,o,c,t),mT(e,s,r||t);const f=c?RT(e,t):void 0;return t&&th(!1),f}function RT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Z_);const{setup:o}=r;if(o){_i();const s=e.setupContext=o.length>1?Xb(e):null,c=za(e),f=Ra(o,e,0,[e.props,s]),d=L0(f);if(Ti(),c(),(d||e.sp)&&!zs(e)&&bb(e),d){if(f.then(rv,rv),t)return f.then(h=>{nh(e,h)}).catch(h=>{$a(h,e,0)});e.asyncDep=f}else nh(e,f)}else Kb(e)}function nh(e,t,r){tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=eb(t)),Kb(e)}function Kb(e,t,r){const o=e.type;e.render||(e.render=o.render||Xr);{const s=za(e);_i();try{Q_(e)}finally{Ti(),s()}}}const $T={get(e,t){return wn(e,"get",""),e[t]}};function Xb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,$T),slots:e.slots,emit:e.emit,expose:t}}function Qu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(eb(Uu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ea)return ea[r](e)},has(t,r){return r in t||r in ea}})):e.proxy}function IT(e,t=!0){return tt(e)?e.displayName||e.name:e.name||t&&e.__name}function DT(e){return tt(e)&&"__vccOpts"in e}const ke=(e,t)=>T_(e,t,ga);function Fa(e,t,r){try{Zs(-1);const o=arguments.length;return o===2?kt(t)&&!Ze(t)?Js(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Js(r)&&(r=[r]),Ne(e,t,r))}finally{Zs(1)}}const zT="3.5.26";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.26
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let rh;const iv=typeof window<"u"&&window.trustedTypes;if(iv)try{rh=iv.createPolicy("vue",{createHTML:e=>e})}catch{}const Yb=rh?e=>rh.createHTML(e):e=>e,FT="http://www.w3.org/2000/svg",HT="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,ov=mi&&mi.createElement("template"),BT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?mi.createElementNS(FT,e):t==="mathml"?mi.createElementNS(HT,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{ov.innerHTML=Yb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Vi="transition",Fl="animation",ma=Symbol("_vtc"),Zb={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},WT=on({},pb,Zb),qT=e=>(e.displayName="Transition",e.props=WT,e),jT=qT((e,{slots:t})=>Fa(D_,UT(e),t)),Po=(e,t=[])=>{Ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},sv=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function UT(e){const t={};for(const O in e)O in Zb||(t[O]=e[O]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=VT(s),L=E&&E[0],P=E&&E[1],{onBeforeEnter:M,onEnter:R,onEnterCancelled:I,onLeave:_,onLeaveCancelled:$,onBeforeAppear:j=M,onAppear:re=R,onAppearCancelled:ee=I}=t,Z=(O,N,C,k)=>{O._enterCancelled=k,Ro(O,N?g:d),Ro(O,N?p:f),C&&C()},G=(O,N)=>{O._isLeaving=!1,Ro(O,v),Ro(O,w),Ro(O,b),N&&N()},q=O=>(N,C)=>{const k=O?re:R,z=()=>Z(N,O,C);Po(k,[N,z]),lv(()=>{Ro(N,O?h:c),di(N,O?g:d),sv(k)||av(N,o,L,z)})};return on(t,{onBeforeEnter(O){Po(M,[O]),di(O,c),di(O,f)},onBeforeAppear(O){Po(j,[O]),di(O,h),di(O,p)},onEnter:q(!1),onAppear:q(!0),onLeave(O,N){O._isLeaving=!0;const C=()=>G(O,N);di(O,v),O._enterCancelled?(di(O,b),fv(O)):(fv(O),di(O,b)),lv(()=>{O._isLeaving&&(Ro(O,v),di(O,w),sv(_)||av(O,o,P,C))}),Po(_,[O,C])},onEnterCancelled(O){Z(O,!1,void 0,!0),Po(I,[O])},onAppearCancelled(O){Z(O,!0,void 0,!0),Po(ee,[O])},onLeaveCancelled(O){G(O),Po($,[O])}})}function VT(e){if(e==null)return null;if(kt(e))return[bd(e.enter),bd(e.leave)];{const t=bd(e);return[t,t]}}function bd(e){return P0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ma]||(e[ma]=new Set)).add(t)}function Ro(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ma];r&&(r.delete(t),r.size||(e[ma]=void 0))}function lv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let GT=0;function av(e,t,r,o){const s=e._endId=++GT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=KT(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function KT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Vi}Delay`),c=o(`${Vi}Duration`),f=cv(s,c),d=o(`${Fl}Delay`),h=o(`${Fl}Duration`),p=cv(d,h);let g=null,v=0,b=0;t===Vi?f>0&&(g=Vi,v=f,b=c.length):t===Fl?p>0&&(g=Fl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Vi:Fl:null,b=g?g===Vi?c.length:h.length:0);const w=g===Vi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Vi}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:w}}function cv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>uv(r)+uv(e[o])))}function uv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fv(e){return(e?e.ownerDocument:document).body.offsetHeight}function XT(e,t,r){const o=e[ma];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const du=Symbol("_vod"),Jb=Symbol("_vsh"),io={name:"show",beforeMount(e,{value:t},{transition:r}){e[du]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Hl(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),Hl(e,!0),o.enter(e)):o.leave(e,()=>{Hl(e,!1)}):Hl(e,t))},beforeUnmount(e,{value:t}){Hl(e,t)}};function Hl(e,t){e.style.display=t?e[du]:"none",e[Jb]=!t}const YT=Symbol(""),ZT=/(?:^|;)\s*display\s*:/;function JT(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Vc(o,d,"")}else for(const f in t)r[f]==null&&Vc(o,f,"");for(const f in r)f==="display"&&(c=!0),Vc(o,f,r[f])}else if(s){if(t!==r){const f=o[YT];f&&(r+=";"+f),o.cssText=r,c=ZT.test(r)}}else t&&e.removeAttribute("style");du in e&&(e[du]=c?o.display:"",e[Jb]&&(o.display="none"))}const dv=/\s*!important$/;function Vc(e,t,r){if(Ze(r))r.forEach(o=>Vc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=QT(e,t);dv.test(r)?e.setProperty(Li(o),r.replace(dv,""),"important"):e[o]=r}}const hv=["Webkit","Moz","ms"],wd={};function QT(e,t){const r=wd[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return wd[t]=o;o=Fu(o);for(let s=0;s<hv.length;s++){const c=hv[s]+o;if(c in e)return wd[t]=c}return t}const pv="http://www.w3.org/1999/xlink";function gv(e,t,r,o,s,c=KS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(pv,t.slice(6,t.length)):e.setAttributeNS(pv,t,r):r==null||c&&!R0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Pr(r)?String(r):r)}function mv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Yb(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=R0(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 Fo(e,t,r,o){e.addEventListener(t,r,o)}function eC(e,t,r,o){e.removeEventListener(t,r,o)}const vv=Symbol("_vei");function tC(e,t,r,o,s=null){const c=e[vv]||(e[vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=nC(t);if(o){const p=c[t]=oC(o,s);Fo(e,d,p,h)}else f&&(eC(e,d,f,h),c[t]=void 0)}}const yv=/(?:Once|Passive|Capture)$/;function nC(e){let t;if(yv.test(e)){t={};let o;for(;o=e.match(yv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Li(e.slice(2)),t]}let xd=0;const rC=Promise.resolve(),iC=()=>xd||(rC.then(()=>xd=0),xd=Date.now());function oC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(sC(o,r.value),t,5,[o])};return r.value=e,r.attached=iC(),r}function sC(e,t){if(Ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const bv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?XT(e,o,f):t==="style"?JT(e,r,o):$u(t)?Hh(t)||tC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):aC(e,t,o,f))?(mv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?mv(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),gv(e,t,o,f))};function aC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&bv(t)&&tt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return bv(t)&&Ht(r)?!1:t in e}const hu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ze(t)?r=>jc(t,r):t};function cC(e){e.target.composing=!0}function wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hs=Symbol("_assign");function xv(e,t,r){return t&&(e=e.trim()),r&&(e=Wh(e)),e}const Qb={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Hs]=hu(s);const c=o||s.props&&s.props.type==="number";Fo(e,t?"change":"input",f=>{f.target.composing||e[Hs](xv(e.value,r,c))}),(r||c)&&Fo(e,"change",()=>{e.value=xv(e.value,r,c)}),t||(Fo(e,"compositionstart",cC),Fo(e,"compositionend",wv),Fo(e,"change",wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Hs]=hu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Wh(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},ew={deep:!0,created(e,t,r){e[Hs]=hu(r),Fo(e,"change",()=>{const o=e._modelValue,s=uC(e),c=e.checked,f=e[Hs];if(Ze(o)){const d=$0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Iu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(tw(e,c))})},mounted:kv,beforeUpdate(e,t,r){e[Hs]=hu(r),kv(e,t,r)}};function kv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Ze(t))s=$0(t,o.props.value)>-1;else if(Iu(t))s=t.has(o.props.value);else{if(t===r)return;s=Bu(t,tw(e,!0))}e.checked!==s&&(e.checked=s)}function uC(e){return"_value"in e?e._value:e.value}function tw(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const fC=["ctrl","shift","alt","meta"],dC={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)=>fC.some(r=>e[`${r}Key`]&&!t.includes(r))},Gc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=dC[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},hC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ih=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Li(s.key);if(t.some(f=>f===c||hC[f]===c))return e(s)}))},pC=on({patchProp:lC},BT);let Sv;function gC(){return Sv||(Sv=yT(pC))}const nw=((...e)=>{const t=gC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=vC(o);if(!s)return;const c=t._component;!tt(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,mC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function mC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vC(e){return Ht(e)?document.querySelector(e):e}const Oi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},yC={};function bC(e,t){const r=Ko("RouterView");return ie(),Ve(r)}const wC=Oi(yC,[["render",bC]]),xC=["top","right","bottom","left"],_v=["start","end"],Tv=xC.reduce((e,t)=>e.concat(t,t+"-"+_v[0],t+"-"+_v[1]),[]),va=Math.min,Do=Math.max,kC={left:"right",right:"left",bottom:"top",top:"bottom"},SC={start:"end",end:"start"};function oh(e,t,r){return Do(e,va(t,r))}function Yo(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function rw(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}const _C=new Set(["top","bottom"]);function xi(e){return _C.has(Qr(e))?"y":"x"}function op(e){return rw(xi(e))}function iw(e,t,r){r===void 0&&(r=!1);const o=Or(e),s=op(e),c=ip(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=gu(f)),[f,gu(f)]}function TC(e){const t=gu(e);return[pu(e),t,pu(t)]}function pu(e){return e.replace(/start|end/g,t=>SC[t])}const Cv=["left","right"],Ev=["right","left"],CC=["top","bottom"],EC=["bottom","top"];function AC(e,t,r){switch(e){case"top":case"bottom":return r?t?Ev:Cv:t?Cv:Ev;case"left":case"right":return t?CC:EC;default:return[]}}function LC(e,t,r,o){const s=Or(e);let c=AC(Qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(pu)))),c}function gu(e){return e.replace(/left|right|bottom|top/g,t=>kC[t])}function MC(e){return{top:0,right:0,bottom:0,left:0,...e}}function ow(e){return typeof e!="number"?MC(e):{top:e,right:e,bottom:e,left:e}}function na(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function Av(e,t,r){let{reference:o,floating:s}=e;const c=xi(t),f=op(t),d=ip(f),h=Qr(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Or(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const NC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Av(p,o,h),b=o,w={},E=0;for(let L=0;L<d.length;L++){const{name:P,fn:M}=d[L],{x:R,y:I,data:_,reset:$}=await M({x:g,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});g=R??g,v=I??v,w={...w,[P]:{...w[P],..._}},$&&E<=50&&(E++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(p=$.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):$.rects),{x:g,y:v}=Av(p,b,h)),L=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:w}};async function ef(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=Yo(t,e),E=ow(w),P=d[b?v==="floating"?"reference":"floating":v],M=na(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(P)))==null||r?P:P.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),R=v==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),_=await(c.isElement==null?void 0:c.isElement(I))?await(c.getScale==null?void 0:c.getScale(I))||{x:1,y:1}:{x:1,y:1},$=na(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:I,strategy:h}):R);return{top:(M.top-$.top+E.top)/_.y,bottom:($.bottom-M.bottom+E.bottom)/_.y,left:(M.left-$.left+E.left)/_.x,right:($.right-M.right+E.right)/_.x}}const OC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:g=0}=Yo(e,t)||{};if(p==null)return{};const v=ow(g),b={x:r,y:o},w=op(s),E=ip(w),L=await f.getDimensions(p),P=w==="y",M=P?"top":"left",R=P?"bottom":"right",I=P?"clientHeight":"clientWidth",_=c.reference[E]+c.reference[w]-b[w]-c.floating[E],$=b[w]-c.reference[w],j=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let re=j?j[I]:0;(!re||!await(f.isElement==null?void 0:f.isElement(j)))&&(re=d.floating[I]||c.floating[E]);const ee=_/2-$/2,Z=re/2-L[E]/2-1,G=va(v[M],Z),q=va(v[R],Z),O=G,N=re-L[E]-q,C=re/2-L[E]/2+ee,k=oh(O,C,N),z=!h.arrow&&Or(s)!=null&&C!==k&&c.reference[E]/2-(C<O?G:q)-L[E]/2<0,B=z?C<O?C-O:C-N:0;return{[w]:b[w]+B,data:{[w]:k,centerOffset:C-k-B,...z&&{alignmentOffset:B}},reset:z}}});function PC(e,t,r){return(e?[...r.filter(s=>Or(s)===e),...r.filter(s=>Or(s)!==e)]:r.filter(s=>Qr(s)===s)).filter(s=>e?Or(s)===e||(t?pu(s)!==s:!1):!0)}const RC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:b=Tv,autoAlignment:w=!0,...E}=Yo(e,t),L=v!==void 0||b===Tv?PC(v||null,w,b):b,P=await ef(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[M];if(R==null)return{};const I=iw(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const _=[P[Qr(R)],P[I[0]],P[I[1]]],$=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:_}],j=L[M+1];if(j)return{data:{index:M+1,overflows:$},reset:{placement:j}};const re=$.map(G=>{const q=Or(G.placement);return[G.placement,q&&g?G.overflows.slice(0,2).reduce((O,N)=>O+N,0):G.overflows[0],G.overflows]}).sort((G,q)=>G[1]-q[1]),Z=((s=re.filter(G=>G[2].slice(0,Or(G[0])?2:3).every(q=>q<=0))[0])==null?void 0:s[0])||re[0][0];return Z!==d?{data:{index:M+1,overflows:$},reset:{placement:Z}}:{}}}},$C=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:L=!0,...P}=Yo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Qr(s),R=xi(d),I=Qr(d)===d,_=await(h.isRTL==null?void 0:h.isRTL(p.floating)),$=b||(I||!L?[gu(d)]:TC(d)),j=E!=="none";!b&&j&&$.push(...LC(d,L,E,_));const re=[d,...$],ee=await ef(t,P),Z=[];let G=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&Z.push(ee[M]),v){const C=iw(s,f,_);Z.push(ee[C[0]],ee[C[1]])}if(G=[...G,{placement:s,overflows:Z}],!Z.every(C=>C<=0)){var q,O;const C=(((q=c.flip)==null?void 0:q.index)||0)+1,k=re[C];if(k&&(!(v==="alignment"?R!==xi(k):!1)||G.every(ae=>xi(ae.placement)===R?ae.overflows[0]>0:!0)))return{data:{index:C,overflows:G},reset:{placement:k}};let z=(O=G.filter(B=>B.overflows[0]<=0).sort((B,ae)=>B.overflows[1]-ae.overflows[1])[0])==null?void 0:O.placement;if(!z)switch(w){case"bestFit":{var N;const B=(N=G.filter(ae=>{if(j){const me=xi(ae.placement);return me===R||me==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(me=>me>0).reduce((me,Se)=>me+Se,0)]).sort((ae,me)=>ae[1]-me[1])[0])==null?void 0:N[0];B&&(z=B);break}case"initialPlacement":z=d;break}if(s!==z)return{reset:{placement:z}}}return{}}}},IC=new Set(["left","top"]);async function DC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Qr(r),d=Or(r),h=xi(r)==="y",p=IC.has(f)?-1:1,g=c&&h?-1:1,v=Yo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*g,y:b*p}:{x:b*p,y:w*g}}const zC=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 DC(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}}}}},FC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:P=>{let{x:M,y:R}=P;return{x:M,y:R}}},...h}=Yo(e,t),p={x:r,y:o},g=await ef(t,h),v=xi(Qr(s)),b=rw(v);let w=p[b],E=p[v];if(c){const P=b==="y"?"top":"left",M=b==="y"?"bottom":"right",R=w+g[P],I=w-g[M];w=oh(R,w,I)}if(f){const P=v==="y"?"top":"left",M=v==="y"?"bottom":"right",R=E+g[P],I=E-g[M];E=oh(R,E,I)}const L=d.fn({...t,[b]:w,[v]:E});return{...L,data:{x:L.x-r,y:L.y-o,enabled:{[b]:c,[v]:f}}}}}},HC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:s,rects:c,platform:f,elements:d}=t,{apply:h=()=>{},...p}=Yo(e,t),g=await ef(t,p),v=Qr(s),b=Or(s),w=xi(s)==="y",{width:E,height:L}=c.floating;let P,M;v==="top"||v==="bottom"?(P=v,M=b===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(M=v,P=b==="end"?"top":"bottom");const R=L-g.top-g.bottom,I=E-g.left-g.right,_=va(L-g[P],R),$=va(E-g[M],I),j=!t.middlewareData.shift;let re=_,ee=$;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(ee=I),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(re=R),j&&!b){const G=Do(g.left,0),q=Do(g.right,0),O=Do(g.top,0),N=Do(g.bottom,0);w?ee=E-2*(G!==0||q!==0?G+q:Do(g.left,g.right)):re=L-2*(O!==0||N!==0?O+N:Do(g.top,g.bottom))}await h({...t,availableWidth:ee,availableHeight:re});const Z=await f.getDimensions(d.floating);return E!==Z.width||L!==Z.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yr(e){return hr(e).getComputedStyle(e)}const Lv=Math.min,ra=Math.max,mu=Math.round;function sw(e){const t=Yr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=mu(r)!==s||mu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function ho(e){return aw(e)?(e.nodeName||"").toLowerCase():""}let Lc;function lw(){if(Lc)return Lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Lc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Lc):navigator.userAgent}function Zr(e){return e instanceof hr(e).HTMLElement}function lo(e){return e instanceof hr(e).Element}function aw(e){return e instanceof hr(e).Node}function Mv(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function tf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function BC(e){return["table","td","th"].includes(ho(e))}function sh(e){const t=/firefox/i.test(lw()),r=Yr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function cw(){return!/^((?!chrome|android).)*safari/i.test(lw())}function sp(e){return["html","body","#document"].includes(ho(e))}function uw(e){return lo(e)?e:e.contextElement}const fw={x:1,y:1};function Bs(e){const t=uw(e);if(!Zr(t))return fw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=sw(t);let f=(c?mu(r.width):r.width)/o,d=(c?mu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function ya(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=uw(e);let h=fw;t&&(o?lo(o)&&(h=Bs(o)):h=Bs(e));const p=d?hr(d):window,g=!cw()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const L=hr(d),P=o&&lo(o)?hr(o):o;let M=L.frameElement;for(;M&&o&&P!==L;){const R=Bs(M),I=M.getBoundingClientRect(),_=getComputedStyle(M);I.x+=(M.clientLeft+parseFloat(_.paddingLeft))*R.x,I.y+=(M.clientTop+parseFloat(_.paddingTop))*R.y,v*=R.x,b*=R.y,w*=R.x,E*=R.y,v+=I.x,b+=I.y,M=hr(M).frameElement}}return{width:w,height:E,top:b,right:v+w,bottom:b+E,left:v,x:v,y:b}}function ao(e){return((aw(e)?e.ownerDocument:e.document)||window.document).documentElement}function nf(e){return lo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dw(e){return ya(ao(e)).left+nf(e).scrollLeft}function ba(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mv(e)&&e.host||ao(e);return Mv(t)?t.host:t}function hw(e){const t=ba(e);return sp(t)?t.ownerDocument.body:Zr(t)&&tf(t)?t:hw(t)}function vu(e,t){var r;t===void 0&&(t=[]);const o=hw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],tf(o)?o:[]):t.concat(o,vu(o))}function Nv(e,t,r){return t==="viewport"?na((function(o,s){const c=hr(o),f=ao(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=cw();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):lo(t)?na((function(o,s){const c=ya(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Zr(o)?Bs(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)):na((function(o){const s=ao(o),c=nf(o),f=o.ownerDocument.body,d=ra(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=ra(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+dw(o);const g=-c.scrollTop;return Yr(f).direction==="rtl"&&(p+=ra(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(ao(e)))}function Ov(e){return Zr(e)&&Yr(e).position!=="fixed"?e.offsetParent:null}function Pv(e){const t=hr(e);let r=Ov(e);for(;r&&BC(r)&&Yr(r).position==="static";)r=Ov(r);return r&&(ho(r)==="html"||ho(r)==="body"&&Yr(r).position==="static"&&!sh(r))?t:r||(function(o){let s=ba(o);for(;Zr(s)&&!sp(s);){if(sh(s))return s;s=ba(s)}return null})(e)||t}function WC(e,t,r){const o=Zr(t),s=ao(t),c=ya(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((ho(t)!=="body"||tf(s))&&(f=nf(t)),Zr(t)){const h=ya(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=dw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const qC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=vu(p).filter((P=>lo(P)&&ho(P)!=="body")),w=null;const E=Yr(p).position==="fixed";let L=E?ba(p):p;for(;lo(L)&&!sp(L);){const P=Yr(L),M=sh(L);(E?M||w:M||P.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=P:b=b.filter((R=>R!==L)),L=ba(L)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Nv(t,g,s);return p.top=ra(v.top,p.top),p.right=Lv(v.right,p.right),p.bottom=Lv(v.bottom,p.bottom),p.left=ra(v.left,p.left),p}),Nv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Zr(r),c=ao(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")&&((ho(r)!=="body"||tf(c))&&(f=nf(r)),Zr(r))){const p=ya(r);d=Bs(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:lo,getDimensions:function(e){return Zr(e)?sw(e):e.getBoundingClientRect()},getOffsetParent:Pv,getDocumentElement:ao,getScale:Bs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Pv,c=this.getDimensions;return{reference:WC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yr(e).direction==="rtl"},jC=(e,t,r)=>{const o=new Map,s={platform:qC,...r},c={...s.platform,_c:o};return NC(e,t,{...s,platform:c})},co={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 wa(e,t){let r=co.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=co.themes[r.$extend]||{}:(r=null,o=co[t]):r=null;while(r);return o}function UC(e){const t=[e];let r=co.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=co.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Rv(e){const t=[e];let r=co.themes[e]||{};do r.$extend?(t.push(r.$extend),r=co.themes[r.$extend]||{}):r=null;while(r);return t}let xa=!1;if(typeof window<"u"){xa=!1;try{const e=Object.defineProperty({},"passive",{get(){xa=!0}});window.addEventListener("test",null,e)}catch{}}let pw=!1;typeof window<"u"&&typeof navigator<"u"&&(pw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const gw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),$v={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Iv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Dv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function kd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let $o=null;const zv={};function Fv(e){let t=zv[e];return t||(t=zv[e]=[]),t}let lh=function(){};typeof window<"u"&&(lh=window.Element);function ht(e){return function(t){return wa(t.theme,e)}}const Sd="__floating-vue__popper",mw=()=>rt({name:"VPopper",provide(){return{[Sd]:{parentPopper:this}}},inject:{[Sd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>gw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,lh,Boolean],default:ht("container")},boundary:{type:[String,lh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Sd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(zC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(RC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(FC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push($C({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(OC({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(HC({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 jC(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),$o&&this.instantMove&&$o.instantMove&&$o!==this.parentPopper){$o.$_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&&($o=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await kd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vu(this.$_referenceNode),...vu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Rv(this.theme))Fv(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await kd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Dv(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Rv(this.theme)){const o=Fv(r);Dv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}$o===this&&($o=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await kd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,$v,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],$v,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Iv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Iv,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,xa?{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(ia>=e.left&&ia<=e.right&&oa>=e.top&&oa<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ia-Xi,o=oa-Yi,s=t.left+t.width/2-Xi+(t.top+t.height/2)-Yi+t.width+t.height,c=Xi+r*s,f=Yi+o*s;return Mc(Xi,Yi,c,f,t.left,t.top,t.left,t.bottom)||Mc(Xi,Yi,c,f,t.left,t.top,t.right,t.top)||Mc(Xi,Yi,c,f,t.right,t.top,t.right,t.bottom)||Mc(Xi,Yi,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(pw){const e=xa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Hv(t),e),document.addEventListener("touchend",t=>Bv(t,!0),e)}else window.addEventListener("mousedown",e=>Hv(e),!0),window.addEventListener("click",e=>Bv(e,!1),!0);window.addEventListener("resize",KC)}function Hv(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Bv(e,t){VC(e,t)}function VC(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]&&Wv(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&&Wv(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Wv(e,t,r){return r.closeAllPopover||r.closePopover&&t||GC(e,r)&&!t}function GC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function KC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function qv(){for(let e=0;e<nr.length;e++)nr[e].hide()}let Xi=0,Yi=0,ia=0,oa=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Xi=ia,Yi=oa,ia=e.clientX,oa=e.clientY},xa?{passive:!0}:void 0);function Mc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const XC={extends:mw()},rf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function YC(e,t,r,o,s,c){return ie(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Dt(e.$slots,"default",VS(Vb(e.slotData)))],2)}const ZC=rf(XC,[["render",YC]]);function JC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Kc;function ah(){ah.init||(ah.init=!0,Kc=JC()!==-1)}var of={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ah(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Kc&&this.$el.appendChild(e),e.data="about:blank",Kc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Kc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const QC=cb();lb("data-v-b329ee4c");const eE={class:"resize-observer",tabindex:"-1"};ab();const tE=QC((e,t,r,o,s,c)=>(ie(),Ve("div",eE)));of.render=tE;of.__scopeId="data-v-b329ee4c";of.__file="src/components/ResizeObserver.vue";const vw=(e="theme")=>({computed:{themeClass(){return UC(this[e])}}}),nE=rt({name:"VPopperContent",components:{ResizeObserver:of},mixins:[vw()],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}}}),rE=["id","aria-hidden","tabindex","data-popper-placement"],iE={ref:"inner",class:"v-popper__inner"},oE=X("div",{class:"v-popper__arrow-outer"},null,-1),sE=X("div",{class:"v-popper__arrow-inner"},null,-1),lE=[oE,sE];function aE(e,t,r,o,s,c){const f=Ko("ResizeObserver");return ie(),ye("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:zt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=ih(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",iE,[e.mounted?(ie(),ye(et,{key:0},[X("div",null,[Dt(e.$slots,"default")]),e.handleResize?(ie(),Ve(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):He("",!0)],64)):He("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},lE,4)],4)],46,rE)}const yw=rf(nE,[["render",aE]]),bw={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ch=function(){};typeof window<"u"&&(ch=window.Element);const cE=rt({name:"VPopperWrapper",components:{Popper:ZC,PopperContent:yw},mixins:[bw,vw("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ch,Boolean],default:void 0},boundary:{type:[String,ch],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function uE(e,t,r,o,s,c){const f=Ko("PopperContent"),d=Ko("Popper");return ie(),Ve(d,Si({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:w,hide:E,handleResize:L,onResize:P,classes:M,result:R})=>[Dt(e.$slots,"default",{shown:p,show:w,hide:E}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":L,classes:M,result:R,onHide:E,onResize:P},{default:We(()=>[Dt(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const lp=rf(cE,[["render",uE]]);({...lp});({...lp});const fE={...lp,name:"VTooltip",vPopperTheme:"tooltip"},dE=rt({name:"VTooltipDirective",components:{Popper:mw(),PopperContent:yw},mixins:[bw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>wa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>wa(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}}}),hE=["innerHTML"],pE=["textContent"];function gE(e,t,r,o,s,c){const f=Ko("PopperContent"),d=Ko("Popper");return ie(),Ve(d,Si({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:w,handleResize:E,onResize:L,classes:P,result:M})=>[Ne(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":E,classes:P,result:M,onHide:w,onResize:L},{default:We(()=>[e.html?(ie(),ye("div",{key:0,innerHTML:e.finalContent},null,8,hE)):(ie(),ye("div",{key:1,textContent:Re(e.finalContent)},null,8,pE))]),_: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 mE=rf(dE,[["render",gE]]),ww="v-popper--has-tooltip";function vE(e,t){let r=e.placement;if(!r&&t)for(const o of gw)t[o]&&(r=o);return r||(r=wa(e.theme||"tooltip","placement")),r}function xw(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=vE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let _d,ka,yE=0;function bE(){if(_d)return;ka=Ge([]),_d=nw({name:"VTooltipDirectiveApp",setup(){return{directives:ka}},render(){return this.directives.map(t=>Fa(mE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),_d.mount(e)}function kw(e,t,r){bE();const o=Ge(xw(e,t,r)),s=Ge(!1),c={id:yE++,options:o,shown:s};return ka.value.push(c),e.classList&&e.classList.add(ww),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function ap(e){if(e.$_popper){const t=ka.value.indexOf(e.$_popper.item);t!==-1&&ka.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(ww)}function jv(e,{value:t,modifiers:r}){const o=xw(e,t,r);if(!o.content||wa(o.theme||"tooltip","disabled"))ap(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=kw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const wE={beforeMount:jv,updated:jv,beforeUnmount(e){ap(e)}},xE=wE,eo=fE,Sw={options:co};function cp(e){return z0()?(ZS(e),!0):!1}const Td=new WeakMap,kE=(...e)=>{var t;const r=e[0],o=(t=ti())==null?void 0:t.proxy;if(o==null&&!ub())throw new Error("injectLocal must be called in setup");return o&&Td.has(o)&&r in Td.get(o)?Td.get(o)[r]:pn(...e)},SE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _E=Object.prototype.toString,TE=e=>_E.call(e)==="[object Object]",CE=()=>+Date.now(),yu=()=>{};function up(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const fp=e=>e();function _w(e,t={}){let r,o,s=yu;const c=h=>{clearTimeout(h),s(),s=yu};let f;return h=>{const p=Xt(e),g=Xt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},p)})}}function Tw(e=fp,t={}){const{initialState:r="active"}=t,o=Zo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Ks(o),pause:s,resume:c,eventFilter:f}}function Uv(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Vv(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function EE(e){return ti()}function Cd(e){return Array.isArray(e)?e:[e]}function Zo(...e){if(e.length!==1)return S_(...e);const t=e[0];return typeof t=="function"?Ks(tb(()=>({get:t,set:yu}))):Ge(t)}function Nc(e,t=200,r={}){return up(_w(t,r),e)}function Cw(e,t,r={}){const{eventFilter:o=fp,...s}=r;return xt(e,up(o,t),s)}function Ew(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=Tw(o,{initialState:s});return{stop:Cw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function dp(e,t=!0,r){EE()?Ni(e,r):t?e():Et(e)}function uh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:L}={}){let P=null;const R=[new Promise(I=>{P=xt(e,_=>{v(_)!==t&&(P?P():Et(()=>P?.()),I(_))},{flush:b,deep:w,immediate:!0})})];return E!=null&&R.push(Uv(E,L).then(()=>Xt(e)).finally(()=>P?.())),Promise.race(R)}function o(v,b){if(!Mt(v))return r(_=>_===v,b);const{flush:w="sync",deep:E=!1,timeout:L,throwOnTimeout:P}=b??{};let M=null;const I=[new Promise(_=>{M=xt([e,v],([$,j])=>{t!==($===j)&&(M?M():Et(()=>M?.()),_($))},{flush:w,deep:E,immediate:!0})})];return L!=null&&I.push(Uv(L,P).then(()=>Xt(e)).finally(()=>(M?.(),Xt(e)))),Promise.race(I)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const E=Array.from(w);return E.includes(v)||E.includes(Xt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Xt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return uh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return uh(e,!t)}}}function Gv(e){return uh(e)}function AE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=Ft(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Xt(r);return c.value=c.value===h?Xt(o):h,c.value}}return s?f:[c,f]}function hp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Cw(e,t,{...c,eventFilter:_w(o,{maxWait:s})})}function LE(e,t,r={}){const{eventFilter:o=fp,...s}=r,c=up(o,t);let f,d,h;if(s.flush==="sync"){const p=Ft(!1);d=()=>{},f=g=>{p.value=!0,g(),p.value=!1},h=xt(e,(...g)=>{p.value||c(...g)},s)}else{const p=[],g=Ft(0),v=Ft(0);d=()=>{g.value=v.value},p.push(xt(e,()=>{v.value++},{...s,flush:"sync"})),f=b=>{const w=v.value;b(),g.value+=v.value-w},p.push(xt(e,(...b)=>{const w=g.value>0&&g.value===v.value;g.value=0,v.value=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function ME(e,t,r){return xt(e,t,{...r,immediate:!0})}function NE(e,t,r){const o=xt(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function OE(e,t,r){let o;Mt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=yu}=o,h=Ft(!s),p=f?Ft(t):Ge(t);let g=0;return fb(async v=>{if(!h.value)return;g++;const b=g;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(L=>{v(()=>{c&&(c.value=!1),w||L()})});b===g&&(p.value=E)}catch(E){d(E)}finally{c&&b===g&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ir=SE?window:void 0;function bu(e){var t;const r=Xt(e);return(t=r?.$el)!=null?t:r}function po(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=ke(()=>{const d=Cd(Xt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=ME(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>bu(p)))!=null?h:[Ir].filter(p=>p!=null),Cd(Xt(s.value?e[1]:e[0])),Cd(K(s.value?e[2]:e[1])),Xt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const v=TE(g)?{...g}:g;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,v)))))},{flush:"post"}),f=()=>{c(),r()};return cp(r),f}function PE(){const e=Ft(!1),t=ti();return t&&Ni(()=>{e.value=!0},t),e}function Aw(e){const t=PE();return ke(()=>(t.value,!!e()))}function RE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Lw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Ir,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=RE(t);return po(s,c,g=>{g.repeat&&Xt(d)||h(g)&&r(g)},f)}function $E(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ir,once:c=!1}=t,f=Ft(!1),d=ke(()=>o?1e3/Xt(o):null);let h=0,p=null;function g(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(g))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),cp(b),{isActive:Ks(f),pause:b,resume:v}}const IE=Symbol("vueuse-ssr-width");function DE(){const e=ub()?kE(IE,null):null;return typeof e=="number"?e:void 0}function Mw(e,t={}){const{window:r=Ir,ssrWidth:o=DE()}=t,s=Aw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Ft(typeof o=="number"),f=Ft(),d=Ft(!1),h=p=>{d.value=p.matches};return fb(()=>{if(c.value){c.value=!s.value;const p=Xt(e).split(",");d.value=p.some(g=>{const v=g.includes("not all"),b=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=Vv(b[1])),w&&E&&(E=o<=Vv(w[1])),v?!E:E});return}s.value&&(f.value=r.matchMedia(Xt(e)),d.value=f.value.matches)}),po(f,"change",h,{passive:!0}),ke(()=>d.value)}function Nw(e){return JSON.parse(JSON.stringify(e))}const Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pc="__vueuse_ssr_handlers__",zE=FE();function FE(){return Pc in Oc||(Oc[Pc]=Oc[Pc]||{}),Oc[Pc]}function Ow(e,t){return zE[e]||t}function HE(e){return Mw("(prefers-color-scheme: dark)",e)}function BE(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 WE={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()}},Kv="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:g,window:v=Ir,eventFilter:b,onError:w=q=>{console.error(q)},initOnMounted:E}=o,L=(g?Ft:Ge)(typeof t=="function"?t():t),P=ke(()=>Xt(e));if(!r)try{r=Ow("getDefaultStorage",()=>{var q;return(q=Ir)==null?void 0:q.localStorage})()}catch(q){w(q)}if(!r)return L;const M=Xt(t),R=BE(M),I=(s=o.serializer)!=null?s:WE[R],{pause:_,resume:$}=Ew(L,()=>re(L.value),{flush:c,deep:f,eventFilter:b});xt(P,()=>Z(),{flush:c}),v&&d&&dp(()=>{r instanceof Storage?po(v,"storage",Z,{passive:!0}):po(v,Kv,G),E&&Z()}),E||Z();function j(q,O){if(v){const N={key:P.value,oldValue:q,newValue:O,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",N):new CustomEvent(Kv,{detail:N}))}}function re(q){try{const O=r.getItem(P.value);if(q==null)j(O,null),r.removeItem(P.value);else{const N=I.write(q);O!==N&&(r.setItem(P.value,N),j(O,N))}}catch(O){w(O)}}function ee(q){const O=q?q.newValue:r.getItem(P.value);if(O==null)return h&&M!=null&&r.setItem(P.value,I.write(M)),M;if(!q&&p){const N=I.read(O);return typeof p=="function"?p(N,M):R==="object"&&!Array.isArray(N)?{...M,...N}:N}else return typeof O!="string"?O:I.read(O)}function Z(q){if(!(q&&q.storageArea!==r)){if(q&&q.key==null){L.value=M;return}if(!(q&&q.key!==P.value)){_();try{q?.newValue!==I.write(L.value)&&(L.value=ee(q))}catch(O){w(O)}finally{q?Et($):$()}}}}function G(q){Z(q.detail)}return L}const qE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function jE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ir,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=HE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Zo(o):Pw(f,o,c,{window:s,listenToStorageChanges:d})),L=ke(()=>E.value==="auto"?w.value:E.value),P=Ow("updateHTMLAttrs",(_,$,j)=>{const re=typeof _=="string"?s?.document.querySelector(_):bu(_);if(!re)return;const ee=new Set,Z=new Set;let G=null;if($==="class"){const O=j.split(/\s/g);Object.values(v).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{O.includes(N)?ee.add(N):Z.add(N)})}else G={key:$,value:j};if(ee.size===0&&Z.size===0&&G===null)return;let q;g&&(q=s.document.createElement("style"),q.appendChild(document.createTextNode(qE)),s.document.head.appendChild(q));for(const O of ee)re.classList.add(O);for(const O of Z)re.classList.remove(O);G&&re.setAttribute(G.key,G.value),g&&(s.getComputedStyle(q).opacity,document.head.removeChild(q))});function M(_){var $;P(t,r,($=v[_])!=null?$:_)}function R(_){e.onChanged?e.onChanged(_,M):M(_)}xt(L,R,{flush:"post",immediate:!0}),dp(()=>R(L.value));const I=ke({get(){return p?E.value:L.value},set(_){E.value=_}});return Object.assign(I,{store:E,system:w,state:L})}function UE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=jE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function Rw(e){return e}function VE(e,t){return e.value=t}function GE(e){return e?typeof e=="function"?e:Nw:Rw}function KE(e){return e?typeof e=="function"?e:Nw:Rw}function XE(e,t={}){const{clone:r=!1,dump:o=GE(r),parse:s=KE(r),setSource:c=VE}=t;function f(){return Uu({snapshot:o(e.value),timestamp:CE()})}const d=Ge(f()),h=Ge([]),p=Ge([]),g=I=>{c(e,s(I.snapshot)),d.value=I},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const I=h.value.shift();I&&(p.value.unshift(d.value),g(I))},E=()=>{const I=p.value.shift();I&&(h.value.unshift(d.value),g(I))},L=()=>{g(d.value)},P=ke(()=>[d.value,...h.value]),M=ke(()=>h.value.length>0),R=ke(()=>p.value.length>0);return{source:e,undoStack:h,redoStack:p,last:d,history:P,canUndo:M,canRedo:R,clear:b,commit:v,reset:L,undo:w,redo:E}}function YE(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s}=t,{eventFilter:c,pause:f,resume:d,isActive:h}=Tw(s),{ignoreUpdates:p,ignorePrevAsyncUpdates:g,stop:v}=LE(e,P,{deep:r,flush:o,eventFilter:c});function b(_,$){g(),p(()=>{_.value=$})}const w=XE(e,{...t,clone:t.clone||r,setSource:b}),{clear:E,commit:L}=w;function P(){g(),L()}function M(_){d(),_&&P()}function R(_){let $=!1;const j=()=>$=!0;p(()=>{_(j)}),$||P()}function I(){v(),E()}return{...w,isTracking:h,pause:f,resume:M,commit:P,batch:R,dispose:I}}function $w(e,t,r={}){const{window:o=Ir,...s}=r;let c;const f=Aw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const v=Xt(e);return Array.isArray(v)?v.map(b=>bu(b)):[bu(v)]}),p=xt(h,v=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of v)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return cp(g),{isSupported:f,stop:g}}function sf(e,t,r={}){const{window:o=Ir}=r;return Pw(e,t,o?.localStorage,r)}function ZE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ir}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const I=d.location.hash||"",_=I.indexOf("?");return _>0?I.slice(_):""}else return(d.location.hash||"").replace(/^#/,"")}function g(I){const _=I.toString();if(e==="history")return`${_?`?${_}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${_?`#${_}`:""}`;const $=d.location.hash||"#",j=$.indexOf("?");return j>0?`${d.location.search||""}${$.slice(0,j)}${_?`?${_}`:""}`:`${d.location.search||""}${$}${_?`?${_}`:""}`}function v(){return new URLSearchParams(p())}function b(I){const _=new Set(Object.keys(h));for(const $ of I.keys()){const j=I.getAll($);h[$]=j.length>1?j:I.get($)||"",_.delete($)}Array.from(_).forEach($=>delete h[$])}const{pause:w,resume:E}=Ew(h,()=>{const I=new URLSearchParams("");Object.keys(h).forEach(_=>{const $=h[_];Array.isArray($)?$.forEach(j=>I.append(_,j)):o&&$==null||s&&!$?I.delete(_):I.set(_,$)}),L(I,!1)},{deep:!0});function L(I,_){w(),_&&b(I),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g(I)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g(I)),E()}function P(){c&&L(v(),!0)}const M={passive:!0};po(d,"popstate",P,M),e!=="history"&&po(d,"hashchange",P,M);const R=v();return R.keys().next().value?b(R):Object.assign(h,r),h}function Iw(e={}){const{window:t=Ir,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Ft(r),h=Ft(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),dp(p);const g={passive:!0};if(po("resize",p,g),t&&f==="visual"&&t.visualViewport&&po(t.visualViewport,"resize",p,g),s){const v=Mw("(orientation: portrait)");xt(v,()=>p())}return{width:d,height:h}}const Xv={__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=Sb(),c=Ge([]),f=ke(()=>c.value.reduce((F,Y)=>(F[~~Y.id]=Y)&&F,{})),d=ke(()=>c.value.length),h=Ge(null),p=Ge(!1),g=Ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ge({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",P,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M))},E=()=>{document.removeEventListener("mousemove",P,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",P,{passive:!1}),document.removeEventListener("touchend",M))},L=(F,Y)=>{const ne=F.target.closest(".splitpanes__splitter");if(ne){const{left:le,top:ce}=ne.getBoundingClientRect(),{clientX:D,clientY:W}="ontouchstart"in window&&F.touches?F.touches[0]:F;g.value.cursorOffset=o.horizontal?W-ce:D-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Y},P=F=>{g.value.mouseDown&&(F.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{re($(F)),Fe("resize",{event:F},!0)}))},M=F=>{g.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:F},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,E()},100)},R=(F,Y)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===Y?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,I(F,Y),v.value.splitter=null):(v.value.splitter=Y,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||Fe("splitter-click",{event:F,index:Y},!0)},I=(F,Y)=>{if(Fe("splitter-dblclick",{event:F,index:Y},!0),o.maximizePanes){let ne=0;c.value=c.value.map((le,ce)=>(le.size=ce===Y?le.max:le.min,ce!==Y&&(ne+=le.min),le)),c.value[Y].size-=ne,Fe("pane-maximize",{event:F,index:Y,pane:c.value[Y]}),Fe("resized",{event:F,index:Y},!0)}},_=(F,Y)=>{Fe("pane-click",{event:F,index:f.value[Y].index,pane:f.value[Y]})},$=F=>{const Y=h.value.getBoundingClientRect(),{clientX:ne,clientY:le}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:ne-(o.horizontal?0:g.value.cursorOffset)-Y.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Y.top}},j=F=>{F=F[o.horizontal?"y":"x"];const Y=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=Y-F),F*100/Y},re=F=>{const Y=g.value.activeSplitter;let ne={prevPanesSize:Z(Y),nextPanesSize:G(Y),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:ne.prevPanesSize),ce=100-(o.pushOtherPanes?0:ne.nextPanesSize),D=Math.max(Math.min(j(F),ce),le);let W=[Y,Y+1],Q=c.value[W[0]]||null,de=c.value[W[1]]||null;const he=Q.max<100&&D>=Q.max+ne.prevPanesSize,ge=de.max<100&&D<=100-(de.max+G(Y+1));if(he||ge){he?(Q.size=Q.max,de.size=Math.max(100-Q.max-ne.prevPanesSize-ne.nextPanesSize,0)):(Q.size=Math.max(100-de.max-ne.prevPanesSize-G(Y+1),0),de.size=de.max);return}if(o.pushOtherPanes){const Ce=ee(ne,D);if(!Ce)return;({sums:ne,panesToResize:W}=Ce),Q=c.value[W[0]]||null,de=c.value[W[1]]||null}Q!==null&&(Q.size=Math.min(Math.max(D-ne.prevPanesSize-ne.prevReachedMinPanes,Q.min),Q.max)),de!==null&&(de.size=Math.min(Math.max(100-D-ne.nextPanesSize-ne.nextReachedMinPanes,de.min),de.max))},ee=(F,Y)=>{const ne=g.value.activeSplitter,le=[ne,ne+1];return Y<F.prevPanesSize+c.value[le[0]].min&&(le[0]=q(ne).index,F.prevReachedMinPanes=0,le[0]<ne&&c.value.forEach((ce,D)=>{D>le[0]&&D<=ne&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),F.prevPanesSize=Z(le[0]),le[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ce,D)=>{D>0&&D<=ne&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),c.value[le[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):Y>100-F.nextPanesSize-c.value[le[1]].min&&(le[1]=O(ne).index,F.nextReachedMinPanes=0,le[1]>ne+1&&c.value.forEach((ce,D)=>{D>ne&&D<le[1]&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),F.nextPanesSize=G(le[1]-1),le[1]===void 0)?(F.nextReachedMinPanes=0,c.value.forEach((ce,D)=>{D<d.value-1&&D>=ne+1&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),c.value[le[0]].size=100-F.prevPanesSize-G(le[0]-1),null):{sums:F,panesToResize:le}},Z=F=>c.value.reduce((Y,ne,le)=>Y+(le<F?ne.size:0),0),G=F=>c.value.reduce((Y,ne,le)=>Y+(le>F+1?ne.size:0),0),q=F=>[...c.value].reverse().find(Y=>Y.index<F&&Y.size>Y.min)||{},O=F=>c.value.find(Y=>Y.index>F+1&&Y.size>Y.min)||{},N=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const ne of Y){const le=ne.classList.contains("splitpanes__pane"),ce=ne.classList.contains("splitpanes__splitter");!le&&!ce&&(ne.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},C=(F,Y,ne=!1)=>{const le=F-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),ne||(ce.onmousedown=D=>L(D,le),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=D=>L(D,le)),ce.onclick=D=>R(D,le+1)),ce.ondblclick=D=>I(D,le+1),Y.parentNode.insertBefore(ce,Y)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},z=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const le of Y)le.className.includes("splitpanes__splitter")&&k(le);let ne=0;for(const le of Y)le.className.includes("splitpanes__pane")&&(!ne&&o.firstSplitter?C(ne,le,!0):ne&&C(ne,le),ne++)},B=({uid:F,...Y})=>{const ne=f.value[F];for(const[le,ce]of Object.entries(Y))ne[le]=ce},ae=F=>{var Y;let ne=-1;Array.from(((Y=h.value)==null?void 0:Y.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&ne++,le.isSameNode(F.el))),c.value.splice(ne,0,{...F,index:ne}),c.value.forEach((le,ce)=>le.index=ce),p.value&&Et(()=>{z(),Se({addedPane:c.value[ne]}),Fe("pane-add",{pane:c.value[ne]})})},me=F=>{const Y=c.value.findIndex(le=>le.id===F);c.value[Y].el=null;const ne=c.value.splice(Y,1)[0];c.value.forEach((le,ce)=>le.index=ce),Et(()=>{z(),Fe("pane-remove",{pane:ne}),Se({removedPane:{...ne}})})},Se=(F={})=>{!F.addedPane&&!F.removedPane?Ae():c.value.some(Y=>Y.givenSize!==null||Y.min||Y.max<100)?Ke(F):Be(),p.value&&Fe("resized")},Be=()=>{const F=100/d.value;let Y=0;const ne=[],le=[];for(const ce of c.value)ce.size=Math.max(Math.min(F,ce.max),ce.min),Y-=ce.size,ce.size>=ce.max&&ne.push(ce.id),ce.size<=ce.min&&le.push(ce.id);Y>.1&&je(Y,ne,le)},Ae=()=>{let F=100;const Y=[],ne=[];let le=0;for(const D of c.value)F-=D.size,D.givenSize!==null&&le++,D.size>=D.max&&Y.push(D.id),D.size<=D.min&&ne.push(D.id);let ce=100;if(F>.1){for(const D of c.value)D.givenSize===null&&(D.size=Math.max(Math.min(F/(d.value-le),D.max),D.min)),ce-=D.size;ce>.1&&je(ce,Y,ne)}},Ke=({addedPane:F,removedPane:Y}={})=>{let ne=100/d.value,le=0;const ce=[],D=[];(F?.givenSize??null)!==null&&(ne=(100-F.givenSize)/(d.value-1));for(const W of c.value)le-=W.size,W.size>=W.max&&ce.push(W.id),W.size<=W.min&&D.push(W.id);if(!(Math.abs(le)<.1)){for(const W of c.value)F?.givenSize!==null&&F?.id===W.id||(W.size=Math.max(Math.min(ne,W.max),W.min)),le-=W.size,W.size>=W.max&&ce.push(W.id),W.size<=W.min&&D.push(W.id);le>.1&&je(le,ce,D)}},je=(F,Y,ne)=>{let le;F>0?le=F/(d.value-Y.length):le=F/(d.value-ne.length),c.value.forEach((ce,D)=>{if(F>0&&!Y.includes(ce.id)){const W=Math.max(Math.min(ce.size+le,ce.max),ce.min),Q=W-ce.size;F-=Q,ce.size=W}else if(!ne.includes(ce.id)){const W=Math.max(Math.min(ce.size+le,ce.max),ce.min),Q=W-ce.size;F-=Q,ce.size=W}}),Math.abs(F)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(F,Y=void 0,ne=!1)=>{const le=Y?.index??g.value.activeSplitter??null;r(F,{...Y,...le!==null&&{index:le},...ne&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};xt(()=>o.firstSplitter,()=>z()),Ni(()=>{N(),z(),Se(),Fe("ready"),p.value=!0}),Ia(()=>p.value=!1);const Pe=()=>{var F;return Fa("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",ke(()=>o.horizontal)),dr("requestUpdate",B),dr("onPaneAdd",ae),dr("onPaneRemove",me),dr("onPaneClick",_),(F,Y)=>(ie(),Ve(Xd(Pe)))}},Rc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=pn("requestUpdate"),s=pn("onPaneAdd"),c=pn("horizontal"),f=pn("onPaneRemove"),d=pn("onPaneClick"),h=(t=ti())==null?void 0:t.uid,p=pn("indexedPanes"),g=ke(()=>p.value[h]),v=Ge(null),b=ke(()=>{const P=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(P,E.value),w.value)}),w=ke(()=>{const P=parseFloat(r.minSize);return isNaN(P)?0:P}),E=ke(()=>{const P=parseFloat(r.maxSize);return isNaN(P)?100:P}),L=ke(()=>{var P;return`${c.value?"height":"width"}: ${(P=g.value)==null?void 0:P.size}%`});return xt(()=>b.value,P=>o({uid:h,size:P})),xt(()=>w.value,P=>o({uid:h,min:P})),xt(()=>E.value,P=>o({uid:h,max:P})),Ni(()=>{s({id:h,el:v.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),Ia(()=>f(h)),(P,M)=>(ie(),ye("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:M[0]||(M[0]=R=>K(d)(R,P._.uid)),style:zt(L.value)},[Dt(P.$slots,"default")],4))}},tr=Ge([414,896]);function Dw(e){return e!=null}function pp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const JE=/^[A-Za-z]:\//;function QE(e=""){return e&&e.replace(/\\/g,"/").replace(JE,t=>t.toUpperCase())}const eA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function tA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const zw=function(...e){e=e.map(o=>QE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:tA();!s||s.length===0||(t=`${s}/${t}`,r=Yv(s))}return t=nA(t,!r),r&&!Yv(t)?`/${t}`:t.length>0?t:"."};function nA(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 Yv=function(e){return eA.test(e)};var rA=44,Zv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iA=new Uint8Array(64),Fw=new Uint8Array(128);for(let e=0;e<Zv.length;e++){const t=Zv.charCodeAt(e);iA[e]=t,Fw[t]=e}function Bl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=Fw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Jv(e,t){return e.pos>=t?!1:e.peek()!==rA}var oA=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 sA(e){const{length:t}=e,r=new oA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos<p;){let w;s=Bl(r,s),s<b&&(v=!1),b=s,Jv(r,p)?(c=Bl(r,c),f=Bl(r,f),d=Bl(r,d),Jv(r,p)?(h=Bl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],g.push(w),r.pos++}v||lA(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function lA(e){e.sort(aA)}function aA(e,t){return e[0]-t[0]}var lf=0,cA=1,uA=2,fA=3,dA=4,wu=!1;function hA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][lf]-t;if(c===0)return wu=!0,s;c<0?r=s+1:o=s-1}return wu=!1,r-1}function pA(e,t,r){for(let o=r+1;o<e.length&&e[o][lf]===t;r=o++);return r}function gA(e,t,r){for(let o=r-1;o>=0&&e[o][lf]===t;r=o--);return r}function mA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return wu=f!==-1&&e[f][lf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=hA(e,t,d,h)}var vA="`line` must be greater than 0 (lines start at line 1)",yA="`column` must be greater than or equal to 0 (columns start at column 0)",Qv=-1,bA=1;function wA(e){var t;return(t=e)._decoded||(t._decoded=sA(e._encoded))}function xA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(vA);if(o<0)throw new Error(yA);const c=wA(e);if(r>=c.length)return $c(null,null,null,null);const f=c[r],d=kA(f,e._decodedMemo,r,o,s||bA);if(d===-1)return $c(null,null,null,null);const h=f[d];if(h.length===1)return $c(null,null,null,null);const{names:p,resolvedSources:g}=e;return $c(g[h[cA]],h[uA]+1,h[fA],h.length===5?p[h[dA]]:null)}function $c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function kA(e,t,r,o,s){let c=mA(e,o,t,r);return wu?c=(s===Qv?pA:gA)(e,o,c):s===Qv&&c++,c===-1||c===e.length?-1:c}const Hw=/^\s*at .*(?:\S:\d+|\(native\))/m,SA=/^(?:eval@)?(?:\[native code\])?$/,_A=["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 Bw(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 TA(e){let t=e.trim();if(SA.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]=Bw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function CA(e){let t=e.trim();if(!Hw.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]=Bw(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:zw(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 EA(e,t={}){const{ignoreStackEntries:r=_A}=t;return(Hw.test(e)?LA(e):AA(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 ey(r,s.file)?null:s;const d=new MA(f,s.file),h=OA(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let w=v||s.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),ey(r,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:b||s.method}:s}).filter(s=>s!=null)}function ey(e,t){return e.some(r=>t.match(r))}function AA(e){return e.split(`
|
|
18
|
-
`).map(t=>TA(t)).filter(Dw)}function LA(e){return e.split(`
|
|
19
|
-
`).map(t=>CA(t)).filter(Dw)}class MA{_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=>zw(f||"",r))}}function NA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function OA(e,t){const r=xA(e,t);return r.column==null?null:r}const PA=/^[A-Za-z]:\//;function Ww(e=""){return e&&e.replace(/\\/g,"/").replace(PA,t=>t.toUpperCase())}const RA=/^[/\\]{2}/,$A=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,IA=/^[A-Za-z]:$/,ty=/^\/([A-Za-z]:)?$/,DA=function(e){if(e.length===0)return".";e=Ww(e);const t=e.match(RA),r=xu(e),o=e[e.length-1]==="/";return e=qw(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),IA.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!xu(e)?`/${e}`:e)},zA=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return DA(t)};function FA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ny=function(...e){e=e.map(o=>Ww(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:FA();!s||s.length===0||(t=`${s}/${t}`,r=xu(s))}return t=qw(t,!r),r&&!xu(t)?`/${t}`:t.length>0?t:"."};function qw(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const xu=function(e){return $A.test(e)},af=function(e,t){const r=ny(e).replace(ty,"$1").split("/"),o=ny(t).replace(ty,"$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 HA(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 jw(e,t,r,o,s){const c=af(t,e),f={id:BA(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function BA(e,t){return HA(`${e}${t||""}`)}function Qs(e){return e.type==="test"}function Uw(e){const t=[],r=pp(e);for(const o of r)if(Qs(o))t.push(o);else for(const s of o.tasks)if(Qs(s))t.push(s);else{const c=Uw(s);for(const f of c)t.push(f)}return t}function gp(e=[]){return pp(e).flatMap(t=>Qs(t)?[t]:[t,...gp(t.tasks)])}function WA(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 ry="q",iy="s";function qA(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const jA=Math.random.bind(Math),UA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function VA(e=21){let t="",r=e;for(;r--;)t+=UA[jA()*64|0];return t}const GA=6e4,Vw=e=>e,KA=Vw,{clearTimeout:oy,setTimeout:XA}=globalThis;function YA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Vw,deserialize:d=KA,resolver:h,bind:p="rpc",timeout:g=GA,proxify:v=!0}=t;let b=!1;const w=new Map;let E,L;async function P($,j,re,ee){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${$}"`);const Z={m:$,a:j,t:ry};ee&&(Z.o=!0);const G=async B=>r(f(B));if(re){await G(Z);return}if(E)try{await E}finally{E=void 0}let{promise:q,resolve:O,reject:N}=qA();const C=VA();Z.i=C;let k;async function z(B=Z){return g>=0&&(k=XA(()=>{try{if(t.onTimeoutError?.call(L,$,j)!==!0)throw new Error(`[birpc] timeout on calling "${$}"`)}catch(ae){N(ae)}w.delete(C)},g),typeof k=="object"&&(k=k.unref?.())),w.set(C,{resolve:O,reject:N,timeoutId:k,method:$}),await G(B),q}try{t.onRequest?await t.onRequest.call(L,Z,z,O):await z()}catch(B){if(t.onGeneralError?.call(L,B)!==!0)throw B;return}finally{oy(k),w.delete(C)}return q}const M={$call:($,...j)=>P($,j,!1),$callOptional:($,...j)=>P($,j,!1,!0),$callEvent:($,...j)=>P($,j,!0),$callRaw:$=>P($.method,$.args,$.event,$.optional),$rejectPendingCalls:I,get $closed(){return b},get $meta(){return t.meta},$close:R,$functions:e};v?L=new Proxy({},{get($,j){if(Object.prototype.hasOwnProperty.call(M,j))return M[j];if(j==="then"&&!c.includes("then")&&!("then"in e))return;const re=(...Z)=>P(j,Z,!0);if(c.includes(j))return re.asEvent=re,re;const ee=(...Z)=>P(j,Z,!1);return ee.asEvent=re,ee}}):L=M;function R($){b=!0,w.forEach(({reject:j,method:re})=>{const ee=new Error(`[birpc] rpc is closed, cannot call "${re}"`);if($)return $.cause??=ee,j($);j(ee)}),w.clear(),s(_)}function I($){const j=Array.from(w.values()).map(({method:re,reject:ee})=>$?$({method:re,reject:ee}):ee(new Error(`[birpc]: rejected pending call "${re}".`)));return w.clear(),j}async function _($,...j){let re;try{re=d($)}catch(ee){if(t.onGeneralError?.call(L,ee)!==!0)throw ee;return}if(re.t===ry){const{m:ee,a:Z,o:G}=re;let q,O,N=await(h?h.call(L,ee,e[ee]):e[ee]);if(G&&(N||=()=>{}),!N)O=new Error(`[birpc] function "${ee}" not found`);else try{q=await N.apply(p==="rpc"?L:e,Z)}catch(C){O=C}if(re.i){if(O&&t.onFunctionError&&t.onFunctionError.call(L,O,ee,Z)===!0)return;if(!O)try{await r(f({t:iy,i:re.i,r:q}),...j);return}catch(C){if(O=C,t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}try{await r(f({t:iy,i:re.i,e:O}),...j)}catch(C){if(t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}}}else{const{i:ee,r:Z,e:G}=re,q=w.get(ee);q&&(oy(q.timeoutId),G?q.reject(G):q.resolve(Z)),w.delete(ee)}}return E=o(_),L}const{parse:Gw,stringify:ZA}=JSON,{keys:JA}=Object,Sa=String,Kw="string",sy={},ku="object",Xw=(e,t)=>t,QA=e=>e instanceof Sa?Sa(e):e,eL=(e,t)=>typeof t===Kw?new Sa(t):t,Yw=(e,t,r,o)=>{const s=[];for(let c=JA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof Sa){const g=e[p];typeof g===ku&&!t.has(g)?(t.add(g),r[h]=sy,s.push({k:h,a:[e,t,g,o]})):r[h]=o.call(r,h,g)}else r[h]!==sy&&(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,Yw.apply(null,h))}return r},ly=(e,t,r)=>{const o=Sa(t.push(r)-1);return e.set(r,o),o},fh=(e,t)=>{const r=Gw(e,eL).map(QA),o=r[0],s=t||Xw,c=typeof o===ku&&o?Yw(r,new Set,o,s):o;return s.call({"":c},"",c)},Zw=(e,t,r)=>{const o=t&&typeof t===ku?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||Xw,s=new Map,c=[],f=[];let d=+ly(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=ZA(c[d++],p,r);return"["+f.join(",")+"]";function p(g,v){if(h)return h=!h,v;const b=o.call(this,g,v);switch(typeof b){case ku:if(b===null)return b;case Kw:return s.get(b)||ly(s,c,b)}return b}},tL=e=>Gw(Zw(e));class Jw{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=jw(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 nL(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new Jw,waitForConnection:M,reconnect:L},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(R,I){r.onTestAnnotate?.(R,I)},onTestArtifactRecord(R,I){r.onTestArtifactRecord?.(R,I)},onSpecsCollected(R,I){R?.forEach(([_,$])=>{g.state.clearFiles({config:_},[$])}),r.onSpecsCollected?.(R,I)},onPathsCollected(R){g.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){g.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,I){g.state.updateTasks(R),r.onTaskUpdate?.(R,I)},onUserConsoleLog(R){g.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,I,_,$){r.onFinished?.(R,I,_,$)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:R=>g.ws.send(R),on:R=>v=R,serialize:R=>Zw(R,(I,_)=>_ instanceof Error?{name:_.name,message:_.message,stack:_.stack}:_),deserialize:fh,timeout:-1};g.rpc=YA(b,w);let E;function L(R=!1){R&&(p=c),g.ws=new h(e),P()}function P(){E=new Promise((R,I)=>{const _=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&R(),g.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(_)})}),g.ws.addEventListener("message",R=>{v(R.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}P();function M(){return E}return g}const dh=Ft([]),Jn=Ft([]),Dr=sf("vitest-ui_task-tree-opened",[],{shallow:!0}),Su=ke(()=>new Set(Dr.value)),gn=sf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Vn=Ge(gn.value.search),rL={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qw(e){return e.replace(/[&<>"']/g,t=>rL[t])}const iL=ke(()=>{const e=Vn.value.toLowerCase();return e.length?new RegExp(`(${Qw(e)})`,"gi"):null}),ex=ke(()=>Vn.value.trim()!==""),it=ir({failed:gn.value.failed,success:gn.value.success,skipped:gn.value.skipped,onlyTests:gn.value.onlyTests}),hh=ke(()=>!!(it.failed||it.success||it.skipped)),cf=Ft([]),el=Ge(!1),ay=ke(()=>{const e=gn.value.expandAll;return Dr.value.length>0?e!==!0:e!==!1}),oL=ke(()=>{const e=ex.value,t=hh.value,r=it.onlyTests,o=Oe.summary.filesFailed,s=Oe.summary.filesSuccess,c=Oe.summary.filesSkipped,f=Oe.summary.filesRunning,d=cf.value;return Oe.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ha(e){return Object.hasOwn(e,"tasks")}function sL(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Ho(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Ed(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function lL(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function tx(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 aL(e){return tx(e).raw}function Xc(e){if(e>=500)return"danger";if(e>=100)return"warning"}function _u(e){const t=Xc(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function nx(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 rx(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 cL(e){return e.type==="test"}function uL(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Ei(e){return e.type==="file"||e.type==="suite"}function fL(e=Oe.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function _a(e,t=!1){let r=Oe.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Su.value.size>0&&Su.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Oe.colors.get(e.projectName||"")||nx(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Oe.nodes.set(e.id,r),Oe.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ba(e.id,e.tasks[o],!0)}function ix(e,t){const r=Oe.nodes.get(e);if(!r||!Ei(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Ha(o)))return Ba(r.parentId,o,t&&o.tasks.length>0),[r,o]}function dL(e){const t=Oe.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!Qs(r)||Ba(t.parentId,r,!1)}function Ba(e,t,r){const o=Oe.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Oe.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Qs(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Su.value.size>0&&Su.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Oe.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ha(t)))for(let f=0;f<t.tasks.length;f++)Ba(s.id,t.tasks[f],r)}function hL(e){const t=Oe.nodes.get(e);if(!t||!Ei(t))return;const r=new Set(Dr.value);r.delete(t.id);const o=[...gL(t)];Dr.value=Array.from(r),Jn.value=o}function pL(){ph(Oe.root.tasks);const e=[...Jn.value.filter(In)];ph(e),Dr.value=[],gn.value.expandAll=!0,Jn.value=e}function ph(e){for(const t of e)Ei(t)&&(t.expanded=!1,ph(t.tasks))}function*ox(e,t){if(t&&(yield e.id),Ei(e))for(let r=0;r<e.tasks.length;r++)yield*ox(e.tasks[r],!0)}function*gL(e){const t=e.id,r=new Set(ox(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const uf=Ge("idle"),Ns=ke(()=>uf.value==="idle"),to=Ge([]);function mL(e,t,r){return e?ax(e,t,r):!1}function mp(e,t){const r=[...sx(e,t)];Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function*sx(e,t){for(const r of fL())yield*lx(r,e,t)}function*lx(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of gh(e,o,w=>cy(w,t,r)))c.push([v,b]);else{for(const[v,b]of gh(e,o,w=>cy(w,t,r)))Ei(b)?(s.set(b.id,v),In(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...yL(c,r.onlyTests,o,d,f)].reverse(),p=Oe.nodes,g=new Set(h.filter(v=>In(v)||Ei(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>In(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function vL(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*yL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Ei(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Oe.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Oe.nodes.get(p.parentId);yield d;continue}if(h){const p=vL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Oe.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function bL(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 ax(e,t,r){if(t.length===0||sL(e.name,t))if(r.success||r.failed||r.skipped){if(bL(e,r))return!0}else return!0;return!1}function*gh(e,t,r){const o=r(e);if(o)if(cL(e)){let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}if(yield[o,e],Ei(e))for(let s=0;s<e.tasks.length;s++)yield*gh(e.tasks[s],t,r)}function cy(e,t,r){const o=ft.state.idMap.get(e.id);return o?ax(o,t,r):!1}function wL(e,t,r){const o=ix(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ba(s.id,p,!1);s.expanded=!0;const f=new Set(Dr.value);f.add(s.id);const d=new Set(lx(s,t,r)),h=[...SL(s,d)];Dr.value=Array.from(f),Jn.value=h}function xL(e,t){vp(Oe.root.tasks,!1);const r=[...sx(e,t)];gn.value.expandAll=!1,Dr.value=[],Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function kL(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&vp(Jn.value.filter(In),!0)}function vp(e,t){for(const r of e)Ei(r)&&(r.expanded=!0,vp(r.tasks,!1));t&&(gn.value.expandAll=!1,Dr.value=[])}function*SL(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function yp(e){return Uw(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function _L(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>_a(s,t)),dh.value=[...Oe.root.tasks],mp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function TL(e){queueMicrotask(()=>{const t=Oe.pendingTasks,r=ft.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function CL(e,t){const r=Oe.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function uy(e,t,r,o,s,c){e&&OL(r);const f=!e;queueMicrotask(()=>{t?LL(f):ML(f)}),queueMicrotask(()=>{PL(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=dh.value&&yp(dh.value.map(d=>mr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{NL(o,s,t)})}function*EL(){yield*Jn.value.filter(uL)}function AL(){const e=ft.state.idMap;let t;for(const r of EL())t=e.get(r.parentId),t&&Ha(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function LL(e){const t=ft.state.getFiles(),r=Oe.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)_a(o[c],e),Tu(o[c].tasks);const s=Oe.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=mr(f.id);!d||(_a(d,e),!d.tasks?.length)||Tu(d.tasks)}}function ML(e){const t=new Map(Oe.pendingTasks.entries());Oe.pendingTasks.clear();const r=Oe.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>mr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],_a(s,!1),Tu(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Oe.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=mr(h.id);if(!p)continue;const g=t.get(p.id);g&&(_a(p,e),Tu(Array.from(g,v=>c.get(v)).filter(Boolean)))}}function NL(e,t,r=!1){const o=gn.value.expandAll,s=o!==!0,c=new Set(Dr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{fy(e,t,r)}),el.value||queueMicrotask(()=>{(Jn.value.length||r)&&(el.value=!0)}),f&&(queueMicrotask(()=>{kL(c,r),s&&(gn.value.expandAll=!1)}),queueMicrotask(()=>{fy(e,t,r)}))}function fy(e,t,r){mp(e,t),r&&(AL(),uf.value="idle")}function Tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ha(t)?ix(t.id,!0):dL(t.id)}function OL(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 PL(e,t){const r=ft.state.idMap,o=new Map(Oe.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,mr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:w}=cx(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=w,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function cx(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of ux(e))(!r||mL(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 RL(e,t,r,o,s,c){if(t)return r.map(f=>cx(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*ux(e){const t=pp(e);let r;for(let o=0;o<t.length;o++)r=t[o],Qs(r)?yield r:yield*ux(r.tasks)}class $L{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=$E(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])),_L(t,!0,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){CL(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){TL(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(()=>{uy(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):uy(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return RL(t,r,o,s,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}collapseNode(t){queueMicrotask(()=>{hL(t)})}expandNode(t){queueMicrotask(()=>{wL(t,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{pL()})}expandAllNodes(){queueMicrotask(()=>{xL(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}filterNodes(){queueMicrotask(()=>{mp(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}}const Oe=new $L;function fx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},IL=Yc.exports,dy;function yo(){return dy||(dy=1,(function(e,t){(function(r,o){e.exports=o()})(IL,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),P=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),I=/Android/.test(r),_=R||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),$=R||/Mac/.test(o),j=/\bCrOS\b/.test(r),re=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,g=!0);var Z=$&&(v||E&&(ee==null||ee<12.11)),G=s||h&&p>=9;function q(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var O=function(n,i){var a=n.className,l=q(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 N(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function C(n,i){return N(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)u.appendChild(i[m]);return u}function z(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var B;document.createRange?B=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:B=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ae(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 Se(n,i){var a=n.className;q(i).test(a)||(n.className+=(a?" ":"")+i)}function Be(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!q(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ae=function(n){n.select()};R?Ae=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ae=function(n){try{n.select()}catch{}});function Ke(n){return n.display.wrapper.ownerDocument}function je(n){return Fe(n.display.wrapper)}function Fe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Pe(n){return Ke(n).defaultView}function F(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Y(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function ne(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var m=l||0,y=u||0;;){var x=n.indexOf(" ",m);if(x<0||x>=i)return y+(i-m);y+=x-m,y+=a-y%a,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ce(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var D=50,W={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function ge(n,i,a){for(var l=0,u=0;;){var m=n.indexOf(" ",l);m==-1&&(m=n.length);var y=m-l;if(m==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function J(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function ue(){}function oe(n,i){var a;return Object.create?a=Object.create(n):(ue.prototype=n,a=new ue),i&&Y(i,a),a}var $e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||$e.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Je(n)?!0:i.test(n):Je(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Yt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;m<n.length;++m){var y=n[m];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",m),u=!0)}u||l(i,a,"ltr")}var Hr=null;function Bt(n,i,a){var l;Hr=null;for(var u=0;u<n.length;++u){var m=n[u];if(m.from<i&&m.to>i)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Hr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Hr=u)}return l??Hr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var se=T.length,te=[],pe=0;pe<se;++pe)te.push(a(T.charCodeAt(pe)));for(var we=0,Te=V;we<se;++we){var Le=te[we];Le=="m"?te[we]=Te:Te=Le}for(var De=0,Me=V;De<se;++De){var ze=te[De];ze=="1"&&Me=="r"?te[De]="n":m.test(ze)&&(Me=ze,ze=="r"&&(te[De]="R"))}for(var Ye=1,Ue=te[0];Ye<se-1;++Ye){var st=te[Ye];st=="+"&&Ue=="1"&&te[Ye+1]=="1"?te[Ye]="1":st==","&&Ue==te[Ye+1]&&(Ue=="1"||Ue=="n")&&(te[Ye]=Ue),Ue=st}for(var St=0;St<se;++St){var tn=te[St];if(tn==",")te[St]="N";else if(tn=="%"){var Ot=void 0;for(Ot=St+1;Ot<se&&te[Ot]=="%";++Ot);for(var qn=St&&te[St-1]=="!"||Ot<se&&te[Ot]=="1"?"1":"N",Cn=St;Cn<Ot;++Cn)te[Cn]=qn;St=Ot-1}}for(var Ut=0,En=V;Ut<se;++Ut){var sn=te[Ut];En=="L"&&sn=="1"?te[Ut]="L":m.test(sn)&&(En=sn)}for(var Kt=0;Kt<se;++Kt)if(u.test(te[Kt])){var Vt=void 0;for(Vt=Kt+1;Vt<se&&u.test(te[Vt]);++Vt);for(var It=(Kt?te[Kt-1]:V)=="L",An=(Vt<se?te[Vt]:V)=="L",Ss=It==An?It?"L":"R":V,Ui=Kt;Ui<Vt;++Ui)te[Ui]=Ss;Kt=Vt-1}for(var fn=[],Ur,nn=0;nn<se;)if(y.test(te[nn])){var cd=nn;for(++nn;nn<se&&y.test(te[nn]);++nn);fn.push(new S(0,cd,nn))}else{var ui=nn,Lo=fn.length,Mo=H=="rtl"?1:0;for(++nn;nn<se&&te[nn]!="L";++nn);for(var yn=ui;yn<nn;)if(x.test(te[yn])){ui<yn&&(fn.splice(Lo,0,new S(1,ui,yn)),Lo+=Mo);var _s=yn;for(++yn;yn<nn&&x.test(te[yn]);++yn);fn.splice(Lo,0,new S(2,_s,yn)),Lo+=Mo,ui=yn}else++yn;ui<nn&&fn.splice(Lo,0,new S(1,ui,nn))}return H=="ltr"&&(fn[0].level==1&&(Ur=T.match(/^\s+/))&&(fn[0].from=Ur[0].length,fn.unshift(new S(0,0,Ur[0].length))),xe(fn).level==1&&(Ur=T.match(/\s+$/))&&(xe(fn).to-=Ur[0].length,fn.push(new S(0,se-Ur[0].length,se)))),H=="rtl"?fn.reverse():fn}})();function lt(n,i){var a=n.order;return a==null&&(a=n.order=Hn(n.text,i)),a}var bo=[],Xe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||bo).concat(a)}};function ri(n,i){return n._handlers&&n._handlers[i]||bo}function an(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var m=ce(u,a);m>-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function Pt(n,i){var a=ri(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Rt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Pt(n,a||i.type,n,i),kn(i)||i.codemirrorIgnore}function ar(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)ce(a,i[l])==-1&&a.push(i[l])}function Bn(n,i){return ri(n,i).length>0}function yr(n){n.prototype.on=function(i,a){Xe(this,i,a)},n.prototype.off=function(i,a){an(this,i,a)}}function cn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Jo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function kn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Pi(n){cn(n),Jo(n)}function ll(n){return n.target||n.srcElement}function br(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),$&&n.ctrlKey&&i==1&&(i=3),i}var mf=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),Qo;function Ga(n){if(Qo==null){var i=k("span","");C(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Qo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Qo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var al;function Ri(n){if(al!=null)return al;var i=C(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return N(n),!a||a.left==a.right?!1:al=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 m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},$i=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},Ka=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),wr=null;function vf(n){if(wr!=null)return wr;var i=C(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return wr=Math.abs(a.left-l.left)>1}var es={},xr={};function kr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),es[n]=i}function wo(n,i){xr[n]=i}function ts(n){if(typeof n=="string"&&xr.hasOwnProperty(n))n=xr[n];else if(n&&typeof n.name=="string"&&xr.hasOwnProperty(n.name)){var i=xr[n.name];typeof i=="string"&&(i={name:i}),n=oe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return ts("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return ts("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function ns(n,i){i=ts(i);var a=es[i.name];if(!a)return ns(n,"text/plain");var l=a(n,i);if(Ii.hasOwnProperty(i.name)){var u=Ii[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}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 Ii={};function rs(n,i){var a=Ii.hasOwnProperty(n)?Ii[n]:Ii[n]={};Y(i,a)}function Br(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 cl(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 is(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=ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return ne(this.string,null,this.tabSize)-(this.lineStart?ne(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 m=this.string.slice(this.pos).match(n);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},$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 qe(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],m=u.chunkSize();if(i<m){a=u;break}i-=m}return a.lines[i]}function ii(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(m){var y=m.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function ul(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 A(n){if(n.parent==null)return null;for(var i=n.parent,a=ce(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 U(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],m=u.height;if(i<m){n=u;continue e}i-=m,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],S=x.height;if(i<S)break;i-=S}return a+y}function ve(n,i){return i>=n.first&&i<n.first+n.size}function _e(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function fe(n,i,a){if(a===void 0&&(a=null),!(this instanceof fe))return new fe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ie(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ie(n,i)==0}function Zt(n){return fe(n.line,n.ch)}function Sn(n,i){return Ie(n,i)<0?i:n}function os(n,i){return Ie(n,i)<0?n:i}function Wp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function nt(n,i){if(i.line<n.first)return fe(n.first,0);var a=n.first+n.size-1;return i.line>a?fe(a,qe(n,a).text.length):F1(i,qe(n,i.line).text.length)}function F1(n,i){var a=n.ch;return a==null||a>i?fe(n.line,i):a<0?fe(n.line,0):n}function qp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=nt(n,i[l]);return a}var Xa=function(n,i){this.state=n,this.lookAhead=i},Wr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Wr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Wr.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}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(n,i,a){return i instanceof Xa?new Wr(n,Br(n.mode,i.state),a,i.lookAhead):new Wr(n,Br(n.mode,i),a)},Wr.prototype.save=function(n){var i=n!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xa(i,this.maxLookAhead):i};function jp(n,i,a,l){var u=[n.state.modeGen],m={};Yp(n,i.text,n.doc.mode,a,function(T,H){return u.push(T,H)},m,l);for(var y=a.state,x=function(T){a.baseTokens=u;var H=n.state.overlays[T],V=1,se=0;a.state=!0,Yp(n,i.text,H.mode,a,function(te,pe){for(var we=V;se<te;){var Te=u[V];Te>te&&u.splice(V,1,te,u[V+1],Te),V+=2,se=Math.min(te,Te)}if(pe)if(H.opaque)u.splice(we,V-we,te,"overlay "+pe),V=we+2;else for(;we<V;we+=2){var Le=u[we+1];u[we+1]=(Le?Le+" ":"")+"overlay "+pe}},m),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function Up(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=fl(n,A(i)),u=i.text.length>n.options.maxHighlightLength&&Br(n.doc.mode,l.state),m=jp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.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 fl(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Wr(l,!0,i);var m=H1(n,i,a),y=m>l.first&&qe(l,m-1).stateAfter,x=y?Wr.fromSaved(l,y,m):new Wr(l,is(l.mode),m);return l.iter(m,i,function(S){yf(n,S.text,x);var T=x.line;S.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&T<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function yf(n,i,a,l){var u=n.doc.mode,m=new $t(i,n.options.tabSize,a);for(m.start=m.pos=l||0,i==""&&Vp(u,a.state);!m.eol();)bf(u,m,a.state),m.start=m.pos}function Vp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=cl(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function bf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=cl(n,a).mode);var m=n.token(i,a);if(i.pos>i.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var Gp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Kp(n,i,a,l){var u=n.doc,m=u.mode,y;i=nt(u,i);var x=qe(u,i.line),S=fl(n,i.line,a),T=new $t(x.text,n.options.tabSize,S),H;for(l&&(H=[]);(l||T.pos<i.ch)&&!T.eol();)T.start=T.pos,y=bf(m,T,S.state),l&&H.push(new Gp(T,y,Br(u.mode,S.state)));return l?H:new Gp(T,y,S.state)}function Xp(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 Yp(n,i,a,l,u,m,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,T=null,H=new $t(i,n.options.tabSize,l),V,se=n.options.addModeClass&&[null];for(i==""&&Xp(Vp(a,l.state),m);!H.eol();){if(H.pos>n.options.maxHighlightLength?(x=!1,y&&yf(n,i,l,H.pos),H.pos=i.length,V=null):V=Xp(bf(a,H,l.state,se),m),se){var te=se[0].name;te&&(V="m-"+(V?te+" "+V:te))}if(!x||T!=V){for(;S<H.start;)S=Math.min(H.start,S+5e3),u(S,T);T=V}H.start=H.pos}for(;S<H.pos;){var pe=Math.min(H.pos,S+5e3);u(pe,T),S=pe}}function H1(n,i,a){for(var l,u,m=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=m.first)return m.first;var S=qe(m,x-1),T=S.stateAfter;if(T&&(!a||x+(T instanceof Xa?T.lookAhead:0)<=m.modeFrontier))return x;var H=ne(S.text,null,n.options.tabSize);(u==null||l>H)&&(u=x-1,l=H)}return u}function B1(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=qe(n,l).stateAfter;if(u&&(!(u instanceof Xa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Zp=!1,oi=!1;function W1(){Zp=!0}function q1(){oi=!0}function Ya(n,i,a){this.marker=n,this.from=i,this.to=a}function dl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function j1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function U1(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 V1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);if(x||m.from==i&&y.type=="bookmark"&&(!a||!m.marker.insertLeft)){var S=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new Ya(y,m.from,S?null:m.to))}}return l}function G1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);if(x||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var S=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new Ya(y,S?null:m.from-i,m.to==null?null:m.to-i))}}return l}function wf(n,i){if(i.full)return null;var a=ve(n,i.from.line)&&qe(n,i.from.line).markedSpans,l=ve(n,i.to.line)&&qe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,m=i.to.ch,y=Ie(i.from,i.to)==0,x=V1(a,u,y),S=G1(l,m,y),T=i.text.length==1,H=xe(i.text).length+(T?u:0);if(x)for(var V=0;V<x.length;++V){var se=x[V];if(se.to==null){var te=dl(S,se.marker);te?T&&(se.to=te.to==null?null:te.to+H):se.to=u}}if(S)for(var pe=0;pe<S.length;++pe){var we=S[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=dl(x,we.marker);Te||(we.from=H,T&&(x||(x=[])).push(we))}else we.from+=H,T&&(x||(x=[])).push(we)}x&&(x=Jp(x)),S&&S!=x&&(S=Jp(S));var Le=[x];if(!T){var De=i.text.length-2,Me;if(De>0&&x)for(var ze=0;ze<x.length;++ze)x[ze].to==null&&(Me||(Me=[])).push(new Ya(x[ze].marker,null,null));for(var Ye=0;Ye<De;++Ye)Le.push(Me);Le.push(S)}return Le}function Jp(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 K1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(te){if(te.markedSpans)for(var pe=0;pe<te.markedSpans.length;++pe){var we=te.markedSpans[pe].marker;we.readOnly&&(!l||ce(l,we)==-1)&&(l||(l=[])).push(we)}}),!l)return null;for(var u=[{from:i,to:a}],m=0;m<l.length;++m)for(var y=l[m],x=y.find(0),S=0;S<u.length;++S){var T=u[S];if(!(Ie(T.to,x.from)<0||Ie(T.from,x.to)>0)){var H=[S,1],V=Ie(T.from,x.from),se=Ie(T.to,x.to);(V<0||!y.inclusiveLeft&&!V)&&H.push({from:T.from,to:x.from}),(se>0||!y.inclusiveRight&&!se)&&H.push({from:x.to,to:T.to}),u.splice.apply(u,H),S+=H.length-3}}return u}function Qp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function eg(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Za(n){return n.inclusiveLeft?-1:0}function Ja(n){return n.inclusiveRight?1:0}function xf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),m=Ie(l.from,u.from)||Za(n)-Za(i);if(m)return-m;var y=Ie(l.to,u.to)||Ja(n)-Ja(i);return y||i.id-n.id}function tg(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=void 0,m=0;m<a.length;++m)u=a[m],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||xf(l,u.marker)<0)&&(l=u.marker);return l}function ng(n){return tg(n,!0)}function Qa(n){return tg(n,!1)}function X1(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var m=a[u];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||xf(l,m.marker)<0)&&(l=m.marker)}return l}function rg(n,i,a,l,u){var m=qe(n,i),y=oi&&m.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var T=S.marker.find(0),H=Ie(T.from,a)||Za(S.marker)-Za(u),V=Ie(T.to,l)||Ja(S.marker)-Ja(u);if(!(H>=0&&V<=0||H<=0&&V>=0)&&(H<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||H>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Sr(n){for(var i;i=ng(n);)n=i.find(-1,!0).line;return n}function Y1(n){for(var i;i=Qa(n);)n=i.find(1,!0).line;return n}function Z1(n){for(var i,a;i=Qa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function kf(n,i){var a=qe(n,i),l=Sr(a);return a==l?i:A(l)}function ig(n,i){if(i>n.lastLine())return i;var a=qe(n,i),l;if(!Di(n,a))return i;for(;l=Qa(a);)a=l.find(1,!0).line;return A(a)+1}function Di(n,i){var a=oi&&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&&Sf(n,i,l))return!0}}}function Sf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Sf(n,l.line,dl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,m=0;m<i.markedSpans.length;++m)if(u=i.markedSpans[m],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Sf(n,i,u))return!0}function si(n){n=Sr(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 m=a.parent;m;a=m,m=a.parent)for(var y=0;y<m.children.length;++y){var x=m.children[y];if(x==a)break;i+=x.height}return i}function ec(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=ng(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Qa(l);){var m=a.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function _f(n){var i=n.display,a=n.doc;i.maxLine=qe(a,a.first),i.maxLineLength=ec(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=ec(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var ss=function(n,i,a){this.text=n,eg(this,i),this.height=a?a(this):1};ss.prototype.lineNo=function(){return A(this)},yr(ss);function J1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Qp(n),eg(n,a);var u=l?l(n):1;u!=n.height&&Qn(n,u)}function Q1(n){n.parent=null,Qp(n)}var ek={},tk={};function og(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?tk:ek;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function sg(n,i){var a=z("span",null,null,g?"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 m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=rk,Ri(n.display.measure)&&(y=lt(m,n.doc.direction))&&(l.addToken=ok(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&A(m);sk(m,l,Up(n,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Be(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Be(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ga(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(g){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Pt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Be(l.pre.className,l.textClass||"")),l}function nk(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function rk(n,i,a,l,u,m,y){if(i){var x=n.splitSpaces?ik(i,n.trailingSpace):i,S=n.cm.state.specialChars,T=!1,H;if(!S.test(i))n.col+=i.length,H=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,H),h&&p<9&&(T=!0),n.pos+=i.length;else{H=document.createDocumentFragment();for(var V=0;;){S.lastIndex=V;var se=S.exec(i),te=se?se.index-V:i.length-V;if(te){var pe=document.createTextNode(x.slice(V,V+te));h&&p<9?H.appendChild(k("span",[pe])):H.appendChild(pe),n.map.push(n.pos,n.pos+te,pe),n.col+=te,n.pos+=te}if(!se)break;V+=te+1;var we=void 0;if(se[0]==" "){var Te=n.cm.options.tabSize,Le=Te-n.col%Te;we=H.appendChild(k("span",Ee(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Le}else se[0]=="\r"||se[0]==`
|
|
23
|
-
`?(we=H.appendChild(k("span",se[0]=="\r"?"␍":"","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Me=k("span",[H],De,m);if(y)for(var ze in y)y.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Me.setAttribute(ze,y[ze]);return n.content.appendChild(Me)}n.content.appendChild(H)}}function ik(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var m=n.charAt(u);m==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(m=" "),l+=m,a=m==" "}return l}function ok(n,i){return function(a,l,u,m,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var T=a.pos,H=T+l.length;;){for(var V=void 0,se=0;se<i.length&&(V=i[se],!(V.to>T&&V.from<=T));se++);if(V.to>=H)return n(a,l,u,m,y,x,S);n(a,l.slice(0,V.to-T),u,m,null,x,S),m=null,l=l.slice(V.to-T),T=V.to}}}function lg(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 sk(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(m,m=a[y]),og(a[y+1],i.cm.options));return}for(var x=u.length,S=0,T=1,H="",V,se,te=0,pe,we,Te,Le,De;;){if(te==S){pe=we=Te=se="",De=null,Le=null,te=1/0;for(var Me=[],ze=void 0,Ye=0;Ye<l.length;++Ye){var Ue=l[Ye],st=Ue.marker;if(st.type=="bookmark"&&Ue.from==S&&st.widgetNode)Me.push(st);else if(Ue.from<=S&&(Ue.to==null||Ue.to>S||st.collapsed&&Ue.to==S&&Ue.from==S)){if(Ue.to!=null&&Ue.to!=S&&te>Ue.to&&(te=Ue.to,we=""),st.className&&(pe+=" "+st.className),st.css&&(se=(se?se+";":"")+st.css),st.startStyle&&Ue.from==S&&(Te+=" "+st.startStyle),st.endStyle&&Ue.to==te&&(ze||(ze=[])).push(st.endStyle,Ue.to),st.title&&((De||(De={})).title=st.title),st.attributes)for(var St in st.attributes)(De||(De={}))[St]=st.attributes[St];st.collapsed&&(!Le||xf(Le.marker,st)<0)&&(Le=Ue)}else Ue.from>S&&te>Ue.from&&(te=Ue.from)}if(ze)for(var tn=0;tn<ze.length;tn+=2)ze[tn+1]==te&&(we+=" "+ze[tn]);if(!Le||Le.from==S)for(var Ot=0;Ot<Me.length;++Ot)lg(i,0,Me[Ot]);if(Le&&(Le.from||0)==S){if(lg(i,(Le.to==null?x+1:Le.to)-S,Le.marker,Le.from==null),Le.to==null)return;Le.to==S&&(Le=!1)}}if(S>=x)break;for(var qn=Math.min(x,te);;){if(H){var Cn=S+H.length;if(!Le){var Ut=Cn>qn?H.slice(0,qn-S):H;i.addToken(i,Ut,V?V+pe:pe,Te,S+Ut.length==te?we:"",se,De)}if(Cn>=qn){H=H.slice(qn-S),S=qn;break}S=Cn,Te=""}H=u.slice(m,m=a[T++]),V=og(a[T++],i.cm.options)}}}function ag(n,i,a){this.line=i,this.rest=Z1(i),this.size=this.rest?A(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Di(n,i)}function tc(n,i,a){for(var l=[],u,m=i;m<a;m=u){var y=new ag(n.doc,qe(n.doc,m),m);u=m+y.size,l.push(y)}return l}var ls=null;function lk(n){ls?ls.ops.push(n):n.ownsGroup=ls={ops:[n],delayedCallbacks:[]}}function ak(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 ck(n,i){var a=n.ownsGroup;if(a)try{ak(a)}finally{ls=null,i(a)}}var hl=null;function Jt(n,i){var a=ri(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;ls?u=ls.delayedCallbacks:hl?u=hl:(u=hl=[],setTimeout(uk,0));for(var m=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)m(y)}}function uk(){var n=hl;hl=null;for(var i=0;i<n.length;++i)n[i]()}function cg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var m=i.changes[u];m=="text"?dk(n,i):m=="gutter"?fg(n,i,a,l):m=="class"?Tf(n,i):m=="widget"&&hk(n,i,l)}i.changes=null}function pl(n){return n.node==n.text&&(n.node=k("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 fk(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=pl(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function ug(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):sg(n,i)}function dk(n,i){var a=i.text.className,l=ug(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,Tf(n,i)):a&&(i.text.className=a)}function Tf(n,i){fk(n,i),i.line.wrapClass?pl(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 fg(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=pl(i);i.gutterBackground=k("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 m=i.line.gutterMarkers;if(n.options.lineNumbers||m){var y=pl(i),x=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",_e(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),m)for(var S=0;S<n.display.gutterSpecs.length;++S){var T=n.display.gutterSpecs[S].className,H=m.hasOwnProperty(T)&&m[T];H&&x.appendChild(k("div",[H],"CodeMirror-gutter-elt","left: "+l.gutterLeft[T]+"px; width: "+l.gutterWidth[T]+"px"))}}}function hk(n,i,a){i.alignable&&(i.alignable=null);for(var l=q("CodeMirror-linewidget"),u=i.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);dg(n,i,a)}function pk(n,i,a,l){var u=ug(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Tf(n,i),fg(n,i,a,l),dg(n,i,l),i.node}function dg(n,i,a){if(hg(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)hg(n,i.rest[l],i,a,!1)}function hg(n,i,a,l,u){if(i.widgets)for(var m=pl(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],T=k("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),gk(S,T,a,l),n.display.input.setUneditable(T),u&&S.above?m.insertBefore(T,a.gutter||a.text):m.appendChild(T),Jt(S,"redraw")}}function gk(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 gl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ae(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;"),C(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function li(n,i){for(var a=ll(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 nc(n){return n.lineSpace.offsetTop}function Cf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function pg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=C(n.measure,k("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 qr(n){return D-n.display.nativeBarWidth}function xo(n){return n.display.scroller.clientWidth-qr(n)-n.display.barWidth}function Ef(n){return n.display.scroller.clientHeight-qr(n)-n.display.barHeight}function mk(n,i,a){var l=n.options.lineWrapping,u=l&&xo(n);if(!i.measure.heights||l&&i.measure.width!=u){var m=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var S=y[x],T=y[x+1];Math.abs(S.bottom-T.bottom)>2&&m.push((S.bottom+T.top)/2-a.top)}}m.push(a.bottom-a.top)}}function gg(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(A(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function vk(n,i){i=Sr(i);var a=A(i),l=n.display.externalMeasured=new ag(n.doc,i,a);l.lineN=a;var u=l.built=sg(n,l);return l.text=u.pre,C(n.display.lineMeasure,u.pre),l}function mg(n,i,a,l){return jr(n,as(n,i),a,l)}function Af(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[_o(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function as(n,i){var a=A(i),l=Af(n,a);l&&!l.text?l=null:l&&l.changes&&(cg(n,l,a,Pf(n)),n.curOp.forceUpdate=!0),l||(l=vk(n,i));var u=gg(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function jr(n,i,a,l,u){i.before&&(a=-1);var m=a+(l||""),y;return i.cache.hasOwnProperty(m)?y=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(mk(n,i.view,i.rect),i.hasHeights=!0),y=bk(n,i,a,l),y.bogus||(i.cache[m]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var vg={left:0,right:0,top:0,bottom:0};function yg(n,i,a){for(var l,u,m,y,x,S,T=0;T<n.length;T+=3)if(x=n[T],S=n[T+1],i<x?(u=0,m=1,y="left"):i<S?(u=i-x,m=u+1):(T==n.length-3||i==S&&n[T+3]>i)&&(m=S-x,u=m-1,i>=S&&(y="right")),u!=null){if(l=n[T+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==S-x)for(;T<n.length-3&&n[T+3]==n[T+4]&&!n[T+5].insertLeft;)l=n[(T+=3)+2],y="right";break}return{node:l,start:u,end:m,collapse:y,coverStart:x,coverEnd:S}}function yk(n,i){var a=vg;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 bk(n,i,a,l){var u=yg(i.map,a,l),m=u.node,y=u.start,x=u.end,S=u.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&ut(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?T=m.parentNode.getBoundingClientRect():T=yk(B(m,y,x).getClientRects(),l),T.left||T.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(T=wk(n.display.measure,T))}else{y>0&&(S=l="right");var V;n.options.lineWrapping&&(V=m.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var se=m.parentNode.getClientRects()[0];se?T={left:se.left,right:se.left+us(n.display),top:se.top,bottom:se.bottom}:T=vg}for(var te=T.top-i.rect.top,pe=T.bottom-i.rect.top,we=(te+pe)/2,Te=i.view.measure.heights,Le=0;Le<Te.length-1&&!(we<Te[Le]);Le++);var De=Le?Te[Le-1]:0,Me=Te[Le],ze={left:(S=="right"?T.right:T.left)-i.rect.left,right:(S=="left"?T.left:T.right)-i.rect.left,top:De,bottom:Me};return!T.left&&!T.right&&(ze.bogus=!0),n.options.singleCursorHeightPerLine||(ze.rtop=te,ze.rbottom=pe),ze}function wk(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!vf(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 bg(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 wg(n){n.display.externalMeasure=null,N(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)bg(n.display.view[i])}function ml(n){wg(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function xg(n){return b&&I?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function kg(n){return b&&I?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Lf(n){var i=Sr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=gl(a[u]));return l}function rc(n,i,a,l,u){if(!u){var m=Lf(i);a.top+=m,a.bottom+=m}if(l=="line")return a;l||(l="local");var y=si(i);if(l=="local"?y+=nc(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:kg(Ke(n)));var S=x.left+(l=="window"?0:xg(Ke(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function Sg(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=xg(Ke(n)),u-=kg(Ke(n));else if(a=="local"||!a){var m=n.display.sizer.getBoundingClientRect();l+=m.left,u+=m.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function ic(n,i,a,l,u){return l||(l=qe(n.doc,i.line)),rc(n,l,mg(n,l,i.ch,u),a)}function _r(n,i,a,l,u,m){l=l||qe(n.doc,i.line),u||(u=as(n,l));function y(pe,we){var Te=jr(n,u,pe,we?"right":"left",m);return we?Te.left=Te.right:Te.right=Te.left,rc(n,l,Te,a)}var x=lt(l,n.doc.direction),S=i.ch,T=i.sticky;if(S>=l.text.length?(S=l.text.length,T="before"):S<=0&&(S=0,T="after"),!x)return y(T=="before"?S-1:S,T=="before");function H(pe,we,Te){var Le=x[we],De=Le.level==1;return y(Te?pe-1:pe,De!=Te)}var V=Bt(x,S,T),se=Hr,te=H(S,V,T=="before");return se!=null&&(te.other=H(S,se,T!="before")),te}function _g(n,i){var a=0;i=nt(n.doc,i),n.options.lineWrapping||(a=us(n.display)*i.ch);var l=qe(n.doc,i.line),u=si(l)+nc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Mf(n,i,a,l,u){var m=fe(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function Nf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Mf(l.first,0,null,-1,-1);var u=U(l,a),m=l.first+l.size-1;if(u>m)return Mf(l.first+l.size-1,qe(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=qe(l,u);;){var x=xk(n,y,u,i,a),S=X1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var T=S.find(1);if(T.line==u)return T;y=qe(l,u=T.line)}}function Tg(n,i,a,l){l-=Lf(i);var u=i.text.length,m=jt(function(y){return jr(n,a,y-1).bottom<=l},u,0);return u=jt(function(y){return jr(n,a,y).top>l},m,u),{begin:m,end:u}}function Cg(n,i,a,l){a||(a=as(n,i));var u=rc(n,i,jr(n,a,l),"line").top;return Tg(n,i,a,u)}function Of(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function xk(n,i,a,l,u){u-=si(i);var m=as(n,i),y=Lf(i),x=0,S=i.text.length,T=!0,H=lt(i,n.doc.direction);if(H){var V=(n.options.lineWrapping?Sk:kk)(n,i,a,m,H,l,u);T=V.level!=1,x=T?V.from:V.to-1,S=T?V.to:V.from-1}var se=null,te=null,pe=jt(function(Ye){var Ue=jr(n,m,Ye);return Ue.top+=y,Ue.bottom+=y,Of(Ue,l,u,!1)?(Ue.top<=u&&Ue.left<=l&&(se=Ye,te=Ue),!0):!1},x,S),we,Te,Le=!1;if(te){var De=l-te.left<te.right-l,Me=De==T;pe=se+(Me?0:1),Te=Me?"after":"before",we=De?te.left:te.right}else{!T&&(pe==S||pe==x)&&pe++,Te=pe==0?"after":pe==i.text.length?"before":jr(n,m,pe-(T?1:0)).bottom+y<=u==T?"after":"before";var ze=_r(n,fe(a,pe,Te),"line",i,m);we=ze.left,Le=u<ze.top?-1:u>=ze.bottom?1:0}return pe=Yt(i.text,pe,1),Mf(a,pe,Te,Le,l-we)}function kk(n,i,a,l,u,m,y){var x=jt(function(V){var se=u[V],te=se.level!=1;return Of(_r(n,fe(a,te?se.to:se.from,te?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),S=u[x];if(x>0){var T=S.level!=1,H=_r(n,fe(a,T?S.from:S.to,T?"after":"before"),"line",i,l);Of(H,m,y,!0)&&H.top>y&&(S=u[x-1])}return S}function Sk(n,i,a,l,u,m,y){var x=Tg(n,i,l,y),S=x.begin,T=x.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var H=null,V=null,se=0;se<u.length;se++){var te=u[se];if(!(te.from>=T||te.to<=S)){var pe=te.level!=1,we=jr(n,l,pe?Math.min(T,te.to)-1:Math.max(S,te.from)).right,Te=we<m?m-we+1e9:we-m;(!H||V>Te)&&(H=te,V=Te)}}return H||(H=u[u.length-1]),H.from<S&&(H={from:S,to:H.to,level:H.level}),H.to>T&&(H={from:H.from,to:T,level:H.level}),H}var ko;function cs(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ko==null){ko=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ko.appendChild(document.createTextNode("x")),ko.appendChild(k("br"));ko.appendChild(document.createTextNode("x"))}C(n.measure,ko);var a=ko.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),N(n.measure),a||1}function us(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");C(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Pf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=m.offsetLeft+m.clientLeft+u,l[x]=m.clientWidth}return{fixedPos:Rf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Rf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Eg(n){var i=cs(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/us(n.display)-3);return function(u){if(Di(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(m+=u.widgets[y].height);return a?m+(Math.ceil(u.text.length/l)||1)*i:m+i}}function $f(n){var i=n.doc,a=Eg(n);i.iter(function(l){var u=a(l);u!=l.height&&Qn(l,u)})}function So(n,i,a,l){var u=n.display;if(!a&&ll(i).getAttribute("cm-not-content")=="true")return null;var m,y,x=u.lineSpace.getBoundingClientRect();try{m=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var S=Nf(n,m,y),T;if(l&&S.xRel>0&&(T=qe(n.doc,S.line).text).length==S.ch){var H=ne(T,T.length,n.options.tabSize)-T.length;S=fe(S.line,Math.max(0,Math.round((m-pg(n.display).left)/us(n.display))-H))}return S}function _o(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 _n(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)oi&&kf(n.doc,i)<u.viewTo&&Fi(n);else if(a<=u.viewFrom)oi&&ig(n.doc,a+l)>u.viewFrom?Fi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Fi(n);else if(i<=u.viewFrom){var m=oc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):Fi(n)}else if(a>=u.viewTo){var y=oc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Fi(n)}else{var x=oc(n,i,i,-1),S=oc(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(tc(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Fi(n)}var T=u.externalMeasured;T&&(a<T.lineN?T.lineN+=l:i<T.lineN+T.size&&(u.externalMeasured=null))}function zi(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 m=l.view[_o(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ce(y,a)==-1&&y.push(a)}}}function Fi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function oc(n,i,a,l){var u=_o(n,i),m,y=n.display.view;if(!oi||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,S=0;S<u;S++)x+=y[S].size;if(x!=i){if(l>0){if(u==y.length-1)return null;m=x+y[u].size-i,u++}else m=x-i;i+=m,a+=m}for(;kf(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 _k(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=tc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=tc(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(_o(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(tc(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,_o(n,a)))),l.viewTo=a}function Ag(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 vl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Lg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var T=S.empty();if(y){var H=y(n,S);H&&If(n,H,u)}else(T||n.options.showCursorWhenSelecting)&&If(n,S.head,u);T||Tk(n,S,m)}}return l}function If(n,i,a){var l=_r(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("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 m=ic(n,i,"div",null,null),y=m.right-m.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function sc(n,i){return n.top-i.top||n.left-i.left}function Tk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=pg(n.display),x=y.left,S=Math.max(l.sizerWidth,xo(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function H(Me,ze,Ye,Ue){ze<0&&(ze=0),ze=Math.round(ze),Ue=Math.round(Ue),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Me+`px;
|
|
24
|
-
top: `+ze+"px; width: "+(Ye??S-Me)+`px;
|
|
25
|
-
height: `+(Ue-ze)+"px"))}function V(Me,ze,Ye){var Ue=qe(u,Me),st=Ue.text.length,St,tn;function Ot(Ut,En){return ic(n,fe(Me,Ut),"div",Ue,En)}function qn(Ut,En,sn){var Kt=Cg(n,Ue,null,Ut),Vt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?Kt.begin:Kt.end-(/\s/.test(Ue.text.charAt(Kt.end-1))?2:1);return Ot(It,Vt)[Vt]}var Cn=lt(Ue,u.direction);return Fn(Cn,ze||0,Ye??st,function(Ut,En,sn,Kt){var Vt=sn=="ltr",It=Ot(Ut,Vt?"left":"right"),An=Ot(En-1,Vt?"right":"left"),Ss=ze==null&&Ut==0,Ui=Ye==null&&En==st,fn=Kt==0,Ur=!Cn||Kt==Cn.length-1;if(An.top-It.top<=3){var nn=(T?Ss:Ui)&&fn,cd=(T?Ui:Ss)&&Ur,ui=nn?x:(Vt?It:An).left,Lo=cd?S:(Vt?An:It).right;H(ui,It.top,Lo-ui,It.bottom)}else{var Mo,yn,_s,ud;Vt?(Mo=T&&Ss&&fn?x:It.left,yn=T?S:qn(Ut,sn,"before"),_s=T?x:qn(En,sn,"after"),ud=T&&Ui&&Ur?S:An.right):(Mo=T?qn(Ut,sn,"before"):x,yn=!T&&Ss&&fn?S:It.right,_s=!T&&Ui&&Ur?x:An.left,ud=T?qn(En,sn,"after"):S),H(Mo,It.top,yn-Mo,It.bottom),It.bottom<An.top&&H(x,It.bottom,null,An.top),H(_s,An.top,ud-_s,An.bottom)}(!St||sc(It,St)<0)&&(St=It),sc(An,St)<0&&(St=An),(!tn||sc(It,tn)<0)&&(tn=It),sc(An,tn)<0&&(tn=An)}),{start:St,end:tn}}var se=i.from(),te=i.to();if(se.line==te.line)V(se.line,se.ch,te.ch);else{var pe=qe(u,se.line),we=qe(u,te.line),Te=Sr(pe)==Sr(we),Le=V(se.line,se.ch,Te?pe.text.length+1:null).end,De=V(te.line,Te?0:null,te.ch).start;Te&&(Le.top<De.top-2?(H(Le.right,Le.top,null,Le.bottom),H(x,De.top,De.left,De.bottom)):H(Le.right,Le.top,De.left-Le.right,Le.bottom)),Le.bottom<De.top&&H(x,Le.bottom,null,De.top)}a.appendChild(m)}function Df(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()||fs(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Mg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Ff(n))}function zf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&fs(n))},100)}function Ff(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Df(n))}function fs(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,O(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function lc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y<i.view.length;y++){var x=i.view[y],S=n.options.lineWrapping,T=void 0,H=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var V=x.node.offsetTop+x.node.offsetHeight;T=V-a,a=V}else{var se=x.node.getBoundingClientRect();T=se.bottom-se.top,!S&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-se.left-1)}var te=x.line.height-T;if((te>.005||te<-.005)&&(u<l&&(m-=te),Qn(x.line,T),Ng(x.line),x.rest))for(var pe=0;pe<x.rest.length;pe++)Ng(x.rest[pe]);if(H>n.display.sizerWidth){var we=Math.ceil(H/us(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Ng(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 ac(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-nc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,m=U(i,l),y=U(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<m?(m=x,y=U(i,si(qe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(m=U(i,si(qe(i,S))-n.wrapper.clientHeight),y=S)}return{from:m,to:Math.max(y,m+1)}}function Ck(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!M){var y=k("div","",null,`position: absolute;
|
|
26
|
-
top: `+(i.top-a.viewOffset-nc(n.display))+`px;
|
|
27
|
-
height: `+(i.bottom-i.top+qr(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 Ek(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,x=_r(n,i),S=!a||a==i?x:_r(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var T=Hf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(bl(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&(To(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Ak(n,i){var a=Hf(n,i);a.scrollTop!=null&&bl(n,a.scrollTop),a.scrollLeft!=null&&To(n,a.scrollLeft)}function Hf(n,i){var a=n.display,l=cs(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=Ef(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var x=n.doc.height+Cf(a),S=i.top<l,T=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+m){var H=Math.min(i.top,(T?x:i.bottom)-m);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,te=xo(n)-a.gutters.offsetWidth,pe=i.right-i.left>te;return pe&&(i.right=i.left+te),i.left<10?y.scrollLeft=0:i.left<se?y.scrollLeft=Math.max(0,i.left+V-(pe?0:10)):i.right>te+se-3&&(y.scrollLeft=i.right+(pe?0:10)-te),y}function Bf(n,i){i!=null&&(cc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function ds(n){cc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function yl(n,i,a){(i!=null||a!=null)&&cc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Lk(n,i){cc(n),n.curOp.scrollToPos=i}function cc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=_g(n,i.from),l=_g(n,i.to);Og(n,a,l,i.margin)}}function Og(n,i,a,l){var u=Hf(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});yl(n,u.scrollLeft,u.scrollTop)}function bl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||qf(n,{top:i}),Pg(n,i,!0),s&&qf(n),kl(n,100))}function Pg(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 To(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,zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function wl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Cf(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+qr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Co=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Xe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Xe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Co.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 m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"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}},Co.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Co.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Co.prototype.zeroWidthHack=function(){var n=$&&!P?"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},Co.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Co.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var xl=function(){};xl.prototype.update=function(){return{bottom:0,right:0}},xl.prototype.setScrollLeft=function(){},xl.prototype.setScrollTop=function(){},xl.prototype.clear=function(){};function hs(n,i){i||(i=wl(n));var a=n.display.barWidth,l=n.display.barHeight;Rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&lc(n),Rg(n,wl(n)),a=n.display.barWidth,l=n.display.barHeight}function Rg(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 $g={native:Co,null:xl};function Ig(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&O(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new $g[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Xe(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"?To(n,i):bl(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var Mk=0;function Eo(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:++Mk,markArrays:null},lk(n.curOp)}function Ao(n){var i=n.curOp;i&&ck(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Nk(a)})}function Nk(n){for(var i=n.ops,a=0;a<i.length;a++)Ok(i[a]);for(var l=0;l<i.length;l++)Pk(i[l]);for(var u=0;u<i.length;u++)Rk(i[u]);for(var m=0;m<i.length;m++)$k(i[m]);for(var y=0;y<i.length;y++)Ik(i[y])}function Ok(n){var i=n.cm,a=i.display;zk(i),n.updateMaxLine&&_f(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 uc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Pk(n){n.updatedDisplay=n.mustUpdate&&Wf(n.cm,n.update)}function Rk(n){var i=n.cm,a=i.display;n.updatedDisplay&&lc(i),n.barMeasure=wl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=mg(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+qr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-xo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function $k(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&To(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)&&hs(i,n.barMeasure),n.updatedDisplay&&Uf(i,n.barMeasure),n.selectionChanged&&Df(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Mg(n.cm)}function Ik(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Dg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Pg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&To(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Ek(i,nt(l,n.scrollToPos.from),nt(l,n.scrollToPos.to),n.scrollToPos.margin);Ck(i,u)}var m=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(m)for(var x=0;x<m.length;++x)m[x].lines.length||Pt(m[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Pt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Pt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Wn(n,i){if(n.curOp)return i();Eo(n);try{return i()}finally{Ao(n)}}function Qt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Eo(n);try{return i.apply(n,arguments)}finally{Ao(n)}}}function vn(n){return function(){if(this.curOp)return n.apply(this,arguments);Eo(this);try{return n.apply(this,arguments)}finally{Ao(this)}}}function en(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Eo(i);try{return n.apply(this,arguments)}finally{Ao(i)}}}function kl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,F(Dk,n))}function Dk(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=fl(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,x=m.text.length>n.options.maxHighlightLength?Br(i.mode,l.state):null,S=jp(n,m,l,!0);x&&(l.state=x),m.styles=S.styles;var T=m.styleClasses,H=S.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var V=!y||y.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),se=0;!V&&se<y.length;++se)V=y[se]!=m.styles[se];V&&u.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=n.options.maxHighlightLength&&yf(n,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return kl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var m=0;m<u.length;m++)zi(n,u[m],"text")})}}var uc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ac(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=xo(n),this.force=a,this.dims=Pf(n),this.events=[]};uc.prototype.signal=function(n,i){Bn(n,i)&&this.events.push(arguments)},uc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Pt.apply(null,this.events[n])};function zk(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=qr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=qr(n)+"px",i.scrollbarsClipped=!0)}function Fk(n){if(n.hasFocus())return null;var i=me(je(n));if(!i||!ae(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Pe(n).getSelection();l.anchorNode&&l.extend&&ae(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Hk(n){if(!(!n||!n.activeElt||n.activeElt==me(Fe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ae(document.body,n.anchorNode)&&ae(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 Wf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Fi(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&&Ag(n)==0)return!1;Fg(n)&&(Fi(n),i.dims=Pf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<m&&m-a.viewFrom<20&&(m=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),oi&&(m=kf(n.doc,m),y=ig(n.doc,y));var x=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;_k(n,m,y),a.viewOffset=si(qe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Ag(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=Fk(n);return S>4&&(a.lineDiv.style.display="none"),Bk(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Hk(T),N(a.cursorDiv),N(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,kl(n,400)),a.updateLineNumbers=null,!0}function Dg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==xo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Cf(n.display)-Ef(n),a.top)}),i.visible=ac(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ac(n.display,n.doc,a));if(!Wf(n,i))break;lc(n);var u=wl(n);vl(n),hs(n,u),Uf(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 qf(n,i){var a=new uc(n,i);if(Wf(n,a)){lc(n),Dg(n,a);var l=wl(n);vl(n),hs(n,l),Uf(n,l),a.finish()}}function Bk(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function x(pe){var we=pe.nextSibling;return g&&$&&n.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var S=l.view,T=l.viewFrom,H=0;H<S.length;H++){var V=S[H];if(!V.hidden)if(!V.node||V.node.parentNode!=m){var se=pk(n,V,T,a);m.insertBefore(se,y)}else{for(;y!=V.node;)y=x(y);var te=u&&i!=null&&i<=T&&V.lineNumber;V.changes&&(ce(V.changes,"gutter")>-1&&(te=!1),cg(n,V,T,a)),te&&(N(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(_e(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=x(y)}function jf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Jt(n,"gutterChanged",n)}function Uf(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+qr(n)+"px"}function zg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Rf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=m),a[y].gutterBackground&&(a[y].gutterBackground.style.left=m));var x=a[y].alignable;if(x)for(var S=0;S<x.length;S++)x[S].style.left=m}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Fg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=_e(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=u.firstChild.offsetWidth,y=u.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",jf(n.display),!0}return!1}function Vf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var m=n[u],y=null;if(typeof m!="string"&&(y=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:m,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Hg(n){var i=n.gutters,a=n.gutterSpecs;N(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],m=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+m));y&&(x.style.cssText=y),m=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",jf(n)}function Sl(n){Hg(n.display),_n(n),zg(n)}function Wk(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=z("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=z("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=z("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[m],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+D+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!g&&!(s&&_)&&(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=Vf(l.gutters,l.lineNumbers),Hg(u),a.init(u)}var fc=0,ai=null;h?ai=-.53:s?ai=15:b?ai=-.7:L&&(ai=-1/3);function Bg(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 qk(n){var i=Bg(n);return i.x*=ai,i.y*=ai,i}function Wg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=Bg(i),l=a.x,u=a.y,m=ai;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(l&&S||u&&T){if(u&&$&&g){e:for(var H=i.target,V=y.view;H!=x;H=H.parentNode)for(var se=0;se<V.length;se++)if(V[se].node==H){n.display.currentWheelTarget=H;break e}}if(l&&!s&&!E&&m!=null){u&&T&&bl(n,Math.max(0,x.scrollTop+u*m)),To(n,Math.max(0,x.scrollLeft+l*m)),(!u||u&&T)&&cn(i),y.wheelStartX=null;return}if(u&&m!=null){var te=u*m,pe=n.doc.scrollTop,we=pe+y.wrapper.clientHeight;te<0?pe=Math.max(0,pe+te-50):we=Math.min(n.doc.height,we+te+50),qf(n,{top:pe,bottom:we})}fc<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var Te=x.scrollLeft-y.wheelStartX,Le=x.scrollTop-y.wheelStartY,De=Le&&y.wheelDY&&Le/y.wheelDY||Te&&y.wheelDX&&Te/y.wheelDX;y.wheelStartX=y.wheelStartY=null,De&&(ai=(ai*fc+De)/(fc+1),++fc)}},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(Zt(this.ranges[i].anchor),Zt(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(Ie(i,l.from())>=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return os(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 Tr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(se,te){return Ie(se.from(),te.from())}),a=ce(i,u);for(var m=1;m<i.length;m++){var y=i[m],x=i[m-1],S=Ie(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var T=os(x.from(),y.from()),H=Sn(x.to(),y.to()),V=x.empty()?y.from()==y.head:x.from()==x.head;m<=a&&--a,i.splice(--m,2,new gt(V?H:T,V?T:H))}}return new er(i,a)}function Hi(n,i){return new er([new gt(n,i||n)],0)}function Bi(n){return n.text?fe(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function qg(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Bi(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+=Bi(i).ch-i.to.ch),fe(a,l)}function Gf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(qg(u.anchor,i),qg(u.head,i)))}return Tr(n.cm,a,n.sel.primIndex)}function jg(n,i,a){return n.line==i.line?fe(a.line,n.ch-i.ch+a.ch):fe(a.line+(n.line-i.line),n.ch)}function jk(n,i,a){for(var l=[],u=fe(n.first,0),m=u,y=0;y<i.length;y++){var x=i[y],S=jg(x.from,u,m),T=jg(Bi(x),u,m);if(u=x.to,m=T,a=="around"){var H=n.sel.ranges[y],V=Ie(H.head,H.anchor)<0;l[y]=new gt(V?T:S,V?S:T)}else l[y]=new gt(S,S)}return new er(l,n.sel.primIndex)}function Kf(n){n.doc.mode=ns(n.options,n.doc.modeOption),_l(n)}function _l(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,kl(n,100),n.state.modeGen++,n.curOp&&_n(n)}function Ug(n,i){return i.from.ch==0&&i.to.ch==0&&xe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Xf(n,i,a,l){function u(De){return a?a[De]:null}function m(De,Me,ze){J1(De,Me,ze,l),Jt(De,"change",De,i)}function y(De,Me){for(var ze=[],Ye=De;Ye<Me;++Ye)ze.push(new ss(T[Ye],u(Ye),l));return ze}var x=i.from,S=i.to,T=i.text,H=qe(n,x.line),V=qe(n,S.line),se=xe(T),te=u(T.length-1),pe=S.line-x.line;if(i.full)n.insert(0,y(0,T.length)),n.remove(T.length,n.size-T.length);else if(Ug(n,i)){var we=y(0,T.length-1);m(V,V.text,te),pe&&n.remove(x.line,pe),we.length&&n.insert(x.line,we)}else if(H==V)if(T.length==1)m(H,H.text.slice(0,x.ch)+se+H.text.slice(S.ch),te);else{var Te=y(1,T.length-1);Te.push(new ss(se+H.text.slice(S.ch),te,l)),m(H,H.text.slice(0,x.ch)+T[0],u(0)),n.insert(x.line+1,Te)}else if(T.length==1)m(H,H.text.slice(0,x.ch)+T[0]+V.text.slice(S.ch),u(0)),n.remove(x.line+1,pe);else{m(H,H.text.slice(0,x.ch)+T[0],u(0)),m(V,se+V.text.slice(S.ch),te);var Le=y(1,T.length-1);pe>1&&n.remove(x.line+1,pe-1),n.insert(x.line+1,Le)}Jt(n,"change",n,i)}function Wi(n,i,a){function l(u,m,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=m){var T=y&&S.sharedHist;a&&!T||(i(S.doc,T),l(S.doc,u,T))}}}l(n,null,!0)}function Vg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,$f(n),Kf(n),Gg(n),n.options.direction=i.direction,n.options.lineWrapping||_f(n),n.options.mode=i.modeOption,_n(n)}function Gg(n){(n.doc.direction=="rtl"?Se:O)(n.display.lineDiv,"CodeMirror-rtl")}function Uk(n){Wn(n,function(){Gg(n),_n(n)})}function dc(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 Yf(n,i){var a={from:Zt(i.from),to:Bi(i),text:ii(n,i.from,i.to)};return Yg(n,a,i.from.line,i.to.line+1),Wi(n,function(l){return Yg(l,a,i.from.line,i.to.line+1)},!0),a}function Kg(n){for(;n.length;){var i=xe(n);if(i.ranges)n.pop();else break}}function Vk(n,i){if(i)return Kg(n.done),xe(n.done);if(n.done.length&&!xe(n.done).ranges)return xe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function Xg(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=Vk(u,u.lastOp==l)))x=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,x.to)==0?x.to=Bi(i):y.changes.push(Yf(n,i));else{var S=xe(u.done);for((!S||!S.ranges)&&hc(n.sel,u.done),y={changes:[Yf(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=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Pt(n,"historyAdded")}function Gk(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 Kk(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||Gk(n,m,xe(u.done),i))?u.done[u.done.length-1]=i:hc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&Kg(u.undone)}function hc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Yg(n,i,a,l){var u=i["spans_"+n.id],m=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]={}))[m]=y.markedSpans),++m})}function Xk(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 Yk(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Xk(a[u]));return l}function Zg(n,i){var a=Yk(n,i),l=wf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var m=a[u],y=l[u];if(m&&y)e:for(var x=0;x<y.length;++x){for(var S=y[x],T=0;T<m.length;++T)if(m[T].marker==S.marker)continue e;m.push(S)}else y&&(a[u]=y)}return a}function ps(n,i,a){for(var l=[],u=0;u<n.length;++u){var m=n[u];if(m.ranges){l.push(a?er.prototype.deepCopy.call(m):m);continue}var y=m.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var T=y[S],H=void 0;if(x.push({from:T.from,to:T.to,text:T.text}),i)for(var V in T)(H=V.match(/^spans_(\d+)$/))&&ce(i,Number(H[1]))>-1&&(xe(x)[V]=T[V],delete T[V])}}return l}function Zf(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function pc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),un(n,new er([Zf(n.sel.primary(),i,a,u)],0),l)}function Jg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m<n.sel.ranges.length;m++)l[m]=Zf(n.sel.ranges[m],i[m],null,u);var y=Tr(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,Tr(n.cm,u,n.sel.primIndex),l)}function Qg(n,i,a,l){un(n,Hi(i,a),l)}function Zk(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new gt(nt(n,u[m].anchor),nt(n,u[m].head))},origin:a&&a.origin};return Pt(n,"beforeSelectionChange",n,l),n.cm&&Pt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Tr(n.cm,l.ranges,l.ranges.length-1):i}function em(n,i,a){var l=n.history.done,u=xe(l);u&&u.ranges?(l[l.length-1]=i,gc(n,i,a)):un(n,i,a)}function un(n,i,a){gc(n,i,a),Kk(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function gc(n,i,a){(Bn(n,"beforeSelectionChange")||n.cm&&Bn(n.cm,"beforeSelectionChange"))&&(i=Zk(n,i,a));var l=a&&a.bias||(Ie(i.primary().head,n.sel.primary().head)<0?-1:1);tm(n,rm(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&ds(n.cm)}function tm(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ar(n.cm)),Jt(n,"cursorActivity",n))}function nm(n){tm(n,rm(n,n.sel,null,!1))}function rm(n,i,a,l){for(var u,m=0;m<i.ranges.length;m++){var y=i.ranges[m],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[m],S=mc(n,y.anchor,x&&x.anchor,a,l),T=y.head==y.anchor?S:mc(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||T!=y.head)&&(u||(u=i.ranges.slice(0,m)),u[m]=new gt(S,T))}return u?Tr(n.cm,u,i.primIndex):i}function gs(n,i,a,l,u){var m=qe(n,i.line);if(m.markedSpans)for(var y=0;y<m.markedSpans.length;++y){var x=m.markedSpans[y],S=x.marker,T="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,H="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(T?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(H?x.to>=i.ch:x.to>i.ch))){if(u&&(Pt(S,"beforeCursorEnter"),S.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var V=S.find(l<0?1:-1),se=void 0;if((l<0?H:T)&&(V=im(n,V,-l,V&&V.line==i.line?m:null)),V&&V.line==i.line&&(se=Ie(V,a))&&(l<0?se<0:se>0))return gs(n,V,i,l,u)}var te=S.find(l<0?-1:1);return(l<0?T:H)&&(te=im(n,te,l,te.line==i.line?m:null)),te?gs(n,te,i,l,u):null}}return i}function mc(n,i,a,l,u){var m=l||1,y=gs(n,i,a,m,u)||!u&&gs(n,i,a,m,!0)||gs(n,i,a,-m,u)||!u&&gs(n,i,a,-m,!0);return y||(n.cantEdit=!0,fe(n.first,0))}function im(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?nt(n,fe(i.line-1)):null:a>0&&i.ch==(l||qe(n,i.line)).text.length?i.line<n.first+n.size-1?fe(i.line+1,0):null:new fe(i.line,i.ch+a)}function om(n){n.setSelection(fe(n.firstLine(),0),fe(n.lastLine()),Q)}function sm(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,m,y,x){u&&(l.from=nt(n,u)),m&&(l.to=nt(n,m)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Pt(n,"beforeChange",n,l),n.cm&&Pt(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 ms(n,i,a){if(n.cm){if(!n.cm.curOp)return Qt(n.cm,ms)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"))&&(i=sm(n,i,!0),!i))){var l=Zp&&!a&&K1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)lm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else lm(n,i)}}function lm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=Gf(n,i);Xg(n,i,a,n.cm?n.cm.curOp.id:NaN),Tl(n,i,a,wf(n,i));var l=[];Wi(n,function(u,m){!m&&ce(l,u.history)==-1&&(fm(u.history,i),l.push(u.history)),Tl(u,i,null,wf(u,i))})}}function vc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,T=0;T<x.length&&(m=x[T],!(a?m.ranges&&!m.equals(n.sel):!m.ranges));T++);if(T!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=x.pop(),m.ranges){if(hc(m,S),a&&!m.equals(n.sel)){un(n,m,{clearRedo:!1});return}y=m}else if(l){x.push(m);return}else break;var H=[];hc(y,S),S.push({changes:H,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var V=Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"),se=function(we){var Te=m.changes[we];if(Te.origin=i,V&&!sm(n,Te,!1))return x.length=0,{};H.push(Yf(n,Te));var Le=we?Gf(n,Te):xe(x);Tl(n,Te,Le,Zg(n,Te)),!we&&n.cm&&n.cm.scrollIntoView({from:Te.from,to:Bi(Te)});var De=[];Wi(n,function(Me,ze){!ze&&ce(De,Me.history)==-1&&(fm(Me.history,Te),De.push(Me.history)),Tl(Me,Te,null,Zg(Me,Te))})},te=m.changes.length-1;te>=0;--te){var pe=se(te);if(pe)return pe.v}}}}function am(n,i){if(i!=0&&(n.first+=i,n.sel=new er(be(n.sel.ranges,function(u){return new gt(fe(u.anchor.line+i,u.anchor.ch),fe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){_n(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)zi(n.cm,l,"gutter")}}function Tl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Qt(n.cm,Tl)(n,i,a,l);if(i.to.line<n.first){am(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);am(n,u),i={from:fe(n.first,0),to:fe(i.to.line+u,i.to.ch),text:[xe(i.text)],origin:i.origin}}var m=n.lastLine();i.to.line>m&&(i={from:i.from,to:fe(m,qe(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ii(n,i.from,i.to),a||(a=Gf(n,i)),n.cm?Jk(n.cm,i,l):Xf(n,i,l),gc(n,a,Q),n.cantEdit&&mc(n,fe(n.firstLine(),0))&&(n.cantEdit=!1)}}function Jk(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,x=!1,S=m.line;n.options.lineWrapping||(S=A(Sr(qe(l,m.line))),l.iter(S,y.line+1,function(te){if(te==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ar(n),Xf(l,i,a,Eg(n)),n.options.lineWrapping||(l.iter(S,m.line+i.text.length,function(te){var pe=ec(te);pe>u.maxLineLength&&(u.maxLine=te,u.maxLineLength=pe,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),B1(l,m.line),kl(n,400);var T=i.text.length-(y.line-m.line)-1;i.full?_n(n):m.line==y.line&&i.text.length==1&&!Ug(n.doc,i)?zi(n,m.line,"text"):_n(n,m.line,y.line+1,T);var H=Bn(n,"changes"),V=Bn(n,"change");if(V||H){var se={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&Jt(n,"change",n,se),H&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(se)}n.display.selForContextMenu=null}function vs(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),ms(n,{from:a,to:l,text:i,origin:u})}function cm(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function um(n,i,a,l){for(var u=0;u<n.length;++u){var m=n[u],y=!0;if(m.ranges){m.copied||(m=n[u]=m.deepCopy(),m.copied=!0);for(var x=0;x<m.ranges.length;x++)cm(m.ranges[x].anchor,i,a,l),cm(m.ranges[x].head,i,a,l);continue}for(var S=0;S<m.changes.length;++S){var T=m.changes[S];if(a<T.from.line)T.from=fe(T.from.line+l,T.from.ch),T.to=fe(T.to.line+l,T.to.ch);else if(i<=T.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function fm(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;um(n.done,a,l,u),um(n.undone,a,l,u)}function Cl(n,i,a,l){var u=i,m=i;return typeof i=="number"?m=qe(n,Wp(n,i)):u=A(i),u==null?null:(l(m,u)&&n.cm&&zi(n.cm,u,a),m)}function El(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}El.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,Q1(u),Jt(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 Al(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}Al.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 m=Math.min(i,u-n),y=l.height;if(l.removeInner(n,m),this.height-=y-l.height,u==m&&(this.children.splice(a--,1),l.parent=null),(i-=m)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof El))){var x=[];this.collapse(x),this.children=[new El(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],m=u.chunkSize();if(n<=m){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var S=new El(u.lines.slice(x,x+=25));u.height-=S.height,this.children.splice(++l,0,S),S.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new Al(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ce(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Al(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],m=u.chunkSize();if(n<m){var y=Math.min(i,m-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=m}}};var Ll=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Ll.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=A(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 m=gl(this);Qn(a,Math.max(0,a.height-m)),n&&(Wn(n,function(){dm(n,a,-m),zi(n,l,"widget")}),Jt(n,"lineWidgetCleared",n,this,l))}},Ll.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=gl(this)-i;u&&(Di(this.doc,l)||Qn(l,l.height+u),a&&Wn(a,function(){a.curOp.forceUpdate=!0,dm(a,l,u),Jt(a,"lineWidgetChanged",a,n,A(l))}))},yr(Ll);function dm(n,i,a){si(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Bf(n,a)}function Qk(n,i,a,l){var u=new Ll(n,a,l),m=n.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),Cl(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,m&&!Di(n,y)){var S=si(y)<n.scrollTop;Qn(y,y.height+gl(u)),S&&Bf(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&Jt(m,"lineWidgetAdded",m,u,typeof i=="number"?i:A(i)),u}var hm=0,qi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++hm};qi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Eo(n),Bn(this,"clear")){var a=this.find();a&&Jt(this,"clear",a.from,a.to)}for(var l=null,u=null,m=0;m<this.lines.length;++m){var y=this.lines[m],x=dl(y.markedSpans,this);n&&!this.collapsed?zi(n,A(y),"text"):n&&(x.to!=null&&(u=A(y)),x.from!=null&&(l=A(y))),y.markedSpans=j1(y.markedSpans,x),x.from==null&&this.collapsed&&!Di(this.doc,y)&&n&&Qn(y,cs(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var T=Sr(this.lines[S]),H=ec(T);H>n.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=H,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&_n(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&nm(n.doc)),n&&Jt(n,"markerCleared",n,this,l,u),i&&Ao(n),this.parent&&this.parent.clear()}},qi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var m=this.lines[u],y=dl(m.markedSpans,this);if(y.from!=null&&(a=fe(i?m:A(m),y.from),n==-1))return a;if(y.to!=null&&(l=fe(i?m:A(m),y.to),n==1))return l}return a&&{from:a,to:l}},qi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Wn(l,function(){var u=i.line,m=A(i.line),y=Af(l,m);if(y&&(bg(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Di(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var S=gl(a)-x;S&&Qn(u,u.height+S)}Jt(l,"markerChanged",l,n)})},qi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},qi.prototype.detachLine=function(n){if(this.lines.splice(ce(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},yr(qi);function ys(n,i,a,l,u){if(l&&l.shared)return eS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Qt(n.cm,ys)(n,i,a,l,u);var m=new qi(n,u),y=Ie(i,a);if(l&&Y(l,m,!1),y>0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=z("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(rg(n,i.line,i,a,m)||i.line!=a.line&&rg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");q1()}m.addToHistory&&Xg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,T;if(n.iter(x,a.line+1,function(V){S&&m.collapsed&&!S.options.lineWrapping&&Sr(V)==S.display.maxLine&&(T=!0),m.collapsed&&x!=i.line&&Qn(V,0),U1(V,new Ya(m,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),m.collapsed&&n.iter(i.line,a.line+1,function(V){Di(n,V)&&Qn(V,0)}),m.clearOnEnter&&Xe(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(W1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++hm,m.atomic=!0),S){if(T&&(S.curOp.updateMaxLine=!0),m.collapsed)_n(S,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=i.line;H<=a.line;H++)zi(S,H,"text");m.atomic&&nm(S.doc),Jt(S,"markerAdded",S,m)}return m}var Ml=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Ml.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Jt(this,"clear")}},Ml.prototype.find=function(n,i){return this.primary.find(n,i)},yr(Ml);function eS(n,i,a,l,u){l=Y(l),l.shared=!1;var m=[ys(n,i,a,l,u)],y=m[0],x=l.widgetNode;return Wi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),m.push(ys(S,nt(S,i),nt(S,a),l,u));for(var T=0;T<S.linked.length;++T)if(S.linked[T].isParent)return;y=xe(m)}),new Ml(m,y)}function pm(n){return n.findMarks(fe(n.first,0),n.clipPos(fe(n.lastLine())),function(i){return i.parent})}function tS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),m=n.clipPos(u.from),y=n.clipPos(u.to);if(Ie(m,y)){var x=ys(n,m,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function nS(n){for(var i=function(l){var u=n[l],m=[u.primary.doc];Wi(u.primary.doc,function(S){return m.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];ce(m,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var rS=0,Tn=function(n,i,a,l,u){if(!(this instanceof Tn))return new Tn(n,i,a,l,u);a==null&&(a=0),Al.call(this,[new El([new ss("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var m=fe(a,0);this.sel=Hi(m),this.history=new dc(null),this.id=++rS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Xf(this,{from:m,to:m,text:n}),un(this,Hi(m),Q)};Tn.prototype=oe(Al.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=ul(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:en(function(n){var i=fe(this.first,0),a=this.first+this.size-1;ms(this,{from:i,to:fe(a,qe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&yl(this.cm,0,0),un(this,Hi(i),Q)}),replaceRange:function(n,i,a,l){i=nt(this,i),a=a?nt(this,a):i,vs(this,n,i,a,l)},getRange:function(n,i,a){var l=ii(this,nt(this,n),nt(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(ve(this,n))return qe(this,n)},getLineNumber:function(n){return A(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=qe(this,n)),Sr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return nt(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:en(function(n,i,a){Qg(this,nt(this,typeof n=="number"?fe(n,i||0):n),null,a)}),setSelection:en(function(n,i,a){Qg(this,nt(this,n),nt(this,i||n),a)}),extendSelection:en(function(n,i,a){pc(this,nt(this,n),i&&nt(this,i),a)}),extendSelections:en(function(n,i){Jg(this,qp(this,n),i)}),extendSelectionsBy:en(function(n,i){var a=be(this.sel.ranges,n);Jg(this,qp(this,a),i)}),setSelections:en(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(nt(this,n[u].anchor),nt(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),un(this,Tr(this.cm,l,i),a)}}),addSelection:en(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(nt(this,n),nt(this,i||n))),un(this,Tr(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=ii(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=ii(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:en(function(n,i,a){for(var l=[],u=this.sel,m=0;m<u.ranges.length;m++){var y=u.ranges[m];l[m]={from:y.from(),to:y.to(),text:this.splitLines(n[m]),origin:a}}for(var x=i&&i!="end"&&jk(this,l,i),S=l.length-1;S>=0;S--)ms(this,l[S]);x?em(this,x):this.cm&&ds(this.cm)}),undo:en(function(){vc(this,"undo")}),redo:en(function(){vc(this,"redo")}),undoSelection:en(function(){vc(this,"undo",!0)}),redoSelection:en(function(){vc(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 dc(this.history),Wi(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:ps(this.history.done),undone:ps(this.history.undone)}},setHistory:function(n){var i=this.history=new dc(this.history);i.done=ps(n.done.slice(0),null,!0),i.undone=ps(n.undone.slice(0),null,!0)},setGutterMarker:en(function(n,i,a){return Cl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&dt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:en(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Cl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,dt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!ve(this,n)||(i=n,n=qe(this,n),!n))return null}else if(i=A(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:en(function(n,i,a){return Cl(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(q(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:en(function(n,i,a){return Cl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[u];if(m)if(a==null)l[u]=null;else{var y=m.match(q(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=m.slice(0,y.index)+(!y.index||x==m.length?"":" ")+m.slice(x)||null}else return!1;return!0})}),addLineWidget:en(function(n,i,a){return Qk(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return ys(this,nt(this,n),nt(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=nt(this,n),ys(this,n,n,a,"bookmark")},findMarksAt:function(n){n=nt(this,n);var i=[],a=qe(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=nt(this,n),i=nt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.markedSpans;if(y)for(var x=0;x<y.length;x++){var S=y[x];!(S.to!=null&&u==n.line&&n.ch>=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.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 m=u.text.length+l;if(m>n)return i=n,!0;n-=m,++a}),nt(this,fe(a,i))},indexFromPos:function(n){n=nt(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(ul(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(ul(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}],tS(l,pm(this)),l},unlinkDoc:function(n){if(n instanceof Ct&&(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),nS(pm(this));break}}if(n.history==this.history){var l=[n.id];Wi(n,function(u){return l.push(u.id)},!0),n.history=new dc(null),n.history.done=ps(this.history.done,l),n.history.undone=ps(this.history.undone,l)}},iterLinkedDocs:function(n){Wi(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:en(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Uk(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var gm=0;function iS(n){var i=this;if(mm(i),!(Rt(i,n)||li(i.display,n))){cn(n),h&&(gm=+new Date);var a=So(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,m=Array(u),y=0,x=function(){++y==u&&Qt(i,function(){a=nt(i.doc,a);var te={from:a,to:a,text:i.doc.splitLines(m.filter(function(pe){return pe!=null}).join(i.doc.lineSeparator())),origin:"paste"};ms(i.doc,te),em(i.doc,Hi(nt(i.doc,a),nt(i.doc,Bi(te))))})()},S=function(te,pe){if(i.options.allowDropFileTypes&&ce(i.options.allowDropFileTypes,te.type)==-1){x();return}var we=new FileReader;we.onerror=function(){return x()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}m[pe]=Te,x()},we.readAsText(te)},T=0;T<l.length;T++)S(l[T],T);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 H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),gc(i.doc,Hi(a,a)),V)for(var se=0;se<V.length;++se)vs(i.doc,"",V[se].anchor,V[se].head,"drag");i.replaceSelection(H,"around","paste"),i.display.input.focus()}}catch{}}}}function oS(n,i){if(h&&(!n.state.draggingText||+new Date-gm<100)){Pi(i);return}if(!(Rt(n,i)||li(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function sS(n,i){var a=So(n,i);if(a){var l=document.createDocumentFragment();If(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),C(n.display.dragCursor,l)}}function mm(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function vm(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 m=0;m<a.length;m++)n(a[m])})}}var ym=!1;function lS(){ym||(aS(),ym=!0)}function aS(){var n;Xe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,vm(cS)},100))}),Xe(window,"blur",function(){return vm(fs)})}function cS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var ji={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Nl=0;Nl<10;Nl++)ji[Nl+48]=ji[Nl+96]=String(Nl);for(var yc=65;yc<=90;yc++)ji[yc]=String.fromCharCode(yc);for(var Ol=1;Ol<=12;Ol++)ji[Ol+111]=ji[Ol+63235]="F"+Ol;var ci={};ci.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"},ci.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"},ci.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"},ci.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"]},ci.default=$?ci.macDefault:ci.pcDefault;function uS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,m,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))m=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),m&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function fS(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=be(a.split(" "),uS),m=0;m<u.length;m++){var y=void 0,x=void 0;m==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,m+1).join(" "),y="...");var S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var T in i)n[T]=i[T];return n}function bs(n,i,a,l){i=bc(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 bs(n,i.fallthrough,a,l);for(var m=0;m<i.fallthrough.length;m++){var y=bs(n,i.fallthrough[m],a,l);if(y)return y}}}function bm(n){var i=typeof n=="string"?n:ji[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function wm(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Z?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Z?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function xm(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=ji[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),wm(a,n,i))}function bc(n){return typeof n=="string"?ci[n]:n}function ws(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var m=i(a[u]);l.length&&Ie(m.from,xe(l).to)<=0;){var y=l.pop();if(Ie(y.from,m.from)<0){m.from=y.from;break}}l.push(m)}Wn(n,function(){for(var x=l.length-1;x>=0;x--)vs(n.doc,"",l[x].from,l[x].to,"+delete");ds(n)})}function Qf(n,i,a){var l=Yt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function ed(n,i,a){var l=Qf(n,i.ch,a);return l==null?null:new fe(i.line,l,a<0?"after":"before")}function td(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=lt(a,i.doc.direction);if(m){var y=u<0?xe(m):m[0],x=u<0==(y.level==1),S=x?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var H=as(i,a);T=u<0?a.text.length-1:0;var V=jr(i,H,T).top;T=jt(function(se){return jr(i,H,se).top==V},u<0==(y.level==1)?y.from:y.to-1,T),S=="before"&&(T=Qf(a,T,1))}else T=u<0?y.to:y.from;return new fe(l,T,S)}}return new fe(l,u<0?a.text.length:0,u<0?"before":"after")}function dS(n,i,a,l){var u=lt(i,n.doc.direction);if(!u)return ed(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 m=Bt(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return ed(i,a,l);var x=function(Le,De){return Qf(i,Le instanceof fe?Le.ch:Le,De)},S,T=function(Le){return n.options.lineWrapping?(S=S||as(n,i),Cg(n,i,S,Le)):{begin:0,end:i.text.length}},H=T(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var V=y.level==1==l<0,se=x(a,V?1:-1);if(se!=null&&(V?se<=y.to&&se<=H.end:se>=y.from&&se>=H.begin)){var te=V?"before":"after";return new fe(a.line,se,te)}}var pe=function(Le,De,Me){for(var ze=function(St,tn){return tn?new fe(a.line,x(St,1),"before"):new fe(a.line,St,"after")};Le>=0&&Le<u.length;Le+=De){var Ye=u[Le],Ue=De>0==(Ye.level!=1),st=Ue?Me.begin:x(Me.end,-1);if(Ye.from<=st&&st<Ye.to||(st=Ue?Ye.from:x(Ye.to,-1),Me.begin<=st&&st<Me.end))return ze(st,Ue)}},we=pe(m+l,l,H);if(we)return we;var Te=l>0?H.end:x(H.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=pe(l>0?0:u.length-1,l,T(Te)),we)?we:null}var Pl={selectAll:om,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Q)},killLine:function(n){return ws(n,function(i){if(i.empty()){var a=qe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:fe(i.head.line+1,0)}:{from:i.head,to:fe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ws(n,function(i){return{from:fe(i.from().line,0),to:nt(n.doc,fe(i.to().line+1,0))}})},delLineLeft:function(n){return ws(n,function(i){return{from:fe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ws(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 ws(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(fe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(fe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return km(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Sm(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return hS(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/)?Sm(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 m=a[u].from(),y=ne(n.getLine(m.line),m.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 Wn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,m=qe(n.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new fe(u.line,u.ch-1)),u.ch>0)u=new fe(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),fe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=qe(n.doc,u.line-1).text;y&&(u=new fe(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),fe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(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);ds(n)})},openLine:function(n){return n.replaceSelection(`
|
|
30
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function km(n,i){var a=qe(n.doc,i),l=Sr(a);return l!=a&&(i=A(l)),td(!0,n,l,i,1)}function hS(n,i){var a=qe(n.doc,i),l=Y1(a);return l!=a&&(i=A(l)),td(!0,n,a,i,-1)}function Sm(n,i){var a=km(n,i.line),l=qe(n.doc,a.line),u=lt(l,n.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=m&&i.ch;return fe(a.line,y?0:m,a.sticky)}return a}function wc(n,i,a){if(typeof i=="string"&&(i=Pl[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)!=W}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function pS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=bs(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&bs(i,n.options.extraKeys,a,n)||bs(i,n.options.keyMap,a,n)}var gS=new le;function Rl(n,i,a,l){var u=n.state.keySeq;if(u){if(bm(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:gS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),_m(n,u+" "+i,a,l))return!0}return _m(n,i,a,l)}function _m(n,i,a,l){var u=pS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Jt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(cn(a),Df(n)),!!u}function Tm(n,i){var a=xm(i,!0);return a?i.shiftKey&&!n.state.keySeq?Rl(n,"Shift-"+a,i,function(l){return wc(n,l,!0)})||Rl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return wc(n,l)}):Rl(n,a,i,function(l){return wc(n,l)}):!1}function mS(n,i,a){return Rl(n,"'"+a+"'",i,function(l){return wc(n,l,!0)})}var nd=null;function Cm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(je(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Tm(i,n);E&&(nd=l?a:null,!l&&a==88&&!Ka&&($?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!$&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&vS(i)}}function vS(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(O(i,"CodeMirror-crosshair"),an(document,"keyup",a),an(document,"mouseover",a))}Xe(document,"keyup",a),Xe(document,"mouseover",a)}function Em(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function Am(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(li(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||$&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==nd){nd=null,cn(n);return}if(!(E&&(!n.which||n.which<10)&&Tm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(mS(i,n,u)||i.display.input.onKeyPress(n))}}}var yS=400,rd=function(n,i,a){this.time=n,this.pos=i,this.button=a};rd.prototype.compare=function(n,i,a){return this.time+yS>n&&Ie(i,this.pos)==0&&a==this.button};var $l,Il;function bS(n,i){var a=+new Date;return Il&&Il.compare(a,n,i)?($l=Il=null,"triple"):$l&&$l.compare(a,n,i)?(Il=new rd(a,n,i),$l=null,"double"):($l=new rd(a,n,i),Il=null,"single")}function Lm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,li(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!id(i,n)){var l=So(i,n),u=br(n),m=l?bS(l,u):"single";Pe(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&wS(i,u,l,m,n))&&(u==1?l?kS(i,l,m,n):ll(n)==a.scroller&&cn(n):u==2?(l&&pc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):zf(i)))}}}function wS(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Rl(n,wm(m,u),u,function(y){if(typeof y=="string"&&(y=Pl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=W}finally{n.state.suppressEdits=!1}return x})}function xS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=j?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"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=$?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!($?a.altKey:a.ctrlKey)),u}function kS(n,i,a,l){h?setTimeout(F(Mg,n),0):n.curOp.focus=me(je(n));var u=xS(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&mf&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?SS(n,l,i,u):_S(n,l,i,u)}function SS(n,i,a,l){var u=n.display,m=!1,y=Qt(n,function(T){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:zf(n)),an(u.wrapper.ownerDocument,"mouseup",y),an(u.wrapper.ownerDocument,"mousemove",x),an(u.scroller,"dragstart",S),an(u.scroller,"drop",y),m||(cn(T),l.addNew||pc(n.doc,a,null,null,l.extend),g&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(T){m=m||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},S=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Xe(u.wrapper.ownerDocument,"mouseup",y),Xe(u.wrapper.ownerDocument,"mousemove",x),Xe(u.scroller,"dragstart",S),Xe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Mm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(fe(i.line,0),nt(n.doc,fe(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function _S(n,i,a,l){h&&zf(n);var u=n.display,m=n.doc;cn(i);var y,x,S=m.sel,T=S.ranges;if(l.addNew&&!l.extend?(x=m.sel.contains(a),x>-1?y=T[x]:y=new gt(a,a)):(y=m.sel.primary(),x=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=So(n,i,!0,!0),x=-1;else{var H=Mm(n,a,l.unit);l.extend?y=Zf(y,H.anchor,H.head,l.extend):y=H}l.addNew?x==-1?(x=T.length,un(m,Tr(n,T.concat([y]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&l.unit=="char"&&!l.extend?(un(m,Tr(n,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=m.sel):Jf(m,x,y,de):(x=0,un(m,new er([y],0),de),S=m.sel);var V=a;function se(Me){if(Ie(V,Me)!=0)if(V=Me,l.unit=="rectangle"){for(var ze=[],Ye=n.options.tabSize,Ue=ne(qe(m,a.line).text,a.ch,Ye),st=ne(qe(m,Me.line).text,Me.ch,Ye),St=Math.min(Ue,st),tn=Math.max(Ue,st),Ot=Math.min(a.line,Me.line),qn=Math.min(n.lastLine(),Math.max(a.line,Me.line));Ot<=qn;Ot++){var Cn=qe(m,Ot).text,Ut=ge(Cn,St,Ye);St==tn?ze.push(new gt(fe(Ot,Ut),fe(Ot,Ut))):Cn.length>Ut&&ze.push(new gt(fe(Ot,Ut),fe(Ot,ge(Cn,tn,Ye))))}ze.length||ze.push(new gt(a,a)),un(m,Tr(n,S.ranges.slice(0,x).concat(ze),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Me)}else{var En=y,sn=Mm(n,Me,l.unit),Kt=En.anchor,Vt;Ie(sn.anchor,Kt)>0?(Vt=sn.head,Kt=os(En.from(),sn.anchor)):(Vt=sn.anchor,Kt=Sn(En.to(),sn.head));var It=S.ranges.slice(0);It[x]=TS(n,new gt(nt(m,Kt),Vt)),un(m,Tr(n,It,x),de)}}var te=u.wrapper.getBoundingClientRect(),pe=0;function we(Me){var ze=++pe,Ye=So(n,Me,!0,l.unit=="rectangle");if(Ye)if(Ie(Ye,V)!=0){n.curOp.focus=me(je(n)),se(Ye);var Ue=ac(u,m);(Ye.line>=Ue.to||Ye.line<Ue.from)&&setTimeout(Qt(n,function(){pe==ze&&we(Me)}),150)}else{var st=Me.clientY<te.top?-20:Me.clientY>te.bottom?20:0;st&&setTimeout(Qt(n,function(){pe==ze&&(u.scroller.scrollTop+=st,we(Me))}),50)}}function Te(Me){n.state.selectingText=!1,pe=1/0,Me&&(cn(Me),u.input.focus()),an(u.wrapper.ownerDocument,"mousemove",Le),an(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Le=Qt(n,function(Me){Me.buttons===0||!br(Me)?Te(Me):we(Me)}),De=Qt(n,Te);n.state.selectingText=De,Xe(u.wrapper.ownerDocument,"mousemove",Le),Xe(u.wrapper.ownerDocument,"mouseup",De)}function TS(n,i){var a=i.anchor,l=i.head,u=qe(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=lt(u);if(!m)return i;var y=Bt(m,a.ch,a.sticky),x=m[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==m.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var H=Bt(m,l.ch,l.sticky),V=H-y||(l.ch-a.ch)*(x.level==1?-1:1);H==S-1||H==S?T=V<0:T=V>0}var se=m[S+(T?-1:0)],te=T==(se.level==1),pe=te?se.from:se.to,we=te?"after":"before";return a.ch==pe&&a.sticky==we?i:new gt(new fe(a.line,pe,we),l)}function Nm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&cn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(m>x.bottom||!Bn(n,a))return kn(i);m-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var T=y.gutters.childNodes[S];if(T&&T.getBoundingClientRect().right>=u){var H=U(n.doc,m),V=n.display.gutterSpecs[S];return Pt(n,a,n,H,V.className,i),kn(i)}}}function id(n,i){return Nm(n,i,"gutterClick",!0)}function Om(n,i){li(n.display,i)||CS(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function CS(n,i){return Bn(n,"gutterContextMenu")?Nm(n,i,"gutterContextMenu",!1):!1}function Pm(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ml(n)}var xs={toString:function(){return"CodeMirror.Init"}},Rm={},xc={};function ES(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(x,S,T){T!=xs&&m(x,S,T)}:m)}n.defineOption=a,n.Init=xs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Kf(l)},!0),a("indentUnit",2,Kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){_l(l),ml(l),_n(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(S){for(var T=0;;){var H=S.text.indexOf(u,T);if(H==-1)break;T=H+u.length,m.push(fe(y,H))}y++});for(var x=m.length-1;x>=0;x--)vs(l.doc,u,m[x],fe(m[x].line,m[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=xs&&l.refresh()}),a("specialCharPlaceholder",nk,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",_?"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",!re),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Pm(l),Sl(l)},!0),a("keyMap","default",function(l,u,m){var y=bc(u),x=m!=xs&&bc(m);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,LS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Vf(u,l.options.lineNumbers),Sl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Rf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return hs(l)},!0),a("scrollbarStyle","native",function(l){Ig(l),hs(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=Vf(l.options.gutters,u),Sl(l)},!0),a("firstLineNumber",1,Sl,!0),a("lineNumberFormatter",function(l){return l},Sl,!0),a("showCursorWhenSelecting",!1,vl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(fs(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,AS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,vl,!0),a("singleCursorHeightPerLine",!0,vl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,_l,!0),a("addModeClass",!1,_l,!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,_l,!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 AS(n,i,a){var l=a&&a!=xs;if(!i!=!l){var u=n.display.dragFunctions,m=i?Xe:an;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function LS(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(O(n.display.wrapper,"CodeMirror-wrap"),_f(n)),$f(n),_n(n),ml(n),setTimeout(function(){return hs(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?Y(i):{},Y(Rm,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 Ct.inputStyles[i.inputStyle](this),m=this.display=new Wk(n,l,u,i);m.wrapper.CodeMirror=this,Pm(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ig(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!_&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),MS(this),lS(),Eo(this),this.curOp.forceUpdate=!0,Vg(this,l),i.autofocus&&!_||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Ff(a)},20):fs(this);for(var y in xc)xc.hasOwnProperty(y)&&xc[y](this,i[y],xs);Fg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<od.length;++x)od[x](this);Ao(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Ct.defaults=Rm,Ct.optionHandlers=xc;function MS(n){var i=n.display;Xe(i.scroller,"mousedown",Qt(n,Lm)),h&&p<11?Xe(i.scroller,"dblclick",Qt(n,function(S){if(!Rt(n,S)){var T=So(n,S);if(!(!T||id(n,S)||li(n.display,S))){cn(S);var H=n.findWordAt(T);pc(n.doc,H.anchor,H.head)}}})):Xe(i.scroller,"dblclick",function(S){return Rt(n,S)||cn(S)}),Xe(i.scroller,"contextmenu",function(S){return Om(n,S)}),Xe(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||Om(n,S)});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 m(S){if(S.touches.length!=1)return!1;var T=S.touches[0];return T.radiusX<=1&&T.radiusY<=1}function y(S,T){if(T.left==null)return!0;var H=T.left-S.left,V=T.top-S.top;return H*H+V*V>400}Xe(i.scroller,"touchstart",function(S){if(!Rt(n,S)&&!m(S)&&!id(n,S)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Xe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Xe(i.scroller,"touchend",function(S){var T=i.activeTouch;if(T&&!li(i,S)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new gt(H,H):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(H):V=new gt(fe(H.line,0),nt(n.doc,fe(H.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),cn(S)}u()}),Xe(i.scroller,"touchcancel",u),Xe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(bl(n,i.scroller.scrollTop),To(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Xe(i.scroller,"mousewheel",function(S){return Wg(n,S)}),Xe(i.scroller,"DOMMouseScroll",function(S){return Wg(n,S)}),Xe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Rt(n,S)||Pi(S)},over:function(S){Rt(n,S)||(sS(n,S),Pi(S))},start:function(S){return oS(n,S)},drop:Qt(n,iS),leave:function(S){Rt(n,S)||mm(n)}};var x=i.input.getField();Xe(x,"keyup",function(S){return Em.call(n,S)}),Xe(x,"keydown",Qt(n,Cm)),Xe(x,"keypress",Qt(n,Am)),Xe(x,"focus",function(S){return Ff(n,S)}),Xe(x,"blur",function(S){return fs(n,S)})}var od=[];Ct.defineInitHook=function(n){return od.push(n)};function Dl(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=fl(n,i).state:a="prev");var y=n.options.tabSize,x=qe(u,i),S=ne(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!l&&!/\S/.test(x.text))H=0,a="not";else if(a=="smart"&&(H=u.mode.indent(m,x.text.slice(T.length),x.text),H==W||H>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?H=ne(qe(u,i-1).text,null,y):H=0:a=="add"?H=S+n.options.indentUnit:a=="subtract"?H=S-n.options.indentUnit:typeof a=="number"&&(H=S+a),H=Math.max(0,H);var V="",se=0;if(n.options.indentWithTabs)for(var te=Math.floor(H/y);te;--te)se+=y,V+=" ";if(se<H&&(V+=Ee(H-se)),V!=T)return vs(u,V,fe(i,0),fe(i,T.length),"+input"),x.stateAfter=null,!0;for(var pe=0;pe<u.sel.ranges.length;pe++){var we=u.sel.ranges[pe];if(we.head.line==i&&we.head.ch<T.length){var Te=fe(i,T.length);Jf(u,pe,new gt(Te,Te));break}}}var Cr=null;function kc(n){Cr=n}function sd(n,i,a,l,u){var m=n.doc;n.display.shift=!1,l||(l=m.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,S=cr(i),T=null;if(x&&l.ranges.length>1)if(Cr&&Cr.text.join(`
|
|
31
|
-
`)==i){if(l.ranges.length%Cr.text.length==0){T=[];for(var H=0;H<Cr.text.length;H++)T.push(m.splitLines(Cr.text[H]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(T=be(S,function(Le){return[Le]}));for(var V=n.curOp.updateInput,se=l.ranges.length-1;se>=0;se--){var te=l.ranges[se],pe=te.from(),we=te.to();te.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!x?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(S).length)):x&&Cr&&Cr.lineWise&&Cr.text.join(`
|
|
32
|
-
`)==S.join(`
|
|
33
|
-
`)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[se%T.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ms(n.doc,Te),Jt(n,"inputRead",n,Te)}i&&!x&&Im(n,i),ds(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function $m(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return sd(i,a,0,null,"paste")}),!0}function Im(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 m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(i.indexOf(m.electricChars.charAt(x))>-1){y=Dl(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Dl(n,u.head.line,"smart"));y&&Jt(n,"electricInput",n,u.head.line)}}}function Dm(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,m={anchor:fe(u,0),head:fe(u+1,0)};a.push(m),i.push(n.getRange(m.anchor,m.head))}return{text:i,ranges:a}}function ld(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function zm(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?n.style.width="1000px":n.setAttribute("wrap","off"),R&&(n.style.border="1px solid black"),i}function NS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Pe(this).focus(),this.display.input.focus()},setOption:function(l,u){var m=this.options,y=m[l];m[l]==u&&l!="mode"||(m[l]=u,i.hasOwnProperty(l)&&Qt(this,i[l])(this,u,y),Pt(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"](bc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==l||u[m].name==l)return u.splice(m,1),!0},addOverlay:vn(function(l,u){var m=l.token?l:n.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:m,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,_n(this)}),removeOverlay:vn(function(l){for(var u=this.state.overlays,m=0;m<u.length;++m){var y=u[m].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(m,1),this.state.modeGen++,_n(this);return}}}),indentLine:vn(function(l,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),ve(this.doc,l)&&Dl(this,l,u,m)}),indentSelection:vn(function(l){for(var u=this.doc.sel.ranges,m=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>m&&(Dl(this,x.head.line,l,!0),m=x.head.line,y==this.doc.sel.primIndex&&ds(this));else{var S=x.from(),T=x.to(),H=Math.max(m,S.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V<m;++V)Dl(this,V,l);var se=this.doc.sel.ranges;S.ch==0&&u.length==se.length&&se[y].from().ch>0&&Jf(this.doc,y,new gt(S,se[y].to()),Q)}}}),getTokenAt:function(l,u){return Kp(this,l,u)},getLineTokens:function(l,u){return Kp(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=nt(this.doc,l);var u=Up(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=x)y=T;else if(u[T*2+1]<x)m=T+1;else{S=u[T*2+2];break}}var H=S?S.indexOf("overlay "):-1;return H<0?S:H==0?null:S.slice(0,H-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 m=[];if(!a.hasOwnProperty(u))return m;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&m.push(y[x[u]]);else if(x[u])for(var S=0;S<x[u].length;S++){var T=y[x[u][S]];T&&m.push(T)}else x.helperType&&y[x.helperType]?m.push(y[x.helperType]):y[x.name]&&m.push(y[x.name]);for(var H=0;H<y._global.length;H++){var V=y._global[H];V.pred(x,this)&&ce(m,V.val)==-1&&m.push(V.val)}return m},getStateAfter:function(l,u){var m=this.doc;return l=Wp(m,l??m.first+m.size-1),fl(this,l+1,u).state},cursorCoords:function(l,u){var m,y=this.doc.sel.primary();return l==null?m=y.head:typeof l=="object"?m=nt(this.doc,l):m=l?y.from():y.to(),_r(this,m,u||"page")},charCoords:function(l,u){return ic(this,nt(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Sg(this,l,u||"page"),Nf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Sg(this,{top:l,left:0},u||"page").top,U(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,m){var y=!1,x;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),x=qe(this.doc,l)}else x=l;return rc(this,x,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-si(x):0)},defaultTextHeight:function(){return cs(this.display)},defaultCharWidth:function(){return us(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,x){var S=this.display;l=_r(this,nt(this.doc,l));var T=l.bottom,H=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(S.wrapper.clientHeight,this.doc.height),se=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),H+u.offsetWidth>se&&(H=se-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",x=="right"?(H=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=H+"px"),m&&Ak(this,{left:H,top:T,right:H+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:vn(Cm),triggerOnKeyPress:vn(Am),triggerOnKeyUp:Em,triggerOnMouseDown:vn(Lm),execCommand:function(l){if(Pl.hasOwnProperty(l))return Pl[l].call(null,this)},triggerElectric:vn(function(l){Im(this,l)}),findPosH:function(l,u,m,y){var x=1;u<0&&(x=-1,u=-u);for(var S=nt(this.doc,l),T=0;T<u&&(S=ad(this.doc,S,x,m,y),!S.hitSide);++T);return S},moveH:vn(function(l,u){var m=this;this.extendSelectionsBy(function(y){return m.display.shift||m.doc.extend||y.empty()?ad(m.doc,y.head,l,u,m.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:vn(function(l,u){var m=this.doc.sel,y=this.doc;m.somethingSelected()?y.replaceSelection("",null,"+delete"):ws(this,function(x){var S=ad(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,m,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var T=nt(this.doc,l),H=0;H<u;++H){var V=_r(this,T,"div");if(S==null?S=V.left:V.left=S,T=Fm(this,V,x,m),T.hitSide)break}return T},moveV:vn(function(l,u){var m=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(H){if(S)return l<0?H.from():H.to();var V=_r(m,H.head,"div");H.goalColumn!=null&&(V.left=H.goalColumn),x.push(V.left);var se=Fm(m,V,l,u);return u=="page"&&H==y.sel.primary()&&Bf(m,ic(m,se,"div").top-V.top),se},he),x.length)for(var T=0;T<y.sel.ranges.length;T++)y.sel.ranges[T].goalColumn=x[T]}),findWordAt:function(l){var u=this.doc,m=qe(u,l.line).text,y=l.ch,x=l.ch;if(m){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==m.length)&&y?--y:++x;for(var T=m.charAt(y),H=ct(T,S)?function(V){return ct(V,S)}:/\s/.test(T)?function(V){return/\s/.test(V)}:function(V){return!/\s/.test(V)&&!ct(V)};y>0&&H(m.charAt(y-1));)--y;for(;x<m.length&&H(m.charAt(x));)++x}return new gt(fe(l.line,y),fe(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(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){yl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-qr(this)-this.display.barHeight,width:l.scrollWidth-qr(this)-this.display.barWidth,clientHeight:Ef(this),clientWidth:xo(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:fe(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?Lk(this,l):Og(this,l.from,l.to,l.margin)}),setSize:vn(function(l,u){var m=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&wg(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(S){if(S.widgets){for(var T=0;T<S.widgets.length;T++)if(S.widgets[T].noHScroll){zi(m,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(l){return Wn(this,l)},startOperation:function(){return Eo(this)},endOperation:function(){return Ao(this)},refresh:vn(function(){var l=this.display.cachedTextHeight;_n(this),this.curOp.forceUpdate=!0,ml(this),yl(this,this.doc.scrollLeft,this.doc.scrollTop),jf(this.display),(l==null||Math.abs(l-cs(this.display))>.5||this.options.lineWrapping)&&$f(this),Pt(this,"refresh",this)}),swapDoc:vn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Vg(this,l),ml(this),this.display.input.reset(),yl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Jt(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}},yr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function ad(n,i,a,l,u){var m=i,y=a,x=qe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+S;return De<n.first||De>=n.first+n.size?!1:(i=new fe(De,i.ch,i.sticky),x=qe(n,De))}function H(De){var Me;if(l=="codepoint"){var ze=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(ze))Me=null;else{var Ye=a>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;Me=new fe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ye?2:1))),-a)}}else u?Me=dS(n.cm,x,i,a):Me=ed(x,i,a);if(Me==null)if(!De&&T())i=td(u,n.cm,x,i.line,S);else return!1;else i=Me;return!0}if(l=="char"||l=="codepoint")H();else if(l=="column")H(!0);else if(l=="word"||l=="group")for(var V=null,se=l=="group",te=n.cm&&n.cm.getHelper(i,"wordChars"),pe=!0;!(a<0&&!H(!pe));pe=!1){var we=x.text.charAt(i.ch)||`
|
|
34
|
-
`,Te=ct(we,te)?"w":se&&we==`
|
|
35
|
-
`?"n":!se||/\s/.test(we)?null:"p";if(se&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var Le=mc(n,i,m,y,!0);return pt(m,Le)&&(Le.hitSide=!0),Le}function Fm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Pe(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*cs(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=Nf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}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,ld(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}Xe(u,"paste",function(x){!m(x)||Rt(l,x)||$m(x,l)||p<=11&&setTimeout(Qt(l,function(){return i.updateFromDOM()}),20)}),Xe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Xe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Xe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Xe(u,"touchstart",function(){return a.forceCompositionEnd()}),Xe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!m(x)||Rt(l,x))){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Dm(l);kc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,Q),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=Cr.text.join(`
|
|
36
|
-
`);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=zm(),V=H.firstChild;ld(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Cr.text.join(`
|
|
37
|
-
`);var se=me(Fe(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(H),se.focus(),se==u&&a.showPrimarySelection()},50)}}Xe(u,"copy",y),Xe(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=Lg(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 m=Sc(i,n.anchorNode,n.anchorOffset),y=Sc(i,n.focusNode,n.focusOffset);if(!(m&&!m.bad&&y&&!y.bad&&Ie(os(m,y),l)==0&&Ie(Sn(m,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&Hm(i,l)||{node:x[0].measure.map[2],offset:0},T=u.line<i.display.viewTo&&Hm(i,u);if(!T){var H=x[x.length-1].measure,V=H.maps?H.maps[H.maps.length-1]:H.map;T={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!S||!T){n.removeAllRanges();return}var se=n.rangeCount&&n.getRangeAt(0),te;try{te=B(S.node,S.offset,T.offset,T.node)}catch{}te&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),te.collapsed||(n.removeAllRanges(),n.addRange(te))):(n.removeAllRanges(),n.addRange(te)),se&&n.anchorNode==null?n.addRange(se):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){C(this.cm.display.cursorDiv,n.cursors),C(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 ae(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):Wn(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(I&&b&&this.cm.display.gutterSpecs.length&&OS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Sc(i,n.anchorNode,n.anchorOffset),l=Sc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){un(i.doc,Hi(a,l),Q),(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=fe(l.line-1,qe(n.doc,l.line-1).length)),u.ch==qe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=fe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var m,y,x;l.line==i.viewFrom||(m=_o(n,l.line))==0?(y=A(i.view[0].line),x=i.view[0].node):(y=A(i.view[m].line),x=i.view[m-1].node.nextSibling);var S=_o(n,u.line),T,H;if(S==i.view.length-1?(T=i.viewTo-1,H=i.lineDiv.lastChild):(T=A(i.view[S+1].line)-1,H=i.view[S+1].node.previousSibling),!x)return!1;for(var V=n.doc.splitLines(PS(n,x,H,y,T)),se=ii(n.doc,fe(y,0),fe(T,qe(n.doc,T).text.length));V.length>1&&se.length>1;)if(xe(V)==xe(se))V.pop(),se.pop(),T--;else if(V[0]==se[0])V.shift(),se.shift(),y++;else break;for(var te=0,pe=0,we=V[0],Te=se[0],Le=Math.min(we.length,Te.length);te<Le&&we.charCodeAt(te)==Te.charCodeAt(te);)++te;for(var De=xe(V),Me=xe(se),ze=Math.min(De.length-(V.length==1?te:0),Me.length-(se.length==1?te:0));pe<ze&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)++pe;if(V.length==1&&se.length==1&&y==l.line)for(;te&&te>l.ch&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)te--,pe++;V[V.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),V[0]=V[0].slice(te).replace(/\u200b+$/,"");var Ye=fe(y,te),Ue=fe(T,se.length?xe(se).length-pe:0);if(V.length>1||V[0]||Ie(Ye,Ue))return vs(n.doc,V,Ye,Ue,"+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())&&Wn(this.cm,function(){return _n(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()||Qt(this.cm,sd)(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 Hm(n,i){var a=Af(n,i.line);if(!a||a.hidden)return null;var l=qe(n.doc,i.line),u=gg(a,l,i.line),m=lt(l,n.doc.direction),y="left";if(m){var x=Bt(m,i.ch);y=x%2?"right":"left"}var S=yg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function OS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ks(n,i){return i&&(n.bad=!0),n}function PS(n,i,a,l,u){var m="",y=!1,x=n.doc.lineSeparator(),S=!1;function T(te){return function(pe){return pe.id==te}}function H(){y&&(m+=x,S&&(m+=x),y=S=!1)}function V(te){te&&(H(),m+=te)}function se(te){if(te.nodeType==1){var pe=te.getAttribute("cm-text");if(pe){V(pe);return}var we=te.getAttribute("cm-marker"),Te;if(we){var Le=n.findMarks(fe(l,0),fe(u+1,0),T(+we));Le.length&&(Te=Le[0].find(0))&&V(ii(n.doc,Te.from,Te.to).join(x));return}if(te.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;De&&H();for(var Me=0;Me<te.childNodes.length;Me++)se(te.childNodes[Me]);/^(pre|p)$/i.test(te.nodeName)&&(S=!0),De&&(y=!0)}else te.nodeType==3&&V(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(i),i!=a;)i=i.nextSibling,S=!1;return m}function Sc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ks(n.clipPos(fe(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 m=n.display.view[u];if(m.node==l)return RS(m,i,a)}}function RS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ae(l,i))return ks(fe(A(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var m=n.rest?xe(n.rest):n.line;return ks(fe(A(m),m.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var S=n.measure,T=S.maps;function H(Te,Le,De){for(var Me=-1;Me<(T?T.length:0);Me++)for(var ze=Me<0?S.map:T[Me],Ye=0;Ye<ze.length;Ye+=3){var Ue=ze[Ye+2];if(Ue==Te||Ue==Le){var st=A(Me<0?n.line:n.rest[Me]),St=ze[Ye]+De;return(De<0||Ue!=Te)&&(St=ze[Ye+(De?1:0)]),fe(st,St)}}}var V=H(y,x,a);if(V)return ks(V,u);for(var se=x.nextSibling,te=y?y.nodeValue.length-a:0;se;se=se.nextSibling){if(V=H(se,se.firstChild,0),V)return ks(fe(V.line,V.ch-te),u);te+=se.textContent.length}for(var pe=x.previousSibling,we=a;pe;pe=pe.previousSibling){if(V=H(pe,pe.firstChild,-1),V)return ks(fe(V.line,V.ch+we),u);we+=pe.textContent.length}}var Wt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Wt.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"),Xe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Xe(u,"paste",function(y){Rt(l,y)||$m(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!Rt(l,y)){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=Dm(l);kc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Q):(a.prevInput="",u.value=x.text.join(`
|
|
38
|
-
`),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Xe(u,"cut",m),Xe(u,"copy",m),Xe(n.scroller,"paste",function(y){if(!(li(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Xe(n.lineSpace,"selectstart",function(y){li(n,y)||cn(y)}),Xe(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"})}}),Xe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Wt.prototype.createField=function(n){this.wrapper=zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;ld(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Wt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Lg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},Wt.prototype.showSelection=function(n){var i=this.cm,a=i.display;C(a.cursorDiv,n.cursors),C(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Wt.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&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||me(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Wt.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)},Wt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||$i(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||$&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l=""),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Wn(i,function(){sd(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},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=So(a,n),y=l.scroller.scrollTop;if(!m||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(m)==-1&&Qt(a,un)(a.doc,Hi(m),Q);var S=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
40
|
-
top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.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 V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=te,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te=""+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function te(){if(i.contextMenuPending==te&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Qt(a,om)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){Pi(n);var pe=function(){an(window,"mouseup",pe),setTimeout(te,20)};Xe(window,"mouseup",pe)}else setTimeout(te,50)},Wt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function $S(n,i){if(i=i?Y(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=x.getValue()}var u;if(n.form&&(Xe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.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 x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function IS(n){n.off=an,n.on=Xe,n.wheelEventPixels=qk,n.Doc=Tn,n.splitLines=cr,n.countColumn=ne,n.findColumn=ge,n.isWordChar=Je,n.Pass=W,n.signal=Pt,n.Line=ss,n.changeEnd=Bi,n.scrollbarModel=$g,n.Pos=fe,n.cmpPos=Ie,n.modes=es,n.mimeModes=xr,n.resolveMode=ts,n.getMode=ns,n.modeExtensions=Ii,n.extendMode=rs,n.copyState=Br,n.startState=is,n.innerMode=cl,n.commands=Pl,n.keyMap=ci,n.keyName=xm,n.isModifierKey=bm,n.lookupKey=bs,n.normalizeKeyMap=fS,n.StringStream=$t,n.SharedTextMarker=Ml,n.TextMarker=qi,n.LineWidget=Ll,n.e_preventDefault=cn,n.e_stopPropagation=Jo,n.e_stop=Pi,n.addClass=Se,n.contains=ae,n.rmClass=O,n.keyNames=ji}ES(Ct),NS(Ct);var DS="iter insert remove copy getEditor constructor".split(" ");for(var _c in Tn.prototype)Tn.prototype.hasOwnProperty(_c)&&ce(DS,_c)<0&&(Ct.prototype[_c]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Tn.prototype[_c]));return yr(Tn),Ct.inputStyles={textarea:Wt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),kr.apply(this,arguments)},Ct.defineMIME=wo,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){Tn.prototype[n]=i},Ct.fromTextArea=$S,IS(Ct),Ct.version="5.65.18",Ct}))})(Yc)),Yc.exports}var DL=yo();const zL=fx(DL);var Ad={},Er={};const 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="∧",mM="⩜",vM="⩘",yM="⩚",bM="∠",wM="⦤",xM="∠",kM="⦨",SM="⦩",_M="⦪",TM="⦫",CM="⦬",EM="⦭",AM="⦮",LM="⦯",MM="∡",NM="∟",OM="⊾",PM="⦝",RM="∢",$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="∖",mN="⫧",vN="⊽",yN="⌅",bN="⌆",wN="⌅",xN="⎵",kN="⎶",SN="≌",_N="Б",TN="б",CN="„",EN="∵",AN="∵",LN="∵",MN="⦰",NN="϶",ON="ℬ",PN="ℬ",RN="Β",$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="𝔹",mO="𝕓",vO="⊥",yO="⊥",bO="⋈",wO="⧉",xO="┐",kO="╕",SO="╖",_O="╗",TO="┌",CO="╒",EO="╓",AO="╔",LO="─",MO="═",NO="┬",OO="╤",PO="╥",RO="╦",$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="ℬ",m2="⁏",v2="∽",y2="⋍",b2="⧅",w2="\\",x2="⟈",k2="•",S2="•",_2="≎",T2="⪮",C2="≏",E2="≎",A2="≏",L2="Ć",M2="ć",N2="⩄",O2="⩉",P2="⩋",R2="∩",$2="⋒",I2="⩇",D2="⩀",z2="ⅅ",F2="∩︀",H2="⁁",B2="ˇ",W2="ℭ",q2="⩍",j2="Č",U2="č",V2="Ç",G2="ç",K2="Ĉ",X2="ĉ",Y2="∰",Z2="⩌",J2="⩐",Q2="Ċ",eP="ċ",tP="¸",nP="¸",rP="⦲",iP="¢",oP="·",sP="·",lP="𝔠",aP="ℭ",cP="Ч",uP="ч",fP="✓",dP="✓",hP="Χ",pP="χ",gP="ˆ",mP="≗",vP="↺",yP="↻",bP="⊛",wP="⊚",xP="⊝",kP="⊙",SP="®",_P="Ⓢ",TP="⊖",CP="⊕",EP="⊗",AP="○",LP="⧃",MP="≗",NP="⨐",OP="⫯",PP="⧂",RP="∲",$P="”",IP="’",DP="♣",zP="♣",FP=":",HP="∷",BP="⩴",WP="≔",qP="≔",jP=",",UP="@",VP="∁",GP="∘",KP="∁",XP="ℂ",YP="≅",ZP="⩭",JP="≡",QP="∮",eR="∯",tR="∮",nR="𝕔",rR="ℂ",iR="∐",oR="∐",sR="©",lR="©",aR="℗",cR="∳",uR="↵",fR="✗",dR="⨯",hR="𝒞",pR="𝒸",gR="⫏",mR="⫑",vR="⫐",yR="⫒",bR="⋯",wR="⤸",xR="⤵",kR="⋞",SR="⋟",_R="↶",TR="⤽",CR="⩈",ER="⩆",AR="≍",LR="∪",MR="⋓",NR="⩊",OR="⊍",PR="⩅",RR="∪︀",$R="↷",IR="⤼",DR="⋞",zR="⋟",FR="⋎",HR="⋏",BR="¤",WR="↶",qR="↷",jR="⋎",UR="⋏",VR="∲",GR="∱",KR="⌭",XR="†",YR="‡",ZR="ℸ",JR="↓",QR="↡",e$="⇓",t$="‐",n$="⫤",r$="⊣",i$="⤏",o$="˝",s$="Ď",l$="ď",a$="Д",c$="д",u$="‡",f$="⇊",d$="ⅅ",h$="ⅆ",p$="⤑",g$="⩷",m$="°",v$="∇",y$="Δ",b$="δ",w$="⦱",x$="⥿",k$="𝔇",S$="𝔡",_$="⥥",T$="⇃",C$="⇂",E$="´",A$="˙",L$="˝",M$="`",N$="˜",O$="⋄",P$="⋄",R$="⋄",$$="♦",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="⟺",mI="⟹",vI="⇒",yI="⊨",bI="⇑",wI="⇕",xI="∥",kI="⤓",SI="↓",_I="↓",TI="⇓",CI="⇵",EI="̑",AI="⇊",LI="⇃",MI="⇂",NI="⥐",OI="⥞",PI="⥖",RI="↽",$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="э",mD="⩷",vD="Ė",yD="ė",bD="≑",wD="ⅇ",xD="≒",kD="𝔈",SD="𝔢",_D="⪚",TD="È",CD="è",ED="⪖",AD="⪘",LD="⪙",MD="∈",ND="⏧",OD="ℓ",PD="⪕",RD="⪗",$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="⪕",uz="⩵",fz="=",dz="≂",hz="≟",pz="⇌",gz="≡",mz="⩸",vz="⧥",yz="⥱",bz="≓",wz="ℯ",xz="ℰ",kz="≐",Sz="⩳",_z="≂",Tz="Η",Cz="η",Ez="Ð",Az="ð",Lz="Ë",Mz="ë",Nz="€",Oz="!",Pz="∃",Rz="∃",$z="ℰ",Iz="ⅇ",Dz="ⅇ",zz="≒",Fz="Ф",Hz="ф",Bz="♀",Wz="ffi",qz="ff",jz="ffl",Uz="𝔉",Vz="𝔣",Gz="fi",Kz="◼",Xz="▪",Yz="fj",Zz="♭",Jz="fl",Qz="▱",eF="ƒ",tF="𝔽",nF="𝕗",rF="∀",iF="∀",oF="⋔",sF="⫙",lF="ℱ",aF="⨍",cF="½",uF="⅓",fF="¼",dF="⅕",hF="⅙",pF="⅛",gF="⅔",mF="⅖",vF="¾",yF="⅗",bF="⅜",wF="⅘",xF="⅚",kF="⅝",SF="⅞",_F="⁄",TF="⌢",CF="𝒻",EF="ℱ",AF="ǵ",LF="Γ",MF="γ",NF="Ϝ",OF="ϝ",PF="⪆",RF="Ğ",$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="⪊",mH="⪊",vH="⪈",yH="≩",bH="⪈",wH="≩",xH="⋧",kH="𝔾",SH="𝕘",_H="`",TH="≥",CH="⋛",EH="≧",AH="⪢",LH="≷",MH="⩾",NH="≳",OH="𝒢",PH="ℊ",RH="≳",$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="♥",m3="…",v3="⊹",y3="𝔥",b3="ℌ",w3="ℋ",x3="⤥",k3="⤦",S3="⇿",_3="∻",T3="↩",C3="↪",E3="𝕙",A3="ℍ",L3="―",M3="─",N3="𝒽",O3="ℋ",P3="ℏ",R3="Ħ",$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="IJ",aB="ij",cB="Ī",uB="ī",fB="ℑ",dB="ⅈ",hB="ℐ",pB="ℑ",gB="ı",mB="ℑ",vB="⊷",yB="Ƶ",bB="⇒",wB="℅",xB="∞",kB="⧝",SB="ı",_B="⊺",TB="∫",CB="∬",EB="ℤ",AB="∫",LB="⊺",MB="⋂",NB="⨗",OB="⨼",PB="",RB="",$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="𝒥",m5="𝒿",v5="Ј",y5="ј",b5="Є",w5="є",x5="Κ",k5="κ",S5="ϰ",_5="Ķ",T5="ķ",C5="К",E5="к",A5="𝔎",L5="𝔨",M5="ĸ",N5="Х",O5="х",P5="Ќ",R5="ќ",$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="⤌",m8="⤎",v8="❲",y8="{",b8="[",w8="⦋",x8="⦏",k8="⦍",S8="Ľ",_8="ľ",T8="Ļ",C8="ļ",E8="⌈",A8="{",L8="Л",M8="л",N8="⤶",O8="“",P8="„",R8="⥧",$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="⥑",mW="⥠",vW="⥘",yW="↿",bW="⥒",wW="↼",xW="⪋",kW="⋚",SW="≤",_W="≦",TW="⩽",CW="⪨",EW="⩽",AW="⩿",LW="⪁",MW="⪃",NW="⋚︀",OW="⪓",PW="⪅",RW="⋖",$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="⪉",m4="⪉",v4="⪇",y4="≨",b4="⪇",w4="≨",x4="⋦",k4="⟬",S4="⇽",_4="⟦",T4="⟵",C4="⟵",E4="⟸",A4="⟷",L4="⟷",M4="⟺",N4="⟼",O4="⟶",P4="⟶",R4="⟹",$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="ł",mq="⪦",vq="⩹",yq="<",bq="<",wq="≪",xq="⋖",kq="⋋",Sq="⋉",_q="⥶",Tq="⩻",Cq="◃",Eq="⊴",Aq="◂",Lq="⦖",Mq="⥊",Nq="⥦",Oq="≨︀",Pq="≨︀",Rq="¯",$q="♂",Iq="✠",Dq="✠",zq="↦",Fq="↦",Hq="↧",Bq="↤",Wq="↥",qq="▮",jq="⨩",Uq="М",Vq="м",Gq="—",Kq="∺",Xq="∡",Yq=" ",Zq="ℳ",Jq="𝔐",Qq="𝔪",ej="℧",tj="µ",nj="*",rj="⫰",ij="∣",oj="·",sj="⊟",lj="−",aj="∸",cj="⨪",uj="∓",fj="⫛",dj="…",hj="∓",pj="⊧",gj="𝕄",mj="𝕞",vj="∓",yj="𝓂",bj="ℳ",wj="∾",xj="Μ",kj="μ",Sj="⊸",_j="⊸",Tj="∇",Cj="Ń",Ej="ń",Aj="∠⃒",Lj="≉",Mj="⩰̸",Nj="≋̸",Oj="ʼn",Pj="≉",Rj="♮",$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=`
|
|
43
|
-
`,h6="∄",p6="∄",g6="𝔑",m6="𝔫",v6="≧̸",y6="≱",b6="≱",w6="≧̸",x6="⩾̸",k6="⩾̸",S6="⋙̸",_6="≵",T6="≫⃒",C6="≯",E6="≯",A6="≫̸",L6="↮",M6="⇎",N6="⫲",O6="∋",P6="⋼",R6="⋺",$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="∉",mU="≠",vU="≂̸",yU="∄",bU="≯",wU="≱",xU="≧̸",kU="≫̸",SU="≹",_U="⩾̸",TU="≵",CU="≎̸",EU="≏̸",AU="∉",LU="⋵̸",MU="⋹̸",NU="∉",OU="⋷",PU="⋶",RU="⧏̸",$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="≄",mV="≇",vV="≉",yV="∤",bV="∦",wV="∦",xV="⫽⃥",kV="∂̸",SV="⨔",_V="⊀",TV="⋠",CV="⊀",EV="⪯̸",AV="⪯̸",LV="⤳̸",MV="↛",NV="⇏",OV="↝̸",PV="↛",RV="⇏",$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="⋪",mG="⋬",vG="⋫",yG="⋭",bG="Ν",wG="ν",xG="#",kG="№",SG=" ",_G="≍⃒",TG="⊬",CG="⊭",EG="⊮",AG="⊯",LG="≥⃒",MG=">⃒",NG="⤄",OG="⧞",PG="⤂",RG="≤⃒",$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="Ω",m9="∮",v9="↺",y9="⦾",b9="⦻",w9="‾",x9="⧀",k9="Ō",S9="ō",_9="Ω",T9="ω",C9="Ο",E9="ο",A9="⦶",L9="⊖",M9="𝕆",N9="𝕠",O9="⦷",P9="“",R9="‘",$9="⦹",I9="⊕",D9="↻",z9="⩔",F9="∨",H9="⩝",B9="ℴ",W9="ℴ",q9="ª",j9="º",U9="⊶",V9="⩖",G9="⩗",K9="⩛",X9="Ⓢ",Y9="𝒪",Z9="ℴ",J9="Ø",Q9="ø",eK="⊘",tK="Õ",nK="õ",rK="⨶",iK="⨷",oK="⊗",sK="Ö",lK="ö",aK="⌽",cK="‾",uK="⏞",fK="⎴",dK="⏜",hK="¶",pK="∥",gK="∥",mK="⫳",vK="⫽",yK="∂",bK="∂",wK="П",xK="п",kK="%",SK=".",_K="‰",TK="⊥",CK="‱",EK="𝔓",AK="𝔭",LK="Φ",MK="φ",NK="ϕ",OK="ℳ",PK="☎",RK="Π",$K="π",IK="⋔",DK="ϖ",zK="ℏ",FK="ℎ",HK="ℏ",BK="⨣",WK="⊞",qK="⨢",jK="+",UK="∔",VK="⨥",GK="⩲",KK="±",XK="±",YK="⨦",ZK="⨧",JK="±",QK="ℌ",e7="⨕",t7="𝕡",n7="ℙ",r7="£",i7="⪷",o7="⪻",s7="≺",l7="≼",a7="⪷",c7="≺",u7="≼",f7="≺",d7="⪯",h7="≼",p7="≾",g7="⪯",m7="⪹",v7="⪵",y7="⋨",b7="⪯",w7="⪳",x7="≾",k7="′",S7="″",_7="ℙ",T7="⪹",C7="⪵",E7="⋨",A7="∏",L7="∏",M7="⌮",N7="⌒",O7="⌓",P7="∝",R7="∝",$7="∷",I7="∝",D7="≾",z7="⊰",F7="𝒫",H7="𝓅",B7="Ψ",W7="ψ",q7=" ",j7="𝔔",U7="𝔮",V7="⨌",G7="𝕢",K7="ℚ",X7="⁗",Y7="𝒬",Z7="𝓆",J7="ℍ",Q7="⨖",eX="?",tX="≟",nX='"',rX='"',iX="⇛",oX="∽̱",sX="Ŕ",lX="ŕ",aX="√",cX="⦳",uX="⟩",fX="⟫",dX="⦒",hX="⦥",pX="⟩",gX="»",mX="⥵",vX="⇥",yX="⤠",bX="⤳",wX="→",xX="↠",kX="⇒",SX="⤞",_X="↪",TX="↬",CX="⥅",EX="⥴",AX="⤖",LX="↣",MX="↝",NX="⤚",OX="⤜",PX="∶",RX="ℚ",$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="⌋",mY="𝔯",vY="ℜ",yY="⥤",bY="⇁",wY="⇀",xY="⥬",kY="Ρ",SY="ρ",_Y="ϱ",TY="⟩",CY="⇥",EY="→",AY="→",LY="⇒",MY="⇄",NY="↣",OY="⌉",PY="⟧",RY="⥝",$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="𝕣",mZ="ℝ",vZ="⨮",yZ="⨵",bZ="⥰",wZ=")",xZ="⦔",kZ="⨒",SZ="⇉",_Z="⇛",TZ="›",CZ="𝓇",EZ="ℛ",AZ="↱",LZ="↱",MZ="]",NZ="’",OZ="’",PZ="⋌",RZ="⋊",$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="⇘",mJ="↘",vJ="§",yJ=";",bJ="⤩",wJ="∖",xJ="∖",kJ="✶",SJ="𝔖",_J="𝔰",TJ="⌢",CJ="♯",EJ="Щ",AJ="щ",LJ="Ш",MJ="ш",NJ="↓",OJ="←",PJ="∣",RJ="∥",$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="𝕤",mQ="♠",vQ="♠",yQ="∥",bQ="⊓",wQ="⊓︀",xQ="⊔",kQ="⊔︀",SQ="√",_Q="⊏",TQ="⊑",CQ="⊏",EQ="⊑",AQ="⊐",LQ="⊒",MQ="⊐",NQ="⊒",OQ="□",PQ="□",RQ="⊓",$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="⫅",mee="⊆",vee="⊊",yee="⫋",bee="⫇",wee="⫕",xee="⫓",kee="⪸",See="≻",_ee="≽",Tee="≻",Cee="⪰",Eee="≽",Aee="≿",Lee="⪰",Mee="⪺",Nee="⪶",Oee="⋩",Pee="≿",Ree="∋",$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="↙",mte="⤪",vte="ß",yte=" ",bte="⌖",wte="Τ",xte="τ",kte="⎴",Ste="Ť",_te="ť",Tte="Ţ",Cte="ţ",Ete="Т",Ate="т",Lte="⃛",Mte="⌕",Nte="𝔗",Ote="𝔱",Pte="∴",Rte="∴",$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="™",mne="▵",vne="▿",yne="◃",bne="⊴",wne="≜",xne="▹",kne="⊵",Sne="◬",_ne="≜",Tne="⨺",Cne="⃛",Ene="⨹",Ane="⧍",Lne="⨻",Mne="⏢",Nne="𝒯",One="𝓉",Pne="Ц",Rne="ц",$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="⌜",mre="⌜",vre="⌏",yre="◸",bre="Ū",wre="ū",xre="¨",kre="_",Sre="⏟",_re="⎵",Tre="⏝",Cre="⋃",Ere="⊎",Are="Ų",Lre="ų",Mre="𝕌",Nre="𝕦",Ore="⤒",Pre="↑",Rre="↑",$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="ü",mie="⦧",vie="⦜",yie="ϵ",bie="ϰ",wie="∅",xie="ϕ",kie="ϖ",Sie="∝",_ie="↕",Tie="⇕",Cie="ϱ",Eie="ς",Aie="⊊︀",Lie="⫋︀",Mie="⊋︀",Nie="⫌︀",Oie="ϑ",Pie="⊲",Rie="⊳",$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="𝓋",moe="⫋︀",voe="⊊︀",yoe="⫌︀",boe="⊋︀",woe="⊪",xoe="⦚",koe="Ŵ",Soe="ŵ",_oe="⩟",Toe="∧",Coe="⋀",Eoe="≙",Aoe="℘",Loe="𝔚",Moe="𝔴",Noe="𝕎",Ooe="𝕨",Poe="℘",Roe="≀",$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="я",mse="Ŷ",vse="ŷ",yse="Ы",bse="ы",wse="¥",xse="𝔜",kse="𝔶",Sse="Ї",_se="ї",Tse="𝕐",Cse="𝕪",Ese="𝒴",Ase="𝓎",Lse="Ю",Mse="ю",Nse="ÿ",Ose="Ÿ",Pse="Ź",Rse="ź",$se="Ž",Ise="ž",Dse="З",zse="з",Fse="Ż",Hse="ż",Bse="ℨ",Wse="",qse="Ζ",jse="ζ",Use="𝔷",Vse="ℨ",Gse="Ж",Kse="ж",Xse="⇝",Yse="𝕫",Zse="ℤ",Jse="𝒵",Qse="𝓏",ele="",tle="",dx={Aacute:FL,aacute:HL,Abreve:BL,abreve:WL,ac:qL,acd:jL,acE:UL,Acirc:VL,acirc:GL,acute:KL,Acy:XL,acy:YL,AElig:ZL,aelig:JL,af:QL,Afr:eM,afr:tM,Agrave:nM,agrave:rM,alefsym:iM,aleph:oM,Alpha:sM,alpha:lM,Amacr:aM,amacr:cM,amalg:uM,amp:fM,AMP:dM,andand:hM,And:pM,and:gM,andd:mM,andslope:vM,andv:yM,ang:bM,ange:wM,angle:xM,angmsdaa:kM,angmsdab:SM,angmsdac:_M,angmsdad:TM,angmsdae:CM,angmsdaf:EM,angmsdag:AM,angmsdah:LM,angmsd:MM,angrt:NM,angrtvb:OM,angrtvbd:PM,angsph:RM,angst:$M,angzarr:IM,Aogon:DM,aogon:zM,Aopf:FM,aopf:HM,apacir:BM,ap:WM,apE:qM,ape:jM,apid:UM,apos:VM,ApplyFunction:GM,approx:KM,approxeq:XM,Aring:YM,aring:ZM,Ascr:JM,ascr:QM,Assign:eN,ast:tN,asymp:nN,asympeq:rN,Atilde:iN,atilde:oN,Auml:sN,auml:lN,awconint:aN,awint:cN,backcong:uN,backepsilon:fN,backprime:dN,backsim:hN,backsimeq:pN,Backslash:gN,Barv:mN,barvee:vN,barwed:yN,Barwed:bN,barwedge:wN,bbrk:xN,bbrktbrk:kN,bcong:SN,Bcy:_N,bcy:TN,bdquo:CN,becaus:EN,because:AN,Because:LN,bemptyv:MN,bepsi:NN,bernou:ON,Bernoullis:PN,Beta:RN,beta:$N,beth:IN,between:DN,Bfr:zN,bfr:FN,bigcap:HN,bigcirc:BN,bigcup:WN,bigodot:qN,bigoplus:jN,bigotimes:UN,bigsqcup:VN,bigstar:GN,bigtriangledown:KN,bigtriangleup:XN,biguplus:YN,bigvee:ZN,bigwedge:JN,bkarow:QN,blacklozenge:eO,blacksquare:tO,blacktriangle:nO,blacktriangledown:rO,blacktriangleleft:iO,blacktriangleright:oO,blank:sO,blk12:lO,blk14:aO,blk34:cO,block:uO,bne:fO,bnequiv:dO,bNot:hO,bnot:pO,Bopf:gO,bopf:mO,bot:vO,bottom:yO,bowtie:bO,boxbox:wO,boxdl:xO,boxdL:kO,boxDl:SO,boxDL:_O,boxdr:TO,boxdR:CO,boxDr:EO,boxDR:AO,boxh:LO,boxH:MO,boxhd:NO,boxHd:OO,boxhD:PO,boxHD:RO,boxhu:$O,boxHu:IO,boxhU:DO,boxHU:zO,boxminus:FO,boxplus:HO,boxtimes:BO,boxul:WO,boxuL:qO,boxUl:jO,boxUL:UO,boxur:VO,boxuR:GO,boxUr:KO,boxUR:XO,boxv:YO,boxV:ZO,boxvh:JO,boxvH:QO,boxVh:e2,boxVH:t2,boxvl:n2,boxvL:r2,boxVl:i2,boxVL:o2,boxvr:s2,boxvR:l2,boxVr:a2,boxVR:c2,bprime:u2,breve:f2,Breve:d2,brvbar:h2,bscr:p2,Bscr:g2,bsemi:m2,bsim:v2,bsime:y2,bsolb:b2,bsol:w2,bsolhsub:x2,bull:k2,bullet:S2,bump:_2,bumpE:T2,bumpe:C2,Bumpeq:E2,bumpeq:A2,Cacute:L2,cacute:M2,capand:N2,capbrcup:O2,capcap:P2,cap:R2,Cap:$2,capcup:I2,capdot:D2,CapitalDifferentialD:z2,caps:F2,caret:H2,caron:B2,Cayleys:W2,ccaps:q2,Ccaron:j2,ccaron:U2,Ccedil:V2,ccedil:G2,Ccirc:K2,ccirc:X2,Cconint:Y2,ccups:Z2,ccupssm:J2,Cdot:Q2,cdot:eP,cedil:tP,Cedilla:nP,cemptyv:rP,cent:iP,centerdot:oP,CenterDot:sP,cfr:lP,Cfr:aP,CHcy:cP,chcy:uP,check:fP,checkmark:dP,Chi:hP,chi:pP,circ:gP,circeq:mP,circlearrowleft:vP,circlearrowright:yP,circledast:bP,circledcirc:wP,circleddash:xP,CircleDot:kP,circledR:SP,circledS:_P,CircleMinus:TP,CirclePlus:CP,CircleTimes:EP,cir:AP,cirE:LP,cire:MP,cirfnint:NP,cirmid:OP,cirscir:PP,ClockwiseContourIntegral:RP,CloseCurlyDoubleQuote:$P,CloseCurlyQuote:IP,clubs:DP,clubsuit:zP,colon:FP,Colon:HP,Colone:BP,colone:WP,coloneq:qP,comma:jP,commat:UP,comp:VP,compfn:GP,complement:KP,complexes:XP,cong:YP,congdot:ZP,Congruent:JP,conint:QP,Conint:eR,ContourIntegral:tR,copf:nR,Copf:rR,coprod:iR,Coproduct:oR,copy:sR,COPY:lR,copysr:aR,CounterClockwiseContourIntegral:cR,crarr:uR,cross:fR,Cross:dR,Cscr:hR,cscr:pR,csub:gR,csube:mR,csup:vR,csupe:yR,ctdot:bR,cudarrl:wR,cudarrr:xR,cuepr:kR,cuesc:SR,cularr:_R,cularrp:TR,cupbrcap:CR,cupcap:ER,CupCap:AR,cup:LR,Cup:MR,cupcup:NR,cupdot:OR,cupor:PR,cups:RR,curarr:$R,curarrm:IR,curlyeqprec:DR,curlyeqsucc:zR,curlyvee:FR,curlywedge:HR,curren:BR,curvearrowleft:WR,curvearrowright:qR,cuvee:jR,cuwed:UR,cwconint:VR,cwint:GR,cylcty:KR,dagger:XR,Dagger:YR,daleth:ZR,darr:JR,Darr:QR,dArr:e$,dash:t$,Dashv:n$,dashv:r$,dbkarow:i$,dblac:o$,Dcaron:s$,dcaron:l$,Dcy:a$,dcy:c$,ddagger:u$,ddarr:f$,DD:d$,dd:h$,DDotrahd:p$,ddotseq:g$,deg:m$,Del:v$,Delta:y$,delta:b$,demptyv:w$,dfisht:x$,Dfr:k$,dfr:S$,dHar:_$,dharl:T$,dharr:C$,DiacriticalAcute:E$,DiacriticalDot:A$,DiacriticalDoubleAcute:L$,DiacriticalGrave:M$,DiacriticalTilde:N$,diam:O$,diamond:P$,Diamond:R$,diamondsuit:$$,diams:I$,die:D$,DifferentialD:z$,digamma:F$,disin:H$,div:B$,divide:W$,divideontimes:q$,divonx:j$,DJcy:U$,djcy:V$,dlcorn:G$,dlcrop:K$,dollar:X$,Dopf:Y$,dopf:Z$,Dot:J$,dot:Q$,DotDot:eI,doteq:tI,doteqdot:nI,DotEqual:rI,dotminus:iI,dotplus:oI,dotsquare:sI,doublebarwedge:lI,DoubleContourIntegral:aI,DoubleDot:cI,DoubleDownArrow:uI,DoubleLeftArrow:fI,DoubleLeftRightArrow:dI,DoubleLeftTee:hI,DoubleLongLeftArrow:pI,DoubleLongLeftRightArrow:gI,DoubleLongRightArrow:mI,DoubleRightArrow:vI,DoubleRightTee:yI,DoubleUpArrow:bI,DoubleUpDownArrow:wI,DoubleVerticalBar:xI,DownArrowBar:kI,downarrow:SI,DownArrow:_I,Downarrow:TI,DownArrowUpArrow:CI,DownBreve:EI,downdownarrows:AI,downharpoonleft:LI,downharpoonright:MI,DownLeftRightVector:NI,DownLeftTeeVector:OI,DownLeftVectorBar:PI,DownLeftVector:RI,DownRightTeeVector:$I,DownRightVectorBar:II,DownRightVector:DI,DownTeeArrow:zI,DownTee:FI,drbkarow:HI,drcorn:BI,drcrop:WI,Dscr:qI,dscr:jI,DScy:UI,dscy:VI,dsol:GI,Dstrok:KI,dstrok:XI,dtdot:YI,dtri:ZI,dtrif:JI,duarr:QI,duhar:eD,dwangle:tD,DZcy:nD,dzcy:rD,dzigrarr:iD,Eacute:oD,eacute:sD,easter:lD,Ecaron:aD,ecaron:cD,Ecirc:uD,ecirc:fD,ecir:dD,ecolon:hD,Ecy:pD,ecy:gD,eDDot:mD,Edot:vD,edot:yD,eDot:bD,ee:wD,efDot:xD,Efr:kD,efr:SD,eg:_D,Egrave:TD,egrave:CD,egs:ED,egsdot:AD,el:LD,Element:MD,elinters:ND,ell:OD,els:PD,elsdot:RD,Emacr:$D,emacr:ID,empty:DD,emptyset:zD,EmptySmallSquare:FD,emptyv:HD,EmptyVerySmallSquare:BD,emsp13:WD,emsp14:qD,emsp:jD,ENG:UD,eng:VD,ensp:GD,Eogon:KD,eogon:XD,Eopf:YD,eopf:ZD,epar:JD,eparsl:QD,eplus:ez,epsi:tz,Epsilon:nz,epsilon:rz,epsiv:iz,eqcirc:oz,eqcolon:sz,eqsim:lz,eqslantgtr:az,eqslantless:cz,Equal:uz,equals:fz,EqualTilde:dz,equest:hz,Equilibrium:pz,equiv:gz,equivDD:mz,eqvparsl:vz,erarr:yz,erDot:bz,escr:wz,Escr:xz,esdot:kz,Esim:Sz,esim:_z,Eta:Tz,eta:Cz,ETH:Ez,eth:Az,Euml:Lz,euml:Mz,euro:Nz,excl:Oz,exist:Pz,Exists:Rz,expectation:$z,exponentiale:Iz,ExponentialE:Dz,fallingdotseq:zz,Fcy:Fz,fcy:Hz,female:Bz,ffilig:Wz,fflig:qz,ffllig:jz,Ffr:Uz,ffr:Vz,filig:Gz,FilledSmallSquare:Kz,FilledVerySmallSquare:Xz,fjlig:Yz,flat:Zz,fllig:Jz,fltns:Qz,fnof:eF,Fopf:tF,fopf:nF,forall:rF,ForAll:iF,fork:oF,forkv:sF,Fouriertrf:lF,fpartint:aF,frac12:cF,frac13:uF,frac14:fF,frac15:dF,frac16:hF,frac18:pF,frac23:gF,frac25:mF,frac34:vF,frac35:yF,frac38:bF,frac45:wF,frac56:xF,frac58:kF,frac78:SF,frasl:_F,frown:TF,fscr:CF,Fscr:EF,gacute:AF,Gamma:LF,gamma:MF,Gammad:NF,gammad:OF,gap:PF,Gbreve:RF,gbreve:$F,Gcedil:IF,Gcirc:DF,gcirc:zF,Gcy:FF,gcy:HF,Gdot:BF,gdot:WF,ge:qF,gE:jF,gEl:UF,gel:VF,geq:GF,geqq:KF,geqslant:XF,gescc:YF,ges:ZF,gesdot:JF,gesdoto:QF,gesdotol:eH,gesl:tH,gesles:nH,Gfr:rH,gfr:iH,gg:oH,Gg:sH,ggg:lH,gimel:aH,GJcy:cH,gjcy:uH,gla:fH,gl:dH,glE:hH,glj:pH,gnap:gH,gnapprox:mH,gne:vH,gnE:yH,gneq:bH,gneqq:wH,gnsim:xH,Gopf:kH,gopf:SH,grave:_H,GreaterEqual:TH,GreaterEqualLess:CH,GreaterFullEqual:EH,GreaterGreater:AH,GreaterLess:LH,GreaterSlantEqual:MH,GreaterTilde:NH,Gscr:OH,gscr:PH,gsim:RH,gsime:$H,gsiml:IH,gtcc:DH,gtcir:zH,gt:FH,GT:HH,Gt:BH,gtdot:WH,gtlPar:qH,gtquest:jH,gtrapprox:UH,gtrarr:VH,gtrdot:GH,gtreqless:KH,gtreqqless:XH,gtrless:YH,gtrsim:ZH,gvertneqq:JH,gvnE:QH,Hacek:e3,hairsp:t3,half:n3,hamilt:r3,HARDcy:i3,hardcy:o3,harrcir:s3,harr:l3,hArr:a3,harrw:c3,Hat:u3,hbar:f3,Hcirc:d3,hcirc:h3,hearts:p3,heartsuit:g3,hellip:m3,hercon:v3,hfr:y3,Hfr:b3,HilbertSpace:w3,hksearow:x3,hkswarow:k3,hoarr:S3,homtht:_3,hookleftarrow:T3,hookrightarrow:C3,hopf:E3,Hopf:A3,horbar:L3,HorizontalLine:M3,hscr:N3,Hscr:O3,hslash:P3,Hstrok:R3,hstrok:$3,HumpDownHump:I3,HumpEqual:D3,hybull:z3,hyphen:F3,Iacute:H3,iacute:B3,ic:W3,Icirc:q3,icirc:j3,Icy:U3,icy:V3,Idot:G3,IEcy:K3,iecy:X3,iexcl:Y3,iff:Z3,ifr:J3,Ifr:Q3,Igrave:eB,igrave:tB,ii:nB,iiiint:rB,iiint:iB,iinfin:oB,iiota:sB,IJlig:lB,ijlig:aB,Imacr:cB,imacr:uB,image:fB,ImaginaryI:dB,imagline:hB,imagpart:pB,imath:gB,Im:mB,imof:vB,imped:yB,Implies:bB,incare:wB,in:"∈",infin:xB,infintie:kB,inodot:SB,intcal:_B,int:TB,Int:CB,integers:EB,Integral:AB,intercal:LB,Intersection:MB,intlarhk:NB,intprod:OB,InvisibleComma:PB,InvisibleTimes:RB,IOcy:$B,iocy:IB,Iogon:DB,iogon:zB,Iopf:FB,iopf:HB,Iota:BB,iota:WB,iprod:qB,iquest:jB,iscr:UB,Iscr:VB,isin:GB,isindot:KB,isinE:XB,isins:YB,isinsv:ZB,isinv:JB,it:QB,Itilde:e5,itilde:t5,Iukcy:n5,iukcy:r5,Iuml:i5,iuml:o5,Jcirc:s5,jcirc:l5,Jcy:a5,jcy:c5,Jfr:u5,jfr:f5,jmath:d5,Jopf:h5,jopf:p5,Jscr:g5,jscr:m5,Jsercy:v5,jsercy:y5,Jukcy:b5,jukcy:w5,Kappa:x5,kappa:k5,kappav:S5,Kcedil:_5,kcedil:T5,Kcy:C5,kcy:E5,Kfr:A5,kfr:L5,kgreen:M5,KHcy:N5,khcy:O5,KJcy:P5,kjcy:R5,Kopf:$5,kopf:I5,Kscr:D5,kscr:z5,lAarr:F5,Lacute:H5,lacute:B5,laemptyv:W5,lagran:q5,Lambda:j5,lambda:U5,lang:V5,Lang:G5,langd:K5,langle:X5,lap:Y5,Laplacetrf:Z5,laquo:J5,larrb:Q5,larrbfs:e8,larr:t8,Larr:n8,lArr:r8,larrfs:i8,larrhk:o8,larrlp:s8,larrpl:l8,larrsim:a8,larrtl:c8,latail:u8,lAtail:f8,lat:d8,late:h8,lates:p8,lbarr:g8,lBarr:m8,lbbrk:v8,lbrace:y8,lbrack:b8,lbrke:w8,lbrksld:x8,lbrkslu:k8,Lcaron:S8,lcaron:_8,Lcedil:T8,lcedil:C8,lceil:E8,lcub:A8,Lcy:L8,lcy:M8,ldca:N8,ldquo:O8,ldquor:P8,ldrdhar:R8,ldrushar:$8,ldsh:I8,le:D8,lE:z8,LeftAngleBracket:F8,LeftArrowBar:H8,leftarrow:B8,LeftArrow:W8,Leftarrow:q8,LeftArrowRightArrow:j8,leftarrowtail:U8,LeftCeiling:V8,LeftDoubleBracket:G8,LeftDownTeeVector:K8,LeftDownVectorBar:X8,LeftDownVector:Y8,LeftFloor:Z8,leftharpoondown:J8,leftharpoonup:Q8,leftleftarrows:eW,leftrightarrow:tW,LeftRightArrow:nW,Leftrightarrow:rW,leftrightarrows:iW,leftrightharpoons:oW,leftrightsquigarrow:sW,LeftRightVector:lW,LeftTeeArrow:aW,LeftTee:cW,LeftTeeVector:uW,leftthreetimes:fW,LeftTriangleBar:dW,LeftTriangle:hW,LeftTriangleEqual:pW,LeftUpDownVector:gW,LeftUpTeeVector:mW,LeftUpVectorBar:vW,LeftUpVector:yW,LeftVectorBar:bW,LeftVector:wW,lEg:xW,leg:kW,leq:SW,leqq:_W,leqslant:TW,lescc:CW,les:EW,lesdot:AW,lesdoto:LW,lesdotor:MW,lesg:NW,lesges:OW,lessapprox:PW,lessdot:RW,lesseqgtr:$W,lesseqqgtr:IW,LessEqualGreater:DW,LessFullEqual:zW,LessGreater:FW,lessgtr:HW,LessLess:BW,lesssim:WW,LessSlantEqual:qW,LessTilde:jW,lfisht:UW,lfloor:VW,Lfr:GW,lfr:KW,lg:XW,lgE:YW,lHar:ZW,lhard:JW,lharu:QW,lharul:e4,lhblk:t4,LJcy:n4,ljcy:r4,llarr:i4,ll:o4,Ll:s4,llcorner:l4,Lleftarrow:a4,llhard:c4,lltri:u4,Lmidot:f4,lmidot:d4,lmoustache:h4,lmoust:p4,lnap:g4,lnapprox:m4,lne:v4,lnE:y4,lneq:b4,lneqq:w4,lnsim:x4,loang:k4,loarr:S4,lobrk:_4,longleftarrow:T4,LongLeftArrow:C4,Longleftarrow:E4,longleftrightarrow:A4,LongLeftRightArrow:L4,Longleftrightarrow:M4,longmapsto:N4,longrightarrow:O4,LongRightArrow:P4,Longrightarrow:R4,looparrowleft:$4,looparrowright:I4,lopar:D4,Lopf:z4,lopf:F4,loplus:H4,lotimes:B4,lowast:W4,lowbar:q4,LowerLeftArrow:j4,LowerRightArrow:U4,loz:V4,lozenge:G4,lozf:K4,lpar:X4,lparlt:Y4,lrarr:Z4,lrcorner:J4,lrhar:Q4,lrhard:eq,lrm:tq,lrtri:nq,lsaquo:rq,lscr:iq,Lscr:oq,lsh:sq,Lsh:lq,lsim:aq,lsime:cq,lsimg:uq,lsqb:fq,lsquo:dq,lsquor:hq,Lstrok:pq,lstrok:gq,ltcc:mq,ltcir:vq,lt:yq,LT:bq,Lt:wq,ltdot:xq,lthree:kq,ltimes:Sq,ltlarr:_q,ltquest:Tq,ltri:Cq,ltrie:Eq,ltrif:Aq,ltrPar:Lq,lurdshar:Mq,luruhar:Nq,lvertneqq:Oq,lvnE:Pq,macr:Rq,male:$q,malt:Iq,maltese:Dq,Map:"⤅",map:zq,mapsto:Fq,mapstodown:Hq,mapstoleft:Bq,mapstoup:Wq,marker:qq,mcomma:jq,Mcy:Uq,mcy:Vq,mdash:Gq,mDDot:Kq,measuredangle:Xq,MediumSpace:Yq,Mellintrf:Zq,Mfr:Jq,mfr:Qq,mho:ej,micro:tj,midast:nj,midcir:rj,mid:ij,middot:oj,minusb:sj,minus:lj,minusd:aj,minusdu:cj,MinusPlus:uj,mlcp:fj,mldr:dj,mnplus:hj,models:pj,Mopf:gj,mopf:mj,mp:vj,mscr:yj,Mscr:bj,mstpos:wj,Mu:xj,mu:kj,multimap:Sj,mumap:_j,nabla:Tj,Nacute:Cj,nacute:Ej,nang:Aj,nap:Lj,napE:Mj,napid:Nj,napos:Oj,napprox:Pj,natural:Rj,naturals:$j,natur:Ij,nbsp:Dj,nbump:zj,nbumpe:Fj,ncap:Hj,Ncaron:Bj,ncaron:Wj,Ncedil:qj,ncedil:jj,ncong:Uj,ncongdot:Vj,ncup:Gj,Ncy:Kj,ncy:Xj,ndash:Yj,nearhk:Zj,nearr:Jj,neArr:Qj,nearrow:e6,ne:t6,nedot:n6,NegativeMediumSpace:r6,NegativeThickSpace:i6,NegativeThinSpace:o6,NegativeVeryThinSpace:s6,nequiv:l6,nesear:a6,nesim:c6,NestedGreaterGreater:u6,NestedLessLess:f6,NewLine:d6,nexist:h6,nexists:p6,Nfr:g6,nfr:m6,ngE:v6,nge:y6,ngeq:b6,ngeqq:w6,ngeqslant:x6,nges:k6,nGg:S6,ngsim:_6,nGt:T6,ngt:C6,ngtr:E6,nGtv:A6,nharr:L6,nhArr:M6,nhpar:N6,ni:O6,nis:P6,nisd:R6,niv:$6,NJcy:I6,njcy:D6,nlarr:z6,nlArr:F6,nldr:H6,nlE:B6,nle:W6,nleftarrow:q6,nLeftarrow:j6,nleftrightarrow:U6,nLeftrightarrow:V6,nleq:G6,nleqq:K6,nleqslant:X6,nles:Y6,nless:Z6,nLl:J6,nlsim:Q6,nLt:eU,nlt:tU,nltri:nU,nltrie:rU,nLtv:iU,nmid:oU,NoBreak:sU,NonBreakingSpace:lU,nopf:aU,Nopf:cU,Not:uU,not:fU,NotCongruent:dU,NotCupCap:hU,NotDoubleVerticalBar:pU,NotElement:gU,NotEqual:mU,NotEqualTilde:vU,NotExists:yU,NotGreater:bU,NotGreaterEqual:wU,NotGreaterFullEqual:xU,NotGreaterGreater:kU,NotGreaterLess:SU,NotGreaterSlantEqual:_U,NotGreaterTilde:TU,NotHumpDownHump:CU,NotHumpEqual:EU,notin:AU,notindot:LU,notinE:MU,notinva:NU,notinvb:OU,notinvc:PU,NotLeftTriangleBar:RU,NotLeftTriangle:$U,NotLeftTriangleEqual:IU,NotLess:DU,NotLessEqual:zU,NotLessGreater:FU,NotLessLess:HU,NotLessSlantEqual:BU,NotLessTilde:WU,NotNestedGreaterGreater:qU,NotNestedLessLess:jU,notni:UU,notniva:VU,notnivb:GU,notnivc:KU,NotPrecedes:XU,NotPrecedesEqual:YU,NotPrecedesSlantEqual:ZU,NotReverseElement:JU,NotRightTriangleBar:QU,NotRightTriangle:eV,NotRightTriangleEqual:tV,NotSquareSubset:nV,NotSquareSubsetEqual:rV,NotSquareSuperset:iV,NotSquareSupersetEqual:oV,NotSubset:sV,NotSubsetEqual:lV,NotSucceeds:aV,NotSucceedsEqual:cV,NotSucceedsSlantEqual:uV,NotSucceedsTilde:fV,NotSuperset:dV,NotSupersetEqual:hV,NotTilde:pV,NotTildeEqual:gV,NotTildeFullEqual:mV,NotTildeTilde:vV,NotVerticalBar:yV,nparallel:bV,npar:wV,nparsl:xV,npart:kV,npolint:SV,npr:_V,nprcue:TV,nprec:CV,npreceq:EV,npre:AV,nrarrc:LV,nrarr:MV,nrArr:NV,nrarrw:OV,nrightarrow:PV,nRightarrow:RV,nrtri:$V,nrtrie:IV,nsc:DV,nsccue:zV,nsce:FV,Nscr:HV,nscr:BV,nshortmid:WV,nshortparallel:qV,nsim:jV,nsime:UV,nsimeq:VV,nsmid:GV,nspar:KV,nsqsube:XV,nsqsupe:YV,nsub:ZV,nsubE:JV,nsube:QV,nsubset:eG,nsubseteq:tG,nsubseteqq:nG,nsucc:rG,nsucceq:iG,nsup:oG,nsupE:sG,nsupe:lG,nsupset:aG,nsupseteq:cG,nsupseteqq:uG,ntgl:fG,Ntilde:dG,ntilde:hG,ntlg:pG,ntriangleleft:gG,ntrianglelefteq:mG,ntriangleright:vG,ntrianglerighteq:yG,Nu:bG,nu:wG,num:xG,numero:kG,numsp:SG,nvap:_G,nvdash:TG,nvDash:CG,nVdash:EG,nVDash:AG,nvge:LG,nvgt:MG,nvHarr:NG,nvinfin:OG,nvlArr:PG,nvle:RG,nvlt:$G,nvltrie:IG,nvrArr:DG,nvrtrie:zG,nvsim:FG,nwarhk:HG,nwarr:BG,nwArr:WG,nwarrow:qG,nwnear:jG,Oacute:UG,oacute:VG,oast:GG,Ocirc:KG,ocirc:XG,ocir:YG,Ocy:ZG,ocy:JG,odash:QG,Odblac:e9,odblac:t9,odiv:n9,odot:r9,odsold:i9,OElig:o9,oelig:s9,ofcir:l9,Ofr:a9,ofr:c9,ogon:u9,Ograve:f9,ograve:d9,ogt:h9,ohbar:p9,ohm:g9,oint:m9,olarr:v9,olcir:y9,olcross:b9,oline:w9,olt:x9,Omacr:k9,omacr:S9,Omega:_9,omega:T9,Omicron:C9,omicron:E9,omid:A9,ominus:L9,Oopf:M9,oopf:N9,opar:O9,OpenCurlyDoubleQuote:P9,OpenCurlyQuote:R9,operp:$9,oplus:I9,orarr:D9,Or:z9,or:F9,ord:H9,order:B9,orderof:W9,ordf:q9,ordm:j9,origof:U9,oror:V9,orslope:G9,orv:K9,oS:X9,Oscr:Y9,oscr:Z9,Oslash:J9,oslash:Q9,osol:eK,Otilde:tK,otilde:nK,otimesas:rK,Otimes:iK,otimes:oK,Ouml:sK,ouml:lK,ovbar:aK,OverBar:cK,OverBrace:uK,OverBracket:fK,OverParenthesis:dK,para:hK,parallel:pK,par:gK,parsim:mK,parsl:vK,part:yK,PartialD:bK,Pcy:wK,pcy:xK,percnt:kK,period:SK,permil:_K,perp:TK,pertenk:CK,Pfr:EK,pfr:AK,Phi:LK,phi:MK,phiv:NK,phmmat:OK,phone:PK,Pi:RK,pi:$K,pitchfork:IK,piv:DK,planck:zK,planckh:FK,plankv:HK,plusacir:BK,plusb:WK,pluscir:qK,plus:jK,plusdo:UK,plusdu:VK,pluse:GK,PlusMinus:KK,plusmn:XK,plussim:YK,plustwo:ZK,pm:JK,Poincareplane:QK,pointint:e7,popf:t7,Popf:n7,pound:r7,prap:i7,Pr:o7,pr:s7,prcue:l7,precapprox:a7,prec:c7,preccurlyeq:u7,Precedes:f7,PrecedesEqual:d7,PrecedesSlantEqual:h7,PrecedesTilde:p7,preceq:g7,precnapprox:m7,precneqq:v7,precnsim:y7,pre:b7,prE:w7,precsim:x7,prime:k7,Prime:S7,primes:_7,prnap:T7,prnE:C7,prnsim:E7,prod:A7,Product:L7,profalar:M7,profline:N7,profsurf:O7,prop:P7,Proportional:R7,Proportion:$7,propto:I7,prsim:D7,prurel:z7,Pscr:F7,pscr:H7,Psi:B7,psi:W7,puncsp:q7,Qfr:j7,qfr:U7,qint:V7,qopf:G7,Qopf:K7,qprime:X7,Qscr:Y7,qscr:Z7,quaternions:J7,quatint:Q7,quest:eX,questeq:tX,quot:nX,QUOT:rX,rAarr:iX,race:oX,Racute:sX,racute:lX,radic:aX,raemptyv:cX,rang:uX,Rang:fX,rangd:dX,range:hX,rangle:pX,raquo:gX,rarrap:mX,rarrb:vX,rarrbfs:yX,rarrc:bX,rarr:wX,Rarr:xX,rArr:kX,rarrfs:SX,rarrhk:_X,rarrlp:TX,rarrpl:CX,rarrsim:EX,Rarrtl:AX,rarrtl:LX,rarrw:MX,ratail:NX,rAtail:OX,ratio:PX,rationals:RX,rbarr:$X,rBarr:IX,RBarr:DX,rbbrk:zX,rbrace:FX,rbrack:HX,rbrke:BX,rbrksld:WX,rbrkslu:qX,Rcaron:jX,rcaron:UX,Rcedil:VX,rcedil:GX,rceil:KX,rcub:XX,Rcy:YX,rcy:ZX,rdca:JX,rdldhar:QX,rdquo:eY,rdquor:tY,rdsh:nY,real:rY,realine:iY,realpart:oY,reals:sY,Re:lY,rect:aY,reg:cY,REG:uY,ReverseElement:fY,ReverseEquilibrium:dY,ReverseUpEquilibrium:hY,rfisht:pY,rfloor:gY,rfr:mY,Rfr:vY,rHar:yY,rhard:bY,rharu:wY,rharul:xY,Rho:kY,rho:SY,rhov:_Y,RightAngleBracket:TY,RightArrowBar:CY,rightarrow:EY,RightArrow:AY,Rightarrow:LY,RightArrowLeftArrow:MY,rightarrowtail:NY,RightCeiling:OY,RightDoubleBracket:PY,RightDownTeeVector:RY,RightDownVectorBar:$Y,RightDownVector:IY,RightFloor:DY,rightharpoondown:zY,rightharpoonup:FY,rightleftarrows:HY,rightleftharpoons:BY,rightrightarrows:WY,rightsquigarrow:qY,RightTeeArrow:jY,RightTee:UY,RightTeeVector:VY,rightthreetimes:GY,RightTriangleBar:KY,RightTriangle:XY,RightTriangleEqual:YY,RightUpDownVector:ZY,RightUpTeeVector:JY,RightUpVectorBar:QY,RightUpVector:eZ,RightVectorBar:tZ,RightVector:nZ,ring:rZ,risingdotseq:iZ,rlarr:oZ,rlhar:sZ,rlm:lZ,rmoustache:aZ,rmoust:cZ,rnmid:uZ,roang:fZ,roarr:dZ,robrk:hZ,ropar:pZ,ropf:gZ,Ropf:mZ,roplus:vZ,rotimes:yZ,RoundImplies:bZ,rpar:wZ,rpargt:xZ,rppolint:kZ,rrarr:SZ,Rrightarrow:_Z,rsaquo:TZ,rscr:CZ,Rscr:EZ,rsh:AZ,Rsh:LZ,rsqb:MZ,rsquo:NZ,rsquor:OZ,rthree:PZ,rtimes:RZ,rtri:$Z,rtrie:IZ,rtrif:DZ,rtriltri:zZ,RuleDelayed:FZ,ruluhar:HZ,rx:BZ,Sacute:WZ,sacute:qZ,sbquo:jZ,scap:UZ,Scaron:VZ,scaron:GZ,Sc:KZ,sc:XZ,sccue:YZ,sce:ZZ,scE:JZ,Scedil:QZ,scedil:eJ,Scirc:tJ,scirc:nJ,scnap:rJ,scnE:iJ,scnsim:oJ,scpolint:sJ,scsim:lJ,Scy:aJ,scy:cJ,sdotb:uJ,sdot:fJ,sdote:dJ,searhk:hJ,searr:pJ,seArr:gJ,searrow:mJ,sect:vJ,semi:yJ,seswar:bJ,setminus:wJ,setmn:xJ,sext:kJ,Sfr:SJ,sfr:_J,sfrown:TJ,sharp:CJ,SHCHcy:EJ,shchcy:AJ,SHcy:LJ,shcy:MJ,ShortDownArrow:NJ,ShortLeftArrow:OJ,shortmid:PJ,shortparallel:RJ,ShortRightArrow:$J,ShortUpArrow:IJ,shy:DJ,Sigma:zJ,sigma:FJ,sigmaf:HJ,sigmav:BJ,sim:WJ,simdot:qJ,sime:jJ,simeq:UJ,simg:VJ,simgE:GJ,siml:KJ,simlE:XJ,simne:YJ,simplus:ZJ,simrarr:JJ,slarr:QJ,SmallCircle:eQ,smallsetminus:tQ,smashp:nQ,smeparsl:rQ,smid:iQ,smile:oQ,smt:sQ,smte:lQ,smtes:aQ,SOFTcy:cQ,softcy:uQ,solbar:fQ,solb:dQ,sol:hQ,Sopf:pQ,sopf:gQ,spades:mQ,spadesuit:vQ,spar:yQ,sqcap:bQ,sqcaps:wQ,sqcup:xQ,sqcups:kQ,Sqrt:SQ,sqsub:_Q,sqsube:TQ,sqsubset:CQ,sqsubseteq:EQ,sqsup:AQ,sqsupe:LQ,sqsupset:MQ,sqsupseteq:NQ,square:OQ,Square:PQ,SquareIntersection:RQ,SquareSubset:$Q,SquareSubsetEqual:IQ,SquareSuperset:DQ,SquareSupersetEqual:zQ,SquareUnion:FQ,squarf:HQ,squ:BQ,squf:WQ,srarr:qQ,Sscr:jQ,sscr:UQ,ssetmn:VQ,ssmile:GQ,sstarf:KQ,Star:XQ,star:YQ,starf:ZQ,straightepsilon:JQ,straightphi:QQ,strns:eee,sub:tee,Sub:nee,subdot:ree,subE:iee,sube:oee,subedot:see,submult:lee,subnE:aee,subne:cee,subplus:uee,subrarr:fee,subset:dee,Subset:hee,subseteq:pee,subseteqq:gee,SubsetEqual:mee,subsetneq:vee,subsetneqq:yee,subsim:bee,subsub:wee,subsup:xee,succapprox:kee,succ:See,succcurlyeq:_ee,Succeeds:Tee,SucceedsEqual:Cee,SucceedsSlantEqual:Eee,SucceedsTilde:Aee,succeq:Lee,succnapprox:Mee,succneqq:Nee,succnsim:Oee,succsim:Pee,SuchThat:Ree,sum:$ee,Sum:Iee,sung:Dee,sup1:zee,sup2:Fee,sup3:Hee,sup:Bee,Sup:Wee,supdot:qee,supdsub:jee,supE:Uee,supe:Vee,supedot:Gee,Superset:Kee,SupersetEqual:Xee,suphsol:Yee,suphsub:Zee,suplarr:Jee,supmult:Qee,supnE:ete,supne:tte,supplus:nte,supset:rte,Supset:ite,supseteq:ote,supseteqq:ste,supsetneq:lte,supsetneqq:ate,supsim:cte,supsub:ute,supsup:fte,swarhk:dte,swarr:hte,swArr:pte,swarrow:gte,swnwar:mte,szlig:vte,Tab:yte,target:bte,Tau:wte,tau:xte,tbrk:kte,Tcaron:Ste,tcaron:_te,Tcedil:Tte,tcedil:Cte,Tcy:Ete,tcy:Ate,tdot:Lte,telrec:Mte,Tfr:Nte,tfr:Ote,there4:Pte,therefore:Rte,Therefore:$te,Theta:Ite,theta:Dte,thetasym:zte,thetav:Fte,thickapprox:Hte,thicksim:Bte,ThickSpace:Wte,ThinSpace:qte,thinsp:jte,thkap:Ute,thksim:Vte,THORN:Gte,thorn:Kte,tilde:Xte,Tilde:Yte,TildeEqual:Zte,TildeFullEqual:Jte,TildeTilde:Qte,timesbar:ene,timesb:tne,times:nne,timesd:rne,tint:ine,toea:one,topbot:sne,topcir:lne,top:ane,Topf:cne,topf:une,topfork:fne,tosa:dne,tprime:hne,trade:pne,TRADE:gne,triangle:mne,triangledown:vne,triangleleft:yne,trianglelefteq:bne,triangleq:wne,triangleright:xne,trianglerighteq:kne,tridot:Sne,trie:_ne,triminus:Tne,TripleDot:Cne,triplus:Ene,trisb:Ane,tritime:Lne,trpezium:Mne,Tscr:Nne,tscr:One,TScy:Pne,tscy:Rne,TSHcy:$ne,tshcy:Ine,Tstrok:Dne,tstrok:zne,twixt:Fne,twoheadleftarrow:Hne,twoheadrightarrow:Bne,Uacute:Wne,uacute:qne,uarr:jne,Uarr:Une,uArr:Vne,Uarrocir:Gne,Ubrcy:Kne,ubrcy:Xne,Ubreve:Yne,ubreve:Zne,Ucirc:Jne,ucirc:Qne,Ucy:ere,ucy:tre,udarr:nre,Udblac:rre,udblac:ire,udhar:ore,ufisht:sre,Ufr:lre,ufr:are,Ugrave:cre,ugrave:ure,uHar:fre,uharl:dre,uharr:hre,uhblk:pre,ulcorn:gre,ulcorner:mre,ulcrop:vre,ultri:yre,Umacr:bre,umacr:wre,uml:xre,UnderBar:kre,UnderBrace:Sre,UnderBracket:_re,UnderParenthesis:Tre,Union:Cre,UnionPlus:Ere,Uogon:Are,uogon:Lre,Uopf:Mre,uopf:Nre,UpArrowBar:Ore,uparrow:Pre,UpArrow:Rre,Uparrow:$re,UpArrowDownArrow:Ire,updownarrow:Dre,UpDownArrow:zre,Updownarrow:Fre,UpEquilibrium:Hre,upharpoonleft:Bre,upharpoonright:Wre,uplus:qre,UpperLeftArrow:jre,UpperRightArrow:Ure,upsi:Vre,Upsi:Gre,upsih:Kre,Upsilon:Xre,upsilon:Yre,UpTeeArrow:Zre,UpTee:Jre,upuparrows:Qre,urcorn:eie,urcorner:tie,urcrop:nie,Uring:rie,uring:iie,urtri:oie,Uscr:sie,uscr:lie,utdot:aie,Utilde:cie,utilde:uie,utri:fie,utrif:die,uuarr:hie,Uuml:pie,uuml:gie,uwangle:mie,vangrt:vie,varepsilon:yie,varkappa:bie,varnothing:wie,varphi:xie,varpi:kie,varpropto:Sie,varr:_ie,vArr:Tie,varrho:Cie,varsigma:Eie,varsubsetneq:Aie,varsubsetneqq:Lie,varsupsetneq:Mie,varsupsetneqq:Nie,vartheta:Oie,vartriangleleft:Pie,vartriangleright:Rie,vBar:$ie,Vbar:Iie,vBarv:Die,Vcy:zie,vcy:Fie,vdash:Hie,vDash:Bie,Vdash:Wie,VDash:qie,Vdashl:jie,veebar:Uie,vee:Vie,Vee:Gie,veeeq:Kie,vellip:Xie,verbar:Yie,Verbar:Zie,vert:Jie,Vert:Qie,VerticalBar:eoe,VerticalLine:toe,VerticalSeparator:noe,VerticalTilde:roe,VeryThinSpace:ioe,Vfr:ooe,vfr:soe,vltri:loe,vnsub:aoe,vnsup:coe,Vopf:uoe,vopf:foe,vprop:doe,vrtri:hoe,Vscr:poe,vscr:goe,vsubnE:moe,vsubne:voe,vsupnE:yoe,vsupne:boe,Vvdash:woe,vzigzag:xoe,Wcirc:koe,wcirc:Soe,wedbar:_oe,wedge:Toe,Wedge:Coe,wedgeq:Eoe,weierp:Aoe,Wfr:Loe,wfr:Moe,Wopf:Noe,wopf:Ooe,wp:Poe,wr:Roe,wreath:$oe,Wscr:Ioe,wscr:Doe,xcap:zoe,xcirc:Foe,xcup:Hoe,xdtri:Boe,Xfr:Woe,xfr:qoe,xharr:joe,xhArr:Uoe,Xi:Voe,xi:Goe,xlarr:Koe,xlArr:Xoe,xmap:Yoe,xnis:Zoe,xodot:Joe,Xopf:Qoe,xopf:ese,xoplus:tse,xotime:nse,xrarr:rse,xrArr:ise,Xscr:ose,xscr:sse,xsqcup:lse,xuplus:ase,xutri:cse,xvee:use,xwedge:fse,Yacute:dse,yacute:hse,YAcy:pse,yacy:gse,Ycirc:mse,ycirc:vse,Ycy:yse,ycy:bse,yen:wse,Yfr:xse,yfr:kse,YIcy:Sse,yicy:_se,Yopf:Tse,yopf:Cse,Yscr:Ese,yscr:Ase,YUcy:Lse,yucy:Mse,yuml:Nse,Yuml:Ose,Zacute:Pse,zacute:Rse,Zcaron:$se,zcaron:Ise,Zcy:Dse,zcy:zse,Zdot:Fse,zdot:Hse,zeetrf:Bse,ZeroWidthSpace:Wse,Zeta:qse,zeta:jse,zfr:Use,Zfr:Vse,ZHcy:Gse,zhcy:Kse,zigrarr:Xse,zopf:Yse,Zopf:Zse,Zscr:Jse,zscr:Qse,zwj:ele,zwnj:tle},nle="Á",rle="á",ile="Â",ole="â",sle="´",lle="Æ",ale="æ",cle="À",ule="à",fle="&",dle="&",hle="Å",ple="å",gle="Ã",mle="ã",vle="Ä",yle="ä",ble="¦",wle="Ç",xle="ç",kle="¸",Sle="¢",_le="©",Tle="©",Cle="¤",Ele="°",Ale="÷",Lle="É",Mle="é",Nle="Ê",Ole="ê",Ple="È",Rle="è",$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="ò",mae="ª",vae="º",yae="Ø",bae="ø",wae="Õ",xae="õ",kae="Ö",Sae="ö",_ae="¶",Tae="±",Cae="£",Eae='"',Aae='"',Lae="»",Mae="®",Nae="®",Oae="§",Pae="",Rae="¹",$ae="²",Iae="³",Dae="ß",zae="Þ",Fae="þ",Hae="×",Bae="Ú",Wae="ú",qae="Û",jae="û",Uae="Ù",Vae="ù",Gae="¨",Kae="Ü",Xae="ü",Yae="Ý",Zae="ý",Jae="¥",Qae="ÿ",ece={Aacute:nle,aacute:rle,Acirc:ile,acirc:ole,acute:sle,AElig:lle,aelig:ale,Agrave:cle,agrave:ule,amp:fle,AMP:dle,Aring:hle,aring:ple,Atilde:gle,atilde:mle,Auml:vle,auml:yle,brvbar:ble,Ccedil:wle,ccedil:xle,cedil:kle,cent:Sle,copy:_le,COPY:Tle,curren:Cle,deg:Ele,divide:Ale,Eacute:Lle,eacute:Mle,Ecirc:Nle,ecirc:Ole,Egrave:Ple,egrave:Rle,ETH:$le,eth:Ile,Euml:Dle,euml:zle,frac12:Fle,frac14:Hle,frac34:Ble,gt:Wle,GT:qle,Iacute:jle,iacute:Ule,Icirc:Vle,icirc:Gle,iexcl:Kle,Igrave:Xle,igrave:Yle,iquest:Zle,Iuml:Jle,iuml:Qle,laquo:eae,lt:tae,LT:nae,macr:rae,micro:iae,middot:oae,nbsp:sae,not:lae,Ntilde:aae,ntilde:cae,Oacute:uae,oacute:fae,Ocirc:dae,ocirc:hae,Ograve:pae,ograve:gae,ordf:mae,ordm:vae,Oslash:yae,oslash:bae,Otilde:wae,otilde:xae,Ouml:kae,ouml:Sae,para:_ae,plusmn:Tae,pound:Cae,quot:Eae,QUOT:Aae,raquo:Lae,reg:Mae,REG:Nae,sect:Oae,shy:Pae,sup1:Rae,sup2:$ae,sup3:Iae,szlig:Dae,THORN:zae,thorn:Fae,times:Hae,Uacute:Bae,uacute:Wae,Ucirc:qae,ucirc:jae,Ugrave:Uae,ugrave:Vae,uml:Gae,Uuml:Kae,uuml:Xae,Yacute:Yae,yacute:Zae,yen:Jae,yuml:Qae},tce="&",nce="'",rce=">",ice="<",oce='"',hx={amp:tce,apos:nce,gt:rce,lt:ice,quot:oce};var Cs={};const sce={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 hy;function lce(){if(hy)return Cs;hy=1;var e=Cs&&Cs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Cs,"__esModule",{value:!0});var t=e(sce),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 Cs.default=o,Cs}var py;function gy(){if(py)return Er;py=1;var e=Er&&Er.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Er,"__esModule",{value:!0}),Er.decodeHTML=Er.decodeHTMLStrict=Er.decodeXML=void 0;var t=e(dx),r=e(ece),o=e(hx),s=e(lce()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Er.decodeXML=f(o.default),Er.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p<g?1:-1};Er.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),g=Object.keys(t.default).sort(d),v=0,b=0;v<g.length;v++)p[b]===g[v]?(g[v]+=";?",b++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=h(t.default);function L(P){return P.substr(-1)!==";"&&(P+=";"),E(P)}return function(P){return String(P).replace(w,L)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var b=v.charAt(2);return b==="X"||b==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Er}var Ln={},my;function vy(){if(my)return Ln;my=1;var e=Ln&&Ln.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(hx),r=d(t.default),o=h(r);Ln.encodeXML=P(r);var s=e(dx),c=d(s.default),f=h(c);Ln.encodeHTML=b(c,f),Ln.encodeNonAsciiHTML=P(c);function d(M){return Object.keys(M).sort().reduce(function(R,I){return R[M[I]]="&"+I+";",R},{})}function h(M){for(var R=[],I=[],_=0,$=Object.keys(M);_<$.length;_++){var j=$[_];j.length===1?R.push("\\"+j):I.push(j)}R.sort();for(var re=0;re<R.length-1;re++){for(var ee=re;ee<R.length-1&&R[ee].charCodeAt(1)+1===R[ee+1].charCodeAt(1);)ee+=1;var Z=1+ee-re;Z<3||R.splice(re,Z,R[re]+"-"+R[ee])}return I.unshift("["+R.join("")+"]"),new RegExp(I.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function v(M){return"&#x"+(M.length>1?g(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,R){return function(I){return I.replace(R,function(_){return M[_]}).replace(p,v)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(M){return M.replace(w,v)}Ln.escape=E;function L(M){return M.replace(o,v)}Ln.escapeUTF8=L;function P(M){return function(R){return R.replace(w,function(I){return M[I]||v(I)})}}return Ln}var yy;function ace(){return yy||(yy=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=gy(),r=vy();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=vy();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=gy();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}})})(Ad)),Ad}var Ld,by;function cce(){if(by)return Ld;by=1;function e(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function t(O,N){for(var C=0;C<N.length;C++){var k=N[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function r(O,N,C){return N&&t(O.prototype,N),O}function o(O,N){var C=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!C){if(Array.isArray(O)||(C=s(O))||N){C&&(O=C);var k=0,z=function(){};return{s:z,n:function(){return k>=O.length?{done:!0}:{done:!1,value:O[k++]}},e:function(Be){throw Be},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 B=!0,ae=!1,me;return{s:function(){C=C.call(O)},n:function(){var Be=C.next();return B=Be.done,Be},e:function(Be){ae=!0,me=Be},f:function(){try{!B&&C.return!=null&&C.return()}finally{if(ae)throw me}}}}function s(O,N){if(O){if(typeof O=="string")return c(O,N);var C=Object.prototype.toString.call(O).slice(8,-1);if(C==="Object"&&O.constructor&&(C=O.constructor.name),C==="Map"||C==="Set")return Array.from(O);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(O,N)}}function c(O,N){(N==null||N>O.length)&&(N=O.length);for(var C=0,k=new Array(N);C<N;C++)k[C]=O[C];return k}var f=ace(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var O={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 P(0,5).forEach(function(N){P(0,5).forEach(function(C){P(0,5).forEach(function(k){return p(N,C,k,O)})})}),P(0,23).forEach(function(N){var C=N+232,k=g(N*10+8);O[C]="#"+k+k+k}),O}function p(O,N,C,k){var z=16+O*36+N*6+C,B=O>0?O*40+55:0,ae=N>0?N*40+55:0,me=C>0?C*40+55:0;k[z]=v([B,ae,me])}function g(O){for(var N=O.toString(16);N.length<2;)N="0"+N;return N}function v(O){var N=[],C=o(O),k;try{for(C.s();!(k=C.n()).done;){var z=k.value;N.push(g(z))}}catch(B){C.e(B)}finally{C.f()}return"#"+N.join("")}function b(O,N,C,k){var z;return N==="text"?z=I(C,k):N==="display"?z=E(O,C,k):N==="xterm256Foreground"?z=j(O,k.colors[C]):N==="xterm256Background"?z=re(O,k.colors[C]):N==="rgb"&&(z=w(O,C)),z}function w(O,N){N=N.substring(2).slice(0,-1);var C=+N.substr(0,2),k=N.substring(5).split(";"),z=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return $(O,(C===38?"color:#":"background-color:#")+z)}function E(O,N,C){N=parseInt(N,10);var k={"-1":function(){return"<br/>"},0:function(){return O.length&&L(O)},1:function(){return _(O,"b")},3:function(){return _(O,"i")},4:function(){return _(O,"u")},8:function(){return $(O,"display:none")},9:function(){return _(O,"strike")},22:function(){return $(O,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(O,"i")},24:function(){return ee(O,"u")},39:function(){return j(O,C.fg)},49:function(){return re(O,C.bg)},53:function(){return $(O,"text-decoration:overline")}},z;return k[N]?z=k[N]():4<N&&N<7?z=_(O,"blink"):29<N&&N<38?z=j(O,C.colors[N-30]):39<N&&N<48?z=re(O,C.colors[N-40]):89<N&&N<98?z=j(O,C.colors[8+(N-90)]):99<N&&N<108&&(z=re(O,C.colors[8+(N-100)])),z}function L(O){var N=O.slice(0);return O.length=0,N.reverse().map(function(C){return"</"+C+">"}).join("")}function P(O,N){for(var C=[],k=O;k<=N;k++)C.push(k);return C}function M(O){return function(N){return(O===null||N.category!==O)&&O!=="all"}}function R(O){O=parseInt(O,10);var N=null;return O===0?N="all":O===1?N="bold":2<O&&O<5?N="underline":4<O&&O<7?N="blink":O===8?N="hide":O===9?N="strike":29<O&&O<38||O===39||89<O&&O<98?N="foreground-color":(39<O&&O<48||O===49||99<O&&O<108)&&(N="background-color"),N}function I(O,N){return N.escapeXML?f.encodeXML(O):O}function _(O,N,C){return C||(C=""),O.push(N),"<".concat(N).concat(C?' style="'.concat(C,'"'):"",">")}function $(O,N){return _(O,"span",N)}function j(O,N){return _(O,"span","color:"+N)}function re(O,N){return _(O,"span","background-color:"+N)}function ee(O,N){var C;if(O.slice(-1)[0]===N&&(C=O.pop()),C)return"</"+N+">"}function Z(O,N,C){var k=!1,z=3;function B(){return""}function ae(W,Q){return C("xterm256Foreground",Q),""}function me(W,Q){return C("xterm256Background",Q),""}function Se(W){return N.newline?C("display",-1):C("text",W),""}function Be(W,Q){k=!0,Q.trim().length===0&&(Q="0"),Q=Q.trimRight(";").split(";");var de=o(Q),he;try{for(de.s();!(he=de.n()).done;){var ge=he.value;C("display",ge)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ae(W){return C("text",W),""}function Ke(W){return C("rgb",W),""}var je=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function Fe(W,Q){Q>z&&k||(k=!1,O=O.replace(W.pattern,W.sub))}var Pe=[],F=O,Y=F.length;e:for(;Y>0;){for(var ne=0,le=0,ce=je.length;le<ce;ne=++le){var D=je[ne];if(Fe(D,ne),O.length!==Y){Y=O.length;continue e}}if(O.length===Y)break;Pe.push(0),Y=O.length}return Pe}function G(O,N,C){return N!=="text"&&(O=O.filter(M(R(C))),O.push({token:N,data:C,category:R(C)})),O}var q=(function(){function O(N){e(this,O),N=N||{},N.colors&&(N.colors=Object.assign({},d.colors,N.colors)),this.options=Object.assign({},d,N),this.stack=[],this.stickyStack=[]}return r(O,[{key:"toHtml",value:function(C){var k=this;C=typeof C=="string"?[C]:C;var z=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(me){var Se=b(z,me.token,me.data,B);Se&&ae.push(Se)}),Z(C.join(""),B,function(me,Se){var Be=b(z,me,Se,B);Be&&ae.push(Be),B.stream&&(k.stickyStack=G(k.stickyStack,me,Se))}),z.length&&ae.push(L(z)),ae.join("")}}]),O})();return Ld=q,Ld}var uce=cce();const fce=fx(uce);function sa(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function dce(e,t){return t&&e.endsWith(t)}async function bp(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function wp(e){return new fce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function hce(e){return e===null||typeof e!="function"&&typeof e!="object"}function px(e){let t=e;if(hce(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=EA(t.stack||"",{ignoreStackEntries:[]}),t}function pce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(sa(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(sa(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(sa(t.stack))}`),r.length>0?r:null}function gx(e,t){const r=wp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>pce(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Wa=ZE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),go=Zo(Wa,"file"),hn=Zo(Wa,"view"),mx=Zo(Wa,"line"),vx=Zo(Wa,"column"),Ws=Zo(Wa,"test");var wy={exports:{}},xy;function xp(){return xy||(xy=1,(function(e,t){(function(r){r(yo())})(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,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function A(Zt){return{type:Zt,style:"keyword"}}var U=A("keyword a"),ve=A("keyword b"),_e=A("keyword c"),fe=A("keyword d"),Ie=A("operator"),pt={type:"atom",style:"atom"};return{if:A("if"),while:U,with:U,else:ve,do:ve,try:ve,finally:ve,return:fe,break:fe,continue:fe,new:A("new"),delete:_e,void:_e,throw:_e,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:A("this"),class:A("class"),super:A("atom"),yield:_e,export:A("export"),import:A("import"),extends:_e,await:_e}})(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(A){for(var U=!1,ve,_e=!1;(ve=A.next())!=null;){if(!U){if(ve=="/"&&!_e)return;ve=="["?_e=!0:_e&&ve=="]"&&(_e=!1)}U=!U&&ve=="\\"}}var P,M;function R(A,U,ve){return P=A,M=ve,U}function I(A,U){var ve=A.next();if(ve=='"'||ve=="'")return U.tokenize=_(ve),U.tokenize(A,U);if(ve=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(ve=="."&&A.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ve))return R(ve);if(ve=="="&&A.eat(">"))return R("=>","operator");if(ve=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(ve))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(ve=="/")return A.eat("*")?(U.tokenize=$,$(A,U)):A.eat("/")?(A.skipToEnd(),R("comment","comment")):Qn(A,U,1)?(L(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(A.eat("="),R("operator","operator",A.current()));if(ve=="`")return U.tokenize=j,j(A,U);if(ve=="#"&&A.peek()=="!")return A.skipToEnd(),R("meta","meta");if(ve=="#"&&A.eatWhile(v))return R("variable","property");if(ve=="<"&&A.match("!--")||ve=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),R("comment","comment");if(w.test(ve))return(ve!=">"||!U.lexical||U.lexical.type!=">")&&(A.eat("=")?(ve=="!"||ve=="=")&&A.eat("="):/[<>*+\-|&?]/.test(ve)&&(A.eat(ve),ve==">"&&A.eat(ve))),ve=="?"&&A.eat(".")?R("."):R("operator","operator",A.current());if(v.test(ve)){A.eatWhile(v);var _e=A.current();if(U.lastType!="."){if(b.propertyIsEnumerable(_e)){var fe=b[_e];return R(fe.type,fe.style,_e)}if(_e=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",_e)}return R("variable","variable",_e)}}function _(A){return function(U,ve){var _e=!1,fe;if(d&&U.peek()=="@"&&U.match(E))return ve.tokenize=I,R("jsonld-keyword","meta");for(;(fe=U.next())!=null&&!(fe==A&&!_e);)_e=!_e&&fe=="\\";return _e||(ve.tokenize=I),R("string","string")}}function $(A,U){for(var ve=!1,_e;_e=A.next();){if(_e=="/"&&ve){U.tokenize=I;break}ve=_e=="*"}return R("comment","comment")}function j(A,U){for(var ve=!1,_e;(_e=A.next())!=null;){if(!ve&&(_e=="`"||_e=="$"&&A.eat("{"))){U.tokenize=I;break}ve=!ve&&_e=="\\"}return R("quasi","string-2",A.current())}var re="([{}])";function ee(A,U){U.fatArrowAt&&(U.fatArrowAt=null);var ve=A.string.indexOf("=>",A.start);if(!(ve<0)){if(g){var _e=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,ve));_e&&(ve=_e.index)}for(var fe=0,Ie=!1,pt=ve-1;pt>=0;--pt){var Zt=A.string.charAt(pt),Sn=re.indexOf(Zt);if(Sn>=0&&Sn<3){if(!fe){++pt;break}if(--fe==0){Zt=="("&&(Ie=!0);break}}else if(Sn>=3&&Sn<6)++fe;else if(v.test(Zt))Ie=!0;else if(/["'\/`]/.test(Zt))for(;;--pt){if(pt==0)return;var os=A.string.charAt(pt-1);if(os==Zt&&A.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!fe){++pt;break}}Ie&&!fe&&(U.fatArrowAt=pt)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(A,U,ve,_e,fe,Ie){this.indented=A,this.column=U,this.type=ve,this.prev=fe,this.info=Ie,_e!=null&&(this.align=_e)}function q(A,U){if(!p)return!1;for(var ve=A.localVars;ve;ve=ve.next)if(ve.name==U)return!0;for(var _e=A.context;_e;_e=_e.prev)for(var ve=_e.vars;ve;ve=ve.next)if(ve.name==U)return!0}function O(A,U,ve,_e,fe){var Ie=A.cc;for(N.state=A,N.stream=fe,N.marked=null,N.cc=Ie,N.style=U,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ce:ne;if(pt(ve,_e)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return N.marked?N.marked:ve=="variable"&&q(A,_e)?"variable-2":U}}}var N={state:null,marked:null,cc:null};function C(){for(var A=arguments.length-1;A>=0;A--)N.cc.push(arguments[A])}function k(){return C.apply(null,arguments),!0}function z(A,U){for(var ve=U;ve;ve=ve.next)if(ve.name==A)return!0;return!1}function B(A){var U=N.state;if(N.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var ve=ae(A,U.context);if(ve!=null){U.context=ve;return}}else if(!z(A,U.localVars)){U.localVars=new Be(A,U.localVars);return}}s.globalVars&&!z(A,U.globalVars)&&(U.globalVars=new Be(A,U.globalVars))}}function ae(A,U){if(U)if(U.block){var ve=ae(A,U.prev);return ve?ve==U.prev?U:new Se(ve,U.vars,!0):null}else return z(A,U.vars)?U:new Se(U.prev,new Be(A,U.vars),!1);else return null}function me(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function Se(A,U,ve){this.prev=A,this.vars=U,this.block=ve}function Be(A,U){this.name=A,this.next=U}var Ae=new Be("this",new Be("arguments",null));function Ke(){N.state.context=new Se(N.state.context,N.state.localVars,!1),N.state.localVars=Ae}function je(){N.state.context=new Se(N.state.context,N.state.localVars,!0),N.state.localVars=null}Ke.lex=je.lex=!0;function Fe(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}Fe.lex=!0;function Pe(A,U){var ve=function(){var _e=N.state,fe=_e.indented;if(_e.lexical.type=="stat")fe=_e.lexical.indented;else for(var Ie=_e.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;_e.lexical=new G(fe,N.stream.column(),A,null,_e.lexical,U)};return ve.lex=!0,ve}function F(){var A=N.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}F.lex=!0;function Y(A){function U(ve){return ve==A?k():A==";"||ve=="}"||ve==")"||ve=="]"?C():k(U)}return U}function ne(A,U){return A=="var"?k(Pe("vardef",U),Jo,Y(";"),F):A=="keyword a"?k(Pe("form"),W,ne,F):A=="keyword b"?k(Pe("form"),ne,F):A=="keyword d"?N.stream.match(/^\s*$/,!1)?k():k(Pe("stat"),de,Y(";"),F):A=="debugger"?k(Y(";")):A=="{"?k(Pe("}"),je,jt,F,Fe):A==";"?k():A=="if"?(N.state.lexical.info=="else"&&N.state.cc[N.state.cc.length-1]==F&&N.state.cc.pop()(),k(Pe("form"),W,ne,F,Qo)):A=="function"?k(cr):A=="for"?k(Pe("form"),je,Ga,ne,Fe,F):A=="class"||g&&U=="interface"?(N.marked="keyword",k(Pe("form",A=="class"?A:U),es,F)):A=="variable"?g&&U=="declare"?(N.marked="keyword",k(ne)):g&&(U=="module"||U=="enum"||U=="type")&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword",U=="enum"?k(qe):U=="type"?k(Ka,Y("operator"),lt,Y(";")):k(Pe("form"),kn,Y("{"),Pe("}"),jt,F,F)):g&&U=="namespace"?(N.marked="keyword",k(Pe("form"),ce,ne,F)):g&&U=="abstract"?(N.marked="keyword",k(ne)):k(Pe("stat"),$e):A=="switch"?k(Pe("form"),W,Y("{"),Pe("}","switch"),je,jt,F,F,Fe):A=="case"?k(ce,Y(":")):A=="default"?k(Y(":")):A=="catch"?k(Pe("form"),Ke,le,ne,F,Fe):A=="export"?k(Pe("stat"),ts,F):A=="import"?k(Pe("stat"),Ii,F):A=="async"?k(ne):U=="@"?k(ce,ne):C(Pe("stat"),ce,Y(";"),F)}function le(A){if(A=="(")return k(wr,Y(")"))}function ce(A,U){return Q(A,U,!1)}function D(A,U){return Q(A,U,!0)}function W(A){return A!="("?C():k(Pe(")"),de,Y(")"),F)}function Q(A,U,ve){if(N.state.fatArrowAt==N.stream.start){var _e=ve?be:xe;if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Y("=>"),_e,Fe);if(A=="variable")return C(Ke,kn,Y("=>"),_e,Fe)}var fe=ve?ge:he;return Z.hasOwnProperty(A)?k(fe):A=="function"?k(cr,fe):A=="class"||g&&U=="interface"?(N.marked="keyword",k(Pe("form"),vf,F)):A=="keyword c"||A=="async"?k(ve?D:ce):A=="("?k(Pe(")"),de,Y(")"),F,fe):A=="operator"||A=="spread"?k(ve?D:ce):A=="["?k(Pe("]"),$t,F,fe):A=="{"?Yt(ct,"}",null,fe):A=="quasi"?C(Ce,fe):A=="new"?k(J(ve)):k()}function de(A){return A.match(/[;\}\)\],]/)?C():C(ce)}function he(A,U){return A==","?k(de):ge(A,U,!1)}function ge(A,U,ve){var _e=ve==!1?he:ge,fe=ve==!1?ce:D;if(A=="=>")return k(Ke,ve?be:xe,Fe);if(A=="operator")return/\+\+|--/.test(U)||g&&U=="!"?k(_e):g&&U=="<"&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Pe(">"),ut(lt,">"),F,_e):U=="?"?k(ce,Y(":"),fe):k(fe);if(A=="quasi")return C(Ce,_e);if(A!=";"){if(A=="(")return Yt(D,")","call",_e);if(A==".")return k(Je,_e);if(A=="[")return k(Pe("]"),de,Y("]"),F,_e);if(g&&U=="as")return N.marked="keyword",k(lt,_e);if(A=="regexp")return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),k(fe)}}function Ce(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(Ce):k(de,Ee)}function Ee(A){if(A=="}")return N.marked="string-2",N.state.tokenize=j,k(Ce)}function xe(A){return ee(N.stream,N.state),C(A=="{"?ne:ce)}function be(A){return ee(N.stream,N.state),C(A=="{"?ne:D)}function J(A){return function(U){return U=="."?k(A?oe:ue):U=="variable"&&g?k(Bn,A?ge:he):C(A?D:ce)}}function ue(A,U){if(U=="target")return N.marked="keyword",k(he)}function oe(A,U){if(U=="target")return N.marked="keyword",k(ge)}function $e(A){return A==":"?k(F,ne):C(he,Y(";"),F)}function Je(A){if(A=="variable")return N.marked="property",k()}function ct(A,U){if(A=="async")return N.marked="property",k(ct);if(A=="variable"||N.style=="keyword"){if(N.marked="property",U=="get"||U=="set")return k(dt);var ve;return g&&N.state.fatArrowAt==N.stream.start&&(ve=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+ve[0].length),k(Nt)}else{if(A=="number"||A=="string")return N.marked=d?"property":N.style+" property",k(Nt);if(A=="jsonld-keyword")return k(Nt);if(g&&me(U))return N.marked="keyword",k(ct);if(A=="[")return k(ce,Fn,Y("]"),Nt);if(A=="spread")return k(D,Nt);if(U=="*")return N.marked="keyword",k(ct);if(A==":")return C(Nt)}}function dt(A){return A!="variable"?C(Nt):(N.marked="property",k(cr))}function Nt(A){if(A==":")return k(D);if(A=="(")return C(cr)}function ut(A,U,ve){function _e(fe,Ie){if(ve?ve.indexOf(fe)>-1:fe==","){var pt=N.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Zt,Sn){return Zt==U||Sn==U?C():C(A)},_e)}return fe==U||Ie==U?k():ve&&ve.indexOf(";")>-1?C(A):k(Y(U))}return function(fe,Ie){return fe==U||Ie==U?k():C(A,_e)}}function Yt(A,U,ve){for(var _e=3;_e<arguments.length;_e++)N.cc.push(arguments[_e]);return k(Pe(U,ve),ut(A,U),F)}function jt(A){return A=="}"?k():C(ne,jt)}function Fn(A,U){if(g){if(A==":")return k(lt);if(U=="?")return k(Fn)}}function Hr(A,U){if(g&&(A==":"||U=="in"))return k(lt)}function Bt(A){if(g&&A==":")return N.stream.match(/^\s*\w+\s+is\b/,!1)?k(ce,Hn,lt):k(lt)}function Hn(A,U){if(U=="is")return N.marked="keyword",k()}function lt(A,U){if(U=="keyof"||U=="typeof"||U=="infer"||U=="readonly")return N.marked="keyword",k(U=="typeof"?D:lt);if(A=="variable"||U=="void")return N.marked="type",k(ar);if(U=="|"||U=="&")return k(lt);if(A=="string"||A=="number"||A=="atom")return k(ar);if(A=="[")return k(Pe("]"),ut(lt,"]",","),F,ar);if(A=="{")return k(Pe("}"),Xe,F,ar);if(A=="(")return k(ut(Rt,")"),bo,ar);if(A=="<")return k(ut(lt,">"),lt);if(A=="quasi")return C(an,ar)}function bo(A){if(A=="=>")return k(lt)}function Xe(A){return A.match(/[\}\)\]]/)?k():A==","||A==";"?k(Xe):C(ri,Xe)}function ri(A,U){if(A=="variable"||N.style=="keyword")return N.marked="property",k(ri);if(U=="?"||A=="number"||A=="string")return k(ri);if(A==":")return k(lt);if(A=="[")return k(Y("variable"),Hr,Y("]"),ri);if(A=="(")return C($i,ri);if(!A.match(/[;\}\)\],]/))return k()}function an(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(an):k(lt,Pt)}function Pt(A){if(A=="}")return N.marked="string-2",N.state.tokenize=j,k(an)}function Rt(A,U){return A=="variable"&&N.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Rt):A==":"?k(lt):A=="spread"?k(Rt):C(lt)}function ar(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar);if(U=="|"||A=="."||U=="&")return k(lt);if(A=="[")return k(lt,Y("]"),ar);if(U=="extends"||U=="implements")return N.marked="keyword",k(lt);if(U=="?")return k(lt,Y(":"),lt)}function Bn(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar)}function yr(){return C(lt,cn)}function cn(A,U){if(U=="=")return k(lt)}function Jo(A,U){return U=="enum"?(N.marked="keyword",k(qe)):C(kn,Fn,br,mf)}function kn(A,U){if(g&&me(U))return N.marked="keyword",k(kn);if(A=="variable")return B(U),k();if(A=="spread")return k(kn);if(A=="[")return Yt(ll,"]");if(A=="{")return Yt(Pi,"}")}function Pi(A,U){return A=="variable"&&!N.stream.match(/^\s*:/,!1)?(B(U),k(br)):(A=="variable"&&(N.marked="property"),A=="spread"?k(kn):A=="}"?C():A=="["?k(ce,Y("]"),Y(":"),Pi):k(Y(":"),kn,br))}function ll(){return C(kn,br)}function br(A,U){if(U=="=")return k(D)}function mf(A){if(A==",")return k(Jo)}function Qo(A,U){if(A=="keyword b"&&U=="else")return k(Pe("form","else"),ne,F)}function Ga(A,U){if(U=="await")return k(Ga);if(A=="(")return k(Pe(")"),al,F)}function al(A){return A=="var"?k(Jo,Ri):A=="variable"?k(Ri):C(Ri)}function Ri(A,U){return A==")"?k():A==";"?k(Ri):U=="in"||U=="of"?(N.marked="keyword",k(ce,Ri)):C(ce,Ri)}function cr(A,U){if(U=="*")return N.marked="keyword",k(cr);if(A=="variable")return B(U),k(cr);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,ne,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,cr)}function $i(A,U){if(U=="*")return N.marked="keyword",k($i);if(A=="variable")return B(U),k($i);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,$i)}function Ka(A,U){if(A=="keyword"||A=="variable")return N.marked="type",k(Ka);if(U=="<")return k(Pe(">"),ut(yr,">"),F)}function wr(A,U){return U=="@"&&k(ce,wr),A=="spread"?k(wr):g&&me(U)?(N.marked="keyword",k(wr)):g&&A=="this"?k(Fn,br):C(kn,Fn,br)}function vf(A,U){return A=="variable"?es(A,U):xr(A,U)}function es(A,U){if(A=="variable")return B(U),k(xr)}function xr(A,U){if(U=="<")return k(Pe(">"),ut(yr,">"),F,xr);if(U=="extends"||U=="implements"||g&&A==",")return U=="implements"&&(N.marked="keyword"),k(g?lt:ce,xr);if(A=="{")return k(Pe("}"),kr,F)}function kr(A,U){if(A=="async"||A=="variable"&&(U=="static"||U=="get"||U=="set"||g&&me(U))&&N.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return N.marked="keyword",k(kr);if(A=="variable"||N.style=="keyword")return N.marked="property",k(wo,kr);if(A=="number"||A=="string")return k(wo,kr);if(A=="[")return k(ce,Fn,Y("]"),wo,kr);if(U=="*")return N.marked="keyword",k(kr);if(g&&A=="(")return C($i,kr);if(A==";"||A==",")return k(kr);if(A=="}")return k();if(U=="@")return k(ce,kr)}function wo(A,U){if(U=="!"||U=="?")return k(wo);if(A==":")return k(lt,br);if(U=="=")return k(D);var ve=N.state.lexical.prev,_e=ve&&ve.info=="interface";return C(_e?$i:cr)}function ts(A,U){return U=="*"?(N.marked="keyword",k(is,Y(";"))):U=="default"?(N.marked="keyword",k(ce,Y(";"))):A=="{"?k(ut(ns,"}"),is,Y(";")):C(ne)}function ns(A,U){if(U=="as")return N.marked="keyword",k(Y("variable"));if(A=="variable")return C(D,ns)}function Ii(A){return A=="string"?k():A=="("?C(ce):A=="."?C(he):C(rs,Br,is)}function rs(A,U){return A=="{"?Yt(rs,"}"):(A=="variable"&&B(U),U=="*"&&(N.marked="keyword"),k(cl))}function Br(A){if(A==",")return k(rs,Br)}function cl(A,U){if(U=="as")return N.marked="keyword",k(rs)}function is(A,U){if(U=="from")return N.marked="keyword",k(ce)}function $t(A){return A=="]"?k():C(ut(D,"]"))}function qe(){return C(Pe("form"),kn,Y("{"),Pe("}"),ut(ii,"}"),F,F)}function ii(){return C(kn,br)}function ul(A,U){return A.lastType=="operator"||A.lastType==","||w.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function Qn(A,U,ve){return U.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(ve||0)))}return{startState:function(A){var U={tokenize:I,lastType:"sof",cc:[],lexical:new G((A||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:A||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(A,U){if(A.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=A.indentation(),ee(A,U)),U.tokenize!=$&&A.eatSpace())return null;var ve=U.tokenize(A,U);return P=="comment"?ve:(U.lastType=P=="operator"&&(M=="++"||M=="--")?"incdec":P,O(U,ve,P,M,A))},indent:function(A,U){if(A.tokenize==$||A.tokenize==j)return r.Pass;if(A.tokenize!=I)return 0;var ve=U&&U.charAt(0),_e=A.lexical,fe;if(!/^\s*else\b/.test(U))for(var Ie=A.cc.length-1;Ie>=0;--Ie){var pt=A.cc[Ie];if(pt==F)_e=_e.prev;else if(pt!=Qo&&pt!=Fe)break}for(;(_e.type=="stat"||_e.type=="form")&&(ve=="}"||(fe=A.cc[A.cc.length-1])&&(fe==he||fe==ge)&&!/^[,\.=+\-*:?[\(]/.test(U));)_e=_e.prev;f&&_e.type==")"&&_e.prev.type=="stat"&&(_e=_e.prev);var Zt=_e.type,Sn=ve==Zt;return Zt=="vardef"?_e.indented+(A.lastType=="operator"||A.lastType==","?_e.info.length+1:0):Zt=="form"&&ve=="{"?_e.indented:Zt=="form"?_e.indented+c:Zt=="stat"?_e.indented+(ul(A,U)?f||c:0):_e.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?_e.indented+(/^(?:case|default)\b/.test(U)?c:2*c):_e.align?_e.column+(Sn?0:1):_e.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(A){O(A,"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})})})()),wy.exports}xp();var ky={exports:{}},Sy;function kp(){return Sy||(Sy=1,(function(e,t){(function(r){r(yo())})(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 g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function w(k,z){function B(Se){return z.tokenize=Se,Se(k,z)}var ae=k.next();if(ae=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(P("atom","]]>")):null:k.match("--")?B(P("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(M(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),z.tokenize=P("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",z.tokenize=E,"tag bracket");if(ae=="&"){var me;return k.eat("#")?k.eat("x")?me=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):me=k.eatWhile(/[\d]/)&&k.eat(";"):me=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),me?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function E(k,z){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return z.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){z.tokenize=w,z.state=j,z.tagName=z.tagStart=null;var ae=z.tokenize(k,z);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=L(B),z.stringStartCol=k.column(),z.tokenize(k,z)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(k){var z=function(B,ae){for(;!B.eol();)if(B.next()==k){ae.tokenize=E;break}return"string"};return z.isInAttribute=!0,z}function P(k,z){return function(B,ae){for(;!B.eol();){if(B.match(z)){ae.tokenize=w;break}B.next()}return k}}function M(k){return function(z,B){for(var ae;(ae=z.next())!=null;){if(ae=="<")return B.tokenize=M(k+1),B.tokenize(z,B);if(ae==">")if(k==1){B.tokenize=w;break}else return B.tokenize=M(k-1),B.tokenize(z,B)}return"meta"}}function R(k){return k&&k.toLowerCase()}function I(k,z,B){this.prev=k.context,this.tagName=z||"",this.indent=k.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(z)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function _(k){k.context&&(k.context=k.context.prev)}function $(k,z){for(var B;;){if(!k.context||(B=k.context.tagName,!h.contextGrabbers.hasOwnProperty(R(B))||!h.contextGrabbers[R(B)].hasOwnProperty(R(z))))return;_(k)}}function j(k,z,B){return k=="openTag"?(B.tagStart=z.column(),re):k=="closeTag"?ee:j}function re(k,z,B){return k=="word"?(B.tagName=z.current(),b="tag",q):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",q(k,z,B)):(b="error",re)}function ee(k,z,B){if(k=="word"){var ae=z.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(R(B.context.tagName))&&_(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(b="tag",Z):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Z(k,z,B)):(b="error",G)}function Z(k,z,B){return k!="endTag"?(b="error",Z):(_(B),j)}function G(k,z,B){return b="error",Z(k,z,B)}function q(k,z,B){if(k=="word")return b="attribute",O;if(k=="endTag"||k=="selfcloseTag"){var ae=B.tagName,me=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(ae))?$(B,ae):($(B,ae),B.context=new I(B,ae,me==B.indented)),j}return b="error",q}function O(k,z,B){return k=="equals"?N:(h.allowMissing||(b="error"),q(k,z,B))}function N(k,z,B){return k=="string"?C:k=="word"&&h.allowUnquoted?(b="string",q):(b="error",q(k,z,B))}function C(k,z,B){return k=="string"?C:q(k,z,B)}return{startState:function(k){var z={tokenize:w,state:j,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(z.baseIndent=k),z},token:function(k,z){if(!z.tagName&&k.sol()&&(z.indented=k.indentation()),k.eatSpace())return null;v=null;var B=z.tokenize(k,z);return(B||v)&&B!="comment"&&(b=null,z.state=z.state(v||B,k,z),b&&(B=b=="error"?B+" error":b)),B},indent:function(k,z,B){var ae=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ae&&ae.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var me=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(me&&me[1])for(;ae;)if(ae.tagName==me[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(R(ae.tagName)))ae=ae.prev;else break;else if(me)for(;ae;){var Se=h.contextGrabbers[R(ae.tagName)];if(Se&&Se.hasOwnProperty(R(me[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==N&&(k.state=q)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var z=[],B=k.context;B;B=B.prev)z.push(B.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})})})()),ky.exports}kp();var _y={exports:{}},Ty={exports:{}},Cy;function gce(){return Cy||(Cy=1,(function(e,t){(function(r){r(yo())})(function(r){r.defineMode("css",function(G,q){var O=q.inline;q.propertyKeywords||(q=r.resolveMode("text/css"));var N=G.indentUnit,C=q.tokenHooks,k=q.documentTypes||{},z=q.mediaTypes||{},B=q.mediaFeatures||{},ae=q.mediaValueKeywords||{},me=q.propertyKeywords||{},Se=q.nonStandardPropertyKeywords||{},Be=q.fontProperties||{},Ae=q.counterDescriptors||{},Ke=q.colorKeywords||{},je=q.valueKeywords||{},Fe=q.allowNested,Pe=q.lineComment,F=q.supportsAtComponent===!0,Y=G.highlightNonStandardPropertyKeywords!==!1,ne,le;function ce(J,ue){return ne=ue,J}function D(J,ue){var oe=J.next();if(C[oe]){var $e=C[oe](J,ue);if($e!==!1)return $e}if(oe=="@")return J.eatWhile(/[\w\\\-]/),ce("def",J.current());if(oe=="="||(oe=="~"||oe=="|")&&J.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=W(oe),ue.tokenize(J,ue);if(oe=="#")return J.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return J.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),ce("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(J.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(ue.tokenize=Q),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(J.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function W(J){return function(ue,oe){for(var $e=!1,Je;(Je=ue.next())!=null;){if(Je==J&&!$e){J==")"&&ue.backUp(1);break}$e=!$e&&Je=="\\"}return(Je==J||!$e&&J!=")")&&(oe.tokenize=null),ce("string","string")}}function Q(J,ue){return J.next(),J.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=W(")"),ce(null,"(")}function de(J,ue,oe){this.type=J,this.indent=ue,this.prev=oe}function he(J,ue,oe,$e){return J.context=new de(oe,ue.indentation()+($e===!1?0:N),J.context),oe}function ge(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ce(J,ue,oe){return be[oe.context.type](J,ue,oe)}function Ee(J,ue,oe,$e){for(var Je=$e||1;Je>0;Je--)oe.context=oe.context.prev;return Ce(J,ue,oe)}function xe(J){var ue=J.current().toLowerCase();je.hasOwnProperty(ue)?le="atom":Ke.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(J,ue,oe){if(J=="{")return he(oe,ue,"block");if(J=="}"&&oe.context.prev)return ge(oe);if(F&&/@component/i.test(J))return he(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return he(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return he(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return oe.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return he(oe,ue,"at");if(J=="hash")le="builtin";else if(J=="word")le="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return he(oe,ue,"interpolation");if(J==":")return"pseudo";if(Fe&&J=="(")return he(oe,ue,"parens")}return oe.context.type},be.block=function(J,ue,oe){if(J=="word"){var $e=ue.current().toLowerCase();return me.hasOwnProperty($e)?(le="property","maybeprop"):Se.hasOwnProperty($e)?(le=Y?"string-2":"property","maybeprop"):Fe?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return J=="meta"?"block":!Fe&&(J=="hash"||J=="qualifier")?(le="error","block"):be.top(J,ue,oe)},be.maybeprop=function(J,ue,oe){return J==":"?he(oe,ue,"prop"):Ce(J,ue,oe)},be.prop=function(J,ue,oe){if(J==";")return ge(oe);if(J=="{"&&Fe)return he(oe,ue,"propBlock");if(J=="}"||J=="{")return Ee(J,ue,oe);if(J=="(")return he(oe,ue,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(J=="word")xe(ue);else if(J=="interpolation")return he(oe,ue,"interpolation");return"prop"},be.propBlock=function(J,ue,oe){return J=="}"?ge(oe):J=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(J,ue,oe){return J=="{"||J=="}"?Ee(J,ue,oe):J==")"?ge(oe):J=="("?he(oe,ue,"parens"):J=="interpolation"?he(oe,ue,"interpolation"):(J=="word"&&xe(ue),"parens")},be.pseudo=function(J,ue,oe){return J=="meta"?"pseudo":J=="word"?(le="variable-3",oe.context.type):Ce(J,ue,oe)},be.documentTypes=function(J,ue,oe){return J=="word"&&k.hasOwnProperty(ue.current())?(le="tag",oe.context.type):be.atBlock(J,ue,oe)},be.atBlock=function(J,ue,oe){if(J=="(")return he(oe,ue,"atBlock_parens");if(J=="}"||J==";")return Ee(J,ue,oe);if(J=="{")return ge(oe)&&he(oe,ue,Fe?"block":"top");if(J=="interpolation")return he(oe,ue,"interpolation");if(J=="word"){var $e=ue.current().toLowerCase();$e=="only"||$e=="not"||$e=="and"||$e=="or"?le="keyword":z.hasOwnProperty($e)?le="attribute":B.hasOwnProperty($e)?le="property":ae.hasOwnProperty($e)?le="keyword":me.hasOwnProperty($e)?le="property":Se.hasOwnProperty($e)?le=Y?"string-2":"property":je.hasOwnProperty($e)?le="atom":Ke.hasOwnProperty($e)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(J,ue,oe){return J=="}"?Ee(J,ue,oe):J=="{"?ge(oe)&&he(oe,ue,Fe?"block":"top",!1):(J=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(J,ue,oe){return J==")"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe,2):be.atBlock(J,ue,oe)},be.restricted_atBlock_before=function(J,ue,oe){return J=="{"?he(oe,ue,"restricted_atBlock"):J=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(J,ue,oe)},be.restricted_atBlock=function(J,ue,oe){return J=="}"?(oe.stateArg=null,ge(oe)):J=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ae.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(J,ue,oe){return J=="word"?(le="variable","keyframes"):J=="{"?he(oe,ue,"top"):Ce(J,ue,oe)},be.at=function(J,ue,oe){return J==";"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe):(J=="word"?le="tag":J=="hash"&&(le="builtin"),"at")},be.interpolation=function(J,ue,oe){return J=="}"?ge(oe):J=="{"||J==";"?Ee(J,ue,oe):(J=="word"?le="variable":J!="variable"&&J!="("&&J!=")"&&(le="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:O?"block":"top",stateArg:null,context:new de(O?"block":"top",J||0,null)}},token:function(J,ue){if(!ue.tokenize&&J.eatSpace())return null;var oe=(ue.tokenize||D)(J,ue);return oe&&typeof oe=="object"&&(ne=oe[1],oe=oe[0]),le=oe,ne!="comment"&&(ue.state=be[ue.state](ne,J,ue)),le},indent:function(J,ue){var oe=J.context,$e=ue&&ue.charAt(0),Je=oe.indent;return oe.type=="prop"&&($e=="}"||$e==")")&&(oe=oe.prev),oe.prev&&($e=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,Je=oe.indent):($e==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||$e=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(Je=Math.max(0,oe.indent-N))),Je},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Pe,fold:"brace"}});function o(G){for(var q={},O=0;O<G.length;++O)q[G[O].toLowerCase()]=!0;return q}var s=["domain","regexp","url","url-prefix"],c=o(s),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=o(f),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=o(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=o(g),b=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=o(b),E=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],L=o(E),P=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],M=o(P),R=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=o(R),_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],$=o(_),j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],re=o(j),ee=s.concat(f).concat(h).concat(g).concat(b).concat(E).concat(_).concat(j);r.registerHelper("hintWords","css",ee);function Z(G,q){for(var O=!1,N;(N=G.next())!=null;){if(O&&N=="/"){q.tokenize=null;break}O=N=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:c,mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:I,colorKeywords:$,valueKeywords:re,tokenHooks:{"/":function(G,q){return G.eat("*")?(q.tokenize=Z,Z(G,q)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,colorKeywords:$,valueKeywords:re,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,q){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(q.tokenize=Z,Z(G,q)):["operator","operator"]},":":function(G){return G.match(/^\s*\{/,!1)?[null,null]:!1},$:function(G){return G.match(/^[\w-]+/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(G){return G.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,colorKeywords:$,valueKeywords:re,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,q){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(q.tokenize=Z,Z(G,q)):["operator","operator"]},"@":function(G){return G.eat("{")?[null,"interpolation"]:G.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(G.eatWhile(/[\w\\\-]/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:d,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:I,colorKeywords:$,valueKeywords:re,supportsAtComponent:!0,tokenHooks:{"/":function(G,q){return G.eat("*")?(q.tokenize=Z,Z(G,q)):!1}},name:"css",helperType:"gss"})})})()),Ty.exports}var Ey;function mce(){return Ey||(Ey=1,(function(e,t){(function(r){r(yo(),kp(),xp(),gce())})(function(r){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,w){var E=v.current(),L=E.search(b);return L>-1?v.backUp(E.length-L):E.match(/<\/?$/)&&(v.backUp(E.length),v.match(b,!1)||v.match(E)),w}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var w=v.match(f(b));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,b){for(var w in v)for(var E=b[w]||(b[w]=[]),L=v[w],P=L.length-1;P>=0;P--)E.unshift(L[P])}function g(v,b){for(var w=0;w<v.length;w++){var E=v[w];if(!E[0]||E[1].test(d(b,E[0])))return E[2]}}r.defineMode("htmlmixed",function(v,b){var w=r.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),E={},L=b&&b.tags,P=b&&b.scriptTypes;if(p(o,E),L&&p(L,E),P)for(var M=P.length-1;M>=0;M--)E.script.unshift(["type",P[M].matches,P[M].mode]);function R(I,_){var $=w.token(I,_.htmlState),j=/\btag\b/.test($),re;if(j&&!/[<>\s\/]/.test(I.current())&&(re=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(re))_.inTag=re+" ";else if(_.inTag&&j&&/>$/.test(I.current())){var ee=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var Z=I.current()==">"&&g(E[ee[1]],ee[2]),G=r.getMode(v,Z),q=h(ee[1],!0),O=h(ee[1],!1);_.token=function(N,C){return N.match(q,!1)?(C.token=R,C.localState=C.localMode=null,null):s(N,O,C.localMode.token(N,C.localState))},_.localMode=G,_.localState=r.startState(G,w.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=I.current(),I.eol()&&(_.inTag+=" "));return $}return{startState:function(){var I=r.startState(w);return{token:R,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var _;return I.localState&&(_=r.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:_,htmlState:r.copyState(w,I.htmlState)}},token:function(I,_){return _.token(I,_)},indent:function(I,_,$){return!I.localMode||/^\s*<\//.test(_)?w.indent(I.htmlState,_,$):I.localMode.indent?I.localMode.indent(I.localState,_,$):r.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||w}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),_y.exports}mce();var Ay={exports:{}},Ly;function vce(){return Ly||(Ly=1,(function(e,t){(function(r){r(yo(),kp(),xp())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var L=d.indent(w,"","");return w.tagName=E,L}function g(w,E){return E.context.mode==d?v(w,E,E.context):b(w,E,E.context)}function v(w,E,L){if(L.depth==2)return w.match(/^.*?\*\//)?L.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(L.state);var P=p(L.state),M=L.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?P-=c.indentUnit:L.prev.state.lexical&&(P=L.prev.state.lexical.indented)}else L.depth==1&&(P+=c.indentUnit);return E.context=new o(r.startState(h,P),h,0,E.context),null}if(L.depth==1){if(w.peek()=="<")return d.skipAttribute(L.state),E.context=new o(r.startState(d,p(L.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return L.depth=2,g(w,E)}var R=d.token(w,L.state),I=w.current(),_;return/\btag\b/.test(R)?/>$/.test(I)?L.state.context?L.depth=0:E.context=E.context.prev:/^</.test(I)&&(L.depth=1):!R&&(_=I.indexOf("{"))>-1&&w.backUp(I.length-_),R}function b(w,E,L){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,L.state))return E.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,E.context),h.skipExpression(L.state),null;var P=h.token(w,L.state);if(!P&&L.depth!=null){var M=w.current();M=="{"?L.depth++:M=="}"&&--L.depth==0&&(E.context=E.context.prev)}return P}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,E,L){return w.context.mode.indent(w.context.state,E,L)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Ay.exports}vce();var My={exports:{}},Ny;function yce(){return Ny||(Ny=1,(function(e,t){(function(r){r(yo())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!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(!g&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!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 g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),My.exports}yce();var Oy={exports:{}},Py;function bce(){return Py||(Py=1,(function(e,t){(function(r){r(yo())})(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(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",w=v[b],E=p.pos;function L(){r.off(document,"mousemove",P),r.off(document,"mouseup",L)}function P(M){if(M.which!=1)return L();p.moveTo(E+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",P),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<b.left?-1:v.clientX>b.right?1:0:w=v.clientY<b.top?-1:v.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}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 g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function 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,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(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-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?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)}})})()),Oy.exports}bce();const Nn=Ft();function wce(e,t,r={}){const o=zL.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Da(()=>{Nn.value=void 0}),Uu(o)}async function yx(e){Ta({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function xce(e,t){Ta({file:e,column:t.column-1,line:t.line,view:"editor",test:Ws.value})}function kce(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return bp(s,r,o);Ta({file:e.file.id,column:o-1,line:r,view:"editor",test:Ws.value})}const pr=Ge(),qs=Ge(!0),mo=Ge(!1),Cu=Ge(!0),Os=ke(()=>ei.value?.coverage),mh=ke(()=>Os.value?.enabled),Ps=ke(()=>mh.value&&!!Os.value.htmlReporter),js=sf("vitest-ui_splitpanes-mainSizes",[33,67]),uo=sf("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:js.value[0],details:{size:js.value[1],browser:uo.value[0],main:uo.value[1]}}),Ry=ke(()=>{if(Ps.value){const e=Os.value.reportsDirectory.lastIndexOf("/"),t=Os.value.htmlReporter?.subdir;return t?`/${Os.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${Os.value.reportsDirectory.slice(e+1)}/index.html`}});xt(uf,e=>{Cu.value=e==="running"},{immediate:!0});function Sce(){const e=go.value;if(e&&e.length>0){const t=mr(e);t?(pr.value=t,qs.value=!1,mo.value=!1):NE(()=>ft.state.getFiles(),()=>{pr.value=mr(e),qs.value=!1,mo.value=!1})}return qs}function Eu(e){qs.value=e,mo.value=!1,e&&(pr.value=void 0,go.value="")}function Ta({file:e,line:t,view:r,test:o,column:s}){go.value=e,mx.value=t,vx.value=s,hn.value=r,Ws.value=o,pr.value=mr(e),Eu(!1)}function _ce(e){e.type==="test"?hn.value==="editor"?yx(e):Ta({file:e.file.id,line:null,column:null,view:hn.value,test:e.id}):Ta({file:e.file.id,test:null,line:null,view:hn.value,column:null})}function Tce(){mo.value=!0,qs.value=!1,pr.value=void 0,go.value=""}function Cce(){At.details.browser=100,At.details.main=0,uo.value=[100,0]}function bx(){if(Zn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function Ece(){At.details.browser=bx(),At.details.main=100-At.details.browser,uo.value=[At.details.browser,At.details.main]}function Ace(){At.navigation=33,At.details.size=67,js.value=[33,67]}function wx(){At.details.main!==0&&(At.details.browser=bx(),At.details.main=100-At.details.browser,uo.value=[At.details.browser,At.details.main])}const Lce={setCurrentFileId(e){go.value=e,pr.value=mr(e),Eu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Zn?.provider==="webdriverio"&&wx(),await new Promise(r=>requestAnimationFrame(r))}},Mce=location.port,Nce=[location.hostname,Mce].filter(Boolean).join(":"),Oce=`${location.protocol==="https:"?"wss:":"ws:"}//${Nce}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,gr=!!window.METADATA_PATH;var rr=Uint8Array,Rs=Uint16Array,Pce=Int32Array,xx=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]),kx=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]),Rce=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Sx=function(e,t){for(var r=new Rs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Pce(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}},_x=Sx(xx,2),Tx=_x.b,$ce=_x.r;Tx[28]=258,$ce[258]=28;var Ice=Sx(kx,0),Dce=Ice.b,vh=new Rs(32768);for(var Lt=0;Lt<32768;++Lt){var Gi=(Lt&43690)>>1|(Lt&21845)<<1;Gi=(Gi&52428)>>2|(Gi&13107)<<2,Gi=(Gi&61680)>>4|(Gi&3855)<<4,vh[Lt]=((Gi&65280)>>8|(Gi&255)<<8)>>1}var la=(function(e,t,r){for(var o=e.length,s=0,c=new Rs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Rs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Rs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=f[e[s]-1]++<<g,b=v|(1<<g)-1;v<=b;++v)d[vh[v]>>h]=p}else for(d=new Rs(o),s=0;s<o;++s)e[s]&&(d[s]=vh[f[e[s]-1]++]>>15-e[s]);return d}),qa=new rr(288);for(var Lt=0;Lt<144;++Lt)qa[Lt]=8;for(var Lt=144;Lt<256;++Lt)qa[Lt]=9;for(var Lt=256;Lt<280;++Lt)qa[Lt]=7;for(var Lt=280;Lt<288;++Lt)qa[Lt]=8;var Cx=new rr(32);for(var Lt=0;Lt<32;++Lt)Cx[Lt]=5;var zce=la(qa,9,1),Fce=la(Cx,5,1),Md=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Ar=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Nd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Hce=function(e){return(e+7)/8|0},Ex=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))},Bce=["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"],Un=function(e,t,r){var o=new Error(t||Bce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Un),!r)throw o;return o},Sp=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(ce){var D=r.length;if(ce>D){var W=new rr(Math.max(D*2,ce));W.set(r),r=W}},g=t.f||0,v=t.p||0,b=t.b||0,w=t.l,E=t.d,L=t.m,P=t.n,M=s*8;do{if(!w){g=Ar(e,v,1);var R=Ar(e,v+1,3);if(v+=3,R)if(R==1)w=zce,E=Fce,L=9,P=5;else if(R==2){var j=Ar(e,v,31)+257,re=Ar(e,v+10,15)+4,ee=j+Ar(e,v+5,31)+1;v+=14;for(var Z=new rr(ee),G=new rr(19),q=0;q<re;++q)G[Rce[q]]=Ar(e,v+q*3,7);v+=re*3;for(var O=Md(G),N=(1<<O)-1,C=la(G,O,1),q=0;q<ee;){var k=C[Ar(e,v,N)];v+=k&15;var I=k>>4;if(I<16)Z[q++]=I;else{var z=0,B=0;for(I==16?(B=3+Ar(e,v,3),v+=2,z=Z[q-1]):I==17?(B=3+Ar(e,v,7),v+=3):I==18&&(B=11+Ar(e,v,127),v+=7);B--;)Z[q++]=z}}var ae=Z.subarray(0,j),me=Z.subarray(j);L=Md(ae),P=Md(me),w=la(ae,L,1),E=la(me,P,1)}else Un(1);else{var I=Hce(v)+4,_=e[I-4]|e[I-3]<<8,$=I+_;if($>s){h&&Un(0);break}d&&p(b+_),r.set(e.subarray(I,$),b),t.b=b+=_,t.p=v=$*8,t.f=g;continue}if(v>M){h&&Un(0);break}}d&&p(b+131072);for(var Se=(1<<L)-1,Be=(1<<P)-1,Ae=v;;Ae=v){var z=w[Nd(e,v)&Se],Ke=z>>4;if(v+=z&15,v>M){h&&Un(0);break}if(z||Un(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,w=null;break}else{var je=Ke-254;if(Ke>264){var q=Ke-257,Fe=xx[q];je=Ar(e,v,(1<<Fe)-1)+Tx[q],v+=Fe}var Pe=E[Nd(e,v)&Be],F=Pe>>4;Pe||Un(3),v+=Pe&15;var me=Dce[F];if(F>3){var Fe=kx[F];me+=Nd(e,v)&(1<<Fe)-1,v+=Fe}if(v>M){h&&Un(0);break}d&&p(b+131072);var Y=b+je;if(b<me){var ne=c-me,le=Math.min(me,Y);for(ne+b<0&&Un(3);b<le;++b)r[b]=o[ne+b]}for(;b<Y;++b)r[b]=r[b-me]}}t.l=w,t.p=Ae,t.b=b,t.f=g,w&&(g=1,t.m=L,t.d=E,t.n=P)}while(!g);return b!=r.length&&f?Ex(r,0,b):r.subarray(0,b)},Wce=new rr(0),qce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Un(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)},jce=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)&&Un(6,"invalid zlib data"),(e[1]>>5&1)==1&&Un(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Vce(e,t){return Sp(e,{i:2},t,t)}function Gce(e,t){var r=qce(e);return r+8>e.length&&Un(6,"invalid gzip data"),Sp(e.subarray(r,-8),{i:2},new rr(jce(e)),t)}function Kce(e,t){return Sp(e.subarray(Uce(e),-4),{i:2},t,t)}function Xce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Gce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Vce(e,t):Kce(e,t)}var yh=typeof TextDecoder<"u"&&new TextDecoder,Yce=0;try{yh.decode(Wce,{stream:!0}),Yce=1}catch{}var Zce=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:Ex(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 $y(e,t){var r;if(yh)return yh.decode(e);var o=Zce(e),s=o.s,r=o.r;return r.length&&Un(8),s}const Od=()=>{},dn=()=>Promise.resolve();function Jce(){const e=ir({state:new Jw,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,getExternalResult:dn,getTransformResult:dn,onDone:Od,onTaskUpdate:Od,writeFile:dn,rerun:dn,rerunTask:dn,updateSnapshot:dn,resolveSnapshotPath:dn,snapshotSaved:dn,onAfterSuiteRun:dn,onCancel:dn,getCountOfFailedTests:()=>0,sendLog:dn,resolveSnapshotRawPath:dn,readSnapshotFile:dn,saveSnapshotFile:dn,readTestFile:async d=>t.sources[d],removeSnapshotFile:dn,onUnhandledError:Od,saveTestFile:dn,getProvidedContext:()=>({}),getTestFiles:dn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=$y(Xce(h));t=fh(g)}else t=fh($y(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return gr?Jce():nL(Oce,{reactive:(t,r)=>r==="state"?ir(t):Ft(t),handlers:{onTestAnnotate(t,r){Oe.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Oe.recordTestArtifact(t,r)},onTaskUpdate(t,r){Oe.resumeRun(t,r),uf.value="running"},onSpecsCollected(t,r){Oe.startTime=r||performance.now()},onFinished(t,r,o,s){Oe.endRun(s),to.value=(r||[]).map(px)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),ei=Ft({}),Bo=Ge("CONNECTING"),Gt=ke(()=>{const e=go.value;return e?mr(e):void 0}),Ax=ke(()=>gp(Gt.value).map(e=>e?.logs||[]).flat()||[]);function mr(e){const t=ft.state.idMap.get(e);return t||void 0}const Qce=ke(()=>Bo.value==="OPEN"),Pd=ke(()=>Bo.value==="CONNECTING");ke(()=>Bo.value==="CLOSED");function eue(){return _p(ft.state.getFiles())}function Lx(e){delete e.result;const t=Oe.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ha(e)))for(const r of e.tasks)Lx(r)}function tue(e){const t=Oe.nodes;e.forEach(r=>{delete r.result,gp(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,In(o)&&(o.collectDuration=void 0))})}function _p(e){return tue(e),Oe.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function nue(e){return Lx(e),Oe.startRun(),ft.rpc.rerunTask(e.id)}const Zn=window.__vitest_browser_runner__;window.__vitest_ui_api__=Lce;xt(()=>ft.ws,e=>{Bo.value=gr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Bo.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=jw(h,d,f);return p.mode="skip",p})),Oe.loadFiles(t,s),ft.state.collectFiles(t),Oe.startRun(),to.value=(o||[]).map(px),ei.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Bo.value==="CONNECTING"&&(Bo.value="CLOSED")},1e3)})},{immediate:!0});const rue=["aria-label","opacity","disabled","hover"],_t=rt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ie(),ye("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:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Dt(t.$slots,"default",{},()=>[X("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,rue))}}),iue={h:"full",flex:"~ col"},oue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},sue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},lue={class:"pointer-events-none","text-sm":""},aue={key:0},cue={id:"tester-container",relative:""},uue=["data-scale"],Iy=20,fue=100,due=rt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return tr.value[0]===g[0]&&tr.value[1]===g[1]}const{width:o,height:s}=Iw();async function c(p){tr.value=t[p],Zn?.provider==="webdriverio"&&wx()}const f=ke(()=>{if(Zn?.provider==="webdriverio"){const[w,E]=tr.value;return{width:w,height:E}}const v=o.value*(At.details.size/100)*(At.details.browser/100)-Iy,b=s.value-fue;return{width:v,height:b}}),d=ke(()=>{if(Zn?.provider==="webdriverio")return 1;const[p,g]=tr.value,{width:v,height:b}=f.value,w=v>p?1:v/p,E=b>g?1:b/g;return Math.min(1,w,E)}),h=ke(()=>{const p=f.value.width,g=tr.value[0];return`${Math.trunc((p+Iy-g)/2)}px`});return(p,g)=>{const v=vr("tooltip");return ie(),ye("div",iue,[X("div",oue,[at(Ne(_t,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>K(Ace)())},null,512),[[io,K(At).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),at(Ne(_t,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=b=>K(Cce)())},null,512),[[io,K(At).details.main>0],[v,"Hide Right Panel",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=b=>K(Ece)())},null,512),[[io,K(At).details.main===0],[v,"Show Right Panel",void 0,{bottom:!0}]])]),X("div",sue,[at(Ne(_t,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[3]||(g[3]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[4]||(g[4]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[5]||(g[5]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",lue,[Qe(Re(K(tr)[0])+"x"+Re(K(tr)[1])+"px ",1),d.value<1?(ie(),ye("span",aue,"("+Re((d.value*100).toFixed(0))+"%)",1)):He("",!0)])]),X("div",cue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:zt({"--viewport-width":`${K(tr)[0]}px`,"--viewport-height":`${K(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,uue)])])}}}),hue=Oi(due,[["__scopeId","data-v-2e86b8c3"]]),pue={"text-2xl":""},gue={"text-lg":"",op50:""},mue=rt({__name:"ConnectionOverlay",setup(e){return(t,r)=>K(Qce)?He("",!0):(ie(),ye("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)=>K(ft).reconnect&&K(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(K(Pd)?"animate-pulse":"")},[X("div",{text:"5xl",class:ot(K(Pd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",pue,Re(K(Pd)?"Connecting...":"Disconnected"),1),X("div",gue," Check your terminal or start a new server with `"+Re(K(Zn)?`vitest --browser=${K(Zn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),vue={h:"full",flex:"~ col"},yue={"flex-auto":"","py-1":"","bg-white":""},bue=["src"],Dy=rt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ie(),ye("div",vue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon:folder-details-reference"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),X("div",yue,[X("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,bue)])]))}}),wue={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},xue={"font-bold":""},kue={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Sue=["font-bold"],_ue={text:"red500/70"},Tue={key:1,text:"sm","mb-2":""},Cue={"font-bold":""},Eue={key:2,text:"sm","mb-2":""},Aue={"font-bold":""},Lue=rt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(ie(),ye(et,null,[X("h4",wue,[X("span",xue,[Qe(Re(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(ie(),ye(et,{key:0},[Qe(":")],64)):He("",!0)]),Qe(" "+Re(e.error.message),1)]),e.error.stacks?.length?(ie(),ye("p",kue,[(ie(!0),ye(et,null,$n(e.error.stacks,(o,s)=>(ie(),ye("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Qe("❯ "+Re(o.method)+" "+Re(o.file)+":",1),X("span",_ue,Re(o.line)+":"+Re(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,Sue))),128))])):He("",!0),e.error.VITEST_TEST_PATH?(ie(),ye("p",Tue,[r[1]||(r[1]=Qe(" This error originated in ",-1)),X("span",Cue,Re(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):He("",!0),e.error.VITEST_TEST_NAME?(ie(),ye("div",Eue,[r[3]||(r[3]=Qe(" The latest test that might've caused the error is ",-1)),X("span",Aue,Re(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Qe(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):He("",!0)],64))}}),Mue={"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:""},Nue={class:"number","data-testid":"num-files"},Oue={class:"number"},Pue={class:"number","text-red5":""},Rue={class:"number","text-red5":""},$ue={class:"number","text-red5":""},Iue={class:"number","data-testid":"run-time"},Due={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},zue={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Fue={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Hue=rt({__name:"TestFilesEntry",setup(e){return(t,r)=>(ie(),ye(et,null,[X("div",Mue,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",Nue,Re(K(Oe).summary.files),1),K(Oe).summary.filesSuccess?(ie(),ye(et,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",Oue,Re(K(Oe).summary.filesSuccess),1)],64)):He("",!0),K(Oe).summary.filesFailed?(ie(),ye(et,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",Pue,Re(K(Oe).summary.filesFailed),1)],64)):He("",!0),K(Oe).summary.filesSnapshotFailed?(ie(),ye(et,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",Rue,Re(K(Oe).summary.filesSnapshotFailed),1)],64)):He("",!0),K(to).length?(ie(),ye(et,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",$ue,Re(K(to).length),1)],64)):He("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",Iue,Re(K(Oe).summary.time),1)]),K(to).length?(ie(),ye("div",Due,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",zue,[Qe(" Vitest caught "+Re(K(to).length)+" error"+Re(K(to).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",Fue,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ie(!0),ye(et,null,$n(K(to),(o,s)=>(ie(),Ve(Lue,{key:s,error:o},null,8,["error"]))),128))])])):He("",!0)],64))}}),Bue=Oi(Hue,[["__scopeId","data-v-1bd0f2ea"]]),Wue={"p-2":"","text-center":"",flex:""},que={"text-4xl":"","min-w-2em":""},jue={"text-md":""},Wl=rt({__name:"DashboardEntry",setup(e){return(t,r)=>(ie(),ye("div",Wue,[X("div",null,[X("div",que,[Dt(t.$slots,"body")]),X("div",jue,[Dt(t.$slots,"header")])])]))}}),Uue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Vue=rt({__name:"TestsEntry",setup(e){function t(r){it.success=!1,it.failed=!1,it.skipped=!1,r!=="total"&&(it[r]=!0)}return(r,o)=>(ie(),ye("div",Uue,[Ne(Wl,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:We(()=>[...o[4]||(o[4]=[Qe(" Pass ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSuccess),1)]),_:1}),Ne(Wl,{class:ot({"text-red5":K(Oe).summary.testsFailed,op50:!K(Oe).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:We(()=>[...o[5]||(o[5]=[Qe(" Fail ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsFailed),1)]),_:1},8,["class"]),K(Oe).summary.testsSkipped?(ie(),Ve(Wl,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:We(()=>[...o[6]||(o[6]=[Qe(" Skip ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSkipped),1)]),_:1})):He("",!0),K(Oe).summary.testsTodo?(ie(),Ve(Wl,{key:1,op50:"","data-testid":"todo-entry"},{header:We(()=>[...o[7]||(o[7]=[Qe(" Todo ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsTodo),1)]),_:1})):He("",!0),Ne(Wl,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:We(()=>[...o[8]||(o[8]=[Qe(" Total ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.totalTests),1)]),_:1})]))}}),Gue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Kue={key:0,class:"text-gray-5"},Xue={"aria-labelledby":"tests",m:"y-4 x-2"},Yue=rt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(ie(),ye("div",Gue,[K(Oe).summary.files===0&&K(Ns)?(ie(),ye("div",Kue," No tests found ")):He("",!0),X("section",Xue,[Ne(Vue)]),Ne(Bue)]))}}),Zue={h:"full",flex:"~ col"},Jue={class:"scrolls","flex-auto":"","py-1":""},zy=rt({__name:"Dashboard",setup(e){return(t,r)=>(ie(),ye("div",Zue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon-dashboard"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),X("div",Jue,[Ne(Yue)])]))}});function Que(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var bh="http://www.w3.org/1999/xhtml";const Fy={svg:"http://www.w3.org/2000/svg",xhtml:bh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ff(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Fy.hasOwnProperty(t)?{space:Fy[t],local:e}:e}function efe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===bh&&t.documentElement.namespaceURI===bh?t.createElement(e):t.createElementNS(r,e)}}function tfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Mx(e){var t=ff(e);return(t.local?tfe:efe)(t)}function nfe(){}function Tp(e){return e==null?nfe:function(){return this.querySelector(e)}}function rfe(e){typeof e!="function"&&(e=Tp(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,g=0;g<f;++g)(h=c[g])&&(p=e.call(h,h.__data__,g,c))&&("__data__"in h&&(p.__data__=h.__data__),d[g]=p);return new lr(o,this._parents)}function ife(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ofe(){return[]}function Nx(e){return e==null?ofe:function(){return this.querySelectorAll(e)}}function sfe(e){return function(){return ife(e.apply(this,arguments))}}function lfe(e){typeof e=="function"?e=sfe(e):e=Nx(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 Ox(e){return function(){return this.matches(e)}}function Px(e){return function(t){return t.matches(e)}}var afe=Array.prototype.find;function cfe(e){return function(){return afe.call(this.children,e)}}function ufe(){return this.firstElementChild}function ffe(e){return this.select(e==null?ufe:cfe(typeof e=="function"?e:Px(e)))}var dfe=Array.prototype.filter;function hfe(){return Array.from(this.children)}function pfe(e){return function(){return dfe.call(this.children,e)}}function gfe(e){return this.selectAll(e==null?hfe:pfe(typeof e=="function"?e:Px(e)))}function mfe(e){typeof e!="function"&&(e=Ox(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 Rx(e){return new Array(e.length)}function vfe(){return new lr(this._enter||this._groups.map(Rx),this._parents)}function Au(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Au.prototype={constructor:Au,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function yfe(e){return function(){return e}}function bfe(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new Au(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function wfe(e,t,r,o,s,c,f){var d,h,p=new Map,g=t.length,v=c.length,b=new Array(g),w;for(d=0;d<g;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<v;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new Au(e,c[d]);for(d=0;d<g;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function xfe(e){return e.__data__}function kfe(e,t){if(!arguments.length)return Array.from(this,xfe);var r=t?wfe:bfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=yfe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var g=o[p],v=s[p],b=v.length,w=Sfe(e.call(g,g&&g.__data__,p,o)),E=w.length,L=d[p]=new Array(E),P=f[p]=new Array(E),M=h[p]=new Array(b);r(g,v,L,P,M,w,t);for(var R=0,I=0,_,$;R<E;++R)if(_=L[R]){for(R>=I&&(I=R+1);!($=P[I])&&++I<E;);_._next=$||null}}return f=new lr(f,o),f._enter=d,f._exit=h,f}function Sfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _fe(){return new lr(this._exit||this._groups.map(Rx),this._parents)}function Tfe(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 Cfe(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],g=o[h],v=p.length,b=d[h]=new Array(v),w,E=0;E<v;++E)(w=p[E]||g[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new lr(d,this._parents)}function Efe(){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 Afe(e){e||(e=Lfe);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!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,g=0;g<d;++g)(p=f[g])&&(h[g]=p);h.sort(t)}return new lr(s,this._parents).order()}function Lfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Mfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Nfe(){return Array.from(this)}function Ofe(){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 Pfe(){let e=0;for(const t of this)++e;return e}function Rfe(){return!this.node()}function $fe(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 Ife(e){return function(){this.removeAttribute(e)}}function Dfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zfe(e,t){return function(){this.setAttribute(e,t)}}function Ffe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Hfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Bfe(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 Wfe(e,t){var r=ff(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?Dfe:Ife:typeof t=="function"?r.local?Bfe:Hfe:r.local?Ffe:zfe)(r,t))}function $x(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qfe(e){return function(){this.style.removeProperty(e)}}function jfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Ufe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Vfe(e,t,r){return arguments.length>1?this.each((t==null?qfe:typeof t=="function"?Ufe:jfe)(e,t,r??"")):tl(this.node(),e)}function tl(e,t){return e.style.getPropertyValue(t)||$x(e).getComputedStyle(e,null).getPropertyValue(t)}function Gfe(e){return function(){delete this[e]}}function Kfe(e,t){return function(){this[e]=t}}function Xfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Yfe(e,t){return arguments.length>1?this.each((t==null?Gfe:typeof t=="function"?Xfe:Kfe)(e,t)):this.node()[e]}function Ix(e){return e.trim().split(/^|\s+/)}function Cp(e){return e.classList||new Dx(e)}function Dx(e){this._node=e,this._names=Ix(e.getAttribute("class")||"")}Dx.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 zx(e,t){for(var r=Cp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Fx(e,t){for(var r=Cp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Zfe(e){return function(){zx(this,e)}}function Jfe(e){return function(){Fx(this,e)}}function Qfe(e,t){return function(){(t.apply(this,arguments)?zx:Fx)(this,e)}}function ede(e,t){var r=Ix(e+"");if(arguments.length<2){for(var o=Cp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Qfe:t?Zfe:Jfe)(r,t))}function tde(){this.textContent=""}function nde(e){return function(){this.textContent=e}}function rde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ide(e){return arguments.length?this.each(e==null?tde:(typeof e=="function"?rde:nde)(e)):this.node().textContent}function ode(){this.innerHTML=""}function sde(e){return function(){this.innerHTML=e}}function lde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ade(e){return arguments.length?this.each(e==null?ode:(typeof e=="function"?lde:sde)(e)):this.node().innerHTML}function cde(){this.nextSibling&&this.parentNode.appendChild(this)}function ude(){return this.each(cde)}function fde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function dde(){return this.each(fde)}function hde(e){var t=typeof e=="function"?e:Mx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function pde(){return null}function gde(e,t){var r=typeof e=="function"?e:Mx(e),o=t==null?pde:typeof t=="function"?t:Tp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function mde(){var e=this.parentNode;e&&e.removeChild(this)}function vde(){return this.each(mde)}function yde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function bde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wde(e){return this.select(e?bde:yde)}function xde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function kde(e){return function(t){e.call(this,t,this.__data__)}}function Sde(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 _de(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 Tde(e,t,r){return function(){var o=this.__on,s,c=kde(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 Cde(e,t,r){var o=Sde(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,g;h<p;++h)for(s=0,g=d[h];s<c;++s)if((f=o[s]).type===g.type&&f.name===g.name)return g.value}return}for(d=t?Tde:_de,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Hx(e,t,r){var o=$x(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 Ede(e,t){return function(){return Hx(this,e,t)}}function Ade(e,t){return function(){return Hx(this,e,t.apply(this,arguments))}}function Lde(e,t){return this.each((typeof t=="function"?Ade:Ede)(e,t))}function*Mde(){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 Bx=[null];function lr(e,t){this._groups=e,this._parents=t}function ja(){return new lr([[document.documentElement]],Bx)}function Nde(){return this}lr.prototype=ja.prototype={constructor:lr,select:rfe,selectAll:lfe,selectChild:ffe,selectChildren:gfe,filter:mfe,data:kfe,enter:vfe,exit:_fe,join:Tfe,merge:Cfe,selection:Nde,order:Efe,sort:Afe,call:Mfe,nodes:Nfe,node:Ofe,size:Pfe,empty:Rfe,each:$fe,attr:Wfe,style:Vfe,property:Yfe,classed:ede,text:ide,html:ade,raise:ude,lower:dde,append:hde,insert:gde,remove:vde,clone:wde,datum:xde,on:Cde,dispatch:Lde,[Symbol.iterator]:Mde};function Kn(e){return typeof e=="string"?new lr([[document.querySelector(e)]],[document.documentElement]):new lr([[e]],Bx)}function Ode(e){let t;for(;t=e.sourceEvent;)e=t;return e}function vi(e,t){if(e=Ode(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 nl=class gi{x;y;static of([t,r]){return new gi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new gi(this.x+t.x,this.y+t.y)}subtract(t){return new gi(this.x-t.x,this.y-t.y)}multiply(t){return new gi(this.x*t,this.y*t)}divide(t){return new gi(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 gi(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 gi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new gi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Pde={value:()=>{}};function Ua(){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 Zc(r)}function Zc(e){this._=e}function Rde(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}})}Zc.prototype=Ua.prototype={constructor:Zc,on:function(e,t){var r=this._,o=Rde(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=$de(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]=Hy(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Hy(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 Zc(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 $de(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Hy(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Pde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ide={passive:!1},Ca={capture:!0,passive:!1};function Rd(e){e.stopImmediatePropagation()}function Us(e){e.preventDefault(),e.stopImmediatePropagation()}function Wx(e){var t=e.document.documentElement,r=Kn(e).on("dragstart.drag",Us,Ca);"onselectstart"in t?r.on("selectstart.drag",Us,Ca):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function qx(e,t){var r=e.document.documentElement,o=Kn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Us,Ca),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 Ic=e=>()=>e;function wh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value: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:g}})}wh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Dde(e){return!e.ctrlKey&&!e.button}function zde(){return this.parentNode}function Fde(e,t){return t??{x:e.x,y:e.y}}function Hde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bde(){var e=Dde,t=zde,r=Fde,o=Hde,s={},c=Ua("start","drag","end"),f=0,d,h,p,g,v=0;function b(_){_.on("mousedown.drag",w).filter(o).on("touchstart.drag",P).on("touchmove.drag",M,Ide).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(_,$){if(!(g||!e.call(this,_,$))){var j=I(this,t.call(this,_,$),_,$,"mouse");j&&(Kn(_.view).on("mousemove.drag",E,Ca).on("mouseup.drag",L,Ca),Wx(_.view),Rd(_),p=!1,d=_.clientX,h=_.clientY,j("start",_))}}function E(_){if(Us(_),!p){var $=_.clientX-d,j=_.clientY-h;p=$*$+j*j>v}s.mouse("drag",_)}function L(_){Kn(_.view).on("mousemove.drag mouseup.drag",null),qx(_.view,p),Us(_),s.mouse("end",_)}function P(_,$){if(e.call(this,_,$)){var j=_.changedTouches,re=t.call(this,_,$),ee=j.length,Z,G;for(Z=0;Z<ee;++Z)(G=I(this,re,_,$,j[Z].identifier,j[Z]))&&(Rd(_),G("start",_,j[Z]))}}function M(_){var $=_.changedTouches,j=$.length,re,ee;for(re=0;re<j;++re)(ee=s[$[re].identifier])&&(Us(_),ee("drag",_,$[re]))}function R(_){var $=_.changedTouches,j=$.length,re,ee;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),re=0;re<j;++re)(ee=s[$[re].identifier])&&(Rd(_),ee("end",_,$[re]))}function I(_,$,j,re,ee,Z){var G=c.copy(),q=vi(Z||j,$),O,N,C;if((C=r.call(_,new wh("beforestart",{sourceEvent:j,target:b,identifier:ee,active:f,x:q[0],y:q[1],dx:0,dy:0,dispatch:G}),re))!=null)return O=C.x-q[0]||0,N=C.y-q[1]||0,function k(z,B,ae){var me=q,Se;switch(z){case"start":s[ee]=k,Se=f++;break;case"end":delete s[ee],--f;case"drag":q=vi(ae||B,$),Se=f;break}G.call(z,_,new wh(z,{sourceEvent:B,subject:C,target:b,identifier:ee,active:Se,x:q[0]+O,y:q[1]+N,dx:q[0]-me[0],dy:q[1]-me[1],dispatch:G}),re)}}return b.filter=function(_){return arguments.length?(e=typeof _=="function"?_:Ic(!!_),b):e},b.container=function(_){return arguments.length?(t=typeof _=="function"?_:Ic(_),b):t},b.subject=function(_){return arguments.length?(r=typeof _=="function"?_:Ic(_),b):r},b.touchable=function(_){return arguments.length?(o=typeof _=="function"?_:Ic(!!_),b):o},b.on=function(){var _=c.on.apply(c,arguments);return _===c?b:_},b.clickDistance=function(_){return arguments.length?(v=(_=+_)*_,b):Math.sqrt(v)},b}function Ep(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function jx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Va(){}var Ea=.7,Lu=1/Ea,Vs="\\s*([+-]?\\d+)\\s*",Aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wde=/^#([0-9a-f]{3,8})$/,qde=new RegExp(`^rgb\\(${Vs},${Vs},${Vs}\\)$`),jde=new RegExp(`^rgb\\(${Jr},${Jr},${Jr}\\)$`),Ude=new RegExp(`^rgba\\(${Vs},${Vs},${Vs},${Aa}\\)$`),Vde=new RegExp(`^rgba\\(${Jr},${Jr},${Jr},${Aa}\\)$`),Gde=new RegExp(`^hsl\\(${Aa},${Jr},${Jr}\\)$`),Kde=new RegExp(`^hsla\\(${Aa},${Jr},${Jr},${Aa}\\)$`),By={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};Ep(Va,La,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wy,formatHex:Wy,formatHex8:Xde,formatHsl:Yde,formatRgb:qy,toString:qy});function Wy(){return this.rgb().formatHex()}function Xde(){return this.rgb().formatHex8()}function Yde(){return Ux(this).formatHsl()}function qy(){return this.rgb().formatRgb()}function La(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?jy(t):r===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dc(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=qde.exec(e))?new Yn(t[1],t[2],t[3],1):(t=jde.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ude.exec(e))?Dc(t[1],t[2],t[3],t[4]):(t=Vde.exec(e))?Dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gde.exec(e))?Gy(t[1],t[2]/100,t[3]/100,1):(t=Kde.exec(e))?Gy(t[1],t[2]/100,t[3]/100,t[4]):By.hasOwnProperty(e)?jy(By[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function jy(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function Dc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Yn(e,t,r,o)}function Zde(e){return e instanceof Va||(e=La(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function xh(e,t,r,o){return arguments.length===1?Zde(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}Ep(Yn,xh,jx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ea:Math.pow(Ea,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Go(this.r),Go(this.g),Go(this.b),Mu(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:Uy,formatHex:Uy,formatHex8:Jde,formatRgb:Vy,toString:Vy}));function Uy(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}`}function Jde(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}${Wo((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vy(){const e=Mu(this.opacity);return`${e===1?"rgb(":"rgba("}${Go(this.r)}, ${Go(this.g)}, ${Go(this.b)}${e===1?")":`, ${e})`}`}function Mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Go(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wo(e){return e=Go(e),(e<16?"0":"")+e.toString(16)}function Gy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,r,o)}function Ux(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=La(e)),!e)return new Mr;if(e instanceof Mr)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 Mr(f,d,h,e.opacity)}function Qde(e,t,r,o){return arguments.length===1?Ux(e):new Mr(e,t,r,o??1)}function Mr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Ep(Mr,Qde,jx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ea:Math.pow(Ea,e),new Mr(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($d(e>=240?e-240:e+120,s,o),$d(e,s,o),$d(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Mr(Ky(this.h),zc(this.s),zc(this.l),Mu(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=Mu(this.opacity);return`${e===1?"hsl(":"hsla("}${Ky(this.h)}, ${zc(this.s)*100}%, ${zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ky(e){return e=(e||0)%360,e<0?e+360:e}function zc(e){return Math.max(0,Math.min(1,e||0))}function $d(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 Vx=e=>()=>e;function ehe(e,t){return function(r){return e+r*t}}function the(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 nhe(e){return(e=+e)==1?Gx:function(t,r){return r-t?the(t,r,e):Vx(isNaN(t)?r:t)}}function Gx(e,t){var r=t-e;return r?ehe(e,r):Vx(isNaN(e)?t:e)}const Xy=(function e(t){var r=nhe(t);function o(s,c){var f=r((s=xh(s)).r,(c=xh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=Gx(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function no(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Id=new RegExp(kh.source,"g");function rhe(e){return function(){return e}}function ihe(e){return function(t){return e(t)+""}}function ohe(e,t){var r=kh.lastIndex=Id.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=kh.exec(e))&&(s=Id.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:no(o,s)})),r=Id.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?ihe(h[0].x):rhe(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)d[(v=h[g]).i]=v.x(p);return d.join("")})}var Yy=180/Math.PI,Sh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Kx(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)*Yy,skewX:Math.atan(h)*Yy,scaleX:f,scaleY:d}}var Fc;function she(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Sh:Kx(t.a,t.b,t.c,t.d,t.e,t.f)}function lhe(e){return e==null||(Fc||(Fc=document.createElementNS("http://www.w3.org/2000/svg","g")),Fc.setAttribute("transform",e),!(e=Fc.transform.baseVal.consolidate()))?Sh:(e=e.matrix,Kx(e.a,e.b,e.c,e.d,e.e,e.f))}function Xx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,g,v,b,w,E){if(p!==v||g!==b){var L=w.push("translate(",null,t,null,r);E.push({i:L-4,x:no(p,v)},{i:L-2,x:no(g,b)})}else(v||b)&&w.push("translate("+v+t+b+r)}function f(p,g,v,b){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:no(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:no(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,w,E){if(p!==v||g!==b){var L=w.push(s(w)+"scale(",null,",",null,")");E.push({i:L-4,x:no(p,v)},{i:L-2,x:no(g,b)})}else(v!==1||b!==1)&&w.push(s(w)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(w){for(var E=-1,L=b.length,P;++E<L;)v[(P=b[E]).i]=P.x(w);return v.join("")}}}var ahe=Xx(she,"px, ","px)","deg)"),che=Xx(lhe,", ",")",")"),uhe=1e-12;function Zy(e){return((e=Math.exp(e))+1/e)/2}function fhe(e){return((e=Math.exp(e))-1/e)/2}function dhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const hhe=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],g=f[0],v=f[1],b=f[2],w=g-d,E=v-h,L=w*w+E*E,P,M;if(L<uhe)M=Math.log(b/p)/t,P=function(re){return[d+re*w,h+re*E,p*Math.exp(t*re*M)]};else{var R=Math.sqrt(L),I=(b*b-p*p+o*L)/(2*p*r*R),_=(b*b-p*p-o*L)/(2*b*r*R),$=Math.log(Math.sqrt(I*I+1)-I),j=Math.log(Math.sqrt(_*_+1)-_);M=(j-$)/t,P=function(re){var ee=re*M,Z=Zy($),G=p/(r*R)*(Z*dhe(t*ee+$)-fhe($));return[d+G*w,h+G*E,p*Z/Zy(t*ee+$)]}}return P.duration=M*1e3*t/Math.SQRT2,P}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 rl=0,Gl=0,ql=0,Yx=1e3,Nu,Kl,Ou=0,Xo=0,df=0,Ma=typeof performance=="object"&&performance.now?performance:Date,Zx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ap(){return Xo||(Zx(phe),Xo=Ma.now()+df)}function phe(){Xo=0}function Pu(){this._call=this._time=this._next=null}Pu.prototype=Lp.prototype={constructor:Pu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Ap():+r)+(t==null?0:+t),!this._next&&Kl!==this&&(Kl?Kl._next=this:Nu=this,Kl=this),this._call=e,this._time=r,_h()},stop:function(){this._call&&(this._call=null,this._time=1/0,_h())}};function Lp(e,t,r){var o=new Pu;return o.restart(e,t,r),o}function ghe(){Ap(),++rl;for(var e=Nu,t;e;)(t=Xo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--rl}function Jy(){Xo=(Ou=Ma.now())+df,rl=Gl=0;try{ghe()}finally{rl=0,vhe(),Xo=0}}function mhe(){var e=Ma.now(),t=e-Ou;t>Yx&&(df-=t,Ou=e)}function vhe(){for(var e,t=Nu,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:Nu=r);Kl=e,_h(o)}function _h(e){if(!rl){Gl&&(Gl=clearTimeout(Gl));var t=e-Xo;t>24?(e<1/0&&(Gl=setTimeout(Jy,e-Ma.now()-df)),ql&&(ql=clearInterval(ql))):(ql||(Ou=Ma.now(),ql=setInterval(mhe,Yx)),rl=1,Zx(Jy))}}function Qy(e,t,r){var o=new Pu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var yhe=Ua("start","end","cancel","interrupt"),bhe=[],Jx=0,e0=1,Th=2,Jc=3,t0=4,Ch=5,Qc=6;function hf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;whe(e,r,{name:t,index:o,group:s,on:yhe,tween:bhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Jx})}function Mp(e,t){var r=Fr(e,t);if(r.state>Jx)throw new Error("too late; already scheduled");return r}function ni(e,t){var r=Fr(e,t);if(r.state>Jc)throw new Error("too late; already running");return r}function Fr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function whe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Lp(c,0,r.time);function c(p){r.state=e0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,w;if(r.state!==e0)return h();for(g in o)if(w=o[g],w.name===r.name){if(w.state===Jc)return Qy(f);w.state===t0?(w.state=Qc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[g]):+g<t&&(w.state=Qc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[g])}if(Qy(function(){r.state===Jc&&(r.state=t0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Th,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Th){for(r.state=Jc,s=new Array(b=r.tween.length),g=0,v=-1;g<b;++g)(w=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++v]=w);s.length=v+1}}function d(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Ch,1),v=-1,b=s.length;++v<b;)s[v].call(e,g);r.state===Ch&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Qc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function eu(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>Th&&o.state<Ch,o.state=Qc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function xhe(e){return this.each(function(){eu(this,e)})}function khe(e,t){var r,o;return function(){var s=ni(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 She(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=ni(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 _he(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Fr(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?khe:She)(r,e,t))}function Np(e,t,r){var o=e._id;return e.each(function(){var s=ni(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Fr(s,o).value[t]}}function Qx(e,t){var r;return(typeof t=="number"?no:t instanceof La?Xy:(r=La(t))?(t=r,Xy):ohe)(e,t)}function The(e){return function(){this.removeAttribute(e)}}function Che(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ehe(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 Ahe(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 Lhe(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 Mhe(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 Nhe(e,t){var r=ff(e),o=r==="transform"?che:Qx;return this.attrTween(e,typeof t=="function"?(r.local?Mhe:Lhe)(r,o,Np(this,"attr."+e,t)):t==null?(r.local?Che:The)(r):(r.local?Ahe:Ehe)(r,o,t))}function Ohe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Phe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Rhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Phe(e,c)),r}return s._value=t,s}function $he(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Ohe(e,c)),r}return s._value=t,s}function Ihe(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=ff(e);return this.tween(r,(o.local?Rhe:$he)(o,t))}function Dhe(e,t){return function(){Mp(this,e).delay=+t.apply(this,arguments)}}function zhe(e,t){return t=+t,function(){Mp(this,e).delay=t}}function Fhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Dhe:zhe)(t,e)):Fr(this.node(),t).delay}function Hhe(e,t){return function(){ni(this,e).duration=+t.apply(this,arguments)}}function Bhe(e,t){return t=+t,function(){ni(this,e).duration=t}}function Whe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Hhe:Bhe)(t,e)):Fr(this.node(),t).duration}function qhe(e,t){if(typeof t!="function")throw new Error;return function(){ni(this,e).ease=t}}function jhe(e){var t=this._id;return arguments.length?this.each(qhe(t,e)):Fr(this.node(),t).ease}function Uhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ni(this,e).ease=r}}function Vhe(e){if(typeof e!="function")throw new Error;return this.each(Uhe(this._id,e))}function Ghe(e){typeof e!="function"&&(e=Ox(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 Ai(o,this._parents,this._name,this._id)}function Khe(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],g=h.length,v=f[d]=new Array(g),b,w=0;w<g;++w)(b=h[w]||p[w])&&(v[w]=b);for(;d<o;++d)f[d]=t[d];return new Ai(f,this._parents,this._name,this._id)}function Xhe(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 Yhe(e,t,r){var o,s,c=Xhe(t)?Mp:ni;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Zhe(e,t){var r=this._id;return arguments.length<2?Fr(this.node(),r).on.on(e):this.each(Yhe(r,e,t))}function Jhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Qhe(){return this.on("end.remove",Jhe(this._id))}function epe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Tp(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),g,v,b=0;b<h;++b)(g=d[b])&&(v=e.call(g,g.__data__,b,d))&&("__data__"in g&&(v.__data__=g.__data__),p[b]=v,hf(p[b],t,r,b,p,Fr(g,r)));return new Ai(c,this._parents,t,r)}function tpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Nx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var b=e.call(g,g.__data__,v,h),w,E=Fr(g,r),L=0,P=b.length;L<P;++L)(w=b[L])&&hf(w,t,r,L,b,E);c.push(b),f.push(g)}return new Ai(c,f,t,r)}var npe=ja.prototype.constructor;function rpe(){return new npe(this._groups,this._parents)}function ipe(e,t){var r,o,s;return function(){var c=tl(this,e),f=(this.style.removeProperty(e),tl(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function e1(e){return function(){this.style.removeProperty(e)}}function ope(e,t,r){var o,s=r+"",c;return function(){var f=tl(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function spe(e,t,r){var o,s,c;return function(){var f=tl(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),tl(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function lpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=ni(this,e),p=h.on,g=h.value[c]==null?d||(d=e1(t)):void 0;(p!==r||s!==g)&&(o=(r=p).copy()).on(f,s=g),h.on=o}}function ape(e,t,r){var o=(e+="")=="transform"?ahe:Qx;return t==null?this.styleTween(e,ipe(e,o)).on("end.style."+e,e1(e)):typeof t=="function"?this.styleTween(e,spe(e,o,Np(this,"style."+e,t))).each(lpe(this._id,e)):this.styleTween(e,ope(e,o,t),r).on("end.style."+e,null)}function cpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function upe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&cpe(e,f,r)),o}return c._value=t,c}function fpe(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,upe(e,t,r??""))}function dpe(e){return function(){this.textContent=e}}function hpe(e){return function(){var t=e(this);this.textContent=t??""}}function ppe(e){return this.tween("text",typeof e=="function"?hpe(Np(this,"text",e)):dpe(e==null?"":e+""))}function gpe(e){return function(t){this.textContent=e.call(this,t)}}function mpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&gpe(s)),t}return o._value=e,o}function vpe(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,mpe(e))}function ype(){for(var e=this._name,t=this._id,r=t1(),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 g=Fr(h,t);hf(h,e,r,p,f,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Ai(o,this._parents,e,r)}function bpe(){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=ni(this,o),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var wpe=0;function Ai(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function t1(){return++wpe}var hi=ja.prototype;Ai.prototype={constructor:Ai,select:epe,selectAll:tpe,selectChild:hi.selectChild,selectChildren:hi.selectChildren,filter:Ghe,merge:Khe,selection:rpe,transition:ype,call:hi.call,nodes:hi.nodes,node:hi.node,size:hi.size,empty:hi.empty,each:hi.each,on:Zhe,attr:Nhe,attrTween:Ihe,style:ape,styleTween:fpe,text:ppe,textTween:vpe,remove:Qhe,tween:_he,delay:Fhe,duration:Whe,ease:jhe,easeVarying:Vhe,end:bpe,[Symbol.iterator]:hi[Symbol.iterator]};function xpe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var kpe={time:null,delay:0,duration:250,ease:xpe};function Spe(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 _pe(e){var t,r;e instanceof Ai?(t=e._id,e=e._name):(t=t1(),(r=kpe).time=Ap(),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])&&hf(h,e,t,p,f,r||Spe(h,t));return new Ai(o,this._parents,e,t)}ja.prototype.interrupt=xhe;ja.prototype.transition=_pe;const Hc=e=>()=>e;function Tpe(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 ki(e,t,r){this.k=e,this.x=t,this.y=r}ki.prototype={constructor:ki,scale:function(e){return e===1?this:new ki(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ki(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 Op=new ki(1,0,0);ki.prototype;function Dd(e){e.stopImmediatePropagation()}function jl(e){e.preventDefault(),e.stopImmediatePropagation()}function Cpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Epe(){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 n0(){return this.__zoom||Op}function Ape(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Lpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mpe(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 Npe(){var e=Cpe,t=Epe,r=Mpe,o=Ape,s=Lpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=hhe,p=Ua("start","zoom","end"),g,v,b,w=500,E=150,L=0,P=10;function M(C){C.property("__zoom",n0).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",q).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",N).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(C,k,z,B){var ae=C.selection?C.selection():C;ae.property("__zoom",n0),C!==ae?$(C,k,z,B):ae.interrupt().each(function(){j(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},M.scaleBy=function(C,k,z,B){M.scaleTo(C,function(){var ae=this.__zoom.k,me=typeof k=="function"?k.apply(this,arguments):k;return ae*me},z,B)},M.scaleTo=function(C,k,z,B){M.transform(C,function(){var ae=t.apply(this,arguments),me=this.__zoom,Se=z==null?_(ae):typeof z=="function"?z.apply(this,arguments):z,Be=me.invert(Se),Ae=typeof k=="function"?k.apply(this,arguments):k;return r(I(R(me,Ae),Se,Be),ae,f)},z,B)},M.translateBy=function(C,k,z,B){M.transform(C,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),f)},null,B)},M.translateTo=function(C,k,z,B,ae){M.transform(C,function(){var me=t.apply(this,arguments),Se=this.__zoom,Be=B==null?_(me):typeof B=="function"?B.apply(this,arguments):B;return r(Op.translate(Be[0],Be[1]).scale(Se.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof z=="function"?-z.apply(this,arguments):-z),me,f)},B,ae)};function R(C,k){return k=Math.max(c[0],Math.min(c[1],k)),k===C.k?C:new ki(k,C.x,C.y)}function I(C,k,z){var B=k[0]-z[0]*C.k,ae=k[1]-z[1]*C.k;return B===C.x&&ae===C.y?C:new ki(C.k,B,ae)}function _(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function $(C,k,z,B){C.on("start.zoom",function(){j(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,me=arguments,Se=j(ae,me).event(B),Be=t.apply(ae,me),Ae=z==null?_(Be):typeof z=="function"?z.apply(ae,me):z,Ke=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),je=ae.__zoom,Fe=typeof k=="function"?k.apply(ae,me):k,Pe=h(je.invert(Ae).concat(Ke/je.k),Fe.invert(Ae).concat(Ke/Fe.k));return function(F){if(F===1)F=Fe;else{var Y=Pe(F),ne=Ke/Y[2];F=new ki(ne,Ae[0]-Y[0]*ne,Ae[1]-Y[1]*ne)}Se.zoom(null,F)}})}function j(C,k,z){return!z&&C.__zooming||new re(C,k)}function re(C,k){this.that=C,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,k),this.taps=0}re.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,k){return this.mouse&&C!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var k=Kn(this.that).datum();p.call(C,this.that,new Tpe(C,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),k)}};function ee(C,...k){if(!e.apply(this,arguments))return;var z=j(this,k).event(C),B=this.__zoom,ae=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),me=vi(C);if(z.wheel)(z.mouse[0][0]!==me[0]||z.mouse[0][1]!==me[1])&&(z.mouse[1]=B.invert(z.mouse[0]=me)),clearTimeout(z.wheel);else{if(B.k===ae)return;z.mouse=[me,B.invert(me)],eu(this),z.start()}jl(C),z.wheel=setTimeout(Se,E),z.zoom("mouse",r(I(R(B,ae),z.mouse[0],z.mouse[1]),z.extent,f));function Se(){z.wheel=null,z.end()}}function Z(C,...k){if(b||!e.apply(this,arguments))return;var z=C.currentTarget,B=j(this,k,!0).event(C),ae=Kn(C.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),me=vi(C,z),Se=C.clientX,Be=C.clientY;Wx(C.view),Dd(C),B.mouse=[me,this.__zoom.invert(me)],eu(this),B.start();function Ae(je){if(jl(je),!B.moved){var Fe=je.clientX-Se,Pe=je.clientY-Be;B.moved=Fe*Fe+Pe*Pe>L}B.event(je).zoom("mouse",r(I(B.that.__zoom,B.mouse[0]=vi(je,z),B.mouse[1]),B.extent,f))}function Ke(je){ae.on("mousemove.zoom mouseup.zoom",null),qx(je.view,B.moved),jl(je),B.event(je).end()}}function G(C,...k){if(e.apply(this,arguments)){var z=this.__zoom,B=vi(C.changedTouches?C.changedTouches[0]:C,this),ae=z.invert(B),me=z.k*(C.shiftKey?.5:2),Se=r(I(R(z,me),B,ae),t.apply(this,k),f);jl(C),d>0?Kn(this).transition().duration(d).call($,Se,B,C):Kn(this).call(M.transform,Se,B,C)}}function q(C,...k){if(e.apply(this,arguments)){var z=C.touches,B=z.length,ae=j(this,k,C.changedTouches.length===B).event(C),me,Se,Be,Ae;for(Dd(C),Se=0;Se<B;++Se)Be=z[Se],Ae=vi(Be,this),Ae=[Ae,this.__zoom.invert(Ae),Be.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ae[2]&&(ae.touch1=Ae,ae.taps=0):(ae.touch0=Ae,me=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),me&&(ae.taps<2&&(v=Ae[0],g=setTimeout(function(){g=null},w)),eu(this),ae.start())}}function O(C,...k){if(this.__zooming){var z=j(this,k).event(C),B=C.changedTouches,ae=B.length,me,Se,Be,Ae;for(jl(C),me=0;me<ae;++me)Se=B[me],Be=vi(Se,this),z.touch0&&z.touch0[2]===Se.identifier?z.touch0[0]=Be:z.touch1&&z.touch1[2]===Se.identifier&&(z.touch1[0]=Be);if(Se=z.that.__zoom,z.touch1){var Ke=z.touch0[0],je=z.touch0[1],Fe=z.touch1[0],Pe=z.touch1[1],F=(F=Fe[0]-Ke[0])*F+(F=Fe[1]-Ke[1])*F,Y=(Y=Pe[0]-je[0])*Y+(Y=Pe[1]-je[1])*Y;Se=R(Se,Math.sqrt(F/Y)),Be=[(Ke[0]+Fe[0])/2,(Ke[1]+Fe[1])/2],Ae=[(je[0]+Pe[0])/2,(je[1]+Pe[1])/2]}else if(z.touch0)Be=z.touch0[0],Ae=z.touch0[1];else return;z.zoom("touch",r(I(Se,Be,Ae),z.extent,f))}}function N(C,...k){if(this.__zooming){var z=j(this,k).event(C),B=C.changedTouches,ae=B.length,me,Se;for(Dd(C),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),me=0;me<ae;++me)Se=B[me],z.touch0&&z.touch0[2]===Se.identifier?delete z.touch0:z.touch1&&z.touch1[2]===Se.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&&(Se=vi(Se,this),Math.hypot(v[0]-Se[0],v[1]-Se[1])<P)){var Be=Kn(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return M.wheelDelta=function(C){return arguments.length?(o=typeof C=="function"?C:Hc(+C),M):o},M.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Hc(!!C),M):e},M.touchable=function(C){return arguments.length?(s=typeof C=="function"?C:Hc(!!C),M):s},M.extent=function(C){return arguments.length?(t=typeof C=="function"?C:Hc([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),M):t},M.scaleExtent=function(C){return arguments.length?(c[0]=+C[0],c[1]=+C[1],M):[c[0],c[1]]},M.translateExtent=function(C){return arguments.length?(f[0][0]=+C[0][0],f[1][0]=+C[1][0],f[0][1]=+C[0][1],f[1][1]=+C[1][1],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(C){return arguments.length?(r=C,M):r},M.duration=function(C){return arguments.length?(d=+C,M):d},M.interpolate=function(C){return arguments.length?(h=C,M):h},M.on=function(){var C=p.on.apply(p,arguments);return C===p?M:C},M.clickDistance=function(C){return arguments.length?(L=(C=+C)*C,M):Math.sqrt(L)},M.tapDistance=function(C){return arguments.length?(P=+C,M):P},M}function Ope(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return n1(this.cover(t,r),t,r,e)}function n1(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,g=e._y1,v,b,w,E,L,P,M,R;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[M=P<<1|L]))return s[M]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b;while((M=P<<1|L)===(R=(E>=b)<<1|w>=v));return s[R]=c,s[M]=f,e}function Ppe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-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>g&&(g=s),c<p&&(p=c),c>v&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;r<o;++r)n1(this,f[r],d[r],e[r]);return this}function Rpe(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 $pe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ipe(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 Rn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Dpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,g=this._x1,v=this._y1,b=[],w=this._root,E,L;for(w&&b.push(new Rn(w,s,c,g,v)),r==null?r=1/0:(s=e-r,c=t-r,g=e+r,v=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>g||(d=E.y0)>v||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var P=(f+h)/2,M=(d+p)/2;b.push(new Rn(w[3],P,M,h,p),new Rn(w[2],f,M,P,p),new Rn(w[1],P,d,h,M),new Rn(w[0],f,d,P,M)),(L=(t>=M)<<1|e>=P)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=E)}else{var R=e-+this._x.call(null,w.data),I=t-+this._y.call(null,w.data),_=R*R+I*I;if(_<r){var $=Math.sqrt(r=_);s=e-$,c=t-$,g=e+$,v=t+$,o=w.data}}return o}function zpe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+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,g,v,b,w,E,L,P,M;if(!r)return this;if(r.length)for(;;){if((E=g>=(b=(f+h)/2))?f=b:h=b,(L=v>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[P=L<<1|E]))return this;if(!r.length)break;(t[P+1&3]||t[P+2&3]||t[P+3&3])&&(o=t,M=P)}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[P]=c:delete t[P],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function Fpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Hpe(){return this._root}function Bpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Wpe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Rn(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,g=(f+h)/2;(s=o[3])&&t.push(new Rn(s,p,g,d,h)),(s=o[2])&&t.push(new Rn(s,c,g,p,h)),(s=o[1])&&t.push(new Rn(s,p,f,d,g)),(s=o[0])&&t.push(new Rn(s,c,f,p,g))}return this}function qpe(e){var t=[],r=[],o;for(this._root&&t.push(new Rn(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,g=(f+h)/2,v=(d+p)/2;(c=s[0])&&t.push(new Rn(c,f,d,g,v)),(c=s[1])&&t.push(new Rn(c,g,d,h,v)),(c=s[2])&&t.push(new Rn(c,f,v,g,p)),(c=s[3])&&t.push(new Rn(c,g,v,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function jpe(e){return e[0]}function Upe(e){return arguments.length?(this._x=e,this):this._x}function Vpe(e){return e[1]}function Gpe(e){return arguments.length?(this._y=e,this):this._y}function Pp(e,t,r){var o=new Rp(t??jpe,r??Vpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Rp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function r0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=Pp.prototype=Rp.prototype;zn.copy=function(){var e=new Rp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=r0(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]=r0(o));return e};zn.add=Ope;zn.addAll=Ppe;zn.cover=Rpe;zn.data=$pe;zn.extent=Ipe;zn.find=Dpe;zn.remove=zpe;zn.removeAll=Fpe;zn.root=Hpe;zn.size=Bpe;zn.visit=Wpe;zn.visitAfter=qpe;zn.x=Upe;zn.y=Gpe;function Dn(e){return function(){return e}}function oo(e){return(e()-.5)*1e-6}function Kpe(e){return e.x+e.vx}function Xpe(e){return e.y+e.vy}function Ype(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Dn(e==null?1:+e));function f(){for(var p,g=t.length,v,b,w,E,L,P,M=0;M<c;++M)for(v=Pp(t,Kpe,Xpe).visitAfter(d),p=0;p<g;++p)b=t[p],L=r[b.index],P=L*L,w=b.x+b.vx,E=b.y+b.vy,v.visit(R);function R(I,_,$,j,re){var ee=I.data,Z=I.r,G=L+Z;if(ee){if(ee.index>b.index){var q=w-ee.x-ee.vx,O=E-ee.y-ee.vy,N=q*q+O*O;N<G*G&&(q===0&&(q=oo(o),N+=q*q),O===0&&(O=oo(o),N+=O*O),N=(G-(N=Math.sqrt(N)))/N*s,b.vx+=(q*=N)*(G=(Z*=Z)/(P+Z)),b.vy+=(O*=N)*G,ee.vx-=q*(G=1-G),ee.vy-=O*G)}return}return _>w+G||j<w-G||$>E+G||re<E-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p<g;++p)v=t[p],r[v.index]=+e(v,p,t)}}return f.initialize=function(p,g){t=p,o=g,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:Dn(+p),h(),f):e},f}function Zpe(e){return e.index}function i0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Jpe(e){var t=Zpe,r=v,o,s=Dn(30),c,f,d,h,p,g=1;e==null&&(e=[]);function v(P){return 1/Math.min(d[P.source.index],d[P.target.index])}function b(P){for(var M=0,R=e.length;M<g;++M)for(var I=0,_,$,j,re,ee,Z,G;I<R;++I)_=e[I],$=_.source,j=_.target,re=j.x+j.vx-$.x-$.vx||oo(p),ee=j.y+j.vy-$.y-$.vy||oo(p),Z=Math.sqrt(re*re+ee*ee),Z=(Z-c[I])/Z*P*o[I],re*=Z,ee*=Z,j.vx-=re*(G=h[I]),j.vy-=ee*G,$.vx+=re*(G=1-G),$.vy+=ee*G}function w(){if(f){var P,M=f.length,R=e.length,I=new Map(f.map(($,j)=>[t($,j,f),$])),_;for(P=0,d=new Array(M);P<R;++P)_=e[P],_.index=P,typeof _.source!="object"&&(_.source=i0(I,_.source)),typeof _.target!="object"&&(_.target=i0(I,_.target)),d[_.source.index]=(d[_.source.index]||0)+1,d[_.target.index]=(d[_.target.index]||0)+1;for(P=0,h=new Array(R);P<R;++P)_=e[P],h[P]=d[_.source.index]/(d[_.source.index]+d[_.target.index]);o=new Array(R),E(),c=new Array(R),L()}}function E(){if(f)for(var P=0,M=e.length;P<M;++P)o[P]=+r(e[P],P,e)}function L(){if(f)for(var P=0,M=e.length;P<M;++P)c[P]=+s(e[P],P,e)}return b.initialize=function(P,M){f=P,p=M,w()},b.links=function(P){return arguments.length?(e=P,w(),b):e},b.id=function(P){return arguments.length?(t=P,b):t},b.iterations=function(P){return arguments.length?(g=+P,b):g},b.strength=function(P){return arguments.length?(r=typeof P=="function"?P:Dn(+P),E(),b):r},b.distance=function(P){return arguments.length?(s=typeof P=="function"?P:Dn(+P),L(),b):s},b}const Qpe=1664525,ege=1013904223,o0=4294967296;function tge(){let e=1;return()=>(e=(Qpe*e+ege)%o0)/o0}function nge(e){return e.x}function rge(e){return e.y}var ige=10,oge=Math.PI*(3-Math.sqrt(5));function sge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Lp(v),p=Ua("tick","end"),g=tge();e==null&&(e=[]);function v(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var P,M=e.length,R;L===void 0&&(L=1);for(var I=0;I<L;++I)for(r+=(c-r)*s,d.forEach(function(_){_(r)}),P=0;P<M;++P)R=e[P],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 w(){for(var L=0,P=e.length,M;L<P;++L){if(M=e[L],M.index=L,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var R=ige*Math.sqrt(.5+L),I=L*oge;M.x=R*Math.cos(I),M.y=R*Math.sin(I)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function E(L){return L.initialize&&L.initialize(e,g),L}return w(),t={tick:b,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,w(),d.forEach(E),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?(g=L,d.forEach(E),t):g},force:function(L,P){return arguments.length>1?(P==null?d.delete(L):d.set(L,E(P)),t):d.get(L)},find:function(L,P,M){var R=0,I=e.length,_,$,j,re,ee;for(M==null?M=1/0:M*=M,R=0;R<I;++R)re=e[R],_=L-re.x,$=P-re.y,j=_*_+$*$,j<M&&(ee=re,M=j);return ee},on:function(L,P){return arguments.length>1?(p.on(L,P),t):p.on(L)}}}function lge(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,L=e.length,P=Pp(e,nge,rge).visitAfter(v);for(o=w,E=0;E<L;++E)t=e[E],P.visit(b)}function g(){if(e){var w,E=e.length,L;for(c=new Array(E),w=0;w<E;++w)L=e[w],c[L.index]=+s(L,w,e)}}function v(w){var E=0,L,P,M=0,R,I,_;if(w.length){for(R=I=_=0;_<4;++_)(L=w[_])&&(P=Math.abs(L.value))&&(E+=L.value,M+=P,R+=P*L.x,I+=P*L.y);w.x=R/M,w.y=I/M}else{L=w,L.x=L.data.x,L.y=L.data.y;do E+=c[L.data.index];while(L=L.next)}w.value=E}function b(w,E,L,P){if(!w.value)return!0;var M=w.x-t.x,R=w.y-t.y,I=P-E,_=M*M+R*R;if(I*I/h<_)return _<d&&(M===0&&(M=oo(r),_+=M*M),R===0&&(R=oo(r),_+=R*R),_<f&&(_=Math.sqrt(f*_)),t.vx+=M*w.value*o/_,t.vy+=R*w.value*o/_),!0;if(w.length||_>=d)return;(w.data!==t||w.next)&&(M===0&&(M=oo(r),_+=M*M),R===0&&(R=oo(r),_+=R*R),_<f&&(_=Math.sqrt(f*_)));do w.data!==t&&(I=c[w.data.index]*o/_,t.vx+=M*I,t.vy+=R*I);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Dn(+w),g(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function age(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vx+=(s[h]-g.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:Dn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function cge(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vy+=(s[h]-g.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:Dn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function uge(){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 s0(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 so(...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]=so.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:s0(t[o])&&s0(r[o])?t[o]=so(t[o],r[o]):t[o]=r[o])}),t},{})}const r1={mergeArrays:!0};so.options=r1;so.withOptions=(e,...t)=>{so.options={mergeArrays:!0,...e};const r=so(...t);return so.options=r1,r};var fge=so;function dge(){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 hge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function i1(e){e.preventDefault(),e.stopPropagation()}function o1(e){return typeof e=="number"}function vo(e,t){return o1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function pge(e){return`${e.source.id}-${e.target.id}`}function s1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function gge(e){return`url(#${s1(e.color)})`}function mge(e){return{size:e,padding:(t,r)=>vo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const l1={Arrow:e=>mge(e)},vge=(e,t,r)=>[t/2,r/2],yge=(e,t,r)=>[l0(0,t),l0(0,r)];function l0(e,t){return Math.random()*(t-e)+e}const Eh={Centered:vge,Randomized:yge};function bge(){return{autoResize:!1,callbacks:{},hooks:{},initial:hge(),nodeRadius:16,marker:l1.Arrow(4),modifiers:{},positionInitializer:Eh.Centered,simulation:{alphas:uge(),forces:dge()},zoom:{initial:1,min:.1,max:2}}}function wge(e={}){return fge.withOptions({mergeArrays:!1},bge(),e)}function xge({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",g=>i1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,Op.translate(c,f).scale(d)),p.append("g")}function kge({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function Sge({config:e,onDragStart:t,onDragEnd:r}){const o=Bde().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),Kn(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),Kn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function _ge({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}:Tge({links:c},r)}function Tge(e,t){const r=[...Cge(e,t),...Ege(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Cge(e,t){return a1(e,t,(r,o)=>r.target.id===o.id)}function Ege(e,t){return a1(e,t,(r,o)=>r.source.id===o.id)}function a1(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 Ah(e){return e.x??0}function Lh(e){return e.y??0}function $p({source:e,target:t}){const r=new nl(Ah(e),Lh(e)),o=new nl(Ah(t),Lh(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 c1({center:e,node:t}){const r=new nl(Ah(t),Lh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new nl(0,1))),{n:r,c:o}}function u1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=$p({source:t,target:r});return{start:o.add(c.multiply(vo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function Age(e){const{start:t,end:r}=u1(e);return`M${t.x},${t.y}
|
|
45
|
-
L${r.x},${r.y}`}function Lge(e){const{start:t,end:r}=u1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Mge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=$p({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(vo(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(vo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y}
|
|
46
|
-
A${v},${v},0,0,1,${g.x},${g.y}`}function Nge({center:e,config:t,node:r}){const{n:o,c:s}=c1({center:e,node:r}),c=vo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=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,${g.x},${g.y}`}function Oge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=$p({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Pge({center:e,config:t,node:r}){const{n:o,c:s}=c1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*vo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Gs={line:{labelTransform:Lge,path:Age},arc:{labelTransform:Oge,path:Mge},reflexive:{labelTransform:Pge,path:Nge}};function Rge(e){return e.append("g").classed("links",!0).selectAll("path")}function $ge({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>pge(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>gge(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 Ige(e){Dge(e),zge(e)}function Dge({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?Gs.reflexive.path({config:t,node:s.source,center:e}):f1(r,s.source,s.target)?Gs.arc.path({config:t,source:s.source,target:s.target}):Gs.line.path({config:t,source:s.source,target:s.target}))}function zge({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?Gs.reflexive.labelTransform({config:e,node:s.source,center:t}):f1(r,s.source,s.target)?Gs.arc.labelTransform({config:e,source:s.source,target:s.target}):Gs.line.labelTransform({config:e,source:s.source,target:s.target}))}function f1(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 Fge(e){return e.append("defs").selectAll("marker")}function Hge({config:e,graph:t,selection:r}){return r?.data(Bge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>s1(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",Wge(e.marker.path)),s})}function Bge(e){return[...new Set(e.links.map(t=>t.color))]}function Wge(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 qge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function jge({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 g=p.append("circle").classed("node",!0).attr("r",b=>vo(e,b)).on("contextmenu",(b,w)=>{i1(b),o(w)}).on("pointerdown",(b,w)=>Vge(b,w,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=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?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const Uge=500;function Vge(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>Uge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Gge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Kge({center:e,config:t,graph:r,onTick:o}){const s=sge(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",age(()=>e().x).strength(p)).force("y",cge(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",lge().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",Ype().radius(p=>d.radiusMultiplier*vo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Jpe(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 Xge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=Npe().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 Yge=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(Que(()=>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 nl.of([this.width,this.height]).divide(2).subtract(nl.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(o1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Hge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=$ge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=jge({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=Kge({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=Xge({config:this.config,canvasContainer:()=>Kn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=xge({applyZoom:this.scale!==1,container:Kn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Rge(this.canvas),this.nodeSelection=qge(this.canvas),this.markerSelection=Fge(this.canvas),this.drag=Sge({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(){Gge(this.nodeSelection),Ige({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Kn(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(){kge({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=_ge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function a0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Zge(e){return{...e}}function Ip(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Jge(e){const t=e.map(o=>tx(o)),r=lL(t);return t.map(({raw:o,id:s,splits:c})=>Ip({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c.pop()},isFocused:!1,id:s,type:"external"}))}function Qge(e,t){return Ip({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 eme(e,t){if(!e)return a0({});const r=Jge(e.externalized),o=e.inlined.map(d=>Qge(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 g=c[d],v=c[p];if(!(g===void 0||v===void 0))return Zge({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return a0({nodes:s,links:f})}const tme={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},nme={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},rme={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},ime={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},ome={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},sme={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},d1=rt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=vr("tooltip");return e.state==="pass"?(ie(),ye("div",tme)):e.failedSnapshot?at((ie(),ye("div",nme,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(ie(),ye("div",rme)):e.mode==="todo"?at((ie(),ye("div",ime,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?at((ie(),ye("div",ome,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ie(),ye("div",sme))}}}),sl=UE(),lme=AE(sl),ame={border:"b base","p-4":""},cme=["innerHTML"],ume=rt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ie(),ye("div",ame,[X("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Re(t(e.time))+" | "+Re(e.taskName)+" | "+Re(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,cme)]))}}),fme={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},dme={key:1,p6:""},hme=rt({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Ax.value;if(o){const s=wp(sl.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(sa(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?WA(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(ie(),ye("div",fme,[(ie(!0),ye(et,null,$n(t.value,({taskId:c,type:f,time:d,content:h})=>(ie(),ye("div",{key:c,"font-mono":""},[Ne(ume,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(ie(),ye("div",dme,[...s[0]||(s[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),h1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(h1);var 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)},Ls,Xl,zo;class pme{constructor(...t){Ls.set(this,new Map),Xl.set(this,new Map),zo.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,zo,"f").has(o)||fr(this,zo,"f").set(o,new Set);const c=fr(this,zo,"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,Xl,"f").set(o,d),f=!1,h)continue;const p=fr(this,Ls,"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,Ls,"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,Ls,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&fr(this,Xl,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:fr(this,zo,"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,zo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:fr(this,Ls,"f"),extensions:fr(this,Xl,"f")}}}Ls=new WeakMap,Xl=new WeakMap,zo=new WeakMap;const gme=new pme(h1)._freeze();function Na(e){if(gr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function p1(e,t){const r=t?gme.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function g1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Mh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Na(e)}const tu=rt({__name:"CodeMirrorContainer",props:ha({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ha(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Yu(e,"modelValue"),s=J_(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",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=Ge();return Ni(async()=>{const d=wce(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.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),Nn.value=d,setTimeout(()=>Nn.value?.refresh(),100)}),(d,h)=>(ie(),ye("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),mme=rt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ge(""),c=Ft(void 0),f=Ge(!1),d=Ge(!0),h=Ge(!1),p=Ge();xt(()=>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 ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Z){console.error("cannot fetch file",Z)}await Et(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,mx.value,vx.value],([Z,G,q,O,N])=>{!Z&&!G&&(O!=null?Et(()=>{const C=p.value,k=C??{line:(O??1)-1,ch:N??0};C?p.value=void 0:(Nn.value?.scrollIntoView(k,100),Et(()=>{Nn.value?.focus(),Nn.value?.setCursor(k)}))}):Et(()=>{Nn.value?.focus()}))},{flush:"post"});const g=ke(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ge(),b=ke(()=>{const Z=[];function G(q){q.result?.errors&&Z.push(...q.result.errors),q.type==="suite"&&q.tasks.forEach(G)}return r.file?.tasks.forEach(G),Z}),w=ke(()=>{const Z=[];function G(q){q.type==="test"&&Z.push(...q.annotations),q.type==="suite"&&q.tasks.forEach(G)}return r.file?.tasks.forEach(G),Z}),E=[],L=[],P=[],M=Ge(!1);function R(){P.forEach(([Z,G,q])=>{Z.removeEventListener("click",G),q()}),P.length=0}$w(v,()=>{Nn.value?.refresh()});function I(){f.value=c.value!==Nn.value.getValue()}xt(f,Z=>{o("draft",Z)},{immediate:!0});function _(Z){const q=(Z?.stacks||[]).filter(z=>z.file&&z.file===r.file?.filepath)?.[0];if(!q)return;const O=document.createElement("div");O.className="op80 flex gap-x-2 items-center";const N=document.createElement("pre");N.className="c-red-600 dark:c-red-400",N.textContent=`${" ".repeat(q.column)}^ ${Z.name}: ${Z?.message||""}`,O.appendChild(N);const C=document.createElement("span");C.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",C.tabIndex=0,C.ariaLabel="Open in Editor",kw(C,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await bp(q.file,q.line,q.column)};C.addEventListener("click",k),O.appendChild(C),P.push([C,k,()=>ap(C)]),L.push(Nn.value.addLineClass(q.line-1,"wrap","bg-red-500/10")),E.push(Nn.value.addLineWidget(q.line-1,O))}function $(Z){if(!Z.location)return;const{line:G,file:q}=Z.location;if(q!==r.file?.filepath)return;const O=document.createElement("div");O.classList.add("wrap","bg-active","py-3","px-6","my-1"),O.role="note";const N=document.createElement("div");N.classList.add("block","text-black","dark:text-white");const C=document.createElement("span");C.textContent=`${Z.type}: `,C.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=Z.message.replace(/[^\r]\n/,`\r
|
|
48
|
-
`),N.append(C,k),O.append(N);const z=Z.attachment;if(z?.path||z?.body)if(z.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const me=z.path||z.body;typeof me=="string"&&(me.startsWith("http://")||me.startsWith("https://"))?(ae.setAttribute("src",me),B.referrerPolicy="no-referrer"):ae.setAttribute("src",Na(z)),B.target="_blank",B.href=ae.src,B.append(ae),O.append(B)}else{const B=document.createElement("a");B.href=Na(z),B.download=p1(Z.message,z.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const me=document.createElement("span");me.textContent="Download",B.append(ae,me),O.append(B)}E.push(Nn.value.addLineWidget(G-1,O))}const{pause:j,resume:re}=xt([Nn,b,w,Ns],([Z,G,q,O])=>{if(!Z){E.length=0,L.length=0,R();return}O&&(Z.off("changes",I),R(),E.forEach(N=>N.clear()),L.forEach(N=>Z?.removeLineClass(N,"wrap")),E.length=0,L.length=0,setTimeout(()=>{G.forEach(_),q.forEach($),M.value||Z.clearHistory(),Z.on("changes",I)},100))},{flush:"post"});hp(()=>[Ns.value,h.value,p.value],([Z,G],q)=>{Z&&!G&&q&&q[2]&&Nn.value?.setCursor(q[2])},{debounce:100,flush:"post"});async function ee(Z){if(h.value)return;j(),h.value=!0,await Et();const G=Nn.value;G&&(G.setOption("readOnly",!0),await Et(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",I),R(),E.forEach(q=>q.clear()),L.forEach(q=>G?.removeLineClass(q,"wrap")),E.length=0,L.length=0;try{M.value=!0,await ft.rpc.saveTestFile(r.file.filepath,Z),c.value=Z,f.value=!1}catch(q){console.error("error saving file",q)}M.value||G?.clearHistory();try{await Gv(Ns).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Gv(Ns).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(_),w.value.forEach($),G?.on("changes",I),h.value=!1,await Et(),G&&(G.setOption("readOnly",!1),await Et(),G.refresh()),re()}return Ia(R),(Z,G)=>(ie(),Ve(tu,Si({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=q=>s.value=q),"h-full":""},{lineNumbers:!0,readOnly:K(gr),saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ee}),null,16,["modelValue","mode"]))}}),Dp=rt({__name:"Modal",props:ha({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue"),r=ke(()=>{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=ke(()=>{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)=>(ie(),ye("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:zt(t.value?{}:{transform:o.value})},[Dt(c.$slots,"default")],6)],2))}}),vme={class:"overflow-auto max-h-120"},yme={"my-2":"","mx-4":""},bme={"op-70":""},wme={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},xme=["onClick"],kme=rt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=Ge(10),s=ke(()=>{const h=pr.value?.importDurations;if(!h)return[];const p=ei.value.root,g=[];for(const b in h){const w=h[b],E=w.external?aL(b):af(p,b);g.push({importedFile:b,relativeFile:f(E),selfTime:w.selfTime,totalTime:w.totalTime,formattedSelfTime:Ho(w.selfTime),formattedTotalTime:Ho(w.totalTime),selfTimeClass:_u(w.selfTime),totalTimeClass:_u(w.totalTime),external:w.external})}return g.sort((b,w)=>w.totalTime-b.totalTime)}),c=ke(()=>s.value.slice(0,o.value));function f(d){return d.length<=45?d:`...${d.slice(-45)}`}return(d,h)=>(ie(),ye("div",vme,[X("h1",yme,[h[1]||(h[1]=Qe(" Import Duration Breakdown ",-1)),X("span",bme,"(ordered by Total Time) (Top "+Re(Math.min(o.value,c.value.length))+")",1)]),X("table",wme,[h[2]||(h[2]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(ie(!0),ye(et,null,$n(c.value,p=>(ie(),ye("tr",{key:p.importedFile},[X("td",{class:"cursor-pointer pr-2",style:zt({color:p.external?"var(--color-node-external)":void 0}),onClick:g=>r("select",p.importedFile,p.external?"external":"inline")},Re(p.relativeFile),13,xme),X("td",{"pr-2":"",class:ot(p.selfTimeClass)},Re(p.formattedSelfTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Re(p.formattedTotalTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Re(Math.round(p.totalTime/s.value[0].totalTime*100))+"% ",3)]))),128))])]),o.value<s.value.length?(ie(),ye("button",{key:0,class:"flex w-full justify-center h-8 text-sm z-10 relative font-light",onClick:h[0]||(h[0]=p=>o.value+=5)}," Show more ")):He("",!0)]))}}),Es=rt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(ie(),ye("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Dt(t.$slots,"default")],2))}}),Sme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},_me={"p-4":"",relative:""},Tme={flex:"","justify-between":""},Cme={"mr-8":"",flex:"","gap-2":"","items-center":""},Eme={op50:"","font-mono":"","text-sm":""},Ame={key:0,"p-5":""},Lme={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},Mme={key:0},Nme={p:"x3 y-1","bg-overlay":"",border:"base b t"},Ome=rt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=OE(()=>{if(pr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,pr.value.id,!!Zn);if(r.type==="external")return ft.rpc.getExternalResult(r.id,pr.value.id)}}),c=ke(()=>{const I=pr.value?.importDurations||{};return I[r.id]||I[zA("/@fs/",r.id)]||{}}),f=ke(()=>r.id?.split(/\./g).pop()||"js"),d=ke(()=>s.value?.source?.trim()||""),h=ke(()=>!s.value||!("code"in s.value)||!ei.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=ke(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=ke(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],w=[];function E(I,_){const $=I.coordsChar({left:_.clientX,top:_.clientY}),j=I.findMarksAt($);if(j.length!==1)return;const re=j[0].title;if(re){const ee=j[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",re,ee)}}function L(I){const _=document.createElement("div");return _.classList.add("mb-5"),I.forEach(({resolvedId:$,totalTime:j,external:re})=>{const ee=document.createElement("div");ee.append(document.createTextNode("import "));const Z=document.createElement("span"),G=af(ei.value.root,$);Z.textContent=`"/${G}"`,Z.className="hover:underline decoration-gray cursor-pointer select-none",ee.append(Z),Z.addEventListener("click",()=>{o("select",$,re?"external":"inline")});const q=document.createElement("span");q.textContent=` ${Ho(j)}`;const O=_u(j);O&&q.classList.add(O),ee.append(q),_.append(ee)}),_}function P(I){const _=document.createElement("div");_.className="flex ml-2",_.textContent=Ho(I);const $=_u(I);return $&&_.classList.add($),_}function M(I){if(w.forEach(_=>_.clear()),w.length=0,v.forEach(_=>_.remove()),v.length=0,b.forEach(_=>_.clear()),b.length=0,s.value&&"modules"in s.value){I.off("mousedown",E),I.on("mousedown",E);const _=s.value.untrackedModules;if(_?.length){const $=L(_);v.push($),w.push(I.addLineWidget(0,$,{above:!0}))}s.value.modules?.forEach($=>{const j={line:$.start.line-1,ch:$.start.column},re={line:$.end.line-1,ch:$.end.column},ee=I.markText(j,re,{title:$.resolvedId,attributes:{"data-external":String($.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(ee);const Z=P($.totalTime+($.transformTime||0));_?.length||Z.classList.add("-mt-5"),v.push(Z),I.addWidget({line:$.end.line-1,ch:$.end.column+1},Z,!1)})}}function R(){o("back")}return Lw("Escape",()=>{o("close")}),(I,_)=>{const $=vr("tooltip");return ie(),ye("div",Sme,[X("div",_me,[X("div",Tme,[X("p",null,[e.canUndo?at((ie(),Ve(_t,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:_[0]||(_[0]=j=>R())},null,512)),[[$,"Go Back",void 0,{bottom:!0}]]):He("",!0),_[7]||(_[7]=Qe(" Module Info ",-1)),Ne(K(eo),{class:"inline","cursor-help":""},{popper:We(()=>[Qe(" This is module is "+Re(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(ie(),ye(et,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(ie(),ye(et,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:We(()=>[Ne(Es,{type:"custom","ml-1":"",style:zt({backgroundColor:`var(--color-node-${e.type})`})},{default:We(()=>[Qe(Re(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(ie(),Ve(K(eo),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[..._[4]||(_[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:We(()=>[Ne(Es,{type:"tip","ml-2":""},{default:We(()=>[..._[3]||(_[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):He("",!0),h.value===!1?(ie(),Ve(K(eo),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[..._[6]||(_[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:We(()=>[Ne(Es,{type:"warning","ml-2":""},{default:We(()=>[..._[5]||(_[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):He("",!0)]),X("div",Cme,[c.value.selfTime!=null&&c.value.external!==!0?(ie(),Ve(K(eo),{key:0,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:We(()=>[Ne(Es,{type:K(Xc)(c.value.selfTime)},{default:We(()=>[Qe(" self: "+Re(K(Ho)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),c.value.totalTime!=null?(ie(),Ve(K(eo),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:We(()=>[Ne(Es,{type:K(Xc)(c.value.totalTime)},{default:We(()=>[Qe(" total: "+Re(K(Ho)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),K(s)&&"transformTime"in K(s)&&K(s).transformTime?(ie(),Ve(K(eo),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(K(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:We(()=>[Ne(Es,{type:K(Xc)(K(s).transformTime)},{default:We(()=>[Qe(" transform: "+Re(K(Ho)(K(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0)])]),X("p",Eme,Re(e.id),1),Ne(_t,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:_[1]||(_[1]=j=>o("close"))})]),K(s)?(ie(),ye(et,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[_[8]||(_[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(ie(),ye("div",Lme," Transformed ")):He("",!0),(ie(),Ve(tu,Si({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:_[2]||(_[2]=j=>M(j))}),null,16,["model-value","mode"])),p.value!=null?(ie(),Ve(tu,Si({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):He("",!0)],2),g.value.mappings!==""?(ie(),ye("div",Mme,[X("div",Nme," Source map (v"+Re(g.value.version)+") ",1),Ne(tu,Si({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):He("",!0)],64)):(ie(),ye("div",Ame," No transform result found for this module. "))])}}}),Pme={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Rme={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},$me={flex:"~ gap-1","items-center":"","select-none":""},Ime={class:"pr-2"},Dme=["id","checked","onChange"],zme=["for"],Fme={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},Hme=rt({__name:"ViewModuleGraph",props:ha({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Yu(e,"modelValue"),{graph:o}=w_(t),s=Ge(),c=Ge(!1),f=Ge(),d=YE(f),h=Ge(),p=Ge(null),g=Ft(o.value),v=ke(()=>{let q="";const O=pr.value?.importDurations||{};for(const N in O){const{totalTime:C}=O[N];if(C>=500){q="text-red";break}else C>=100&&(q="text-orange")}return q}),b=Ge(ei.value?.experimental?.printImportBreakdown??v.value==="text-red");Ni(()=>{g.value=L(o.value,null,2),re()}),Da(()=>{h.value?.shutdown()}),xt(o,()=>{g.value=L(o.value,p.value,2),re()});function w(){g.value=o.value,re()}function E(){b.value=!b.value}function L(q,O,N=2){if(!q.nodes.length||q.nodes.length<=50)return q;const C=new Map;q.nodes.forEach(Ae=>C.set(Ae.id,new Set)),q.links.forEach(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);C.get(Ke)?.add(je),C.get(je)?.add(Ke)});let k;if(O)k=[O];else{const Ae=new Set(q.links.map(je=>typeof je.target=="object"?je.target.id:String(je.target))),Ke=q.nodes.filter(je=>je.type==="inline"&&!Ae.has(je.id));k=Ke.length>0?[Ke[0].id]:[q.nodes[0].id]}const z=new Set,B=k.map(Ae=>({id:Ae,level:0}));for(;B.length>0;){const{id:Ae,level:Ke}=B.shift();z.has(Ae)||Ke>N||(z.add(Ae),Ke<N&&(C.get(Ae)||new Set).forEach(Fe=>{z.has(Fe)||B.push({id:Fe,level:Ke+1})}))}const ae=new Map(q.nodes.map(Ae=>[Ae.id,Ae])),me=Array.from(z).map(Ae=>ae.get(Ae)).filter(Ae=>Ae!==void 0),Se=new Map(me.map(Ae=>[Ae.id,Ae])),Be=q.links.map(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);if(z.has(Ke)&&z.has(je)){const Fe=Se.get(Ke),Pe=Se.get(je);if(Fe&&Pe)return{...Ae,source:Fe,target:Pe}}return null}).filter(Ae=>Ae!==null);return{nodes:me,links:Be}}function P(q,O){h.value?.filterNodesByType(O,q)}function M(q,O){f.value={id:q,type:O},c.value=!0}function R(){d.undo()}function I(){c.value=!1,d.clear()}function _(q){p.value=q,g.value=L(o.value,q,2),j(),re()}function $(){p.value=null,g.value=L(o.value,null,2),j(),re()}function j(){const q=g.value.nodes.map(C=>{let k,z;return C.id===p.value?(k="var(--color-node-focused)",z="var(--color-node-focused)"):C.type==="inline"?(k=C.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",z=k):(k="var(--color-node-external)",z="var(--color-node-external)"),Ip({...C,color:k,label:C.label?{...C.label,color:z}:C.label})}),O=new Map(q.map(C=>[C.id,C])),N=g.value.links.map(C=>{const k=typeof C.source=="object"?C.source.id:String(C.source),z=typeof C.target=="object"?C.target.id:String(C.target);return{...C,source:O.get(k),target:O.get(z)}});g.value={nodes:q,links:N}}function re(q=!1){if(h.value?.shutdown(),q&&!r.value){r.value=!0;return}if(!g.value||!s.value)return;const O=g.value.nodes.length;let N=1,C=.5;O>300?(N=.3,C=.2):O>200?(N=.4,C=.3):O>100?(N=.5,C=.3):O>50&&(N=.7,N=.4),h.value=new Yge(s.value,g.value,wge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:z})=>k===0&&z===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:l1.Arrow(2),modifiers:{node:G},positionInitializer:o.value.nodes.length===1?Eh.Centered:Eh.Randomized,zoom:{initial:N,min:C,max:1.5}}))}const ee=q=>q.button===0,Z=q=>q.button===2;function G(q){if(gr)return;let O=0,N=0,C=0,k=!1;q.on("pointerdown",(z,B)=>{!B.x||!B.y||(k=Z(z),!(!ee(z)&&!k)&&(O=B.x,N=B.y,C=Date.now()))}).on("pointerup",(z,B)=>{if(!B.x||!B.y)return;const ae=Z(z);if(!ee(z)&&!ae||Date.now()-C>500)return;const me=B.x-O,Se=B.y-N;me**2+Se**2<100&&(!ae&&!z.shiftKey?M(B.id,B.type):(ae||z.shiftKey)&&(z.preventDefault(),B.type==="inline"&&_(B.id)))}).on("contextmenu",z=>{z.preventDefault()})}return(q,O)=>{const N=vr("tooltip");return ie(),ye("div",Pme,[X("div",null,[X("div",Rme,[X("div",$me,[X("div",Ime,Re(g.value.nodes.length)+"/"+Re(K(o).nodes.length)+" "+Re(g.value.nodes.length===1?"module":"modules"),1),at(X("input",{id:"hide-node-modules","onUpdate:modelValue":O[0]||(O[0]=C=>r.value=C),type:"checkbox"},null,512),[[ew,r.value]]),O[9]||(O[9]=X("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))]),(ie(!0),ye(et,null,$n(h.value?.nodeTypes.sort(),C=>(ie(),ye("div",{key:C,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${C}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(C),onChange:k=>P(C,k.target.checked)},null,40,Dme),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${C}`,"border-b-2":"",style:zt({"border-color":`var(--color-node-${C})`})},Re(C)+" Modules",13,zme)]))),128)),O[10]||(O[10]=X("div",{"flex-auto":""},null,-1)),O[11]||(O[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[at(Ne(_t,{icon:"i-carbon-notebook",class:ot(v.value),onClick:O[1]||(O[1]=C=>E())},null,8,["class"]),[[N,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:O[2]||(O[2]=C=>w())},null,512),[[N,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-reset",onClick:O[3]||(O[3]=C=>$())},null,512),[[N,"Reset",void 0,{bottom:!0}]])])])]),b.value?(ie(),ye("div",Fme,[Ne(kme,{onSelect:O[4]||(O[4]=(C,k)=>M(C,k))})])):He("",!0),X("div",{ref_key:"el",ref:s},null,512),Ne(Dp,{modelValue:c.value,"onUpdate:modelValue":O[8]||(O[8]=C=>c.value=C),direction:"right"},{default:We(()=>[f.value?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(Ome,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":K(d).undoStack.value.length>1,onClose:O[5]||(O[5]=C=>I()),onSelect:O[6]||(O[6]=(C,k)=>M(C,k)),onBack:O[7]||(O[7]=C=>R())},null,8,["id","project-name","type","can-undo"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])])}}});function m1(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function v1(){const e=Ge(!1),t=Ge(Date.now()),r=Ge(),o=ke(()=>{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 Bme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wme={"p-4":"",relative:"",border:"base b"},qme={op50:"","font-mono":"","text-sm":""},jme={op50:"","font-mono":"","text-sm":""},Ume={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Vme=["src","alt"],Gme={key:1},Kme=rt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Lw("Escape",()=>{r("close")}),(o,s)=>(ie(),ye("div",Bme,[X("div",Wme,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",qme,Re(e.file),1),X("p",jme,Re(e.name),1),Ne(_t,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",Ume,[e.url?(ie(),ye("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,Vme)):(ie(),ye("div",Gme," Something was wrong, the image cannot be resolved. "))])]))}}),y1=Oi(Kme,[["__scopeId","data-v-08ce44b7"]]),Xme={class:"scrolls scrolls-rounded task-error"},Yme=["onClickPassive"],Zme=["innerHTML"],Jme=rt({__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=ke(()=>wp(sl.value)),s=ke(()=>!!t.error?.diff),c=ke(()=>t.error.diff?o.value.toHtml(sa(t.error.diff)):void 0);function f(d){return dce(d.file,t.filename)?xce(t.fileId,d):bp(d.file,d.line,d.column)}return(d,h)=>{const p=vr("tooltip");return ie(),ye("div",Xme,[X("pre",null,[X("b",null,Re(e.error.name),1),Qe(": "+Re(e.error.message),1)]),(ie(!0),ye(et,null,$n(e.error.stacks,(g,v)=>(ie(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Re(r(g.file))+":"+Re(g.line)+":"+Re(g.column),1),at(X("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(g)},null,40,Yme),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(ie(),ye("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,Zme)):He("",!0)])}}}),b1=Oi(Jme,[["__scopeId","data-v-1fcfe7a4"]]),Qme={"h-full":"",class:"scrolls"},eve=["id"],tve={flex:"~ gap-2 items-center"},nve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},rve=["innerHTML"],ive={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},ove=rt({__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(g=>r(g,p+1))]}const o=ke(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],g=h.result;if(g?.errors?.[0]){const b={id:h.id,file:h,name:h.name,fullName:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(b)}return p.length>0?gx(sl.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=v1();return(h,p)=>{const g=vr("tooltip");return ie(),ye("div",Qme,[o.value.length?(ie(!0),ye(et,{key:0},$n(o.value,v=>(ie(),ye("div",{id:v.id,key:v.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:zt({"margin-left":`${v.result?.htmlError?.5:2*v.level+.5}rem`})},[X("div",tve,[X("span",null,Re(v.name),1),K(Zn)&&v.meta?.failScreenshotPath?(ie(),ye(et,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>K(f)(v)},null,8,["onClick"]),[[g,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>K(m1)(v)},null,8,["onClick"]),[[g,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),v.result?.htmlError?(ie(),ye("div",nve,[X("pre",{innerHTML:v.result.htmlError},null,8,rve)])):v.result?.errors?(ie(!0),ye(et,{key:1},$n(v.result.errors,(b,w)=>(ie(),Ve(b1,{key:w,error:b,filename:e.file.name,root:K(ei).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):He("",!0)],4)],8,eve))),128)):(ie(),ye("div",ive," All tests passed in this file ")),K(Zn)?(ie(),Ve(Dp,{key:2,modelValue:K(c),"onUpdate:modelValue":p[1]||(p[1]=v=>Mt(c)?c.value=v:null),direction:"right"},{default:We(()=>[K(s)?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(y1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:p[0]||(p[0]=v=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),sve=Oi(ove,[["__scopeId","data-v-9d875d6e"]]),lve=["href","referrerPolicy"],ave=["src"],cve=rt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=ke(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Na(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(ie(),ye("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:K(g1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,ave)],8,lve)):He("",!0)}}),uve={class:"flex flex-col gap-4"},fve={key:0},dve=rt({__name:"ArtifactTemplate",setup(e){const t=Sb();return(r,o)=>(ie(),ye("article",uve,[X("h1",null,[Dt(r.$slots,"title")]),K(t).message?(ie(),ye("p",fve,[Dt(r.$slots,"message")])):He("",!0),Dt(r.$slots,"default")]))}}),w1=Symbol("tabContext"),Ru={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},hve={class:"flex flex-col items-center gap-6"},pve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},gve=["id","aria-selected","aria-controls","onClick"],mve=rt({__name:"SmallTabs",setup(e){const t=Ge(null),r=Ge([]),o=Yh();return dr(w1,{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)=>(ie(),ye("div",hve,[X("div",pve,[(ie(!0),ye(et,null,$n(r.value,f=>(ie(),ye("button",{id:K(Ru).tab(f.id,K(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":K(Ru).tabpanel(f.id,K(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Re(f.title),9,gve))),128))]),Dt(s.$slots,"default")]))}}),vve=["id","aria-labelledby","hidden"],Bc=rt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=pn(w1);if(!r)throw new Error("TabPane must be used within Tabs");const o=Yh(),s=ke(()=>r.activeTab.value===o);return Ni(()=>{r.registerTab({...t,id:o})}),Da(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(ie(),ye("div",{id:K(Ru).tabpanel(K(o),K(r).id),role:"tabpanel","aria-labelledby":K(Ru).tab(K(o),K(r).id),hidden:!s.value,class:"max-w-full"},[Dt(c.$slots,"default")],8,vve))}}),x1=rt({__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)=>(ie(),ye("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:zt({backgroundImage:t})},[Dt(r.$slots,"default")],4))}}),yve=["href","referrerPolicy"],bve=["src"],zd=rt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=ke(()=>Mh(e.attachment));return(r,o)=>(ie(),Ve(x1,null,{default:We(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:K(g1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,bve)],8,yve)]),_:1}))}}),wve={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"},xve=["src"],kve={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"},Sve=["src"],_ve=["id"],Tve=["for"],Cve=rt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=ke(()=>Mh(e.reference)),r=ke(()=>Mh(e.actual)),o=ke(()=>Math.max(e.reference.width,e.actual.width)),s=ke(()=>Math.max(e.reference.height,e.actual.height)),c=Ge(50),f=Yh();return(d,h)=>(ie(),Ve(x1,null,{default:We(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:zt({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",wve,[X("img",{src:t.value},null,8,xve)]),X("div",kve,[X("img",{src:r.value},null,8,Sve)]),h[1]||(h[1]=X("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)),at(X("input",{id:K(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,_ve),[[Qb,c.value]]),X("output",{for:K(f),class:"sr-only"}," Showing "+Re(c.value)+"% reference, "+Re(100-c.value)+"% actual ",9,Tve)],4)]),_:1}))}}),Eve=rt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=ke(()=>({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)=>(ie(),Ve(dve,null,{title:We(()=>[...o[0]||(o[0]=[Qe(" Visual Regression ",-1)])]),message:We(()=>[Qe(Re(e.regression.message),1)]),default:We(()=>[Ne(mve,null,{default:We(()=>[t.value.diff?(ie(),Ve(Bc,{key:t.value.diff.path,title:"Diff"},{default:We(()=>[Ne(zd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference?(ie(),Ve(Bc,{key:t.value.reference.path,title:"Reference"},{default:We(()=>[Ne(zd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):He("",!0),t.value.actual?(ie(),Ve(Bc,{key:t.value.actual.path,title:"Actual"},{default:We(()=>[Ne(zd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference&&t.value.actual?(ie(),Ve(Bc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:We(()=>[Ne(Cve,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):He("",!0)]),_:1})]),_:1}))}}),Ave={"h-full":"",class:"scrolls"},Lve={key:0},Mve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},Nve={flex:"~ gap-2 items-center"},Ove={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Pve=["innerHTML"],Rve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},$ve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Ive={class:"flex gap-2","overflow-hidden":""},Dve={class:"font-bold","ws-nowrap":"",truncate:""},zve=["href","download"],Fve=["onClick"],Hve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Bve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Wve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},qve=["onClick"],jve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Uve={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":""},Vve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Gve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Kve=rt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=ke(()=>!t.test.result||!t.test.result.errors?.length?null:gx(sl.value,[t.test])[0]);function o(v){return kce(t.test,v)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=v1();function h(v){return`${af(ei.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=ke(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,b)=>{const w=vr("tooltip");return ie(),ye("div",Ave,[r.value?(ie(),ye("div",Lve,[X("div",Mve,[X("div",Nve,[K(Zn)&&e.test.meta?.failScreenshotPath?(ie(),ye(et,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=E=>K(f)(e.test))},null,512),[[w,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=E=>K(m1)(e.test))},null,512),[[w,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),e.test.result?.htmlError?(ie(),ye("div",Ove,[X("pre",{innerHTML:e.test.result.htmlError},null,8,Pve)])):e.test.result?.errors?(ie(!0),ye(et,{key:1},$n(e.test.result.errors,(E,L)=>(ie(),Ve(b1,{key:L,"file-id":e.test.file.id,error:E,filename:e.test.file.name,root:K(ei).root},null,8,["file-id","error","filename","root"]))),128)):He("",!0)])])):(ie(),ye("div",Rve," All tests passed in this file ")),e.test.annotations.length?(ie(),ye(et,{key:2},[b[5]||(b[5]=X("h1",{"m-2":""}," Test Annotations ",-1)),(ie(!0),ye(et,null,$n(e.test.annotations,E=>(ie(),ye("div",{key:E.type+E.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",$ve,[X("div",Ive,[X("span",Dve,Re(E.type),1),E.attachment&&!E.attachment.contentType?.startsWith("image/")?(ie(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:K(Na)(E.attachment),download:K(p1)(E.message,E.attachment.contentType)},[...b[4]||(b[4]=[X("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,zve)):He("",!0)]),X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((ie(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(E.location)},[Qe(Re(h(E.location)),1)],8,Fve)),[[w,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(ie(),ye("span",Hve,Re(h(E.location)),1)):He("",!0)])]),X("div",Bve,Re(E.message),1),Ne(cve,{annotation:E},null,8,["annotation"])]))),128))],64)):He("",!0),e.test.artifacts.length?(ie(),ye(et,{key:3},[b[6]||(b[6]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(ie(!0),ye(et,null,$n(e.test.artifacts,(E,L)=>(ie(),ye("div",{key:E.type+L,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",Wve,[X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((ie(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:P=>o(E.location)},[Qe(Re(h(E.location)),1)],8,qve)),[[w,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(ie(),ye("span",jve,Re(h(E.location)),1)):He("",!0)])]),E.type==="internal:toMatchScreenshot"&&E.kind==="visual-regression"?(ie(),Ve(Eve,{key:0,regression:E},null,8,["regression"])):He("",!0)]))),128))],64)):He("",!0),g.value.length?(ie(),ye(et,{key:4},[b[7]||(b[7]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",Uve,[(ie(!0),ye(et,null,$n(g.value,([E,L])=>(ie(),ye(et,{key:E},[X("div",Vve,Re(E),1),X("pre",Gve,Re(L),1)],64))),128))])],64)):He("",!0),K(Zn)?(ie(),Ve(Dp,{key:5,modelValue:K(c),"onUpdate:modelValue":b[3]||(b[3]=E=>Mt(c)?c.value=E:null),direction:"right"},{default:We(()=>[K(s)?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(y1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:b[2]||(b[2]=E=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),Xve=Oi(Kve,[["__scopeId","data-v-1a68630b"]]),Yve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Zve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Jve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Qve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},eye={class:"flex text-lg"},tye={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},nye={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},rye={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},iye={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},oye=["flex-1"],c0=rt({__name:"FileDetails",setup(e){const t=Ge({nodes:[],links:[]}),r=Ge(!1),o=Ge(!1),s=Ge(!1),c=Ge(void 0),f=Ge(!0),d=ke(()=>Ws.value?ft.state.idMap.get(Ws.value):void 0),h=ke(()=>{const _=Gt.value;if(!(!_||!_.filepath))return{filepath:_.filepath,projectName:_.file.projectName||""}}),p=ke(()=>Gt.value&&yp(Gt.value)),g=ke(()=>!!Gt.value?.meta?.typecheck);function v(){const _=Gt.value?.filepath;_&&fetch(`/__open-in-editor?file=${encodeURIComponent(_)}`)}function b(_){_==="graph"&&(o.value=!0),hn.value=_}const w=ke(()=>Ax.value?.reduce((_,{size:$})=>_+$,0)??0);function E(_){r.value=_}const L=/[/\\]node_modules[/\\]/;async function P(_=!1){if(!(s.value||h.value?.filepath===c.value&&!_)){s.value=!0,await Et();try{const $=h.value;if(!$){s.value=!1;return}if(_||!c.value||$.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let j=await ft.rpc.getModuleGraph($.projectName,$.filepath,!!Zn);f.value&&(gr&&(j=typeof window.structuredClone<"u"?window.structuredClone(j):tL(j)),j.inlined=j.inlined.filter(re=>!L.test(re)),j.externalized=j.externalized.filter(re=>!L.test(re))),t.value=eme(j,$.filepath),c.value=$.filepath}b("graph")}finally{await new Promise($=>setTimeout($,100)),s.value=!1}}}hp(()=>[h.value,hn.value,f.value],([,_,$],j)=>{_==="graph"&&P(j&&$!==j[2])},{debounce:100,immediate:!0});const M=ke(()=>{const _=Gt.value?.file.projectName||"";return Oe.colors.get(_)||nx(Gt.value?.file.projectName)}),R=ke(()=>rx(M.value)),I=ke(()=>{const _=Ws.value;if(!_)return Gt.value?.name;const $=[];let j=ft.state.idMap.get(_);for(;j;)$.push(j.name),j=j.suite?j.suite:j===j.file?void 0:j.file;return $.reverse().join(" > ")});return(_,$)=>{const j=vr("tooltip");return K(Gt)?(ie(),ye("div",Yve,[X("div",null,[X("div",Zve,[Ne(d1,{state:K(Gt).result?.state,mode:K(Gt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?at((ie(),ye("div",Jve,null,512)),[[j,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),K(Gt)?.file.projectName?(ie(),ye("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:zt({backgroundColor:M.value,color:R.value})},Re(K(Gt).file.projectName),5)):He("",!0),X("div",Qve,Re(I.value),1),X("div",eye,[K(gr)?He("",!0):at((ie(),Ve(_t,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!K(Gt)?.filepath,onClick:v},null,8,["disabled"])),[[j,"Open in editor",void 0,{bottom:!0}]])])]),X("div",tye,[X("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==null}]),"data-testid":"btn-report",onClick:$[0]||($[0]=re=>b(null))},[...$[5]||($[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="graph"}]),onClick:$[1]||($[1]=re=>b("graph"))},[s.value?(ie(),ye("span",nye)):(ie(),ye("span",rye)),$[6]||($[6]=Qe(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="editor"}]),onClick:$[2]||($[2]=re=>b("editor"))},[$[7]||($[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Re(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="console",op20:K(hn)!=="console"&&w.value===0}]),onClick:$[3]||($[3]=re=>b("console"))},[$[8]||($[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Re(w.value)+") ",1)],2)])]),X("div",iye,[o.value?(ie(),ye("div",{key:0,"flex-1":K(hn)==="graph"&&""},[at(Ne(Hme,{modelValue:f.value,"onUpdate:modelValue":$[4]||($[4]=re=>f.value=re),graph:t.value,"data-testid":"graph","project-name":K(Gt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[io,K(hn)==="graph"&&!s.value]])],8,oye)):He("",!0),K(hn)==="editor"?(ie(),Ve(mme,{key:K(Gt).id,file:K(Gt),"data-testid":"editor",onDraft:E},null,8,["file"])):K(hn)==="console"?(ie(),Ve(hme,{key:2,file:K(Gt),"data-testid":"console"},null,8,["file"])):!K(hn)&&!d.value&&K(Gt)?(ie(),Ve(sve,{key:3,file:K(Gt),"data-testid":"report"},null,8,["file"])):!K(hn)&&d.value?(ie(),Ve(Xve,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):He("",!0)])])):He("",!0)}}}),sye=""+new URL("../favicon.svg",import.meta.url).href;function lye(){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 nu;function Nh(){Nh.init||(Nh.init=!0,nu=lye()!==-1)}var pf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Nh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",nu&&this.$el.appendChild(e),e.data="about:blank",nu||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&&(!nu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const aye=cb();lb("data-v-b329ee4c");const cye={class:"resize-observer",tabindex:"-1"};ab();const uye=aye((e,t,r,o,s,c)=>(ie(),Ve("div",cye)));pf.render=uye;pf.__scopeId="data-v-b329ee4c";pf.__file="src/components/ResizeObserver.vue";function ru(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(t){return typeof t}:ru=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function fye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dye(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 hye(e,t,r){return t&&dye(e.prototype,t),e}function u0(e){return pye(e)||gye(e)||mye(e)||vye()}function pye(e){if(Array.isArray(e))return Oh(e)}function gye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mye(e,t){if(e){if(typeof e=="string")return Oh(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 Oh(e,t)}}function Oh(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 vye(){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 yye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function bye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(c=g,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(u0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(u0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function k1(e,t){if(e===t)return!0;if(ru(e)==="object"){for(var r in e)if(!k1(e[r],t[r]))return!1;return!0}return!1}var wye=(function(){function e(t,r,o){fye(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return hye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=yye(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=bye(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(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function S1(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 wye(e,o,r);e._vue_visibilityState=s}}function xye(e,t,r){var o=t.value,s=t.oldValue;if(!k1(o,s)){var c=e._vue_visibilityState;if(!o){_1(e);return}c?c.createObserver(o,r):S1(e,{value:o},r)}}function _1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var kye={beforeMount:S1,updated:xye,unmounted:_1},Sye={itemsLimit:1e3},_ye=/(auto|scroll)/;function T1(e,t){return e.parentNode===null?t:T1(e.parentNode,t.concat([e]))}var Fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Tye=function(t){return Fd(t,"overflow")+Fd(t,"overflow-y")+Fd(t,"overflow-x")},Cye=function(t){return _ye.test(Tye(t))};function f0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=T1(e.parentNode,[]),r=0;r<t.length;r+=1)if(Cye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Ph(e){"@babel/helpers - typeof";return Ph=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},Ph(e)}var Eye={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 Aye(){return this.items.length&&Ph(this.items[0])!=="object"}var Rh=!1;if(typeof window<"u"){Rh=!1;try{var Lye=Object.defineProperty({},"passive",{get:function(){Rh=!0}});window.addEventListener("test",null,Lye)}catch{}}let Mye=0;var zp={name:"RecycleScroller",components:{ResizeObserver:pf},directives:{ObserveVisibility:kye},props:{...Eye,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:Aye,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=Uu({id:Mye++,index:t,used:!0,key:o,type:s}),f=Gh({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,g=this.sizes,v=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let L,P,M,R,I;if(!p)L=P=R=I=M=0;else if(this.$_prerender)L=R=0,P=I=Math.min(this.prerender,h.length),M=null;else{const G=this.getScroll();if(t){let N=G.start-this.$_lastUpdateScrollPosition;if(N<0&&(N=-N),r===null&&N<c||N<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const q=this.buffer;G.start-=q,G.end+=q;let O=0;if(this.$refs.before&&(O=this.$refs.before.scrollHeight,G.start-=O),this.$refs.after){const N=this.$refs.after.scrollHeight;G.end+=N}if(r===null){let N,C=0,k=p-1,z=~~(p/2),B;do B=z,N=g[z].accumulator,N<G.start?C=z:z<p-1&&g[z+1].accumulator>G.start&&(k=z),z=~~((C+k)/2);while(z!==B);for(z<0&&(z=0),L=z,M=g[p-1].accumulator,P=z;P<p&&g[P].accumulator<G.end;P++);for(P===-1?P=h.length-1:(P++,P>p&&(P=p)),R=L;R<p&&O+g[R].accumulator<G.start;R++);for(I=R;I<p&&O+g[I].accumulator<G.end;I++);}else{L=~~(G.start/r*o);const N=L%o;L-=N,P=Math.ceil(G.end/r*o),R=Math.max(0,Math.floor((G.start-O)/r*o)),I=Math.floor((G.end-O)/r*o),L<0&&(L=0),P>p&&(P=p),R<0&&(R=0),I>p&&(I=p),M=Math.ceil(p/o)*r}}P-L>Sye.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let _;const $=L<=this.$_endIndex&&P>=this.$_startIndex;if($)for(let G=0,q=w.length;G<q;G++)_=w[G],_.nr.used&&(e&&(_.nr.index=E[_.item[d]]),(_.nr.index==null||_.nr.index<L||_.nr.index>=P)&&this.unuseView(_));const j=$?null:new Map;let re,ee,Z;for(let G=L;G<P;G++){re=h[G];const q=d?re[d]:re;if(q==null)throw new Error(`Key is ${q} on item (keyField is '${d}')`);if(_=v.get(q),!r&&!g[G].size){_&&this.unuseView(_);continue}ee=re[f];let O=b.get(ee),N=!1;if(!_)$?O&&O.length?_=O.pop():_=this.addView(w,G,re,q,ee):(Z=j.get(ee)||0,(!O||Z>=O.length)&&(_=this.addView(w,G,re,q,ee),this.unuseView(_,!0),O=b.get(ee)),_=O[Z],j.set(ee,Z+1)),v.delete(_.nr.key),_.nr.used=!0,_.nr.index=G,_.nr.key=q,_.nr.type=ee,v.set(q,_),N=!0;else if(!_.nr.used&&(_.nr.used=!0,N=!0,O)){const C=O.indexOf(_);C!==-1&&O.splice(C,1)}_.item=re,N&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(_.position=g[G-1].accumulator,_.offset=0):(_.position=Math.floor(G/o)*r,_.offset=G%o*s)}return this.$_startIndex=L,this.$_endIndex=P,this.emitUpdate&&this.$emit("update",L,P,R,I),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:$}},getListenerTarget(){let e=f0(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,Rh?{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=f0(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 Nye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Oye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Pye(e,t,r,o,s,c){const f=Ko("ResizeObserver"),d=vr("observe-visibility");return at((ie(),ye("div",{class:ot(["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?(ie(),ye("div",Nye,[Dt(e.$slots,"before")],512)):He("v-if",!0),(ie(),Ve(Xd(r.listTag),{ref:"wrapper",style:zt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:We(()=>[(ie(!0),ye(et,null,$n(s.pool,h=>(ie(),Ve(Xd(r.itemTag),Si({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}]]},Y_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:We(()=>[Dt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Dt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ie(),ye("div",Oye,[Dt(e.$slots,"after")],512)):He("v-if",!0),Ne(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}zp.render=Pye;zp.__file="src/components/RecycleScroller.vue";function Rye(e){const t=ke(()=>hh.value?!1:!it.onlyTests),r=ke(()=>Vn.value===""),o=Ge(Vn.value);hp(()=>Vn.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Vn.value="",h&&e.value?.focus()}function c(h){it.failed=!1,it.success=!1,it.skipped=!1,it.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,g,v,b){el.value&&(gn.value.search=h?.trim()??"",gn.value.failed=p,gn.value.success=g,gn.value.skipped=v,gn.value.onlyTests=b)}return xt(()=>[o.value,it.failed,it.success,it.skipped,it.onlyTests],([h,p,g,v,b])=>{d(h,p,g,v,b),Oe.filterNodes()},{flush:"post"}),xt(()=>Dr.value.length,h=>{h&&(gn.value.expandAll=void 0)},{flush:"post"}),{initialized:el,filter:it,search:Vn,disableFilter:t,isFiltered:ex,isFilteredByStatus:hh,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:cf,testsTotal:oL,uiEntries:Jn}}const $ye=["open"],Iye=rt({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ge(!0);return(r,o)=>(ie(),ye("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Dt(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Dt(r.$slots,"default")],40,$ye))}}),Dye={"flex-1":"","ms-2":"","select-none":""},Wc=rt({__name:"FilterStatus",props:ha({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue");return(r,o)=>(ie(),ye("label",Si({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]=Gc(s=>t.value=!t.value,["prevent"]))}),[X("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),at(X("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[ew,t.value]]),X("span",Dye,Re(e.label),1)],16))}}),zye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Fye=rt({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(ie(),ye("button",zye,[X("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Hye=["aria-label","data-current"],Bye={key:1,"w-4":""},Wye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},qye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},jye={"text-sm":"",truncate:"","font-light":""},Uye=["text","innerHTML"],Vye={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Gye={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Kye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Xye={key:1},Yye=rt({__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=ke(()=>ft.state.idMap.get(e.taskId)),r=ke(()=>{if(gr)return!1;const P=t.value;return P&&yp(P)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Oe.collapseNode(e.taskId):Oe.expandNode(e.taskId)}async function s(P){e.onItemClick?.(P),Ps.value&&(Cu.value=!0,await Et()),e.type==="file"?await _p([P.file]):await nue(P)}function c(P){return ft.rpc.updateSnapshot(P.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(P,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const P=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${P.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Qw(e.name)),g=ke(()=>{const P=iL.value,M=p.value;return P?M.replace(P,R=>`<span class="highlight">${R}</span>`):M}),v=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>v.value?"color-red5 dark:color-#f43f5e":null);function E(){const P=t.value;e.type==="file"?e.onItemClick?.(P):yx(P)}const L=ke(()=>rx(e.projectNameColor));return(P,M)=>{const R=vr("tooltip");return t.value?(ie(),ye("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:zt(d.value),"aria-label":e.name,"data-current":e.current,onClick:M[2]||(M[2]=I=>o())},[e.indent>0?(ie(!0),ye(et,{key:0},$n(f.value,I=>(ie(),ye("div",{key:I,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):He("",!0),e.type==="file"||e.type==="suite"?(ie(),ye("div",Bye,[X("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):He("",!0),Ne(d1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",Wye,[e.type==="file"&&e.typecheck?at((ie(),ye("div",qye,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),X("span",jye,[e.type==="file"&&e.projectName?(ie(),ye("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:zt({backgroundColor:e.projectNameColor,color:L.value})},Re(e.projectName),5)):He("",!0),X("span",{text:e.state==="fail"?"red-500":"",innerHTML:g.value},null,8,Uye)]),typeof e.duration=="number"?(ie(),ye("span",Vye,Re(e.duration>0?e.duration:"< 1")+"ms ",1)):He("",!0)]),X("div",Gye,[!K(gr)&&r.value?at((ie(),Ve(Fye,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=Gc(I=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),Ne(K(eo),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:We(()=>[v.value?(ie(),ye("div",Kye,[M[5]||(M[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Qe(Re(b.value)+": this feature is not available, you have disabled ",1),M[3]||(M[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=Qe(" in your configuration file.",-1))]),M[6]||(M[6]=X("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))])):(ie(),ye("div",Xye,Re(b.value),1))]),default:We(()=>[Ne(_t,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Gc(E,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),K(gr)?He("",!0):at((ie(),Ve(_t,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=Gc(I=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[R,h.value,void 0,{bottom:!0}]])])],12,Hye)):He("",!0)}}}),Zye=Oi(Yye,[["__scopeId","data-v-58d301d8"]]),Jye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Qye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},e0e=["op"],t0e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},n0e={"text-red5":""},r0e={"text-yellow5":""},i0e={"text-green5":""},o0e={class:"text-purple5:50"},s0e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},l0e=["disabled"],a0e=["disabled"],c0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},u0e=rt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>ei.value.includeTaskLocation),s=Ge(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:g,disableClearSearch:v,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:L,testsTotal:P,uiEntries:M}=Rye(s),R=Ge("grid-cols-2"),I=Ge("grid-col-span-2"),_=Ge();return $w(()=>_.value,([{contentRect:$}])=>{$.width<420?(R.value="grid-cols-2",I.value="grid-col-span-2"):(R.value="grid-cols-4",I.value="grid-col-span-4")}),($,j)=>{const re=vr("tooltip");return ie(),ye("div",{ref_key:"testExplorerRef",ref:_,h:"full",flex:"~ col"},[X("div",null,[X("div",Jye,[Dt($.$slots,"header",{filteredFiles:K(p)||K(g)?K(L):void 0})]),X("div",Qye,[j[13]||(j[13]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),at(X("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":j[0]||(j[0]=ee=>Mt(d)?d.value=ee:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:K(d).length?"100":"50",onKeydown:[j[1]||(j[1]=ih(ee=>K(w)(!1),["esc"])),j[2]||(j[2]=ih(ee=>r("run",K(p)||K(g)?K(L):void 0),["enter"]))]},null,40,e0e),[[Qb,K(d)]]),at(Ne(_t,{disabled:K(v),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:j[3]||(j[3]=ee=>K(w)(!0))},null,8,["disabled"]),[[re,"Clear search",void 0,{bottom:!0}]])]),X("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(R.value)},[X("div",{class:ot(I.value),flex:"~ gap-2 items-center"},[j[14]||(j[14]=X("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),j[15]||(j[15]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),at(Ne(_t,{disabled:K(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:j[4]||(j[4]=ee=>K(E)(!1))},null,8,["disabled"]),[[re,"Clear Filter",void 0,{bottom:!0}]])],2),Ne(Wc,{modelValue:K(f).failed,"onUpdate:modelValue":j[5]||(j[5]=ee=>K(f).failed=ee),label:"Fail"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).success,"onUpdate:modelValue":j[6]||(j[6]=ee=>K(f).success=ee),label:"Pass"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).skipped,"onUpdate:modelValue":j[7]||(j[7]=ee=>K(f).skipped=ee),label:"Skip"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).onlyTests,"onUpdate:modelValue":j[8]||(j[8]=ee=>K(f).onlyTests=ee),label:"Only Tests"},null,8,["modelValue"])],2)]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:j[12]||(j[12]=(...ee)=>K(qv)&&K(qv)(...ee))},[Ne(Iye,null,X_({default:We(()=>[(K(p)||K(g))&&K(M).length===0?(ie(),ye(et,{key:0},[K(c)?(ie(),ye("div",s0e,[j[18]||(j[18]=X("div",{op30:""}," No matched test ",-1)),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(v)?null:"hover:op100"),disabled:K(v),onClickPassive:j[9]||(j[9]=ee=>K(w)(!0))}," Clear Search ",42,l0e),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(h)?null:"hover:op100"),disabled:K(h),onClickPassive:j[10]||(j[10]=ee=>K(E)(!0))}," Clear Filter ",42,a0e),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:j[11]||(j[11]=(...ee)=>K(b)&&K(b)(...ee))}," Clear All ",32)])):(ie(),ye("div",c0e,[...j[19]||(j[19]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(ie(),Ve(K(zp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:K(M),buffer:100},{default:We(({item:ee})=>[Ne(Zye,{class:ot(["h-28px m-0 p-0",K(go)===ee.id?"bg-active":""]),"task-id":ee.id,expandable:ee.expandable,type:ee.type,current:K(go)===ee.id,indent:ee.indent,name:ee.name,typecheck:ee.typecheck===!0,"project-name":ee.projectName??"","project-name-color":ee.projectNameColor??"",state:ee.state,duration:ee.duration,opened:ee.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},[K(c)?{name:"summary",fn:We(()=>[X("div",t0e,[X("span",n0e," FAIL ("+Re(K(P).failed)+") ",1),j[16]||(j[16]=X("span",null,"/",-1)),X("span",r0e," RUNNING ("+Re(K(P).running)+") ",1),X("span",i0e," PASS ("+Re(K(P).success)+") ",1),j[17]||(j[17]=X("span",null,"/",-1)),X("span",o0e," SKIP ("+Re(K(f).onlyTests?K(P).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),f0e={class:"flex text-lg"},d0e=rt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=ke(()=>sl.value?"light":"dark");async function o(f){Ps.value&&(Cu.value=!0,await Et(),mo.value&&(Eu(!0),await Et())),f?.length?await _p(f):await eue()}function s(){Oe.collapseAllNodes()}function c(){Oe.expandAllNodes()}return(f,d)=>{const h=vr("tooltip");return ie(),Ve(u0e,{border:"r base","on-item-click":K(_ce),nested:!0,onRun:o},{header:We(({filteredFiles:p})=>[d[8]||(d[8]=X("img",{"w-6":"","h-6":"",src:sye,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",f0e,[at(Ne(_t,{title:"Collapse tests",disabled:!K(el),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=g=>s())},null,8,["disabled"]),[[io,!K(ay)],[h,"Collapse tests",void 0,{bottom:!0}]]),at(Ne(_t,{disabled:!K(el),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=g=>c())},null,8,["disabled"]),[[io,K(ay)],[h,"Expand tests",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=g=>K(Eu)(!0))},null,512),[[io,K(mh)&&!K(Ps)||!K(qs)],[h,"Dashboard",void 0,{bottom:!0}]]),K(mh)&&!K(Ps)?(ie(),Ve(K(eo),{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:We(()=>[...d[6]||(d[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:We(()=>[d[7]||(d[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):He("",!0),K(Ps)?at((ie(),Ve(_t,{key:1,disabled:K(Cu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=g=>K(Tce)())},null,8,["disabled"])),[[io,!K(mo)],[h,"Coverage",void 0,{bottom:!0}]]):He("",!0),K(Oe).summary.failedSnapshot&&!K(gr)?at((ie(),Ve(_t,{key:2,icon:"i-carbon:result-old",disabled:!K(Oe).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=g=>K(Oe).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),K(gr)?He("",!0):at((ie(),Ve(_t,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:g=>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}]]),at(Ne(_t,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=g=>K(lme)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),h0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},p0e=rt({__name:"ProgressBar",setup(e){const{width:t}=Iw(),r=ke(()=>[Oe.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ns.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesSuccess/d:0}),s=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesFailed/d:0}),c=ke(()=>Oe.summary.files-Oe.summary.filesFailed-Oe.summary.filesSuccess),f=ke(()=>{const d=Oe.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ie(),ye("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(r.value)},[X("div",h0e,[X("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(r.value),style:zt(`width: ${s.value}px;`)}," ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${s.value}px; width: ${o.value}px;`)}," ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${o.value+s.value}px; width: ${f.value}px;`)}," ",6)])],2))}}),g0e=Oi(p0e,[["__scopeId","data-v-5320005b"]]),m0e={"h-screen":"","w-screen":"",overflow:"hidden"},v0e=rt({__name:"index",setup(e){const t=Sce(),r=Nc(({panes:g})=>{h(),d(g)},0),o=Nc(({panes:g})=>{g.forEach((v,b)=>{js.value[b]=v.size}),f(g),p()},0),s=Nc(({panes:g})=>{g.forEach((v,b)=>{uo.value[b]=v.size}),d(g),p()},0),c=Nc(({panes:g})=>{f(g),h()},0);function f(g){At.navigation=g[0].size,At.details.size=g[1].size}function d(g){At.details.browser=g[0].size,At.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(ie(),ye(et,null,[Ne(g0e),X("div",m0e,[Ne(K(Xv),{class:"pt-4px",onResized:K(o),onResize:K(c)},{default:We(()=>[Ne(K(Rc),{size:K(js)[0]},{default:We(()=>[Ne(d0e)]),_:1},8,["size"]),Ne(K(Rc),{size:K(js)[1]},{default:We(()=>[K(Zn)?(ie(),Ve(K(Xv),{id:"details-splitpanes",key:"browser-detail",onResize:K(r),onResized:K(s)},{default:We(()=>[Ne(K(Rc),{size:K(uo)[0],"min-size":"10"},{default:We(()=>[v[0]||(Zs(-1,!0),(v[0]=Ne(hue)).cacheIndex=0,Zs(1),v[0])]),_:1},8,["size"]),Ne(K(Rc),{size:K(uo)[1]},{default:We(()=>[K(t)?(ie(),Ve(zy,{key:"summary"})):K(mo)?(ie(),Ve(Dy,{key:"coverage",src:K(Ry)},null,8,["src"])):(ie(),Ve(c0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ie(),Ve(jT,{key:"ui-detail"},{default:We(()=>[K(t)?(ie(),Ve(zy,{key:"summary"})):K(mo)?(ie(),Ve(Dy,{key:"coverage",src:K(Ry)},null,8,["src"])):(ie(),Ve(c0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(mue)],64))}}),y0e=[{name:"index",path:"/",component:v0e,props:!0}];/*!
|
|
50
|
-
* vue-router v4.6.4
|
|
51
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
52
|
-
* @license MIT
|
|
53
|
-
*/const Ms=typeof document<"u";function C1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function b0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&C1(e.default)}const bt=Object.assign;function Hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=zr(s)?s.map(e):e(s)}return r}const aa=()=>{},zr=Array.isArray;function d0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const E1=/#/g,w0e=/&/g,x0e=/\//g,k0e=/=/g,S0e=/\?/g,A1=/\+/g,_0e=/%5B/g,T0e=/%5D/g,L1=/%5E/g,C0e=/%60/g,M1=/%7B/g,E0e=/%7C/g,N1=/%7D/g,A0e=/%20/g;function Fp(e){return e==null?"":encodeURI(""+e).replace(E0e,"|").replace(_0e,"[").replace(T0e,"]")}function L0e(e){return Fp(e).replace(M1,"{").replace(N1,"}").replace(L1,"^")}function $h(e){return Fp(e).replace(A1,"%2B").replace(A0e,"+").replace(E1,"%23").replace(w0e,"%26").replace(C0e,"`").replace(M1,"{").replace(N1,"}").replace(L1,"^")}function M0e(e){return $h(e).replace(k0e,"%3D")}function N0e(e){return Fp(e).replace(E1,"%23").replace(S0e,"%3F")}function O0e(e){return N0e(e).replace(x0e,"%2F")}function Oa(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const P0e=/\/$/,R0e=e=>e.replace(P0e,"");function Bd(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=z0e(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Oa(f)}}function $0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function h0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function I0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&il(t.matched[o],r.matched[s])&&O1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function il(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function O1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!D0e(e[r],t[r]))return!1;return!0}function D0e(e,t){return zr(e)?p0(e,t):zr(t)?p0(t,e):e?.valueOf()===t?.valueOf()}function p0(e,t){return zr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function z0e(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 Ki={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ih=(function(e){return e.pop="pop",e.push="push",e})({}),Wd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function F0e(e){if(!e)if(Ms){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),R0e(e)}const H0e=/^[^#]+#/;function B0e(e,t){return e.replace(H0e,"#")+t}function W0e(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 gf=()=>({left:window.scrollX,top:window.scrollY});function q0e(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=W0e(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 g0(e,t){return(history.state?history.state.position-t:-1)+e}const Dh=new Map;function j0e(e,t){Dh.set(e,t)}function U0e(e){const t=Dh.get(e);return Dh.delete(e),t}function V0e(e){return typeof e=="string"||e&&typeof e=="object"}function P1(e){return typeof e=="string"||typeof e=="symbol"}let qt=(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 R1=Symbol("");qt.MATCHER_NOT_FOUND+"",qt.NAVIGATION_GUARD_REDIRECT+"",qt.NAVIGATION_ABORTED+"",qt.NAVIGATION_CANCELLED+"",qt.NAVIGATION_DUPLICATED+"";function ol(e,t){return bt(new Error,{type:e,[R1]:!0},t)}function pi(e,t){return e instanceof Error&&R1 in e&&(t==null||!!(e.type&t))}const G0e=["params","query","hash"];function K0e(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of G0e)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function X0e(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(A1," "),c=s.indexOf("="),f=Oa(c<0?s:s.slice(0,c)),d=c<0?null:Oa(s.slice(c+1));if(f in t){let h=t[f];zr(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function m0(e){let t="";for(let r in e){const o=e[r];if(r=M0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(zr(o)?o.map(s=>s&&$h(s)):[o&&$h(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function Y0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=zr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const Z0e=Symbol(""),v0=Symbol(""),Hp=Symbol(""),$1=Symbol(""),zh=Symbol("");function Ul(){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 ro(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(ol(qt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):V0e(b)?h(ol(qt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},g=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function qd(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(C1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(ro(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=b0e(g)?g.default:g;f.mods[d]=g,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&ro(b,r,o,f,d,s)()}))}}return c}function J0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>il(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>il(p,h))||s.push(h))}return[r,o,s]}/*!
|
|
54
|
-
* vue-router v4.6.4
|
|
55
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
56
|
-
* @license MIT
|
|
57
|
-
*/let Q0e=()=>location.protocol+"//"+location.host;function I1(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),h0(d,"")}return h0(r,e)+o+s}function ebe(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=I1(e,location),E=r.value,L=t.value;let P=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}P=L?b.position-L.position:0}else o(w);s.forEach(M=>{M(r.value,E,{delta:P,type:Ih.pop,direction:P?P>0?Wd.forward:Wd.back:Wd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:gf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function y0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?gf():null}}function tbe(e){const{history:t,location:r}=window,o={value:I1(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,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:Q0e()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[g?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,y0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:gf()});c(g.current,g,!0),c(h,bt({},y0(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function nbe(e){e=F0e(e);const t=tbe(e),r=ebe(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:B0e.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 rbe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nbe(e)}let qo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var rn=(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})(rn||{});const ibe={type:qo.Static,value:""},obe=/[a-zA-Z0-9_]/;function sbe(e){if(!e)return[[]];if(e==="/")return[[ibe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=rn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===rn.Static?c.push({type:qo.Static,value:p}):r===rn.Param||r===rn.ParamRegExp||r===rn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:qo.Param,value:p,regexp:g,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!==rn.ParamRegExp){o=r,r=rn.EscapeNext;continue}switch(r){case rn.Static:h==="/"?(p&&v(),f()):h===":"?(v(),r=rn.Param):b();break;case rn.EscapeNext:b(),r=o;break;case rn.Param:h==="("?r=rn.ParamRegExp:obe.test(h)?b():(v(),r=rn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case rn.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:r=rn.ParamRegExpEnd:g+=h;break;case rn.ParamRegExpEnd:v(),r=rn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,g="";break;default:t("Unknown state");break}}return r===rn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),f(),s}const b0="[^/]+?",lbe={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 abe=/[.+*?^${}()[\]/\\]/g;function cbe(e,t){const r=bt({},lbe,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const g=p.length?[]:[On.Root];r.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const b=p[v];let w=On.Segment+(r.sensitive?On.BonusCaseSensitive:0);if(b.type===qo.Static)v||(s+="/"),s+=b.value.replace(abe,"\\$&"),w+=On.Static;else if(b.type===qo.Param){const{value:E,repeatable:L,optional:P,regexp:M}=b;c.push({name:E,repeatable:L,optional:P});const R=M||b0;if(R!==b0){w+=On.BonusCustomRegExp;try{`${R}`}catch(_){throw new Error(`Invalid custom RegExp for param "${E}" (${R}): `+_.message)}}let I=L?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;v||(I=P&&p.length<2?`(?:/${I})`:"/"+I),P&&(I+="?"),s+=I,w+=On.Dynamic,P&&(w+=On.BonusOptional),L&&(w+=On.BonusRepeatable),R===".*"&&(w+=On.BonusWildcard)}g.push(w)}o.push(g)}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 g=p.match(f),v={};if(!g)return null;for(let b=1;b<g.length;b++){const w=g[b]||"",E=c[b-1];v[E.name]=w&&E.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const b of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of b)if(w.type===qo.Static)g+=w.value;else if(w.type===qo.Param){const{value:E,repeatable:L,optional:P}=w,M=E in p?p[E]:"";if(zr(M)&&!L)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const R=zr(M)?M.join("/"):M;if(!R)if(P)b.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${E}"`);g+=R}}return g||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function ube(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 D1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=ube(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(w0(o))return 1;if(w0(s))return-1}return s.length-o.length}function w0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fbe={strict:!1,end:!0,sensitive:!1};function dbe(e,t,r){const o=cbe(sbe(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 hbe(e,t){const r=[],o=new Map;t=d0(fbe,t);function s(v){return o.get(v)}function c(v,b,w){const E=!w,L=k0(v);L.aliasOf=w&&w.record;const P=d0(t,v),M=[L];if("alias"in v){const _=typeof v.alias=="string"?[v.alias]:v.alias;for(const $ of _)M.push(k0(bt({},L,{components:w?w.record.components:L.components,path:$,aliasOf:w?w.record:L})))}let R,I;for(const _ of M){const{path:$}=_;if(b&&$[0]!=="/"){const j=b.record.path,re=j[j.length-1]==="/"?"":"/";_.path=b.record.path+($&&re+$)}if(R=dbe(_,b,P),w?w.alias.push(R):(I=I||R,I!==R&&I.alias.push(R),E&&v.name&&!S0(R)&&f(v.name)),z1(R)&&h(R),L.children){const j=L.children;for(let re=0;re<j.length;re++)c(j[re],R,w&&w.children[re])}w=w||R}return I?()=>{f(I)}:aa}function f(v){if(P1(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=mbe(v,r);r.splice(b,0,v),v.record.name&&!S0(v)&&o.set(v.record.name,v)}function p(v,b){let w,E={},L,P;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw ol(qt.MATCHER_NOT_FOUND,{location:v});P=w.record.name,E=bt(x0(b.params,w.keys.filter(I=>!I.optional).concat(w.parent?w.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),v.params&&x0(v.params,w.keys.map(I=>I.name))),L=w.stringify(E)}else if(v.path!=null)L=v.path,w=r.find(I=>I.re.test(L)),w&&(E=w.parse(L),P=w.record.name);else{if(w=b.name?o.get(b.name):r.find(I=>I.re.test(b.path)),!w)throw ol(qt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});P=w.record.name,E=bt({},b.params,v.params),L=w.stringify(E)}const M=[];let R=w;for(;R;)M.unshift(R.record),R=R.parent;return{name:P,path:L,params:E,matched:M,meta:gbe(M)}}e.forEach(v=>c(v));function g(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function x0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function k0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:pbe(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 pbe(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 S0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gbe(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function mbe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;D1(e,t[c])<0?o=c:r=c+1}const s=vbe(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function vbe(e){let t=e;for(;t=t.parent;)if(z1(t)&&D1(e,t)===0)return t}function z1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _0(e){const t=pn(Hp),r=pn($1),o=ke(()=>{const h=K(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],v=r.matched;if(!g||!v.length)return-1;const b=v.findIndex(il.bind(null,g));if(b>-1)return b;const w=T0(h[p-2]);return p>1&&T0(g)===w&&v[v.length-1].path!==w?v.findIndex(il.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&kbe(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&O1(r.params,o.value.params));function d(h={}){if(xbe(h)){const p=t[K(e.replace)?"replace":"push"](K(e.to)).catch(aa);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function ybe(e){return e.length===1?e[0]:e}const bbe=rt({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:_0,setup(e,{slots:t}){const r=ir(_0(e)),{options:o}=pn(Hp),s=ke(()=>({[C0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[C0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&ybe(t.default(r));return e.custom?c:Fa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),wbe=bbe;function xbe(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 kbe(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(!zr(s)||s.length!==o.length||o.some((c,f)=>c.valueOf()!==s[f].valueOf()))return!1}return!0}function T0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const C0=(e,t,r)=>e??t??r,Sbe=rt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=pn(zh),s=ke(()=>e.route||o.value),c=pn(v0,0),f=ke(()=>{let p=K(c);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);dr(v0,ke(()=>f.value+1)),dr(Z0e,d),dr(zh,s);const h=Ge();return xt(()=>[h.value,d.value,e.name],([p,g,v],[b,w,E])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===b&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!il(g,w)||!b)&&(g.enterCallbacks[v]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=d.value,b=v&&v.components[g];if(!b)return E0(r.default,{Component:b,route:p});const w=v.props[g],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,P=Fa(b,bt({},E,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return E0(r.default,{Component:P,route:p})||P}}});function E0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const _be=Sbe;function Tbe(e){const t=hbe(e.routes,e),r=e.parseQuery||X0e,o=e.stringifyQuery||m0,s=e.history,c=Ul(),f=Ul(),d=Ul(),h=Ft(Ki);let p=Ki;Ms&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Hd.bind(null,F=>""+F),v=Hd.bind(null,O0e),b=Hd.bind(null,Oa);function w(F,Y){let ne,le;return P1(F)?(ne=t.getRecordMatcher(F),le=Y):le=F,t.addRoute(le,ne)}function E(F){const Y=t.getRecordMatcher(F);Y&&t.removeRoute(Y)}function L(){return t.getRoutes().map(F=>F.record)}function P(F){return!!t.getRecordMatcher(F)}function M(F,Y){if(Y=bt({},Y||h.value),typeof F=="string"){const Q=Bd(r,F,Y.path),de=t.resolve({path:Q.path},Y),he=s.createHref(Q.fullPath);return bt(Q,de,{params:b(de.params),hash:Oa(Q.hash),redirectedFrom:void 0,href:he})}let ne;if(F.path!=null)ne=bt({},F,{path:Bd(r,F.path,Y.path).path});else{const Q=bt({},F.params);for(const de in Q)Q[de]==null&&delete Q[de];ne=bt({},F,{params:v(Q)}),Y.params=v(Y.params)}const le=t.resolve(ne,Y),ce=F.hash||"";le.params=g(b(le.params));const D=$0e(o,bt({},F,{hash:L0e(ce),path:le.path})),W=s.createHref(D);return bt({fullPath:D,hash:ce,query:o===m0?Y0e(F.query):F.query||{}},le,{redirectedFrom:void 0,href:W})}function R(F){return typeof F=="string"?Bd(r,F,h.value.path):bt({},F)}function I(F,Y){if(p!==F)return ol(qt.NAVIGATION_CANCELLED,{from:Y,to:F})}function _(F){return re(F)}function $(F){return _(bt(R(F),{replace:!0}))}function j(F,Y){const ne=F.matched[F.matched.length-1];if(ne&&ne.redirect){const{redirect:le}=ne;let ce=typeof le=="function"?le(F,Y):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=R(ce):{path:ce},ce.params={}),bt({query:F.query,hash:F.hash,params:ce.path!=null?{}:F.params},ce)}}function re(F,Y){const ne=p=M(F),le=h.value,ce=F.state,D=F.force,W=F.replace===!0,Q=j(ne,le);if(Q)return re(bt(R(Q),{state:typeof Q=="object"?bt({},ce,Q.state):ce,force:D,replace:W}),Y||ne);const de=ne;de.redirectedFrom=Y;let he;return!D&&I0e(o,le,ne)&&(he=ol(qt.NAVIGATION_DUPLICATED,{to:de,from:le}),Be(le,le,!0,!1)),(he?Promise.resolve(he):G(de,le)).catch(ge=>pi(ge)?pi(ge,qt.NAVIGATION_GUARD_REDIRECT)?ge:Se(ge):ae(ge,de,le)).then(ge=>{if(ge){if(pi(ge,qt.NAVIGATION_GUARD_REDIRECT))return re(bt({replace:W},R(ge.to),{state:typeof ge.to=="object"?bt({},ce,ge.to.state):ce,force:D}),Y||de)}else ge=O(de,le,!0,W,ce);return q(de,le,ge),ge})}function ee(F,Y){const ne=I(F,Y);return ne?Promise.reject(ne):Promise.resolve()}function Z(F){const Y=je.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(F):F()}function G(F,Y){let ne;const[le,ce,D]=J0e(F,Y);ne=qd(le.reverse(),"beforeRouteLeave",F,Y);for(const Q of le)Q.leaveGuards.forEach(de=>{ne.push(ro(de,F,Y))});const W=ee.bind(null,F,Y);return ne.push(W),Pe(ne).then(()=>{ne=[];for(const Q of c.list())ne.push(ro(Q,F,Y));return ne.push(W),Pe(ne)}).then(()=>{ne=qd(ce,"beforeRouteUpdate",F,Y);for(const Q of ce)Q.updateGuards.forEach(de=>{ne.push(ro(de,F,Y))});return ne.push(W),Pe(ne)}).then(()=>{ne=[];for(const Q of D)if(Q.beforeEnter)if(zr(Q.beforeEnter))for(const de of Q.beforeEnter)ne.push(ro(de,F,Y));else ne.push(ro(Q.beforeEnter,F,Y));return ne.push(W),Pe(ne)}).then(()=>(F.matched.forEach(Q=>Q.enterCallbacks={}),ne=qd(D,"beforeRouteEnter",F,Y,Z),ne.push(W),Pe(ne))).then(()=>{ne=[];for(const Q of f.list())ne.push(ro(Q,F,Y));return ne.push(W),Pe(ne)}).catch(Q=>pi(Q,qt.NAVIGATION_CANCELLED)?Q:Promise.reject(Q))}function q(F,Y,ne){d.list().forEach(le=>Z(()=>le(F,Y,ne)))}function O(F,Y,ne,le,ce){const D=I(F,Y);if(D)return D;const W=Y===Ki,Q=Ms?history.state:{};ne&&(le||W?s.replace(F.fullPath,bt({scroll:W&&Q&&Q.scroll},ce)):s.push(F.fullPath,ce)),h.value=F,Be(F,Y,ne,W),Se()}let N;function C(){N||(N=s.listen((F,Y,ne)=>{if(!Fe.listening)return;const le=M(F),ce=j(le,Fe.currentRoute.value);if(ce){re(bt(ce,{replace:!0,force:!0}),le).catch(aa);return}p=le;const D=h.value;Ms&&j0e(g0(D.fullPath,ne.delta),gf()),G(le,D).catch(W=>pi(W,qt.NAVIGATION_ABORTED|qt.NAVIGATION_CANCELLED)?W:pi(W,qt.NAVIGATION_GUARD_REDIRECT)?(re(bt(R(W.to),{force:!0}),le).then(Q=>{pi(Q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&!ne.delta&&ne.type===Ih.pop&&s.go(-1,!1)}).catch(aa),Promise.reject()):(ne.delta&&s.go(-ne.delta,!1),ae(W,le,D))).then(W=>{W=W||O(le,D,!1),W&&(ne.delta&&!pi(W,qt.NAVIGATION_CANCELLED)?s.go(-ne.delta,!1):ne.type===Ih.pop&&pi(W,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),q(le,D,W)}).catch(aa)}))}let k=Ul(),z=Ul(),B;function ae(F,Y,ne){Se(F);const le=z.list();return le.length?le.forEach(ce=>ce(F,Y,ne)):console.error(F),Promise.reject(F)}function me(){return B&&h.value!==Ki?Promise.resolve():new Promise((F,Y)=>{k.add([F,Y])})}function Se(F){return B||(B=!F,C(),k.list().forEach(([Y,ne])=>F?ne(F):Y()),k.reset()),F}function Be(F,Y,ne,le){const{scrollBehavior:ce}=e;if(!Ms||!ce)return Promise.resolve();const D=!ne&&U0e(g0(F.fullPath,0))||(le||!ne)&&history.state&&history.state.scroll||null;return Et().then(()=>ce(F,Y,D)).then(W=>W&&q0e(W)).catch(W=>ae(W,F,Y))}const Ae=F=>s.go(F);let Ke;const je=new Set,Fe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:L,resolve:M,options:e,push:_,replace:$,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:z.add,isReady:me,install(F){F.component("RouterLink",wbe),F.component("RouterView",_be),F.config.globalProperties.$router=Fe,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>K(h)}),Ms&&!Ke&&h.value===Ki&&(Ke=!0,_(s.location).catch(le=>{}));const Y={};for(const le in Ki)Object.defineProperty(Y,le,{get:()=>h.value[le],enumerable:!0});F.provide(Hp,Fe),F.provide($1,Gh(Y)),F.provide(zh,h);const ne=F.unmount;je.add(F),F.unmount=function(){je.delete(F),je.size<1&&(p=Ki,N&&N(),N=null,h.value=Ki,Ke=!1,B=!1),ne()}}};function Pe(F){return F.reduce((Y,ne)=>Y.then(()=>Z(ne)),Promise.resolve())}return Fe}const Cbe={tooltip:xE};Sw.options.instantMove=!0;Sw.options.distance=10;function Ebe(){return Tbe({history:rbe(),routes:y0e})}const Abe=[Ebe],Bp=nw(wC);Abe.forEach(e=>{Bp.use(e())});Object.entries(Cbe).forEach(([e,t])=>{Bp.directive(e,t)});Bp.mount("#app");
|