@vitest/browser 2.2.0-beta.2 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/.vite/manifest.json +1 -1
- package/dist/client/__vitest__/assets/{index-CVf0zraX.css → index-DYFkX02J.css} +1 -1
- package/dist/client/__vitest__/assets/{index-XquuyCWh.js → index-DgyW9gjj.js} +30 -30
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{tester-BaiNqOPw.js → tester-D_NUSQO8.js} +6 -4
- package/dist/client/tester/tester.html +1 -1
- package/dist/index.js +12 -28
- package/dist/providers.js +1 -1
- package/dist/{webdriver-D0J8HSNX.js → webdriver-JzwxG3Ek.js} +6 -2
- package/matchers.d.ts +6 -1
- package/package.json +20 -17
- package/providers/playwright.d.ts +14 -8
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
var
|
|
1
|
+
var VS=Object.defineProperty;var jS=(e,t,r)=>t in e?VS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fs=(e,t,r)=>jS(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
2
|
* @vue/shared v3.5.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function hh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},ys=[],Fr=()=>{},
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function hh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},ys=[],Fr=()=>{},GS=()=>!1,gu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ph=e=>e.startsWith("onUpdate:"),Wt=Object.assign,gh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},KS=Object.prototype.hasOwnProperty,wt=(e,t)=>KS.call(e,t),Fe=Array.isArray,bs=e=>da(e)==="[object Map]",vu=e=>da(e)==="[object Set]",dv=e=>da(e)==="[object Date]",Ke=e=>typeof e=="function",Ot=e=>typeof e=="string",kr=e=>typeof e=="symbol",_t=e=>e!==null&&typeof e=="object",$0=e=>(_t(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),P0=Object.prototype.toString,da=e=>P0.call(e),XS=e=>da(e).slice(8,-1),O0=e=>da(e)==="[object Object]",vh=e=>Ot(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=hh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},YS=/-(\w)/g,Jn=mu(e=>e.replace(YS,(t,r)=>r?r.toUpperCase():"")),ZS=/\B([A-Z])/g,yi=mu(e=>e.replace(ZS,"-$1").toLowerCase()),yu=mu(e=>e.charAt(0).toUpperCase()+e.slice(1)),_c=mu(e=>e?`on${yu(e)}`:""),In=(e,t)=>!Object.is(e,t),kc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},R0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},md=e=>{const t=parseFloat(e);return isNaN(t)?e:t},D0=e=>{const t=Ot(e)?Number(e):NaN;return isNaN(t)?e:t};let hv;const bu=()=>hv||(hv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jt(e){if(Fe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ot(o)?t_(o):Jt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ot(e)||_t(e))return e}const JS=/;(?![^(]*\))/g,QS=/:([^]+)/,e_=/\/\*[^]*?\*\//g;function t_(e){const t={};return e.replace(e_,"").split(JS).forEach(r=>{if(r){const o=r.split(QS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function st(e){let t="";if(Ot(e))t=e;else if(Fe(e))for(let r=0;r<e.length;r++){const o=st(e[r]);o&&(t+=o+" ")}else if(_t(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function n_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ot(t)&&(e.class=st(t)),r&&(e.style=Jt(r)),e}const r_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",i_=hh(r_);function z0(e){return!!e||e===""}function o_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=wu(e[o],t[o]);return r}function wu(e,t){if(e===t)return!0;let r=dv(e),o=dv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=kr(e),o=kr(t),r||o)return e===t;if(r=Fe(e),o=Fe(t),r||o)return r&&o?o_(e,t):!1;if(r=_t(e),o=_t(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||!wu(e[f],t[f]))return!1}}return String(e)===String(t)}function I0(e,t){return e.findIndex(r=>wu(r,t))}const F0=e=>!!(e&&e.__v_isRef===!0),He=e=>Ot(e)?e:e==null?"":Fe(e)||_t(e)&&(e.toString===P0||!Ke(e.toString))?F0(e)?He(e.value):JSON.stringify(e,H0,2):String(e),H0=(e,t)=>F0(t)?H0(e,t.value):bs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Uf(o,c)+" =>"]=s,r),{})}:vu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Uf(r))}:kr(t)?Uf(t):_t(t)&&!Fe(t)&&!O0(t)?String(t):t,Uf=(e,t="")=>{var r;return kr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.5.12
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let Cn;class l_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Cn,!t&&Cn&&(this.index=(Cn.scopes||(Cn.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=Cn;try{return Cn=this,t()}finally{Cn=r}}}on(){Cn=this}off(){Cn=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!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,this._active=!1}}}function B0(){return Cn}function a_(e,t=!1){Cn&&Cn.cleanups.push(e)}let kt;const Vf=new WeakSet;class W0{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,Cn&&Cn.active&&Cn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vf.has(this)&&(Vf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||V0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,gv(this),j0(this);const t=kt,r=Sr;kt=this,Sr=!0;try{return this.fn()}finally{G0(this),kt=t,Sr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)bh(t);this.deps=this.depsTail=void 0,gv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){yd(this)&&this.run()}get dirty(){return yd(this)}}let U0=0,Nl,$l;function V0(e,t=!1){if(e.flags|=8,t){e.next=$l,$l=e;return}e.next=Nl,Nl=e}function mh(){U0++}function yh(){if(--U0>0)return;if($l){let t=$l;for($l=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Nl;){let t=Nl;for(Nl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function j0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function G0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),bh(o),c_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function yd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(K0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function K0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!yd(e)){e.flags&=-3;return}const r=kt,o=Sr;kt=e,Sr=!0;try{j0(e);const s=e.fn(e._value);(t.version===0||In(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Sr=o,G0(e),e.flags&=-3}}function bh(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)bh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function c_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Sr=!0;const X0=[];function io(){X0.push(Sr),Sr=!1}function oo(){const e=X0.pop();Sr=e===void 0?!0:e}function gv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let Wl=0;class u_{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 xu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!kt||!Sr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new u_(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,Y0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){mh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{yh()}}}function Y0(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)Y0(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Ic=new WeakMap,Ao=Symbol(""),bd=Symbol(""),Ul=Symbol("");function hn(e,t,r){if(Sr&&kt){let o=Ic.get(e);o||Ic.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new xu),s.map=o,s.key=r),s.track()}}function ci(e,t,r,o,s,c){const f=Ic.get(e);if(!f){Wl++;return}const d=h=>{h&&h.trigger()};if(mh(),t==="clear")f.forEach(d);else{const h=Fe(e),p=h&&vh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Ul||!Tr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Ul)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Ao)),bs(e)&&d(f.get(bd)));break;case"delete":h||(d(f.get(Ao)),bs(e)&&d(f.get(bd)));break;case"set":bs(e)&&d(f.get(Ao));break}}yh()}function f_(e,t){const r=Ic.get(e);return r&&r.get(t)}function ds(e){const t=ht(e);return t===e?t:(hn(t,"iterate",Ul),or(e)?t:t.map(pn))}function Su(e){return hn(e=ht(e),"iterate",Ul),e}const d_={__proto__:null,[Symbol.iterator](){return jf(this,Symbol.iterator,pn)},concat(...e){return ds(this).concat(...e.map(t=>Fe(t)?ds(t):t))},entries(){return jf(this,"entries",e=>(e[1]=pn(e[1]),e))},every(e,t){return ii(this,"every",e,t,void 0,arguments)},filter(e,t){return ii(this,"filter",e,t,r=>r.map(pn),arguments)},find(e,t){return ii(this,"find",e,t,pn,arguments)},findIndex(e,t){return ii(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ii(this,"findLast",e,t,pn,arguments)},findLastIndex(e,t){return ii(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ii(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gf(this,"includes",e)},indexOf(...e){return Gf(this,"indexOf",e)},join(e){return ds(this).join(e)},lastIndexOf(...e){return Gf(this,"lastIndexOf",e)},map(e,t){return ii(this,"map",e,t,void 0,arguments)},pop(){return wl(this,"pop")},push(...e){return wl(this,"push",e)},reduce(e,...t){return vv(this,"reduce",e,t)},reduceRight(e,...t){return vv(this,"reduceRight",e,t)},shift(){return wl(this,"shift")},some(e,t){return ii(this,"some",e,t,void 0,arguments)},splice(...e){return wl(this,"splice",e)},toReversed(){return ds(this).toReversed()},toSorted(e){return ds(this).toSorted(e)},toSpliced(...e){return ds(this).toSpliced(...e)},unshift(...e){return wl(this,"unshift",e)},values(){return jf(this,"values",pn)}};function jf(e,t,r){const o=Su(e),s=o[t]();return o!==e&&!or(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const h_=Array.prototype;function ii(e,t,r,o,s,c){const f=Su(e),d=f!==e&&!or(e),h=f[t];if(h!==h_[t]){const m=h.apply(e,c);return d?pn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,pn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function vv(e,t,r,o){const s=Su(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,pn(d),h,e)}),s[t](c,...o)}function Gf(e,t,r){const o=ht(e);hn(o,"iterate",Ul);const s=o[t](...r);return(s===-1||s===!1)&&_h(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function wl(e,t,r=[]){io(),mh();const o=ht(e)[t].apply(e,r);return yh(),oo(),o}const p_=hh("__proto__,__v_isRef,__isVue"),Z0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Tr));function g_(e){Tr(e)||(e=String(e));const t=ht(this);return hn(t,"has",e),t.hasOwnProperty(e)}class J0{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){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?T_:ny:c?ty:ey).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Fe(t);if(!s){let h;if(f&&(h=d_[r]))return h;if(r==="hasOwnProperty")return g_}const d=Reflect.get(t,r,At(t)?t:o);return(Tr(r)?Z0.has(r):p_(r))||(s||hn(t,"get",r),c)?d:At(d)?f&&vh(r)?d:d.value:_t(d)?s?da(d):Zn(d):d}}class Q0 extends J0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=$o(c);if(!or(o)&&!$o(o)&&(c=ht(c),o=ht(o)),!Fe(t)&&At(c)&&!At(o))return h?!1:(c.value=o,!0)}const f=Fe(t)&&vh(r)?Number(r)<t.length:bt(t,r),d=Reflect.set(t,r,o,At(t)?t:s);return t===ht(s)&&(f?In(o,c)&&ci(t,"set",r,o):ci(t,"add",r,o)),d}deleteProperty(t,r){const o=bt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ci(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Tr(r)||!Z0.has(r))&&hn(t,"has",r),o}ownKeys(t){return hn(t,"iterate",Fe(t)?"length":Ao),Reflect.ownKeys(t)}}class v_ extends J0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const m_=new Q0,y_=new v_,b_=new Q0(!0);const wd=e=>e,ic=e=>Reflect.getPrototypeOf(e);function w_(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=bs(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?wd:t?xd:pn;return!t&&hn(c,"iterate",h?bd:Ao),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function oc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function x_(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(In(s,d)&&hn(f,"get",s),hn(f,"get",d));const{has:h}=ic(f),p=t?wd:e?xd:pn;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&&hn(ht(s),"iterate",Ao),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(In(s,d)&&hn(f,"has",s),hn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=ht(d),p=t?wd:e?xd:pn;return!e&&hn(h,"iterate",Ao),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return Wt(r,e?{add:oc("add"),set:oc("set"),delete:oc("delete"),clear:oc("clear")}:{add(s){!t&&!or(s)&&!$o(s)&&(s=ht(s));const c=ht(this);return ic(c).has.call(c,s)||(c.add(s),ci(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!$o(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=ic(f);let p=d.call(f,s);p||(s=ht(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?In(c,v)&&ci(f,"set",s,c):ci(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=ic(c);let h=f.call(c,s);h||(s=ht(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&ci(c,"delete",s,void 0),p},clear(){const s=ht(this),c=s.size!==0,f=s.clear();return c&&ci(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=w_(s,e,t)}),r}function wh(e,t){const r=x_(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(bt(r,s)&&s in o?r:o,s,c)}const S_={get:wh(!1,!1)},__={get:wh(!1,!0)},k_={get:wh(!0,!1)};const ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,T_=new WeakMap;function C_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function E_(e){return e.__v_skip||!Object.isExtensible(e)?0:C_(YS(e))}function Zn(e){return $o(e)?e:Sh(e,!1,m_,S_,ey)}function xh(e){return Sh(e,!1,b_,__,ty)}function da(e){return Sh(e,!0,y_,k_,ny)}function Sh(e,t,r,o,s){if(!_t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=E_(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function ws(e){return $o(e)?ws(e.__v_raw):!!(e&&e.__v_isReactive)}function $o(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function _h(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function kh(e){return!bt(e,"__v_skip")&&Object.isExtensible(e)&&D0(e,"__v_skip",!0),e}const pn=e=>_t(e)?Zn(e):e,xd=e=>_t(e)?da(e):e;function At(e){return e?e.__v_isRef===!0:!1}function We(e){return ry(e,!1)}function jr(e){return ry(e,!0)}function ry(e,t){return At(e)?e:new L_(e,t)}class L_{constructor(t,r){this.dep=new xu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:pn(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)||$o(t);t=o?t:ht(t),In(t,r)&&(this._rawValue=t,this._value=o?t:pn(t),this.dep.trigger())}}function I(e){return At(e)?e.value:e}const A_={get:(e,t,r)=>t==="__v_raw"?e:I(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return At(s)&&!At(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function iy(e){return ws(e)?e:new Proxy(e,A_)}class M_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new xu,{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 oy(e){return new M_(e)}function N_(e){const t=Fe(e)?new Array(e.length):{};for(const r in e)t[r]=sy(e,r);return t}class $_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return f_(ht(this._object),this._key)}}class P_{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 _u(e,t,r){return At(e)?e:Ke(e)?new P_(e):_t(e)&&arguments.length>1?sy(e,t,r):We(e)}function sy(e,t,r){const o=e[t];return At(o)?o:new $_(e,t,r)}class O_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new xu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return V0(this,!0),!0}get value(){const t=this.dep.track();return K0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function R_(e,t,r=!1){let o,s;return Ke(e)?o=e:(o=e.get,s=e.set),new O_(o,s,r)}const sc={},Fc=new WeakMap;let ko;function D_(e,t=!1,r=ko){if(r){let o=Fc.get(r);o||Fc.set(r,o=[]),o.push(e)}}function z_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=L=>s?L:or(L)||s===!1||s===0?ui(L,1):ui(L);let v,m,b,w,A=!1,M=!1;if(At(e)?(m=()=>e.value,A=or(e)):ws(e)?(m=()=>p(e),A=!0):Fe(e)?(M=!0,A=e.some(L=>ws(L)||or(L)),m=()=>e.map(L=>{if(At(L))return L.value;if(ws(L))return p(L);if(Ke(L))return h?h(L,2):L()})):Ke(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){io();try{b()}finally{oo()}}const L=ko;ko=v;try{return h?h(e,3,[w]):e(w)}finally{ko=L}}:m=Fr,t&&s){const L=m,z=s===!0?1/0:s;m=()=>ui(L(),z)}const E=B0(),C=()=>{v.stop(),E&&gh(E.effects,v)};if(c&&t){const L=t;t=(...z)=>{L(...z),C()}}let N=M?new Array(e.length).fill(sc):sc;const P=L=>{if(!(!(v.flags&1)||!v.dirty&&!L))if(t){const z=v.run();if(s||A||(M?z.some((W,U)=>In(W,N[U])):In(z,N))){b&&b();const W=ko;ko=v;try{const U=[z,N===sc?void 0:M&&N[0]===sc?[]:N,w];h?h(t,3,U):t(...U),N=z}finally{ko=W}}}else v.run()};return d&&d(P),v=new W0(m),v.scheduler=f?()=>f(P,!1):P,w=L=>D_(L,!1,v),b=v.onStop=()=>{const L=Fc.get(v);if(L){if(h)h(L,4);else for(const z of L)z();Fc.delete(v)}},t?o?P(!0):N=v.run():f?f(P.bind(null,!0),!0):v.run(),C.pause=v.pause.bind(v),C.resume=v.resume.bind(v),C.stop=C,C}function ui(e,t=1/0,r){if(t<=0||!_t(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,At(e))ui(e.value,t,r);else if(Fe(e))for(let o=0;o<e.length;o++)ui(e[o],t,r);else if(vu(e)||bs(e))e.forEach(o=>{ui(o,t,r)});else if(R0(e)){for(const o in e)ui(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&ui(e[o],t,r)}return e}/**
|
|
9
|
+
**/let Cn;class s_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Cn,!t&&Cn&&(this.index=(Cn.scopes||(Cn.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=Cn;try{return Cn=this,t()}finally{Cn=r}}}on(){Cn=this}off(){Cn=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!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,this._active=!1}}}function q0(){return Cn}function l_(e,t=!1){Cn&&Cn.cleanups.push(e)}let kt;const Vf=new WeakSet;class B0{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,Cn&&Cn.active&&Cn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vf.has(this)&&(Vf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||U0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pv(this),V0(this);const t=kt,r=xr;kt=this,xr=!0;try{return this.fn()}finally{j0(this),kt=t,xr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)bh(t);this.deps=this.depsTail=void 0,pv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){yd(this)&&this.run()}get dirty(){return yd(this)}}let W0=0,Nl,$l;function U0(e,t=!1){if(e.flags|=8,t){e.next=$l,$l=e;return}e.next=Nl,Nl=e}function mh(){W0++}function yh(){if(--W0>0)return;if($l){let t=$l;for($l=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Nl;){let t=Nl;for(Nl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function V0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function j0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),bh(o),a_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function yd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(G0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function G0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!yd(e)){e.flags&=-3;return}const r=kt,o=xr;kt=e,xr=!0;try{V0(e);const s=e.fn(e._value);(t.version===0||In(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,xr=o,j0(e),e.flags&=-3}}function bh(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)bh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function a_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let xr=!0;const K0=[];function io(){K0.push(xr),xr=!1}function oo(){const e=K0.pop();xr=e===void 0?!0:e}function pv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let Wl=0;class c_{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 xu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!kt||!xr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new c_(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,X0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){mh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{yh()}}}function X0(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)X0(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Fc=new WeakMap,Ao=Symbol(""),bd=Symbol(""),Ul=Symbol("");function hn(e,t,r){if(xr&&kt){let o=Fc.get(e);o||Fc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new xu),s.map=o,s.key=r),s.track()}}function ci(e,t,r,o,s,c){const f=Fc.get(e);if(!f){Wl++;return}const d=h=>{h&&h.trigger()};if(mh(),t==="clear")f.forEach(d);else{const h=Fe(e),p=h&&vh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Ul||!kr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Ul)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Ao)),bs(e)&&d(f.get(bd)));break;case"delete":h||(d(f.get(Ao)),bs(e)&&d(f.get(bd)));break;case"set":bs(e)&&d(f.get(Ao));break}}yh()}function u_(e,t){const r=Fc.get(e);return r&&r.get(t)}function ds(e){const t=ht(e);return t===e?t:(hn(t,"iterate",Ul),or(e)?t:t.map(pn))}function Su(e){return hn(e=ht(e),"iterate",Ul),e}const f_={__proto__:null,[Symbol.iterator](){return jf(this,Symbol.iterator,pn)},concat(...e){return ds(this).concat(...e.map(t=>Fe(t)?ds(t):t))},entries(){return jf(this,"entries",e=>(e[1]=pn(e[1]),e))},every(e,t){return ii(this,"every",e,t,void 0,arguments)},filter(e,t){return ii(this,"filter",e,t,r=>r.map(pn),arguments)},find(e,t){return ii(this,"find",e,t,pn,arguments)},findIndex(e,t){return ii(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ii(this,"findLast",e,t,pn,arguments)},findLastIndex(e,t){return ii(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ii(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gf(this,"includes",e)},indexOf(...e){return Gf(this,"indexOf",e)},join(e){return ds(this).join(e)},lastIndexOf(...e){return Gf(this,"lastIndexOf",e)},map(e,t){return ii(this,"map",e,t,void 0,arguments)},pop(){return wl(this,"pop")},push(...e){return wl(this,"push",e)},reduce(e,...t){return gv(this,"reduce",e,t)},reduceRight(e,...t){return gv(this,"reduceRight",e,t)},shift(){return wl(this,"shift")},some(e,t){return ii(this,"some",e,t,void 0,arguments)},splice(...e){return wl(this,"splice",e)},toReversed(){return ds(this).toReversed()},toSorted(e){return ds(this).toSorted(e)},toSpliced(...e){return ds(this).toSpliced(...e)},unshift(...e){return wl(this,"unshift",e)},values(){return jf(this,"values",pn)}};function jf(e,t,r){const o=Su(e),s=o[t]();return o!==e&&!or(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const d_=Array.prototype;function ii(e,t,r,o,s,c){const f=Su(e),d=f!==e&&!or(e),h=f[t];if(h!==d_[t]){const m=h.apply(e,c);return d?pn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,pn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function gv(e,t,r,o){const s=Su(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,pn(d),h,e)}),s[t](c,...o)}function Gf(e,t,r){const o=ht(e);hn(o,"iterate",Ul);const s=o[t](...r);return(s===-1||s===!1)&&_h(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function wl(e,t,r=[]){io(),mh();const o=ht(e)[t].apply(e,r);return yh(),oo(),o}const h_=hh("__proto__,__v_isRef,__isVue"),Y0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kr));function p_(e){kr(e)||(e=String(e));const t=ht(this);return hn(t,"has",e),t.hasOwnProperty(e)}class Z0{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){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?k_:ty:c?ey:Q0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Fe(t);if(!s){let h;if(f&&(h=f_[r]))return h;if(r==="hasOwnProperty")return p_}const d=Reflect.get(t,r,At(t)?t:o);return(kr(r)?Y0.has(r):h_(r))||(s||hn(t,"get",r),c)?d:At(d)?f&&vh(r)?d:d.value:_t(d)?s?ha(d):Zn(d):d}}class J0 extends Z0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=$o(c);if(!or(o)&&!$o(o)&&(c=ht(c),o=ht(o)),!Fe(t)&&At(c)&&!At(o))return h?!1:(c.value=o,!0)}const f=Fe(t)&&vh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,At(t)?t:s);return t===ht(s)&&(f?In(o,c)&&ci(t,"set",r,o):ci(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ci(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!kr(r)||!Y0.has(r))&&hn(t,"has",r),o}ownKeys(t){return hn(t,"iterate",Fe(t)?"length":Ao),Reflect.ownKeys(t)}}class g_ extends Z0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const v_=new J0,m_=new g_,y_=new J0(!0);const wd=e=>e,oc=e=>Reflect.getPrototypeOf(e);function b_(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=bs(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?wd:t?xd:pn;return!t&&hn(c,"iterate",h?bd:Ao),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function sc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function w_(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(In(s,d)&&hn(f,"get",s),hn(f,"get",d));const{has:h}=oc(f),p=t?wd:e?xd:pn;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&&hn(ht(s),"iterate",Ao),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(In(s,d)&&hn(f,"has",s),hn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=ht(d),p=t?wd:e?xd:pn;return!e&&hn(h,"iterate",Ao),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return Wt(r,e?{add:sc("add"),set:sc("set"),delete:sc("delete"),clear:sc("clear")}:{add(s){!t&&!or(s)&&!$o(s)&&(s=ht(s));const c=ht(this);return oc(c).has.call(c,s)||(c.add(s),ci(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!$o(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=oc(f);let p=d.call(f,s);p||(s=ht(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?In(c,v)&&ci(f,"set",s,c):ci(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=oc(c);let h=f.call(c,s);h||(s=ht(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&ci(c,"delete",s,void 0),p},clear(){const s=ht(this),c=s.size!==0,f=s.clear();return c&&ci(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=b_(s,e,t)}),r}function wh(e,t){const r=w_(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 x_={get:wh(!1,!1)},S_={get:wh(!1,!0)},__={get:wh(!0,!1)};const Q0=new WeakMap,ey=new WeakMap,ty=new WeakMap,k_=new WeakMap;function T_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function C_(e){return e.__v_skip||!Object.isExtensible(e)?0:T_(XS(e))}function Zn(e){return $o(e)?e:Sh(e,!1,v_,x_,Q0)}function xh(e){return Sh(e,!1,y_,S_,ey)}function ha(e){return Sh(e,!0,m_,__,ty)}function Sh(e,t,r,o,s){if(!_t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=C_(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function ws(e){return $o(e)?ws(e.__v_raw):!!(e&&e.__v_isReactive)}function $o(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function _h(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function kh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&R0(e,"__v_skip",!0),e}const pn=e=>_t(e)?Zn(e):e,xd=e=>_t(e)?ha(e):e;function At(e){return e?e.__v_isRef===!0:!1}function We(e){return ny(e,!1)}function jr(e){return ny(e,!0)}function ny(e,t){return At(e)?e:new E_(e,t)}class E_{constructor(t,r){this.dep=new xu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:pn(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)||$o(t);t=o?t:ht(t),In(t,r)&&(this._rawValue=t,this._value=o?t:pn(t),this.dep.trigger())}}function I(e){return At(e)?e.value:e}const L_={get:(e,t,r)=>t==="__v_raw"?e:I(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return At(s)&&!At(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function ry(e){return ws(e)?e:new Proxy(e,L_)}class A_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new xu,{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 iy(e){return new A_(e)}function M_(e){const t=Fe(e)?new Array(e.length):{};for(const r in e)t[r]=oy(e,r);return t}class N_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return u_(ht(this._object),this._key)}}class $_{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 _u(e,t,r){return At(e)?e:Ke(e)?new $_(e):_t(e)&&arguments.length>1?oy(e,t,r):We(e)}function oy(e,t,r){const o=e[t];return At(o)?o:new N_(e,t,r)}class P_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new xu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return U0(this,!0),!0}get value(){const t=this.dep.track();return G0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function O_(e,t,r=!1){let o,s;return Ke(e)?o=e:(o=e.get,s=e.set),new P_(o,s,r)}const lc={},Hc=new WeakMap;let ko;function R_(e,t=!1,r=ko){if(r){let o=Hc.get(r);o||Hc.set(r,o=[]),o.push(e)}}function D_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=L=>s?L:or(L)||s===!1||s===0?ui(L,1):ui(L);let v,m,b,w,M=!1,N=!1;if(At(e)?(m=()=>e.value,M=or(e)):ws(e)?(m=()=>p(e),M=!0):Fe(e)?(N=!0,M=e.some(L=>ws(L)||or(L)),m=()=>e.map(L=>{if(At(L))return L.value;if(ws(L))return p(L);if(Ke(L))return h?h(L,2):L()})):Ke(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){io();try{b()}finally{oo()}}const L=ko;ko=v;try{return h?h(e,3,[w]):e(w)}finally{ko=L}}:m=Fr,t&&s){const L=m,z=s===!0?1/0:s;m=()=>ui(L(),z)}const E=q0(),C=()=>{v.stop(),E&&gh(E.effects,v)};if(c&&t){const L=t;t=(...z)=>{L(...z),C()}}let A=N?new Array(e.length).fill(lc):lc;const P=L=>{if(!(!(v.flags&1)||!v.dirty&&!L))if(t){const z=v.run();if(s||M||(N?z.some((W,U)=>In(W,A[U])):In(z,A))){b&&b();const W=ko;ko=v;try{const U=[z,A===lc?void 0:N&&A[0]===lc?[]:A,w];h?h(t,3,U):t(...U),A=z}finally{ko=W}}}else v.run()};return d&&d(P),v=new B0(m),v.scheduler=f?()=>f(P,!1):P,w=L=>R_(L,!1,v),b=v.onStop=()=>{const L=Hc.get(v);if(L){if(h)h(L,4);else for(const z of L)z();Hc.delete(v)}},t?o?P(!0):A=v.run():f?f(P.bind(null,!0),!0):v.run(),C.pause=v.pause.bind(v),C.resume=v.resume.bind(v),C.stop=C,C}function ui(e,t=1/0,r){if(t<=0||!_t(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,At(e))ui(e.value,t,r);else if(Fe(e))for(let o=0;o<e.length;o++)ui(e[o],t,r);else if(vu(e)||bs(e))e.forEach(o=>{ui(o,t,r)});else if(O0(e)){for(const o in e)ui(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&ui(e[o],t,r)}return e}/**
|
|
10
10
|
* @vue/runtime-core v3.5.12
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/function ha(e,t,r,o){try{return o?e(...o):e()}catch(s){pa(s,t,r)}}function Cr(e,t,r,o){if(Ke(e)){const s=ha(e,t,r,o);return s&&P0(s)&&s.catch(c=>{pa(c,t,r)}),s}if(Fe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Cr(e[c],t,r,o));return s}}function pa(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){io(),ha(c,null,10,[e,h,p]),oo();return}}I_(e,r,s,o,f)}function I_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Ln=[];let zr=-1;const xs=[];let Hi=null,hs=0;const ly=Promise.resolve();let Hc=null;function un(e){const t=Hc||ly;return e?t.then(this?e.bind(this):e):t}function F_(e){let t=zr+1,r=Ln.length;for(;t<r;){const o=t+r>>>1,s=Ln[o],c=Vl(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Th(e){if(!(e.flags&1)){const t=Vl(e),r=Ln[Ln.length-1];!r||!(e.flags&2)&&t>=Vl(r)?Ln.push(e):Ln.splice(F_(t),0,e),e.flags|=1,ay()}}function ay(){Hc||(Hc=ly.then(uy))}function Sd(e){Fe(e)?xs.push(...e):Hi&&e.id===-1?Hi.splice(hs+1,0,e):e.flags&1||(xs.push(e),e.flags|=1),ay()}function mv(e,t,r=zr+1){for(;r<Ln.length;r++){const o=Ln[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ln.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function cy(e){if(xs.length){const t=[...new Set(xs)].sort((r,o)=>Vl(r)-Vl(o));if(xs.length=0,Hi){Hi.push(...t);return}for(Hi=t,hs=0;hs<Hi.length;hs++){const r=Hi[hs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Hi=null,hs=0}}const Vl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function uy(e){try{for(zr=0;zr<Ln.length;zr++){const t=Ln[zr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ha(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;zr<Ln.length;zr++){const t=Ln[zr];t&&(t.flags&=-2)}zr=-1,Ln.length=0,cy(),Hc=null,(Ln.length||xs.length)&&uy()}}let en=null,ku=null;function qc(e){const t=en;return en=e,ku=e&&e.type.__scopeId||null,t}function fy(e){ku=e}function dy(){ku=null}const hy=e=>ot;function ot(e,t=en,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Vc(-1);const c=qc(t);let f;try{f=e(...s)}finally{qc(c),o._d&&Vc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function mt(e,t){if(en===null)return e;const r=Nu(en),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(Ke(c)&&(c={mounted:c,updated:c}),c.deep&&ui(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function bo(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&&(io(),Cr(h,r,8,[e.el,d,e,t]),oo())}}const H_=Symbol("_vte"),py=e=>e.__isTeleport,qi=Symbol("_leaveCb"),lc=Symbol("_enterCb");function q_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qs(()=>{e.isMounted=!0}),Sy(()=>{e.isUnmounting=!0}),e}const nr=[Function,Array],gy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:nr,onEnter:nr,onAfterEnter:nr,onEnterCancelled:nr,onBeforeLeave:nr,onLeave:nr,onAfterLeave:nr,onLeaveCancelled:nr,onBeforeAppear:nr,onAppear:nr,onAfterAppear:nr,onAppearCancelled:nr},vy=e=>{const t=e.subTree;return t.component?vy(t.component):t},B_={name:"BaseTransition",props:gy,setup(e,{slots:t}){const r=ga(),o=q_();return()=>{const s=t.default&&by(t.default(),!0);if(!s||!s.length)return;const c=my(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return Kf(c);const h=yv(c);if(!h)return Kf(c);let p=_d(h,f,o,r,b=>p=b);h.type!==an&&jl(h,p);const v=r.subTree,m=v&&yv(v);if(m&&m.type!==an&&!Ir(h,m)&&vy(r).type!==an){const b=_d(m,f,o,r);if(jl(m,b),d==="out-in"&&h.type!==an)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete b.afterLeave},Kf(c);d==="in-out"&&h.type!==an&&(b.delayLeave=(w,A,M)=>{const E=yy(o,m);E[String(m.key)]=m,w[qi]=()=>{A(),w[qi]=void 0,delete p.delayedLeave},p.delayedLeave=M})}return c}}};function my(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==an){t=r;break}}return t}const W_=B_;function yy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function _d(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:A,onLeaveCancelled:M,onBeforeAppear:E,onAppear:C,onAfterAppear:N,onAppearCancelled:P}=t,L=String(e.key),z=yy(r,e),W=(Q,G)=>{Q&&Cr(Q,o,9,G)},U=(Q,G)=>{const te=G[1];W(Q,G),Fe(Q)?Q.every(Z=>Z.length<=1)&&te():Q.length<=1&&te()},re={mode:f,persisted:d,beforeEnter(Q){let G=h;if(!r.isMounted)if(c)G=E||h;else return;Q[qi]&&Q[qi](!0);const te=z[L];te&&Ir(e,te)&&te.el[qi]&&te.el[qi](),W(G,[Q])},enter(Q){let G=p,te=v,Z=m;if(!r.isMounted)if(c)G=C||p,te=N||v,Z=P||m;else return;let q=!1;const F=Q[lc]=k=>{q||(q=!0,k?W(Z,[Q]):W(te,[Q]),re.delayedLeave&&re.delayedLeave(),Q[lc]=void 0)};G?U(G,[Q,F]):F()},leave(Q,G){const te=String(e.key);if(Q[lc]&&Q[lc](!0),r.isUnmounting)return G();W(b,[Q]);let Z=!1;const q=Q[qi]=F=>{Z||(Z=!0,G(),F?W(M,[Q]):W(A,[Q]),Q[qi]=void 0,z[te]===e&&delete z[te])};z[te]=e,w?U(w,[Q,q]):q()},clone(Q){const G=_d(Q,t,r,o,s);return s&&s(G),G}};return re}function Kf(e){if(Tu(e))return e=Ji(e),e.children=null,e}function yv(e){if(!Tu(e))return py(e.type)&&e.children?my(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ke(r.default))return r.default()}}function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 by(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ct?(f.patchFlag&128&&s++,o=o.concat(by(f.children,t,d))):(t||f.type!==an)&&o.push(d!=null?Ji(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return Ke(e)?Wt({name:e.name},t,{setup:e}):e}function wy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function kd(e,t,r,o,s=!1){if(Fe(e)){e.forEach((A,M)=>kd(A,t&&(Fe(t)?t[M]:t),r,o,s));return}if(Ss(o)&&!s)return;const c=o.shapeFlag&4?Nu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===vt?d.refs={}:d.refs,m=d.setupState,b=ht(m),w=m===vt?()=>!1:A=>bt(b,A);if(p!=null&&p!==h&&(Ot(p)?(v[p]=null,w(p)&&(m[p]=null)):At(p)&&(p.value=null)),Ke(h))ha(h,d,12,[f,v]);else{const A=Ot(h),M=At(h);if(A||M){const E=()=>{if(e.f){const C=A?w(h)?m[h]:v[h]:h.value;s?Fe(C)&&gh(C,c):Fe(C)?C.includes(c)||C.push(c):A?(v[h]=[c],w(h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else A?(v[h]=f,w(h)&&(m[h]=f)):M&&(h.value=f,e.k&&(v[e.k]=f))};f?(E.id=-1,Gn(E,r)):E()}}}bu().requestIdleCallback;bu().cancelIdleCallback;const Ss=e=>!!e.type.__asyncLoader,Tu=e=>e.type.__isKeepAlive;function U_(e,t){xy(e,"a",t)}function V_(e,t){xy(e,"da",t)}function xy(e,t,r=cn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Cu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Tu(s.parent.vnode)&&j_(o,t,r,s),s=s.parent}}function j_(e,t,r,o){const s=Cu(t,e,o,!0);Eu(()=>{gh(o[t],s)},r)}function Cu(e,t,r=cn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{io();const d=va(r),h=Cr(t,r,e,f);return d(),oo(),h});return o?s.unshift(c):s.push(c),c}}const bi=e=>(t,r=cn)=>{(!Kl||e==="sp")&&Cu(e,(...o)=>t(...o),r)},G_=bi("bm"),qs=bi("m"),K_=bi("bu"),X_=bi("u"),Sy=bi("bum"),Eu=bi("um"),Y_=bi("sp"),Z_=bi("rtg"),J_=bi("rtc");function Q_(e,t=cn){Cu("ec",e,t)}const Ch="components",ek="directives";function Po(e,t){return Eh(Ch,e,!0,t)||e}const _y=Symbol.for("v-ndc");function bv(e){return Ot(e)?Eh(Ch,e,!1)||e:e||_y}function Gr(e){return Eh(ek,e)}function Eh(e,t,r=!0,o=!1){const s=en||cn;if(s){const c=s.type;if(e===Ch){const d=jk(c,!1);if(d&&(d===t||d===Jn(t)||d===yu(Jn(t))))return c}const f=wv(s[e]||c[e],t)||wv(s.appContext[e],t);return!f&&o?c:f}}function wv(e,t){return e&&(e[t]||e[Jn(t)]||e[yu(Jn(t))])}function gi(e,t,r,o){let s;const c=r,f=Fe(e);if(f||Ot(e)){const d=f&&ws(e);let h=!1;d&&(h=!or(e),e=Su(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?pn(e[p]):e[p],p,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(_t(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function tk(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Fe(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 vn(e,t,r={},o,s){if(en.ce||en.parent&&Ss(en.parent)&&en.parent.ce)return t!=="default"&&(r.name=t),oe(),rt(ct,null,[Pe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&ky(c(r)),d=r.key||f&&f.key,h=rt(ct,{key:(d&&!Tr(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 ky(e){return e.some(t=>$s(t)?!(t.type===an||t.type===ct&&!ky(t.children)):!0)?e:null}function nk(e,t){const r={};for(const o in e)r[Sc(o)]=e[o];return r}const Td=e=>e?Ky(e)?Nu(e):Td(e.parent):null,Pl=Wt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Td(e.parent),$root:e=>Td(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Lh(e),$forceUpdate:e=>e.f||(e.f=()=>{Th(e.update)}),$nextTick:e=>e.n||(e.n=un.bind(e.proxy)),$watch:e=>Ck.bind(e)}),Xf=(e,t)=>e!==vt&&!e.__isScriptSetup&&bt(e,t),rk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Xf(o,t))return f[t]=1,o[t];if(s!==vt&&bt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&bt(p,t))return f[t]=3,c[t];if(r!==vt&&bt(r,t))return f[t]=4,r[t];Cd&&(f[t]=0)}}const v=Pl[t];let m,b;if(v)return t==="$attrs"&&hn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==vt&&bt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,bt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Xf(s,t)?(s[t]=r,!0):o!==vt&&bt(o,t)?(o[t]=r,!0):bt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==vt&&bt(e,f)||Xf(t,f)||(d=c[0])&&bt(d,f)||bt(o,f)||bt(Pl,f)||bt(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:bt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function ik(){return ok().attrs}function ok(){const e=ga();return e.setupContext||(e.setupContext=Yy(e))}function Bc(e){return Fe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Wc(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):Wt({},Bc(e),Bc(t))}let Cd=!0;function sk(e){const t=Lh(e),r=e.proxy,o=e.ctx;Cd=!1,t.beforeCreate&&xv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:A,activated:M,deactivated:E,beforeDestroy:C,beforeUnmount:N,destroyed:P,unmounted:L,render:z,renderTracked:W,renderTriggered:U,errorCaptured:re,serverPrefetch:Q,expose:G,inheritAttrs:te,components:Z,directives:q,filters:F}=t;if(p&&lk(p,o,null),f)for(const V in f){const ie=f[V];Ke(ie)&&(o[V]=ie.bind(r))}if(s){const V=s.call(r,r);_t(V)&&(e.data=Zn(V))}if(Cd=!0,c)for(const V in c){const ie=c[V],ye=Ke(ie)?ie.bind(r,r):Ke(ie.get)?ie.get.bind(r,r):Fr,Ne=!Ke(ie)&&Ke(ie.set)?ie.set.bind(r):Fr,Ue=Te({get:ye,set:Ne});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:je=>Ue.value=je})}if(d)for(const V in d)Ty(d[V],o,r,V);if(h){const V=Ke(h)?h.call(r):h;Reflect.ownKeys(V).forEach(ie=>{kc(ie,V[ie])})}v&&xv(v,e,"c");function B(V,ie){Fe(ie)?ie.forEach(ye=>V(ye.bind(r))):ie&&V(ie.bind(r))}if(B(G_,m),B(qs,b),B(K_,w),B(X_,A),B(U_,M),B(V_,E),B(Q_,re),B(J_,W),B(Z_,U),B(Sy,N),B(Eu,L),B(Y_,Q),Fe(G))if(G.length){const V=e.exposed||(e.exposed={});G.forEach(ie=>{Object.defineProperty(V,ie,{get:()=>r[ie],set:ye=>r[ie]=ye})})}else e.exposed||(e.exposed={});z&&e.render===Fr&&(e.render=z),te!=null&&(e.inheritAttrs=te),Z&&(e.components=Z),q&&(e.directives=q),Q&&wy(e)}function lk(e,t,r=Fr){Fe(e)&&(e=Ed(e));for(const o in e){const s=e[o];let c;_t(s)?"default"in s?c=di(s.from||o,s.default,!0):c=di(s.from||o):c=di(s),At(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function xv(e,t,r){Cr(Fe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ty(e,t,r,o){let s=o.includes(".")?Iy(r,o):()=>r[o];if(Ot(e)){const c=t[e];Ke(c)&&Bt(s,c)}else if(Ke(e))Bt(s,e.bind(r));else if(_t(e))if(Fe(e))e.forEach(c=>Ty(c,t,r,o));else{const c=Ke(e.handler)?e.handler.bind(r):t[e.handler];Ke(c)&&Bt(s,c,e)}}function Lh(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=>Uc(h,p,f,!0)),Uc(h,t,f)),_t(t)&&c.set(t,h),h}function Uc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Uc(e,c,r,!0),s&&s.forEach(f=>Uc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=ak[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const ak={data:Sv,props:_v,emits:_v,methods:El,computed:El,beforeCreate:Tn,created:Tn,beforeMount:Tn,mounted:Tn,beforeUpdate:Tn,updated:Tn,beforeDestroy:Tn,beforeUnmount:Tn,destroyed:Tn,unmounted:Tn,activated:Tn,deactivated:Tn,errorCaptured:Tn,serverPrefetch:Tn,components:El,directives:El,watch:uk,provide:Sv,inject:ck};function Sv(e,t){return t?e?function(){return Wt(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function ck(e,t){return El(Ed(e),Ed(t))}function Ed(e){if(Fe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Tn(e,t){return e?[...new Set([].concat(e,t))]:t}function El(e,t){return e?Wt(Object.create(null),e,t):t}function _v(e,t){return e?Fe(e)&&Fe(t)?[...new Set([...e,...t])]:Wt(Object.create(null),Bc(e),Bc(t??{})):t}function uk(e,t){if(!e)return t;if(!t)return e;const r=Wt(Object.create(null),e);for(const o in t)r[o]=Tn(e[o],t[o]);return r}function Cy(){return{app:null,config:{isNativeTag:KS,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fk=0;function dk(e,t){return function(o,s=null){Ke(o)||(o=Wt({},o)),s!=null&&!_t(s)&&(s=null);const c=Cy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:fk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Kk,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ke(v.install)?(f.add(v),v.install(p,...m)):Ke(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Pe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),m&&t?t(w,v):e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Nu(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Cr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=_s;_s=p;try{return v()}finally{_s=m}}};return p}}let _s=null;function kc(e,t){if(cn){let r=cn.provides;const o=cn.parent&&cn.parent.provides;o===r&&(r=cn.provides=Object.create(o)),r[e]=t}}function di(e,t,r=!1){const o=cn||en;if(o||_s){const s=_s?_s._context.provides:o?o.parent==null?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&&Ke(t)?t.call(o&&o.proxy):t}}const Ey={},Ly=()=>Object.create(Ey),Ay=e=>Object.getPrototypeOf(e)===Ey;function hk(e,t,r,o=!1){const s={},c=Ly();e.propsDefaults=Object.create(null),My(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:xh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function pk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=ht(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Au(e.emitsOptions,b))continue;const w=t[b];if(h)if(bt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const A=Jn(b);s[A]=Ld(h,d,A,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{My(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!bt(t,m)&&((v=yi(m))===m||!bt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Ld(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!bt(t,m))&&(delete c[m],p=!0)}p&&ci(e.attrs,"set","")}function My(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ml(h))continue;const p=t[h];let v;s&&bt(s,v=Jn(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Au(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=ht(r),p=d||vt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Ld(s,h,m,p[m],e,!bt(p,m))}}return f}function Ld(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=bt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ke(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=va(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===yi(r))&&(o=!0))}return o}const gk=new WeakMap;function Ny(e,t,r=!1){const o=r?gk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ke(e)){const v=m=>{h=!0;const[b,w]=Ny(m,t,!0);Wt(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return _t(e)&&o.set(e,ys),ys;if(Fe(c))for(let v=0;v<c.length;v++){const m=Jn(c[v]);kv(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=Jn(v);if(kv(m)){const b=c[v],w=f[m]=Fe(b)||Ke(b)?{type:b}:Wt({},b),A=w.type;let M=!1,E=!0;if(Fe(A))for(let C=0;C<A.length;++C){const N=A[C],P=Ke(N)&&N.name;if(P==="Boolean"){M=!0;break}else P==="String"&&(E=!1)}else M=Ke(A)&&A.name==="Boolean";w[0]=M,w[1]=E,(M||bt(w,"default"))&&d.push(m)}}const p=[f,d];return _t(e)&&o.set(e,p),p}function kv(e){return e[0]!=="$"&&!Ml(e)}const $y=e=>e[0]==="_"||e==="$stable",Ah=e=>Fe(e)?e.map(wr):[wr(e)],vk=(e,t,r)=>{if(t._n)return t;const o=ot((...s)=>Ah(t(...s)),r);return o._c=!1,o},Py=(e,t,r)=>{const o=e._ctx;for(const s in e){if($y(s))continue;const c=e[s];if(Ke(c))t[s]=vk(s,c,o);else if(c!=null){const f=Ah(c);t[s]=()=>f}}},Oy=(e,t)=>{const r=Ah(t);e.slots.default=()=>r},Ry=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},mk=(e,t,r)=>{const o=e.slots=Ly();if(e.vnode.shapeFlag&32){const s=t._;s?(Ry(o,t,r),r&&D0(o,"_",s,!0)):Py(t,o)}else t&&Oy(e,t)},yk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Ry(s,t,r):(c=!t.$stable,Py(t,s)),f=t}else t&&(Oy(e,t),f={default:1});if(c)for(const d in s)!$y(d)&&f[d]==null&&delete s[d]},Gn=zk;function bk(e){return wk(e)}function wk(e,t){const r=bu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=Fr,insertStaticContent:A}=e,M=(O,H,J,fe=null,le=null,he=null,_e=void 0,ue=null,be=!!H.dynamicChildren)=>{if(O===H)return;O&&!Ir(O,H)&&(fe=X(O),je(O,le,he,!0),O=null),H.patchFlag===-2&&(be=!1,H.dynamicChildren=null);const{type:ve,ref:qe,shapeFlag:Le}=H;switch(ve){case Mu:E(O,H,J,fe);break;case an:C(O,H,J,fe);break;case Jf:O==null&&N(H,J,fe,_e);break;case ct:Z(O,H,J,fe,le,he,_e,ue,be);break;default:Le&1?z(O,H,J,fe,le,he,_e,ue,be):Le&6?q(O,H,J,fe,le,he,_e,ue,be):(Le&64||Le&128)&&ve.process(O,H,J,fe,le,he,_e,ue,be,$e)}qe!=null&&le&&kd(qe,O&&O.ref,he,H||O,!H)},E=(O,H,J,fe)=>{if(O==null)o(H.el=d(H.children),J,fe);else{const le=H.el=O.el;H.children!==O.children&&p(le,H.children)}},C=(O,H,J,fe)=>{O==null?o(H.el=h(H.children||""),J,fe):H.el=O.el},N=(O,H,J,fe)=>{[O.el,O.anchor]=A(O.children,H,J,fe,O.el,O.anchor)},P=({el:O,anchor:H},J,fe)=>{let le;for(;O&&O!==H;)le=b(O),o(O,J,fe),O=le;o(H,J,fe)},L=({el:O,anchor:H})=>{let J;for(;O&&O!==H;)J=b(O),s(O),O=J;s(H)},z=(O,H,J,fe,le,he,_e,ue,be)=>{H.type==="svg"?_e="svg":H.type==="math"&&(_e="mathml"),O==null?W(H,J,fe,le,he,_e,ue,be):Q(O,H,le,he,_e,ue,be)},W=(O,H,J,fe,le,he,_e,ue)=>{let be,ve;const{props:qe,shapeFlag:Le,transition:De,dirs:Be}=O;if(be=O.el=f(O.type,he,qe&&qe.is,qe),Le&8?v(be,O.children):Le&16&&re(O.children,be,null,fe,le,Yf(O,he),_e,ue),Be&&bo(O,null,fe,"created"),U(be,O,O.scopeId,_e,fe),qe){for(const gt in qe)gt!=="value"&&!Ml(gt)&&c(be,gt,null,qe[gt],he,fe);"value"in qe&&c(be,"value",null,qe.value,he),(ve=qe.onVnodeBeforeMount)&&Rr(ve,fe,O)}Be&&bo(O,null,fe,"beforeMount");const Xe=xk(le,De);Xe&&De.beforeEnter(be),o(be,H,J),((ve=qe&&qe.onVnodeMounted)||Xe||Be)&&Gn(()=>{ve&&Rr(ve,fe,O),Xe&&De.enter(be),Be&&bo(O,null,fe,"mounted")},le)},U=(O,H,J,fe,le)=>{if(J&&w(O,J),fe)for(let he=0;he<fe.length;he++)w(O,fe[he]);if(le){let he=le.subTree;if(H===he||qy(he.type)&&(he.ssContent===H||he.ssFallback===H)){const _e=le.vnode;U(O,_e,_e.scopeId,_e.slotScopeIds,le.parent)}}},re=(O,H,J,fe,le,he,_e,ue,be=0)=>{for(let ve=be;ve<O.length;ve++){const qe=O[ve]=ue?Bi(O[ve]):wr(O[ve]);M(null,qe,H,J,fe,le,he,_e,ue)}},Q=(O,H,J,fe,le,he,_e)=>{const ue=H.el=O.el;let{patchFlag:be,dynamicChildren:ve,dirs:qe}=H;be|=O.patchFlag&16;const Le=O.props||vt,De=H.props||vt;let Be;if(J&&wo(J,!1),(Be=De.onVnodeBeforeUpdate)&&Rr(Be,J,H,O),qe&&bo(H,O,J,"beforeUpdate"),J&&wo(J,!0),(Le.innerHTML&&De.innerHTML==null||Le.textContent&&De.textContent==null)&&v(ue,""),ve?G(O.dynamicChildren,ve,ue,J,fe,Yf(H,le),he):_e||ie(O,H,ue,null,J,fe,Yf(H,le),he,!1),be>0){if(be&16)te(ue,Le,De,J,le);else if(be&2&&Le.class!==De.class&&c(ue,"class",null,De.class,le),be&4&&c(ue,"style",Le.style,De.style,le),be&8){const Xe=H.dynamicProps;for(let gt=0;gt<Xe.length;gt++){const nt=Xe[gt],lt=Le[nt],Tt=De[nt];(Tt!==lt||nt==="value")&&c(ue,nt,lt,Tt,le,J)}}be&1&&O.children!==H.children&&v(ue,H.children)}else!_e&&ve==null&&te(ue,Le,De,J,le);((Be=De.onVnodeUpdated)||qe)&&Gn(()=>{Be&&Rr(Be,J,H,O),qe&&bo(H,O,J,"updated")},fe)},G=(O,H,J,fe,le,he,_e)=>{for(let ue=0;ue<H.length;ue++){const be=O[ue],ve=H[ue],qe=be.el&&(be.type===ct||!Ir(be,ve)||be.shapeFlag&70)?m(be.el):J;M(be,ve,qe,null,fe,le,he,_e,!0)}},te=(O,H,J,fe,le)=>{if(H!==J){if(H!==vt)for(const he in H)!Ml(he)&&!(he in J)&&c(O,he,H[he],null,le,fe);for(const he in J){if(Ml(he))continue;const _e=J[he],ue=H[he];_e!==ue&&he!=="value"&&c(O,he,ue,_e,le,fe)}"value"in J&&c(O,"value",H.value,J.value,le)}},Z=(O,H,J,fe,le,he,_e,ue,be)=>{const ve=H.el=O?O.el:d(""),qe=H.anchor=O?O.anchor:d("");let{patchFlag:Le,dynamicChildren:De,slotScopeIds:Be}=H;Be&&(ue=ue?ue.concat(Be):Be),O==null?(o(ve,J,fe),o(qe,J,fe),re(H.children||[],J,qe,le,he,_e,ue,be)):Le>0&&Le&64&&De&&O.dynamicChildren?(G(O.dynamicChildren,De,J,le,he,_e,ue),(H.key!=null||le&&H===le.subTree)&&Dy(O,H,!0)):ie(O,H,J,qe,le,he,_e,ue,be)},q=(O,H,J,fe,le,he,_e,ue,be)=>{H.slotScopeIds=ue,O==null?H.shapeFlag&512?le.ctx.activate(H,J,fe,_e,be):F(H,J,fe,le,he,_e,be):k(O,H,be)},F=(O,H,J,fe,le,he,_e)=>{const ue=O.component=Bk(O,fe,le);if(Tu(O)&&(ue.ctx.renderer=$e),Wk(ue,!1,_e),ue.asyncDep){if(le&&le.registerDep(ue,B,_e),!O.el){const be=ue.subTree=Pe(an);C(null,be,H,J)}}else B(ue,O,H,J,le,he,_e)},k=(O,H,J)=>{const fe=H.component=O.component;if(Nk(O,H,J))if(fe.asyncDep&&!fe.asyncResolved){V(fe,H,J);return}else fe.next=H,fe.update();else H.el=O.el,fe.vnode=H},B=(O,H,J,fe,le,he,_e)=>{const ue=()=>{if(O.isMounted){let{next:Le,bu:De,u:Be,parent:Xe,vnode:gt}=O;{const Dt=zy(O);if(Dt){Le&&(Le.el=gt.el,V(O,Le,_e)),Dt.asyncDep.then(()=>{O.isUnmounted||ue()});return}}let nt=Le,lt;wo(O,!1),Le?(Le.el=gt.el,V(O,Le,_e)):Le=gt,De&&_c(De),(lt=Le.props&&Le.props.onVnodeBeforeUpdate)&&Rr(lt,Xe,Le,gt),wo(O,!0);const Tt=Zf(O),Rt=O.subTree;O.subTree=Tt,M(Rt,Tt,m(Rt.el),X(Rt),O,le,he),Le.el=Tt.el,nt===null&&$h(O,Tt.el),Be&&Gn(Be,le),(lt=Le.props&&Le.props.onVnodeUpdated)&&Gn(()=>Rr(lt,Xe,Le,gt),le)}else{let Le;const{el:De,props:Be}=H,{bm:Xe,m:gt,parent:nt,root:lt,type:Tt}=O,Rt=Ss(H);if(wo(O,!1),Xe&&_c(Xe),!Rt&&(Le=Be&&Be.onVnodeBeforeMount)&&Rr(Le,nt,H),wo(O,!0),De&&Ze){const Dt=()=>{O.subTree=Zf(O),Ze(De,O.subTree,O,le,null)};Rt&&Tt.__asyncHydrate?Tt.__asyncHydrate(De,O,Dt):Dt()}else{lt.ce&<.ce._injectChildStyle(Tt);const Dt=O.subTree=Zf(O);M(null,Dt,J,fe,O,le,he),H.el=Dt.el}if(gt&&Gn(gt,le),!Rt&&(Le=Be&&Be.onVnodeMounted)){const Dt=H;Gn(()=>Rr(Le,nt,Dt),le)}(H.shapeFlag&256||nt&&Ss(nt.vnode)&&nt.vnode.shapeFlag&256)&&O.a&&Gn(O.a,le),O.isMounted=!0,H=J=fe=null}};O.scope.on();const be=O.effect=new W0(ue);O.scope.off();const ve=O.update=be.run.bind(be),qe=O.job=be.runIfDirty.bind(be);qe.i=O,qe.id=O.uid,be.scheduler=()=>Th(qe),wo(O,!0),ve()},V=(O,H,J)=>{H.component=O;const fe=O.vnode.props;O.vnode=H,O.next=null,pk(O,H.props,fe,J),yk(O,H.children,J),io(),mv(O),oo()},ie=(O,H,J,fe,le,he,_e,ue,be=!1)=>{const ve=O&&O.children,qe=O?O.shapeFlag:0,Le=H.children,{patchFlag:De,shapeFlag:Be}=H;if(De>0){if(De&128){Ne(ve,Le,J,fe,le,he,_e,ue,be);return}else if(De&256){ye(ve,Le,J,fe,le,he,_e,ue,be);return}}Be&8?(qe&16&&Ae(ve,le,he),Le!==ve&&v(J,Le)):qe&16?Be&16?Ne(ve,Le,J,fe,le,he,_e,ue,be):Ae(ve,le,he,!0):(qe&8&&v(J,""),Be&16&&re(Le,J,fe,le,he,_e,ue,be))},ye=(O,H,J,fe,le,he,_e,ue,be)=>{O=O||ys,H=H||ys;const ve=O.length,qe=H.length,Le=Math.min(ve,qe);let De;for(De=0;De<Le;De++){const Be=H[De]=be?Bi(H[De]):wr(H[De]);M(O[De],Be,J,null,le,he,_e,ue,be)}ve>qe?Ae(O,le,he,!0,!1,Le):re(H,J,fe,le,he,_e,ue,be,Le)},Ne=(O,H,J,fe,le,he,_e,ue,be)=>{let ve=0;const qe=H.length;let Le=O.length-1,De=qe-1;for(;ve<=Le&&ve<=De;){const Be=O[ve],Xe=H[ve]=be?Bi(H[ve]):wr(H[ve]);if(Ir(Be,Xe))M(Be,Xe,J,null,le,he,_e,ue,be);else break;ve++}for(;ve<=Le&&ve<=De;){const Be=O[Le],Xe=H[De]=be?Bi(H[De]):wr(H[De]);if(Ir(Be,Xe))M(Be,Xe,J,null,le,he,_e,ue,be);else break;Le--,De--}if(ve>Le){if(ve<=De){const Be=De+1,Xe=Be<qe?H[Be].el:fe;for(;ve<=De;)M(null,H[ve]=be?Bi(H[ve]):wr(H[ve]),J,Xe,le,he,_e,ue,be),ve++}}else if(ve>De)for(;ve<=Le;)je(O[ve],le,he,!0),ve++;else{const Be=ve,Xe=ve,gt=new Map;for(ve=Xe;ve<=De;ve++){const tn=H[ve]=be?Bi(H[ve]):wr(H[ve]);tn.key!=null&>.set(tn.key,ve)}let nt,lt=0;const Tt=De-Xe+1;let Rt=!1,Dt=0;const Wn=new Array(Tt);for(ve=0;ve<Tt;ve++)Wn[ve]=0;for(ve=Be;ve<=Le;ve++){const tn=O[ve];if(lt>=Tt){je(tn,le,he,!0);continue}let Ve;if(tn.key!=null)Ve=gt.get(tn.key);else for(nt=Xe;nt<=De;nt++)if(Wn[nt-Xe]===0&&Ir(tn,H[nt])){Ve=nt;break}Ve===void 0?je(tn,le,he,!0):(Wn[Ve-Xe]=ve+1,Ve>=Dt?Dt=Ve:Rt=!0,M(tn,H[Ve],J,null,le,he,_e,ue,be),lt++)}const ar=Rt?Sk(Wn):ys;for(nt=ar.length-1,ve=Tt-1;ve>=0;ve--){const tn=Xe+ve,Ve=H[tn],so=tn+1<qe?H[tn+1].el:fe;Wn[ve]===0?M(null,Ve,J,so,le,he,_e,ue,be):Rt&&(nt<0||ve!==ar[nt]?Ue(Ve,J,so,2):nt--)}}},Ue=(O,H,J,fe,le=null)=>{const{el:he,type:_e,transition:ue,children:be,shapeFlag:ve}=O;if(ve&6){Ue(O.component.subTree,H,J,fe);return}if(ve&128){O.suspense.move(H,J,fe);return}if(ve&64){_e.move(O,H,J,$e);return}if(_e===ct){o(he,H,J);for(let Le=0;Le<be.length;Le++)Ue(be[Le],H,J,fe);o(O.anchor,H,J);return}if(_e===Jf){P(O,H,J);return}if(fe!==2&&ve&1&&ue)if(fe===0)ue.beforeEnter(he),o(he,H,J),Gn(()=>ue.enter(he),le);else{const{leave:Le,delayLeave:De,afterLeave:Be}=ue,Xe=()=>o(he,H,J),gt=()=>{Le(he,()=>{Xe(),Be&&Be()})};De?De(he,Xe,gt):gt()}else o(he,H,J)},je=(O,H,J,fe=!1,le=!1)=>{const{type:he,props:_e,ref:ue,children:be,dynamicChildren:ve,shapeFlag:qe,patchFlag:Le,dirs:De,cacheIndex:Be}=O;if(Le===-2&&(le=!1),ue!=null&&kd(ue,null,J,O,!0),Be!=null&&(H.renderCache[Be]=void 0),qe&256){H.ctx.deactivate(O);return}const Xe=qe&1&&De,gt=!Ss(O);let nt;if(gt&&(nt=_e&&_e.onVnodeBeforeUnmount)&&Rr(nt,H,O),qe&6)Je(O.component,J,fe);else{if(qe&128){O.suspense.unmount(J,fe);return}Xe&&bo(O,null,H,"beforeUnmount"),qe&64?O.type.remove(O,H,J,$e,fe):ve&&!ve.hasOnce&&(he!==ct||Le>0&&Le&64)?Ae(ve,H,J,!1,!0):(he===ct&&Le&384||!le&&qe&16)&&Ae(be,H,J),fe&&it(O)}(gt&&(nt=_e&&_e.onVnodeUnmounted)||Xe)&&Gn(()=>{nt&&Rr(nt,H,O),Xe&&bo(O,null,H,"unmounted")},J)},it=O=>{const{type:H,el:J,anchor:fe,transition:le}=O;if(H===ct){tt(J,fe);return}if(H===Jf){L(O);return}const he=()=>{s(J),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(O.shapeFlag&1&&le&&!le.persisted){const{leave:_e,delayLeave:ue}=le,be=()=>_e(J,he);ue?ue(O.el,he,be):be()}else he()},tt=(O,H)=>{let J;for(;O!==H;)J=b(O),s(O),O=J;s(H)},Je=(O,H,J)=>{const{bum:fe,scope:le,job:he,subTree:_e,um:ue,m:be,a:ve}=O;Tv(be),Tv(ve),fe&&_c(fe),le.stop(),he&&(he.flags|=8,je(_e,O,H,J)),ue&&Gn(ue,H),Gn(()=>{O.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},Ae=(O,H,J,fe=!1,le=!1,he=0)=>{for(let _e=he;_e<O.length;_e++)je(O[_e],H,J,fe,le)},X=O=>{if(O.shapeFlag&6)return X(O.component.subTree);if(O.shapeFlag&128)return O.suspense.next();const H=b(O.anchor||O.el),J=H&&H[H_];return J?b(J):H};let ae=!1;const de=(O,H,J)=>{O==null?H._vnode&&je(H._vnode,null,null,!0):M(H._vnode||null,O,H,null,null,null,J),H._vnode=O,ae||(ae=!0,mv(),cy(),ae=!1)},$e={p:M,um:je,m:Ue,r:it,mt:F,mc:re,pc:ie,pbc:G,n:X,o:e};let Ee,Ze;return{render:de,hydrate:Ee,createApp:dk(de,Ee)}}function Yf({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 wo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Dy(e,t,r=!1){const o=e.children,s=t.children;if(Fe(o)&&Fe(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]=Bi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Dy(f,d)),d.type===Mu&&(d.el=f.el)}}function Sk(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 zy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zy(t)}function Tv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const _k=Symbol.for("v-scx"),kk=()=>di(_k);function Mh(e,t){return Lu(e,null,t)}function Tk(e,t){return Lu(e,null,{flush:"sync"})}function Bt(e,t,r){return Lu(e,t,r)}function Lu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=Wt({},r),h=t&&o||!t&&c!=="post";let p;if(Kl){if(c==="sync"){const w=kk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Fr,w.resume=Fr,w.pause=Fr,w}}const v=cn;d.call=(w,A,M)=>Cr(w,v,A,M);let m=!1;c==="post"?d.scheduler=w=>{Gn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,A)=>{A?w():Th(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=z_(e,t,d);return Kl&&(p?p.push(b):h&&b()),b}function Ck(e,t,r){const o=this.proxy,s=Ot(e)?e.includes(".")?Iy(o,e):()=>o[e]:e.bind(o,o);let c;Ke(t)?c=t:(c=t.handler,r=t);const f=va(this),d=Lu(s,c.bind(o),r);return f(),d}function Iy(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Nh(e,t,r=vt){const o=ga(),s=Jn(t),c=yi(t),f=Fy(e,s),d=oy((h,p)=>{let v,m=vt,b;return Tk(()=>{const w=e[s];In(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const A=r.set?r.set(w):w;if(!In(A,v)&&!(m!==vt&&In(w,m)))return;const M=o.vnode.props;M&&(t in M||s in M||c in M)&&(`onUpdate:${t}`in M||`onUpdate:${s}`in M||`onUpdate:${c}`in M)||(v=w,p()),o.emit(`update:${t}`,A),In(w,A)&&In(w,m)&&!In(A,b)&&p(),m=w,b=A}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Fy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Jn(t)}Modifiers`]||e[`${yi(t)}Modifiers`];function Ek(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Fy(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Ot(v)?v.trim():v)),f.number&&(s=r.map(md)));let d,h=o[d=Sc(t)]||o[d=Sc(Jn(t))];!h&&c&&(h=o[d=Sc(yi(t))]),h&&Cr(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,Cr(p,e,6,s)}}function Hy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ke(e)){const h=p=>{const v=Hy(p,t,!0);v&&(d=!0,Wt(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(_t(e)&&o.set(e,null),null):(Fe(c)?c.forEach(h=>f[h]=null):Wt(f,c),_t(e)&&o.set(e,f),f)}function Au(e,t){return!e||!gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),bt(e,t[0].toLowerCase()+t.slice(1))||bt(e,yi(t))||bt(e,t))}function Zf(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:A,inheritAttrs:M}=e,E=qc(e);let C,N;try{if(r.shapeFlag&4){const L=s||o,z=L;C=wr(p.call(z,L,v,m,w,b,A)),N=d}else{const L=t;C=wr(L.length>1?L(m,{attrs:d,slots:f,emit:h}):L(m,null)),N=t.props?d:Ak(d)}}catch(L){Ol.length=0,pa(L,e,1),C=Pe(an)}let P=C;if(N&&M!==!1){const L=Object.keys(N),{shapeFlag:z}=P;L.length&&z&7&&(c&&L.some(ph)&&(N=Mk(N,c)),P=Ji(P,N,!1,!0))}return r.dirs&&(P=Ji(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&jl(P,r.transition),C=P,qc(E),C}function Lk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if($s(s)){if(s.type!==an||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Ak=e=>{let t;for(const r in e)(r==="class"||r==="style"||gu(r))&&((t||(t={}))[r]=e[r]);return t},Mk=(e,t)=>{const r={};for(const o in e)(!ph(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Nk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Cv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Au(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Cv(o,f,p):!0:!!f;return!1}function Cv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Au(r,c))return!0}return!1}function $h({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const qy=e=>e.__isSuspense;let Ad=0;const $k={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Pk(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}Ok(e,t,r,o,s,f,d,h,p)}},hydrate:Rk,normalize:Dk},By=$k;function Gl(e,t){const r=e.props&&e.props[t];Ke(r)&&r()}function Pk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Wy(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(Gl(e,"onPending"),Gl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ks(b,e.ssFallback)):b.resolve(!1,!0)}function Ok(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:A,pendingBranch:M,isInFallback:E,isHydrating:C}=m;if(M)m.pendingBranch=b,Ir(b,M)?(h(M,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():E&&(C||(h(A,w,r,o,s,null,c,f,d),ks(m,w)))):(m.pendingId=Ad++,C?(m.isHydrating=!1,m.activeBranch=M):p(M,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),E?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(A,w,r,o,s,null,c,f,d),ks(m,w))):A&&Ir(b,A)?(h(A,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(A&&Ir(b,A))h(A,b,r,o,s,m,c,f,d),ks(m,b);else if(Gl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ad++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:N,pendingId:P}=m;N>0?setTimeout(()=>{m.pendingId===P&&m.fallback(w)},N):N===0&&m.fallback(w)}}function Wy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:A,o:{parentNode:M,remove:E}}=p;let C;const N=Ik(e);N&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const P=e.props?z0(e.props.timeout):void 0,L=c,z={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ad++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(W=!1,U=!1){const{vnode:re,activeBranch:Q,pendingBranch:G,pendingId:te,effects:Z,parentComponent:q,container:F}=z;let k=!1;z.isHydrating?z.isHydrating=!1:W||(k=Q&&G.transition&&G.transition.mode==="out-in",k&&(Q.transition.afterLeave=()=>{te===z.pendingId&&(b(G,F,c===L?A(Q):c,0),Sd(Z))}),Q&&(M(Q.el)===F&&(c=A(Q)),w(Q,q,z,!0)),k||b(G,F,c,0)),ks(z,G),z.pendingBranch=null,z.isInFallback=!1;let B=z.parent,V=!1;for(;B;){if(B.pendingBranch){B.effects.push(...Z),V=!0;break}B=B.parent}!V&&!k&&Sd(Z),z.effects=[],N&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!U&&t.resolve()),Gl(re,"onResolve")},fallback(W){if(!z.pendingBranch)return;const{vnode:U,activeBranch:re,parentComponent:Q,container:G,namespace:te}=z;Gl(U,"onFallback");const Z=A(re),q=()=>{z.isInFallback&&(m(null,W,G,Z,Q,null,te,d,h),ks(z,W))},F=W.transition&&W.transition.mode==="out-in";F&&(re.transition.afterLeave=q),z.isInFallback=!0,w(re,Q,null,!0),F||q()},move(W,U,re){z.activeBranch&&b(z.activeBranch,W,U,re),z.container=W},next(){return z.activeBranch&&A(z.activeBranch)},registerDep(W,U,re){const Q=!!z.pendingBranch;Q&&z.deps++;const G=W.vnode.el;W.asyncDep.catch(te=>{pa(te,W,0)}).then(te=>{if(W.isUnmounted||z.isUnmounted||z.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:Z}=W;Nd(W,te,!1),G&&(Z.el=G);const q=!G&&W.subTree.el;U(W,Z,M(G||W.subTree.el),G?null:A(W.subTree),z,f,re),q&&E(q),$h(W,Z.el),Q&&--z.deps===0&&z.resolve()})},unmount(W,U){z.isUnmounted=!0,z.activeBranch&&w(z.activeBranch,r,W,U),z.pendingBranch&&w(z.pendingBranch,r,W,U)}};return z}function Rk(e,t,r,o,s,c,f,d,h){const p=t.suspense=Wy(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Dk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Ev(o?r.default:r),e.ssFallback=o?Ev(r.fallback):Pe(an)}function Ev(e){let t;if(Ke(e)){const r=Ns&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=Hn,Uy())}return Fe(e)&&(e=Lk(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function zk(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):Sd(e)}function ks(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,$h(o,s))}function Ik(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Mu=Symbol.for("v-txt"),an=Symbol.for("v-cmt"),Jf=Symbol.for("v-stc"),Ol=[];let Hn=null;function oe(e=!1){Ol.push(Hn=e?null:[])}function Uy(){Ol.pop(),Hn=Ol[Ol.length-1]||null}let Ns=1;function Vc(e){Ns+=e,e<0&&Hn&&(Hn.hasOnce=!0)}function Vy(e){return e.dynamicChildren=Ns>0?Hn||ys:null,Uy(),Ns>0&&Hn&&Hn.push(e),e}function me(e,t,r,o,s,c){return Vy(Y(e,t,r,o,s,c,!0))}function rt(e,t,r,o,s){return Vy(Pe(e,t,r,o,s,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function Ir(e,t){return e.type===t.type&&e.key===t.key}const jy=({key:e})=>e??null,Tc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ot(e)||At(e)||Ke(e)?{i:en,r:e,k:t,f:!!r}:e:null);function Y(e,t=null,r=null,o=0,s=null,c=e===ct?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jy(t),ref:t&&Tc(t),scopeId:ku,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:en};return d?(Ph(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ot(r)?8:16),Ns>0&&!f&&Hn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Hn.push(h),h}const Pe=Fk;function Fk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===_y)&&(e=an),$s(e)){const d=Ji(e,t,!0);return r&&Ph(d,r),Ns>0&&!c&&Hn&&(d.shapeFlag&6?Hn[Hn.indexOf(e)]=d:Hn.push(d)),d.patchFlag=-2,d}if(Gk(e)&&(e=e.__vccOpts),t){t=Gy(t);let{class:d,style:h}=t;d&&!Ot(d)&&(t.class=st(d)),_t(h)&&(_h(h)&&!Fe(h)&&(h=Wt({},h)),t.style=Jt(h))}const f=Ot(e)?1:qy(e)?128:py(e)?64:_t(e)?4:Ke(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function Gy(e){return e?_h(e)||Ay(e)?Wt({},e):e:null}function Ji(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?hi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&jy(p),ref:t&&t.ref?r&&c?Fe(c)?c.concat(Tc(t)):[c,Tc(t)]:Tc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ji(e.ssContent),ssFallback:e.ssFallback&&Ji(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&jl(v,h.clone(v)),v}function pt(e=" ",t=0){return Pe(Mu,null,e,t)}function Ye(e="",t=!1){return t?(oe(),rt(an,null,e)):Pe(an,null,e)}function wr(e){return e==null||typeof e=="boolean"?Pe(an):Fe(e)?Pe(ct,null,e.slice()):$s(e)?Bi(e):Pe(Mu,null,String(e))}function Bi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ji(e)}function Ph(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Fe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Ph(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Ay(t)?t._ctx=en:s===3&&en&&(en.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(t)?(t={default:t,_ctx:en},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function hi(...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=st([t.class,o.class]));else if(s==="style")t.style=Jt([t.style,o.style]);else if(gu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Fe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Rr(e,t,r,o=null){Cr(e,t,7,[r,o])}const Hk=Cy();let qk=0;function Bk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Hk,c={uid:qk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new l_(!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:Ny(o,s),emitsOptions:Hy(o,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Ek.bind(null,c),e.ce&&e.ce(c),c}let cn=null;const ga=()=>cn||en;let jc,Md;{const e=bu(),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)}};jc=t("__VUE_INSTANCE_SETTERS__",r=>cn=r),Md=t("__VUE_SSR_SETTERS__",r=>Kl=r)}const va=e=>{const t=cn;return jc(e),e.scope.on(),()=>{e.scope.off(),jc(t)}},Lv=()=>{cn&&cn.scope.off(),jc(null)};function Ky(e){return e.vnode.shapeFlag&4}let Kl=!1;function Wk(e,t=!1,r=!1){t&&Md(t);const{props:o,children:s}=e.vnode,c=Ky(e);hk(e,o,c,t),mk(e,s,r);const f=c?Uk(e,t):void 0;return t&&Md(!1),f}function Uk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rk);const{setup:o}=r;if(o){io();const s=e.setupContext=o.length>1?Yy(e):null,c=va(e),f=ha(o,e,0,[e.props,s]),d=P0(f);if(oo(),c(),(d||e.sp)&&!Ss(e)&&wy(e),d){if(f.then(Lv,Lv),t)return f.then(h=>{Nd(e,h,t)}).catch(h=>{pa(h,e,0)});e.asyncDep=f}else Nd(e,f,t)}else Xy(e,t)}function Nd(e,t,r){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_t(t)&&(e.setupState=iy(t)),Xy(e,r)}let Av;function Xy(e,t,r){const o=e.type;if(!e.render){if(!t&&Av&&!o.render){const s=o.template||Lh(e).template;if(s){const{isCustomElement:c,compilerOptions:f}=e.appContext.config,{delimiters:d,compilerOptions:h}=o,p=Wt(Wt({isCustomElement:c,delimiters:d},f),h);o.render=Av(s,p)}}e.render=o.render||Fr}{const s=va(e);io();try{sk(e)}finally{oo(),s()}}}const Vk={get(e,t){return hn(e,"get",""),e[t]}};function Yy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Vk),slots:e.slots,emit:e.emit,expose:t}}function Nu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(iy(kh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Pl)return Pl[r](e)},has(t,r){return r in t||r in Pl}})):e.proxy}function jk(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function Gk(e){return Ke(e)&&"__vccOpts"in e}const Te=(e,t)=>R_(e,t,Kl);function ma(e,t,r){const o=arguments.length;return o===2?_t(t)&&!Fe(t)?$s(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&$s(r)&&(r=[r]),Pe(e,t,r))}const Kk="3.5.12";/**
|
|
13
|
+
**/function pa(e,t,r,o){try{return o?e(...o):e()}catch(s){ga(s,t,r)}}function Tr(e,t,r,o){if(Ke(e)){const s=pa(e,t,r,o);return s&&$0(s)&&s.catch(c=>{ga(c,t,r)}),s}if(Fe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Tr(e[c],t,r,o));return s}}function ga(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){io(),pa(c,null,10,[e,h,p]),oo();return}}z_(e,r,s,o,f)}function z_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Ln=[];let zr=-1;const xs=[];let Hi=null,hs=0;const sy=Promise.resolve();let qc=null;function un(e){const t=qc||sy;return e?t.then(this?e.bind(this):e):t}function I_(e){let t=zr+1,r=Ln.length;for(;t<r;){const o=t+r>>>1,s=Ln[o],c=Vl(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Th(e){if(!(e.flags&1)){const t=Vl(e),r=Ln[Ln.length-1];!r||!(e.flags&2)&&t>=Vl(r)?Ln.push(e):Ln.splice(I_(t),0,e),e.flags|=1,ly()}}function ly(){qc||(qc=sy.then(cy))}function Sd(e){Fe(e)?xs.push(...e):Hi&&e.id===-1?Hi.splice(hs+1,0,e):e.flags&1||(xs.push(e),e.flags|=1),ly()}function vv(e,t,r=zr+1){for(;r<Ln.length;r++){const o=Ln[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ln.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function ay(e){if(xs.length){const t=[...new Set(xs)].sort((r,o)=>Vl(r)-Vl(o));if(xs.length=0,Hi){Hi.push(...t);return}for(Hi=t,hs=0;hs<Hi.length;hs++){const r=Hi[hs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Hi=null,hs=0}}const Vl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function cy(e){try{for(zr=0;zr<Ln.length;zr++){const t=Ln[zr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;zr<Ln.length;zr++){const t=Ln[zr];t&&(t.flags&=-2)}zr=-1,Ln.length=0,ay(),qc=null,(Ln.length||xs.length)&&cy()}}let en=null,ku=null;function Bc(e){const t=en;return en=e,ku=e&&e.type.__scopeId||null,t}function uy(e){ku=e}function fy(){ku=null}const dy=e=>ot;function ot(e,t=en,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&jc(-1);const c=Bc(t);let f;try{f=e(...s)}finally{Bc(c),o._d&&jc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function mt(e,t){if(en===null)return e;const r=Nu(en),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(Ke(c)&&(c={mounted:c,updated:c}),c.deep&&ui(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function bo(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&&(io(),Tr(h,r,8,[e.el,d,e,t]),oo())}}const F_=Symbol("_vte"),hy=e=>e.__isTeleport,qi=Symbol("_leaveCb"),ac=Symbol("_enterCb");function H_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qs(()=>{e.isMounted=!0}),xy(()=>{e.isUnmounting=!0}),e}const nr=[Function,Array],py={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:nr,onEnter:nr,onAfterEnter:nr,onEnterCancelled:nr,onBeforeLeave:nr,onLeave:nr,onAfterLeave:nr,onLeaveCancelled:nr,onBeforeAppear:nr,onAppear:nr,onAfterAppear:nr,onAppearCancelled:nr},gy=e=>{const t=e.subTree;return t.component?gy(t.component):t},q_={name:"BaseTransition",props:py,setup(e,{slots:t}){const r=va(),o=H_();return()=>{const s=t.default&&yy(t.default(),!0);if(!s||!s.length)return;const c=vy(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return Kf(c);const h=mv(c);if(!h)return Kf(c);let p=_d(h,f,o,r,b=>p=b);h.type!==an&&jl(h,p);const v=r.subTree,m=v&&mv(v);if(m&&m.type!==an&&!Ir(h,m)&&gy(r).type!==an){const b=_d(m,f,o,r);if(jl(m,b),d==="out-in"&&h.type!==an)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete b.afterLeave},Kf(c);d==="in-out"&&h.type!==an&&(b.delayLeave=(w,M,N)=>{const E=my(o,m);E[String(m.key)]=m,w[qi]=()=>{M(),w[qi]=void 0,delete p.delayedLeave},p.delayedLeave=N})}return c}}};function vy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==an){t=r;break}}return t}const B_=q_;function my(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 _d(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:M,onLeaveCancelled:N,onBeforeAppear:E,onAppear:C,onAfterAppear:A,onAppearCancelled:P}=t,L=String(e.key),z=my(r,e),W=(Q,G)=>{Q&&Tr(Q,o,9,G)},U=(Q,G)=>{const te=G[1];W(Q,G),Fe(Q)?Q.every(Z=>Z.length<=1)&&te():Q.length<=1&&te()},re={mode:f,persisted:d,beforeEnter(Q){let G=h;if(!r.isMounted)if(c)G=E||h;else return;Q[qi]&&Q[qi](!0);const te=z[L];te&&Ir(e,te)&&te.el[qi]&&te.el[qi](),W(G,[Q])},enter(Q){let G=p,te=v,Z=m;if(!r.isMounted)if(c)G=C||p,te=A||v,Z=P||m;else return;let q=!1;const F=Q[ac]=k=>{q||(q=!0,k?W(Z,[Q]):W(te,[Q]),re.delayedLeave&&re.delayedLeave(),Q[ac]=void 0)};G?U(G,[Q,F]):F()},leave(Q,G){const te=String(e.key);if(Q[ac]&&Q[ac](!0),r.isUnmounting)return G();W(b,[Q]);let Z=!1;const q=Q[qi]=F=>{Z||(Z=!0,G(),F?W(N,[Q]):W(M,[Q]),Q[qi]=void 0,z[te]===e&&delete z[te])};z[te]=e,w?U(w,[Q,q]):q()},clone(Q){const G=_d(Q,t,r,o,s);return s&&s(G),G}};return re}function Kf(e){if(Tu(e))return e=Ji(e),e.children=null,e}function mv(e){if(!Tu(e))return hy(e.type)&&e.children?vy(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ke(r.default))return r.default()}}function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(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 yy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ct?(f.patchFlag&128&&s++,o=o.concat(yy(f.children,t,d))):(t||f.type!==an)&&o.push(d!=null?Ji(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return Ke(e)?Wt({name:e.name},t,{setup:e}):e}function by(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function kd(e,t,r,o,s=!1){if(Fe(e)){e.forEach((M,N)=>kd(M,t&&(Fe(t)?t[N]:t),r,o,s));return}if(Ss(o)&&!s)return;const c=o.shapeFlag&4?Nu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===vt?d.refs={}:d.refs,m=d.setupState,b=ht(m),w=m===vt?()=>!1:M=>wt(b,M);if(p!=null&&p!==h&&(Ot(p)?(v[p]=null,w(p)&&(m[p]=null)):At(p)&&(p.value=null)),Ke(h))pa(h,d,12,[f,v]);else{const M=Ot(h),N=At(h);if(M||N){const E=()=>{if(e.f){const C=M?w(h)?m[h]:v[h]:h.value;s?Fe(C)&&gh(C,c):Fe(C)?C.includes(c)||C.push(c):M?(v[h]=[c],w(h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else M?(v[h]=f,w(h)&&(m[h]=f)):N&&(h.value=f,e.k&&(v[e.k]=f))};f?(E.id=-1,Gn(E,r)):E()}}}bu().requestIdleCallback;bu().cancelIdleCallback;const Ss=e=>!!e.type.__asyncLoader,Tu=e=>e.type.__isKeepAlive;function W_(e,t){wy(e,"a",t)}function U_(e,t){wy(e,"da",t)}function wy(e,t,r=cn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Cu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Tu(s.parent.vnode)&&V_(o,t,r,s),s=s.parent}}function V_(e,t,r,o){const s=Cu(t,e,o,!0);Eu(()=>{gh(o[t],s)},r)}function Cu(e,t,r=cn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{io();const d=ma(r),h=Tr(t,r,e,f);return d(),oo(),h});return o?s.unshift(c):s.push(c),c}}const bi=e=>(t,r=cn)=>{(!Kl||e==="sp")&&Cu(e,(...o)=>t(...o),r)},j_=bi("bm"),qs=bi("m"),G_=bi("bu"),K_=bi("u"),xy=bi("bum"),Eu=bi("um"),X_=bi("sp"),Y_=bi("rtg"),Z_=bi("rtc");function J_(e,t=cn){Cu("ec",e,t)}const Ch="components",Q_="directives";function Po(e,t){return Eh(Ch,e,!0,t)||e}const Sy=Symbol.for("v-ndc");function yv(e){return Ot(e)?Eh(Ch,e,!1)||e:e||Sy}function Gr(e){return Eh(Q_,e)}function Eh(e,t,r=!0,o=!1){const s=en||cn;if(s){const c=s.type;if(e===Ch){const d=Vk(c,!1);if(d&&(d===t||d===Jn(t)||d===yu(Jn(t))))return c}const f=bv(s[e]||c[e],t)||bv(s.appContext[e],t);return!f&&o?c:f}}function bv(e,t){return e&&(e[t]||e[Jn(t)]||e[yu(Jn(t))])}function gi(e,t,r,o){let s;const c=r,f=Fe(e);if(f||Ot(e)){const d=f&&ws(e);let h=!1;d&&(h=!or(e),e=Su(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?pn(e[p]):e[p],p,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(_t(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function ek(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Fe(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 vn(e,t,r={},o,s){if(en.ce||en.parent&&Ss(en.parent)&&en.parent.ce)return t!=="default"&&(r.name=t),oe(),rt(ct,null,[Pe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&_y(c(r)),d=r.key||f&&f.key,h=rt(ct,{key:(d&&!kr(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 _y(e){return e.some(t=>$s(t)?!(t.type===an||t.type===ct&&!_y(t.children)):!0)?e:null}function tk(e,t){const r={};for(const o in e)r[_c(o)]=e[o];return r}const Td=e=>e?Gy(e)?Nu(e):Td(e.parent):null,Pl=Wt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Td(e.parent),$root:e=>Td(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Lh(e),$forceUpdate:e=>e.f||(e.f=()=>{Th(e.update)}),$nextTick:e=>e.n||(e.n=un.bind(e.proxy)),$watch:e=>Tk.bind(e)}),Xf=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),nk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Xf(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Cd&&(f[t]=0)}}const v=Pl[t];let m,b;if(v)return t==="$attrs"&&hn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Xf(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==vt&&wt(e,f)||Xf(t,f)||(d=c[0])&&wt(d,f)||wt(o,f)||wt(Pl,f)||wt(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function rk(){return ik().attrs}function ik(){const e=va();return e.setupContext||(e.setupContext=Xy(e))}function Wc(e){return Fe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Uc(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):Wt({},Wc(e),Wc(t))}let Cd=!0;function ok(e){const t=Lh(e),r=e.proxy,o=e.ctx;Cd=!1,t.beforeCreate&&wv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:M,activated:N,deactivated:E,beforeDestroy:C,beforeUnmount:A,destroyed:P,unmounted:L,render:z,renderTracked:W,renderTriggered:U,errorCaptured:re,serverPrefetch:Q,expose:G,inheritAttrs:te,components:Z,directives:q,filters:F}=t;if(p&&sk(p,o,null),f)for(const V in f){const ie=f[V];Ke(ie)&&(o[V]=ie.bind(r))}if(s){const V=s.call(r,r);_t(V)&&(e.data=Zn(V))}if(Cd=!0,c)for(const V in c){const ie=c[V],ye=Ke(ie)?ie.bind(r,r):Ke(ie.get)?ie.get.bind(r,r):Fr,Ne=!Ke(ie)&&Ke(ie.set)?ie.set.bind(r):Fr,Ue=Te({get:ye,set:Ne});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:je=>Ue.value=je})}if(d)for(const V in d)ky(d[V],o,r,V);if(h){const V=Ke(h)?h.call(r):h;Reflect.ownKeys(V).forEach(ie=>{Tc(ie,V[ie])})}v&&wv(v,e,"c");function B(V,ie){Fe(ie)?ie.forEach(ye=>V(ye.bind(r))):ie&&V(ie.bind(r))}if(B(j_,m),B(qs,b),B(G_,w),B(K_,M),B(W_,N),B(U_,E),B(J_,re),B(Z_,W),B(Y_,U),B(xy,A),B(Eu,L),B(X_,Q),Fe(G))if(G.length){const V=e.exposed||(e.exposed={});G.forEach(ie=>{Object.defineProperty(V,ie,{get:()=>r[ie],set:ye=>r[ie]=ye})})}else e.exposed||(e.exposed={});z&&e.render===Fr&&(e.render=z),te!=null&&(e.inheritAttrs=te),Z&&(e.components=Z),q&&(e.directives=q),Q&&by(e)}function sk(e,t,r=Fr){Fe(e)&&(e=Ed(e));for(const o in e){const s=e[o];let c;_t(s)?"default"in s?c=di(s.from||o,s.default,!0):c=di(s.from||o):c=di(s),At(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function wv(e,t,r){Tr(Fe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function ky(e,t,r,o){let s=o.includes(".")?zy(r,o):()=>r[o];if(Ot(e)){const c=t[e];Ke(c)&&Bt(s,c)}else if(Ke(e))Bt(s,e.bind(r));else if(_t(e))if(Fe(e))e.forEach(c=>ky(c,t,r,o));else{const c=Ke(e.handler)?e.handler.bind(r):t[e.handler];Ke(c)&&Bt(s,c,e)}}function Lh(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=>Vc(h,p,f,!0)),Vc(h,t,f)),_t(t)&&c.set(t,h),h}function Vc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Vc(e,c,r,!0),s&&s.forEach(f=>Vc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=lk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const lk={data:xv,props:Sv,emits:Sv,methods:El,computed:El,beforeCreate:Tn,created:Tn,beforeMount:Tn,mounted:Tn,beforeUpdate:Tn,updated:Tn,beforeDestroy:Tn,beforeUnmount:Tn,destroyed:Tn,unmounted:Tn,activated:Tn,deactivated:Tn,errorCaptured:Tn,serverPrefetch:Tn,components:El,directives:El,watch:ck,provide:xv,inject:ak};function xv(e,t){return t?e?function(){return Wt(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function ak(e,t){return El(Ed(e),Ed(t))}function Ed(e){if(Fe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Tn(e,t){return e?[...new Set([].concat(e,t))]:t}function El(e,t){return e?Wt(Object.create(null),e,t):t}function Sv(e,t){return e?Fe(e)&&Fe(t)?[...new Set([...e,...t])]:Wt(Object.create(null),Wc(e),Wc(t??{})):t}function ck(e,t){if(!e)return t;if(!t)return e;const r=Wt(Object.create(null),e);for(const o in t)r[o]=Tn(e[o],t[o]);return r}function Ty(){return{app:null,config:{isNativeTag:GS,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 uk=0;function fk(e,t){return function(o,s=null){Ke(o)||(o=Wt({},o)),s!=null&&!_t(s)&&(s=null);const c=Ty(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:uk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Gk,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ke(v.install)?(f.add(v),v.install(p,...m)):Ke(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Pe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),m&&t?t(w,v):e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Nu(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Tr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=_s;_s=p;try{return v()}finally{_s=m}}};return p}}let _s=null;function Tc(e,t){if(cn){let r=cn.provides;const o=cn.parent&&cn.parent.provides;o===r&&(r=cn.provides=Object.create(o)),r[e]=t}}function di(e,t,r=!1){const o=cn||en;if(o||_s){const s=_s?_s._context.provides:o?o.parent==null?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&&Ke(t)?t.call(o&&o.proxy):t}}const Cy={},Ey=()=>Object.create(Cy),Ly=e=>Object.getPrototypeOf(e)===Cy;function dk(e,t,r,o=!1){const s={},c=Ey();e.propsDefaults=Object.create(null),Ay(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:xh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function hk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=ht(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Au(e.emitsOptions,b))continue;const w=t[b];if(h)if(wt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const M=Jn(b);s[M]=Ld(h,d,M,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Ay(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=yi(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Ld(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&ci(e.attrs,"set","")}function Ay(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ml(h))continue;const p=t[h];let v;s&&wt(s,v=Jn(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Au(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=ht(r),p=d||vt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Ld(s,h,m,p[m],e,!wt(p,m))}}return f}function Ld(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&&Ke(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ma(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===yi(r))&&(o=!0))}return o}const pk=new WeakMap;function My(e,t,r=!1){const o=r?pk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ke(e)){const v=m=>{h=!0;const[b,w]=My(m,t,!0);Wt(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return _t(e)&&o.set(e,ys),ys;if(Fe(c))for(let v=0;v<c.length;v++){const m=Jn(c[v]);_v(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=Jn(v);if(_v(m)){const b=c[v],w=f[m]=Fe(b)||Ke(b)?{type:b}:Wt({},b),M=w.type;let N=!1,E=!0;if(Fe(M))for(let C=0;C<M.length;++C){const A=M[C],P=Ke(A)&&A.name;if(P==="Boolean"){N=!0;break}else P==="String"&&(E=!1)}else N=Ke(M)&&M.name==="Boolean";w[0]=N,w[1]=E,(N||wt(w,"default"))&&d.push(m)}}const p=[f,d];return _t(e)&&o.set(e,p),p}function _v(e){return e[0]!=="$"&&!Ml(e)}const Ny=e=>e[0]==="_"||e==="$stable",Ah=e=>Fe(e)?e.map(br):[br(e)],gk=(e,t,r)=>{if(t._n)return t;const o=ot((...s)=>Ah(t(...s)),r);return o._c=!1,o},$y=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Ny(s))continue;const c=e[s];if(Ke(c))t[s]=gk(s,c,o);else if(c!=null){const f=Ah(c);t[s]=()=>f}}},Py=(e,t)=>{const r=Ah(t);e.slots.default=()=>r},Oy=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},vk=(e,t,r)=>{const o=e.slots=Ey();if(e.vnode.shapeFlag&32){const s=t._;s?(Oy(o,t,r),r&&R0(o,"_",s,!0)):$y(t,o)}else t&&Py(e,t)},mk=(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:Oy(s,t,r):(c=!t.$stable,$y(t,s)),f=t}else t&&(Py(e,t),f={default:1});if(c)for(const d in s)!Ny(d)&&f[d]==null&&delete s[d]},Gn=Dk;function yk(e){return bk(e)}function bk(e,t){const r=bu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=Fr,insertStaticContent:M}=e,N=(O,H,J,fe=null,le=null,he=null,_e=void 0,ue=null,be=!!H.dynamicChildren)=>{if(O===H)return;O&&!Ir(O,H)&&(fe=X(O),je(O,le,he,!0),O=null),H.patchFlag===-2&&(be=!1,H.dynamicChildren=null);const{type:ve,ref:qe,shapeFlag:Le}=H;switch(ve){case Mu:E(O,H,J,fe);break;case an:C(O,H,J,fe);break;case Jf:O==null&&A(H,J,fe,_e);break;case ct:Z(O,H,J,fe,le,he,_e,ue,be);break;default:Le&1?z(O,H,J,fe,le,he,_e,ue,be):Le&6?q(O,H,J,fe,le,he,_e,ue,be):(Le&64||Le&128)&&ve.process(O,H,J,fe,le,he,_e,ue,be,$e)}qe!=null&&le&&kd(qe,O&&O.ref,he,H||O,!H)},E=(O,H,J,fe)=>{if(O==null)o(H.el=d(H.children),J,fe);else{const le=H.el=O.el;H.children!==O.children&&p(le,H.children)}},C=(O,H,J,fe)=>{O==null?o(H.el=h(H.children||""),J,fe):H.el=O.el},A=(O,H,J,fe)=>{[O.el,O.anchor]=M(O.children,H,J,fe,O.el,O.anchor)},P=({el:O,anchor:H},J,fe)=>{let le;for(;O&&O!==H;)le=b(O),o(O,J,fe),O=le;o(H,J,fe)},L=({el:O,anchor:H})=>{let J;for(;O&&O!==H;)J=b(O),s(O),O=J;s(H)},z=(O,H,J,fe,le,he,_e,ue,be)=>{H.type==="svg"?_e="svg":H.type==="math"&&(_e="mathml"),O==null?W(H,J,fe,le,he,_e,ue,be):Q(O,H,le,he,_e,ue,be)},W=(O,H,J,fe,le,he,_e,ue)=>{let be,ve;const{props:qe,shapeFlag:Le,transition:De,dirs:Be}=O;if(be=O.el=f(O.type,he,qe&&qe.is,qe),Le&8?v(be,O.children):Le&16&&re(O.children,be,null,fe,le,Yf(O,he),_e,ue),Be&&bo(O,null,fe,"created"),U(be,O,O.scopeId,_e,fe),qe){for(const gt in qe)gt!=="value"&&!Ml(gt)&&c(be,gt,null,qe[gt],he,fe);"value"in qe&&c(be,"value",null,qe.value,he),(ve=qe.onVnodeBeforeMount)&&Rr(ve,fe,O)}Be&&bo(O,null,fe,"beforeMount");const Xe=wk(le,De);Xe&&De.beforeEnter(be),o(be,H,J),((ve=qe&&qe.onVnodeMounted)||Xe||Be)&&Gn(()=>{ve&&Rr(ve,fe,O),Xe&&De.enter(be),Be&&bo(O,null,fe,"mounted")},le)},U=(O,H,J,fe,le)=>{if(J&&w(O,J),fe)for(let he=0;he<fe.length;he++)w(O,fe[he]);if(le){let he=le.subTree;if(H===he||Hy(he.type)&&(he.ssContent===H||he.ssFallback===H)){const _e=le.vnode;U(O,_e,_e.scopeId,_e.slotScopeIds,le.parent)}}},re=(O,H,J,fe,le,he,_e,ue,be=0)=>{for(let ve=be;ve<O.length;ve++){const qe=O[ve]=ue?Bi(O[ve]):br(O[ve]);N(null,qe,H,J,fe,le,he,_e,ue)}},Q=(O,H,J,fe,le,he,_e)=>{const ue=H.el=O.el;let{patchFlag:be,dynamicChildren:ve,dirs:qe}=H;be|=O.patchFlag&16;const Le=O.props||vt,De=H.props||vt;let Be;if(J&&wo(J,!1),(Be=De.onVnodeBeforeUpdate)&&Rr(Be,J,H,O),qe&&bo(H,O,J,"beforeUpdate"),J&&wo(J,!0),(Le.innerHTML&&De.innerHTML==null||Le.textContent&&De.textContent==null)&&v(ue,""),ve?G(O.dynamicChildren,ve,ue,J,fe,Yf(H,le),he):_e||ie(O,H,ue,null,J,fe,Yf(H,le),he,!1),be>0){if(be&16)te(ue,Le,De,J,le);else if(be&2&&Le.class!==De.class&&c(ue,"class",null,De.class,le),be&4&&c(ue,"style",Le.style,De.style,le),be&8){const Xe=H.dynamicProps;for(let gt=0;gt<Xe.length;gt++){const nt=Xe[gt],lt=Le[nt],Tt=De[nt];(Tt!==lt||nt==="value")&&c(ue,nt,lt,Tt,le,J)}}be&1&&O.children!==H.children&&v(ue,H.children)}else!_e&&ve==null&&te(ue,Le,De,J,le);((Be=De.onVnodeUpdated)||qe)&&Gn(()=>{Be&&Rr(Be,J,H,O),qe&&bo(H,O,J,"updated")},fe)},G=(O,H,J,fe,le,he,_e)=>{for(let ue=0;ue<H.length;ue++){const be=O[ue],ve=H[ue],qe=be.el&&(be.type===ct||!Ir(be,ve)||be.shapeFlag&70)?m(be.el):J;N(be,ve,qe,null,fe,le,he,_e,!0)}},te=(O,H,J,fe,le)=>{if(H!==J){if(H!==vt)for(const he in H)!Ml(he)&&!(he in J)&&c(O,he,H[he],null,le,fe);for(const he in J){if(Ml(he))continue;const _e=J[he],ue=H[he];_e!==ue&&he!=="value"&&c(O,he,ue,_e,le,fe)}"value"in J&&c(O,"value",H.value,J.value,le)}},Z=(O,H,J,fe,le,he,_e,ue,be)=>{const ve=H.el=O?O.el:d(""),qe=H.anchor=O?O.anchor:d("");let{patchFlag:Le,dynamicChildren:De,slotScopeIds:Be}=H;Be&&(ue=ue?ue.concat(Be):Be),O==null?(o(ve,J,fe),o(qe,J,fe),re(H.children||[],J,qe,le,he,_e,ue,be)):Le>0&&Le&64&&De&&O.dynamicChildren?(G(O.dynamicChildren,De,J,le,he,_e,ue),(H.key!=null||le&&H===le.subTree)&&Ry(O,H,!0)):ie(O,H,J,qe,le,he,_e,ue,be)},q=(O,H,J,fe,le,he,_e,ue,be)=>{H.slotScopeIds=ue,O==null?H.shapeFlag&512?le.ctx.activate(H,J,fe,_e,be):F(H,J,fe,le,he,_e,be):k(O,H,be)},F=(O,H,J,fe,le,he,_e)=>{const ue=O.component=qk(O,fe,le);if(Tu(O)&&(ue.ctx.renderer=$e),Bk(ue,!1,_e),ue.asyncDep){if(le&&le.registerDep(ue,B,_e),!O.el){const be=ue.subTree=Pe(an);C(null,be,H,J)}}else B(ue,O,H,J,le,he,_e)},k=(O,H,J)=>{const fe=H.component=O.component;if(Mk(O,H,J))if(fe.asyncDep&&!fe.asyncResolved){V(fe,H,J);return}else fe.next=H,fe.update();else H.el=O.el,fe.vnode=H},B=(O,H,J,fe,le,he,_e)=>{const ue=()=>{if(O.isMounted){let{next:Le,bu:De,u:Be,parent:Xe,vnode:gt}=O;{const Dt=Dy(O);if(Dt){Le&&(Le.el=gt.el,V(O,Le,_e)),Dt.asyncDep.then(()=>{O.isUnmounted||ue()});return}}let nt=Le,lt;wo(O,!1),Le?(Le.el=gt.el,V(O,Le,_e)):Le=gt,De&&kc(De),(lt=Le.props&&Le.props.onVnodeBeforeUpdate)&&Rr(lt,Xe,Le,gt),wo(O,!0);const Tt=Zf(O),Rt=O.subTree;O.subTree=Tt,N(Rt,Tt,m(Rt.el),X(Rt),O,le,he),Le.el=Tt.el,nt===null&&$h(O,Tt.el),Be&&Gn(Be,le),(lt=Le.props&&Le.props.onVnodeUpdated)&&Gn(()=>Rr(lt,Xe,Le,gt),le)}else{let Le;const{el:De,props:Be}=H,{bm:Xe,m:gt,parent:nt,root:lt,type:Tt}=O,Rt=Ss(H);if(wo(O,!1),Xe&&kc(Xe),!Rt&&(Le=Be&&Be.onVnodeBeforeMount)&&Rr(Le,nt,H),wo(O,!0),De&&Ze){const Dt=()=>{O.subTree=Zf(O),Ze(De,O.subTree,O,le,null)};Rt&&Tt.__asyncHydrate?Tt.__asyncHydrate(De,O,Dt):Dt()}else{lt.ce&<.ce._injectChildStyle(Tt);const Dt=O.subTree=Zf(O);N(null,Dt,J,fe,O,le,he),H.el=Dt.el}if(gt&&Gn(gt,le),!Rt&&(Le=Be&&Be.onVnodeMounted)){const Dt=H;Gn(()=>Rr(Le,nt,Dt),le)}(H.shapeFlag&256||nt&&Ss(nt.vnode)&&nt.vnode.shapeFlag&256)&&O.a&&Gn(O.a,le),O.isMounted=!0,H=J=fe=null}};O.scope.on();const be=O.effect=new B0(ue);O.scope.off();const ve=O.update=be.run.bind(be),qe=O.job=be.runIfDirty.bind(be);qe.i=O,qe.id=O.uid,be.scheduler=()=>Th(qe),wo(O,!0),ve()},V=(O,H,J)=>{H.component=O;const fe=O.vnode.props;O.vnode=H,O.next=null,hk(O,H.props,fe,J),mk(O,H.children,J),io(),vv(O),oo()},ie=(O,H,J,fe,le,he,_e,ue,be=!1)=>{const ve=O&&O.children,qe=O?O.shapeFlag:0,Le=H.children,{patchFlag:De,shapeFlag:Be}=H;if(De>0){if(De&128){Ne(ve,Le,J,fe,le,he,_e,ue,be);return}else if(De&256){ye(ve,Le,J,fe,le,he,_e,ue,be);return}}Be&8?(qe&16&&Ae(ve,le,he),Le!==ve&&v(J,Le)):qe&16?Be&16?Ne(ve,Le,J,fe,le,he,_e,ue,be):Ae(ve,le,he,!0):(qe&8&&v(J,""),Be&16&&re(Le,J,fe,le,he,_e,ue,be))},ye=(O,H,J,fe,le,he,_e,ue,be)=>{O=O||ys,H=H||ys;const ve=O.length,qe=H.length,Le=Math.min(ve,qe);let De;for(De=0;De<Le;De++){const Be=H[De]=be?Bi(H[De]):br(H[De]);N(O[De],Be,J,null,le,he,_e,ue,be)}ve>qe?Ae(O,le,he,!0,!1,Le):re(H,J,fe,le,he,_e,ue,be,Le)},Ne=(O,H,J,fe,le,he,_e,ue,be)=>{let ve=0;const qe=H.length;let Le=O.length-1,De=qe-1;for(;ve<=Le&&ve<=De;){const Be=O[ve],Xe=H[ve]=be?Bi(H[ve]):br(H[ve]);if(Ir(Be,Xe))N(Be,Xe,J,null,le,he,_e,ue,be);else break;ve++}for(;ve<=Le&&ve<=De;){const Be=O[Le],Xe=H[De]=be?Bi(H[De]):br(H[De]);if(Ir(Be,Xe))N(Be,Xe,J,null,le,he,_e,ue,be);else break;Le--,De--}if(ve>Le){if(ve<=De){const Be=De+1,Xe=Be<qe?H[Be].el:fe;for(;ve<=De;)N(null,H[ve]=be?Bi(H[ve]):br(H[ve]),J,Xe,le,he,_e,ue,be),ve++}}else if(ve>De)for(;ve<=Le;)je(O[ve],le,he,!0),ve++;else{const Be=ve,Xe=ve,gt=new Map;for(ve=Xe;ve<=De;ve++){const tn=H[ve]=be?Bi(H[ve]):br(H[ve]);tn.key!=null&>.set(tn.key,ve)}let nt,lt=0;const Tt=De-Xe+1;let Rt=!1,Dt=0;const Wn=new Array(Tt);for(ve=0;ve<Tt;ve++)Wn[ve]=0;for(ve=Be;ve<=Le;ve++){const tn=O[ve];if(lt>=Tt){je(tn,le,he,!0);continue}let Ve;if(tn.key!=null)Ve=gt.get(tn.key);else for(nt=Xe;nt<=De;nt++)if(Wn[nt-Xe]===0&&Ir(tn,H[nt])){Ve=nt;break}Ve===void 0?je(tn,le,he,!0):(Wn[Ve-Xe]=ve+1,Ve>=Dt?Dt=Ve:Rt=!0,N(tn,H[Ve],J,null,le,he,_e,ue,be),lt++)}const lr=Rt?xk(Wn):ys;for(nt=lr.length-1,ve=Tt-1;ve>=0;ve--){const tn=Xe+ve,Ve=H[tn],so=tn+1<qe?H[tn+1].el:fe;Wn[ve]===0?N(null,Ve,J,so,le,he,_e,ue,be):Rt&&(nt<0||ve!==lr[nt]?Ue(Ve,J,so,2):nt--)}}},Ue=(O,H,J,fe,le=null)=>{const{el:he,type:_e,transition:ue,children:be,shapeFlag:ve}=O;if(ve&6){Ue(O.component.subTree,H,J,fe);return}if(ve&128){O.suspense.move(H,J,fe);return}if(ve&64){_e.move(O,H,J,$e);return}if(_e===ct){o(he,H,J);for(let Le=0;Le<be.length;Le++)Ue(be[Le],H,J,fe);o(O.anchor,H,J);return}if(_e===Jf){P(O,H,J);return}if(fe!==2&&ve&1&&ue)if(fe===0)ue.beforeEnter(he),o(he,H,J),Gn(()=>ue.enter(he),le);else{const{leave:Le,delayLeave:De,afterLeave:Be}=ue,Xe=()=>o(he,H,J),gt=()=>{Le(he,()=>{Xe(),Be&&Be()})};De?De(he,Xe,gt):gt()}else o(he,H,J)},je=(O,H,J,fe=!1,le=!1)=>{const{type:he,props:_e,ref:ue,children:be,dynamicChildren:ve,shapeFlag:qe,patchFlag:Le,dirs:De,cacheIndex:Be}=O;if(Le===-2&&(le=!1),ue!=null&&kd(ue,null,J,O,!0),Be!=null&&(H.renderCache[Be]=void 0),qe&256){H.ctx.deactivate(O);return}const Xe=qe&1&&De,gt=!Ss(O);let nt;if(gt&&(nt=_e&&_e.onVnodeBeforeUnmount)&&Rr(nt,H,O),qe&6)Je(O.component,J,fe);else{if(qe&128){O.suspense.unmount(J,fe);return}Xe&&bo(O,null,H,"beforeUnmount"),qe&64?O.type.remove(O,H,J,$e,fe):ve&&!ve.hasOnce&&(he!==ct||Le>0&&Le&64)?Ae(ve,H,J,!1,!0):(he===ct&&Le&384||!le&&qe&16)&&Ae(be,H,J),fe&&it(O)}(gt&&(nt=_e&&_e.onVnodeUnmounted)||Xe)&&Gn(()=>{nt&&Rr(nt,H,O),Xe&&bo(O,null,H,"unmounted")},J)},it=O=>{const{type:H,el:J,anchor:fe,transition:le}=O;if(H===ct){tt(J,fe);return}if(H===Jf){L(O);return}const he=()=>{s(J),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(O.shapeFlag&1&&le&&!le.persisted){const{leave:_e,delayLeave:ue}=le,be=()=>_e(J,he);ue?ue(O.el,he,be):be()}else he()},tt=(O,H)=>{let J;for(;O!==H;)J=b(O),s(O),O=J;s(H)},Je=(O,H,J)=>{const{bum:fe,scope:le,job:he,subTree:_e,um:ue,m:be,a:ve}=O;kv(be),kv(ve),fe&&kc(fe),le.stop(),he&&(he.flags|=8,je(_e,O,H,J)),ue&&Gn(ue,H),Gn(()=>{O.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},Ae=(O,H,J,fe=!1,le=!1,he=0)=>{for(let _e=he;_e<O.length;_e++)je(O[_e],H,J,fe,le)},X=O=>{if(O.shapeFlag&6)return X(O.component.subTree);if(O.shapeFlag&128)return O.suspense.next();const H=b(O.anchor||O.el),J=H&&H[F_];return J?b(J):H};let ae=!1;const de=(O,H,J)=>{O==null?H._vnode&&je(H._vnode,null,null,!0):N(H._vnode||null,O,H,null,null,null,J),H._vnode=O,ae||(ae=!0,vv(),ay(),ae=!1)},$e={p:N,um:je,m:Ue,r:it,mt:F,mc:re,pc:ie,pbc:G,n:X,o:e};let Ee,Ze;return{render:de,hydrate:Ee,createApp:fk(de,Ee)}}function Yf({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 wo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ry(e,t,r=!1){const o=e.children,s=t.children;if(Fe(o)&&Fe(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]=Bi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Ry(f,d)),d.type===Mu&&(d.el=f.el)}}function xk(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 Dy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dy(t)}function kv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Sk=Symbol.for("v-scx"),_k=()=>di(Sk);function Mh(e,t){return Lu(e,null,t)}function kk(e,t){return Lu(e,null,{flush:"sync"})}function Bt(e,t,r){return Lu(e,t,r)}function Lu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=Wt({},r),h=t&&o||!t&&c!=="post";let p;if(Kl){if(c==="sync"){const w=_k();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Fr,w.resume=Fr,w.pause=Fr,w}}const v=cn;d.call=(w,M,N)=>Tr(w,v,M,N);let m=!1;c==="post"?d.scheduler=w=>{Gn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,M)=>{M?w():Th(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=D_(e,t,d);return Kl&&(p?p.push(b):h&&b()),b}function Tk(e,t,r){const o=this.proxy,s=Ot(e)?e.includes(".")?zy(o,e):()=>o[e]:e.bind(o,o);let c;Ke(t)?c=t:(c=t.handler,r=t);const f=ma(this),d=Lu(s,c.bind(o),r);return f(),d}function zy(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Nh(e,t,r=vt){const o=va(),s=Jn(t),c=yi(t),f=Iy(e,s),d=iy((h,p)=>{let v,m=vt,b;return kk(()=>{const w=e[s];In(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const M=r.set?r.set(w):w;if(!In(M,v)&&!(m!==vt&&In(w,m)))return;const N=o.vnode.props;N&&(t in N||s in N||c in N)&&(`onUpdate:${t}`in N||`onUpdate:${s}`in N||`onUpdate:${c}`in N)||(v=w,p()),o.emit(`update:${t}`,M),In(w,M)&&In(w,m)&&!In(M,b)&&p(),m=w,b=M}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Iy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Jn(t)}Modifiers`]||e[`${yi(t)}Modifiers`];function Ck(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Iy(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Ot(v)?v.trim():v)),f.number&&(s=r.map(md)));let d,h=o[d=_c(t)]||o[d=_c(Jn(t))];!h&&c&&(h=o[d=_c(yi(t))]),h&&Tr(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,Tr(p,e,6,s)}}function Fy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ke(e)){const h=p=>{const v=Fy(p,t,!0);v&&(d=!0,Wt(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(_t(e)&&o.set(e,null),null):(Fe(c)?c.forEach(h=>f[h]=null):Wt(f,c),_t(e)&&o.set(e,f),f)}function Au(e,t){return!e||!gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,yi(t))||wt(e,t))}function Zf(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:M,inheritAttrs:N}=e,E=Bc(e);let C,A;try{if(r.shapeFlag&4){const L=s||o,z=L;C=br(p.call(z,L,v,m,w,b,M)),A=d}else{const L=t;C=br(L.length>1?L(m,{attrs:d,slots:f,emit:h}):L(m,null)),A=t.props?d:Lk(d)}}catch(L){Ol.length=0,ga(L,e,1),C=Pe(an)}let P=C;if(A&&N!==!1){const L=Object.keys(A),{shapeFlag:z}=P;L.length&&z&7&&(c&&L.some(ph)&&(A=Ak(A,c)),P=Ji(P,A,!1,!0))}return r.dirs&&(P=Ji(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&jl(P,r.transition),C=P,Bc(E),C}function Ek(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if($s(s)){if(s.type!==an||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Lk=e=>{let t;for(const r in e)(r==="class"||r==="style"||gu(r))&&((t||(t={}))[r]=e[r]);return t},Ak=(e,t)=>{const r={};for(const o in e)(!ph(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Mk(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?Tv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Au(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Tv(o,f,p):!0:!!f;return!1}function Tv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Au(r,c))return!0}return!1}function $h({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 Hy=e=>e.__isSuspense;let Ad=0;const Nk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)$k(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}Pk(e,t,r,o,s,f,d,h,p)}},hydrate:Ok,normalize:Rk},qy=Nk;function Gl(e,t){const r=e.props&&e.props[t];Ke(r)&&r()}function $k(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=By(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(Gl(e,"onPending"),Gl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ks(b,e.ssFallback)):b.resolve(!1,!0)}function Pk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:M,pendingBranch:N,isInFallback:E,isHydrating:C}=m;if(N)m.pendingBranch=b,Ir(b,N)?(h(N,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():E&&(C||(h(M,w,r,o,s,null,c,f,d),ks(m,w)))):(m.pendingId=Ad++,C?(m.isHydrating=!1,m.activeBranch=N):p(N,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),E?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(M,w,r,o,s,null,c,f,d),ks(m,w))):M&&Ir(b,M)?(h(M,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(M&&Ir(b,M))h(M,b,r,o,s,m,c,f,d),ks(m,b);else if(Gl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Ad++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:A,pendingId:P}=m;A>0?setTimeout(()=>{m.pendingId===P&&m.fallback(w)},A):A===0&&m.fallback(w)}}function By(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:M,o:{parentNode:N,remove:E}}=p;let C;const A=zk(e);A&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const P=e.props?D0(e.props.timeout):void 0,L=c,z={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Ad++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(W=!1,U=!1){const{vnode:re,activeBranch:Q,pendingBranch:G,pendingId:te,effects:Z,parentComponent:q,container:F}=z;let k=!1;z.isHydrating?z.isHydrating=!1:W||(k=Q&&G.transition&&G.transition.mode==="out-in",k&&(Q.transition.afterLeave=()=>{te===z.pendingId&&(b(G,F,c===L?M(Q):c,0),Sd(Z))}),Q&&(N(Q.el)===F&&(c=M(Q)),w(Q,q,z,!0)),k||b(G,F,c,0)),ks(z,G),z.pendingBranch=null,z.isInFallback=!1;let B=z.parent,V=!1;for(;B;){if(B.pendingBranch){B.effects.push(...Z),V=!0;break}B=B.parent}!V&&!k&&Sd(Z),z.effects=[],A&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!U&&t.resolve()),Gl(re,"onResolve")},fallback(W){if(!z.pendingBranch)return;const{vnode:U,activeBranch:re,parentComponent:Q,container:G,namespace:te}=z;Gl(U,"onFallback");const Z=M(re),q=()=>{z.isInFallback&&(m(null,W,G,Z,Q,null,te,d,h),ks(z,W))},F=W.transition&&W.transition.mode==="out-in";F&&(re.transition.afterLeave=q),z.isInFallback=!0,w(re,Q,null,!0),F||q()},move(W,U,re){z.activeBranch&&b(z.activeBranch,W,U,re),z.container=W},next(){return z.activeBranch&&M(z.activeBranch)},registerDep(W,U,re){const Q=!!z.pendingBranch;Q&&z.deps++;const G=W.vnode.el;W.asyncDep.catch(te=>{ga(te,W,0)}).then(te=>{if(W.isUnmounted||z.isUnmounted||z.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:Z}=W;Nd(W,te,!1),G&&(Z.el=G);const q=!G&&W.subTree.el;U(W,Z,N(G||W.subTree.el),G?null:M(W.subTree),z,f,re),q&&E(q),$h(W,Z.el),Q&&--z.deps===0&&z.resolve()})},unmount(W,U){z.isUnmounted=!0,z.activeBranch&&w(z.activeBranch,r,W,U),z.pendingBranch&&w(z.pendingBranch,r,W,U)}};return z}function Ok(e,t,r,o,s,c,f,d,h){const p=t.suspense=By(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Rk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Cv(o?r.default:r),e.ssFallback=o?Cv(r.fallback):Pe(an)}function Cv(e){let t;if(Ke(e)){const r=Ns&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=Hn,Wy())}return Fe(e)&&(e=Ek(e)),e=br(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Dk(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):Sd(e)}function ks(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,$h(o,s))}function zk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Mu=Symbol.for("v-txt"),an=Symbol.for("v-cmt"),Jf=Symbol.for("v-stc"),Ol=[];let Hn=null;function oe(e=!1){Ol.push(Hn=e?null:[])}function Wy(){Ol.pop(),Hn=Ol[Ol.length-1]||null}let Ns=1;function jc(e){Ns+=e,e<0&&Hn&&(Hn.hasOnce=!0)}function Uy(e){return e.dynamicChildren=Ns>0?Hn||ys:null,Wy(),Ns>0&&Hn&&Hn.push(e),e}function me(e,t,r,o,s,c){return Uy(Y(e,t,r,o,s,c,!0))}function rt(e,t,r,o,s){return Uy(Pe(e,t,r,o,s,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function Ir(e,t){return e.type===t.type&&e.key===t.key}const Vy=({key:e})=>e??null,Cc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ot(e)||At(e)||Ke(e)?{i:en,r:e,k:t,f:!!r}:e:null);function Y(e,t=null,r=null,o=0,s=null,c=e===ct?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vy(t),ref:t&&Cc(t),scopeId:ku,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:en};return d?(Ph(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ot(r)?8:16),Ns>0&&!f&&Hn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Hn.push(h),h}const Pe=Ik;function Ik(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Sy)&&(e=an),$s(e)){const d=Ji(e,t,!0);return r&&Ph(d,r),Ns>0&&!c&&Hn&&(d.shapeFlag&6?Hn[Hn.indexOf(e)]=d:Hn.push(d)),d.patchFlag=-2,d}if(jk(e)&&(e=e.__vccOpts),t){t=jy(t);let{class:d,style:h}=t;d&&!Ot(d)&&(t.class=st(d)),_t(h)&&(_h(h)&&!Fe(h)&&(h=Wt({},h)),t.style=Jt(h))}const f=Ot(e)?1:Hy(e)?128:hy(e)?64:_t(e)?4:Ke(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function jy(e){return e?_h(e)||Ly(e)?Wt({},e):e:null}function Ji(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?hi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Vy(p),ref:t&&t.ref?r&&c?Fe(c)?c.concat(Cc(t)):[c,Cc(t)]:Cc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ji(e.ssContent),ssFallback:e.ssFallback&&Ji(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&jl(v,h.clone(v)),v}function pt(e=" ",t=0){return Pe(Mu,null,e,t)}function Ye(e="",t=!1){return t?(oe(),rt(an,null,e)):Pe(an,null,e)}function br(e){return e==null||typeof e=="boolean"?Pe(an):Fe(e)?Pe(ct,null,e.slice()):$s(e)?Bi(e):Pe(Mu,null,String(e))}function Bi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ji(e)}function Ph(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Fe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Ph(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Ly(t)?t._ctx=en:s===3&&en&&(en.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(t)?(t={default:t,_ctx:en},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function hi(...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=st([t.class,o.class]));else if(s==="style")t.style=Jt([t.style,o.style]);else if(gu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Fe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Rr(e,t,r,o=null){Tr(e,t,7,[r,o])}const Fk=Ty();let Hk=0;function qk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Fk,c={uid:Hk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new s_(!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:My(o,s),emitsOptions:Fy(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=Ck.bind(null,c),e.ce&&e.ce(c),c}let cn=null;const va=()=>cn||en;let Gc,Md;{const e=bu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};Gc=t("__VUE_INSTANCE_SETTERS__",r=>cn=r),Md=t("__VUE_SSR_SETTERS__",r=>Kl=r)}const ma=e=>{const t=cn;return Gc(e),e.scope.on(),()=>{e.scope.off(),Gc(t)}},Ev=()=>{cn&&cn.scope.off(),Gc(null)};function Gy(e){return e.vnode.shapeFlag&4}let Kl=!1;function Bk(e,t=!1,r=!1){t&&Md(t);const{props:o,children:s}=e.vnode,c=Gy(e);dk(e,o,c,t),vk(e,s,r);const f=c?Wk(e,t):void 0;return t&&Md(!1),f}function Wk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nk);const{setup:o}=r;if(o){io();const s=e.setupContext=o.length>1?Xy(e):null,c=ma(e),f=pa(o,e,0,[e.props,s]),d=$0(f);if(oo(),c(),(d||e.sp)&&!Ss(e)&&by(e),d){if(f.then(Ev,Ev),t)return f.then(h=>{Nd(e,h,t)}).catch(h=>{ga(h,e,0)});e.asyncDep=f}else Nd(e,f,t)}else Ky(e,t)}function Nd(e,t,r){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_t(t)&&(e.setupState=ry(t)),Ky(e,r)}let Lv;function Ky(e,t,r){const o=e.type;if(!e.render){if(!t&&Lv&&!o.render){const s=o.template||Lh(e).template;if(s){const{isCustomElement:c,compilerOptions:f}=e.appContext.config,{delimiters:d,compilerOptions:h}=o,p=Wt(Wt({isCustomElement:c,delimiters:d},f),h);o.render=Lv(s,p)}}e.render=o.render||Fr}{const s=ma(e);io();try{ok(e)}finally{oo(),s()}}}const Uk={get(e,t){return hn(e,"get",""),e[t]}};function Xy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Uk),slots:e.slots,emit:e.emit,expose:t}}function Nu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ry(kh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Pl)return Pl[r](e)},has(t,r){return r in t||r in Pl}})):e.proxy}function Vk(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function jk(e){return Ke(e)&&"__vccOpts"in e}const Te=(e,t)=>O_(e,t,Kl);function ya(e,t,r){const o=arguments.length;return o===2?_t(t)&&!Fe(t)?$s(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&$s(r)&&(r=[r]),Pe(e,t,r))}const Gk="3.5.12";/**
|
|
14
14
|
* @vue/runtime-dom v3.5.12
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
17
|
-
**/let $d;const Mv=typeof window<"u"&&window.trustedTypes;if(Mv)try{$d=Mv.createPolicy("vue",{createHTML:e=>e})}catch{}const Zy=$d?e=>$d.createHTML(e):e=>e,Xk="http://www.w3.org/2000/svg",Yk="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,Nv=li&&li.createElement("template"),Zk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?li.createElementNS(Xk,e):t==="mathml"?li.createElementNS(Yk,e):r?li.createElement(e,{is:r}):li.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>li.createTextNode(e),createComment:e=>li.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>li.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{Nv.innerHTML=Zy(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Nv.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]}},Oi="transition",xl="animation",Xl=Symbol("_vtc"),Jy={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Jk=Wt({},gy,Jy),Qk=e=>(e.displayName="Transition",e.props=Jk,e),eT=Qk((e,{slots:t})=>ma(W_,tT(e),t)),xo=(e,t=[])=>{Fe(e)?e.forEach(r=>r(...t)):e&&e(...t)},$v=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function tT(e){const t={};for(const Z in e)Z in Jy||(t[Z]=e[Z]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,A=nT(s),M=A&&A[0],E=A&&A[1],{onBeforeEnter:C,onEnter:N,onEnterCancelled:P,onLeave:L,onLeaveCancelled:z,onBeforeAppear:W=C,onAppear:U=N,onAppearCancelled:re=P}=t,Q=(Z,q,F)=>{So(Z,q?v:d),So(Z,q?p:f),F&&F()},G=(Z,q)=>{Z._isLeaving=!1,So(Z,m),So(Z,w),So(Z,b),q&&q()},te=Z=>(q,F)=>{const k=Z?U:N,B=()=>Q(q,Z,F);xo(k,[q,B]),Pv(()=>{So(q,Z?h:c),Ri(q,Z?v:d),$v(k)||Ov(q,o,M,B)})};return Wt(t,{onBeforeEnter(Z){xo(C,[Z]),Ri(Z,c),Ri(Z,f)},onBeforeAppear(Z){xo(W,[Z]),Ri(Z,h),Ri(Z,p)},onEnter:te(!1),onAppear:te(!0),onLeave(Z,q){Z._isLeaving=!0;const F=()=>G(Z,q);Ri(Z,m),Ri(Z,b),oT(),Pv(()=>{Z._isLeaving&&(So(Z,m),Ri(Z,w),$v(L)||Ov(Z,o,E,F))}),xo(L,[Z,F])},onEnterCancelled(Z){Q(Z,!1),xo(P,[Z])},onAppearCancelled(Z){Q(Z,!0),xo(re,[Z])},onLeaveCancelled(Z){G(Z),xo(z,[Z])}})}function nT(e){if(e==null)return null;if(_t(e))return[Qf(e.enter),Qf(e.leave)];{const t=Qf(e);return[t,t]}}function Qf(e){return z0(e)}function Ri(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xl]||(e[Xl]=new Set)).add(t)}function So(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Xl];r&&(r.delete(t),r.size||(e[Xl]=void 0))}function Pv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rT=0;function Ov(e,t,r,o){const s=e._endId=++rT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=iT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function iT(e,t){const r=window.getComputedStyle(e),o=A=>(r[A]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=Rv(s,c),d=o(`${xl}Delay`),h=o(`${xl}Duration`),p=Rv(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===xl?p>0&&(v=xl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:xl:null,b=v?v===Oi?c.length:h.length:0);const w=v===Oi&&/\b(transform|all)(,|$)/.test(o(`${Oi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Rv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Dv(r)+Dv(e[o])))}function Dv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function oT(){return document.body.offsetHeight}function sT(e,t,r){const o=e[Xl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Gc=Symbol("_vod"),Qy=Symbol("_vsh"),Gi={beforeMount(e,{value:t},{transition:r}){e[Gc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Sl(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),Sl(e,!0),o.enter(e)):o.leave(e,()=>{Sl(e,!1)}):Sl(e,t))},beforeUnmount(e,{value:t}){Sl(e,t)}};function Sl(e,t){e.style.display=t?e[Gc]:"none",e[Qy]=!t}const lT=Symbol(""),aT=/(^|;)\s*display\s*:/;function cT(e,t,r){const o=e.style,s=Ot(r);let c=!1;if(r&&!s){if(t)if(Ot(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Cc(o,d,"")}else for(const f in t)r[f]==null&&Cc(o,f,"");for(const f in r)f==="display"&&(c=!0),Cc(o,f,r[f])}else if(s){if(t!==r){const f=o[lT];f&&(r+=";"+f),o.cssText=r,c=aT.test(r)}}else t&&e.removeAttribute("style");Gc in e&&(e[Gc]=c?o.display:"",e[Qy]&&(o.display="none"))}const zv=/\s*!important$/;function Cc(e,t,r){if(Fe(r))r.forEach(o=>Cc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=uT(e,t);zv.test(r)?e.setProperty(yi(o),r.replace(zv,""),"important"):e[o]=r}}const Iv=["Webkit","Moz","ms"],ed={};function uT(e,t){const r=ed[t];if(r)return r;let o=Jn(t);if(o!=="filter"&&o in e)return ed[t]=o;o=yu(o);for(let s=0;s<Iv.length;s++){const c=Iv[s]+o;if(c in e)return ed[t]=c}return t}const Fv="http://www.w3.org/1999/xlink";function Hv(e,t,r,o,s,c=o_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Fv,t.slice(6,t.length)):e.setAttributeNS(Fv,t,r):r==null||c&&!I0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Tr(r)?String(r):r)}function qv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Zy(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=I0(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 Co(e,t,r,o){e.addEventListener(t,r,o)}function fT(e,t,r,o){e.removeEventListener(t,r,o)}const Bv=Symbol("_vei");function dT(e,t,r,o,s=null){const c=e[Bv]||(e[Bv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=hT(t);if(o){const p=c[t]=vT(o,s);Co(e,d,p,h)}else f&&(fT(e,d,f,h),c[t]=void 0)}}const Wv=/(?:Once|Passive|Capture)$/;function hT(e){let t;if(Wv.test(e)){t={};let o;for(;o=e.match(Wv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):yi(e.slice(2)),t]}let td=0;const pT=Promise.resolve(),gT=()=>td||(pT.then(()=>td=0),td=Date.now());function vT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Cr(mT(o,r.value),t,5,[o])};return r.value=e,r.attached=gT(),r}function mT(e,t){if(Fe(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 Uv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?sT(e,o,f):t==="style"?cT(e,r,o):gu(t)?ph(t)||dT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bT(e,t,o,f))?(qv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Hv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ot(o))?qv(e,Jn(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Hv(e,t,o,f))};function bT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Uv(t)&&Ke(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||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 Uv(t)&&Ot(r)?!1:t in e}const Kc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?r=>_c(t,r):t};function wT(e){e.target.composing=!0}function Vv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),xT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ts]=Kc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=md(d)),e[Ts](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",wT),Co(e,"compositionend",Vv),Co(e,"change",Vv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ts]=Kc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?md(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))}},ST={deep:!0,created(e,t,r){e[Ts]=Kc(r),Co(e,"change",()=>{const o=e._modelValue,s=_T(e),c=e.checked,f=e[Ts];if(Fe(o)){const d=F0(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(vu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(eb(e,c))})},mounted:jv,beforeUpdate(e,t,r){e[Ts]=Kc(r),jv(e,t,r)}};function jv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Fe(t))s=F0(t,o.props.value)>-1;else if(vu(t))s=t.has(o.props.value);else{if(t===r)return;s=wu(t,eb(e,!0))}e.checked!==s&&(e.checked=s)}function _T(e){return"_value"in e?e._value:e.value}function eb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const kT=["ctrl","shift","alt","meta"],TT={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)=>kT.some(r=>e[`${r}Key`]&&!t.includes(r))},Ec=(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=TT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},CT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Pd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=yi(s.key);if(t.some(f=>f===c||CT[f]===c))return e(s)})},ET=Wt({patchProp:yT},Zk);let Gv;function LT(){return Gv||(Gv=bk(ET))}const tb=(...e)=>{const t=LT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=MT(o);if(!s)return;const c=t._component;!Ke(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,AT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function AT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function MT(e){return Ot(e)?document.querySelector(e):e}const Kr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},NT={};function $T(e,t){const r=Po("RouterView");return oe(),rt(r)}const PT=Kr(NT,[["render",$T]]),OT=["top","right","bottom","left"],Kv=["start","end"],Xv=OT.reduce((e,t)=>e.concat(t,t+"-"+Kv[0],t+"-"+Kv[1]),[]),Yl=Math.min,To=Math.max,RT={left:"right",right:"left",bottom:"top",top:"bottom"},DT={start:"end",end:"start"};function Od(e,t,r){return To(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Ur(e){return e.split("-")[0]}function _r(e){return e.split("-")[1]}function nb(e){return e==="x"?"y":"x"}function Oh(e){return e==="y"?"height":"width"}function ya(e){return["top","bottom"].includes(Ur(e))?"y":"x"}function Rh(e){return nb(ya(e))}function rb(e,t,r){r===void 0&&(r=!1);const o=_r(e),s=Rh(e),c=Oh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Yc(f)),[f,Yc(f)]}function zT(e){const t=Yc(e);return[Xc(e),t,Xc(t)]}function Xc(e){return e.replace(/start|end/g,t=>DT[t])}function IT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function FT(e,t,r,o){const s=_r(e);let c=IT(Ur(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Xc)))),c}function Yc(e){return e.replace(/left|right|bottom|top/g,t=>RT[t])}function HT(e){return{top:0,right:0,bottom:0,left:0,...e}}function ib(e){return typeof e!="number"?HT(e):{top:e,right:e,bottom:e,left:e}}function Rl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Yv(e,t,r){let{reference:o,floating:s}=e;const c=ya(t),f=Rh(t),d=Oh(f),h=Ur(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(_r(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const qT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Yv(p,o,h),b=o,w={},A=0;for(let M=0;M<d.length;M++){const{name:E,fn:C}=d[M],{x:N,y:P,data:L,reset:z}=await C({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=N??v,m=P??m,w={...w,[E]:{...w[E],...L}},z&&A<=50&&(A++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:v,y:m}=Yv(p,b,h)),M=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function $u(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=zo(t,e),A=ib(w),E=d[b?m==="floating"?"reference":"floating":m],C=Rl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(E)))==null||r?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),N=m==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),L=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},z=Rl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:P,strategy:h}):N);return{top:(C.top-z.top+A.top)/L.y,bottom:(z.bottom-C.bottom+A.bottom)/L.y,left:(C.left-z.left+A.left)/L.x,right:(z.right-C.right+A.right)/L.x}}const BT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const m=ib(v),b={x:r,y:o},w=Rh(s),A=Oh(w),M=await f.getDimensions(p),E=w==="y",C=E?"top":"left",N=E?"bottom":"right",P=E?"clientHeight":"clientWidth",L=c.reference[A]+c.reference[w]-b[w]-c.floating[A],z=b[w]-c.reference[w],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=W?W[P]:0;(!U||!await(f.isElement==null?void 0:f.isElement(W)))&&(U=d.floating[P]||c.floating[A]);const re=L/2-z/2,Q=U/2-M[A]/2-1,G=Yl(m[C],Q),te=Yl(m[N],Q),Z=G,q=U-M[A]-te,F=U/2-M[A]/2+re,k=Od(Z,F,q),B=!h.arrow&&_r(s)!=null&&F!==k&&c.reference[A]/2-(F<Z?G:te)-M[A]/2<0,V=B?F<Z?F-Z:F-q:0;return{[w]:b[w]+V,data:{[w]:k,centerOffset:F-k-V,...B&&{alignmentOffset:V}},reset:B}}});function WT(e,t,r){return(e?[...r.filter(s=>_r(s)===e),...r.filter(s=>_r(s)!==e)]:r.filter(s=>Ur(s)===s)).filter(s=>e?_r(s)===e||(t?Xc(s)!==s:!1):!0)}const UT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Xv,autoAlignment:w=!0,...A}=zo(e,t),M=m!==void 0||b===Xv?WT(m||null,w,b):b,E=await $u(t,A),C=((r=f.autoPlacement)==null?void 0:r.index)||0,N=M[C];if(N==null)return{};const P=rb(N,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==N)return{reset:{placement:M[0]}};const L=[E[Ur(N)],E[P[0]],E[P[1]]],z=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:L}],W=M[C+1];if(W)return{data:{index:C+1,overflows:z},reset:{placement:W}};const U=z.map(G=>{const te=_r(G.placement);return[G.placement,te&&v?G.overflows.slice(0,2).reduce((Z,q)=>Z+q,0):G.overflows[0],G.overflows]}).sort((G,te)=>G[1]-te[1]),Q=((s=U.filter(G=>G[2].slice(0,_r(G[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||U[0][0];return Q!==d?{data:{index:C+1,overflows:z},reset:{placement:Q}}:{}}}},VT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:M=!0,...E}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const C=Ur(s),N=Ur(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),L=b||(N||!M?[Yc(d)]:zT(d));!b&&A!=="none"&&L.push(...FT(d,M,A,P));const z=[d,...L],W=await $u(t,E),U=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&U.push(W[C]),m){const Z=rb(s,f,P);U.push(W[Z[0]],W[Z[1]])}if(re=[...re,{placement:s,overflows:U}],!U.every(Z=>Z<=0)){var Q,G;const Z=(((Q=c.flip)==null?void 0:Q.index)||0)+1,q=z[Z];if(q)return{data:{index:Z,overflows:re},reset:{placement:q}};let F=(G=re.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:G.placement;if(!F)switch(w){case"bestFit":{var te;const k=(te=re.map(B=>[B.placement,B.overflows.filter(V=>V>0).reduce((V,ie)=>V+ie,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:te[0];k&&(F=k);break}case"initialPlacement":F=d;break}if(s!==F)return{reset:{placement:F}}}return{}}}};async function jT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Ur(r),d=_r(r),h=ya(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:A}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof A=="number"&&(w=d==="end"?A*-1:A),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const GT=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 jT(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}}}}},KT=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:E=>{let{x:C,y:N}=E;return{x:C,y:N}}},...h}=zo(e,t),p={x:r,y:o},v=await $u(t,h),m=ya(Ur(s)),b=nb(m);let w=p[b],A=p[m];if(c){const E=b==="y"?"top":"left",C=b==="y"?"bottom":"right",N=w+v[E],P=w-v[C];w=Od(N,w,P)}if(f){const E=m==="y"?"top":"left",C=m==="y"?"bottom":"right",N=A+v[E],P=A-v[C];A=Od(N,A,P)}const M=d.fn({...t,[b]:w,[m]:A});return{...M,data:{x:M.x-r,y:M.y-o}}}}},XT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await $u(t,d),p=Ur(r),v=_r(r),m=ya(r)==="y",{width:b,height:w}=o.floating;let A,M;p==="top"||p==="bottom"?(A=p,M=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(M=p,A=v==="end"?"top":"bottom");const E=w-h[A],C=b-h[M],N=!t.middlewareData.shift;let P=E,L=C;if(m){const W=b-h.left-h.right;L=v||N?Yl(C,W):W}else{const W=w-h.top-h.bottom;P=v||N?Yl(E,W):W}if(N&&!v){const W=To(h.left,0),U=To(h.right,0),re=To(h.top,0),Q=To(h.bottom,0);m?L=b-2*(W!==0||U!==0?W+U:To(h.left,h.right)):P=w-2*(re!==0||Q!==0?re+Q:To(h.top,h.bottom))}await f({...t,availableWidth:L,availableHeight:P});const z=await s.getDimensions(c.floating);return b!==z.width||w!==z.height?{reset:{rects:!0}}:{}}}};function ir(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hr(e){return ir(e).getComputedStyle(e)}const Zv=Math.min,Dl=Math.max,Zc=Math.round;function ob(e){const t=Hr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Zc(r)!==s||Zc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Qi(e){return lb(e)?(e.nodeName||"").toLowerCase():""}let ac;function sb(){if(ac)return ac;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ac=e.brands.map(t=>t.brand+"/"+t.version).join(" "),ac):navigator.userAgent}function qr(e){return e instanceof ir(e).HTMLElement}function Yi(e){return e instanceof ir(e).Element}function lb(e){return e instanceof ir(e).Node}function Jv(e){return typeof ShadowRoot>"u"?!1:e instanceof ir(e).ShadowRoot||e instanceof ShadowRoot}function Pu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function YT(e){return["table","td","th"].includes(Qi(e))}function Rd(e){const t=/firefox/i.test(sb()),r=Hr(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 ab(){return!/^((?!chrome|android).)*safari/i.test(sb())}function Dh(e){return["html","body","#document"].includes(Qi(e))}function cb(e){return Yi(e)?e:e.contextElement}const ub={x:1,y:1};function Cs(e){const t=cb(e);if(!qr(t))return ub;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=ob(t);let f=(c?Zc(r.width):r.width)/o,d=(c?Zc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=cb(e);let h=ub;t&&(o?Yi(o)&&(h=Cs(o)):h=Cs(e));const p=d?ir(d):window,v=!ab()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,A=f.height/h.y;if(d){const M=ir(d),E=o&&Yi(o)?ir(o):o;let C=M.frameElement;for(;C&&o&&E!==M;){const N=Cs(C),P=C.getBoundingClientRect(),L=getComputedStyle(C);P.x+=(C.clientLeft+parseFloat(L.paddingLeft))*N.x,P.y+=(C.clientTop+parseFloat(L.paddingTop))*N.y,m*=N.x,b*=N.y,w*=N.x,A*=N.y,m+=P.x,b+=P.y,C=ir(C).frameElement}}return{width:w,height:A,top:b,right:m+w,bottom:b+A,left:m,x:m,y:b}}function Zi(e){return((lb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return Yi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fb(e){return Zl(Zi(e)).left+Ou(e).scrollLeft}function Jl(e){if(Qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jv(e)&&e.host||Zi(e);return Jv(t)?t.host:t}function db(e){const t=Jl(e);return Dh(t)?t.ownerDocument.body:qr(t)&&Pu(t)?t:db(t)}function Jc(e,t){var r;t===void 0&&(t=[]);const o=db(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ir(o);return s?t.concat(c,c.visualViewport||[],Pu(o)?o:[]):t.concat(o,Jc(o))}function Qv(e,t,r){return t==="viewport"?Rl(function(o,s){const c=ir(o),f=Zi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=ab();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Yi(t)?Rl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=qr(o)?Cs(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)):Rl(function(o){const s=Zi(o),c=Ou(o),f=o.ownerDocument.body,d=Dl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Dl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+fb(o);const v=-c.scrollTop;return Hr(f).direction==="rtl"&&(p+=Dl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Zi(e)))}function em(e){return qr(e)&&Hr(e).position!=="fixed"?e.offsetParent:null}function tm(e){const t=ir(e);let r=em(e);for(;r&&YT(r)&&Hr(r).position==="static";)r=em(r);return r&&(Qi(r)==="html"||Qi(r)==="body"&&Hr(r).position==="static"&&!Rd(r))?t:r||function(o){let s=Jl(o);for(;qr(s)&&!Dh(s);){if(Rd(s))return s;s=Jl(s)}return null}(e)||t}function ZT(e,t,r){const o=qr(t),s=Zi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Qi(t)!=="body"||Pu(s))&&(f=Ou(t)),qr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=fb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const JT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Jc(p).filter(E=>Yi(E)&&Qi(E)!=="body"),w=null;const A=Hr(p).position==="fixed";let M=A?Jl(p):p;for(;Yi(M)&&!Dh(M);){const E=Hr(M),C=Rd(M);(A?C||w:C||E.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=E:b=b.filter(N=>N!==M),M=Jl(M)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Qv(t,v,s);return p.top=Dl(m.top,p.top),p.right=Zv(m.right,p.right),p.bottom=Zv(m.bottom,p.bottom),p.left=Dl(m.left,p.left),p},Qv(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=qr(r),c=Zi(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")&&((Qi(r)!=="body"||Pu(c))&&(f=Ou(r)),qr(r))){const p=Zl(r);d=Cs(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:Yi,getDimensions:function(e){return qr(e)?ob(e):e.getBoundingClientRect()},getOffsetParent:tm,getDocumentElement:Zi,getScale:Cs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||tm,c=this.getDimensions;return{reference:ZT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Hr(e).direction==="rtl"},QT=(e,t,r)=>{const o=new Map,s={platform:JT,...r},c={...s.platform,_c:o};return qT(e,t,{...s,platform:c})};function hb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?hb(e[r],t[r]):e[r]=t[r])}const kr={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 Ql(e,t){let r=kr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=kr.themes[r.$extend]||{}:(r=null,o=kr[t]):r=null;while(r);return o}function eC(e){const t=[e];let r=kr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=kr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function nm(e){const t=[e];let r=kr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=kr.themes[r.$extend]||{}):r=null;while(r);return t}let Ps=!1;if(typeof window<"u"){Ps=!1;try{const e=Object.defineProperty({},"passive",{get(){Ps=!0}});window.addEventListener("test",null,e)}catch{}}let pb=!1;typeof window<"u"&&typeof navigator<"u"&&(pb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const gb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),rm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},im={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function om(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function nd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Kn=[];let _o=null;const sm={};function lm(e){let t=sm[e];return t||(t=sm[e]=[]),t}let Dd=function(){};typeof window<"u"&&(Dd=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const rd="__floating-vue__popper",vb=()=>ut({name:"VPopper",provide(){return{[rd]:{parentPopper:this}}},inject:{[rd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>gb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Dd,Boolean],default:at("container")},boundary:{type:[String,Dd],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[rd])==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(GT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(UT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(KT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(VT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(BT({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(XT({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 QT(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 nd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Jc(this.$_referenceNode),...Jc(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<Kn.length;r++)t=Kn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Kn.push(this),document.body.classList.add("v-popper--some-open");for(const t of nm(this.theme))lm(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 nd(),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,om(Kn,this),Kn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of nm(this.theme)){const o=lm(r);om(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 nd(),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,rm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],rm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,im,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],im,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,Ps?{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(zl>=e.left&&zl<=e.right&&Il>=e.top&&Il<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=zl-Ii,o=Il-Fi,s=t.left+t.width/2-Ii+(t.top+t.height/2)-Fi+t.width+t.height,c=Ii+r*s,f=Fi+o*s;return cc(Ii,Fi,c,f,t.left,t.top,t.left,t.bottom)||cc(Ii,Fi,c,f,t.left,t.top,t.right,t.top)||cc(Ii,Fi,c,f,t.right,t.top,t.right,t.bottom)||cc(Ii,Fi,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(pb){const e=Ps?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>am(t,!0),e),document.addEventListener("touchend",t=>cm(t,!0),e)}else window.addEventListener("mousedown",e=>am(e,!1),!0),window.addEventListener("click",e=>cm(e,!1),!0);window.addEventListener("resize",nC)}function am(e,t){if(kr.autoHideOnMousedown)mb(e,t);else for(let r=0;r<Kn.length;r++){const o=Kn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function cm(e,t){kr.autoHideOnMousedown||mb(e,t)}function mb(e,t){const r={};for(let o=Kn.length-1;o>=0;o--){const s=Kn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&um(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&&um(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function um(e,t,r){return r.closeAllPopover||r.closePopover&&t||tC(e,r)&&!t}function tC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function nC(){for(let e=0;e<Kn.length;e++)Kn[e].$_computePosition()}function fm(){for(let e=0;e<Kn.length;e++)Kn[e].hide()}let Ii=0,Fi=0,zl=0,Il=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Ii=zl,Fi=Il,zl=e.clientX,Il=e.clientY},Ps?{passive:!0}:void 0);function cc(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 rC={extends:vb()},Ru=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function iC(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[vn(e.$slots,"default",r_(Gy(e.slotData)))],2)}const oC=Ru(rC,[["render",iC]]);function sC(){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 Lc;function zd(){zd.init||(zd.init=!0,Lc=sC()!==-1)}var Du={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){zd(),un(()=>{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",Lc&&this.$el.appendChild(e),e.data="about:blank",Lc||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&&(!Lc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const lC=hy();fy("data-v-b329ee4c");const aC={class:"resize-observer",tabindex:"-1"};dy();const cC=lC((e,t,r,o,s,c)=>(oe(),rt("div",aC)));Du.render=cC;Du.__scopeId="data-v-b329ee4c";Du.__file="src/components/ResizeObserver.vue";const yb=(e="theme")=>({computed:{themeClass(){return eC(this[e])}}}),uC=ut({name:"VPopperContent",components:{ResizeObserver:Du},mixins:[yb()],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}}}),fC=["id","aria-hidden","tabindex","data-popper-placement"],dC={ref:"inner",class:"v-popper__inner"},hC=Y("div",{class:"v-popper__arrow-outer"},null,-1),pC=Y("div",{class:"v-popper__arrow-inner"},null,-1),gC=[hC,pC];function vC(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:st(["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:Jt(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]=Pd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Jt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",dC,[e.mounted?(oe(),me(ct,{key:0},[Y("div",null,[vn(e.$slots,"default")]),e.handleResize?(oe(),rt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Jt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},gC,4)],4)],46,fC)}const bb=Ru(uC,[["render",vC]]),wb={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 Id=function(){};typeof window<"u"&&(Id=window.Element);const mC=ut({name:"VPopperWrapper",components:{Popper:oC,PopperContent:bb},mixins:[wb,yb("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,Id,Boolean],default:void 0},boundary:{type:[String,Id],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 yC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),rt(d,hi({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:ot(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:A,handleResize:M,onResize:E,classes:C,result:N})=>[vn(e.$slots,"default",{shown:p,show:w,hide:A}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:C,result:N,onHide:A,onResize:E},{default:ot(()=>[vn(e.$slots,"popper",{shown:p,hide:A})]),_: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 zh=Ru(mC,[["render",yC]]),bC={...zh,name:"VDropdown",vPopperTheme:"dropdown"},wC={...zh,name:"VMenu",vPopperTheme:"menu"},xb={...zh,name:"VTooltip",vPopperTheme:"tooltip"},xC=ut({name:"VTooltipDirective",components:{Popper:vb(),PopperContent:bb},mixins:[wb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(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}}}),SC=["innerHTML"],_C=["textContent"];function kC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),rt(d,hi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ot(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:A,onResize:M,classes:E,result:C})=>[Pe(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":A,classes:E,result:C,onHide:w,onResize:M},{default:ot(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,SC)):(oe(),me("div",{key:1,textContent:He(e.finalContent)},null,8,_C))]),_: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 TC=Ru(xC,[["render",kC]]),Sb="v-popper--has-tooltip";function CC(e,t){let r=e.placement;if(!r&&t)for(const o of gb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function _b(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=CC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let id,ea,EC=0;function LC(){if(id)return;ea=We([]),id=tb({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>ma(TC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),id.mount(e)}function kb(e,t,r){LC();const o=We(_b(e,t,r)),s=We(!1),c={id:EC++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(Sb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ih(e){if(e.$_popper){const t=ea.value.indexOf(e.$_popper.item);t!==-1&&ea.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Sb)}function dm(e,{value:t,modifiers:r}){const o=_b(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))Ih(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=kb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Tb={beforeMount:dm,updated:dm,beforeUnmount(e){Ih(e)}};function hm(e){e.addEventListener("mousedown",Qc),e.addEventListener("click",Qc),e.addEventListener("touchstart",Cb,Ps?{passive:!0}:!1)}function pm(e){e.removeEventListener("mousedown",Qc),e.removeEventListener("click",Qc),e.removeEventListener("touchstart",Cb),e.removeEventListener("touchend",Eb),e.removeEventListener("touchcancel",Lb)}function Qc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Cb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Eb),t.addEventListener("touchcancel",Lb)}}function Eb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Lb(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const AC={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&hm(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?hm(e):pm(e))},beforeUnmount(e){pm(e)}},MC=Tb,Ab=xb;function NC(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,hb(kr,t),e.directive("tooltip",Tb),e.directive("close-popper",AC),e.component("VTooltip",xb),e.component("VDropdown",bC),e.component("VMenu",wC))}const Mb={version:"5.2.2",install:NC,options:kr};function Nb(e){return e!=null}function Fh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const $C=/^[A-Za-z]:\//;function PC(e=""){return e&&e.replace(/\\/g,"/").replace($C,t=>t.toUpperCase())}const OC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,gm=/^\/([A-Za-z]:)?$/;function RC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const vm=function(...e){e=e.map(o=>PC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:RC();!s||s.length===0||(t=`${s}/${t}`,r=mm(s))}return t=DC(t,!r),r&&!mm(t)?`/${t}`:t.length>0?t:"."};function DC(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 mm=function(e){return OC.test(e)},zC=function(e,t){const r=vm(e).replace(gm,"$1").split("/"),o=vm(t).replace(gm,"$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 IC(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 $b(e,t,r,o){const s=zC(t,e),c={id:IC(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function Hh(e){return eu(e)}function eu(e){return e.type==="test"||e.type==="custom"}function Pb(e){const t=[],r=Fh(e);for(const o of r)if(eu(o))t.push(o);else for(const s of o.tasks)if(eu(s))t.push(s);else{const c=Pb(s);for(const f of c)t.push(f)}return t}function qh(e=[]){return Fh(e).flatMap(t=>eu(t)?[t]:[t,...qh(t.tasks)])}function FC(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const HC=6e4;function Ob(e){return e}const qC=Ob,{clearTimeout:BC,setTimeout:WC}=globalThis,UC=Math.random.bind(Math);function VC(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Ob,deserialize:d=qC,resolver:h,bind:p="rpc",timeout:v=HC}=t,m=new Map;let b,w=!1;const A=new Proxy({},{get(C,N){if(N==="$functions")return e;if(N==="$close")return M;if(N==="then"&&!c.includes("then")&&!("then"in e))return;const P=(...z)=>{r(f({m:N,a:z,t:"q"}))};if(c.includes(N))return P.asEvent=P,P;const L=async(...z)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${N}"`);if(b)try{await b}finally{b=void 0}return new Promise((W,U)=>{var G;const re=GC();let Q;v>=0&&(Q=WC(()=>{var te;try{throw(te=t.onTimeoutError)==null||te.call(t,N,z),new Error(`[birpc] timeout on calling "${N}"`)}catch(Z){U(Z)}m.delete(re)},v),typeof Q=="object"&&(Q=(G=Q.unref)==null?void 0:G.call(Q))),m.set(re,{resolve:W,reject:U,timeoutId:Q,method:N}),r(f({m:N,a:z,i:re,t:"q"}))})};return L.asEvent=P,L}});function M(){w=!0,m.forEach(({reject:C,method:N})=>{C(new Error(`[birpc] rpc is closed, cannot call "${N}"`))}),m.clear(),s(E)}async function E(C,...N){const P=d(C);if(P.t==="q"){const{m:L,a:z}=P;let W,U;const re=h?h(L,e[L]):e[L];if(!re)U=new Error(`[birpc] function "${L}" not found`);else try{W=await re.apply(p==="rpc"?A:e,z)}catch(Q){U=Q}P.i&&(U&&t.onError&&t.onError(U,L,z),r(f({t:"s",i:P.i,r:W,e:U}),...N))}else{const{i:L,r:z,e:W}=P,U=m.get(L);U&&(BC(U.timeoutId),W?U.reject(W):U.resolve(z)),m.delete(L)}}return b=o(E),A}const jC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function GC(e=21){let t="",r=e;for(;r--;)t+=jC[UC()*64|0];return t}const{parse:KC,stringify:XC}=JSON,{keys:YC}=Object,ta=String,Rb="string",ym={},tu="object",Db=(e,t)=>t,ZC=e=>e instanceof ta?ta(e):e,JC=(e,t)=>typeof t===Rb?new ta(t):t,zb=(e,t,r,o)=>{const s=[];for(let c=YC(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ta){const v=e[p];typeof v===tu&&!t.has(v)?(t.add(v),r[h]=ym,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==ym&&(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,zb.apply(null,h))}return r},bm=(e,t,r)=>{const o=ta(t.push(r)-1);return e.set(r,o),o},Fd=(e,t)=>{const r=KC(e,JC).map(ZC),o=r[0],s=t||Db,c=typeof o===tu&&o?zb(r,new Set,o,s):o;return s.call({"":c},"",c)},QC=(e,t,r)=>{const o=t&&typeof t===tu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Db,s=new Map,c=[],f=[];let d=+bm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=XC(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case tu:if(b===null)return b;case Rb:return s.get(b)||bm(s,c,b)}return b}};class Ib{constructor(){fs(this,"filesMap",new Map);fs(this,"pathsSet",new Set);fs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=$b(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Bh(e){return Pb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function eE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=N=>N,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Ib,waitForConnection:C,reconnect:M},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(N){var P;N==null||N.forEach(([L,z])=>{v.state.clearFiles({config:L},[z])}),(P=r.onSpecsCollected)==null||P.call(r,N)},onPathsCollected(N){var P;v.state.collectPaths(N),(P=r.onPathsCollected)==null||P.call(r,N)},onCollected(N){var P;v.state.collectFiles(N),(P=r.onCollected)==null||P.call(r,N)},onTaskUpdate(N){var P;v.state.updateTasks(N),(P=r.onTaskUpdate)==null||P.call(r,N)},onUserConsoleLog(N){var P;v.state.updateUserLog(N),(P=r.onUserConsoleLog)==null||P.call(r,N)},onFinished(N,P){var L;(L=r.onFinished)==null||L.call(r,N,P)},onFinishedReportCoverage(){var N;(N=r.onFinishedReportCoverage)==null||N.call(r)}},w={post:N=>v.ws.send(N),on:N=>m=N,serialize:N=>QC(N,(P,L)=>L instanceof Error?{name:L.name,message:L.message,stack:L.stack}:L),deserialize:Fd,onTimeoutError(N){throw new Error(`[vitest-ws-client]: Timeout calling "${N}"`)}};v.rpc=VC(b,w);let A;function M(N=!1){N&&(p=c),v.ws=new h(e),E()}function E(){A=new Promise((N,P)=>{var z,W;const L=(W=(z=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:z.unref)==null?void 0:W.call(z);v.ws.OPEN===v.ws.readyState&&N(),v.ws.addEventListener("open",()=>{p=c,N(),clearTimeout(L)})}),v.ws.addEventListener("message",N=>{m(N.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(M,s)})}E();function C(){return A}return v}function zu(e){return B0()?(a_(e),!0):!1}function Vr(e){return typeof e=="function"?e():I(e)}const tE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nE=Object.prototype.toString,rE=e=>nE.call(e)==="[object Object]",na=()=>{};function Fb(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 Hb=e=>e();function qb(e,t={}){let r,o,s=na;const c=d=>{clearTimeout(d),s(),s=na};return d=>{const h=Vr(e),p=Vr(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,m)=>{s=t.rejectOnCancel?m:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function iE(e=Hb){const t=We(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:da(t),pause:r,resume:o,eventFilter:s}}function oE(e){return ga()}function sE(...e){if(e.length!==1)return _u(...e);const t=e[0];return typeof t=="function"?da(oy(()=>({get:t,set:na}))):We(t)}function uc(e,t=200,r={}){return Fb(qb(t,r),e)}function Bb(e,t,r={}){const{eventFilter:o=Hb,...s}=r;return Bt(e,Fb(o,t),s)}function Wb(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=iE(o);return{stop:Bb(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Wh(e,t=!0,r){oE()?qs(e,r):t?e():un(e)}function lE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=At(e),c=We(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Vr(r);return c.value=c.value===h?Vr(o):h,c.value}}return s?f:[c,f]}function Ub(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Bb(e,t,{...c,eventFilter:qb(o,{maxWait:s})})}function aE(e,t,r){const o=Bt(e,(...s)=>(un(()=>o()),t(...s)),r);return o}function cE(e,t,r){let o;At(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=na}=o,h=We(!s),p=f?jr(t):We(t);let v=0;return Mh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const A=await e(M=>{m(()=>{c&&(c.value=!1),w||M()})});b===v&&(p.value=A)}catch(A){d(A)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?Te(()=>(h.value=!0,p.value)):p}const sr=tE?window:void 0;function nu(e){var t;const r=Vr(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Os(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=sr):[t,r,o,s]=e,!t)return na;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,m,b,w)=>(v.addEventListener(m,b,w),()=>v.removeEventListener(m,b,w)),h=Bt(()=>[nu(t),Vr(s)],([v,m])=>{if(f(),!v)return;const b=rE(m)?{...m}:m;c.push(...r.flatMap(w=>o.map(A=>d(v,w,A,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return zu(p),p}function uE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Vb(...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=sr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=uE(t);return Os(s,c,v=>{v.repeat&&Vr(d)||h(v)&&r(v)},f)}function fE(){const e=We(!1),t=ga();return t&&qs(()=>{e.value=!0},t),e}function jb(e){const t=fE();return Te(()=>(t.value,!!e()))}function dE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=sr}=t,c=We(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const w=b-d;if(f&&w<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:w,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function m(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),zu(m),{isActive:da(c),pause:m,resume:v}}function Gb(e,t={}){const{window:r=sr}=t,o=jb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=We(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Mh(()=>{o.value&&(d(),s=r.matchMedia(Vr(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return zu(()=>{h(),d(),s=void 0}),c}const fc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dc="__vueuse_ssr_handlers__",hE=pE();function pE(){return dc in fc||(fc[dc]=fc[dc]||{}),fc[dc]}function Kb(e,t){return hE[e]||t}function Xb(e){return Gb("(prefers-color-scheme: dark)",e)}function gE(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 vE={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()}},wm="vueuse-storage";function Yb(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=sr,eventFilter:b,onError:w=G=>{console.error(G)},initOnMounted:A}=o,M=(v?jr:We)(typeof t=="function"?t():t);if(!r)try{r=Kb("getDefaultStorage",()=>{var G;return(G=sr)==null?void 0:G.localStorage})()}catch(G){w(G)}if(!r)return M;const E=Vr(t),C=gE(E),N=(s=o.serializer)!=null?s:vE[C],{pause:P,resume:L}=Wb(M,()=>W(M.value),{flush:c,deep:f,eventFilter:b});m&&d&&Wh(()=>{r instanceof Storage?Os(m,"storage",re):Os(m,wm,Q),A&&re()}),A||re();function z(G,te){if(m){const Z={key:e,oldValue:G,newValue:te,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",Z):new CustomEvent(wm,{detail:Z}))}}function W(G){try{const te=r.getItem(e);if(G==null)z(te,null),r.removeItem(e);else{const Z=N.write(G);te!==Z&&(r.setItem(e,Z),z(te,Z))}}catch(te){w(te)}}function U(G){const te=G?G.newValue:r.getItem(e);if(te==null)return h&&E!=null&&r.setItem(e,N.write(E)),E;if(!G&&p){const Z=N.read(te);return typeof p=="function"?p(Z,E):C==="object"&&!Array.isArray(Z)?{...E,...Z}:Z}else return typeof te!="string"?te:N.read(te)}function re(G){if(!(G&&G.storageArea!==r)){if(G&&G.key==null){M.value=E;return}if(!(G&&G.key!==e)){P();try{(G==null?void 0:G.newValue)!==N.write(M.value)&&(M.value=U(G))}catch(te){w(te)}finally{G?un(L):L()}}}}function Q(G){re(G.detail)}return M}const mE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function yE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=sr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=Xb({window:s}),w=Te(()=>b.value?"dark":"light"),A=h||(f==null?sE(o):Yb(f,o,c,{window:s,listenToStorageChanges:d})),M=Te(()=>A.value==="auto"?w.value:A.value),E=Kb("updateHTMLAttrs",(L,z,W)=>{const U=typeof L=="string"?s==null?void 0:s.document.querySelector(L):nu(L);if(!U)return;const re=new Set,Q=new Set;let G=null;if(z==="class"){const Z=W.split(/\s/g);Object.values(m).flatMap(q=>(q||"").split(/\s/g)).filter(Boolean).forEach(q=>{Z.includes(q)?re.add(q):Q.add(q)})}else G={key:z,value:W};if(re.size===0&&Q.size===0&&G===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(mE)),s.document.head.appendChild(te));for(const Z of re)U.classList.add(Z);for(const Z of Q)U.classList.remove(Z);G&&U.setAttribute(G.key,G.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function C(L){var z;E(t,r,(z=m[L])!=null?z:L)}function N(L){e.onChanged?e.onChanged(L,C):C(L)}Bt(M,N,{flush:"post",immediate:!0}),Wh(()=>N(M.value));const P=Te({get(){return p?A.value:M.value},set(L){A.value=L}});try{return Object.assign(P,{store:A,system:w,state:M})}catch{return P}}function bE(e={}){const{valueDark:t="dark",valueLight:r="",window:o=sr}=e,s=yE({...e,onChanged:(d,h)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,d==="dark",h,d):h(d)},modes:{dark:t,light:r}}),c=Te(()=>s.system?s.system.value:Xb({window:o}).value?"dark":"light");return Te({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function wE(e,t,r={}){const{window:o=sr,...s}=r;let c;const f=jb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Te(()=>{const m=Vr(e);return Array.isArray(m)?m.map(b=>nu(b)):[nu(m)]}),p=Bt(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return zu(v),{isSupported:f,stop:v}}function Iu(e,t,r={}){const{window:o=sr}=r;return Yb(e,t,o==null?void 0:o.localStorage,r)}function xE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=sr}=t;if(!f)return Zn(r);const d=Zn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const C=f.location.hash||"",N=C.indexOf("?");return N>0?C.slice(N):""}else return(f.location.hash||"").replace(/^#/,"")}function p(C){const N=C.toString();if(e==="history")return`${N?`?${N}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${N?`#${N}`:""}`;const P=f.location.hash||"#",L=P.indexOf("?");return L>0?`${P.slice(0,L)}${N?`?${N}`:""}`:`${P}${N?`?${N}`:""}`}function v(){return new URLSearchParams(h())}function m(C){const N=new Set(Object.keys(d));for(const P of C.keys()){const L=C.getAll(P);d[P]=L.length>1?L:C.get(P)||"",N.delete(P)}Array.from(N).forEach(P=>delete d[P])}const{pause:b,resume:w}=Wb(d,()=>{const C=new URLSearchParams("");Object.keys(d).forEach(N=>{const P=d[N];Array.isArray(P)?P.forEach(L=>C.append(N,L)):o&&P==null||s&&!P?C.delete(N):C.set(N,P)}),A(C)},{deep:!0});function A(C,N){b(),N&&m(C),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(C)),w()}function M(){c&&A(v(),!0)}Os(f,"popstate",M,!1),e!=="history"&&Os(f,"hashchange",M,!1);const E=v();return E.keys().next().value?m(E):Object.assign(d,r),d}function Uh(e={}){const{window:t=sr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=We(r),h=We(o),p=()=>{t&&(f==="outer"?(d.value=t.outerWidth,h.value=t.outerHeight):c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};if(p(),Wh(p),Os("resize",p,{passive:!0}),s){const v=Gb("(orientation: portrait)");Bt(v,()=>p())}return{width:d,height:h}}const Hd=jr([]),Bn=jr([]),Er=Iu("vitest-ui_task-tree-opened",[],{shallow:!0}),ru=Te(()=>new Set(Er.value)),ln=Iu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),zn=We(ln.value.search),SE={"&":"&","<":"<",">":">",'"':""","'":"'"};function Zb(e){return e.replace(/[&<>"']/g,t=>SE[t])}const _E=Te(()=>{const e=zn.value.toLowerCase();return e.length?new RegExp(`(${Zb(e)})`,"gi"):null}),Jb=Te(()=>zn.value.trim()!==""),et=Zn({failed:ln.value.failed,success:ln.value.success,skipped:ln.value.skipped,onlyTests:ln.value.onlyTests}),qd=Te(()=>!!(et.failed||et.success||et.skipped)),Fu=jr([]),Rs=We(!1),xm=Te(()=>{const e=ln.value.expandAll;return Er.value.length>0?e!==!0:e!==!1}),kE=Te(()=>{const e=Jb.value,t=qd.value,r=et.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=Fu.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function ba(e){return Object.hasOwnProperty.call(e,"tasks")}function TE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Qb(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function CE(e){return e.type==="test"||e.type==="custom"}function EE(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function Mn(e){return e.type==="file"}function vi(e){return e.type==="file"||e.type==="suite"}function LE(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ra(e,t=!1){var o,s,c,f,d;let r=Ce.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:ru.value.size>0&&ru.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Qb(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)wa(e.id,e.tasks[h],!0)}function ew(e,t){const r=Ce.nodes.get(e);if(!r||!vi(r))return;const o=wt.state.idMap.get(e);if(!(!o||!ba(o)))return wa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function AE(e){const t=Ce.nodes.get(e);if(!t)return;const r=wt.state.idMap.get(e);!r||!Hh(r)||wa(t.parentId,r,!1)}function wa(e,t,r){var f,d,h,p,v;const o=Ce.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Ce.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):(Hh(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:ru.value.size>0&&ru.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&ba(t)))for(let m=0;m<t.tasks.length;m++)wa(s.id,t.tasks[m],r)}function ME(e){const t=Ce.nodes.get(e);if(!t||!vi(t))return;const r=new Set(Er.value);r.delete(t.id);const o=[...$E(t)];Er.value=Array.from(r),Bn.value=o}function NE(){Bd(Ce.root.tasks);const e=[...Bn.value.filter(Mn)];Bd(e),Er.value=[],ln.value.expandAll=!0,Bn.value=e}function Bd(e){for(const t of e)vi(t)&&(t.expanded=!1,Bd(t.tasks))}function*tw(e,t){if(t&&(yield e.id),vi(e))for(let r=0;r<e.tasks.length;r++)yield*tw(e.tasks[r],!0)}function*$E(e){const t=e.id,r=new Set(tw(e,!1));for(let o=0;o<Bn.value.length;o++){const s=Bn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}function PE(e,t,r){return e?iw(e,t,r):!1}function Vh(e,t){const r=[...nw(e,t)];Bn.value=r,Fu.value=r.filter(Mn).map(o=>lr(o.id))}function*nw(e,t){for(const r of LE())yield*rw(r,e,t)}function*rw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Wd(e,o,w=>Sm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Wd(e,o,w=>Sm(w,t,r)))vi(b)?(s.set(b.id,m),Mn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Mn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...RE(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(m=>{var b;return Mn(m)||vi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Mn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function OE(e,t,r,o,s){if(o){if(Mn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Mn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Mn(c)&&s.add(c.id),t}}function*RE(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=vi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),Mn(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=OE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&Mn(p)&&o.add(p.id),yield d}}}function DE(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function iw(e,t,r){if(t.length===0||TE(e.name,t))if(r.success||r.failed||r.skipped){if(DE(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(CE(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if(Mn(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],vi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function Sm(e,t,r){const o=wt.state.idMap.get(e.id);return o?iw(o,t,r):!1}function zE(e,t,r){const o=ew(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)wa(s.id,p,!1);s.expanded=!0;const f=new Set(Er.value);f.add(s.id);const d=new Set(rw(s,t,r)),h=[...HE(s,d)];Er.value=Array.from(f),Bn.value=h}function IE(e,t){jh(Ce.root.tasks,!1);const r=[...nw(e,t)];ln.value.expandAll=!1,Er.value=[],Bn.value=r,Fu.value=r.filter(Mn).map(o=>lr(o.id))}function FE(e,t){if(e.size)for(const r of Bn.value)e.has(r.id)&&(r.expanded=!0);else t&&jh(Bn.value.filter(Mn),!0)}function jh(e,t){for(const r of e)vi(r)&&(r.expanded=!0,jh(r.tasks,!1));t&&(ln.value.expandAll=!1,Er.value=[])}function*HE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Bn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function qE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ra(s,t)),Hd.value=[...Ce.root.tasks],Vh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function BE(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=wt.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 _m(e,t,r,o,s){e&&KE(r);const c=!e;queueMicrotask(()=>{t?VE(c):jE(c)}),queueMicrotask(()=>{XE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Hd.value&&Bh(Hd.value.map(f=>lr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{GE(o,s,t)})}function*WE(){yield*Bn.value.filter(EE)}function UE(){const e=wt.state.idMap;let t;for(const r of WE())t=e.get(r.parentId),t&&ba(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function VE(e){const t=wt.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ra(o[c],e),iu(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=lr(f.id);if(!d)continue;ra(d,e);const h=d.tasks;h!=null&&h.length&&iu(d.tasks)}}function jE(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>lr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ra(s,!1),iu(s.tasks),t.delete(s.id);const c=wt.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=lr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ra(p,e),iu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function GE(e,t,r=!1){const o=ln.value.expandAll,s=o!==!0,c=new Set(Er.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{km(e,t,r)}),Rs.value||queueMicrotask(()=>{(Bn.value.length||r)&&(Rs.value=!0)}),f&&(queueMicrotask(()=>{FE(c,r),s&&(ln.value.expandAll=!1)}),queueMicrotask(()=>{km(e,t,r)}))}function km(e,t,r){Vh(e,t),r&&UE()}function iu(e){let t;for(let r=0;r<e.length;r++)t=e[r],ba(t)?ew(t.id,!0):AE(t.id)}function KE(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function XE(e){var f,d,h,p,v,m;const t=wt.state.idMap,r=new Map(Ce.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,lr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[b,w]of o){if(!w)continue;const A=r.get(b);A&&(A.mode=w.mode,A.setupDuration=w.setupDuration,A.prepareDuration=w.prepareDuration,A.environmentLoad=w.environmentLoad,A.collectDuration=w.collectDuration,A.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,A.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:M,success:E,skipped:C,total:N,ignored:P,todo:L}=ow(w);s.totalTests+=N,s.testsFailed+=M,s.testsSuccess+=E,s.testsSkipped+=C,s.testsTodo+=L,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function ow(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of sw(e))(!r||PE(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function YE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>ow(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*sw(e){const t=Fh(e);let r;for(let o=0;o<t.length;o++)r=t[o],Hh(r)?yield r:yield*sw(r.tasks)}class ZE{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Zn({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})){fs(this,"rafCollector");fs(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=dE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){qE(t,!0,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){BE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{_m(t,r,this.summary,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):_m(t,r,this.summary,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return YE(t,r,o,s,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{ME(t)})}expandNode(t){queueMicrotask(()=>{zE(t,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{NE()})}expandAllNodes(){queueMicrotask(()=>{IE(zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Vh(zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Ce=new ZE,Dr=We([414,896]),Gh=xE("hash",{initialValue:{file:"",view:null,line:null}}),eo=_u(Gh,"file"),jn=_u(Gh,"view"),Ud=_u(Gh,"line"),ou=We("idle"),JE=Te(()=>ou.value==="idle"),Wi=We([]),Ds=We(),Es=We(!0),to=We(!1),su=We(!0),gs=Te(()=>{var e;return(e=Bu.value)==null?void 0:e.coverage}),Vd=Te(()=>{var e;return(e=gs.value)==null?void 0:e.enabled}),vs=Te(()=>Vd.value&&!!gs.value.htmlReporter),br=Iu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=Iu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),gn=Zn({navigation:br.value[0],details:{size:br.value[1],browser:Mo.value[0],main:Mo.value[1]}}),Tm=Te(()=>{var e;if(vs.value){const t=gs.value.reportsDirectory.lastIndexOf("/"),r=(e=gs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${gs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${gs.value.reportsDirectory.slice(t+1)}/index.html`}});Bt(ou,e=>{su.value=e==="running"},{immediate:!0});function QE(){const e=eo.value;if(e&&e.length>0){const t=lr(e);t?(Ds.value=t,Es.value=!1,to.value=!1):aE(()=>wt.state.getFiles(),()=>{Ds.value=lr(e),Es.value=!1,to.value=!1})}return Es}function lu(e){Es.value=e,to.value=!1,e&&(Ds.value=void 0,eo.value="")}function lw(e,t=null){eo.value=e.file.id,Ud.value=null,t!=null&&(un(()=>{Ud.value=t}),jn.value="editor"),Ds.value=lr(e.file.id),lu(!1)}function eL(){to.value=!0,Es.value=!1,Ds.value=void 0,eo.value=""}function tL(){gn.details.browser=100,gn.details.main=0,Mo.value=[100,0]}function nL(){gn.details.browser=33,gn.details.main=67,Mo.value=[33,67]}function rL(){gn.navigation=33,gn.details.size=67,br.value=[33,67]}const iL={setCurrentFileId(e){eo.value=e,Ds.value=lr(e),lu(!1)},async setIframeViewport(e,t){Dr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},oL=location.port,sL=[location.hostname,oL].filter(Boolean).join(":"),lL=`${location.protocol==="https:"?"wss:":"ws:"}//${sL}/__vitest_api__`,Br=!!window.METADATA_PATH,aL=44,Cm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cL=new Uint8Array(64),aw=new Uint8Array(128);for(let e=0;e<Cm.length;e++){const t=Cm.charCodeAt(e);cL[e]=t,aw[t]=e}function _l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=aw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Em(e,t){return e.pos>=t?!1:e.peek()!==aL}class uL{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function fL(e){const{length:t}=e,r=new uL(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=_l(r,s),s<b&&(m=!1),b=s,Em(r,p)?(c=_l(r,c),f=_l(r,f),d=_l(r,d),Em(r,p)?(h=_l(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||dL(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function dL(e){e.sort(hL)}function hL(e,t){return e[0]-t[0]}const pL=/^[\w+.-]+:\/\//,gL=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,vL=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var qt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(qt||(qt={}));function mL(e){return pL.test(e)}function yL(e){return e.startsWith("//")}function cw(e){return e.startsWith("/")}function bL(e){return e.startsWith("file:")}function Lm(e){return/^[.?#]/.test(e)}function hc(e){const t=gL.exec(e);return uw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function wL(e){const t=vL.exec(e),r=t[2];return uw("file:","",t[1]||"","",cw(r)?r:"/"+r,t[3]||"",t[4]||"")}function uw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:qt.Absolute}}function Am(e){if(yL(e)){const r=hc("http:"+e);return r.scheme="",r.type=qt.SchemeRelative,r}if(cw(e)){const r=hc("http://foo.com"+e);return r.scheme="",r.host="",r.type=qt.AbsolutePath,r}if(bL(e))return wL(e);if(mL(e))return hc(e);const t=hc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?qt.Query:e.startsWith("#")?qt.Hash:qt.RelativePath:qt.Empty,t}function xL(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function SL(e,t){fw(t,t.type),e.path==="/"?e.path=t.path:e.path=xL(t.path)+e.path}function fw(e,t){const r=t<=qt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function _L(e,t){if(!e&&!t)return"";const r=Am(e);let o=r.type;if(t&&o!==qt.Absolute){const c=Am(t),f=c.type;switch(o){case qt.Empty:r.hash=c.hash;case qt.Hash:r.query=c.query;case qt.Query:case qt.RelativePath:SL(r,c);case qt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case qt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}fw(r,o);const s=r.query+r.hash;switch(o){case qt.Hash:case qt.Query:return s;case qt.RelativePath:{const c=r.path.slice(1);return c?Lm(t||e)&&!Lm(c)?"./"+c+s:c+s:s||"."}case qt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Mm(e,t){return t&&!t.endsWith("/")&&(t+="/"),_L(e,t)}function kL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,TL=1,CL=2,EL=3,LL=4;function AL(e,t){const r=Nm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Nm(e,o+1))e[o]=NL(e[o],t);return e}function Nm(e,t){for(let r=t;r<e.length;r++)if(!ML(e[r]))return r;return e.length}function ML(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function NL(e,t){return t||(e=e.slice()),e.sort($L)}function $L(e,t){return e[no]-t[no]}let au=!1;function PL(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return au=!0,s;c<0?r=s+1:o=s-1}return au=!1,r-1}function OL(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function RL(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function DL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function zL(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 au=f!==-1&&e[f][no]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=PL(e,t,d,h)}const IL="`line` must be greater than 0 (lines start at line 1)",FL="`column` must be greater than or equal to 0 (columns start at column 0)",$m=-1,HL=1;class qL{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Mm(h||"",kL(r));this.resolvedSources=p.map(w=>Mm(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=AL(b,o)),this._decodedMemo=DL(),this._bySources=void 0,this._bySourceMemos=void 0}}function BL(e){var t;return(t=e)._decoded||(t._decoded=fL(e._encoded))}function WL(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(IL);if(o<0)throw new Error(FL);const c=BL(e);if(r>=c.length)return pc(null,null,null,null);const f=c[r],d=UL(f,e._decodedMemo,r,o,s||HL);if(d===-1)return pc(null,null,null,null);const h=f[d];if(h.length===1)return pc(null,null,null,null);const{names:p,resolvedSources:v}=e;return pc(v[h[TL]],h[CL]+1,h[EL],h.length===5?p[h[LL]]:null)}function pc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function UL(e,t,r,o,s){let c=zL(e,o,t,r);return au?c=(s===$m?OL:RL)(e,o,c):s===$m&&c++,c===-1||c===e.length?-1:c}const VL=/^[A-Za-z]:\//;function jL(e=""){return e&&e.replace(/\\/g,"/").replace(VL,t=>t.toUpperCase())}const GL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const XL=function(...e){e=e.map(o=>jL(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:KL();!s||s.length===0||(t=`${s}/${t}`,r=Pm(s))}return t=YL(t,!r),r&&!Pm(t)?`/${t}`:t.length>0?t:"."};function YL(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 Pm=function(e){return GL.test(e)},dw=/^\s*at .*(?:\S:\d+|\(native\))/m,ZL=/^(?:eval@)?(?:\[native code\])?$/,JL=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function hw(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:"))&&(o=new URL(o).pathname),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 QL(e){let t=e.trim();if(ZL.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=hw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function eA(e){let t=e.trim();if(!dw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=hw(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=XL(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function tA(e,t={}){const{ignoreStackEntries:r=JL}=t;let o=dw.test(e)?rA(e):nA(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new qL(f),{line:h,column:p}=WL(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function nA(e){return e.split(`
|
|
18
|
-
`).map(t=>QL(t)).filter(
|
|
19
|
-
`).map(t=>eA(t)).filter(
|
|
20
|
-
`,$U="∄",PU="∄",OU="𝔑",RU="𝔫",DU="≧̸",zU="≱",IU="≱",FU="≧̸",HU="⩾̸",qU="⩾̸",BU="⋙̸",WU="≵",UU="≫⃒",VU="≯",jU="≯",GU="≫̸",KU="↮",XU="⇎",YU="⫲",ZU="∋",JU="⋼",QU="⋺",e6="∋",t6="Њ",n6="њ",r6="↚",i6="⇍",o6="‥",s6="≦̸",l6="≰",a6="↚",c6="⇍",u6="↮",f6="⇎",d6="≰",h6="≦̸",p6="⩽̸",g6="⩽̸",v6="≮",m6="⋘̸",y6="≴",b6="≪⃒",w6="≮",x6="⋪",S6="⋬",_6="≪̸",k6="∤",T6="",C6=" ",E6="𝕟",L6="ℕ",A6="⫬",M6="¬",N6="≢",$6="≭",P6="∦",O6="∉",R6="≠",D6="≂̸",z6="∄",I6="≯",F6="≱",H6="≧̸",q6="≫̸",B6="≹",W6="⩾̸",U6="≵",V6="≎̸",j6="≏̸",G6="∉",K6="⋵̸",X6="⋹̸",Y6="∉",Z6="⋷",J6="⋶",Q6="⧏̸",eV="⋪",tV="⋬",nV="≮",rV="≰",iV="≸",oV="≪̸",sV="⩽̸",lV="≴",aV="⪢̸",cV="⪡̸",uV="∌",fV="∌",dV="⋾",hV="⋽",pV="⊀",gV="⪯̸",vV="⋠",mV="∌",yV="⧐̸",bV="⋫",wV="⋭",xV="⊏̸",SV="⋢",_V="⊐̸",kV="⋣",TV="⊂⃒",CV="⊈",EV="⊁",LV="⪰̸",AV="⋡",MV="≿̸",NV="⊃⃒",$V="⊉",PV="≁",OV="≄",RV="≇",DV="≉",zV="∤",IV="∦",FV="∦",HV="⫽⃥",qV="∂̸",BV="⨔",WV="⊀",UV="⋠",VV="⊀",jV="⪯̸",GV="⪯̸",KV="⤳̸",XV="↛",YV="⇏",ZV="↝̸",JV="↛",QV="⇏",ej="⋫",tj="⋭",nj="⊁",rj="⋡",ij="⪰̸",oj="𝒩",sj="𝓃",lj="∤",aj="∦",cj="≁",uj="≄",fj="≄",dj="∤",hj="∦",pj="⋢",gj="⋣",vj="⊄",mj="⫅̸",yj="⊈",bj="⊂⃒",wj="⊈",xj="⫅̸",Sj="⊁",_j="⪰̸",kj="⊅",Tj="⫆̸",Cj="⊉",Ej="⊃⃒",Lj="⊉",Aj="⫆̸",Mj="≹",Nj="Ñ",$j="ñ",Pj="≸",Oj="⋪",Rj="⋬",Dj="⋫",zj="⋭",Ij="Ν",Fj="ν",Hj="#",qj="№",Bj=" ",Wj="≍⃒",Uj="⊬",Vj="⊭",jj="⊮",Gj="⊯",Kj="≥⃒",Xj=">⃒",Yj="⤄",Zj="⧞",Jj="⤂",Qj="≤⃒",eG="<⃒",tG="⊴⃒",nG="⤃",rG="⊵⃒",iG="∼⃒",oG="⤣",sG="↖",lG="⇖",aG="↖",cG="⤧",uG="Ó",fG="ó",dG="⊛",hG="Ô",pG="ô",gG="⊚",vG="О",mG="о",yG="⊝",bG="Ő",wG="ő",xG="⨸",SG="⊙",_G="⦼",kG="Œ",TG="œ",CG="⦿",EG="𝔒",LG="𝔬",AG="˛",MG="Ò",NG="ò",$G="⧁",PG="⦵",OG="Ω",RG="∮",DG="↺",zG="⦾",IG="⦻",FG="‾",HG="⧀",qG="Ō",BG="ō",WG="Ω",UG="ω",VG="Ο",jG="ο",GG="⦶",KG="⊖",XG="𝕆",YG="𝕠",ZG="⦷",JG="“",QG="‘",e9="⦹",t9="⊕",n9="↻",r9="⩔",i9="∨",o9="⩝",s9="ℴ",l9="ℴ",a9="ª",c9="º",u9="⊶",f9="⩖",d9="⩗",h9="⩛",p9="Ⓢ",g9="𝒪",v9="ℴ",m9="Ø",y9="ø",b9="⊘",w9="Õ",x9="õ",S9="⨶",_9="⨷",k9="⊗",T9="Ö",C9="ö",E9="⌽",L9="‾",A9="⏞",M9="⎴",N9="⏜",$9="¶",P9="∥",O9="∥",R9="⫳",D9="⫽",z9="∂",I9="∂",F9="П",H9="п",q9="%",B9=".",W9="‰",U9="⊥",V9="‱",j9="𝔓",G9="𝔭",K9="Φ",X9="φ",Y9="ϕ",Z9="ℳ",J9="☎",Q9="Π",e7="π",t7="⋔",n7="ϖ",r7="ℏ",i7="ℎ",o7="ℏ",s7="⨣",l7="⊞",a7="⨢",c7="+",u7="∔",f7="⨥",d7="⩲",h7="±",p7="±",g7="⨦",v7="⨧",m7="±",y7="ℌ",b7="⨕",w7="𝕡",x7="ℙ",S7="£",_7="⪷",k7="⪻",T7="≺",C7="≼",E7="⪷",L7="≺",A7="≼",M7="≺",N7="⪯",$7="≼",P7="≾",O7="⪯",R7="⪹",D7="⪵",z7="⋨",I7="⪯",F7="⪳",H7="≾",q7="′",B7="″",W7="ℙ",U7="⪹",V7="⪵",j7="⋨",G7="∏",K7="∏",X7="⌮",Y7="⌒",Z7="⌓",J7="∝",Q7="∝",eK="∷",tK="∝",nK="≾",rK="⊰",iK="𝒫",oK="𝓅",sK="Ψ",lK="ψ",aK=" ",cK="𝔔",uK="𝔮",fK="⨌",dK="𝕢",hK="ℚ",pK="⁗",gK="𝒬",vK="𝓆",mK="ℍ",yK="⨖",bK="?",wK="≟",xK='"',SK='"',_K="⇛",kK="∽̱",TK="Ŕ",CK="ŕ",EK="√",LK="⦳",AK="⟩",MK="⟫",NK="⦒",$K="⦥",PK="⟩",OK="»",RK="⥵",DK="⇥",zK="⤠",IK="⤳",FK="→",HK="↠",qK="⇒",BK="⤞",WK="↪",UK="↬",VK="⥅",jK="⥴",GK="⤖",KK="↣",XK="↝",YK="⤚",ZK="⤜",JK="∶",QK="ℚ",eX="⤍",tX="⤏",nX="⤐",rX="❳",iX="}",oX="]",sX="⦌",lX="⦎",aX="⦐",cX="Ř",uX="ř",fX="Ŗ",dX="ŗ",hX="⌉",pX="}",gX="Р",vX="р",mX="⤷",yX="⥩",bX="”",wX="”",xX="↳",SX="ℜ",_X="ℛ",kX="ℜ",TX="ℝ",CX="ℜ",EX="▭",LX="®",AX="®",MX="∋",NX="⇋",$X="⥯",PX="⥽",OX="⌋",RX="𝔯",DX="ℜ",zX="⥤",IX="⇁",FX="⇀",HX="⥬",qX="Ρ",BX="ρ",WX="ϱ",UX="⟩",VX="⇥",jX="→",GX="→",KX="⇒",XX="⇄",YX="↣",ZX="⌉",JX="⟧",QX="⥝",eY="⥕",tY="⇂",nY="⌋",rY="⇁",iY="⇀",oY="⇄",sY="⇌",lY="⇉",aY="↝",cY="↦",uY="⊢",fY="⥛",dY="⋌",hY="⧐",pY="⊳",gY="⊵",vY="⥏",mY="⥜",yY="⥔",bY="↾",wY="⥓",xY="⇀",SY="˚",_Y="≓",kY="⇄",TY="⇌",CY="",EY="⎱",LY="⎱",AY="⫮",MY="⟭",NY="⇾",$Y="⟧",PY="⦆",OY="𝕣",RY="ℝ",DY="⨮",zY="⨵",IY="⥰",FY=")",HY="⦔",qY="⨒",BY="⇉",WY="⇛",UY="›",VY="𝓇",jY="ℛ",GY="↱",KY="↱",XY="]",YY="’",ZY="’",JY="⋌",QY="⋊",eZ="▹",tZ="⊵",nZ="▸",rZ="⧎",iZ="⧴",oZ="⥨",sZ="℞",lZ="Ś",aZ="ś",cZ="‚",uZ="⪸",fZ="Š",dZ="š",hZ="⪼",pZ="≻",gZ="≽",vZ="⪰",mZ="⪴",yZ="Ş",bZ="ş",wZ="Ŝ",xZ="ŝ",SZ="⪺",_Z="⪶",kZ="⋩",TZ="⨓",CZ="≿",EZ="С",LZ="с",AZ="⊡",MZ="⋅",NZ="⩦",$Z="⤥",PZ="↘",OZ="⇘",RZ="↘",DZ="§",zZ=";",IZ="⤩",FZ="∖",HZ="∖",qZ="✶",BZ="𝔖",WZ="𝔰",UZ="⌢",VZ="♯",jZ="Щ",GZ="щ",KZ="Ш",XZ="ш",YZ="↓",ZZ="←",JZ="∣",QZ="∥",eJ="→",tJ="↑",nJ="",rJ="Σ",iJ="σ",oJ="ς",sJ="ς",lJ="∼",aJ="⩪",cJ="≃",uJ="≃",fJ="⪞",dJ="⪠",hJ="⪝",pJ="⪟",gJ="≆",vJ="⨤",mJ="⥲",yJ="←",bJ="∘",wJ="∖",xJ="⨳",SJ="⧤",_J="∣",kJ="⌣",TJ="⪪",CJ="⪬",EJ="⪬︀",LJ="Ь",AJ="ь",MJ="⌿",NJ="⧄",$J="/",PJ="𝕊",OJ="𝕤",RJ="♠",DJ="♠",zJ="∥",IJ="⊓",FJ="⊓︀",HJ="⊔",qJ="⊔︀",BJ="√",WJ="⊏",UJ="⊑",VJ="⊏",jJ="⊑",GJ="⊐",KJ="⊒",XJ="⊐",YJ="⊒",ZJ="□",JJ="□",QJ="⊓",eQ="⊏",tQ="⊑",nQ="⊐",rQ="⊒",iQ="⊔",oQ="▪",sQ="□",lQ="▪",aQ="→",cQ="𝒮",uQ="𝓈",fQ="∖",dQ="⌣",hQ="⋆",pQ="⋆",gQ="☆",vQ="★",mQ="ϵ",yQ="ϕ",bQ="¯",wQ="⊂",xQ="⋐",SQ="⪽",_Q="⫅",kQ="⊆",TQ="⫃",CQ="⫁",EQ="⫋",LQ="⊊",AQ="⪿",MQ="⥹",NQ="⊂",$Q="⋐",PQ="⊆",OQ="⫅",RQ="⊆",DQ="⊊",zQ="⫋",IQ="⫇",FQ="⫕",HQ="⫓",qQ="⪸",BQ="≻",WQ="≽",UQ="≻",VQ="⪰",jQ="≽",GQ="≿",KQ="⪰",XQ="⪺",YQ="⪶",ZQ="⋩",JQ="≿",QQ="∋",eee="∑",tee="∑",nee="♪",ree="¹",iee="²",oee="³",see="⊃",lee="⋑",aee="⪾",cee="⫘",uee="⫆",fee="⊇",dee="⫄",hee="⊃",pee="⊇",gee="⟉",vee="⫗",mee="⥻",yee="⫂",bee="⫌",wee="⊋",xee="⫀",See="⊃",_ee="⋑",kee="⊇",Tee="⫆",Cee="⊋",Eee="⫌",Lee="⫈",Aee="⫔",Mee="⫖",Nee="⤦",$ee="↙",Pee="⇙",Oee="↙",Ree="⤪",Dee="ß",zee=" ",Iee="⌖",Fee="Τ",Hee="τ",qee="⎴",Bee="Ť",Wee="ť",Uee="Ţ",Vee="ţ",jee="Т",Gee="т",Kee="⃛",Xee="⌕",Yee="𝔗",Zee="𝔱",Jee="∴",Qee="∴",ete="∴",tte="Θ",nte="θ",rte="ϑ",ite="ϑ",ote="≈",ste="∼",lte=" ",ate=" ",cte=" ",ute="≈",fte="∼",dte="Þ",hte="þ",pte="˜",gte="∼",vte="≃",mte="≅",yte="≈",bte="⨱",wte="⊠",xte="×",Ste="⨰",_te="∭",kte="⤨",Tte="⌶",Cte="⫱",Ete="⊤",Lte="𝕋",Ate="𝕥",Mte="⫚",Nte="⤩",$te="‴",Pte="™",Ote="™",Rte="▵",Dte="▿",zte="◃",Ite="⊴",Fte="≜",Hte="▹",qte="⊵",Bte="◬",Wte="≜",Ute="⨺",Vte="⃛",jte="⨹",Gte="⧍",Kte="⨻",Xte="⏢",Yte="𝒯",Zte="𝓉",Jte="Ц",Qte="ц",ene="Ћ",tne="ћ",nne="Ŧ",rne="ŧ",ine="≬",one="↞",sne="↠",lne="Ú",ane="ú",cne="↑",une="↟",fne="⇑",dne="⥉",hne="Ў",pne="ў",gne="Ŭ",vne="ŭ",mne="Û",yne="û",bne="У",wne="у",xne="⇅",Sne="Ű",_ne="ű",kne="⥮",Tne="⥾",Cne="𝔘",Ene="𝔲",Lne="Ù",Ane="ù",Mne="⥣",Nne="↿",$ne="↾",Pne="▀",One="⌜",Rne="⌜",Dne="⌏",zne="◸",Ine="Ū",Fne="ū",Hne="¨",qne="_",Bne="⏟",Wne="⎵",Une="⏝",Vne="⋃",jne="⊎",Gne="Ų",Kne="ų",Xne="𝕌",Yne="𝕦",Zne="⤒",Jne="↑",Qne="↑",ere="⇑",tre="⇅",nre="↕",rre="↕",ire="⇕",ore="⥮",sre="↿",lre="↾",are="⊎",cre="↖",ure="↗",fre="υ",dre="ϒ",hre="ϒ",pre="Υ",gre="υ",vre="↥",mre="⊥",yre="⇈",bre="⌝",wre="⌝",xre="⌎",Sre="Ů",_re="ů",kre="◹",Tre="𝒰",Cre="𝓊",Ere="⋰",Lre="Ũ",Are="ũ",Mre="▵",Nre="▴",$re="⇈",Pre="Ü",Ore="ü",Rre="⦧",Dre="⦜",zre="ϵ",Ire="ϰ",Fre="∅",Hre="ϕ",qre="ϖ",Bre="∝",Wre="↕",Ure="⇕",Vre="ϱ",jre="ς",Gre="⊊︀",Kre="⫋︀",Xre="⊋︀",Yre="⫌︀",Zre="ϑ",Jre="⊲",Qre="⊳",eie="⫨",tie="⫫",nie="⫩",rie="В",iie="в",oie="⊢",sie="⊨",lie="⊩",aie="⊫",cie="⫦",uie="⊻",fie="∨",die="⋁",hie="≚",pie="⋮",gie="|",vie="‖",mie="|",yie="‖",bie="∣",wie="|",xie="❘",Sie="≀",_ie=" ",kie="𝔙",Tie="𝔳",Cie="⊲",Eie="⊂⃒",Lie="⊃⃒",Aie="𝕍",Mie="𝕧",Nie="∝",$ie="⊳",Pie="𝒱",Oie="𝓋",Rie="⫋︀",Die="⊊︀",zie="⫌︀",Iie="⊋︀",Fie="⊪",Hie="⦚",qie="Ŵ",Bie="ŵ",Wie="⩟",Uie="∧",Vie="⋀",jie="≙",Gie="℘",Kie="𝔚",Xie="𝔴",Yie="𝕎",Zie="𝕨",Jie="℘",Qie="≀",eoe="≀",toe="𝒲",noe="𝓌",roe="⋂",ioe="◯",ooe="⋃",soe="▽",loe="𝔛",aoe="𝔵",coe="⟷",uoe="⟺",foe="Ξ",doe="ξ",hoe="⟵",poe="⟸",goe="⟼",voe="⋻",moe="⨀",yoe="𝕏",boe="𝕩",woe="⨁",xoe="⨂",Soe="⟶",_oe="⟹",koe="𝒳",Toe="𝓍",Coe="⨆",Eoe="⨄",Loe="△",Aoe="⋁",Moe="⋀",Noe="Ý",$oe="ý",Poe="Я",Ooe="я",Roe="Ŷ",Doe="ŷ",zoe="Ы",Ioe="ы",Foe="¥",Hoe="𝔜",qoe="𝔶",Boe="Ї",Woe="ї",Uoe="𝕐",Voe="𝕪",joe="𝒴",Goe="𝓎",Koe="Ю",Xoe="ю",Yoe="ÿ",Zoe="Ÿ",Joe="Ź",Qoe="ź",ese="Ž",tse="ž",nse="З",rse="з",ise="Ż",ose="ż",sse="ℨ",lse="",ase="Ζ",cse="ζ",use="𝔷",fse="ℨ",dse="Ж",hse="ж",pse="⇝",gse="𝕫",vse="ℤ",mse="𝒵",yse="𝓏",bse="",wse="",vw={Aacute:iA,aacute:oA,Abreve:sA,abreve:lA,ac:aA,acd:cA,acE:uA,Acirc:fA,acirc:dA,acute:hA,Acy:pA,acy:gA,AElig:vA,aelig:mA,af:yA,Afr:bA,afr:wA,Agrave:xA,agrave:SA,alefsym:_A,aleph:kA,Alpha:TA,alpha:CA,Amacr:EA,amacr:LA,amalg:AA,amp:MA,AMP:NA,andand:$A,And:PA,and:OA,andd:RA,andslope:DA,andv:zA,ang:IA,ange:FA,angle:HA,angmsdaa:qA,angmsdab:BA,angmsdac:WA,angmsdad:UA,angmsdae:VA,angmsdaf:jA,angmsdag:GA,angmsdah:KA,angmsd:XA,angrt:YA,angrtvb:ZA,angrtvbd:JA,angsph:QA,angst:eM,angzarr:tM,Aogon:nM,aogon:rM,Aopf:iM,aopf:oM,apacir:sM,ap:lM,apE:aM,ape:cM,apid:uM,apos:fM,ApplyFunction:dM,approx:hM,approxeq:pM,Aring:gM,aring:vM,Ascr:mM,ascr:yM,Assign:bM,ast:wM,asymp:xM,asympeq:SM,Atilde:_M,atilde:kM,Auml:TM,auml:CM,awconint:EM,awint:LM,backcong:AM,backepsilon:MM,backprime:NM,backsim:$M,backsimeq:PM,Backslash:OM,Barv:RM,barvee:DM,barwed:zM,Barwed:IM,barwedge:FM,bbrk:HM,bbrktbrk:qM,bcong:BM,Bcy:WM,bcy:UM,bdquo:VM,becaus:jM,because:GM,Because:KM,bemptyv:XM,bepsi:YM,bernou:ZM,Bernoullis:JM,Beta:QM,beta:eN,beth:tN,between:nN,Bfr:rN,bfr:iN,bigcap:oN,bigcirc:sN,bigcup:lN,bigodot:aN,bigoplus:cN,bigotimes:uN,bigsqcup:fN,bigstar:dN,bigtriangledown:hN,bigtriangleup:pN,biguplus:gN,bigvee:vN,bigwedge:mN,bkarow:yN,blacklozenge:bN,blacksquare:wN,blacktriangle:xN,blacktriangledown:SN,blacktriangleleft:_N,blacktriangleright:kN,blank:TN,blk12:CN,blk14:EN,blk34:LN,block:AN,bne:MN,bnequiv:NN,bNot:$N,bnot:PN,Bopf:ON,bopf:RN,bot:DN,bottom:zN,bowtie:IN,boxbox:FN,boxdl:HN,boxdL:qN,boxDl:BN,boxDL:WN,boxdr:UN,boxdR:VN,boxDr:jN,boxDR:GN,boxh:KN,boxH:XN,boxhd:YN,boxHd:ZN,boxhD:JN,boxHD:QN,boxhu:e$,boxHu:t$,boxhU:n$,boxHU:r$,boxminus:i$,boxplus:o$,boxtimes:s$,boxul:l$,boxuL:a$,boxUl:c$,boxUL:u$,boxur:f$,boxuR:d$,boxUr:h$,boxUR:p$,boxv:g$,boxV:v$,boxvh:m$,boxvH:y$,boxVh:b$,boxVH:w$,boxvl:x$,boxvL:S$,boxVl:_$,boxVL:k$,boxvr:T$,boxvR:C$,boxVr:E$,boxVR:L$,bprime:A$,breve:M$,Breve:N$,brvbar:$$,bscr:P$,Bscr:O$,bsemi:R$,bsim:D$,bsime:z$,bsolb:I$,bsol:F$,bsolhsub:H$,bull:q$,bullet:B$,bump:W$,bumpE:U$,bumpe:V$,Bumpeq:j$,bumpeq:G$,Cacute:K$,cacute:X$,capand:Y$,capbrcup:Z$,capcap:J$,cap:Q$,Cap:eP,capcup:tP,capdot:nP,CapitalDifferentialD:rP,caps:iP,caret:oP,caron:sP,Cayleys:lP,ccaps:aP,Ccaron:cP,ccaron:uP,Ccedil:fP,ccedil:dP,Ccirc:hP,ccirc:pP,Cconint:gP,ccups:vP,ccupssm:mP,Cdot:yP,cdot:bP,cedil:wP,Cedilla:xP,cemptyv:SP,cent:_P,centerdot:kP,CenterDot:TP,cfr:CP,Cfr:EP,CHcy:LP,chcy:AP,check:MP,checkmark:NP,Chi:$P,chi:PP,circ:OP,circeq:RP,circlearrowleft:DP,circlearrowright:zP,circledast:IP,circledcirc:FP,circleddash:HP,CircleDot:qP,circledR:BP,circledS:WP,CircleMinus:UP,CirclePlus:VP,CircleTimes:jP,cir:GP,cirE:KP,cire:XP,cirfnint:YP,cirmid:ZP,cirscir:JP,ClockwiseContourIntegral:QP,CloseCurlyDoubleQuote:eO,CloseCurlyQuote:tO,clubs:nO,clubsuit:rO,colon:iO,Colon:oO,Colone:sO,colone:lO,coloneq:aO,comma:cO,commat:uO,comp:fO,compfn:dO,complement:hO,complexes:pO,cong:gO,congdot:vO,Congruent:mO,conint:yO,Conint:bO,ContourIntegral:wO,copf:xO,Copf:SO,coprod:_O,Coproduct:kO,copy:TO,COPY:CO,copysr:EO,CounterClockwiseContourIntegral:LO,crarr:AO,cross:MO,Cross:NO,Cscr:$O,cscr:PO,csub:OO,csube:RO,csup:DO,csupe:zO,ctdot:IO,cudarrl:FO,cudarrr:HO,cuepr:qO,cuesc:BO,cularr:WO,cularrp:UO,cupbrcap:VO,cupcap:jO,CupCap:GO,cup:KO,Cup:XO,cupcup:YO,cupdot:ZO,cupor:JO,cups:QO,curarr:eR,curarrm:tR,curlyeqprec:nR,curlyeqsucc:rR,curlyvee:iR,curlywedge:oR,curren:sR,curvearrowleft:lR,curvearrowright:aR,cuvee:cR,cuwed:uR,cwconint:fR,cwint:dR,cylcty:hR,dagger:pR,Dagger:gR,daleth:vR,darr:mR,Darr:yR,dArr:bR,dash:wR,Dashv:xR,dashv:SR,dbkarow:_R,dblac:kR,Dcaron:TR,dcaron:CR,Dcy:ER,dcy:LR,ddagger:AR,ddarr:MR,DD:NR,dd:$R,DDotrahd:PR,ddotseq:OR,deg:RR,Del:DR,Delta:zR,delta:IR,demptyv:FR,dfisht:HR,Dfr:qR,dfr:BR,dHar:WR,dharl:UR,dharr:VR,DiacriticalAcute:jR,DiacriticalDot:GR,DiacriticalDoubleAcute:KR,DiacriticalGrave:XR,DiacriticalTilde:YR,diam:ZR,diamond:JR,Diamond:QR,diamondsuit:eD,diams:tD,die:nD,DifferentialD:rD,digamma:iD,disin:oD,div:sD,divide:lD,divideontimes:aD,divonx:cD,DJcy:uD,djcy:fD,dlcorn:dD,dlcrop:hD,dollar:pD,Dopf:gD,dopf:vD,Dot:mD,dot:yD,DotDot:bD,doteq:wD,doteqdot:xD,DotEqual:SD,dotminus:_D,dotplus:kD,dotsquare:TD,doublebarwedge:CD,DoubleContourIntegral:ED,DoubleDot:LD,DoubleDownArrow:AD,DoubleLeftArrow:MD,DoubleLeftRightArrow:ND,DoubleLeftTee:$D,DoubleLongLeftArrow:PD,DoubleLongLeftRightArrow:OD,DoubleLongRightArrow:RD,DoubleRightArrow:DD,DoubleRightTee:zD,DoubleUpArrow:ID,DoubleUpDownArrow:FD,DoubleVerticalBar:HD,DownArrowBar:qD,downarrow:BD,DownArrow:WD,Downarrow:UD,DownArrowUpArrow:VD,DownBreve:jD,downdownarrows:GD,downharpoonleft:KD,downharpoonright:XD,DownLeftRightVector:YD,DownLeftTeeVector:ZD,DownLeftVectorBar:JD,DownLeftVector:QD,DownRightTeeVector:ez,DownRightVectorBar:tz,DownRightVector:nz,DownTeeArrow:rz,DownTee:iz,drbkarow:oz,drcorn:sz,drcrop:lz,Dscr:az,dscr:cz,DScy:uz,dscy:fz,dsol:dz,Dstrok:hz,dstrok:pz,dtdot:gz,dtri:vz,dtrif:mz,duarr:yz,duhar:bz,dwangle:wz,DZcy:xz,dzcy:Sz,dzigrarr:_z,Eacute:kz,eacute:Tz,easter:Cz,Ecaron:Ez,ecaron:Lz,Ecirc:Az,ecirc:Mz,ecir:Nz,ecolon:$z,Ecy:Pz,ecy:Oz,eDDot:Rz,Edot:Dz,edot:zz,eDot:Iz,ee:Fz,efDot:Hz,Efr:qz,efr:Bz,eg:Wz,Egrave:Uz,egrave:Vz,egs:jz,egsdot:Gz,el:Kz,Element:Xz,elinters:Yz,ell:Zz,els:Jz,elsdot:Qz,Emacr:e2,emacr:t2,empty:n2,emptyset:r2,EmptySmallSquare:i2,emptyv:o2,EmptyVerySmallSquare:s2,emsp13:l2,emsp14:a2,emsp:c2,ENG:u2,eng:f2,ensp:d2,Eogon:h2,eogon:p2,Eopf:g2,eopf:v2,epar:m2,eparsl:y2,eplus:b2,epsi:w2,Epsilon:x2,epsilon:S2,epsiv:_2,eqcirc:k2,eqcolon:T2,eqsim:C2,eqslantgtr:E2,eqslantless:L2,Equal:A2,equals:M2,EqualTilde:N2,equest:$2,Equilibrium:P2,equiv:O2,equivDD:R2,eqvparsl:D2,erarr:z2,erDot:I2,escr:F2,Escr:H2,esdot:q2,Esim:B2,esim:W2,Eta:U2,eta:V2,ETH:j2,eth:G2,Euml:K2,euml:X2,euro:Y2,excl:Z2,exist:J2,Exists:Q2,expectation:eI,exponentiale:tI,ExponentialE:nI,fallingdotseq:rI,Fcy:iI,fcy:oI,female:sI,ffilig:lI,fflig:aI,ffllig:cI,Ffr:uI,ffr:fI,filig:dI,FilledSmallSquare:hI,FilledVerySmallSquare:pI,fjlig:gI,flat:vI,fllig:mI,fltns:yI,fnof:bI,Fopf:wI,fopf:xI,forall:SI,ForAll:_I,fork:kI,forkv:TI,Fouriertrf:CI,fpartint:EI,frac12:LI,frac13:AI,frac14:MI,frac15:NI,frac16:$I,frac18:PI,frac23:OI,frac25:RI,frac34:DI,frac35:zI,frac38:II,frac45:FI,frac56:HI,frac58:qI,frac78:BI,frasl:WI,frown:UI,fscr:VI,Fscr:jI,gacute:GI,Gamma:KI,gamma:XI,Gammad:YI,gammad:ZI,gap:JI,Gbreve:QI,gbreve:eF,Gcedil:tF,Gcirc:nF,gcirc:rF,Gcy:iF,gcy:oF,Gdot:sF,gdot:lF,ge:aF,gE:cF,gEl:uF,gel:fF,geq:dF,geqq:hF,geqslant:pF,gescc:gF,ges:vF,gesdot:mF,gesdoto:yF,gesdotol:bF,gesl:wF,gesles:xF,Gfr:SF,gfr:_F,gg:kF,Gg:TF,ggg:CF,gimel:EF,GJcy:LF,gjcy:AF,gla:MF,gl:NF,glE:$F,glj:PF,gnap:OF,gnapprox:RF,gne:DF,gnE:zF,gneq:IF,gneqq:FF,gnsim:HF,Gopf:qF,gopf:BF,grave:WF,GreaterEqual:UF,GreaterEqualLess:VF,GreaterFullEqual:jF,GreaterGreater:GF,GreaterLess:KF,GreaterSlantEqual:XF,GreaterTilde:YF,Gscr:ZF,gscr:JF,gsim:QF,gsime:eH,gsiml:tH,gtcc:nH,gtcir:rH,gt:iH,GT:oH,Gt:sH,gtdot:lH,gtlPar:aH,gtquest:cH,gtrapprox:uH,gtrarr:fH,gtrdot:dH,gtreqless:hH,gtreqqless:pH,gtrless:gH,gtrsim:vH,gvertneqq:mH,gvnE:yH,Hacek:bH,hairsp:wH,half:xH,hamilt:SH,HARDcy:_H,hardcy:kH,harrcir:TH,harr:CH,hArr:EH,harrw:LH,Hat:AH,hbar:MH,Hcirc:NH,hcirc:$H,hearts:PH,heartsuit:OH,hellip:RH,hercon:DH,hfr:zH,Hfr:IH,HilbertSpace:FH,hksearow:HH,hkswarow:qH,hoarr:BH,homtht:WH,hookleftarrow:UH,hookrightarrow:VH,hopf:jH,Hopf:GH,horbar:KH,HorizontalLine:XH,hscr:YH,Hscr:ZH,hslash:JH,Hstrok:QH,hstrok:eq,HumpDownHump:tq,HumpEqual:nq,hybull:rq,hyphen:iq,Iacute:oq,iacute:sq,ic:lq,Icirc:aq,icirc:cq,Icy:uq,icy:fq,Idot:dq,IEcy:hq,iecy:pq,iexcl:gq,iff:vq,ifr:mq,Ifr:yq,Igrave:bq,igrave:wq,ii:xq,iiiint:Sq,iiint:_q,iinfin:kq,iiota:Tq,IJlig:Cq,ijlig:Eq,Imacr:Lq,imacr:Aq,image:Mq,ImaginaryI:Nq,imagline:$q,imagpart:Pq,imath:Oq,Im:Rq,imof:Dq,imped:zq,Implies:Iq,incare:Fq,in:"∈",infin:Hq,infintie:qq,inodot:Bq,intcal:Wq,int:Uq,Int:Vq,integers:jq,Integral:Gq,intercal:Kq,Intersection:Xq,intlarhk:Yq,intprod:Zq,InvisibleComma:Jq,InvisibleTimes:Qq,IOcy:eB,iocy:tB,Iogon:nB,iogon:rB,Iopf:iB,iopf:oB,Iota:sB,iota:lB,iprod:aB,iquest:cB,iscr:uB,Iscr:fB,isin:dB,isindot:hB,isinE:pB,isins:gB,isinsv:vB,isinv:mB,it:yB,Itilde:bB,itilde:wB,Iukcy:xB,iukcy:SB,Iuml:_B,iuml:kB,Jcirc:TB,jcirc:CB,Jcy:EB,jcy:LB,Jfr:AB,jfr:MB,jmath:NB,Jopf:$B,jopf:PB,Jscr:OB,jscr:RB,Jsercy:DB,jsercy:zB,Jukcy:IB,jukcy:FB,Kappa:HB,kappa:qB,kappav:BB,Kcedil:WB,kcedil:UB,Kcy:VB,kcy:jB,Kfr:GB,kfr:KB,kgreen:XB,KHcy:YB,khcy:ZB,KJcy:JB,kjcy:QB,Kopf:e3,kopf:t3,Kscr:n3,kscr:r3,lAarr:i3,Lacute:o3,lacute:s3,laemptyv:l3,lagran:a3,Lambda:c3,lambda:u3,lang:f3,Lang:d3,langd:h3,langle:p3,lap:g3,Laplacetrf:v3,laquo:m3,larrb:y3,larrbfs:b3,larr:w3,Larr:x3,lArr:S3,larrfs:_3,larrhk:k3,larrlp:T3,larrpl:C3,larrsim:E3,larrtl:L3,latail:A3,lAtail:M3,lat:N3,late:$3,lates:P3,lbarr:O3,lBarr:R3,lbbrk:D3,lbrace:z3,lbrack:I3,lbrke:F3,lbrksld:H3,lbrkslu:q3,Lcaron:B3,lcaron:W3,Lcedil:U3,lcedil:V3,lceil:j3,lcub:G3,Lcy:K3,lcy:X3,ldca:Y3,ldquo:Z3,ldquor:J3,ldrdhar:Q3,ldrushar:e5,ldsh:t5,le:n5,lE:r5,LeftAngleBracket:i5,LeftArrowBar:o5,leftarrow:s5,LeftArrow:l5,Leftarrow:a5,LeftArrowRightArrow:c5,leftarrowtail:u5,LeftCeiling:f5,LeftDoubleBracket:d5,LeftDownTeeVector:h5,LeftDownVectorBar:p5,LeftDownVector:g5,LeftFloor:v5,leftharpoondown:m5,leftharpoonup:y5,leftleftarrows:b5,leftrightarrow:w5,LeftRightArrow:x5,Leftrightarrow:S5,leftrightarrows:_5,leftrightharpoons:k5,leftrightsquigarrow:T5,LeftRightVector:C5,LeftTeeArrow:E5,LeftTee:L5,LeftTeeVector:A5,leftthreetimes:M5,LeftTriangleBar:N5,LeftTriangle:$5,LeftTriangleEqual:P5,LeftUpDownVector:O5,LeftUpTeeVector:R5,LeftUpVectorBar:D5,LeftUpVector:z5,LeftVectorBar:I5,LeftVector:F5,lEg:H5,leg:q5,leq:B5,leqq:W5,leqslant:U5,lescc:V5,les:j5,lesdot:G5,lesdoto:K5,lesdotor:X5,lesg:Y5,lesges:Z5,lessapprox:J5,lessdot:Q5,lesseqgtr:e8,lesseqqgtr:t8,LessEqualGreater:n8,LessFullEqual:r8,LessGreater:i8,lessgtr:o8,LessLess:s8,lesssim:l8,LessSlantEqual:a8,LessTilde:c8,lfisht:u8,lfloor:f8,Lfr:d8,lfr:h8,lg:p8,lgE:g8,lHar:v8,lhard:m8,lharu:y8,lharul:b8,lhblk:w8,LJcy:x8,ljcy:S8,llarr:_8,ll:k8,Ll:T8,llcorner:C8,Lleftarrow:E8,llhard:L8,lltri:A8,Lmidot:M8,lmidot:N8,lmoustache:$8,lmoust:P8,lnap:O8,lnapprox:R8,lne:D8,lnE:z8,lneq:I8,lneqq:F8,lnsim:H8,loang:q8,loarr:B8,lobrk:W8,longleftarrow:U8,LongLeftArrow:V8,Longleftarrow:j8,longleftrightarrow:G8,LongLeftRightArrow:K8,Longleftrightarrow:X8,longmapsto:Y8,longrightarrow:Z8,LongRightArrow:J8,Longrightarrow:Q8,looparrowleft:e4,looparrowright:t4,lopar:n4,Lopf:r4,lopf:i4,loplus:o4,lotimes:s4,lowast:l4,lowbar:a4,LowerLeftArrow:c4,LowerRightArrow:u4,loz:f4,lozenge:d4,lozf:h4,lpar:p4,lparlt:g4,lrarr:v4,lrcorner:m4,lrhar:y4,lrhard:b4,lrm:w4,lrtri:x4,lsaquo:S4,lscr:_4,Lscr:k4,lsh:T4,Lsh:C4,lsim:E4,lsime:L4,lsimg:A4,lsqb:M4,lsquo:N4,lsquor:$4,Lstrok:P4,lstrok:O4,ltcc:R4,ltcir:D4,lt:z4,LT:I4,Lt:F4,ltdot:H4,lthree:q4,ltimes:B4,ltlarr:W4,ltquest:U4,ltri:V4,ltrie:j4,ltrif:G4,ltrPar:K4,lurdshar:X4,luruhar:Y4,lvertneqq:Z4,lvnE:J4,macr:Q4,male:eW,malt:tW,maltese:nW,Map:"⤅",map:rW,mapsto:iW,mapstodown:oW,mapstoleft:sW,mapstoup:lW,marker:aW,mcomma:cW,Mcy:uW,mcy:fW,mdash:dW,mDDot:hW,measuredangle:pW,MediumSpace:gW,Mellintrf:vW,Mfr:mW,mfr:yW,mho:bW,micro:wW,midast:xW,midcir:SW,mid:_W,middot:kW,minusb:TW,minus:CW,minusd:EW,minusdu:LW,MinusPlus:AW,mlcp:MW,mldr:NW,mnplus:$W,models:PW,Mopf:OW,mopf:RW,mp:DW,mscr:zW,Mscr:IW,mstpos:FW,Mu:HW,mu:qW,multimap:BW,mumap:WW,nabla:UW,Nacute:VW,nacute:jW,nang:GW,nap:KW,napE:XW,napid:YW,napos:ZW,napprox:JW,natural:QW,naturals:eU,natur:tU,nbsp:nU,nbump:rU,nbumpe:iU,ncap:oU,Ncaron:sU,ncaron:lU,Ncedil:aU,ncedil:cU,ncong:uU,ncongdot:fU,ncup:dU,Ncy:hU,ncy:pU,ndash:gU,nearhk:vU,nearr:mU,neArr:yU,nearrow:bU,ne:wU,nedot:xU,NegativeMediumSpace:SU,NegativeThickSpace:_U,NegativeThinSpace:kU,NegativeVeryThinSpace:TU,nequiv:CU,nesear:EU,nesim:LU,NestedGreaterGreater:AU,NestedLessLess:MU,NewLine:NU,nexist:$U,nexists:PU,Nfr:OU,nfr:RU,ngE:DU,nge:zU,ngeq:IU,ngeqq:FU,ngeqslant:HU,nges:qU,nGg:BU,ngsim:WU,nGt:UU,ngt:VU,ngtr:jU,nGtv:GU,nharr:KU,nhArr:XU,nhpar:YU,ni:ZU,nis:JU,nisd:QU,niv:e6,NJcy:t6,njcy:n6,nlarr:r6,nlArr:i6,nldr:o6,nlE:s6,nle:l6,nleftarrow:a6,nLeftarrow:c6,nleftrightarrow:u6,nLeftrightarrow:f6,nleq:d6,nleqq:h6,nleqslant:p6,nles:g6,nless:v6,nLl:m6,nlsim:y6,nLt:b6,nlt:w6,nltri:x6,nltrie:S6,nLtv:_6,nmid:k6,NoBreak:T6,NonBreakingSpace:C6,nopf:E6,Nopf:L6,Not:A6,not:M6,NotCongruent:N6,NotCupCap:$6,NotDoubleVerticalBar:P6,NotElement:O6,NotEqual:R6,NotEqualTilde:D6,NotExists:z6,NotGreater:I6,NotGreaterEqual:F6,NotGreaterFullEqual:H6,NotGreaterGreater:q6,NotGreaterLess:B6,NotGreaterSlantEqual:W6,NotGreaterTilde:U6,NotHumpDownHump:V6,NotHumpEqual:j6,notin:G6,notindot:K6,notinE:X6,notinva:Y6,notinvb:Z6,notinvc:J6,NotLeftTriangleBar:Q6,NotLeftTriangle:eV,NotLeftTriangleEqual:tV,NotLess:nV,NotLessEqual:rV,NotLessGreater:iV,NotLessLess:oV,NotLessSlantEqual:sV,NotLessTilde:lV,NotNestedGreaterGreater:aV,NotNestedLessLess:cV,notni:uV,notniva:fV,notnivb:dV,notnivc:hV,NotPrecedes:pV,NotPrecedesEqual:gV,NotPrecedesSlantEqual:vV,NotReverseElement:mV,NotRightTriangleBar:yV,NotRightTriangle:bV,NotRightTriangleEqual:wV,NotSquareSubset:xV,NotSquareSubsetEqual:SV,NotSquareSuperset:_V,NotSquareSupersetEqual:kV,NotSubset:TV,NotSubsetEqual:CV,NotSucceeds:EV,NotSucceedsEqual:LV,NotSucceedsSlantEqual:AV,NotSucceedsTilde:MV,NotSuperset:NV,NotSupersetEqual:$V,NotTilde:PV,NotTildeEqual:OV,NotTildeFullEqual:RV,NotTildeTilde:DV,NotVerticalBar:zV,nparallel:IV,npar:FV,nparsl:HV,npart:qV,npolint:BV,npr:WV,nprcue:UV,nprec:VV,npreceq:jV,npre:GV,nrarrc:KV,nrarr:XV,nrArr:YV,nrarrw:ZV,nrightarrow:JV,nRightarrow:QV,nrtri:ej,nrtrie:tj,nsc:nj,nsccue:rj,nsce:ij,Nscr:oj,nscr:sj,nshortmid:lj,nshortparallel:aj,nsim:cj,nsime:uj,nsimeq:fj,nsmid:dj,nspar:hj,nsqsube:pj,nsqsupe:gj,nsub:vj,nsubE:mj,nsube:yj,nsubset:bj,nsubseteq:wj,nsubseteqq:xj,nsucc:Sj,nsucceq:_j,nsup:kj,nsupE:Tj,nsupe:Cj,nsupset:Ej,nsupseteq:Lj,nsupseteqq:Aj,ntgl:Mj,Ntilde:Nj,ntilde:$j,ntlg:Pj,ntriangleleft:Oj,ntrianglelefteq:Rj,ntriangleright:Dj,ntrianglerighteq:zj,Nu:Ij,nu:Fj,num:Hj,numero:qj,numsp:Bj,nvap:Wj,nvdash:Uj,nvDash:Vj,nVdash:jj,nVDash:Gj,nvge:Kj,nvgt:Xj,nvHarr:Yj,nvinfin:Zj,nvlArr:Jj,nvle:Qj,nvlt:eG,nvltrie:tG,nvrArr:nG,nvrtrie:rG,nvsim:iG,nwarhk:oG,nwarr:sG,nwArr:lG,nwarrow:aG,nwnear:cG,Oacute:uG,oacute:fG,oast:dG,Ocirc:hG,ocirc:pG,ocir:gG,Ocy:vG,ocy:mG,odash:yG,Odblac:bG,odblac:wG,odiv:xG,odot:SG,odsold:_G,OElig:kG,oelig:TG,ofcir:CG,Ofr:EG,ofr:LG,ogon:AG,Ograve:MG,ograve:NG,ogt:$G,ohbar:PG,ohm:OG,oint:RG,olarr:DG,olcir:zG,olcross:IG,oline:FG,olt:HG,Omacr:qG,omacr:BG,Omega:WG,omega:UG,Omicron:VG,omicron:jG,omid:GG,ominus:KG,Oopf:XG,oopf:YG,opar:ZG,OpenCurlyDoubleQuote:JG,OpenCurlyQuote:QG,operp:e9,oplus:t9,orarr:n9,Or:r9,or:i9,ord:o9,order:s9,orderof:l9,ordf:a9,ordm:c9,origof:u9,oror:f9,orslope:d9,orv:h9,oS:p9,Oscr:g9,oscr:v9,Oslash:m9,oslash:y9,osol:b9,Otilde:w9,otilde:x9,otimesas:S9,Otimes:_9,otimes:k9,Ouml:T9,ouml:C9,ovbar:E9,OverBar:L9,OverBrace:A9,OverBracket:M9,OverParenthesis:N9,para:$9,parallel:P9,par:O9,parsim:R9,parsl:D9,part:z9,PartialD:I9,Pcy:F9,pcy:H9,percnt:q9,period:B9,permil:W9,perp:U9,pertenk:V9,Pfr:j9,pfr:G9,Phi:K9,phi:X9,phiv:Y9,phmmat:Z9,phone:J9,Pi:Q9,pi:e7,pitchfork:t7,piv:n7,planck:r7,planckh:i7,plankv:o7,plusacir:s7,plusb:l7,pluscir:a7,plus:c7,plusdo:u7,plusdu:f7,pluse:d7,PlusMinus:h7,plusmn:p7,plussim:g7,plustwo:v7,pm:m7,Poincareplane:y7,pointint:b7,popf:w7,Popf:x7,pound:S7,prap:_7,Pr:k7,pr:T7,prcue:C7,precapprox:E7,prec:L7,preccurlyeq:A7,Precedes:M7,PrecedesEqual:N7,PrecedesSlantEqual:$7,PrecedesTilde:P7,preceq:O7,precnapprox:R7,precneqq:D7,precnsim:z7,pre:I7,prE:F7,precsim:H7,prime:q7,Prime:B7,primes:W7,prnap:U7,prnE:V7,prnsim:j7,prod:G7,Product:K7,profalar:X7,profline:Y7,profsurf:Z7,prop:J7,Proportional:Q7,Proportion:eK,propto:tK,prsim:nK,prurel:rK,Pscr:iK,pscr:oK,Psi:sK,psi:lK,puncsp:aK,Qfr:cK,qfr:uK,qint:fK,qopf:dK,Qopf:hK,qprime:pK,Qscr:gK,qscr:vK,quaternions:mK,quatint:yK,quest:bK,questeq:wK,quot:xK,QUOT:SK,rAarr:_K,race:kK,Racute:TK,racute:CK,radic:EK,raemptyv:LK,rang:AK,Rang:MK,rangd:NK,range:$K,rangle:PK,raquo:OK,rarrap:RK,rarrb:DK,rarrbfs:zK,rarrc:IK,rarr:FK,Rarr:HK,rArr:qK,rarrfs:BK,rarrhk:WK,rarrlp:UK,rarrpl:VK,rarrsim:jK,Rarrtl:GK,rarrtl:KK,rarrw:XK,ratail:YK,rAtail:ZK,ratio:JK,rationals:QK,rbarr:eX,rBarr:tX,RBarr:nX,rbbrk:rX,rbrace:iX,rbrack:oX,rbrke:sX,rbrksld:lX,rbrkslu:aX,Rcaron:cX,rcaron:uX,Rcedil:fX,rcedil:dX,rceil:hX,rcub:pX,Rcy:gX,rcy:vX,rdca:mX,rdldhar:yX,rdquo:bX,rdquor:wX,rdsh:xX,real:SX,realine:_X,realpart:kX,reals:TX,Re:CX,rect:EX,reg:LX,REG:AX,ReverseElement:MX,ReverseEquilibrium:NX,ReverseUpEquilibrium:$X,rfisht:PX,rfloor:OX,rfr:RX,Rfr:DX,rHar:zX,rhard:IX,rharu:FX,rharul:HX,Rho:qX,rho:BX,rhov:WX,RightAngleBracket:UX,RightArrowBar:VX,rightarrow:jX,RightArrow:GX,Rightarrow:KX,RightArrowLeftArrow:XX,rightarrowtail:YX,RightCeiling:ZX,RightDoubleBracket:JX,RightDownTeeVector:QX,RightDownVectorBar:eY,RightDownVector:tY,RightFloor:nY,rightharpoondown:rY,rightharpoonup:iY,rightleftarrows:oY,rightleftharpoons:sY,rightrightarrows:lY,rightsquigarrow:aY,RightTeeArrow:cY,RightTee:uY,RightTeeVector:fY,rightthreetimes:dY,RightTriangleBar:hY,RightTriangle:pY,RightTriangleEqual:gY,RightUpDownVector:vY,RightUpTeeVector:mY,RightUpVectorBar:yY,RightUpVector:bY,RightVectorBar:wY,RightVector:xY,ring:SY,risingdotseq:_Y,rlarr:kY,rlhar:TY,rlm:CY,rmoustache:EY,rmoust:LY,rnmid:AY,roang:MY,roarr:NY,robrk:$Y,ropar:PY,ropf:OY,Ropf:RY,roplus:DY,rotimes:zY,RoundImplies:IY,rpar:FY,rpargt:HY,rppolint:qY,rrarr:BY,Rrightarrow:WY,rsaquo:UY,rscr:VY,Rscr:jY,rsh:GY,Rsh:KY,rsqb:XY,rsquo:YY,rsquor:ZY,rthree:JY,rtimes:QY,rtri:eZ,rtrie:tZ,rtrif:nZ,rtriltri:rZ,RuleDelayed:iZ,ruluhar:oZ,rx:sZ,Sacute:lZ,sacute:aZ,sbquo:cZ,scap:uZ,Scaron:fZ,scaron:dZ,Sc:hZ,sc:pZ,sccue:gZ,sce:vZ,scE:mZ,Scedil:yZ,scedil:bZ,Scirc:wZ,scirc:xZ,scnap:SZ,scnE:_Z,scnsim:kZ,scpolint:TZ,scsim:CZ,Scy:EZ,scy:LZ,sdotb:AZ,sdot:MZ,sdote:NZ,searhk:$Z,searr:PZ,seArr:OZ,searrow:RZ,sect:DZ,semi:zZ,seswar:IZ,setminus:FZ,setmn:HZ,sext:qZ,Sfr:BZ,sfr:WZ,sfrown:UZ,sharp:VZ,SHCHcy:jZ,shchcy:GZ,SHcy:KZ,shcy:XZ,ShortDownArrow:YZ,ShortLeftArrow:ZZ,shortmid:JZ,shortparallel:QZ,ShortRightArrow:eJ,ShortUpArrow:tJ,shy:nJ,Sigma:rJ,sigma:iJ,sigmaf:oJ,sigmav:sJ,sim:lJ,simdot:aJ,sime:cJ,simeq:uJ,simg:fJ,simgE:dJ,siml:hJ,simlE:pJ,simne:gJ,simplus:vJ,simrarr:mJ,slarr:yJ,SmallCircle:bJ,smallsetminus:wJ,smashp:xJ,smeparsl:SJ,smid:_J,smile:kJ,smt:TJ,smte:CJ,smtes:EJ,SOFTcy:LJ,softcy:AJ,solbar:MJ,solb:NJ,sol:$J,Sopf:PJ,sopf:OJ,spades:RJ,spadesuit:DJ,spar:zJ,sqcap:IJ,sqcaps:FJ,sqcup:HJ,sqcups:qJ,Sqrt:BJ,sqsub:WJ,sqsube:UJ,sqsubset:VJ,sqsubseteq:jJ,sqsup:GJ,sqsupe:KJ,sqsupset:XJ,sqsupseteq:YJ,square:ZJ,Square:JJ,SquareIntersection:QJ,SquareSubset:eQ,SquareSubsetEqual:tQ,SquareSuperset:nQ,SquareSupersetEqual:rQ,SquareUnion:iQ,squarf:oQ,squ:sQ,squf:lQ,srarr:aQ,Sscr:cQ,sscr:uQ,ssetmn:fQ,ssmile:dQ,sstarf:hQ,Star:pQ,star:gQ,starf:vQ,straightepsilon:mQ,straightphi:yQ,strns:bQ,sub:wQ,Sub:xQ,subdot:SQ,subE:_Q,sube:kQ,subedot:TQ,submult:CQ,subnE:EQ,subne:LQ,subplus:AQ,subrarr:MQ,subset:NQ,Subset:$Q,subseteq:PQ,subseteqq:OQ,SubsetEqual:RQ,subsetneq:DQ,subsetneqq:zQ,subsim:IQ,subsub:FQ,subsup:HQ,succapprox:qQ,succ:BQ,succcurlyeq:WQ,Succeeds:UQ,SucceedsEqual:VQ,SucceedsSlantEqual:jQ,SucceedsTilde:GQ,succeq:KQ,succnapprox:XQ,succneqq:YQ,succnsim:ZQ,succsim:JQ,SuchThat:QQ,sum:eee,Sum:tee,sung:nee,sup1:ree,sup2:iee,sup3:oee,sup:see,Sup:lee,supdot:aee,supdsub:cee,supE:uee,supe:fee,supedot:dee,Superset:hee,SupersetEqual:pee,suphsol:gee,suphsub:vee,suplarr:mee,supmult:yee,supnE:bee,supne:wee,supplus:xee,supset:See,Supset:_ee,supseteq:kee,supseteqq:Tee,supsetneq:Cee,supsetneqq:Eee,supsim:Lee,supsub:Aee,supsup:Mee,swarhk:Nee,swarr:$ee,swArr:Pee,swarrow:Oee,swnwar:Ree,szlig:Dee,Tab:zee,target:Iee,Tau:Fee,tau:Hee,tbrk:qee,Tcaron:Bee,tcaron:Wee,Tcedil:Uee,tcedil:Vee,Tcy:jee,tcy:Gee,tdot:Kee,telrec:Xee,Tfr:Yee,tfr:Zee,there4:Jee,therefore:Qee,Therefore:ete,Theta:tte,theta:nte,thetasym:rte,thetav:ite,thickapprox:ote,thicksim:ste,ThickSpace:lte,ThinSpace:ate,thinsp:cte,thkap:ute,thksim:fte,THORN:dte,thorn:hte,tilde:pte,Tilde:gte,TildeEqual:vte,TildeFullEqual:mte,TildeTilde:yte,timesbar:bte,timesb:wte,times:xte,timesd:Ste,tint:_te,toea:kte,topbot:Tte,topcir:Cte,top:Ete,Topf:Lte,topf:Ate,topfork:Mte,tosa:Nte,tprime:$te,trade:Pte,TRADE:Ote,triangle:Rte,triangledown:Dte,triangleleft:zte,trianglelefteq:Ite,triangleq:Fte,triangleright:Hte,trianglerighteq:qte,tridot:Bte,trie:Wte,triminus:Ute,TripleDot:Vte,triplus:jte,trisb:Gte,tritime:Kte,trpezium:Xte,Tscr:Yte,tscr:Zte,TScy:Jte,tscy:Qte,TSHcy:ene,tshcy:tne,Tstrok:nne,tstrok:rne,twixt:ine,twoheadleftarrow:one,twoheadrightarrow:sne,Uacute:lne,uacute:ane,uarr:cne,Uarr:une,uArr:fne,Uarrocir:dne,Ubrcy:hne,ubrcy:pne,Ubreve:gne,ubreve:vne,Ucirc:mne,ucirc:yne,Ucy:bne,ucy:wne,udarr:xne,Udblac:Sne,udblac:_ne,udhar:kne,ufisht:Tne,Ufr:Cne,ufr:Ene,Ugrave:Lne,ugrave:Ane,uHar:Mne,uharl:Nne,uharr:$ne,uhblk:Pne,ulcorn:One,ulcorner:Rne,ulcrop:Dne,ultri:zne,Umacr:Ine,umacr:Fne,uml:Hne,UnderBar:qne,UnderBrace:Bne,UnderBracket:Wne,UnderParenthesis:Une,Union:Vne,UnionPlus:jne,Uogon:Gne,uogon:Kne,Uopf:Xne,uopf:Yne,UpArrowBar:Zne,uparrow:Jne,UpArrow:Qne,Uparrow:ere,UpArrowDownArrow:tre,updownarrow:nre,UpDownArrow:rre,Updownarrow:ire,UpEquilibrium:ore,upharpoonleft:sre,upharpoonright:lre,uplus:are,UpperLeftArrow:cre,UpperRightArrow:ure,upsi:fre,Upsi:dre,upsih:hre,Upsilon:pre,upsilon:gre,UpTeeArrow:vre,UpTee:mre,upuparrows:yre,urcorn:bre,urcorner:wre,urcrop:xre,Uring:Sre,uring:_re,urtri:kre,Uscr:Tre,uscr:Cre,utdot:Ere,Utilde:Lre,utilde:Are,utri:Mre,utrif:Nre,uuarr:$re,Uuml:Pre,uuml:Ore,uwangle:Rre,vangrt:Dre,varepsilon:zre,varkappa:Ire,varnothing:Fre,varphi:Hre,varpi:qre,varpropto:Bre,varr:Wre,vArr:Ure,varrho:Vre,varsigma:jre,varsubsetneq:Gre,varsubsetneqq:Kre,varsupsetneq:Xre,varsupsetneqq:Yre,vartheta:Zre,vartriangleleft:Jre,vartriangleright:Qre,vBar:eie,Vbar:tie,vBarv:nie,Vcy:rie,vcy:iie,vdash:oie,vDash:sie,Vdash:lie,VDash:aie,Vdashl:cie,veebar:uie,vee:fie,Vee:die,veeeq:hie,vellip:pie,verbar:gie,Verbar:vie,vert:mie,Vert:yie,VerticalBar:bie,VerticalLine:wie,VerticalSeparator:xie,VerticalTilde:Sie,VeryThinSpace:_ie,Vfr:kie,vfr:Tie,vltri:Cie,vnsub:Eie,vnsup:Lie,Vopf:Aie,vopf:Mie,vprop:Nie,vrtri:$ie,Vscr:Pie,vscr:Oie,vsubnE:Rie,vsubne:Die,vsupnE:zie,vsupne:Iie,Vvdash:Fie,vzigzag:Hie,Wcirc:qie,wcirc:Bie,wedbar:Wie,wedge:Uie,Wedge:Vie,wedgeq:jie,weierp:Gie,Wfr:Kie,wfr:Xie,Wopf:Yie,wopf:Zie,wp:Jie,wr:Qie,wreath:eoe,Wscr:toe,wscr:noe,xcap:roe,xcirc:ioe,xcup:ooe,xdtri:soe,Xfr:loe,xfr:aoe,xharr:coe,xhArr:uoe,Xi:foe,xi:doe,xlarr:hoe,xlArr:poe,xmap:goe,xnis:voe,xodot:moe,Xopf:yoe,xopf:boe,xoplus:woe,xotime:xoe,xrarr:Soe,xrArr:_oe,Xscr:koe,xscr:Toe,xsqcup:Coe,xuplus:Eoe,xutri:Loe,xvee:Aoe,xwedge:Moe,Yacute:Noe,yacute:$oe,YAcy:Poe,yacy:Ooe,Ycirc:Roe,ycirc:Doe,Ycy:zoe,ycy:Ioe,yen:Foe,Yfr:Hoe,yfr:qoe,YIcy:Boe,yicy:Woe,Yopf:Uoe,yopf:Voe,Yscr:joe,yscr:Goe,YUcy:Koe,yucy:Xoe,yuml:Yoe,Yuml:Zoe,Zacute:Joe,zacute:Qoe,Zcaron:ese,zcaron:tse,Zcy:nse,zcy:rse,Zdot:ise,zdot:ose,zeetrf:sse,ZeroWidthSpace:lse,Zeta:ase,zeta:cse,zfr:use,Zfr:fse,ZHcy:dse,zhcy:hse,zigrarr:pse,zopf:gse,Zopf:vse,Zscr:mse,zscr:yse,zwj:bse,zwnj:wse},xse="Á",Sse="á",_se="Â",kse="â",Tse="´",Cse="Æ",Ese="æ",Lse="À",Ase="à",Mse="&",Nse="&",$se="Å",Pse="å",Ose="Ã",Rse="ã",Dse="Ä",zse="ä",Ise="¦",Fse="Ç",Hse="ç",qse="¸",Bse="¢",Wse="©",Use="©",Vse="¤",jse="°",Gse="÷",Kse="É",Xse="é",Yse="Ê",Zse="ê",Jse="È",Qse="è",ele="Ð",tle="ð",nle="Ë",rle="ë",ile="½",ole="¼",sle="¾",lle=">",ale=">",cle="Í",ule="í",fle="Î",dle="î",hle="¡",ple="Ì",gle="ì",vle="¿",mle="Ï",yle="ï",ble="«",wle="<",xle="<",Sle="¯",_le="µ",kle="·",Tle=" ",Cle="¬",Ele="Ñ",Lle="ñ",Ale="Ó",Mle="ó",Nle="Ô",$le="ô",Ple="Ò",Ole="ò",Rle="ª",Dle="º",zle="Ø",Ile="ø",Fle="Õ",Hle="õ",qle="Ö",Ble="ö",Wle="¶",Ule="±",Vle="£",jle='"',Gle='"',Kle="»",Xle="®",Yle="®",Zle="§",Jle="",Qle="¹",eae="²",tae="³",nae="ß",rae="Þ",iae="þ",oae="×",sae="Ú",lae="ú",aae="Û",cae="û",uae="Ù",fae="ù",dae="¨",hae="Ü",pae="ü",gae="Ý",vae="ý",mae="¥",yae="ÿ",bae={Aacute:xse,aacute:Sse,Acirc:_se,acirc:kse,acute:Tse,AElig:Cse,aelig:Ese,Agrave:Lse,agrave:Ase,amp:Mse,AMP:Nse,Aring:$se,aring:Pse,Atilde:Ose,atilde:Rse,Auml:Dse,auml:zse,brvbar:Ise,Ccedil:Fse,ccedil:Hse,cedil:qse,cent:Bse,copy:Wse,COPY:Use,curren:Vse,deg:jse,divide:Gse,Eacute:Kse,eacute:Xse,Ecirc:Yse,ecirc:Zse,Egrave:Jse,egrave:Qse,ETH:ele,eth:tle,Euml:nle,euml:rle,frac12:ile,frac14:ole,frac34:sle,gt:lle,GT:ale,Iacute:cle,iacute:ule,Icirc:fle,icirc:dle,iexcl:hle,Igrave:ple,igrave:gle,iquest:vle,Iuml:mle,iuml:yle,laquo:ble,lt:wle,LT:xle,macr:Sle,micro:_le,middot:kle,nbsp:Tle,not:Cle,Ntilde:Ele,ntilde:Lle,Oacute:Ale,oacute:Mle,Ocirc:Nle,ocirc:$le,Ograve:Ple,ograve:Ole,ordf:Rle,ordm:Dle,Oslash:zle,oslash:Ile,Otilde:Fle,otilde:Hle,Ouml:qle,ouml:Ble,para:Wle,plusmn:Ule,pound:Vle,quot:jle,QUOT:Gle,raquo:Kle,reg:Xle,REG:Yle,sect:Zle,shy:Jle,sup1:Qle,sup2:eae,sup3:tae,szlig:nae,THORN:rae,thorn:iae,times:oae,Uacute:sae,uacute:lae,Ucirc:aae,ucirc:cae,Ugrave:uae,ugrave:fae,uml:dae,Uuml:hae,uuml:pae,Yacute:gae,yacute:vae,yen:mae,yuml:yae},wae="&",xae="'",Sae=">",_ae="<",kae='"',mw={amp:wae,apos:xae,gt:Sae,lt:_ae,quot:kae};var Kh={};const Tae={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Cae=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kh,"__esModule",{value:!0});var Om=Cae(Tae),Eae=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Lae(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Om.default&&(e=Om.default[e]),Eae(e))}Kh.default=Lae;var Hu=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pi,"__esModule",{value:!0});pi.decodeHTML=pi.decodeHTMLStrict=pi.decodeXML=void 0;var jd=Hu(vw),Aae=Hu(bae),Mae=Hu(mw),Rm=Hu(Kh),Nae=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;pi.decodeXML=yw(Mae.default);pi.decodeHTMLStrict=yw(jd.default);function yw(e){var t=bw(e);return function(r){return String(r).replace(Nae,t)}}var Dm=function(e,t){return e<t?1:-1};pi.decodeHTML=function(){for(var e=Object.keys(Aae.default).sort(Dm),t=Object.keys(jd.default).sort(Dm),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=bw(jd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function bw(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Rm.default(parseInt(r.substr(3),16)):Rm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Xn={},ww=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.escapeUTF8=Xn.escape=Xn.encodeNonAsciiHTML=Xn.encodeHTML=Xn.encodeXML=void 0;var $ae=ww(mw),xw=_w($ae.default),Sw=kw(xw);Xn.encodeXML=Ew(xw);var Pae=ww(vw),Xh=_w(Pae.default),Oae=kw(Xh);Xn.encodeHTML=Dae(Xh,Oae);Xn.encodeNonAsciiHTML=Ew(Xh);function _w(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function kw(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var Tw=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Rae=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function qu(e){return"&#x"+(e.length>1?Rae(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Dae(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(Tw,qu)}}var Cw=new RegExp(Sw.source+"|"+Tw.source,"g");function zae(e){return e.replace(Cw,qu)}Xn.escape=zae;function Iae(e){return e.replace(Sw,qu)}Xn.escapeUTF8=Iae;function Ew(e){return function(t){return t.replace(Cw,function(r){return e[r]||qu(r)})}}(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=pi,r=Xn;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=Xn;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=pi;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}})})(gw);function Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hae(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 qae(e,t,r){return t&&Hae(e.prototype,t),e}function Lw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Bae(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function Bae(e,t){if(e){if(typeof e=="string")return zm(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 zm(e,t)}}function zm(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}var Wae=gw,Im={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Uae()};function Uae(){var e={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 gc(0,5).forEach(function(t){gc(0,5).forEach(function(r){gc(0,5).forEach(function(o){return Vae(t,r,o,e)})})}),gc(0,23).forEach(function(t){var r=t+232,o=Aw(t*10+8);e[r]="#"+o+o+o}),e}function Vae(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=jae([c,f,d])}function Aw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function jae(e){var t=[],r=Lw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(Aw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function Fm(e,t,r,o){var s;return t==="text"?s=Yae(r,o):t==="display"?s=Kae(e,r,o):t==="xterm256Foreground"?s=Mc(e,o.colors[r]):t==="xterm256Background"?s=Nc(e,o.colors[r]):t==="rgb"&&(s=Gae(e,r)),s}function Gae(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return Ac(e,(r===38?"color:#":"background-color:#")+s)}function Kae(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&Mw(e)},1:function(){return ji(e,"b")},3:function(){return ji(e,"i")},4:function(){return ji(e,"u")},8:function(){return Ac(e,"display:none")},9:function(){return ji(e,"strike")},22:function(){return Ac(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return qm(e,"i")},24:function(){return qm(e,"u")},39:function(){return Mc(e,r.fg)},49:function(){return Nc(e,r.bg)},53:function(){return Ac(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=ji(e,"blink"):29<t&&t<38?s=Mc(e,r.colors[t-30]):39<t&&t<48?s=Nc(e,r.colors[t-40]):89<t&&t<98?s=Mc(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Nc(e,r.colors[8+(t-100)])),s}function Mw(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function gc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function Xae(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Hm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Yae(e,t){return t.escapeXML?Wae.encodeXML(e):e}function ji(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Ac(e,t){return ji(e,"span",t)}function Mc(e,t){return ji(e,"span","color:"+t)}function Nc(e,t){return ji(e,"span","background-color:"+t)}function qm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Zae(e,t,r){var o=!1,s=3;function c(){return""}function f(z,W){return r("xterm256Foreground",W),""}function d(z,W){return r("xterm256Background",W),""}function h(z){return t.newline?r("display",-1):r("text",z),""}function p(z,W){o=!0,W.trim().length===0&&(W="0"),W=W.trimRight(";").split(";");var U=Lw(W),re;try{for(U.s();!(re=U.n()).done;){var Q=re.value;r("display",Q)}}catch(G){U.e(G)}finally{U.f()}return""}function v(z){return r("text",z),""}function m(z){return r("rgb",z),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:m},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function w(z,W){W>s&&o||(o=!1,e=e.replace(z.pattern,z.sub))}var A=[],M=e,E=M.length;e:for(;E>0;){for(var C=0,N=0,P=b.length;N<P;C=++N){var L=b[C];if(w(L,C),e.length!==E){E=e.length;continue e}}if(e.length===E)break;A.push(0),E=e.length}return A}function Jae(e,t,r){return t!=="text"&&(e=e.filter(Xae(Hm(r))),e.push({token:t,data:r,category:Hm(r)})),e}var Qae=function(){function e(t){Fae(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Im.colors,t.colors)),this.options=Object.assign({},Im,t),this.stack=[],this.stickyStack=[]}return qae(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=Fm(s,d.token,d.data,c);h&&f.push(h)}),Zae(r.join(""),c,function(d,h){var p=Fm(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Jae(o.stickyStack,d,h))}),s.length&&f.push(Mw(s)),f.join("")}}]),e}(),ece=Qae;const tce=pw(ece);function nce(e,t){return t&&e.endsWith(t)}async function Nw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Yh(e){return new tce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function rce(e){return e===null||typeof e!="function"&&typeof e!="object"}function $w(e){let t=e;if(rce(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=tA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Yn=Uint8Array,ms=Uint16Array,ice=Int32Array,Pw=new Yn([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]),Ow=new Yn([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]),oce=new Yn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Rw=function(e,t){for(var r=new ms(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new ice(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}},Dw=Rw(Pw,2),zw=Dw.b,sce=Dw.r;zw[28]=258,sce[258]=28;var lce=Rw(Ow,0),ace=lce.b,Gd=new ms(32768);for(var Et=0;Et<32768;++Et){var Di=(Et&43690)>>1|(Et&21845)<<1;Di=(Di&52428)>>2|(Di&13107)<<2,Di=(Di&61680)>>4|(Di&3855)<<4,Gd[Et]=((Di&65280)>>8|(Di&255)<<8)>>1}var Fl=function(e,t,r){for(var o=e.length,s=0,c=new ms(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ms(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ms(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Gd[m]>>h]=p}else for(d=new ms(o),s=0;s<o;++s)e[s]&&(d[s]=Gd[f[e[s]-1]++]>>15-e[s]);return d},xa=new Yn(288);for(var Et=0;Et<144;++Et)xa[Et]=8;for(var Et=144;Et<256;++Et)xa[Et]=9;for(var Et=256;Et<280;++Et)xa[Et]=7;for(var Et=280;Et<288;++Et)xa[Et]=8;var Iw=new Yn(32);for(var Et=0;Et<32;++Et)Iw[Et]=5;var cce=Fl(xa,9,1),uce=Fl(Iw,5,1),od=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},yr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},sd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},fce=function(e){return(e+7)/8|0},Fw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Yn(e.subarray(t,r))},dce=["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"],Dn=function(e,t,r){var o=new Error(t||dce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Dn),!r)throw o;return o},Zh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Yn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Yn(s*3));var p=function(Ee){var Ze=r.length;if(Ee>Ze){var O=new Yn(Math.max(Ze*2,Ee));O.set(r),r=O}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,A=t.d,M=t.m,E=t.n,C=s*8;do{if(!w){v=yr(e,m,1);var N=yr(e,m+1,3);if(m+=3,N)if(N==1)w=cce,A=uce,M=9,E=5;else if(N==2){var W=yr(e,m,31)+257,U=yr(e,m+10,15)+4,re=W+yr(e,m+5,31)+1;m+=14;for(var Q=new Yn(re),G=new Yn(19),te=0;te<U;++te)G[oce[te]]=yr(e,m+te*3,7);m+=U*3;for(var Z=od(G),q=(1<<Z)-1,F=Fl(G,Z,1),te=0;te<re;){var k=F[yr(e,m,q)];m+=k&15;var P=k>>4;if(P<16)Q[te++]=P;else{var B=0,V=0;for(P==16?(V=3+yr(e,m,3),m+=2,B=Q[te-1]):P==17?(V=3+yr(e,m,7),m+=3):P==18&&(V=11+yr(e,m,127),m+=7);V--;)Q[te++]=B}}var ie=Q.subarray(0,W),ye=Q.subarray(W);M=od(ie),E=od(ye),w=Fl(ie,M,1),A=Fl(ye,E,1)}else Dn(1);else{var P=fce(m)+4,L=e[P-4]|e[P-3]<<8,z=P+L;if(z>s){h&&Dn(0);break}d&&p(b+L),r.set(e.subarray(P,z),b),t.b=b+=L,t.p=m=z*8,t.f=v;continue}if(m>C){h&&Dn(0);break}}d&&p(b+131072);for(var Ne=(1<<M)-1,Ue=(1<<E)-1,je=m;;je=m){var B=w[sd(e,m)&Ne],it=B>>4;if(m+=B&15,m>C){h&&Dn(0);break}if(B||Dn(2),it<256)r[b++]=it;else if(it==256){je=m,w=null;break}else{var tt=it-254;if(it>264){var te=it-257,Je=Pw[te];tt=yr(e,m,(1<<Je)-1)+zw[te],m+=Je}var Ae=A[sd(e,m)&Ue],X=Ae>>4;Ae||Dn(3),m+=Ae&15;var ye=ace[X];if(X>3){var Je=Ow[X];ye+=sd(e,m)&(1<<Je)-1,m+=Je}if(m>C){h&&Dn(0);break}d&&p(b+131072);var ae=b+tt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&Dn(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=w,t.p=je,t.b=b,t.f=v,w&&(v=1,t.m=M,t.d=A,t.n=E)}while(!v);return b!=r.length&&f?Fw(r,0,b):r.subarray(0,b)},hce=new Yn(0),pce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Dn(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)},gce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},vce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Dn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Dn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function mce(e,t){return Zh(e,{i:2},t,t)}function yce(e,t){var r=pce(e);return r+8>e.length&&Dn(6,"invalid gzip data"),Zh(e.subarray(r,-8),{i:2},new Yn(gce(e)),t)}function bce(e,t){return Zh(e.subarray(vce(e,t),-4),{i:2},t,t)}function wce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?yce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?mce(e,t):bce(e,t)}var Kd=typeof TextDecoder<"u"&&new TextDecoder,xce=0;try{Kd.decode(hce,{stream:!0}),xce=1}catch{}var Sce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Fw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function _ce(e,t){var r;if(Kd)return Kd.decode(e);var o=Sce(e),s=o.s,r=o.r;return r.length&&Dn(8),s}const ld=()=>{},kn=()=>Promise.resolve();function kce(){const e=Zn({state:new Ib,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Zn(e.state.filesMap),e.state.idMap=Zn(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:kn,onDone:ld,onTaskUpdate:ld,writeFile:kn,rerun:kn,updateSnapshot:kn,resolveSnapshotPath:kn,snapshotSaved:kn,onAfterSuiteRun:kn,onCancel:kn,getCountOfFailedTests:()=>0,sendLog:kn,resolveSnapshotRawPath:kn,readSnapshotFile:kn,saveSnapshotFile:kn,readTestFile:async d=>t.sources[d],removeSnapshotFile:kn,onUnhandledError:ld,saveTestFile:kn,getProvidedContext:()=>({}),getTestFiles:kn};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=_ce(wce(m));t=Fd(b)}else t=Fd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const wt=function(){return Br?kce():eE(lL,{reactive:(t,r)=>r==="state"?Zn(t):jr(t),handlers:{onTaskUpdate(t){Ce.resumeRun(t),ou.value="running"},onFinished(t,r){Ce.endRun(),ou.value="idle",Wi.value=(r||[]).map($w)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Bu=jr({}),Eo=We("CONNECTING"),Zt=Te(()=>{const e=eo.value;return e?lr(e):void 0}),Hw=Te(()=>qh(Zt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function lr(e){const t=wt.state.idMap.get(e);return t||void 0}const Tce=Te(()=>Eo.value==="OPEN"),ad=Te(()=>Eo.value==="CONNECTING");Te(()=>Eo.value==="CLOSED");function Cce(){return Jh(wt.state.getFiles())}function qw(e){delete e.result;const t=Ce.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,ba(e)))for(const r of e.tasks)qw(r)}function Ece(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,qh(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,Mn(o)&&(o.collectDuration=void 0))})}function Jh(e){return Ece(e),Ce.startRun(),wt.rpc.rerun(e.map(t=>t.filepath),!0)}function Lce(e){return qw(e),Ce.startRun(),wt.rpc.rerunTask(e.id)}const Ro=window.__vitest_browser_runner__;window.__vitest_ui_api__=iL;Bt(()=>wt.ws,e=>{Eo.value=Br?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Eo.value="OPEN",wt.state.filesMap.clear();let[t,r,o]=await Promise.all([wt.rpc.getFiles(),wt.rpc.getConfig(),wt.rpc.getUnhandledErrors()]);r.standalone&&(t=(await wt.rpc.getTestFiles()).map(([{name:c,root:f},d])=>{const h=$b(d,f,c);return h.mode="skip",h})),Ce.loadFiles(t),wt.state.collectFiles(t),Ce.startRun(),Wi.value=(o||[]).map($w),Bu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Eo.value==="CONNECTING"&&(Eo.value="CLOSED")},1e3)})},{immediate:!0});const Ace={"text-2xl":""},Mce={"text-lg":"",op50:""},Nce=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>I(Tce)?Ye("",!0):(oe(),me("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)=>I(wt).reconnect&&I(wt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(I(ad)?"animate-pulse":"")},[Y("div",{text:"5xl",class:st(I(ad)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Ace,He(I(ad)?"Connecting...":"Disconnected"),1),Y("div",Mce," Check your terminal or start a new server with `"+He(I(Ro)?`vitest --browser=${I(Ro).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),$ce=["aria-label","opacity","disabled","hover"],wi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[vn(t.$slots,"default",{},()=>[Y("span",{class:st(t.icon),ma:"",block:""},null,2)])],10,$ce))}}),Pce={h:"full",flex:"~ col"},Oce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Rce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Dce={class:"pointer-events-none","text-sm":""},zce={key:0},Ice={id:"tester-container",relative:""},Fce=["data-scale"],Bm=20,Hce=100,qce=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Dr.value[0]===v[0]&&Dr.value[1]===v[1]}async function o(p){Dr.value=t[p]}const{width:s,height:c}=Uh(),f=Te(()=>{const m=s.value*(gn.details.size/100)*(gn.details.browser/100)-Bm,b=c.value-Hce;return{width:m,height:b}}),d=Te(()=>{const[p,v]=Dr.value,{width:m,height:b}=f.value,w=m>p?1:m/p,A=b>v?1:b/v;return Math.min(1,w,A)}),h=Te(()=>{const p=f.value.width,v=Dr.value[0];return`${Math.trunc((p+Bm-v)/2)}px`});return(p,v)=>{const m=wi,b=Gr("tooltip");return oe(),me("div",Pce,[Y("div",Oce,[mt(Pe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>I(rL)())},null,512),[[Gi,I(gn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),mt(Pe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>I(tL)())},null,512),[[Gi,I(gn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),mt(Pe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>I(nL)())},null,512),[[Gi,I(gn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Y("div",Rce,[mt(Pe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),mt(Pe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),mt(Pe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Y("span",Dce,[pt(He(I(Dr)[0])+"x"+He(I(Dr)[1])+"px ",1),I(d)<1?(oe(),me("span",zce,"("+He((I(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),Y("div",Ice,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":I(d),style:Jt({"--viewport-width":`${I(Dr)[0]}px`,"--viewport-height":`${I(Dr)[1]}px`,"--tester-transform":`scale(${I(d)})`,"--tester-margin-left":I(h)})}," Select a test to run ",12,Fce)])])}}}),Bce=Kr(qce,[["__scopeId","data-v-28536a8a"]]),Bw=ut({__name:"Modal",props:Wc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nh(e,"modelValue"),r=Te(()=>{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=Te(()=>{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)=>(oe(),me("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[I(r)]]),style:Jt(t.value?{}:{transform:I(o)})},[vn(c.$slots,"default")],6)],2))}}),Wce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Uce={"p-4":"",relative:"",border:"base b"},Vce={op50:"","font-mono":"","text-sm":""},jce={op50:"","font-mono":"","text-sm":""},Gce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Kce=["src","alt"],Xce={key:1},Yce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Vb("Escape",()=>{r("close")}),(o,s)=>{const c=wi;return oe(),me("div",Wce,[Y("div",Uce,[s[1]||(s[1]=Y("p",null,"Screenshot error",-1)),Y("p",Vce,He(o.file),1),Y("p",jce,He(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Gce,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Kce)):(oe(),me("div",Xce," Something was wrong, the image cannot be resolved. "))])])}}}),Zce=Kr(Yce,[["__scopeId","data-v-93900314"]]);function Hl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Sa=bE(),Jce=lE(Sa),Qce={class:"scrolls scrolls-rounded task-error"},eue=["onClickPassive"],tue=["innerHTML"],nue=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Te(()=>Yh(Sa.value)),s=Te(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Te(()=>t.error.diff?o.value.toHtml(Hl(t.error.diff)):void 0);return(f,d)=>{const h=Gr("tooltip");return oe(),me("div",Qce,[Y("pre",null,[Y("b",null,He(f.error.name||f.error.nameStr),1),pt(": "+He(f.error.message),1)]),(oe(!0),me(ct,null,gi(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+He(r(p.file))+":"+He(p.line)+":"+He(p.column),1),I(nce)(p.file,f.filename)?mt((oe(),me("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:m=>I(Nw)(p.file,p.line,p.column)},null,40,eue)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),I(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:I(c)},null,8,tue)):Ye("",!0)])}}}),rue=Kr(nue,[["__scopeId","data-v-9dd6eaea"]]),iue={"h-full":"",class:"scrolls"},oue={flex:"~ gap-2 items-center"},sue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lue=["innerHTML"],aue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cue=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var A;return((A=b.result)==null?void 0:A.state)!=="fail"?[]:b.type==="test"||b.type==="custom"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(M=>r(M,w+1))]}function o(b,w){var E,C,N;let A="";(E=w.message)!=null&&E.includes("\x1B")&&(A=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Hl(w.message))}`);const M=(C=w.stackStr)==null?void 0:C.includes("\x1B");return(M||(N=w.stack)!=null&&N.includes("\x1B"))&&(A.length>0?A+=b.toHtml(Hl(M?w.stackStr:w.stack)):A=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Hl(M?w.stackStr:w.stack))}`),A.length>0?A:null}function s(b,w){const A=Yh(b);return w.map(M=>{var N;const E=M.result;if(!E)return M;const C=(N=E.errors)==null?void 0:N.map(P=>o(A,P)).filter(P=>P!=null).join("<br><br>");return C!=null&&C.length&&(E.htmlError=C),M})}const c=Te(()=>{var E,C;const b=t.file,w=((E=b==null?void 0:b.tasks)==null?void 0:E.flatMap(N=>r(N,0)))??[],A=b==null?void 0:b.result;if((C=A==null?void 0:A.errors)==null?void 0:C[0]){const N={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:A};w.unshift(N)}return w.length>0?s(Sa.value,w):w});function f(b){var A;const w=(A=b.meta)==null?void 0:A.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=We(!1),h=We(Date.now()),p=We(),v=Te(()=>{var A;const b=(A=p.value)==null?void 0:A.meta.failScreenshotPath,w=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,w)=>{const A=wi,M=rue,E=Zce,C=Bw,N=Gr("tooltip");return oe(),me("div",iue,[I(c).length?(oe(!0),me(ct,{key:0},gi(I(c),P=>{var L,z,W,U;return oe(),me("div",{key:P.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Jt({"margin-left":`${(L=P.result)!=null&&L.htmlError?.5:2*P.level+.5}rem`})},[Y("div",oue,[Y("span",null,He(P.name),1),I(Ro)&&((z=P.meta)!=null&&z.failScreenshotPath)?(oe(),me(ct,{key:0},[mt(Pe(A,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:re=>m(P)},null,8,["onClick"]),[[N,"View screenshot error",void 0,{bottom:!0}]]),mt(Pe(A,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:re=>f(P)},null,8,["onClick"]),[[N,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(W=P.result)!=null&&W.htmlError?(oe(),me("div",sue,[Y("pre",{innerHTML:P.result.htmlError},null,8,lue)])):(U=P.result)!=null&&U.errors?(oe(!0),me(ct,{key:1},gi(P.result.errors,(re,Q)=>{var G;return oe(),rt(M,{key:Q,error:re,filename:(G=b.file)==null?void 0:G.name,root:I(Bu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)])}),128)):(oe(),me("div",aue," All tests passed in this file ")),I(Ro)?(oe(),rt(C,{key:2,modelValue:I(d),"onUpdate:modelValue":w[1]||(w[1]=P=>At(d)?d.value=P:null),direction:"right"},{default:ot(()=>[I(p)?(oe(),rt(By,{key:0},{default:ot(()=>[Pe(E,{file:I(p).file.filepath,name:I(p).name,url:I(v),onClose:w[0]||(w[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),uue=Kr(cue,[["__scopeId","data-v-3248294f"]]),fue={border:"b base","p-4":""},due=["innerHTML"],hue=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",fue,[Y("div",{"text-xs":"","mb-1":"",class:st(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},He(t(r.time))+" | "+He(r.taskName)+" | "+He(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,due)]))}}),pue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gue={key:1,p6:""},vue=ut({__name:"ViewConsoleOutput",setup(e){const t=Te(()=>{const o=Hw.value;if(o){const s=Yh(Sa.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Hl(h))}))}});function r(o){const s=o&&wt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?FC(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=hue;return(f=I(t))!=null&&f.length?(oe(),me("div",pue,[(oe(!0),me(ct,null,gi(I(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",gue,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),Y("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Ww={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],A=/Opera\//.test(r),M=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),N=M&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),L=N||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),z=N||/Mac/.test(o),W=/\bCrOS\b/.test(r),U=/win/i.test(o),re=A&&r.match(/Version\/(\d*\.\d*)/);re&&(re=Number(re[1])),re&&re>=15&&(A=!1,v=!0);var Q=z&&(m||A&&(re==null||re<12.11)),G=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Z=function(n,i){var a=n.className,l=te(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 q(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function F(n,i){return q(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 g=0;g<i.length;++g)u.appendChild(i[g]);return u}function B(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ie(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ye(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 Ne(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function Ue(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};N?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function tt(n){return Je(n.display.wrapper)}function Je(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Ae(n){return it(n).defaultView}function X(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(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 de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=X(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.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 Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ze=50,O={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},J={origin:"*mouse"},fe={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var he=[""];function _e(n){for(;he.length<=n;)he.push(ue(he)+" ");return he[n]}function ue(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 ve(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function qe(){}function Le(n,i){var a;return Object.create?a=Object.create(n):(qe.prototype=n,a=new qe),i&&ae(i,a),a}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Be(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||De.test(n))}function Xe(n,i){return i?i.source.indexOf("\\w")>-1&&Be(n)?!0:i.test(n):Be(n)}function gt(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 lt(n){return n.charCodeAt(0)>=768&&nt.test(n)}function Tt(n,i,a){for(;(a<0?i>0:i<n.length)&<(n.charAt(i));)i+=a;return i}function Rt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Dt(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Wn=null;function ar(n,i,a){var l;Wn=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Wn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Wn=u)}return l??Wn}var tn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(_,$,D){this.level=_,this.from=$,this.to=D}return function(_,$){var D=$=="ltr"?"L":"R";if(_.length==0||$=="ltr"&&!l.test(_))return!1;for(var K=_.length,j=[],ne=0;ne<K;++ne)j.push(a(_.charCodeAt(ne)));for(var ce=0,ge=D;ce<K;++ce){var we=j[ce];we=="m"?j[ce]=ge:ge=we}for(var ke=0,xe=D;ke<K;++ke){var Me=j[ke];Me=="1"&&xe=="r"?j[ke]="n":g.test(Me)&&(xe=Me,Me=="r"&&(j[ke]="R"))}for(var Ie=1,Re=j[0];Ie<K-1;++Ie){var Qe=j[Ie];Qe=="+"&&Re=="1"&&j[Ie+1]=="1"?j[Ie]="1":Qe==","&&Re==j[Ie+1]&&(Re=="1"||Re=="n")&&(j[Ie]=Re),Re=Qe}for(var St=0;St<K;++St){var Xt=j[St];if(Xt==",")j[St]="N";else if(Xt=="%"){var Lt=void 0;for(Lt=St+1;Lt<K&&j[Lt]=="%";++Lt);for(var Rn=St&&j[St-1]=="!"||Lt<K&&j[Lt]=="1"?"1":"N",xn=St;xn<Lt;++xn)j[xn]=Rn;St=Lt-1}}for(var It=0,Sn=D;It<K;++It){var Qt=j[It];Sn=="L"&&Qt=="1"?j[It]="L":g.test(Qt)&&(Sn=Qt)}for(var Ut=0;Ut<K;++Ut)if(u.test(j[Ut])){var Ft=void 0;for(Ft=Ut+1;Ft<K&&u.test(j[Ft]);++Ft);for(var Pt=(Ut?j[Ut-1]:D)=="L",_n=(Ft<K?j[Ft]:D)=="L",cs=Pt==_n?Pt?"L":"R":D,Pi=Ut;Pi<Ft;++Pi)j[Pi]=cs;Ut=Ft-1}for(var sn=[],Or,Yt=0;Yt<K;)if(y.test(j[Yt])){var Bf=Yt;for(++Yt;Yt<K&&y.test(j[Yt]);++Yt);sn.push(new S(0,Bf,Yt))}else{var ri=Yt,mo=sn.length,yo=$=="rtl"?1:0;for(++Yt;Yt<K&&j[Yt]!="L";++Yt);for(var dn=ri;dn<Yt;)if(x.test(j[dn])){ri<dn&&(sn.splice(mo,0,new S(1,ri,dn)),mo+=yo);var us=dn;for(++dn;dn<Yt&&x.test(j[dn]);++dn);sn.splice(mo,0,new S(2,us,dn)),mo+=yo,ri=dn}else++dn;ri<Yt&&sn.splice(mo,0,new S(1,ri,Yt))}return $=="ltr"&&(sn[0].level==1&&(Or=_.match(/^\s+/))&&(sn[0].from=Or[0].length,sn.unshift(new S(0,0,Or[0].length))),ue(sn).level==1&&(Or=_.match(/\s+$/))&&(ue(sn).to-=Or[0].length,sn.push(new S(0,K-Or[0].length,K)))),$=="rtl"?sn.reverse():sn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=tn(n.text,i)),a}var so=[],ze=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]||so).concat(a)}};function Yr(n,i){return n._handlers&&n._handlers[i]||so}function nn(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Mt(n,i){var a=Yr(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 Nt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Mt(n,a||i.type,n,i),mn(i)||i.codemirrorIgnore}function er(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)Ee(a,i[l])==-1&&a.push(i[l])}function Pn(n,i){return Yr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){ze(this,i,a)},n.prototype.off=function(i,a){nn(this,i,a)}}function rn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Io(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function mn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function xi(n){rn(n),Io(n)}function Ws(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),z&&n.ctrlKey&&i==1&&(i=3),i}var Ku=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Fo;function Ca(n){if(Fo==null){var i=k("span","");F(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Fo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Fo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Us;function Si(n){if(Us!=null)return Us;var i=F(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return q(n),!a||a.left==a.right?!1:Us=l.right-a.right<3}var tr=`
|
|
17
|
+
**/let $d;const Av=typeof window<"u"&&window.trustedTypes;if(Av)try{$d=Av.createPolicy("vue",{createHTML:e=>e})}catch{}const Yy=$d?e=>$d.createHTML(e):e=>e,Kk="http://www.w3.org/2000/svg",Xk="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,Mv=li&&li.createElement("template"),Yk={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"?li.createElementNS(Kk,e):t==="mathml"?li.createElementNS(Xk,e):r?li.createElement(e,{is:r}):li.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>li.createTextNode(e),createComment:e=>li.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>li.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{Mv.innerHTML=Yy(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Mv.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]}},Oi="transition",xl="animation",Xl=Symbol("_vtc"),Zy={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},Zk=Wt({},py,Zy),Jk=e=>(e.displayName="Transition",e.props=Zk,e),Qk=Jk((e,{slots:t})=>ya(B_,eT(e),t)),xo=(e,t=[])=>{Fe(e)?e.forEach(r=>r(...t)):e&&e(...t)},Nv=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function eT(e){const t={};for(const Z in e)Z in Zy||(t[Z]=e[Z]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,M=tT(s),N=M&&M[0],E=M&&M[1],{onBeforeEnter:C,onEnter:A,onEnterCancelled:P,onLeave:L,onLeaveCancelled:z,onBeforeAppear:W=C,onAppear:U=A,onAppearCancelled:re=P}=t,Q=(Z,q,F)=>{So(Z,q?v:d),So(Z,q?p:f),F&&F()},G=(Z,q)=>{Z._isLeaving=!1,So(Z,m),So(Z,w),So(Z,b),q&&q()},te=Z=>(q,F)=>{const k=Z?U:A,B=()=>Q(q,Z,F);xo(k,[q,B]),$v(()=>{So(q,Z?h:c),Ri(q,Z?v:d),Nv(k)||Pv(q,o,N,B)})};return Wt(t,{onBeforeEnter(Z){xo(C,[Z]),Ri(Z,c),Ri(Z,f)},onBeforeAppear(Z){xo(W,[Z]),Ri(Z,h),Ri(Z,p)},onEnter:te(!1),onAppear:te(!0),onLeave(Z,q){Z._isLeaving=!0;const F=()=>G(Z,q);Ri(Z,m),Ri(Z,b),iT(),$v(()=>{Z._isLeaving&&(So(Z,m),Ri(Z,w),Nv(L)||Pv(Z,o,E,F))}),xo(L,[Z,F])},onEnterCancelled(Z){Q(Z,!1),xo(P,[Z])},onAppearCancelled(Z){Q(Z,!0),xo(re,[Z])},onLeaveCancelled(Z){G(Z),xo(z,[Z])}})}function tT(e){if(e==null)return null;if(_t(e))return[Qf(e.enter),Qf(e.leave)];{const t=Qf(e);return[t,t]}}function Qf(e){return D0(e)}function Ri(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xl]||(e[Xl]=new Set)).add(t)}function So(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Xl];r&&(r.delete(t),r.size||(e[Xl]=void 0))}function $v(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nT=0;function Pv(e,t,r,o){const s=e._endId=++nT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=rT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function rT(e,t){const r=window.getComputedStyle(e),o=M=>(r[M]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=Ov(s,c),d=o(`${xl}Delay`),h=o(`${xl}Duration`),p=Ov(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===xl?p>0&&(v=xl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:xl:null,b=v?v===Oi?c.length:h.length:0);const w=v===Oi&&/\b(transform|all)(,|$)/.test(o(`${Oi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Ov(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Rv(r)+Rv(e[o])))}function Rv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function iT(){return document.body.offsetHeight}function oT(e,t,r){const o=e[Xl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Kc=Symbol("_vod"),Jy=Symbol("_vsh"),Gi={beforeMount(e,{value:t},{transition:r}){e[Kc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Sl(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),Sl(e,!0),o.enter(e)):o.leave(e,()=>{Sl(e,!1)}):Sl(e,t))},beforeUnmount(e,{value:t}){Sl(e,t)}};function Sl(e,t){e.style.display=t?e[Kc]:"none",e[Jy]=!t}const sT=Symbol(""),lT=/(^|;)\s*display\s*:/;function aT(e,t,r){const o=e.style,s=Ot(r);let c=!1;if(r&&!s){if(t)if(Ot(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ec(o,d,"")}else for(const f in t)r[f]==null&&Ec(o,f,"");for(const f in r)f==="display"&&(c=!0),Ec(o,f,r[f])}else if(s){if(t!==r){const f=o[sT];f&&(r+=";"+f),o.cssText=r,c=lT.test(r)}}else t&&e.removeAttribute("style");Kc in e&&(e[Kc]=c?o.display:"",e[Jy]&&(o.display="none"))}const Dv=/\s*!important$/;function Ec(e,t,r){if(Fe(r))r.forEach(o=>Ec(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=cT(e,t);Dv.test(r)?e.setProperty(yi(o),r.replace(Dv,""),"important"):e[o]=r}}const zv=["Webkit","Moz","ms"],ed={};function cT(e,t){const r=ed[t];if(r)return r;let o=Jn(t);if(o!=="filter"&&o in e)return ed[t]=o;o=yu(o);for(let s=0;s<zv.length;s++){const c=zv[s]+o;if(c in e)return ed[t]=c}return t}const Iv="http://www.w3.org/1999/xlink";function Fv(e,t,r,o,s,c=i_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Iv,t.slice(6,t.length)):e.setAttributeNS(Iv,t,r):r==null||c&&!z0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":kr(r)?String(r):r)}function Hv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Yy(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=z0(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 Co(e,t,r,o){e.addEventListener(t,r,o)}function uT(e,t,r,o){e.removeEventListener(t,r,o)}const qv=Symbol("_vei");function fT(e,t,r,o,s=null){const c=e[qv]||(e[qv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=dT(t);if(o){const p=c[t]=gT(o,s);Co(e,d,p,h)}else f&&(uT(e,d,f,h),c[t]=void 0)}}const Bv=/(?:Once|Passive|Capture)$/;function dT(e){let t;if(Bv.test(e)){t={};let o;for(;o=e.match(Bv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):yi(e.slice(2)),t]}let td=0;const hT=Promise.resolve(),pT=()=>td||(hT.then(()=>td=0),td=Date.now());function gT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Tr(vT(o,r.value),t,5,[o])};return r.value=e,r.attached=pT(),r}function vT(e,t){if(Fe(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 Wv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?oT(e,o,f):t==="style"?aT(e,r,o):gu(t)?ph(t)||fT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yT(e,t,o,f))?(Hv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ot(o))?Hv(e,Jn(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Fv(e,t,o,f))};function yT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wv(t)&&Ke(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||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 Wv(t)&&Ot(r)?!1:t in e}const Xc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?r=>kc(t,r):t};function bT(e){e.target.composing=!0}function Uv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),wT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ts]=Xc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=md(d)),e[Ts](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",bT),Co(e,"compositionend",Uv),Co(e,"change",Uv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ts]=Xc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?md(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))}},xT={deep:!0,created(e,t,r){e[Ts]=Xc(r),Co(e,"change",()=>{const o=e._modelValue,s=ST(e),c=e.checked,f=e[Ts];if(Fe(o)){const d=I0(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(vu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Qy(e,c))})},mounted:Vv,beforeUpdate(e,t,r){e[Ts]=Xc(r),Vv(e,t,r)}};function Vv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Fe(t))s=I0(t,o.props.value)>-1;else if(vu(t))s=t.has(o.props.value);else{if(t===r)return;s=wu(t,Qy(e,!0))}e.checked!==s&&(e.checked=s)}function ST(e){return"_value"in e?e._value:e.value}function Qy(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const _T=["ctrl","shift","alt","meta"],kT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>_T.some(r=>e[`${r}Key`]&&!t.includes(r))},Lc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=kT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},TT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Pd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=yi(s.key);if(t.some(f=>f===c||TT[f]===c))return e(s)})},CT=Wt({patchProp:mT},Yk);let jv;function ET(){return jv||(jv=yk(CT))}const eb=(...e)=>{const t=ET().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=AT(o);if(!s)return;const c=t._component;!Ke(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,LT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function LT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function AT(e){return Ot(e)?document.querySelector(e):e}const Kr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},MT={};function NT(e,t){const r=Po("RouterView");return oe(),rt(r)}const $T=Kr(MT,[["render",NT]]),PT=["top","right","bottom","left"],Gv=["start","end"],Kv=PT.reduce((e,t)=>e.concat(t,t+"-"+Gv[0],t+"-"+Gv[1]),[]),Yl=Math.min,To=Math.max,OT={left:"right",right:"left",bottom:"top",top:"bottom"},RT={start:"end",end:"start"};function Od(e,t,r){return To(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Ur(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function tb(e){return e==="x"?"y":"x"}function Oh(e){return e==="y"?"height":"width"}function ba(e){return["top","bottom"].includes(Ur(e))?"y":"x"}function Rh(e){return tb(ba(e))}function nb(e,t,r){r===void 0&&(r=!1);const o=Sr(e),s=Rh(e),c=Oh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Zc(f)),[f,Zc(f)]}function DT(e){const t=Zc(e);return[Yc(e),t,Yc(t)]}function Yc(e){return e.replace(/start|end/g,t=>RT[t])}function zT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function IT(e,t,r,o){const s=Sr(e);let c=zT(Ur(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Yc)))),c}function Zc(e){return e.replace(/left|right|bottom|top/g,t=>OT[t])}function FT(e){return{top:0,right:0,bottom:0,left:0,...e}}function rb(e){return typeof e!="number"?FT(e):{top:e,right:e,bottom:e,left:e}}function Rl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Xv(e,t,r){let{reference:o,floating:s}=e;const c=ba(t),f=Rh(t),d=Oh(f),h=Ur(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(Sr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const HT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Xv(p,o,h),b=o,w={},M=0;for(let N=0;N<d.length;N++){const{name:E,fn:C}=d[N],{x:A,y:P,data:L,reset:z}=await C({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=A??v,m=P??m,w={...w,[E]:{...w[E],...L}},z&&M<=50&&(M++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:v,y:m}=Xv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function $u(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=zo(t,e),M=rb(w),E=d[b?m==="floating"?"reference":"floating":m],C=Rl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(E)))==null||r?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),A=m==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),L=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},z=Rl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:P,strategy:h}):A);return{top:(C.top-z.top+M.top)/L.y,bottom:(z.bottom-C.bottom+M.bottom)/L.y,left:(C.left-z.left+M.left)/L.x,right:(z.right-C.right+M.right)/L.x}}const qT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const m=rb(v),b={x:r,y:o},w=Rh(s),M=Oh(w),N=await f.getDimensions(p),E=w==="y",C=E?"top":"left",A=E?"bottom":"right",P=E?"clientHeight":"clientWidth",L=c.reference[M]+c.reference[w]-b[w]-c.floating[M],z=b[w]-c.reference[w],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=W?W[P]:0;(!U||!await(f.isElement==null?void 0:f.isElement(W)))&&(U=d.floating[P]||c.floating[M]);const re=L/2-z/2,Q=U/2-N[M]/2-1,G=Yl(m[C],Q),te=Yl(m[A],Q),Z=G,q=U-N[M]-te,F=U/2-N[M]/2+re,k=Od(Z,F,q),B=!h.arrow&&Sr(s)!=null&&F!==k&&c.reference[M]/2-(F<Z?G:te)-N[M]/2<0,V=B?F<Z?F-Z:F-q:0;return{[w]:b[w]+V,data:{[w]:k,centerOffset:F-k-V,...B&&{alignmentOffset:V}},reset:B}}});function BT(e,t,r){return(e?[...r.filter(s=>Sr(s)===e),...r.filter(s=>Sr(s)!==e)]:r.filter(s=>Ur(s)===s)).filter(s=>e?Sr(s)===e||(t?Yc(s)!==s:!1):!0)}const WT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Kv,autoAlignment:w=!0,...M}=zo(e,t),N=m!==void 0||b===Kv?BT(m||null,w,b):b,E=await $u(t,M),C=((r=f.autoPlacement)==null?void 0:r.index)||0,A=N[C];if(A==null)return{};const P=nb(A,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==A)return{reset:{placement:N[0]}};const L=[E[Ur(A)],E[P[0]],E[P[1]]],z=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:L}],W=N[C+1];if(W)return{data:{index:C+1,overflows:z},reset:{placement:W}};const U=z.map(G=>{const te=Sr(G.placement);return[G.placement,te&&v?G.overflows.slice(0,2).reduce((Z,q)=>Z+q,0):G.overflows[0],G.overflows]}).sort((G,te)=>G[1]-te[1]),Q=((s=U.filter(G=>G[2].slice(0,Sr(G[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||U[0][0];return Q!==d?{data:{index:C+1,overflows:z},reset:{placement:Q}}:{}}}},UT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:N=!0,...E}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const C=Ur(s),A=Ur(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),L=b||(A||!N?[Zc(d)]:DT(d));!b&&M!=="none"&&L.push(...IT(d,N,M,P));const z=[d,...L],W=await $u(t,E),U=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&U.push(W[C]),m){const Z=nb(s,f,P);U.push(W[Z[0]],W[Z[1]])}if(re=[...re,{placement:s,overflows:U}],!U.every(Z=>Z<=0)){var Q,G;const Z=(((Q=c.flip)==null?void 0:Q.index)||0)+1,q=z[Z];if(q)return{data:{index:Z,overflows:re},reset:{placement:q}};let F=(G=re.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:G.placement;if(!F)switch(w){case"bestFit":{var te;const k=(te=re.map(B=>[B.placement,B.overflows.filter(V=>V>0).reduce((V,ie)=>V+ie,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:te[0];k&&(F=k);break}case"initialPlacement":F=d;break}if(s!==F)return{reset:{placement:F}}}return{}}}};async function VT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Ur(r),d=Sr(r),h=ba(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:M}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof M=="number"&&(w=d==="end"?M*-1:M),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const jT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await VT(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}}}}},GT=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:E=>{let{x:C,y:A}=E;return{x:C,y:A}}},...h}=zo(e,t),p={x:r,y:o},v=await $u(t,h),m=ba(Ur(s)),b=tb(m);let w=p[b],M=p[m];if(c){const E=b==="y"?"top":"left",C=b==="y"?"bottom":"right",A=w+v[E],P=w-v[C];w=Od(A,w,P)}if(f){const E=m==="y"?"top":"left",C=m==="y"?"bottom":"right",A=M+v[E],P=M-v[C];M=Od(A,M,P)}const N=d.fn({...t,[b]:w,[m]:M});return{...N,data:{x:N.x-r,y:N.y-o}}}}},KT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await $u(t,d),p=Ur(r),v=Sr(r),m=ba(r)==="y",{width:b,height:w}=o.floating;let M,N;p==="top"||p==="bottom"?(M=p,N=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(N=p,M=v==="end"?"top":"bottom");const E=w-h[M],C=b-h[N],A=!t.middlewareData.shift;let P=E,L=C;if(m){const W=b-h.left-h.right;L=v||A?Yl(C,W):W}else{const W=w-h.top-h.bottom;P=v||A?Yl(E,W):W}if(A&&!v){const W=To(h.left,0),U=To(h.right,0),re=To(h.top,0),Q=To(h.bottom,0);m?L=b-2*(W!==0||U!==0?W+U:To(h.left,h.right)):P=w-2*(re!==0||Q!==0?re+Q:To(h.top,h.bottom))}await f({...t,availableWidth:L,availableHeight:P});const z=await s.getDimensions(c.floating);return b!==z.width||w!==z.height?{reset:{rects:!0}}:{}}}};function ir(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hr(e){return ir(e).getComputedStyle(e)}const Yv=Math.min,Dl=Math.max,Jc=Math.round;function ib(e){const t=Hr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Jc(r)!==s||Jc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Qi(e){return sb(e)?(e.nodeName||"").toLowerCase():""}let cc;function ob(){if(cc)return cc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(cc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),cc):navigator.userAgent}function qr(e){return e instanceof ir(e).HTMLElement}function Yi(e){return e instanceof ir(e).Element}function sb(e){return e instanceof ir(e).Node}function Zv(e){return typeof ShadowRoot>"u"?!1:e instanceof ir(e).ShadowRoot||e instanceof ShadowRoot}function Pu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function XT(e){return["table","td","th"].includes(Qi(e))}function Rd(e){const t=/firefox/i.test(ob()),r=Hr(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 lb(){return!/^((?!chrome|android).)*safari/i.test(ob())}function Dh(e){return["html","body","#document"].includes(Qi(e))}function ab(e){return Yi(e)?e:e.contextElement}const cb={x:1,y:1};function Cs(e){const t=ab(e);if(!qr(t))return cb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=ib(t);let f=(c?Jc(r.width):r.width)/o,d=(c?Jc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=ab(e);let h=cb;t&&(o?Yi(o)&&(h=Cs(o)):h=Cs(e));const p=d?ir(d):window,v=!lb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,M=f.height/h.y;if(d){const N=ir(d),E=o&&Yi(o)?ir(o):o;let C=N.frameElement;for(;C&&o&&E!==N;){const A=Cs(C),P=C.getBoundingClientRect(),L=getComputedStyle(C);P.x+=(C.clientLeft+parseFloat(L.paddingLeft))*A.x,P.y+=(C.clientTop+parseFloat(L.paddingTop))*A.y,m*=A.x,b*=A.y,w*=A.x,M*=A.y,m+=P.x,b+=P.y,C=ir(C).frameElement}}return{width:w,height:M,top:b,right:m+w,bottom:b+M,left:m,x:m,y:b}}function Zi(e){return((sb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return Yi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ub(e){return Zl(Zi(e)).left+Ou(e).scrollLeft}function Jl(e){if(Qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zv(e)&&e.host||Zi(e);return Zv(t)?t.host:t}function fb(e){const t=Jl(e);return Dh(t)?t.ownerDocument.body:qr(t)&&Pu(t)?t:fb(t)}function Qc(e,t){var r;t===void 0&&(t=[]);const o=fb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ir(o);return s?t.concat(c,c.visualViewport||[],Pu(o)?o:[]):t.concat(o,Qc(o))}function Jv(e,t,r){return t==="viewport"?Rl(function(o,s){const c=ir(o),f=Zi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=lb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Yi(t)?Rl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=qr(o)?Cs(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)):Rl(function(o){const s=Zi(o),c=Ou(o),f=o.ownerDocument.body,d=Dl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Dl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+ub(o);const v=-c.scrollTop;return Hr(f).direction==="rtl"&&(p+=Dl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Zi(e)))}function Qv(e){return qr(e)&&Hr(e).position!=="fixed"?e.offsetParent:null}function em(e){const t=ir(e);let r=Qv(e);for(;r&&XT(r)&&Hr(r).position==="static";)r=Qv(r);return r&&(Qi(r)==="html"||Qi(r)==="body"&&Hr(r).position==="static"&&!Rd(r))?t:r||function(o){let s=Jl(o);for(;qr(s)&&!Dh(s);){if(Rd(s))return s;s=Jl(s)}return null}(e)||t}function YT(e,t,r){const o=qr(t),s=Zi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Qi(t)!=="body"||Pu(s))&&(f=Ou(t)),qr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=ub(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const ZT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Qc(p).filter(E=>Yi(E)&&Qi(E)!=="body"),w=null;const M=Hr(p).position==="fixed";let N=M?Jl(p):p;for(;Yi(N)&&!Dh(N);){const E=Hr(N),C=Rd(N);(M?C||w:C||E.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=E:b=b.filter(A=>A!==N),N=Jl(N)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Jv(t,v,s);return p.top=Dl(m.top,p.top),p.right=Yv(m.right,p.right),p.bottom=Yv(m.bottom,p.bottom),p.left=Dl(m.left,p.left),p},Jv(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=qr(r),c=Zi(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")&&((Qi(r)!=="body"||Pu(c))&&(f=Ou(r)),qr(r))){const p=Zl(r);d=Cs(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:Yi,getDimensions:function(e){return qr(e)?ib(e):e.getBoundingClientRect()},getOffsetParent:em,getDocumentElement:Zi,getScale:Cs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||em,c=this.getDimensions;return{reference:YT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Hr(e).direction==="rtl"},JT=(e,t,r)=>{const o=new Map,s={platform:ZT,...r},c={...s.platform,_c:o};return HT(e,t,{...s,platform:c})};function db(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?db(e[r],t[r]):e[r]=t[r])}const _r={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 Ql(e,t){let r=_r.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=_r.themes[r.$extend]||{}:(r=null,o=_r[t]):r=null;while(r);return o}function QT(e){const t=[e];let r=_r.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=_r.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function tm(e){const t=[e];let r=_r.themes[e]||{};do r.$extend?(t.push(r.$extend),r=_r.themes[r.$extend]||{}):r=null;while(r);return t}let Ps=!1;if(typeof window<"u"){Ps=!1;try{const e=Object.defineProperty({},"passive",{get(){Ps=!0}});window.addEventListener("test",null,e)}catch{}}let hb=!1;typeof window<"u"&&typeof navigator<"u"&&(hb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const pb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),nm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},rm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function im(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function nd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Kn=[];let _o=null;const om={};function sm(e){let t=om[e];return t||(t=om[e]=[]),t}let Dd=function(){};typeof window<"u"&&(Dd=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const rd="__floating-vue__popper",gb=()=>ut({name:"VPopper",provide(){return{[rd]:{parentPopper:this}}},inject:{[rd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>pb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Dd,Boolean],default:at("container")},boundary:{type:[String,Dd],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[rd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(jT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(WT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(GT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(UT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(qT({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(KT({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 JT(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 nd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Qc(this.$_referenceNode),...Qc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Kn.length;r++)t=Kn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Kn.push(this),document.body.classList.add("v-popper--some-open");for(const t of tm(this.theme))sm(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 nd(),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,im(Kn,this),Kn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of tm(this.theme)){const o=sm(r);im(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 nd(),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,nm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],nm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,rm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],rm,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,Ps?{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(zl>=e.left&&zl<=e.right&&Il>=e.top&&Il<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=zl-Ii,o=Il-Fi,s=t.left+t.width/2-Ii+(t.top+t.height/2)-Fi+t.width+t.height,c=Ii+r*s,f=Fi+o*s;return uc(Ii,Fi,c,f,t.left,t.top,t.left,t.bottom)||uc(Ii,Fi,c,f,t.left,t.top,t.right,t.top)||uc(Ii,Fi,c,f,t.right,t.top,t.right,t.bottom)||uc(Ii,Fi,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(hb){const e=Ps?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>lm(t,!0),e),document.addEventListener("touchend",t=>am(t,!0),e)}else window.addEventListener("mousedown",e=>lm(e,!1),!0),window.addEventListener("click",e=>am(e,!1),!0);window.addEventListener("resize",tC)}function lm(e,t){if(_r.autoHideOnMousedown)vb(e,t);else for(let r=0;r<Kn.length;r++){const o=Kn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function am(e,t){_r.autoHideOnMousedown||vb(e,t)}function vb(e,t){const r={};for(let o=Kn.length-1;o>=0;o--){const s=Kn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&cm(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&&cm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function cm(e,t,r){return r.closeAllPopover||r.closePopover&&t||eC(e,r)&&!t}function eC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function tC(){for(let e=0;e<Kn.length;e++)Kn[e].$_computePosition()}function um(){for(let e=0;e<Kn.length;e++)Kn[e].hide()}let Ii=0,Fi=0,zl=0,Il=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Ii=zl,Fi=Il,zl=e.clientX,Il=e.clientY},Ps?{passive:!0}:void 0);function uc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const nC={extends:gb()},Ru=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function rC(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[vn(e.$slots,"default",n_(jy(e.slotData)))],2)}const iC=Ru(nC,[["render",rC]]);function oC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ac;function zd(){zd.init||(zd.init=!0,Ac=oC()!==-1)}var Du={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){zd(),un(()=>{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",Ac&&this.$el.appendChild(e),e.data="about:blank",Ac||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&&(!Ac&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const sC=dy();uy("data-v-b329ee4c");const lC={class:"resize-observer",tabindex:"-1"};fy();const aC=sC((e,t,r,o,s,c)=>(oe(),rt("div",lC)));Du.render=aC;Du.__scopeId="data-v-b329ee4c";Du.__file="src/components/ResizeObserver.vue";const mb=(e="theme")=>({computed:{themeClass(){return QT(this[e])}}}),cC=ut({name:"VPopperContent",components:{ResizeObserver:Du},mixins:[mb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),uC=["id","aria-hidden","tabindex","data-popper-placement"],fC={ref:"inner",class:"v-popper__inner"},dC=Y("div",{class:"v-popper__arrow-outer"},null,-1),hC=Y("div",{class:"v-popper__arrow-inner"},null,-1),pC=[dC,hC];function gC(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:st(["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:Jt(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]=Pd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Jt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",fC,[e.mounted?(oe(),me(ct,{key:0},[Y("div",null,[vn(e.$slots,"default")]),e.handleResize?(oe(),rt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Jt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},pC,4)],4)],46,uC)}const yb=Ru(cC,[["render",gC]]),bb={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 Id=function(){};typeof window<"u"&&(Id=window.Element);const vC=ut({name:"VPopperWrapper",components:{Popper:iC,PopperContent:yb},mixins:[bb,mb("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,Id,Boolean],default:void 0},boundary:{type:[String,Id],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function mC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),rt(d,hi({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:ot(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:M,handleResize:N,onResize:E,classes:C,result:A})=>[vn(e.$slots,"default",{shown:p,show:w,hide:M}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":N,classes:C,result:A,onHide:M,onResize:E},{default:ot(()=>[vn(e.$slots,"popper",{shown:p,hide:M})]),_: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 zh=Ru(vC,[["render",mC]]),yC={...zh,name:"VDropdown",vPopperTheme:"dropdown"},bC={...zh,name:"VMenu",vPopperTheme:"menu"},wb={...zh,name:"VTooltip",vPopperTheme:"tooltip"},wC=ut({name:"VTooltipDirective",components:{Popper:gb(),PopperContent:yb},mixins:[bb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(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}}}),xC=["innerHTML"],SC=["textContent"];function _C(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),rt(d,hi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ot(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:M,onResize:N,classes:E,result:C})=>[Pe(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:E,result:C,onHide:w,onResize:N},{default:ot(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,xC)):(oe(),me("div",{key:1,textContent:He(e.finalContent)},null,8,SC))]),_: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 kC=Ru(wC,[["render",_C]]),xb="v-popper--has-tooltip";function TC(e,t){let r=e.placement;if(!r&&t)for(const o of pb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Sb(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=TC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let id,ea,CC=0;function EC(){if(id)return;ea=We([]),id=eb({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>ya(kC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),id.mount(e)}function _b(e,t,r){EC();const o=We(Sb(e,t,r)),s=We(!1),c={id:CC++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(xb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ih(e){if(e.$_popper){const t=ea.value.indexOf(e.$_popper.item);t!==-1&&ea.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(xb)}function fm(e,{value:t,modifiers:r}){const o=Sb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))Ih(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=_b(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const kb={beforeMount:fm,updated:fm,beforeUnmount(e){Ih(e)}};function dm(e){e.addEventListener("mousedown",eu),e.addEventListener("click",eu),e.addEventListener("touchstart",Tb,Ps?{passive:!0}:!1)}function hm(e){e.removeEventListener("mousedown",eu),e.removeEventListener("click",eu),e.removeEventListener("touchstart",Tb),e.removeEventListener("touchend",Cb),e.removeEventListener("touchcancel",Eb)}function eu(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Tb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Cb),t.addEventListener("touchcancel",Eb)}}function Cb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Eb(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const LC={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&dm(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?dm(e):hm(e))},beforeUnmount(e){hm(e)}},AC=kb,Lb=wb;function MC(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,db(_r,t),e.directive("tooltip",kb),e.directive("close-popper",LC),e.component("VTooltip",wb),e.component("VDropdown",yC),e.component("VMenu",bC))}const Ab={version:"5.2.2",install:MC,options:_r};function Mb(e){return e!=null}function Fh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const NC=/^[A-Za-z]:\//;function $C(e=""){return e&&e.replace(/\\/g,"/").replace(NC,t=>t.toUpperCase())}const PC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,pm=/^\/([A-Za-z]:)?$/;function OC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const gm=function(...e){e=e.map(o=>$C(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:OC();!s||s.length===0||(t=`${s}/${t}`,r=vm(s))}return t=RC(t,!r),r&&!vm(t)?`/${t}`:t.length>0?t:"."};function RC(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 vm=function(e){return PC.test(e)},DC=function(e,t){const r=gm(e).replace(pm,"$1").split("/"),o=gm(t).replace(pm,"$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 zC(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 Nb(e,t,r,o){const s=DC(t,e),c={id:zC(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function $b(e){return ta(e)}function ta(e){return e.type==="test"}function Pb(e){const t=[],r=Fh(e);for(const o of r)if(ta(o))t.push(o);else for(const s of o.tasks)if(ta(s))t.push(s);else{const c=Pb(s);for(const f of c)t.push(f)}return t}function Hh(e=[]){return Fh(e).flatMap(t=>ta(t)?[t]:[t,...Hh(t.tasks)])}function IC(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const FC=6e4;function Ob(e){return e}const HC=Ob,{clearTimeout:qC,setTimeout:BC}=globalThis,WC=Math.random.bind(Math);function UC(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Ob,deserialize:d=HC,resolver:h,bind:p="rpc",timeout:v=FC}=t,m=new Map;let b,w=!1;const M=new Proxy({},{get(C,A){if(A==="$functions")return e;if(A==="$close")return N;if(A==="then"&&!c.includes("then")&&!("then"in e))return;const P=(...z)=>{r(f({m:A,a:z,t:"q"}))};if(c.includes(A))return P.asEvent=P,P;const L=async(...z)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${A}"`);if(b)try{await b}finally{b=void 0}return new Promise((W,U)=>{var G;const re=jC();let Q;v>=0&&(Q=BC(()=>{var te;try{throw(te=t.onTimeoutError)==null||te.call(t,A,z),new Error(`[birpc] timeout on calling "${A}"`)}catch(Z){U(Z)}m.delete(re)},v),typeof Q=="object"&&(Q=(G=Q.unref)==null?void 0:G.call(Q))),m.set(re,{resolve:W,reject:U,timeoutId:Q,method:A}),r(f({m:A,a:z,i:re,t:"q"}))})};return L.asEvent=P,L}});function N(){w=!0,m.forEach(({reject:C,method:A})=>{C(new Error(`[birpc] rpc is closed, cannot call "${A}"`))}),m.clear(),s(E)}async function E(C,...A){const P=d(C);if(P.t==="q"){const{m:L,a:z}=P;let W,U;const re=h?h(L,e[L]):e[L];if(!re)U=new Error(`[birpc] function "${L}" not found`);else try{W=await re.apply(p==="rpc"?M:e,z)}catch(Q){U=Q}P.i&&(U&&t.onError&&t.onError(U,L,z),r(f({t:"s",i:P.i,r:W,e:U}),...A))}else{const{i:L,r:z,e:W}=P,U=m.get(L);U&&(qC(U.timeoutId),W?U.reject(W):U.resolve(z)),m.delete(L)}}return b=o(E),M}const VC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function jC(e=21){let t="",r=e;for(;r--;)t+=VC[WC()*64|0];return t}const{parse:GC,stringify:KC}=JSON,{keys:XC}=Object,na=String,Rb="string",mm={},tu="object",Db=(e,t)=>t,YC=e=>e instanceof na?na(e):e,ZC=(e,t)=>typeof t===Rb?new na(t):t,zb=(e,t,r,o)=>{const s=[];for(let c=XC(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof na){const v=e[p];typeof v===tu&&!t.has(v)?(t.add(v),r[h]=mm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==mm&&(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,zb.apply(null,h))}return r},ym=(e,t,r)=>{const o=na(t.push(r)-1);return e.set(r,o),o},Fd=(e,t)=>{const r=GC(e,ZC).map(YC),o=r[0],s=t||Db,c=typeof o===tu&&o?zb(r,new Set,o,s):o;return s.call({"":c},"",c)},JC=(e,t,r)=>{const o=t&&typeof t===tu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Db,s=new Map,c=[],f=[];let d=+ym(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=KC(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case tu:if(b===null)return b;case Rb:return s.get(b)||ym(s,c,b)}return b}};class Ib{constructor(){fs(this,"filesMap",new Map);fs(this,"pathsSet",new Set);fs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Nb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function qh(e){return Pb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function QC(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=A=>A,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Ib,waitForConnection:C,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(A){var P;A==null||A.forEach(([L,z])=>{v.state.clearFiles({config:L},[z])}),(P=r.onSpecsCollected)==null||P.call(r,A)},onPathsCollected(A){var P;v.state.collectPaths(A),(P=r.onPathsCollected)==null||P.call(r,A)},onCollected(A){var P;v.state.collectFiles(A),(P=r.onCollected)==null||P.call(r,A)},onTaskUpdate(A){var P;v.state.updateTasks(A),(P=r.onTaskUpdate)==null||P.call(r,A)},onUserConsoleLog(A){var P;v.state.updateUserLog(A),(P=r.onUserConsoleLog)==null||P.call(r,A)},onFinished(A,P){var L;(L=r.onFinished)==null||L.call(r,A,P)},onFinishedReportCoverage(){var A;(A=r.onFinishedReportCoverage)==null||A.call(r)}},w={post:A=>v.ws.send(A),on:A=>m=A,serialize:A=>JC(A,(P,L)=>L instanceof Error?{name:L.name,message:L.message,stack:L.stack}:L),deserialize:Fd,onTimeoutError(A){throw new Error(`[vitest-ws-client]: Timeout calling "${A}"`)}};v.rpc=UC(b,w);let M;function N(A=!1){A&&(p=c),v.ws=new h(e),E()}function E(){M=new Promise((A,P)=>{var z,W;const L=(W=(z=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:z.unref)==null?void 0:W.call(z);v.ws.OPEN===v.ws.readyState&&A(),v.ws.addEventListener("open",()=>{p=c,A(),clearTimeout(L)})}),v.ws.addEventListener("message",A=>{m(A.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}E();function C(){return M}return v}function zu(e){return q0()?(l_(e),!0):!1}function Vr(e){return typeof e=="function"?e():I(e)}const eE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tE=Object.prototype.toString,nE=e=>tE.call(e)==="[object Object]",ra=()=>{};function Fb(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 Hb=e=>e();function qb(e,t={}){let r,o,s=ra;const c=d=>{clearTimeout(d),s(),s=ra};return d=>{const h=Vr(e),p=Vr(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,m)=>{s=t.rejectOnCancel?m:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function rE(e=Hb){const t=We(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ha(t),pause:r,resume:o,eventFilter:s}}function iE(e){return va()}function oE(...e){if(e.length!==1)return _u(...e);const t=e[0];return typeof t=="function"?ha(iy(()=>({get:t,set:ra}))):We(t)}function fc(e,t=200,r={}){return Fb(qb(t,r),e)}function Bb(e,t,r={}){const{eventFilter:o=Hb,...s}=r;return Bt(e,Fb(o,t),s)}function Wb(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=rE(o);return{stop:Bb(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Bh(e,t=!0,r){iE()?qs(e,r):t?e():un(e)}function sE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=At(e),c=We(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Vr(r);return c.value=c.value===h?Vr(o):h,c.value}}return s?f:[c,f]}function Ub(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Bb(e,t,{...c,eventFilter:qb(o,{maxWait:s})})}function lE(e,t,r){const o=Bt(e,(...s)=>(un(()=>o()),t(...s)),r);return o}function aE(e,t,r){let o;At(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=ra}=o,h=We(!s),p=f?jr(t):We(t);let v=0;return Mh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const M=await e(N=>{m(()=>{c&&(c.value=!1),w||N()})});b===v&&(p.value=M)}catch(M){d(M)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?Te(()=>(h.value=!0,p.value)):p}const Cr=eE?window:void 0;function nu(e){var t;const r=Vr(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Os(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=Cr):[t,r,o,s]=e,!t)return ra;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,m,b,w)=>(v.addEventListener(m,b,w),()=>v.removeEventListener(m,b,w)),h=Bt(()=>[nu(t),Vr(s)],([v,m])=>{if(f(),!v)return;const b=nE(m)?{...m}:m;c.push(...r.flatMap(w=>o.map(M=>d(v,w,M,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return zu(p),p}function cE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Vb(...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=Cr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=cE(t);return Os(s,c,v=>{v.repeat&&Vr(d)||h(v)&&r(v)},f)}function uE(){const e=We(!1),t=va();return t&&qs(()=>{e.value=!0},t),e}function jb(e){const t=uE();return Te(()=>(t.value,!!e()))}function fE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Cr}=t,c=We(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const w=b-d;if(f&&w<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:w,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function m(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),zu(m),{isActive:ha(c),pause:m,resume:v}}function Gb(e,t={}){const{window:r=Cr}=t,o=jb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=We(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Mh(()=>{o.value&&(d(),s=r.matchMedia(Vr(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return zu(()=>{h(),d(),s=void 0}),c}const dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hc="__vueuse_ssr_handlers__",dE=hE();function hE(){return hc in dc||(dc[hc]=dc[hc]||{}),dc[hc]}function Kb(e,t){return dE[e]||t}function pE(e){return Gb("(prefers-color-scheme: dark)",e)}function gE(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 vE={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()}},bm="vueuse-storage";function Xb(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Cr,eventFilter:b,onError:w=G=>{console.error(G)},initOnMounted:M}=o,N=(v?jr:We)(typeof t=="function"?t():t);if(!r)try{r=Kb("getDefaultStorage",()=>{var G;return(G=Cr)==null?void 0:G.localStorage})()}catch(G){w(G)}if(!r)return N;const E=Vr(t),C=gE(E),A=(s=o.serializer)!=null?s:vE[C],{pause:P,resume:L}=Wb(N,()=>W(N.value),{flush:c,deep:f,eventFilter:b});m&&d&&Bh(()=>{r instanceof Storage?Os(m,"storage",re):Os(m,bm,Q),M&&re()}),M||re();function z(G,te){if(m){const Z={key:e,oldValue:G,newValue:te,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",Z):new CustomEvent(bm,{detail:Z}))}}function W(G){try{const te=r.getItem(e);if(G==null)z(te,null),r.removeItem(e);else{const Z=A.write(G);te!==Z&&(r.setItem(e,Z),z(te,Z))}}catch(te){w(te)}}function U(G){const te=G?G.newValue:r.getItem(e);if(te==null)return h&&E!=null&&r.setItem(e,A.write(E)),E;if(!G&&p){const Z=A.read(te);return typeof p=="function"?p(Z,E):C==="object"&&!Array.isArray(Z)?{...E,...Z}:Z}else return typeof te!="string"?te:A.read(te)}function re(G){if(!(G&&G.storageArea!==r)){if(G&&G.key==null){N.value=E;return}if(!(G&&G.key!==e)){P();try{(G==null?void 0:G.newValue)!==A.write(N.value)&&(N.value=U(G))}catch(te){w(te)}finally{G?un(L):L()}}}}function Q(G){re(G.detail)}return N}const mE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function yE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Cr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=pE({window:s}),w=Te(()=>b.value?"dark":"light"),M=h||(f==null?oE(o):Xb(f,o,c,{window:s,listenToStorageChanges:d})),N=Te(()=>M.value==="auto"?w.value:M.value),E=Kb("updateHTMLAttrs",(L,z,W)=>{const U=typeof L=="string"?s==null?void 0:s.document.querySelector(L):nu(L);if(!U)return;const re=new Set,Q=new Set;let G=null;if(z==="class"){const Z=W.split(/\s/g);Object.values(m).flatMap(q=>(q||"").split(/\s/g)).filter(Boolean).forEach(q=>{Z.includes(q)?re.add(q):Q.add(q)})}else G={key:z,value:W};if(re.size===0&&Q.size===0&&G===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(mE)),s.document.head.appendChild(te));for(const Z of re)U.classList.add(Z);for(const Z of Q)U.classList.remove(Z);G&&U.setAttribute(G.key,G.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function C(L){var z;E(t,r,(z=m[L])!=null?z:L)}function A(L){e.onChanged?e.onChanged(L,C):C(L)}Bt(N,A,{flush:"post",immediate:!0}),Bh(()=>A(N.value));const P=Te({get(){return p?M.value:N.value},set(L){M.value=L}});return Object.assign(P,{store:M,system:w,state:N})}function bE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=yE({...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=Te(()=>o.system.value);return Te({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function wE(e,t,r={}){const{window:o=Cr,...s}=r;let c;const f=jb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Te(()=>{const m=Vr(e);return Array.isArray(m)?m.map(b=>nu(b)):[nu(m)]}),p=Bt(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return zu(v),{isSupported:f,stop:v}}function Iu(e,t,r={}){const{window:o=Cr}=r;return Xb(e,t,o==null?void 0:o.localStorage,r)}function xE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=Cr}=t;if(!f)return Zn(r);const d=Zn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const C=f.location.hash||"",A=C.indexOf("?");return A>0?C.slice(A):""}else return(f.location.hash||"").replace(/^#/,"")}function p(C){const A=C.toString();if(e==="history")return`${A?`?${A}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${A?`#${A}`:""}`;const P=f.location.hash||"#",L=P.indexOf("?");return L>0?`${f.location.search||""}${P.slice(0,L)}${A?`?${A}`:""}`:`${f.location.search||""}${P}${A?`?${A}`:""}`}function v(){return new URLSearchParams(h())}function m(C){const A=new Set(Object.keys(d));for(const P of C.keys()){const L=C.getAll(P);d[P]=L.length>1?L:C.get(P)||"",A.delete(P)}Array.from(A).forEach(P=>delete d[P])}const{pause:b,resume:w}=Wb(d,()=>{const C=new URLSearchParams("");Object.keys(d).forEach(A=>{const P=d[A];Array.isArray(P)?P.forEach(L=>C.append(A,L)):o&&P==null||s&&!P?C.delete(A):C.set(A,P)}),M(C)},{deep:!0});function M(C,A){b(),A&&m(C),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(C)),w()}function N(){c&&M(v(),!0)}Os(f,"popstate",N,!1),e!=="history"&&Os(f,"hashchange",N,!1);const E=v();return E.keys().next().value?m(E):Object.assign(d,r),d}function Wh(e={}){const{window:t=Cr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=We(r),h=We(o),p=()=>{t&&(f==="outer"?(d.value=t.outerWidth,h.value=t.outerHeight):c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};if(p(),Bh(p),Os("resize",p,{passive:!0}),s){const v=Gb("(orientation: portrait)");Bt(v,()=>p())}return{width:d,height:h}}const Hd=jr([]),Bn=jr([]),Er=Iu("vitest-ui_task-tree-opened",[],{shallow:!0}),ru=Te(()=>new Set(Er.value)),ln=Iu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),zn=We(ln.value.search),SE={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yb(e){return e.replace(/[&<>"']/g,t=>SE[t])}const _E=Te(()=>{const e=zn.value.toLowerCase();return e.length?new RegExp(`(${Yb(e)})`,"gi"):null}),Zb=Te(()=>zn.value.trim()!==""),et=Zn({failed:ln.value.failed,success:ln.value.success,skipped:ln.value.skipped,onlyTests:ln.value.onlyTests}),qd=Te(()=>!!(et.failed||et.success||et.skipped)),Fu=jr([]),Rs=We(!1),wm=Te(()=>{const e=ln.value.expandAll;return Er.value.length>0?e!==!0:e!==!1}),kE=Te(()=>{const e=Zb.value,t=qd.value,r=et.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=Fu.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function wa(e){return Object.hasOwnProperty.call(e,"tasks")}function TE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Jb(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function CE(e){return e.type==="test"}function EE(e){return e.mode==="run"&&e.type==="test"}function Mn(e){return e.type==="file"}function vi(e){return e.type==="file"||e.type==="suite"}function LE(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ia(e,t=!1){var o,s,c,f,d;let r=Ce.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:ru.value.size>0&&ru.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Jb(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)xa(e.id,e.tasks[h],!0)}function Qb(e,t){const r=Ce.nodes.get(e);if(!r||!vi(r))return;const o=xt.state.idMap.get(e);if(!(!o||!wa(o)))return xa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function AE(e){const t=Ce.nodes.get(e);if(!t)return;const r=xt.state.idMap.get(e);!r||!$b(r)||xa(t.parentId,r,!1)}function xa(e,t,r){var f,d,h,p,v;const o=Ce.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Ce.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):($b(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:ru.value.size>0&&ru.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&wa(t)))for(let m=0;m<t.tasks.length;m++)xa(s.id,t.tasks[m],r)}function ME(e){const t=Ce.nodes.get(e);if(!t||!vi(t))return;const r=new Set(Er.value);r.delete(t.id);const o=[...$E(t)];Er.value=Array.from(r),Bn.value=o}function NE(){Bd(Ce.root.tasks);const e=[...Bn.value.filter(Mn)];Bd(e),Er.value=[],ln.value.expandAll=!0,Bn.value=e}function Bd(e){for(const t of e)vi(t)&&(t.expanded=!1,Bd(t.tasks))}function*ew(e,t){if(t&&(yield e.id),vi(e))for(let r=0;r<e.tasks.length;r++)yield*ew(e.tasks[r],!0)}function*$E(e){const t=e.id,r=new Set(ew(e,!1));for(let o=0;o<Bn.value.length;o++){const s=Bn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}function PE(e,t,r){return e?rw(e,t,r):!1}function Uh(e,t){const r=[...tw(e,t)];Bn.value=r,Fu.value=r.filter(Mn).map(o=>sr(o.id))}function*tw(e,t){for(const r of LE())yield*nw(r,e,t)}function*nw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Wd(e,o,w=>xm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Wd(e,o,w=>xm(w,t,r)))vi(b)?(s.set(b.id,m),Mn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Mn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...RE(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(m=>{var b;return Mn(m)||vi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Mn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function OE(e,t,r,o,s){if(o){if(Mn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Mn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Mn(c)&&s.add(c.id),t}}function*RE(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=vi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),Mn(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=OE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&Mn(p)&&o.add(p.id),yield d}}}function DE(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function rw(e,t,r){if(t.length===0||TE(e.name,t))if(r.success||r.failed||r.skipped){if(DE(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(CE(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if(Mn(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],vi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function xm(e,t,r){const o=xt.state.idMap.get(e.id);return o?rw(o,t,r):!1}function zE(e,t,r){const o=Qb(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)xa(s.id,p,!1);s.expanded=!0;const f=new Set(Er.value);f.add(s.id);const d=new Set(nw(s,t,r)),h=[...HE(s,d)];Er.value=Array.from(f),Bn.value=h}function IE(e,t){Vh(Ce.root.tasks,!1);const r=[...tw(e,t)];ln.value.expandAll=!1,Er.value=[],Bn.value=r,Fu.value=r.filter(Mn).map(o=>sr(o.id))}function FE(e,t){if(e.size)for(const r of Bn.value)e.has(r.id)&&(r.expanded=!0);else t&&Vh(Bn.value.filter(Mn),!0)}function Vh(e,t){for(const r of e)vi(r)&&(r.expanded=!0,Vh(r.tasks,!1));t&&(ln.value.expandAll=!1,Er.value=[])}function*HE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Bn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function qE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ia(s,t)),Hd.value=[...Ce.root.tasks],Uh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function BE(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=xt.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 Sm(e,t,r,o,s){e&&KE(r);const c=!e;queueMicrotask(()=>{t?VE(c):jE(c)}),queueMicrotask(()=>{XE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Hd.value&&qh(Hd.value.map(f=>sr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{GE(o,s,t)})}function*WE(){yield*Bn.value.filter(EE)}function UE(){const e=xt.state.idMap;let t;for(const r of WE())t=e.get(r.parentId),t&&wa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function VE(e){const t=xt.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ia(o[c],e),iu(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=sr(f.id);if(!d)continue;ia(d,e);const h=d.tasks;h!=null&&h.length&&iu(d.tasks)}}function jE(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>sr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ia(s,!1),iu(s.tasks),t.delete(s.id);const c=xt.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=sr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ia(p,e),iu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function GE(e,t,r=!1){const o=ln.value.expandAll,s=o!==!0,c=new Set(Er.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{_m(e,t,r)}),Rs.value||queueMicrotask(()=>{(Bn.value.length||r)&&(Rs.value=!0)}),f&&(queueMicrotask(()=>{FE(c,r),s&&(ln.value.expandAll=!1)}),queueMicrotask(()=>{_m(e,t,r)}))}function _m(e,t,r){Uh(e,t),r&&UE()}function iu(e){let t;for(let r=0;r<e.length;r++)t=e[r],wa(t)?Qb(t.id,!0):AE(t.id)}function KE(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function XE(e){var f,d,h,p,v,m;const t=xt.state.idMap,r=new Map(Ce.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,sr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[b,w]of o){if(!w)continue;const M=r.get(b);M&&(M.mode=w.mode,M.setupDuration=w.setupDuration,M.prepareDuration=w.prepareDuration,M.environmentLoad=w.environmentLoad,M.collectDuration=w.collectDuration,M.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,M.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:N,success:E,skipped:C,total:A,ignored:P,todo:L}=iw(w);s.totalTests+=A,s.testsFailed+=N,s.testsSuccess+=E,s.testsSkipped+=C,s.testsTodo+=L,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function iw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of ow(e))(!r||PE(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function YE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>iw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*ow(e){const t=Fh(e);let r;for(let o=0;o<t.length;o++)r=t[o],ta(r)?yield r:yield*ow(r.tasks)}class ZE{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Zn({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})){fs(this,"rafCollector");fs(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=fE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){qE(t,!0,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){BE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Sm(t,r,this.summary,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):Sm(t,r,this.summary,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return YE(t,r,o,s,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{ME(t)})}expandNode(t){queueMicrotask(()=>{zE(t,zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{NE()})}expandAllNodes(){queueMicrotask(()=>{IE(zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Uh(zn.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Ce=new ZE,Dr=We([414,896]),jh=xE("hash",{initialValue:{file:"",view:null,line:null}}),eo=_u(jh,"file"),jn=_u(jh,"view"),Ud=_u(jh,"line"),ou=We("idle"),JE=Te(()=>ou.value==="idle"),Wi=We([]),Ds=We(),Es=We(!0),to=We(!1),su=We(!0),gs=Te(()=>{var e;return(e=Bu.value)==null?void 0:e.coverage}),Vd=Te(()=>{var e;return(e=gs.value)==null?void 0:e.enabled}),vs=Te(()=>Vd.value&&!!gs.value.htmlReporter),yr=Iu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=Iu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),gn=Zn({navigation:yr.value[0],details:{size:yr.value[1],browser:Mo.value[0],main:Mo.value[1]}}),km=Te(()=>{var e;if(vs.value){const t=gs.value.reportsDirectory.lastIndexOf("/"),r=(e=gs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${gs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${gs.value.reportsDirectory.slice(t+1)}/index.html`}});Bt(ou,e=>{su.value=e==="running"},{immediate:!0});function QE(){const e=eo.value;if(e&&e.length>0){const t=sr(e);t?(Ds.value=t,Es.value=!1,to.value=!1):lE(()=>xt.state.getFiles(),()=>{Ds.value=sr(e),Es.value=!1,to.value=!1})}return Es}function lu(e){Es.value=e,to.value=!1,e&&(Ds.value=void 0,eo.value="")}function sw(e,t=null){eo.value=e.file.id,Ud.value=null,t!=null&&(un(()=>{Ud.value=t}),jn.value="editor"),Ds.value=sr(e.file.id),lu(!1)}function eL(){to.value=!0,Es.value=!1,Ds.value=void 0,eo.value=""}function tL(){gn.details.browser=100,gn.details.main=0,Mo.value=[100,0]}function nL(){gn.details.browser=33,gn.details.main=67,Mo.value=[33,67]}function rL(){gn.navigation=33,gn.details.size=67,yr.value=[33,67]}const iL={setCurrentFileId(e){eo.value=e,Ds.value=sr(e),lu(!1)},async setIframeViewport(e,t){Dr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},oL=location.port,sL=[location.hostname,oL].filter(Boolean).join(":"),lL=`${location.protocol==="https:"?"wss:":"ws:"}//${sL}/__vitest_api__`,Br=!!window.METADATA_PATH,aL=44,Tm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cL=new Uint8Array(64),lw=new Uint8Array(128);for(let e=0;e<Tm.length;e++){const t=Tm.charCodeAt(e);cL[e]=t,lw[t]=e}function _l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=lw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Cm(e,t){return e.pos>=t?!1:e.peek()!==aL}class uL{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function fL(e){const{length:t}=e,r=new uL(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=_l(r,s),s<b&&(m=!1),b=s,Cm(r,p)?(c=_l(r,c),f=_l(r,f),d=_l(r,d),Cm(r,p)?(h=_l(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||dL(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function dL(e){e.sort(hL)}function hL(e,t){return e[0]-t[0]}const pL=/^[\w+.-]+:\/\//,gL=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,vL=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var qt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(qt||(qt={}));function mL(e){return pL.test(e)}function yL(e){return e.startsWith("//")}function aw(e){return e.startsWith("/")}function bL(e){return e.startsWith("file:")}function Em(e){return/^[.?#]/.test(e)}function pc(e){const t=gL.exec(e);return cw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function wL(e){const t=vL.exec(e),r=t[2];return cw("file:","",t[1]||"","",aw(r)?r:"/"+r,t[3]||"",t[4]||"")}function cw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:qt.Absolute}}function Lm(e){if(yL(e)){const r=pc("http:"+e);return r.scheme="",r.type=qt.SchemeRelative,r}if(aw(e)){const r=pc("http://foo.com"+e);return r.scheme="",r.host="",r.type=qt.AbsolutePath,r}if(bL(e))return wL(e);if(mL(e))return pc(e);const t=pc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?qt.Query:e.startsWith("#")?qt.Hash:qt.RelativePath:qt.Empty,t}function xL(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function SL(e,t){uw(t,t.type),e.path==="/"?e.path=t.path:e.path=xL(t.path)+e.path}function uw(e,t){const r=t<=qt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function _L(e,t){if(!e&&!t)return"";const r=Lm(e);let o=r.type;if(t&&o!==qt.Absolute){const c=Lm(t),f=c.type;switch(o){case qt.Empty:r.hash=c.hash;case qt.Hash:r.query=c.query;case qt.Query:case qt.RelativePath:SL(r,c);case qt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case qt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}uw(r,o);const s=r.query+r.hash;switch(o){case qt.Hash:case qt.Query:return s;case qt.RelativePath:{const c=r.path.slice(1);return c?Em(t||e)&&!Em(c)?"./"+c+s:c+s:s||"."}case qt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Am(e,t){return t&&!t.endsWith("/")&&(t+="/"),_L(e,t)}function kL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,TL=1,CL=2,EL=3,LL=4;function AL(e,t){const r=Mm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Mm(e,o+1))e[o]=NL(e[o],t);return e}function Mm(e,t){for(let r=t;r<e.length;r++)if(!ML(e[r]))return r;return e.length}function ML(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function NL(e,t){return t||(e=e.slice()),e.sort($L)}function $L(e,t){return e[no]-t[no]}let au=!1;function PL(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return au=!0,s;c<0?r=s+1:o=s-1}return au=!1,r-1}function OL(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function RL(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function DL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function zL(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 au=f!==-1&&e[f][no]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=PL(e,t,d,h)}const IL="`line` must be greater than 0 (lines start at line 1)",FL="`column` must be greater than or equal to 0 (columns start at column 0)",Nm=-1,HL=1;class qL{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Am(h||"",kL(r));this.resolvedSources=p.map(w=>Am(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=AL(b,o)),this._decodedMemo=DL(),this._bySources=void 0,this._bySourceMemos=void 0}}function BL(e){var t;return(t=e)._decoded||(t._decoded=fL(e._encoded))}function WL(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(IL);if(o<0)throw new Error(FL);const c=BL(e);if(r>=c.length)return gc(null,null,null,null);const f=c[r],d=UL(f,e._decodedMemo,r,o,s||HL);if(d===-1)return gc(null,null,null,null);const h=f[d];if(h.length===1)return gc(null,null,null,null);const{names:p,resolvedSources:v}=e;return gc(v[h[TL]],h[CL]+1,h[EL],h.length===5?p[h[LL]]:null)}function gc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function UL(e,t,r,o,s){let c=zL(e,o,t,r);return au?c=(s===Nm?OL:RL)(e,o,c):s===Nm&&c++,c===-1||c===e.length?-1:c}const VL=/^[A-Za-z]:\//;function jL(e=""){return e&&e.replace(/\\/g,"/").replace(VL,t=>t.toUpperCase())}const GL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const XL=function(...e){e=e.map(o=>jL(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:KL();!s||s.length===0||(t=`${s}/${t}`,r=$m(s))}return t=YL(t,!r),r&&!$m(t)?`/${t}`:t.length>0?t:"."};function YL(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 $m=function(e){return GL.test(e)},fw=/^\s*at .*(?:\S:\d+|\(native\))/m,ZL=/^(?:eval@)?(?:\[native code\])?$/,JL=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function dw(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:"))&&(o=new URL(o).pathname),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 QL(e){let t=e.trim();if(ZL.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=dw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function eA(e){let t=e.trim();if(!fw.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]=dw(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=XL(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function tA(e,t={}){const{ignoreStackEntries:r=JL}=t;let o=fw.test(e)?rA(e):nA(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new qL(f),{line:h,column:p}=WL(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function nA(e){return e.split(`
|
|
18
|
+
`).map(t=>QL(t)).filter(Mb)}function rA(e){return e.split(`
|
|
19
|
+
`).map(t=>eA(t)).filter(Mb)}var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pw={},pi={};const iA="Á",oA="á",sA="Ă",lA="ă",aA="∾",cA="∿",uA="∾̳",fA="Â",dA="â",hA="´",pA="А",gA="а",vA="Æ",mA="æ",yA="",bA="𝔄",wA="𝔞",xA="À",SA="à",_A="ℵ",kA="ℵ",TA="Α",CA="α",EA="Ā",LA="ā",AA="⨿",MA="&",NA="&",$A="⩕",PA="⩓",OA="∧",RA="⩜",DA="⩘",zA="⩚",IA="∠",FA="⦤",HA="∠",qA="⦨",BA="⦩",WA="⦪",UA="⦫",VA="⦬",jA="⦭",GA="⦮",KA="⦯",XA="∡",YA="∟",ZA="⊾",JA="⦝",QA="∢",eM="Å",tM="⍼",nM="Ą",rM="ą",iM="𝔸",oM="𝕒",sM="⩯",lM="≈",aM="⩰",cM="≊",uM="≋",fM="'",dM="",hM="≈",pM="≊",gM="Å",vM="å",mM="𝒜",yM="𝒶",bM="≔",wM="*",xM="≈",SM="≍",_M="Ã",kM="ã",TM="Ä",CM="ä",EM="∳",LM="⨑",AM="≌",MM="϶",NM="‵",$M="∽",PM="⋍",OM="∖",RM="⫧",DM="⊽",zM="⌅",IM="⌆",FM="⌅",HM="⎵",qM="⎶",BM="≌",WM="Б",UM="б",VM="„",jM="∵",GM="∵",KM="∵",XM="⦰",YM="϶",ZM="ℬ",JM="ℬ",QM="Β",eN="β",tN="ℶ",nN="≬",rN="𝔅",iN="𝔟",oN="⋂",sN="◯",lN="⋃",aN="⨀",cN="⨁",uN="⨂",fN="⨆",dN="★",hN="▽",pN="△",gN="⨄",vN="⋁",mN="⋀",yN="⤍",bN="⧫",wN="▪",xN="▴",SN="▾",_N="◂",kN="▸",TN="␣",CN="▒",EN="░",LN="▓",AN="█",MN="=⃥",NN="≡⃥",$N="⫭",PN="⌐",ON="𝔹",RN="𝕓",DN="⊥",zN="⊥",IN="⋈",FN="⧉",HN="┐",qN="╕",BN="╖",WN="╗",UN="┌",VN="╒",jN="╓",GN="╔",KN="─",XN="═",YN="┬",ZN="╤",JN="╥",QN="╦",e$="┴",t$="╧",n$="╨",r$="╩",i$="⊟",o$="⊞",s$="⊠",l$="┘",a$="╛",c$="╜",u$="╝",f$="└",d$="╘",h$="╙",p$="╚",g$="│",v$="║",m$="┼",y$="╪",b$="╫",w$="╬",x$="┤",S$="╡",_$="╢",k$="╣",T$="├",C$="╞",E$="╟",L$="╠",A$="‵",M$="˘",N$="˘",$$="¦",P$="𝒷",O$="ℬ",R$="⁏",D$="∽",z$="⋍",I$="⧅",F$="\\",H$="⟈",q$="•",B$="•",W$="≎",U$="⪮",V$="≏",j$="≎",G$="≏",K$="Ć",X$="ć",Y$="⩄",Z$="⩉",J$="⩋",Q$="∩",eP="⋒",tP="⩇",nP="⩀",rP="ⅅ",iP="∩︀",oP="⁁",sP="ˇ",lP="ℭ",aP="⩍",cP="Č",uP="č",fP="Ç",dP="ç",hP="Ĉ",pP="ĉ",gP="∰",vP="⩌",mP="⩐",yP="Ċ",bP="ċ",wP="¸",xP="¸",SP="⦲",_P="¢",kP="·",TP="·",CP="𝔠",EP="ℭ",LP="Ч",AP="ч",MP="✓",NP="✓",$P="Χ",PP="χ",OP="ˆ",RP="≗",DP="↺",zP="↻",IP="⊛",FP="⊚",HP="⊝",qP="⊙",BP="®",WP="Ⓢ",UP="⊖",VP="⊕",jP="⊗",GP="○",KP="⧃",XP="≗",YP="⨐",ZP="⫯",JP="⧂",QP="∲",eO="”",tO="’",nO="♣",rO="♣",iO=":",oO="∷",sO="⩴",lO="≔",aO="≔",cO=",",uO="@",fO="∁",dO="∘",hO="∁",pO="ℂ",gO="≅",vO="⩭",mO="≡",yO="∮",bO="∯",wO="∮",xO="𝕔",SO="ℂ",_O="∐",kO="∐",TO="©",CO="©",EO="℗",LO="∳",AO="↵",MO="✗",NO="⨯",$O="𝒞",PO="𝒸",OO="⫏",RO="⫑",DO="⫐",zO="⫒",IO="⋯",FO="⤸",HO="⤵",qO="⋞",BO="⋟",WO="↶",UO="⤽",VO="⩈",jO="⩆",GO="≍",KO="∪",XO="⋓",YO="⩊",ZO="⊍",JO="⩅",QO="∪︀",eR="↷",tR="⤼",nR="⋞",rR="⋟",iR="⋎",oR="⋏",sR="¤",lR="↶",aR="↷",cR="⋎",uR="⋏",fR="∲",dR="∱",hR="⌭",pR="†",gR="‡",vR="ℸ",mR="↓",yR="↡",bR="⇓",wR="‐",xR="⫤",SR="⊣",_R="⤏",kR="˝",TR="Ď",CR="ď",ER="Д",LR="д",AR="‡",MR="⇊",NR="ⅅ",$R="ⅆ",PR="⤑",OR="⩷",RR="°",DR="∇",zR="Δ",IR="δ",FR="⦱",HR="⥿",qR="𝔇",BR="𝔡",WR="⥥",UR="⇃",VR="⇂",jR="´",GR="˙",KR="˝",XR="`",YR="˜",ZR="⋄",JR="⋄",QR="⋄",eD="♦",tD="♦",nD="¨",rD="ⅆ",iD="ϝ",oD="⋲",sD="÷",lD="÷",aD="⋇",cD="⋇",uD="Ђ",fD="ђ",dD="⌞",hD="⌍",pD="$",gD="𝔻",vD="𝕕",mD="¨",yD="˙",bD="⃜",wD="≐",xD="≑",SD="≐",_D="∸",kD="∔",TD="⊡",CD="⌆",ED="∯",LD="¨",AD="⇓",MD="⇐",ND="⇔",$D="⫤",PD="⟸",OD="⟺",RD="⟹",DD="⇒",zD="⊨",ID="⇑",FD="⇕",HD="∥",qD="⤓",BD="↓",WD="↓",UD="⇓",VD="⇵",jD="̑",GD="⇊",KD="⇃",XD="⇂",YD="⥐",ZD="⥞",JD="⥖",QD="↽",ez="⥟",tz="⥗",nz="⇁",rz="↧",iz="⊤",oz="⤐",sz="⌟",lz="⌌",az="𝒟",cz="𝒹",uz="Ѕ",fz="ѕ",dz="⧶",hz="Đ",pz="đ",gz="⋱",vz="▿",mz="▾",yz="⇵",bz="⥯",wz="⦦",xz="Џ",Sz="џ",_z="⟿",kz="É",Tz="é",Cz="⩮",Ez="Ě",Lz="ě",Az="Ê",Mz="ê",Nz="≖",$z="≕",Pz="Э",Oz="э",Rz="⩷",Dz="Ė",zz="ė",Iz="≑",Fz="ⅇ",Hz="≒",qz="𝔈",Bz="𝔢",Wz="⪚",Uz="È",Vz="è",jz="⪖",Gz="⪘",Kz="⪙",Xz="∈",Yz="⏧",Zz="ℓ",Jz="⪕",Qz="⪗",e2="Ē",t2="ē",n2="∅",r2="∅",i2="◻",o2="∅",s2="▫",l2=" ",a2=" ",c2=" ",u2="Ŋ",f2="ŋ",d2=" ",h2="Ę",p2="ę",g2="𝔼",v2="𝕖",m2="⋕",y2="⧣",b2="⩱",w2="ε",x2="Ε",S2="ε",_2="ϵ",k2="≖",T2="≕",C2="≂",E2="⪖",L2="⪕",A2="⩵",M2="=",N2="≂",$2="≟",P2="⇌",O2="≡",R2="⩸",D2="⧥",z2="⥱",I2="≓",F2="ℯ",H2="ℰ",q2="≐",B2="⩳",W2="≂",U2="Η",V2="η",j2="Ð",G2="ð",K2="Ë",X2="ë",Y2="€",Z2="!",J2="∃",Q2="∃",eI="ℰ",tI="ⅇ",nI="ⅇ",rI="≒",iI="Ф",oI="ф",sI="♀",lI="ffi",aI="ff",cI="ffl",uI="𝔉",fI="𝔣",dI="fi",hI="◼",pI="▪",gI="fj",vI="♭",mI="fl",yI="▱",bI="ƒ",wI="𝔽",xI="𝕗",SI="∀",_I="∀",kI="⋔",TI="⫙",CI="ℱ",EI="⨍",LI="½",AI="⅓",MI="¼",NI="⅕",$I="⅙",PI="⅛",OI="⅔",RI="⅖",DI="¾",zI="⅗",II="⅜",FI="⅘",HI="⅚",qI="⅝",BI="⅞",WI="⁄",UI="⌢",VI="𝒻",jI="ℱ",GI="ǵ",KI="Γ",XI="γ",YI="Ϝ",ZI="ϝ",JI="⪆",QI="Ğ",eF="ğ",tF="Ģ",nF="Ĝ",rF="ĝ",iF="Г",oF="г",sF="Ġ",lF="ġ",aF="≥",cF="≧",uF="⪌",fF="⋛",dF="≥",hF="≧",pF="⩾",gF="⪩",vF="⩾",mF="⪀",yF="⪂",bF="⪄",wF="⋛︀",xF="⪔",SF="𝔊",_F="𝔤",kF="≫",TF="⋙",CF="⋙",EF="ℷ",LF="Ѓ",AF="ѓ",MF="⪥",NF="≷",$F="⪒",PF="⪤",OF="⪊",RF="⪊",DF="⪈",zF="≩",IF="⪈",FF="≩",HF="⋧",qF="𝔾",BF="𝕘",WF="`",UF="≥",VF="⋛",jF="≧",GF="⪢",KF="≷",XF="⩾",YF="≳",ZF="𝒢",JF="ℊ",QF="≳",eH="⪎",tH="⪐",nH="⪧",rH="⩺",iH=">",oH=">",sH="≫",lH="⋗",aH="⦕",cH="⩼",uH="⪆",fH="⥸",dH="⋗",hH="⋛",pH="⪌",gH="≷",vH="≳",mH="≩︀",yH="≩︀",bH="ˇ",wH=" ",xH="½",SH="ℋ",_H="Ъ",kH="ъ",TH="⥈",CH="↔",EH="⇔",LH="↭",AH="^",MH="ℏ",NH="Ĥ",$H="ĥ",PH="♥",OH="♥",RH="…",DH="⊹",zH="𝔥",IH="ℌ",FH="ℋ",HH="⤥",qH="⤦",BH="⇿",WH="∻",UH="↩",VH="↪",jH="𝕙",GH="ℍ",KH="―",XH="─",YH="𝒽",ZH="ℋ",JH="ℏ",QH="Ħ",eq="ħ",tq="≎",nq="≏",rq="⁃",iq="‐",oq="Í",sq="í",lq="",aq="Î",cq="î",uq="И",fq="и",dq="İ",hq="Е",pq="е",gq="¡",vq="⇔",mq="𝔦",yq="ℑ",bq="Ì",wq="ì",xq="ⅈ",Sq="⨌",_q="∭",kq="⧜",Tq="℩",Cq="IJ",Eq="ij",Lq="Ī",Aq="ī",Mq="ℑ",Nq="ⅈ",$q="ℐ",Pq="ℑ",Oq="ı",Rq="ℑ",Dq="⊷",zq="Ƶ",Iq="⇒",Fq="℅",Hq="∞",qq="⧝",Bq="ı",Wq="⊺",Uq="∫",Vq="∬",jq="ℤ",Gq="∫",Kq="⊺",Xq="⋂",Yq="⨗",Zq="⨼",Jq="",Qq="",eB="Ё",tB="ё",nB="Į",rB="į",iB="𝕀",oB="𝕚",sB="Ι",lB="ι",aB="⨼",cB="¿",uB="𝒾",fB="ℐ",dB="∈",hB="⋵",pB="⋹",gB="⋴",vB="⋳",mB="∈",yB="",bB="Ĩ",wB="ĩ",xB="І",SB="і",_B="Ï",kB="ï",TB="Ĵ",CB="ĵ",EB="Й",LB="й",AB="𝔍",MB="𝔧",NB="ȷ",$B="𝕁",PB="𝕛",OB="𝒥",RB="𝒿",DB="Ј",zB="ј",IB="Є",FB="є",HB="Κ",qB="κ",BB="ϰ",WB="Ķ",UB="ķ",VB="К",jB="к",GB="𝔎",KB="𝔨",XB="ĸ",YB="Х",ZB="х",JB="Ќ",QB="ќ",e3="𝕂",t3="𝕜",n3="𝒦",r3="𝓀",i3="⇚",o3="Ĺ",s3="ĺ",l3="⦴",a3="ℒ",c3="Λ",u3="λ",f3="⟨",d3="⟪",h3="⦑",p3="⟨",g3="⪅",v3="ℒ",m3="«",y3="⇤",b3="⤟",w3="←",x3="↞",S3="⇐",_3="⤝",k3="↩",T3="↫",C3="⤹",E3="⥳",L3="↢",A3="⤙",M3="⤛",N3="⪫",$3="⪭",P3="⪭︀",O3="⤌",R3="⤎",D3="❲",z3="{",I3="[",F3="⦋",H3="⦏",q3="⦍",B3="Ľ",W3="ľ",U3="Ļ",V3="ļ",j3="⌈",G3="{",K3="Л",X3="л",Y3="⤶",Z3="“",J3="„",Q3="⥧",e5="⥋",t5="↲",n5="≤",r5="≦",i5="⟨",o5="⇤",s5="←",l5="←",a5="⇐",c5="⇆",u5="↢",f5="⌈",d5="⟦",h5="⥡",p5="⥙",g5="⇃",v5="⌊",m5="↽",y5="↼",b5="⇇",w5="↔",x5="↔",S5="⇔",_5="⇆",k5="⇋",T5="↭",C5="⥎",E5="↤",L5="⊣",A5="⥚",M5="⋋",N5="⧏",$5="⊲",P5="⊴",O5="⥑",R5="⥠",D5="⥘",z5="↿",I5="⥒",F5="↼",H5="⪋",q5="⋚",B5="≤",W5="≦",U5="⩽",V5="⪨",j5="⩽",G5="⩿",K5="⪁",X5="⪃",Y5="⋚︀",Z5="⪓",J5="⪅",Q5="⋖",e8="⋚",t8="⪋",n8="⋚",r8="≦",i8="≶",o8="≶",s8="⪡",l8="≲",a8="⩽",c8="≲",u8="⥼",f8="⌊",d8="𝔏",h8="𝔩",p8="≶",g8="⪑",v8="⥢",m8="↽",y8="↼",b8="⥪",w8="▄",x8="Љ",S8="љ",_8="⇇",k8="≪",T8="⋘",C8="⌞",E8="⇚",L8="⥫",A8="◺",M8="Ŀ",N8="ŀ",$8="⎰",P8="⎰",O8="⪉",R8="⪉",D8="⪇",z8="≨",I8="⪇",F8="≨",H8="⋦",q8="⟬",B8="⇽",W8="⟦",U8="⟵",V8="⟵",j8="⟸",G8="⟷",K8="⟷",X8="⟺",Y8="⟼",Z8="⟶",J8="⟶",Q8="⟹",eW="↫",tW="↬",nW="⦅",rW="𝕃",iW="𝕝",oW="⨭",sW="⨴",lW="∗",aW="_",cW="↙",uW="↘",fW="◊",dW="◊",hW="⧫",pW="(",gW="⦓",vW="⇆",mW="⌟",yW="⇋",bW="⥭",wW="",xW="⊿",SW="‹",_W="𝓁",kW="ℒ",TW="↰",CW="↰",EW="≲",LW="⪍",AW="⪏",MW="[",NW="‘",$W="‚",PW="Ł",OW="ł",RW="⪦",DW="⩹",zW="<",IW="<",FW="≪",HW="⋖",qW="⋋",BW="⋉",WW="⥶",UW="⩻",VW="◃",jW="⊴",GW="◂",KW="⦖",XW="⥊",YW="⥦",ZW="≨︀",JW="≨︀",QW="¯",e4="♂",t4="✠",n4="✠",r4="↦",i4="↦",o4="↧",s4="↤",l4="↥",a4="▮",c4="⨩",u4="М",f4="м",d4="—",h4="∺",p4="∡",g4=" ",v4="ℳ",m4="𝔐",y4="𝔪",b4="℧",w4="µ",x4="*",S4="⫰",_4="∣",k4="·",T4="⊟",C4="−",E4="∸",L4="⨪",A4="∓",M4="⫛",N4="…",$4="∓",P4="⊧",O4="𝕄",R4="𝕞",D4="∓",z4="𝓂",I4="ℳ",F4="∾",H4="Μ",q4="μ",B4="⊸",W4="⊸",U4="∇",V4="Ń",j4="ń",G4="∠⃒",K4="≉",X4="⩰̸",Y4="≋̸",Z4="ʼn",J4="≉",Q4="♮",eU="ℕ",tU="♮",nU=" ",rU="≎̸",iU="≏̸",oU="⩃",sU="Ň",lU="ň",aU="Ņ",cU="ņ",uU="≇",fU="⩭̸",dU="⩂",hU="Н",pU="н",gU="–",vU="⤤",mU="↗",yU="⇗",bU="↗",wU="≠",xU="≐̸",SU="",_U="",kU="",TU="",CU="≢",EU="⤨",LU="≂̸",AU="≫",MU="≪",NU=`
|
|
20
|
+
`,$U="∄",PU="∄",OU="𝔑",RU="𝔫",DU="≧̸",zU="≱",IU="≱",FU="≧̸",HU="⩾̸",qU="⩾̸",BU="⋙̸",WU="≵",UU="≫⃒",VU="≯",jU="≯",GU="≫̸",KU="↮",XU="⇎",YU="⫲",ZU="∋",JU="⋼",QU="⋺",e6="∋",t6="Њ",n6="њ",r6="↚",i6="⇍",o6="‥",s6="≦̸",l6="≰",a6="↚",c6="⇍",u6="↮",f6="⇎",d6="≰",h6="≦̸",p6="⩽̸",g6="⩽̸",v6="≮",m6="⋘̸",y6="≴",b6="≪⃒",w6="≮",x6="⋪",S6="⋬",_6="≪̸",k6="∤",T6="",C6=" ",E6="𝕟",L6="ℕ",A6="⫬",M6="¬",N6="≢",$6="≭",P6="∦",O6="∉",R6="≠",D6="≂̸",z6="∄",I6="≯",F6="≱",H6="≧̸",q6="≫̸",B6="≹",W6="⩾̸",U6="≵",V6="≎̸",j6="≏̸",G6="∉",K6="⋵̸",X6="⋹̸",Y6="∉",Z6="⋷",J6="⋶",Q6="⧏̸",eV="⋪",tV="⋬",nV="≮",rV="≰",iV="≸",oV="≪̸",sV="⩽̸",lV="≴",aV="⪢̸",cV="⪡̸",uV="∌",fV="∌",dV="⋾",hV="⋽",pV="⊀",gV="⪯̸",vV="⋠",mV="∌",yV="⧐̸",bV="⋫",wV="⋭",xV="⊏̸",SV="⋢",_V="⊐̸",kV="⋣",TV="⊂⃒",CV="⊈",EV="⊁",LV="⪰̸",AV="⋡",MV="≿̸",NV="⊃⃒",$V="⊉",PV="≁",OV="≄",RV="≇",DV="≉",zV="∤",IV="∦",FV="∦",HV="⫽⃥",qV="∂̸",BV="⨔",WV="⊀",UV="⋠",VV="⊀",jV="⪯̸",GV="⪯̸",KV="⤳̸",XV="↛",YV="⇏",ZV="↝̸",JV="↛",QV="⇏",ej="⋫",tj="⋭",nj="⊁",rj="⋡",ij="⪰̸",oj="𝒩",sj="𝓃",lj="∤",aj="∦",cj="≁",uj="≄",fj="≄",dj="∤",hj="∦",pj="⋢",gj="⋣",vj="⊄",mj="⫅̸",yj="⊈",bj="⊂⃒",wj="⊈",xj="⫅̸",Sj="⊁",_j="⪰̸",kj="⊅",Tj="⫆̸",Cj="⊉",Ej="⊃⃒",Lj="⊉",Aj="⫆̸",Mj="≹",Nj="Ñ",$j="ñ",Pj="≸",Oj="⋪",Rj="⋬",Dj="⋫",zj="⋭",Ij="Ν",Fj="ν",Hj="#",qj="№",Bj=" ",Wj="≍⃒",Uj="⊬",Vj="⊭",jj="⊮",Gj="⊯",Kj="≥⃒",Xj=">⃒",Yj="⤄",Zj="⧞",Jj="⤂",Qj="≤⃒",eG="<⃒",tG="⊴⃒",nG="⤃",rG="⊵⃒",iG="∼⃒",oG="⤣",sG="↖",lG="⇖",aG="↖",cG="⤧",uG="Ó",fG="ó",dG="⊛",hG="Ô",pG="ô",gG="⊚",vG="О",mG="о",yG="⊝",bG="Ő",wG="ő",xG="⨸",SG="⊙",_G="⦼",kG="Œ",TG="œ",CG="⦿",EG="𝔒",LG="𝔬",AG="˛",MG="Ò",NG="ò",$G="⧁",PG="⦵",OG="Ω",RG="∮",DG="↺",zG="⦾",IG="⦻",FG="‾",HG="⧀",qG="Ō",BG="ō",WG="Ω",UG="ω",VG="Ο",jG="ο",GG="⦶",KG="⊖",XG="𝕆",YG="𝕠",ZG="⦷",JG="“",QG="‘",e9="⦹",t9="⊕",n9="↻",r9="⩔",i9="∨",o9="⩝",s9="ℴ",l9="ℴ",a9="ª",c9="º",u9="⊶",f9="⩖",d9="⩗",h9="⩛",p9="Ⓢ",g9="𝒪",v9="ℴ",m9="Ø",y9="ø",b9="⊘",w9="Õ",x9="õ",S9="⨶",_9="⨷",k9="⊗",T9="Ö",C9="ö",E9="⌽",L9="‾",A9="⏞",M9="⎴",N9="⏜",$9="¶",P9="∥",O9="∥",R9="⫳",D9="⫽",z9="∂",I9="∂",F9="П",H9="п",q9="%",B9=".",W9="‰",U9="⊥",V9="‱",j9="𝔓",G9="𝔭",K9="Φ",X9="φ",Y9="ϕ",Z9="ℳ",J9="☎",Q9="Π",e7="π",t7="⋔",n7="ϖ",r7="ℏ",i7="ℎ",o7="ℏ",s7="⨣",l7="⊞",a7="⨢",c7="+",u7="∔",f7="⨥",d7="⩲",h7="±",p7="±",g7="⨦",v7="⨧",m7="±",y7="ℌ",b7="⨕",w7="𝕡",x7="ℙ",S7="£",_7="⪷",k7="⪻",T7="≺",C7="≼",E7="⪷",L7="≺",A7="≼",M7="≺",N7="⪯",$7="≼",P7="≾",O7="⪯",R7="⪹",D7="⪵",z7="⋨",I7="⪯",F7="⪳",H7="≾",q7="′",B7="″",W7="ℙ",U7="⪹",V7="⪵",j7="⋨",G7="∏",K7="∏",X7="⌮",Y7="⌒",Z7="⌓",J7="∝",Q7="∝",eK="∷",tK="∝",nK="≾",rK="⊰",iK="𝒫",oK="𝓅",sK="Ψ",lK="ψ",aK=" ",cK="𝔔",uK="𝔮",fK="⨌",dK="𝕢",hK="ℚ",pK="⁗",gK="𝒬",vK="𝓆",mK="ℍ",yK="⨖",bK="?",wK="≟",xK='"',SK='"',_K="⇛",kK="∽̱",TK="Ŕ",CK="ŕ",EK="√",LK="⦳",AK="⟩",MK="⟫",NK="⦒",$K="⦥",PK="⟩",OK="»",RK="⥵",DK="⇥",zK="⤠",IK="⤳",FK="→",HK="↠",qK="⇒",BK="⤞",WK="↪",UK="↬",VK="⥅",jK="⥴",GK="⤖",KK="↣",XK="↝",YK="⤚",ZK="⤜",JK="∶",QK="ℚ",eX="⤍",tX="⤏",nX="⤐",rX="❳",iX="}",oX="]",sX="⦌",lX="⦎",aX="⦐",cX="Ř",uX="ř",fX="Ŗ",dX="ŗ",hX="⌉",pX="}",gX="Р",vX="р",mX="⤷",yX="⥩",bX="”",wX="”",xX="↳",SX="ℜ",_X="ℛ",kX="ℜ",TX="ℝ",CX="ℜ",EX="▭",LX="®",AX="®",MX="∋",NX="⇋",$X="⥯",PX="⥽",OX="⌋",RX="𝔯",DX="ℜ",zX="⥤",IX="⇁",FX="⇀",HX="⥬",qX="Ρ",BX="ρ",WX="ϱ",UX="⟩",VX="⇥",jX="→",GX="→",KX="⇒",XX="⇄",YX="↣",ZX="⌉",JX="⟧",QX="⥝",eY="⥕",tY="⇂",nY="⌋",rY="⇁",iY="⇀",oY="⇄",sY="⇌",lY="⇉",aY="↝",cY="↦",uY="⊢",fY="⥛",dY="⋌",hY="⧐",pY="⊳",gY="⊵",vY="⥏",mY="⥜",yY="⥔",bY="↾",wY="⥓",xY="⇀",SY="˚",_Y="≓",kY="⇄",TY="⇌",CY="",EY="⎱",LY="⎱",AY="⫮",MY="⟭",NY="⇾",$Y="⟧",PY="⦆",OY="𝕣",RY="ℝ",DY="⨮",zY="⨵",IY="⥰",FY=")",HY="⦔",qY="⨒",BY="⇉",WY="⇛",UY="›",VY="𝓇",jY="ℛ",GY="↱",KY="↱",XY="]",YY="’",ZY="’",JY="⋌",QY="⋊",eZ="▹",tZ="⊵",nZ="▸",rZ="⧎",iZ="⧴",oZ="⥨",sZ="℞",lZ="Ś",aZ="ś",cZ="‚",uZ="⪸",fZ="Š",dZ="š",hZ="⪼",pZ="≻",gZ="≽",vZ="⪰",mZ="⪴",yZ="Ş",bZ="ş",wZ="Ŝ",xZ="ŝ",SZ="⪺",_Z="⪶",kZ="⋩",TZ="⨓",CZ="≿",EZ="С",LZ="с",AZ="⊡",MZ="⋅",NZ="⩦",$Z="⤥",PZ="↘",OZ="⇘",RZ="↘",DZ="§",zZ=";",IZ="⤩",FZ="∖",HZ="∖",qZ="✶",BZ="𝔖",WZ="𝔰",UZ="⌢",VZ="♯",jZ="Щ",GZ="щ",KZ="Ш",XZ="ш",YZ="↓",ZZ="←",JZ="∣",QZ="∥",eJ="→",tJ="↑",nJ="",rJ="Σ",iJ="σ",oJ="ς",sJ="ς",lJ="∼",aJ="⩪",cJ="≃",uJ="≃",fJ="⪞",dJ="⪠",hJ="⪝",pJ="⪟",gJ="≆",vJ="⨤",mJ="⥲",yJ="←",bJ="∘",wJ="∖",xJ="⨳",SJ="⧤",_J="∣",kJ="⌣",TJ="⪪",CJ="⪬",EJ="⪬︀",LJ="Ь",AJ="ь",MJ="⌿",NJ="⧄",$J="/",PJ="𝕊",OJ="𝕤",RJ="♠",DJ="♠",zJ="∥",IJ="⊓",FJ="⊓︀",HJ="⊔",qJ="⊔︀",BJ="√",WJ="⊏",UJ="⊑",VJ="⊏",jJ="⊑",GJ="⊐",KJ="⊒",XJ="⊐",YJ="⊒",ZJ="□",JJ="□",QJ="⊓",eQ="⊏",tQ="⊑",nQ="⊐",rQ="⊒",iQ="⊔",oQ="▪",sQ="□",lQ="▪",aQ="→",cQ="𝒮",uQ="𝓈",fQ="∖",dQ="⌣",hQ="⋆",pQ="⋆",gQ="☆",vQ="★",mQ="ϵ",yQ="ϕ",bQ="¯",wQ="⊂",xQ="⋐",SQ="⪽",_Q="⫅",kQ="⊆",TQ="⫃",CQ="⫁",EQ="⫋",LQ="⊊",AQ="⪿",MQ="⥹",NQ="⊂",$Q="⋐",PQ="⊆",OQ="⫅",RQ="⊆",DQ="⊊",zQ="⫋",IQ="⫇",FQ="⫕",HQ="⫓",qQ="⪸",BQ="≻",WQ="≽",UQ="≻",VQ="⪰",jQ="≽",GQ="≿",KQ="⪰",XQ="⪺",YQ="⪶",ZQ="⋩",JQ="≿",QQ="∋",eee="∑",tee="∑",nee="♪",ree="¹",iee="²",oee="³",see="⊃",lee="⋑",aee="⪾",cee="⫘",uee="⫆",fee="⊇",dee="⫄",hee="⊃",pee="⊇",gee="⟉",vee="⫗",mee="⥻",yee="⫂",bee="⫌",wee="⊋",xee="⫀",See="⊃",_ee="⋑",kee="⊇",Tee="⫆",Cee="⊋",Eee="⫌",Lee="⫈",Aee="⫔",Mee="⫖",Nee="⤦",$ee="↙",Pee="⇙",Oee="↙",Ree="⤪",Dee="ß",zee=" ",Iee="⌖",Fee="Τ",Hee="τ",qee="⎴",Bee="Ť",Wee="ť",Uee="Ţ",Vee="ţ",jee="Т",Gee="т",Kee="⃛",Xee="⌕",Yee="𝔗",Zee="𝔱",Jee="∴",Qee="∴",ete="∴",tte="Θ",nte="θ",rte="ϑ",ite="ϑ",ote="≈",ste="∼",lte=" ",ate=" ",cte=" ",ute="≈",fte="∼",dte="Þ",hte="þ",pte="˜",gte="∼",vte="≃",mte="≅",yte="≈",bte="⨱",wte="⊠",xte="×",Ste="⨰",_te="∭",kte="⤨",Tte="⌶",Cte="⫱",Ete="⊤",Lte="𝕋",Ate="𝕥",Mte="⫚",Nte="⤩",$te="‴",Pte="™",Ote="™",Rte="▵",Dte="▿",zte="◃",Ite="⊴",Fte="≜",Hte="▹",qte="⊵",Bte="◬",Wte="≜",Ute="⨺",Vte="⃛",jte="⨹",Gte="⧍",Kte="⨻",Xte="⏢",Yte="𝒯",Zte="𝓉",Jte="Ц",Qte="ц",ene="Ћ",tne="ћ",nne="Ŧ",rne="ŧ",ine="≬",one="↞",sne="↠",lne="Ú",ane="ú",cne="↑",une="↟",fne="⇑",dne="⥉",hne="Ў",pne="ў",gne="Ŭ",vne="ŭ",mne="Û",yne="û",bne="У",wne="у",xne="⇅",Sne="Ű",_ne="ű",kne="⥮",Tne="⥾",Cne="𝔘",Ene="𝔲",Lne="Ù",Ane="ù",Mne="⥣",Nne="↿",$ne="↾",Pne="▀",One="⌜",Rne="⌜",Dne="⌏",zne="◸",Ine="Ū",Fne="ū",Hne="¨",qne="_",Bne="⏟",Wne="⎵",Une="⏝",Vne="⋃",jne="⊎",Gne="Ų",Kne="ų",Xne="𝕌",Yne="𝕦",Zne="⤒",Jne="↑",Qne="↑",ere="⇑",tre="⇅",nre="↕",rre="↕",ire="⇕",ore="⥮",sre="↿",lre="↾",are="⊎",cre="↖",ure="↗",fre="υ",dre="ϒ",hre="ϒ",pre="Υ",gre="υ",vre="↥",mre="⊥",yre="⇈",bre="⌝",wre="⌝",xre="⌎",Sre="Ů",_re="ů",kre="◹",Tre="𝒰",Cre="𝓊",Ere="⋰",Lre="Ũ",Are="ũ",Mre="▵",Nre="▴",$re="⇈",Pre="Ü",Ore="ü",Rre="⦧",Dre="⦜",zre="ϵ",Ire="ϰ",Fre="∅",Hre="ϕ",qre="ϖ",Bre="∝",Wre="↕",Ure="⇕",Vre="ϱ",jre="ς",Gre="⊊︀",Kre="⫋︀",Xre="⊋︀",Yre="⫌︀",Zre="ϑ",Jre="⊲",Qre="⊳",eie="⫨",tie="⫫",nie="⫩",rie="В",iie="в",oie="⊢",sie="⊨",lie="⊩",aie="⊫",cie="⫦",uie="⊻",fie="∨",die="⋁",hie="≚",pie="⋮",gie="|",vie="‖",mie="|",yie="‖",bie="∣",wie="|",xie="❘",Sie="≀",_ie=" ",kie="𝔙",Tie="𝔳",Cie="⊲",Eie="⊂⃒",Lie="⊃⃒",Aie="𝕍",Mie="𝕧",Nie="∝",$ie="⊳",Pie="𝒱",Oie="𝓋",Rie="⫋︀",Die="⊊︀",zie="⫌︀",Iie="⊋︀",Fie="⊪",Hie="⦚",qie="Ŵ",Bie="ŵ",Wie="⩟",Uie="∧",Vie="⋀",jie="≙",Gie="℘",Kie="𝔚",Xie="𝔴",Yie="𝕎",Zie="𝕨",Jie="℘",Qie="≀",eoe="≀",toe="𝒲",noe="𝓌",roe="⋂",ioe="◯",ooe="⋃",soe="▽",loe="𝔛",aoe="𝔵",coe="⟷",uoe="⟺",foe="Ξ",doe="ξ",hoe="⟵",poe="⟸",goe="⟼",voe="⋻",moe="⨀",yoe="𝕏",boe="𝕩",woe="⨁",xoe="⨂",Soe="⟶",_oe="⟹",koe="𝒳",Toe="𝓍",Coe="⨆",Eoe="⨄",Loe="△",Aoe="⋁",Moe="⋀",Noe="Ý",$oe="ý",Poe="Я",Ooe="я",Roe="Ŷ",Doe="ŷ",zoe="Ы",Ioe="ы",Foe="¥",Hoe="𝔜",qoe="𝔶",Boe="Ї",Woe="ї",Uoe="𝕐",Voe="𝕪",joe="𝒴",Goe="𝓎",Koe="Ю",Xoe="ю",Yoe="ÿ",Zoe="Ÿ",Joe="Ź",Qoe="ź",ese="Ž",tse="ž",nse="З",rse="з",ise="Ż",ose="ż",sse="ℨ",lse="",ase="Ζ",cse="ζ",use="𝔷",fse="ℨ",dse="Ж",hse="ж",pse="⇝",gse="𝕫",vse="ℤ",mse="𝒵",yse="𝓏",bse="",wse="",gw={Aacute:iA,aacute:oA,Abreve:sA,abreve:lA,ac:aA,acd:cA,acE:uA,Acirc:fA,acirc:dA,acute:hA,Acy:pA,acy:gA,AElig:vA,aelig:mA,af:yA,Afr:bA,afr:wA,Agrave:xA,agrave:SA,alefsym:_A,aleph:kA,Alpha:TA,alpha:CA,Amacr:EA,amacr:LA,amalg:AA,amp:MA,AMP:NA,andand:$A,And:PA,and:OA,andd:RA,andslope:DA,andv:zA,ang:IA,ange:FA,angle:HA,angmsdaa:qA,angmsdab:BA,angmsdac:WA,angmsdad:UA,angmsdae:VA,angmsdaf:jA,angmsdag:GA,angmsdah:KA,angmsd:XA,angrt:YA,angrtvb:ZA,angrtvbd:JA,angsph:QA,angst:eM,angzarr:tM,Aogon:nM,aogon:rM,Aopf:iM,aopf:oM,apacir:sM,ap:lM,apE:aM,ape:cM,apid:uM,apos:fM,ApplyFunction:dM,approx:hM,approxeq:pM,Aring:gM,aring:vM,Ascr:mM,ascr:yM,Assign:bM,ast:wM,asymp:xM,asympeq:SM,Atilde:_M,atilde:kM,Auml:TM,auml:CM,awconint:EM,awint:LM,backcong:AM,backepsilon:MM,backprime:NM,backsim:$M,backsimeq:PM,Backslash:OM,Barv:RM,barvee:DM,barwed:zM,Barwed:IM,barwedge:FM,bbrk:HM,bbrktbrk:qM,bcong:BM,Bcy:WM,bcy:UM,bdquo:VM,becaus:jM,because:GM,Because:KM,bemptyv:XM,bepsi:YM,bernou:ZM,Bernoullis:JM,Beta:QM,beta:eN,beth:tN,between:nN,Bfr:rN,bfr:iN,bigcap:oN,bigcirc:sN,bigcup:lN,bigodot:aN,bigoplus:cN,bigotimes:uN,bigsqcup:fN,bigstar:dN,bigtriangledown:hN,bigtriangleup:pN,biguplus:gN,bigvee:vN,bigwedge:mN,bkarow:yN,blacklozenge:bN,blacksquare:wN,blacktriangle:xN,blacktriangledown:SN,blacktriangleleft:_N,blacktriangleright:kN,blank:TN,blk12:CN,blk14:EN,blk34:LN,block:AN,bne:MN,bnequiv:NN,bNot:$N,bnot:PN,Bopf:ON,bopf:RN,bot:DN,bottom:zN,bowtie:IN,boxbox:FN,boxdl:HN,boxdL:qN,boxDl:BN,boxDL:WN,boxdr:UN,boxdR:VN,boxDr:jN,boxDR:GN,boxh:KN,boxH:XN,boxhd:YN,boxHd:ZN,boxhD:JN,boxHD:QN,boxhu:e$,boxHu:t$,boxhU:n$,boxHU:r$,boxminus:i$,boxplus:o$,boxtimes:s$,boxul:l$,boxuL:a$,boxUl:c$,boxUL:u$,boxur:f$,boxuR:d$,boxUr:h$,boxUR:p$,boxv:g$,boxV:v$,boxvh:m$,boxvH:y$,boxVh:b$,boxVH:w$,boxvl:x$,boxvL:S$,boxVl:_$,boxVL:k$,boxvr:T$,boxvR:C$,boxVr:E$,boxVR:L$,bprime:A$,breve:M$,Breve:N$,brvbar:$$,bscr:P$,Bscr:O$,bsemi:R$,bsim:D$,bsime:z$,bsolb:I$,bsol:F$,bsolhsub:H$,bull:q$,bullet:B$,bump:W$,bumpE:U$,bumpe:V$,Bumpeq:j$,bumpeq:G$,Cacute:K$,cacute:X$,capand:Y$,capbrcup:Z$,capcap:J$,cap:Q$,Cap:eP,capcup:tP,capdot:nP,CapitalDifferentialD:rP,caps:iP,caret:oP,caron:sP,Cayleys:lP,ccaps:aP,Ccaron:cP,ccaron:uP,Ccedil:fP,ccedil:dP,Ccirc:hP,ccirc:pP,Cconint:gP,ccups:vP,ccupssm:mP,Cdot:yP,cdot:bP,cedil:wP,Cedilla:xP,cemptyv:SP,cent:_P,centerdot:kP,CenterDot:TP,cfr:CP,Cfr:EP,CHcy:LP,chcy:AP,check:MP,checkmark:NP,Chi:$P,chi:PP,circ:OP,circeq:RP,circlearrowleft:DP,circlearrowright:zP,circledast:IP,circledcirc:FP,circleddash:HP,CircleDot:qP,circledR:BP,circledS:WP,CircleMinus:UP,CirclePlus:VP,CircleTimes:jP,cir:GP,cirE:KP,cire:XP,cirfnint:YP,cirmid:ZP,cirscir:JP,ClockwiseContourIntegral:QP,CloseCurlyDoubleQuote:eO,CloseCurlyQuote:tO,clubs:nO,clubsuit:rO,colon:iO,Colon:oO,Colone:sO,colone:lO,coloneq:aO,comma:cO,commat:uO,comp:fO,compfn:dO,complement:hO,complexes:pO,cong:gO,congdot:vO,Congruent:mO,conint:yO,Conint:bO,ContourIntegral:wO,copf:xO,Copf:SO,coprod:_O,Coproduct:kO,copy:TO,COPY:CO,copysr:EO,CounterClockwiseContourIntegral:LO,crarr:AO,cross:MO,Cross:NO,Cscr:$O,cscr:PO,csub:OO,csube:RO,csup:DO,csupe:zO,ctdot:IO,cudarrl:FO,cudarrr:HO,cuepr:qO,cuesc:BO,cularr:WO,cularrp:UO,cupbrcap:VO,cupcap:jO,CupCap:GO,cup:KO,Cup:XO,cupcup:YO,cupdot:ZO,cupor:JO,cups:QO,curarr:eR,curarrm:tR,curlyeqprec:nR,curlyeqsucc:rR,curlyvee:iR,curlywedge:oR,curren:sR,curvearrowleft:lR,curvearrowright:aR,cuvee:cR,cuwed:uR,cwconint:fR,cwint:dR,cylcty:hR,dagger:pR,Dagger:gR,daleth:vR,darr:mR,Darr:yR,dArr:bR,dash:wR,Dashv:xR,dashv:SR,dbkarow:_R,dblac:kR,Dcaron:TR,dcaron:CR,Dcy:ER,dcy:LR,ddagger:AR,ddarr:MR,DD:NR,dd:$R,DDotrahd:PR,ddotseq:OR,deg:RR,Del:DR,Delta:zR,delta:IR,demptyv:FR,dfisht:HR,Dfr:qR,dfr:BR,dHar:WR,dharl:UR,dharr:VR,DiacriticalAcute:jR,DiacriticalDot:GR,DiacriticalDoubleAcute:KR,DiacriticalGrave:XR,DiacriticalTilde:YR,diam:ZR,diamond:JR,Diamond:QR,diamondsuit:eD,diams:tD,die:nD,DifferentialD:rD,digamma:iD,disin:oD,div:sD,divide:lD,divideontimes:aD,divonx:cD,DJcy:uD,djcy:fD,dlcorn:dD,dlcrop:hD,dollar:pD,Dopf:gD,dopf:vD,Dot:mD,dot:yD,DotDot:bD,doteq:wD,doteqdot:xD,DotEqual:SD,dotminus:_D,dotplus:kD,dotsquare:TD,doublebarwedge:CD,DoubleContourIntegral:ED,DoubleDot:LD,DoubleDownArrow:AD,DoubleLeftArrow:MD,DoubleLeftRightArrow:ND,DoubleLeftTee:$D,DoubleLongLeftArrow:PD,DoubleLongLeftRightArrow:OD,DoubleLongRightArrow:RD,DoubleRightArrow:DD,DoubleRightTee:zD,DoubleUpArrow:ID,DoubleUpDownArrow:FD,DoubleVerticalBar:HD,DownArrowBar:qD,downarrow:BD,DownArrow:WD,Downarrow:UD,DownArrowUpArrow:VD,DownBreve:jD,downdownarrows:GD,downharpoonleft:KD,downharpoonright:XD,DownLeftRightVector:YD,DownLeftTeeVector:ZD,DownLeftVectorBar:JD,DownLeftVector:QD,DownRightTeeVector:ez,DownRightVectorBar:tz,DownRightVector:nz,DownTeeArrow:rz,DownTee:iz,drbkarow:oz,drcorn:sz,drcrop:lz,Dscr:az,dscr:cz,DScy:uz,dscy:fz,dsol:dz,Dstrok:hz,dstrok:pz,dtdot:gz,dtri:vz,dtrif:mz,duarr:yz,duhar:bz,dwangle:wz,DZcy:xz,dzcy:Sz,dzigrarr:_z,Eacute:kz,eacute:Tz,easter:Cz,Ecaron:Ez,ecaron:Lz,Ecirc:Az,ecirc:Mz,ecir:Nz,ecolon:$z,Ecy:Pz,ecy:Oz,eDDot:Rz,Edot:Dz,edot:zz,eDot:Iz,ee:Fz,efDot:Hz,Efr:qz,efr:Bz,eg:Wz,Egrave:Uz,egrave:Vz,egs:jz,egsdot:Gz,el:Kz,Element:Xz,elinters:Yz,ell:Zz,els:Jz,elsdot:Qz,Emacr:e2,emacr:t2,empty:n2,emptyset:r2,EmptySmallSquare:i2,emptyv:o2,EmptyVerySmallSquare:s2,emsp13:l2,emsp14:a2,emsp:c2,ENG:u2,eng:f2,ensp:d2,Eogon:h2,eogon:p2,Eopf:g2,eopf:v2,epar:m2,eparsl:y2,eplus:b2,epsi:w2,Epsilon:x2,epsilon:S2,epsiv:_2,eqcirc:k2,eqcolon:T2,eqsim:C2,eqslantgtr:E2,eqslantless:L2,Equal:A2,equals:M2,EqualTilde:N2,equest:$2,Equilibrium:P2,equiv:O2,equivDD:R2,eqvparsl:D2,erarr:z2,erDot:I2,escr:F2,Escr:H2,esdot:q2,Esim:B2,esim:W2,Eta:U2,eta:V2,ETH:j2,eth:G2,Euml:K2,euml:X2,euro:Y2,excl:Z2,exist:J2,Exists:Q2,expectation:eI,exponentiale:tI,ExponentialE:nI,fallingdotseq:rI,Fcy:iI,fcy:oI,female:sI,ffilig:lI,fflig:aI,ffllig:cI,Ffr:uI,ffr:fI,filig:dI,FilledSmallSquare:hI,FilledVerySmallSquare:pI,fjlig:gI,flat:vI,fllig:mI,fltns:yI,fnof:bI,Fopf:wI,fopf:xI,forall:SI,ForAll:_I,fork:kI,forkv:TI,Fouriertrf:CI,fpartint:EI,frac12:LI,frac13:AI,frac14:MI,frac15:NI,frac16:$I,frac18:PI,frac23:OI,frac25:RI,frac34:DI,frac35:zI,frac38:II,frac45:FI,frac56:HI,frac58:qI,frac78:BI,frasl:WI,frown:UI,fscr:VI,Fscr:jI,gacute:GI,Gamma:KI,gamma:XI,Gammad:YI,gammad:ZI,gap:JI,Gbreve:QI,gbreve:eF,Gcedil:tF,Gcirc:nF,gcirc:rF,Gcy:iF,gcy:oF,Gdot:sF,gdot:lF,ge:aF,gE:cF,gEl:uF,gel:fF,geq:dF,geqq:hF,geqslant:pF,gescc:gF,ges:vF,gesdot:mF,gesdoto:yF,gesdotol:bF,gesl:wF,gesles:xF,Gfr:SF,gfr:_F,gg:kF,Gg:TF,ggg:CF,gimel:EF,GJcy:LF,gjcy:AF,gla:MF,gl:NF,glE:$F,glj:PF,gnap:OF,gnapprox:RF,gne:DF,gnE:zF,gneq:IF,gneqq:FF,gnsim:HF,Gopf:qF,gopf:BF,grave:WF,GreaterEqual:UF,GreaterEqualLess:VF,GreaterFullEqual:jF,GreaterGreater:GF,GreaterLess:KF,GreaterSlantEqual:XF,GreaterTilde:YF,Gscr:ZF,gscr:JF,gsim:QF,gsime:eH,gsiml:tH,gtcc:nH,gtcir:rH,gt:iH,GT:oH,Gt:sH,gtdot:lH,gtlPar:aH,gtquest:cH,gtrapprox:uH,gtrarr:fH,gtrdot:dH,gtreqless:hH,gtreqqless:pH,gtrless:gH,gtrsim:vH,gvertneqq:mH,gvnE:yH,Hacek:bH,hairsp:wH,half:xH,hamilt:SH,HARDcy:_H,hardcy:kH,harrcir:TH,harr:CH,hArr:EH,harrw:LH,Hat:AH,hbar:MH,Hcirc:NH,hcirc:$H,hearts:PH,heartsuit:OH,hellip:RH,hercon:DH,hfr:zH,Hfr:IH,HilbertSpace:FH,hksearow:HH,hkswarow:qH,hoarr:BH,homtht:WH,hookleftarrow:UH,hookrightarrow:VH,hopf:jH,Hopf:GH,horbar:KH,HorizontalLine:XH,hscr:YH,Hscr:ZH,hslash:JH,Hstrok:QH,hstrok:eq,HumpDownHump:tq,HumpEqual:nq,hybull:rq,hyphen:iq,Iacute:oq,iacute:sq,ic:lq,Icirc:aq,icirc:cq,Icy:uq,icy:fq,Idot:dq,IEcy:hq,iecy:pq,iexcl:gq,iff:vq,ifr:mq,Ifr:yq,Igrave:bq,igrave:wq,ii:xq,iiiint:Sq,iiint:_q,iinfin:kq,iiota:Tq,IJlig:Cq,ijlig:Eq,Imacr:Lq,imacr:Aq,image:Mq,ImaginaryI:Nq,imagline:$q,imagpart:Pq,imath:Oq,Im:Rq,imof:Dq,imped:zq,Implies:Iq,incare:Fq,in:"∈",infin:Hq,infintie:qq,inodot:Bq,intcal:Wq,int:Uq,Int:Vq,integers:jq,Integral:Gq,intercal:Kq,Intersection:Xq,intlarhk:Yq,intprod:Zq,InvisibleComma:Jq,InvisibleTimes:Qq,IOcy:eB,iocy:tB,Iogon:nB,iogon:rB,Iopf:iB,iopf:oB,Iota:sB,iota:lB,iprod:aB,iquest:cB,iscr:uB,Iscr:fB,isin:dB,isindot:hB,isinE:pB,isins:gB,isinsv:vB,isinv:mB,it:yB,Itilde:bB,itilde:wB,Iukcy:xB,iukcy:SB,Iuml:_B,iuml:kB,Jcirc:TB,jcirc:CB,Jcy:EB,jcy:LB,Jfr:AB,jfr:MB,jmath:NB,Jopf:$B,jopf:PB,Jscr:OB,jscr:RB,Jsercy:DB,jsercy:zB,Jukcy:IB,jukcy:FB,Kappa:HB,kappa:qB,kappav:BB,Kcedil:WB,kcedil:UB,Kcy:VB,kcy:jB,Kfr:GB,kfr:KB,kgreen:XB,KHcy:YB,khcy:ZB,KJcy:JB,kjcy:QB,Kopf:e3,kopf:t3,Kscr:n3,kscr:r3,lAarr:i3,Lacute:o3,lacute:s3,laemptyv:l3,lagran:a3,Lambda:c3,lambda:u3,lang:f3,Lang:d3,langd:h3,langle:p3,lap:g3,Laplacetrf:v3,laquo:m3,larrb:y3,larrbfs:b3,larr:w3,Larr:x3,lArr:S3,larrfs:_3,larrhk:k3,larrlp:T3,larrpl:C3,larrsim:E3,larrtl:L3,latail:A3,lAtail:M3,lat:N3,late:$3,lates:P3,lbarr:O3,lBarr:R3,lbbrk:D3,lbrace:z3,lbrack:I3,lbrke:F3,lbrksld:H3,lbrkslu:q3,Lcaron:B3,lcaron:W3,Lcedil:U3,lcedil:V3,lceil:j3,lcub:G3,Lcy:K3,lcy:X3,ldca:Y3,ldquo:Z3,ldquor:J3,ldrdhar:Q3,ldrushar:e5,ldsh:t5,le:n5,lE:r5,LeftAngleBracket:i5,LeftArrowBar:o5,leftarrow:s5,LeftArrow:l5,Leftarrow:a5,LeftArrowRightArrow:c5,leftarrowtail:u5,LeftCeiling:f5,LeftDoubleBracket:d5,LeftDownTeeVector:h5,LeftDownVectorBar:p5,LeftDownVector:g5,LeftFloor:v5,leftharpoondown:m5,leftharpoonup:y5,leftleftarrows:b5,leftrightarrow:w5,LeftRightArrow:x5,Leftrightarrow:S5,leftrightarrows:_5,leftrightharpoons:k5,leftrightsquigarrow:T5,LeftRightVector:C5,LeftTeeArrow:E5,LeftTee:L5,LeftTeeVector:A5,leftthreetimes:M5,LeftTriangleBar:N5,LeftTriangle:$5,LeftTriangleEqual:P5,LeftUpDownVector:O5,LeftUpTeeVector:R5,LeftUpVectorBar:D5,LeftUpVector:z5,LeftVectorBar:I5,LeftVector:F5,lEg:H5,leg:q5,leq:B5,leqq:W5,leqslant:U5,lescc:V5,les:j5,lesdot:G5,lesdoto:K5,lesdotor:X5,lesg:Y5,lesges:Z5,lessapprox:J5,lessdot:Q5,lesseqgtr:e8,lesseqqgtr:t8,LessEqualGreater:n8,LessFullEqual:r8,LessGreater:i8,lessgtr:o8,LessLess:s8,lesssim:l8,LessSlantEqual:a8,LessTilde:c8,lfisht:u8,lfloor:f8,Lfr:d8,lfr:h8,lg:p8,lgE:g8,lHar:v8,lhard:m8,lharu:y8,lharul:b8,lhblk:w8,LJcy:x8,ljcy:S8,llarr:_8,ll:k8,Ll:T8,llcorner:C8,Lleftarrow:E8,llhard:L8,lltri:A8,Lmidot:M8,lmidot:N8,lmoustache:$8,lmoust:P8,lnap:O8,lnapprox:R8,lne:D8,lnE:z8,lneq:I8,lneqq:F8,lnsim:H8,loang:q8,loarr:B8,lobrk:W8,longleftarrow:U8,LongLeftArrow:V8,Longleftarrow:j8,longleftrightarrow:G8,LongLeftRightArrow:K8,Longleftrightarrow:X8,longmapsto:Y8,longrightarrow:Z8,LongRightArrow:J8,Longrightarrow:Q8,looparrowleft:eW,looparrowright:tW,lopar:nW,Lopf:rW,lopf:iW,loplus:oW,lotimes:sW,lowast:lW,lowbar:aW,LowerLeftArrow:cW,LowerRightArrow:uW,loz:fW,lozenge:dW,lozf:hW,lpar:pW,lparlt:gW,lrarr:vW,lrcorner:mW,lrhar:yW,lrhard:bW,lrm:wW,lrtri:xW,lsaquo:SW,lscr:_W,Lscr:kW,lsh:TW,Lsh:CW,lsim:EW,lsime:LW,lsimg:AW,lsqb:MW,lsquo:NW,lsquor:$W,Lstrok:PW,lstrok:OW,ltcc:RW,ltcir:DW,lt:zW,LT:IW,Lt:FW,ltdot:HW,lthree:qW,ltimes:BW,ltlarr:WW,ltquest:UW,ltri:VW,ltrie:jW,ltrif:GW,ltrPar:KW,lurdshar:XW,luruhar:YW,lvertneqq:ZW,lvnE:JW,macr:QW,male:e4,malt:t4,maltese:n4,Map:"⤅",map:r4,mapsto:i4,mapstodown:o4,mapstoleft:s4,mapstoup:l4,marker:a4,mcomma:c4,Mcy:u4,mcy:f4,mdash:d4,mDDot:h4,measuredangle:p4,MediumSpace:g4,Mellintrf:v4,Mfr:m4,mfr:y4,mho:b4,micro:w4,midast:x4,midcir:S4,mid:_4,middot:k4,minusb:T4,minus:C4,minusd:E4,minusdu:L4,MinusPlus:A4,mlcp:M4,mldr:N4,mnplus:$4,models:P4,Mopf:O4,mopf:R4,mp:D4,mscr:z4,Mscr:I4,mstpos:F4,Mu:H4,mu:q4,multimap:B4,mumap:W4,nabla:U4,Nacute:V4,nacute:j4,nang:G4,nap:K4,napE:X4,napid:Y4,napos:Z4,napprox:J4,natural:Q4,naturals:eU,natur:tU,nbsp:nU,nbump:rU,nbumpe:iU,ncap:oU,Ncaron:sU,ncaron:lU,Ncedil:aU,ncedil:cU,ncong:uU,ncongdot:fU,ncup:dU,Ncy:hU,ncy:pU,ndash:gU,nearhk:vU,nearr:mU,neArr:yU,nearrow:bU,ne:wU,nedot:xU,NegativeMediumSpace:SU,NegativeThickSpace:_U,NegativeThinSpace:kU,NegativeVeryThinSpace:TU,nequiv:CU,nesear:EU,nesim:LU,NestedGreaterGreater:AU,NestedLessLess:MU,NewLine:NU,nexist:$U,nexists:PU,Nfr:OU,nfr:RU,ngE:DU,nge:zU,ngeq:IU,ngeqq:FU,ngeqslant:HU,nges:qU,nGg:BU,ngsim:WU,nGt:UU,ngt:VU,ngtr:jU,nGtv:GU,nharr:KU,nhArr:XU,nhpar:YU,ni:ZU,nis:JU,nisd:QU,niv:e6,NJcy:t6,njcy:n6,nlarr:r6,nlArr:i6,nldr:o6,nlE:s6,nle:l6,nleftarrow:a6,nLeftarrow:c6,nleftrightarrow:u6,nLeftrightarrow:f6,nleq:d6,nleqq:h6,nleqslant:p6,nles:g6,nless:v6,nLl:m6,nlsim:y6,nLt:b6,nlt:w6,nltri:x6,nltrie:S6,nLtv:_6,nmid:k6,NoBreak:T6,NonBreakingSpace:C6,nopf:E6,Nopf:L6,Not:A6,not:M6,NotCongruent:N6,NotCupCap:$6,NotDoubleVerticalBar:P6,NotElement:O6,NotEqual:R6,NotEqualTilde:D6,NotExists:z6,NotGreater:I6,NotGreaterEqual:F6,NotGreaterFullEqual:H6,NotGreaterGreater:q6,NotGreaterLess:B6,NotGreaterSlantEqual:W6,NotGreaterTilde:U6,NotHumpDownHump:V6,NotHumpEqual:j6,notin:G6,notindot:K6,notinE:X6,notinva:Y6,notinvb:Z6,notinvc:J6,NotLeftTriangleBar:Q6,NotLeftTriangle:eV,NotLeftTriangleEqual:tV,NotLess:nV,NotLessEqual:rV,NotLessGreater:iV,NotLessLess:oV,NotLessSlantEqual:sV,NotLessTilde:lV,NotNestedGreaterGreater:aV,NotNestedLessLess:cV,notni:uV,notniva:fV,notnivb:dV,notnivc:hV,NotPrecedes:pV,NotPrecedesEqual:gV,NotPrecedesSlantEqual:vV,NotReverseElement:mV,NotRightTriangleBar:yV,NotRightTriangle:bV,NotRightTriangleEqual:wV,NotSquareSubset:xV,NotSquareSubsetEqual:SV,NotSquareSuperset:_V,NotSquareSupersetEqual:kV,NotSubset:TV,NotSubsetEqual:CV,NotSucceeds:EV,NotSucceedsEqual:LV,NotSucceedsSlantEqual:AV,NotSucceedsTilde:MV,NotSuperset:NV,NotSupersetEqual:$V,NotTilde:PV,NotTildeEqual:OV,NotTildeFullEqual:RV,NotTildeTilde:DV,NotVerticalBar:zV,nparallel:IV,npar:FV,nparsl:HV,npart:qV,npolint:BV,npr:WV,nprcue:UV,nprec:VV,npreceq:jV,npre:GV,nrarrc:KV,nrarr:XV,nrArr:YV,nrarrw:ZV,nrightarrow:JV,nRightarrow:QV,nrtri:ej,nrtrie:tj,nsc:nj,nsccue:rj,nsce:ij,Nscr:oj,nscr:sj,nshortmid:lj,nshortparallel:aj,nsim:cj,nsime:uj,nsimeq:fj,nsmid:dj,nspar:hj,nsqsube:pj,nsqsupe:gj,nsub:vj,nsubE:mj,nsube:yj,nsubset:bj,nsubseteq:wj,nsubseteqq:xj,nsucc:Sj,nsucceq:_j,nsup:kj,nsupE:Tj,nsupe:Cj,nsupset:Ej,nsupseteq:Lj,nsupseteqq:Aj,ntgl:Mj,Ntilde:Nj,ntilde:$j,ntlg:Pj,ntriangleleft:Oj,ntrianglelefteq:Rj,ntriangleright:Dj,ntrianglerighteq:zj,Nu:Ij,nu:Fj,num:Hj,numero:qj,numsp:Bj,nvap:Wj,nvdash:Uj,nvDash:Vj,nVdash:jj,nVDash:Gj,nvge:Kj,nvgt:Xj,nvHarr:Yj,nvinfin:Zj,nvlArr:Jj,nvle:Qj,nvlt:eG,nvltrie:tG,nvrArr:nG,nvrtrie:rG,nvsim:iG,nwarhk:oG,nwarr:sG,nwArr:lG,nwarrow:aG,nwnear:cG,Oacute:uG,oacute:fG,oast:dG,Ocirc:hG,ocirc:pG,ocir:gG,Ocy:vG,ocy:mG,odash:yG,Odblac:bG,odblac:wG,odiv:xG,odot:SG,odsold:_G,OElig:kG,oelig:TG,ofcir:CG,Ofr:EG,ofr:LG,ogon:AG,Ograve:MG,ograve:NG,ogt:$G,ohbar:PG,ohm:OG,oint:RG,olarr:DG,olcir:zG,olcross:IG,oline:FG,olt:HG,Omacr:qG,omacr:BG,Omega:WG,omega:UG,Omicron:VG,omicron:jG,omid:GG,ominus:KG,Oopf:XG,oopf:YG,opar:ZG,OpenCurlyDoubleQuote:JG,OpenCurlyQuote:QG,operp:e9,oplus:t9,orarr:n9,Or:r9,or:i9,ord:o9,order:s9,orderof:l9,ordf:a9,ordm:c9,origof:u9,oror:f9,orslope:d9,orv:h9,oS:p9,Oscr:g9,oscr:v9,Oslash:m9,oslash:y9,osol:b9,Otilde:w9,otilde:x9,otimesas:S9,Otimes:_9,otimes:k9,Ouml:T9,ouml:C9,ovbar:E9,OverBar:L9,OverBrace:A9,OverBracket:M9,OverParenthesis:N9,para:$9,parallel:P9,par:O9,parsim:R9,parsl:D9,part:z9,PartialD:I9,Pcy:F9,pcy:H9,percnt:q9,period:B9,permil:W9,perp:U9,pertenk:V9,Pfr:j9,pfr:G9,Phi:K9,phi:X9,phiv:Y9,phmmat:Z9,phone:J9,Pi:Q9,pi:e7,pitchfork:t7,piv:n7,planck:r7,planckh:i7,plankv:o7,plusacir:s7,plusb:l7,pluscir:a7,plus:c7,plusdo:u7,plusdu:f7,pluse:d7,PlusMinus:h7,plusmn:p7,plussim:g7,plustwo:v7,pm:m7,Poincareplane:y7,pointint:b7,popf:w7,Popf:x7,pound:S7,prap:_7,Pr:k7,pr:T7,prcue:C7,precapprox:E7,prec:L7,preccurlyeq:A7,Precedes:M7,PrecedesEqual:N7,PrecedesSlantEqual:$7,PrecedesTilde:P7,preceq:O7,precnapprox:R7,precneqq:D7,precnsim:z7,pre:I7,prE:F7,precsim:H7,prime:q7,Prime:B7,primes:W7,prnap:U7,prnE:V7,prnsim:j7,prod:G7,Product:K7,profalar:X7,profline:Y7,profsurf:Z7,prop:J7,Proportional:Q7,Proportion:eK,propto:tK,prsim:nK,prurel:rK,Pscr:iK,pscr:oK,Psi:sK,psi:lK,puncsp:aK,Qfr:cK,qfr:uK,qint:fK,qopf:dK,Qopf:hK,qprime:pK,Qscr:gK,qscr:vK,quaternions:mK,quatint:yK,quest:bK,questeq:wK,quot:xK,QUOT:SK,rAarr:_K,race:kK,Racute:TK,racute:CK,radic:EK,raemptyv:LK,rang:AK,Rang:MK,rangd:NK,range:$K,rangle:PK,raquo:OK,rarrap:RK,rarrb:DK,rarrbfs:zK,rarrc:IK,rarr:FK,Rarr:HK,rArr:qK,rarrfs:BK,rarrhk:WK,rarrlp:UK,rarrpl:VK,rarrsim:jK,Rarrtl:GK,rarrtl:KK,rarrw:XK,ratail:YK,rAtail:ZK,ratio:JK,rationals:QK,rbarr:eX,rBarr:tX,RBarr:nX,rbbrk:rX,rbrace:iX,rbrack:oX,rbrke:sX,rbrksld:lX,rbrkslu:aX,Rcaron:cX,rcaron:uX,Rcedil:fX,rcedil:dX,rceil:hX,rcub:pX,Rcy:gX,rcy:vX,rdca:mX,rdldhar:yX,rdquo:bX,rdquor:wX,rdsh:xX,real:SX,realine:_X,realpart:kX,reals:TX,Re:CX,rect:EX,reg:LX,REG:AX,ReverseElement:MX,ReverseEquilibrium:NX,ReverseUpEquilibrium:$X,rfisht:PX,rfloor:OX,rfr:RX,Rfr:DX,rHar:zX,rhard:IX,rharu:FX,rharul:HX,Rho:qX,rho:BX,rhov:WX,RightAngleBracket:UX,RightArrowBar:VX,rightarrow:jX,RightArrow:GX,Rightarrow:KX,RightArrowLeftArrow:XX,rightarrowtail:YX,RightCeiling:ZX,RightDoubleBracket:JX,RightDownTeeVector:QX,RightDownVectorBar:eY,RightDownVector:tY,RightFloor:nY,rightharpoondown:rY,rightharpoonup:iY,rightleftarrows:oY,rightleftharpoons:sY,rightrightarrows:lY,rightsquigarrow:aY,RightTeeArrow:cY,RightTee:uY,RightTeeVector:fY,rightthreetimes:dY,RightTriangleBar:hY,RightTriangle:pY,RightTriangleEqual:gY,RightUpDownVector:vY,RightUpTeeVector:mY,RightUpVectorBar:yY,RightUpVector:bY,RightVectorBar:wY,RightVector:xY,ring:SY,risingdotseq:_Y,rlarr:kY,rlhar:TY,rlm:CY,rmoustache:EY,rmoust:LY,rnmid:AY,roang:MY,roarr:NY,robrk:$Y,ropar:PY,ropf:OY,Ropf:RY,roplus:DY,rotimes:zY,RoundImplies:IY,rpar:FY,rpargt:HY,rppolint:qY,rrarr:BY,Rrightarrow:WY,rsaquo:UY,rscr:VY,Rscr:jY,rsh:GY,Rsh:KY,rsqb:XY,rsquo:YY,rsquor:ZY,rthree:JY,rtimes:QY,rtri:eZ,rtrie:tZ,rtrif:nZ,rtriltri:rZ,RuleDelayed:iZ,ruluhar:oZ,rx:sZ,Sacute:lZ,sacute:aZ,sbquo:cZ,scap:uZ,Scaron:fZ,scaron:dZ,Sc:hZ,sc:pZ,sccue:gZ,sce:vZ,scE:mZ,Scedil:yZ,scedil:bZ,Scirc:wZ,scirc:xZ,scnap:SZ,scnE:_Z,scnsim:kZ,scpolint:TZ,scsim:CZ,Scy:EZ,scy:LZ,sdotb:AZ,sdot:MZ,sdote:NZ,searhk:$Z,searr:PZ,seArr:OZ,searrow:RZ,sect:DZ,semi:zZ,seswar:IZ,setminus:FZ,setmn:HZ,sext:qZ,Sfr:BZ,sfr:WZ,sfrown:UZ,sharp:VZ,SHCHcy:jZ,shchcy:GZ,SHcy:KZ,shcy:XZ,ShortDownArrow:YZ,ShortLeftArrow:ZZ,shortmid:JZ,shortparallel:QZ,ShortRightArrow:eJ,ShortUpArrow:tJ,shy:nJ,Sigma:rJ,sigma:iJ,sigmaf:oJ,sigmav:sJ,sim:lJ,simdot:aJ,sime:cJ,simeq:uJ,simg:fJ,simgE:dJ,siml:hJ,simlE:pJ,simne:gJ,simplus:vJ,simrarr:mJ,slarr:yJ,SmallCircle:bJ,smallsetminus:wJ,smashp:xJ,smeparsl:SJ,smid:_J,smile:kJ,smt:TJ,smte:CJ,smtes:EJ,SOFTcy:LJ,softcy:AJ,solbar:MJ,solb:NJ,sol:$J,Sopf:PJ,sopf:OJ,spades:RJ,spadesuit:DJ,spar:zJ,sqcap:IJ,sqcaps:FJ,sqcup:HJ,sqcups:qJ,Sqrt:BJ,sqsub:WJ,sqsube:UJ,sqsubset:VJ,sqsubseteq:jJ,sqsup:GJ,sqsupe:KJ,sqsupset:XJ,sqsupseteq:YJ,square:ZJ,Square:JJ,SquareIntersection:QJ,SquareSubset:eQ,SquareSubsetEqual:tQ,SquareSuperset:nQ,SquareSupersetEqual:rQ,SquareUnion:iQ,squarf:oQ,squ:sQ,squf:lQ,srarr:aQ,Sscr:cQ,sscr:uQ,ssetmn:fQ,ssmile:dQ,sstarf:hQ,Star:pQ,star:gQ,starf:vQ,straightepsilon:mQ,straightphi:yQ,strns:bQ,sub:wQ,Sub:xQ,subdot:SQ,subE:_Q,sube:kQ,subedot:TQ,submult:CQ,subnE:EQ,subne:LQ,subplus:AQ,subrarr:MQ,subset:NQ,Subset:$Q,subseteq:PQ,subseteqq:OQ,SubsetEqual:RQ,subsetneq:DQ,subsetneqq:zQ,subsim:IQ,subsub:FQ,subsup:HQ,succapprox:qQ,succ:BQ,succcurlyeq:WQ,Succeeds:UQ,SucceedsEqual:VQ,SucceedsSlantEqual:jQ,SucceedsTilde:GQ,succeq:KQ,succnapprox:XQ,succneqq:YQ,succnsim:ZQ,succsim:JQ,SuchThat:QQ,sum:eee,Sum:tee,sung:nee,sup1:ree,sup2:iee,sup3:oee,sup:see,Sup:lee,supdot:aee,supdsub:cee,supE:uee,supe:fee,supedot:dee,Superset:hee,SupersetEqual:pee,suphsol:gee,suphsub:vee,suplarr:mee,supmult:yee,supnE:bee,supne:wee,supplus:xee,supset:See,Supset:_ee,supseteq:kee,supseteqq:Tee,supsetneq:Cee,supsetneqq:Eee,supsim:Lee,supsub:Aee,supsup:Mee,swarhk:Nee,swarr:$ee,swArr:Pee,swarrow:Oee,swnwar:Ree,szlig:Dee,Tab:zee,target:Iee,Tau:Fee,tau:Hee,tbrk:qee,Tcaron:Bee,tcaron:Wee,Tcedil:Uee,tcedil:Vee,Tcy:jee,tcy:Gee,tdot:Kee,telrec:Xee,Tfr:Yee,tfr:Zee,there4:Jee,therefore:Qee,Therefore:ete,Theta:tte,theta:nte,thetasym:rte,thetav:ite,thickapprox:ote,thicksim:ste,ThickSpace:lte,ThinSpace:ate,thinsp:cte,thkap:ute,thksim:fte,THORN:dte,thorn:hte,tilde:pte,Tilde:gte,TildeEqual:vte,TildeFullEqual:mte,TildeTilde:yte,timesbar:bte,timesb:wte,times:xte,timesd:Ste,tint:_te,toea:kte,topbot:Tte,topcir:Cte,top:Ete,Topf:Lte,topf:Ate,topfork:Mte,tosa:Nte,tprime:$te,trade:Pte,TRADE:Ote,triangle:Rte,triangledown:Dte,triangleleft:zte,trianglelefteq:Ite,triangleq:Fte,triangleright:Hte,trianglerighteq:qte,tridot:Bte,trie:Wte,triminus:Ute,TripleDot:Vte,triplus:jte,trisb:Gte,tritime:Kte,trpezium:Xte,Tscr:Yte,tscr:Zte,TScy:Jte,tscy:Qte,TSHcy:ene,tshcy:tne,Tstrok:nne,tstrok:rne,twixt:ine,twoheadleftarrow:one,twoheadrightarrow:sne,Uacute:lne,uacute:ane,uarr:cne,Uarr:une,uArr:fne,Uarrocir:dne,Ubrcy:hne,ubrcy:pne,Ubreve:gne,ubreve:vne,Ucirc:mne,ucirc:yne,Ucy:bne,ucy:wne,udarr:xne,Udblac:Sne,udblac:_ne,udhar:kne,ufisht:Tne,Ufr:Cne,ufr:Ene,Ugrave:Lne,ugrave:Ane,uHar:Mne,uharl:Nne,uharr:$ne,uhblk:Pne,ulcorn:One,ulcorner:Rne,ulcrop:Dne,ultri:zne,Umacr:Ine,umacr:Fne,uml:Hne,UnderBar:qne,UnderBrace:Bne,UnderBracket:Wne,UnderParenthesis:Une,Union:Vne,UnionPlus:jne,Uogon:Gne,uogon:Kne,Uopf:Xne,uopf:Yne,UpArrowBar:Zne,uparrow:Jne,UpArrow:Qne,Uparrow:ere,UpArrowDownArrow:tre,updownarrow:nre,UpDownArrow:rre,Updownarrow:ire,UpEquilibrium:ore,upharpoonleft:sre,upharpoonright:lre,uplus:are,UpperLeftArrow:cre,UpperRightArrow:ure,upsi:fre,Upsi:dre,upsih:hre,Upsilon:pre,upsilon:gre,UpTeeArrow:vre,UpTee:mre,upuparrows:yre,urcorn:bre,urcorner:wre,urcrop:xre,Uring:Sre,uring:_re,urtri:kre,Uscr:Tre,uscr:Cre,utdot:Ere,Utilde:Lre,utilde:Are,utri:Mre,utrif:Nre,uuarr:$re,Uuml:Pre,uuml:Ore,uwangle:Rre,vangrt:Dre,varepsilon:zre,varkappa:Ire,varnothing:Fre,varphi:Hre,varpi:qre,varpropto:Bre,varr:Wre,vArr:Ure,varrho:Vre,varsigma:jre,varsubsetneq:Gre,varsubsetneqq:Kre,varsupsetneq:Xre,varsupsetneqq:Yre,vartheta:Zre,vartriangleleft:Jre,vartriangleright:Qre,vBar:eie,Vbar:tie,vBarv:nie,Vcy:rie,vcy:iie,vdash:oie,vDash:sie,Vdash:lie,VDash:aie,Vdashl:cie,veebar:uie,vee:fie,Vee:die,veeeq:hie,vellip:pie,verbar:gie,Verbar:vie,vert:mie,Vert:yie,VerticalBar:bie,VerticalLine:wie,VerticalSeparator:xie,VerticalTilde:Sie,VeryThinSpace:_ie,Vfr:kie,vfr:Tie,vltri:Cie,vnsub:Eie,vnsup:Lie,Vopf:Aie,vopf:Mie,vprop:Nie,vrtri:$ie,Vscr:Pie,vscr:Oie,vsubnE:Rie,vsubne:Die,vsupnE:zie,vsupne:Iie,Vvdash:Fie,vzigzag:Hie,Wcirc:qie,wcirc:Bie,wedbar:Wie,wedge:Uie,Wedge:Vie,wedgeq:jie,weierp:Gie,Wfr:Kie,wfr:Xie,Wopf:Yie,wopf:Zie,wp:Jie,wr:Qie,wreath:eoe,Wscr:toe,wscr:noe,xcap:roe,xcirc:ioe,xcup:ooe,xdtri:soe,Xfr:loe,xfr:aoe,xharr:coe,xhArr:uoe,Xi:foe,xi:doe,xlarr:hoe,xlArr:poe,xmap:goe,xnis:voe,xodot:moe,Xopf:yoe,xopf:boe,xoplus:woe,xotime:xoe,xrarr:Soe,xrArr:_oe,Xscr:koe,xscr:Toe,xsqcup:Coe,xuplus:Eoe,xutri:Loe,xvee:Aoe,xwedge:Moe,Yacute:Noe,yacute:$oe,YAcy:Poe,yacy:Ooe,Ycirc:Roe,ycirc:Doe,Ycy:zoe,ycy:Ioe,yen:Foe,Yfr:Hoe,yfr:qoe,YIcy:Boe,yicy:Woe,Yopf:Uoe,yopf:Voe,Yscr:joe,yscr:Goe,YUcy:Koe,yucy:Xoe,yuml:Yoe,Yuml:Zoe,Zacute:Joe,zacute:Qoe,Zcaron:ese,zcaron:tse,Zcy:nse,zcy:rse,Zdot:ise,zdot:ose,zeetrf:sse,ZeroWidthSpace:lse,Zeta:ase,zeta:cse,zfr:use,Zfr:fse,ZHcy:dse,zhcy:hse,zigrarr:pse,zopf:gse,Zopf:vse,Zscr:mse,zscr:yse,zwj:bse,zwnj:wse},xse="Á",Sse="á",_se="Â",kse="â",Tse="´",Cse="Æ",Ese="æ",Lse="À",Ase="à",Mse="&",Nse="&",$se="Å",Pse="å",Ose="Ã",Rse="ã",Dse="Ä",zse="ä",Ise="¦",Fse="Ç",Hse="ç",qse="¸",Bse="¢",Wse="©",Use="©",Vse="¤",jse="°",Gse="÷",Kse="É",Xse="é",Yse="Ê",Zse="ê",Jse="È",Qse="è",ele="Ð",tle="ð",nle="Ë",rle="ë",ile="½",ole="¼",sle="¾",lle=">",ale=">",cle="Í",ule="í",fle="Î",dle="î",hle="¡",ple="Ì",gle="ì",vle="¿",mle="Ï",yle="ï",ble="«",wle="<",xle="<",Sle="¯",_le="µ",kle="·",Tle=" ",Cle="¬",Ele="Ñ",Lle="ñ",Ale="Ó",Mle="ó",Nle="Ô",$le="ô",Ple="Ò",Ole="ò",Rle="ª",Dle="º",zle="Ø",Ile="ø",Fle="Õ",Hle="õ",qle="Ö",Ble="ö",Wle="¶",Ule="±",Vle="£",jle='"',Gle='"',Kle="»",Xle="®",Yle="®",Zle="§",Jle="",Qle="¹",eae="²",tae="³",nae="ß",rae="Þ",iae="þ",oae="×",sae="Ú",lae="ú",aae="Û",cae="û",uae="Ù",fae="ù",dae="¨",hae="Ü",pae="ü",gae="Ý",vae="ý",mae="¥",yae="ÿ",bae={Aacute:xse,aacute:Sse,Acirc:_se,acirc:kse,acute:Tse,AElig:Cse,aelig:Ese,Agrave:Lse,agrave:Ase,amp:Mse,AMP:Nse,Aring:$se,aring:Pse,Atilde:Ose,atilde:Rse,Auml:Dse,auml:zse,brvbar:Ise,Ccedil:Fse,ccedil:Hse,cedil:qse,cent:Bse,copy:Wse,COPY:Use,curren:Vse,deg:jse,divide:Gse,Eacute:Kse,eacute:Xse,Ecirc:Yse,ecirc:Zse,Egrave:Jse,egrave:Qse,ETH:ele,eth:tle,Euml:nle,euml:rle,frac12:ile,frac14:ole,frac34:sle,gt:lle,GT:ale,Iacute:cle,iacute:ule,Icirc:fle,icirc:dle,iexcl:hle,Igrave:ple,igrave:gle,iquest:vle,Iuml:mle,iuml:yle,laquo:ble,lt:wle,LT:xle,macr:Sle,micro:_le,middot:kle,nbsp:Tle,not:Cle,Ntilde:Ele,ntilde:Lle,Oacute:Ale,oacute:Mle,Ocirc:Nle,ocirc:$le,Ograve:Ple,ograve:Ole,ordf:Rle,ordm:Dle,Oslash:zle,oslash:Ile,Otilde:Fle,otilde:Hle,Ouml:qle,ouml:Ble,para:Wle,plusmn:Ule,pound:Vle,quot:jle,QUOT:Gle,raquo:Kle,reg:Xle,REG:Yle,sect:Zle,shy:Jle,sup1:Qle,sup2:eae,sup3:tae,szlig:nae,THORN:rae,thorn:iae,times:oae,Uacute:sae,uacute:lae,Ucirc:aae,ucirc:cae,Ugrave:uae,ugrave:fae,uml:dae,Uuml:hae,uuml:pae,Yacute:gae,yacute:vae,yen:mae,yuml:yae},wae="&",xae="'",Sae=">",_ae="<",kae='"',vw={amp:wae,apos:xae,gt:Sae,lt:_ae,quot:kae};var Gh={};const Tae={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Cae=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gh,"__esModule",{value:!0});var Pm=Cae(Tae),Eae=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Lae(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Pm.default&&(e=Pm.default[e]),Eae(e))}Gh.default=Lae;var Hu=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pi,"__esModule",{value:!0});pi.decodeHTML=pi.decodeHTMLStrict=pi.decodeXML=void 0;var jd=Hu(gw),Aae=Hu(bae),Mae=Hu(vw),Om=Hu(Gh),Nae=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;pi.decodeXML=mw(Mae.default);pi.decodeHTMLStrict=mw(jd.default);function mw(e){var t=yw(e);return function(r){return String(r).replace(Nae,t)}}var Rm=function(e,t){return e<t?1:-1};pi.decodeHTML=function(){for(var e=Object.keys(Aae.default).sort(Rm),t=Object.keys(jd.default).sort(Rm),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=yw(jd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function yw(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Om.default(parseInt(r.substr(3),16)):Om.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Xn={},bw=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.escapeUTF8=Xn.escape=Xn.encodeNonAsciiHTML=Xn.encodeHTML=Xn.encodeXML=void 0;var $ae=bw(vw),ww=Sw($ae.default),xw=_w(ww);Xn.encodeXML=Cw(ww);var Pae=bw(gw),Kh=Sw(Pae.default),Oae=_w(Kh);Xn.encodeHTML=Dae(Kh,Oae);Xn.encodeNonAsciiHTML=Cw(Kh);function Sw(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function _w(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var kw=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Rae=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function qu(e){return"&#x"+(e.length>1?Rae(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Dae(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(kw,qu)}}var Tw=new RegExp(xw.source+"|"+kw.source,"g");function zae(e){return e.replace(Tw,qu)}Xn.escape=zae;function Iae(e){return e.replace(xw,qu)}Xn.escapeUTF8=Iae;function Cw(e){return function(t){return t.replace(Tw,function(r){return e[r]||qu(r)})}}(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=pi,r=Xn;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=Xn;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=pi;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}})})(pw);function Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hae(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 qae(e,t,r){return t&&Hae(e.prototype,t),e}function Ew(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Bae(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function Bae(e,t){if(e){if(typeof e=="string")return Dm(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 Dm(e,t)}}function Dm(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}var Wae=pw,zm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Uae()};function Uae(){var e={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 vc(0,5).forEach(function(t){vc(0,5).forEach(function(r){vc(0,5).forEach(function(o){return Vae(t,r,o,e)})})}),vc(0,23).forEach(function(t){var r=t+232,o=Lw(t*10+8);e[r]="#"+o+o+o}),e}function Vae(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=jae([c,f,d])}function Lw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function jae(e){var t=[],r=Ew(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(Lw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function Im(e,t,r,o){var s;return t==="text"?s=Yae(r,o):t==="display"?s=Kae(e,r,o):t==="xterm256Foreground"?s=Nc(e,o.colors[r]):t==="xterm256Background"?s=$c(e,o.colors[r]):t==="rgb"&&(s=Gae(e,r)),s}function Gae(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return Mc(e,(r===38?"color:#":"background-color:#")+s)}function Kae(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&Aw(e)},1:function(){return ji(e,"b")},3:function(){return ji(e,"i")},4:function(){return ji(e,"u")},8:function(){return Mc(e,"display:none")},9:function(){return ji(e,"strike")},22:function(){return Mc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Hm(e,"i")},24:function(){return Hm(e,"u")},39:function(){return Nc(e,r.fg)},49:function(){return $c(e,r.bg)},53:function(){return Mc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=ji(e,"blink"):29<t&&t<38?s=Nc(e,r.colors[t-30]):39<t&&t<48?s=$c(e,r.colors[t-40]):89<t&&t<98?s=Nc(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=$c(e,r.colors[8+(t-100)])),s}function Aw(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function vc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function Xae(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Fm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Yae(e,t){return t.escapeXML?Wae.encodeXML(e):e}function ji(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Mc(e,t){return ji(e,"span",t)}function Nc(e,t){return ji(e,"span","color:"+t)}function $c(e,t){return ji(e,"span","background-color:"+t)}function Hm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Zae(e,t,r){var o=!1,s=3;function c(){return""}function f(z,W){return r("xterm256Foreground",W),""}function d(z,W){return r("xterm256Background",W),""}function h(z){return t.newline?r("display",-1):r("text",z),""}function p(z,W){o=!0,W.trim().length===0&&(W="0"),W=W.trimRight(";").split(";");var U=Ew(W),re;try{for(U.s();!(re=U.n()).done;){var Q=re.value;r("display",Q)}}catch(G){U.e(G)}finally{U.f()}return""}function v(z){return r("text",z),""}function m(z){return r("rgb",z),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:m},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function w(z,W){W>s&&o||(o=!1,e=e.replace(z.pattern,z.sub))}var M=[],N=e,E=N.length;e:for(;E>0;){for(var C=0,A=0,P=b.length;A<P;C=++A){var L=b[C];if(w(L,C),e.length!==E){E=e.length;continue e}}if(e.length===E)break;M.push(0),E=e.length}return M}function Jae(e,t,r){return t!=="text"&&(e=e.filter(Xae(Fm(r))),e.push({token:t,data:r,category:Fm(r)})),e}var Qae=function(){function e(t){Fae(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},zm.colors,t.colors)),this.options=Object.assign({},zm,t),this.stack=[],this.stickyStack=[]}return qae(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=Im(s,d.token,d.data,c);h&&f.push(h)}),Zae(r.join(""),c,function(d,h){var p=Im(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Jae(o.stickyStack,d,h))}),s.length&&f.push(Aw(s)),f.join("")}}]),e}(),ece=Qae;const tce=hw(ece);function nce(e,t){return t&&e.endsWith(t)}async function Mw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Xh(e){return new tce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function rce(e){return e===null||typeof e!="function"&&typeof e!="object"}function Nw(e){let t=e;if(rce(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=tA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Yn=Uint8Array,ms=Uint16Array,ice=Int32Array,$w=new Yn([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]),Pw=new Yn([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]),oce=new Yn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ow=function(e,t){for(var r=new ms(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new ice(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}},Rw=Ow($w,2),Dw=Rw.b,sce=Rw.r;Dw[28]=258,sce[258]=28;var lce=Ow(Pw,0),ace=lce.b,Gd=new ms(32768);for(var Et=0;Et<32768;++Et){var Di=(Et&43690)>>1|(Et&21845)<<1;Di=(Di&52428)>>2|(Di&13107)<<2,Di=(Di&61680)>>4|(Di&3855)<<4,Gd[Et]=((Di&65280)>>8|(Di&255)<<8)>>1}var Fl=function(e,t,r){for(var o=e.length,s=0,c=new ms(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ms(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ms(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Gd[m]>>h]=p}else for(d=new ms(o),s=0;s<o;++s)e[s]&&(d[s]=Gd[f[e[s]-1]++]>>15-e[s]);return d},Sa=new Yn(288);for(var Et=0;Et<144;++Et)Sa[Et]=8;for(var Et=144;Et<256;++Et)Sa[Et]=9;for(var Et=256;Et<280;++Et)Sa[Et]=7;for(var Et=280;Et<288;++Et)Sa[Et]=8;var zw=new Yn(32);for(var Et=0;Et<32;++Et)zw[Et]=5;var cce=Fl(Sa,9,1),uce=Fl(zw,5,1),od=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},mr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},sd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},fce=function(e){return(e+7)/8|0},Iw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Yn(e.subarray(t,r))},dce=["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"],Dn=function(e,t,r){var o=new Error(t||dce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Dn),!r)throw o;return o},Yh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Yn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Yn(s*3));var p=function(Ee){var Ze=r.length;if(Ee>Ze){var O=new Yn(Math.max(Ze*2,Ee));O.set(r),r=O}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,M=t.d,N=t.m,E=t.n,C=s*8;do{if(!w){v=mr(e,m,1);var A=mr(e,m+1,3);if(m+=3,A)if(A==1)w=cce,M=uce,N=9,E=5;else if(A==2){var W=mr(e,m,31)+257,U=mr(e,m+10,15)+4,re=W+mr(e,m+5,31)+1;m+=14;for(var Q=new Yn(re),G=new Yn(19),te=0;te<U;++te)G[oce[te]]=mr(e,m+te*3,7);m+=U*3;for(var Z=od(G),q=(1<<Z)-1,F=Fl(G,Z,1),te=0;te<re;){var k=F[mr(e,m,q)];m+=k&15;var P=k>>4;if(P<16)Q[te++]=P;else{var B=0,V=0;for(P==16?(V=3+mr(e,m,3),m+=2,B=Q[te-1]):P==17?(V=3+mr(e,m,7),m+=3):P==18&&(V=11+mr(e,m,127),m+=7);V--;)Q[te++]=B}}var ie=Q.subarray(0,W),ye=Q.subarray(W);N=od(ie),E=od(ye),w=Fl(ie,N,1),M=Fl(ye,E,1)}else Dn(1);else{var P=fce(m)+4,L=e[P-4]|e[P-3]<<8,z=P+L;if(z>s){h&&Dn(0);break}d&&p(b+L),r.set(e.subarray(P,z),b),t.b=b+=L,t.p=m=z*8,t.f=v;continue}if(m>C){h&&Dn(0);break}}d&&p(b+131072);for(var Ne=(1<<N)-1,Ue=(1<<E)-1,je=m;;je=m){var B=w[sd(e,m)&Ne],it=B>>4;if(m+=B&15,m>C){h&&Dn(0);break}if(B||Dn(2),it<256)r[b++]=it;else if(it==256){je=m,w=null;break}else{var tt=it-254;if(it>264){var te=it-257,Je=$w[te];tt=mr(e,m,(1<<Je)-1)+Dw[te],m+=Je}var Ae=M[sd(e,m)&Ue],X=Ae>>4;Ae||Dn(3),m+=Ae&15;var ye=ace[X];if(X>3){var Je=Pw[X];ye+=sd(e,m)&(1<<Je)-1,m+=Je}if(m>C){h&&Dn(0);break}d&&p(b+131072);var ae=b+tt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&Dn(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=w,t.p=je,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=M,t.n=E)}while(!v);return b!=r.length&&f?Iw(r,0,b):r.subarray(0,b)},hce=new Yn(0),pce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Dn(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)},gce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},vce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Dn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Dn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function mce(e,t){return Yh(e,{i:2},t,t)}function yce(e,t){var r=pce(e);return r+8>e.length&&Dn(6,"invalid gzip data"),Yh(e.subarray(r,-8),{i:2},new Yn(gce(e)),t)}function bce(e,t){return Yh(e.subarray(vce(e,t),-4),{i:2},t,t)}function wce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?yce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?mce(e,t):bce(e,t)}var Kd=typeof TextDecoder<"u"&&new TextDecoder,xce=0;try{Kd.decode(hce,{stream:!0}),xce=1}catch{}var Sce=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:Iw(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 _ce(e,t){var r;if(Kd)return Kd.decode(e);var o=Sce(e),s=o.s,r=o.r;return r.length&&Dn(8),s}const ld=()=>{},kn=()=>Promise.resolve();function kce(){const e=Zn({state:new Ib,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Zn(e.state.filesMap),e.state.idMap=Zn(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:kn,onDone:ld,onTaskUpdate:ld,writeFile:kn,rerun:kn,updateSnapshot:kn,resolveSnapshotPath:kn,snapshotSaved:kn,onAfterSuiteRun:kn,onCancel:kn,getCountOfFailedTests:()=>0,sendLog:kn,resolveSnapshotRawPath:kn,readSnapshotFile:kn,saveSnapshotFile:kn,readTestFile:async d=>t.sources[d],removeSnapshotFile:kn,onUnhandledError:ld,saveTestFile:kn,getProvidedContext:()=>({}),getTestFiles:kn};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=_ce(wce(m));t=Fd(b)}else t=Fd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const xt=function(){return Br?kce():QC(lL,{reactive:(t,r)=>r==="state"?Zn(t):jr(t),handlers:{onTaskUpdate(t){Ce.resumeRun(t),ou.value="running"},onFinished(t,r){Ce.endRun(),ou.value="idle",Wi.value=(r||[]).map(Nw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Bu=jr({}),Eo=We("CONNECTING"),Zt=Te(()=>{const e=eo.value;return e?sr(e):void 0}),Fw=Te(()=>Hh(Zt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function sr(e){const t=xt.state.idMap.get(e);return t||void 0}const Tce=Te(()=>Eo.value==="OPEN"),ad=Te(()=>Eo.value==="CONNECTING");Te(()=>Eo.value==="CLOSED");function Cce(){return Zh(xt.state.getFiles())}function Hw(e){delete e.result;const t=Ce.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,wa(e)))for(const r of e.tasks)Hw(r)}function Ece(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,Hh(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,Mn(o)&&(o.collectDuration=void 0))})}function Zh(e){return Ece(e),Ce.startRun(),xt.rpc.rerun(e.map(t=>t.filepath),!0)}function Lce(e){return Hw(e),Ce.startRun(),xt.rpc.rerunTask(e.id)}const Ro=window.__vitest_browser_runner__;window.__vitest_ui_api__=iL;Bt(()=>xt.ws,e=>{Eo.value=Br?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Eo.value="OPEN",xt.state.filesMap.clear();let[t,r,o]=await Promise.all([xt.rpc.getFiles(),xt.rpc.getConfig(),xt.rpc.getUnhandledErrors()]);r.standalone&&(t=(await xt.rpc.getTestFiles()).map(([{name:c,root:f},d])=>{const h=Nb(d,f,c);return h.mode="skip",h})),Ce.loadFiles(t),xt.state.collectFiles(t),Ce.startRun(),Wi.value=(o||[]).map(Nw),Bu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Eo.value==="CONNECTING"&&(Eo.value="CLOSED")},1e3)})},{immediate:!0});const Ace={"text-2xl":""},Mce={"text-lg":"",op50:""},Nce=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>I(Tce)?Ye("",!0):(oe(),me("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)=>I(xt).reconnect&&I(xt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(I(ad)?"animate-pulse":"")},[Y("div",{text:"5xl",class:st(I(ad)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Ace,He(I(ad)?"Connecting...":"Disconnected"),1),Y("div",Mce," Check your terminal or start a new server with `"+He(I(Ro)?`vitest --browser=${I(Ro).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),$ce=["aria-label","opacity","disabled","hover"],wi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[vn(t.$slots,"default",{},()=>[Y("span",{class:st(t.icon),ma:"",block:""},null,2)])],10,$ce))}}),Pce={h:"full",flex:"~ col"},Oce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Rce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Dce={class:"pointer-events-none","text-sm":""},zce={key:0},Ice={id:"tester-container",relative:""},Fce=["data-scale"],qm=20,Hce=100,qce=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Dr.value[0]===v[0]&&Dr.value[1]===v[1]}async function o(p){Dr.value=t[p]}const{width:s,height:c}=Wh(),f=Te(()=>{const m=s.value*(gn.details.size/100)*(gn.details.browser/100)-qm,b=c.value-Hce;return{width:m,height:b}}),d=Te(()=>{const[p,v]=Dr.value,{width:m,height:b}=f.value,w=m>p?1:m/p,M=b>v?1:b/v;return Math.min(1,w,M)}),h=Te(()=>{const p=f.value.width,v=Dr.value[0];return`${Math.trunc((p+qm-v)/2)}px`});return(p,v)=>{const m=wi,b=Gr("tooltip");return oe(),me("div",Pce,[Y("div",Oce,[mt(Pe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>I(rL)())},null,512),[[Gi,I(gn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),mt(Pe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>I(tL)())},null,512),[[Gi,I(gn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),mt(Pe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>I(nL)())},null,512),[[Gi,I(gn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Y("div",Rce,[mt(Pe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),mt(Pe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),mt(Pe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Y("span",Dce,[pt(He(I(Dr)[0])+"x"+He(I(Dr)[1])+"px ",1),I(d)<1?(oe(),me("span",zce,"("+He((I(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),Y("div",Ice,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":I(d),style:Jt({"--viewport-width":`${I(Dr)[0]}px`,"--viewport-height":`${I(Dr)[1]}px`,"--tester-transform":`scale(${I(d)})`,"--tester-margin-left":I(h)})}," Select a test to run ",12,Fce)])])}}}),Bce=Kr(qce,[["__scopeId","data-v-65565204"]]),qw=ut({__name:"Modal",props:Uc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nh(e,"modelValue"),r=Te(()=>{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=Te(()=>{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)=>(oe(),me("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[I(r)]]),style:Jt(t.value?{}:{transform:I(o)})},[vn(c.$slots,"default")],6)],2))}}),Wce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Uce={"p-4":"",relative:"",border:"base b"},Vce={op50:"","font-mono":"","text-sm":""},jce={op50:"","font-mono":"","text-sm":""},Gce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Kce=["src","alt"],Xce={key:1},Yce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Vb("Escape",()=>{r("close")}),(o,s)=>{const c=wi;return oe(),me("div",Wce,[Y("div",Uce,[s[1]||(s[1]=Y("p",null,"Screenshot error",-1)),Y("p",Vce,He(o.file),1),Y("p",jce,He(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Gce,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Kce)):(oe(),me("div",Xce," Something was wrong, the image cannot be resolved. "))])])}}}),Zce=Kr(Yce,[["__scopeId","data-v-93900314"]]);function Hl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _a=bE(),Jce=sE(_a),Qce={class:"scrolls scrolls-rounded task-error"},eue=["onClickPassive"],tue=["innerHTML"],nue=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Te(()=>Xh(_a.value)),s=Te(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Te(()=>t.error.diff?o.value.toHtml(Hl(t.error.diff)):void 0);return(f,d)=>{const h=Gr("tooltip");return oe(),me("div",Qce,[Y("pre",null,[Y("b",null,He(f.error.name||f.error.nameStr),1),pt(": "+He(f.error.message),1)]),(oe(!0),me(ct,null,gi(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+He(r(p.file))+":"+He(p.line)+":"+He(p.column),1),I(nce)(p.file,f.filename)?mt((oe(),me("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:m=>I(Mw)(p.file,p.line,p.column)},null,40,eue)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),I(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:I(c)},null,8,tue)):Ye("",!0)])}}}),rue=Kr(nue,[["__scopeId","data-v-9dd6eaea"]]),iue={"h-full":"",class:"scrolls"},oue={flex:"~ gap-2 items-center"},sue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lue=["innerHTML"],aue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cue=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var M;return((M=b.result)==null?void 0:M.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(N=>r(N,w+1))]}function o(b,w){var E,C,A;let M="";(E=w.message)!=null&&E.includes("\x1B")&&(M=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Hl(w.message))}`);const N=(C=w.stackStr)==null?void 0:C.includes("\x1B");return(N||(A=w.stack)!=null&&A.includes("\x1B"))&&(M.length>0?M+=b.toHtml(Hl(N?w.stackStr:w.stack)):M=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Hl(N?w.stackStr:w.stack))}`),M.length>0?M:null}function s(b,w){const M=Xh(b);return w.map(N=>{var A;const E=N.result;if(!E)return N;const C=(A=E.errors)==null?void 0:A.map(P=>o(M,P)).filter(P=>P!=null).join("<br><br>");return C!=null&&C.length&&(E.htmlError=C),N})}const c=Te(()=>{var E,C;const b=t.file,w=((E=b==null?void 0:b.tasks)==null?void 0:E.flatMap(A=>r(A,0)))??[],M=b==null?void 0:b.result;if((C=M==null?void 0:M.errors)==null?void 0:C[0]){const A={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:M};w.unshift(A)}return w.length>0?s(_a.value,w):w});function f(b){var M;const w=(M=b.meta)==null?void 0:M.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=We(!1),h=We(Date.now()),p=We(),v=Te(()=>{var M;const b=(M=p.value)==null?void 0:M.meta.failScreenshotPath,w=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,w)=>{const M=wi,N=rue,E=Zce,C=qw,A=Gr("tooltip");return oe(),me("div",iue,[I(c).length?(oe(!0),me(ct,{key:0},gi(I(c),P=>{var L,z,W,U;return oe(),me("div",{key:P.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Jt({"margin-left":`${(L=P.result)!=null&&L.htmlError?.5:2*P.level+.5}rem`})},[Y("div",oue,[Y("span",null,He(P.name),1),I(Ro)&&((z=P.meta)!=null&&z.failScreenshotPath)?(oe(),me(ct,{key:0},[mt(Pe(M,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:re=>m(P)},null,8,["onClick"]),[[A,"View screenshot error",void 0,{bottom:!0}]]),mt(Pe(M,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:re=>f(P)},null,8,["onClick"]),[[A,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(W=P.result)!=null&&W.htmlError?(oe(),me("div",sue,[Y("pre",{innerHTML:P.result.htmlError},null,8,lue)])):(U=P.result)!=null&&U.errors?(oe(!0),me(ct,{key:1},gi(P.result.errors,(re,Q)=>{var G;return oe(),rt(N,{key:Q,error:re,filename:(G=b.file)==null?void 0:G.name,root:I(Bu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)])}),128)):(oe(),me("div",aue," All tests passed in this file ")),I(Ro)?(oe(),rt(C,{key:2,modelValue:I(d),"onUpdate:modelValue":w[1]||(w[1]=P=>At(d)?d.value=P:null),direction:"right"},{default:ot(()=>[I(p)?(oe(),rt(qy,{key:0},{default:ot(()=>[Pe(E,{file:I(p).file.filepath,name:I(p).name,url:I(v),onClose:w[0]||(w[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),uue=Kr(cue,[["__scopeId","data-v-5b6ff3b9"]]),fue={border:"b base","p-4":""},due=["innerHTML"],hue=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",fue,[Y("div",{"text-xs":"","mb-1":"",class:st(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},He(t(r.time))+" | "+He(r.taskName)+" | "+He(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,due)]))}}),pue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gue={key:1,p6:""},vue=ut({__name:"ViewConsoleOutput",setup(e){const t=Te(()=>{const o=Fw.value;if(o){const s=Xh(_a.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Hl(h))}))}});function r(o){const s=o&&xt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?IC(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=hue;return(f=I(t))!=null&&f.length?(oe(),me("div",pue,[(oe(!0),me(ct,null,gi(I(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",gue,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),Y("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Bw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],M=/Opera\//.test(r),N=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),A=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),L=A||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),z=A||/Mac/.test(o),W=/\bCrOS\b/.test(r),U=/win/i.test(o),re=M&&r.match(/Version\/(\d*\.\d*)/);re&&(re=Number(re[1])),re&&re>=15&&(M=!1,v=!0);var Q=z&&(m||M&&(re==null||re<12.11)),G=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Z=function(n,i){var a=n.className,l=te(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 q(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function F(n,i){return q(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 g=0;g<i.length;++g)u.appendChild(i[g]);return u}function B(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ie(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ye(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 Ne(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function Ue(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};A?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function tt(n){return Je(n.display.wrapper)}function Je(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Ae(n){return it(n).defaultView}function X(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(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 de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=X(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.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 Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ze=50,O={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},J={origin:"*mouse"},fe={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var he=[""];function _e(n){for(;he.length<=n;)he.push(ue(he)+" ");return he[n]}function ue(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 ve(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function qe(){}function Le(n,i){var a;return Object.create?a=Object.create(n):(qe.prototype=n,a=new qe),i&&ae(i,a),a}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Be(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||De.test(n))}function Xe(n,i){return i?i.source.indexOf("\\w")>-1&&Be(n)?!0:i.test(n):Be(n)}function gt(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 lt(n){return n.charCodeAt(0)>=768&&nt.test(n)}function Tt(n,i,a){for(;(a<0?i>0:i<n.length)&<(n.charAt(i));)i+=a;return i}function Rt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Dt(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Wn=null;function lr(n,i,a){var l;Wn=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Wn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Wn=u)}return l??Wn}var tn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(_,$,D){this.level=_,this.from=$,this.to=D}return function(_,$){var D=$=="ltr"?"L":"R";if(_.length==0||$=="ltr"&&!l.test(_))return!1;for(var K=_.length,j=[],ne=0;ne<K;++ne)j.push(a(_.charCodeAt(ne)));for(var ce=0,ge=D;ce<K;++ce){var we=j[ce];we=="m"?j[ce]=ge:ge=we}for(var ke=0,xe=D;ke<K;++ke){var Me=j[ke];Me=="1"&&xe=="r"?j[ke]="n":g.test(Me)&&(xe=Me,Me=="r"&&(j[ke]="R"))}for(var Ie=1,Re=j[0];Ie<K-1;++Ie){var Qe=j[Ie];Qe=="+"&&Re=="1"&&j[Ie+1]=="1"?j[Ie]="1":Qe==","&&Re==j[Ie+1]&&(Re=="1"||Re=="n")&&(j[Ie]=Re),Re=Qe}for(var St=0;St<K;++St){var Xt=j[St];if(Xt==",")j[St]="N";else if(Xt=="%"){var Lt=void 0;for(Lt=St+1;Lt<K&&j[Lt]=="%";++Lt);for(var Rn=St&&j[St-1]=="!"||Lt<K&&j[Lt]=="1"?"1":"N",xn=St;xn<Lt;++xn)j[xn]=Rn;St=Lt-1}}for(var It=0,Sn=D;It<K;++It){var Qt=j[It];Sn=="L"&&Qt=="1"?j[It]="L":g.test(Qt)&&(Sn=Qt)}for(var Ut=0;Ut<K;++Ut)if(u.test(j[Ut])){var Ft=void 0;for(Ft=Ut+1;Ft<K&&u.test(j[Ft]);++Ft);for(var Pt=(Ut?j[Ut-1]:D)=="L",_n=(Ft<K?j[Ft]:D)=="L",cs=Pt==_n?Pt?"L":"R":D,Pi=Ut;Pi<Ft;++Pi)j[Pi]=cs;Ut=Ft-1}for(var sn=[],Or,Yt=0;Yt<K;)if(y.test(j[Yt])){var Bf=Yt;for(++Yt;Yt<K&&y.test(j[Yt]);++Yt);sn.push(new S(0,Bf,Yt))}else{var ri=Yt,mo=sn.length,yo=$=="rtl"?1:0;for(++Yt;Yt<K&&j[Yt]!="L";++Yt);for(var dn=ri;dn<Yt;)if(x.test(j[dn])){ri<dn&&(sn.splice(mo,0,new S(1,ri,dn)),mo+=yo);var us=dn;for(++dn;dn<Yt&&x.test(j[dn]);++dn);sn.splice(mo,0,new S(2,us,dn)),mo+=yo,ri=dn}else++dn;ri<Yt&&sn.splice(mo,0,new S(1,ri,Yt))}return $=="ltr"&&(sn[0].level==1&&(Or=_.match(/^\s+/))&&(sn[0].from=Or[0].length,sn.unshift(new S(0,0,Or[0].length))),ue(sn).level==1&&(Or=_.match(/\s+$/))&&(ue(sn).to-=Or[0].length,sn.push(new S(0,K-Or[0].length,K)))),$=="rtl"?sn.reverse():sn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=tn(n.text,i)),a}var so=[],ze=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]||so).concat(a)}};function Yr(n,i){return n._handlers&&n._handlers[i]||so}function nn(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Mt(n,i){var a=Yr(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 Nt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Mt(n,a||i.type,n,i),mn(i)||i.codemirrorIgnore}function er(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)Ee(a,i[l])==-1&&a.push(i[l])}function Pn(n,i){return Yr(n,i).length>0}function ar(n){n.prototype.on=function(i,a){ze(this,i,a)},n.prototype.off=function(i,a){nn(this,i,a)}}function rn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Io(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function mn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function xi(n){rn(n),Io(n)}function Ws(n){return n.target||n.srcElement}function cr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),z&&n.ctrlKey&&i==1&&(i=3),i}var Ku=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Fo;function Ea(n){if(Fo==null){var i=k("span","");F(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Fo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Fo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Us;function Si(n){if(Us!=null)return Us;var i=F(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return q(n),!a||a.left==a.right?!1:Us=l.right-a.right<3}var tr=`
|
|
22
22
|
|
|
23
23
|
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
24
|
-
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},_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},Ea=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function Xu(n){if(fr!=null)return fr;var i=F(n,k("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Ho={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ho[n]=i}function lo(n,i){dr[n]=i}function qo(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[n.name];typeof i=="string"&&(i={name:i}),n=Le(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=qo(i);var a=Ho[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(ki.hasOwnProperty(i.name)){var u=ki[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var ki={};function Wo(n,i){var a=ki.hasOwnProperty(n)?ki[n]:ki[n]={};ae(i,a)}function Mr(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 Vs(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 Uo(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=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Oe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Zr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function js(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Un(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=Ee(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 R(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],S=x.height;if(i<S)break;i-=S}return a+y}function se(n,i){return i>=n.first&&i<n.first+n.size}function pe(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ee(n,i,a){if(a===void 0&&(a=null),!(this instanceof ee))return new ee(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Se(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Se(n,i)==0}function Vt(n){return ee(n.line,n.ch)}function yn(n,i){return Se(n,i)<0?i:n}function Vo(n,i){return Se(n,i)<0?n:i}function pp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ge(n,i){if(i.line<n.first)return ee(n.first,0);var a=n.first+n.size-1;return i.line>a?ee(a,Oe(n,a).text.length):G1(i,Oe(n,i.line).text.length)}function G1(n,i){var a=n.ch;return a==null||a>i?ee(n.line,i):a<0?ee(n.line,0):n}function gp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var La=function(n,i){this.state=n,this.lookAhead=i},Nr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Nr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Nr.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}},Nr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Nr.fromSaved=function(n,i,a){return i instanceof La?new Nr(n,Mr(n.mode,i.state),a,i.lookAhead):new Nr(n,Mr(n.mode,i),a)},Nr.prototype.save=function(n){var i=n!==!1?Mr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new La(i,this.maxLookAhead):i};function vp(n,i,a,l){var u=[n.state.modeGen],g={};Sp(n,i.text,n.doc.mode,a,function(_,$){return u.push(_,$)},g,l);for(var y=a.state,x=function(_){a.baseTokens=u;var $=n.state.overlays[_],D=1,K=0;a.state=!0,Sp(n,i.text,$.mode,a,function(j,ne){for(var ce=D;K<j;){var ge=u[D];ge>j&&u.splice(D,1,j,u[D+1],ge),D+=2,K=Math.min(j,ge)}if(ne)if($.opaque)u.splice(ce,D-ce,j,"overlay "+ne),D=ce+2;else for(;ce<D;ce+=2){var we=u[ce+1];u[ce+1]=(we?we+" ":"")+"overlay "+ne}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function mp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Gs(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Mr(n.doc.mode,l.state),g=vp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Gs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Nr(l,!0,i);var g=K1(n,i,a),y=g>l.first&&Oe(l,g-1).stateAfter,x=y?Nr.fromSaved(l,y,g):new Nr(l,Uo(l.mode),g);return l.iter(g,i,function(S){Yu(n,S.text,x);var _=x.line;S.stateAfter=_==i-1||_%5==0||_>=u.viewFrom&&_<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Yu(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&yp(u,a.state);!g.eol();)Zu(u,g,a.state),g.start=g.pos}function yp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Vs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Zu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Vs(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var bp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function wp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ge(u,i);var x=Oe(u,i.line),S=Gs(n,i.line,a),_=new $t(x.text,n.options.tabSize,S),$;for(l&&($=[]);(l||_.pos<i.ch)&&!_.eol();)_.start=_.pos,y=Zu(g,_,S.state),l&&$.push(new bp(_,y,Mr(u.mode,S.state)));return l?$:new bp(_,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 Sp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,_=null,$=new $t(i,n.options.tabSize,l),D,K=n.options.addModeClass&&[null];for(i==""&&xp(yp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(x=!1,y&&Yu(n,i,l,$.pos),$.pos=i.length,D=null):D=xp(Zu(a,$,l.state,K),g),K){var j=K[0].name;j&&(D="m-"+(D?j+" "+D:j))}if(!x||_!=D){for(;S<$.start;)S=Math.min($.start,S+5e3),u(S,_);_=D}$.start=$.pos}for(;S<$.pos;){var ne=Math.min($.pos,S+5e3);u(ne,_),S=ne}}function K1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var S=Oe(g,x-1),_=S.stateAfter;if(_&&(!a||x+(_ instanceof La?_.lookAhead:0)<=g.modeFrontier))return x;var $=de(S.text,null,n.options.tabSize);(u==null||l>$)&&(u=x-1,l=$)}return u}function X1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Oe(n,l).stateAfter;if(u&&(!(u instanceof La)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var _p=!1,Jr=!1;function Y1(){_p=!0}function Z1(){Jr=!0}function Aa(n,i,a){this.marker=n,this.from=i,this.to=a}function Ks(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function J1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function Q1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function ex(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Aa(y,g.from,S?null:g.to))}}return l}function tx(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Aa(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Ju(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Se(i.from,i.to)==0,x=ex(a,u,y),S=tx(l,g,y),_=i.text.length==1,$=ue(i.text).length+(_?u:0);if(x)for(var D=0;D<x.length;++D){var K=x[D];if(K.to==null){var j=Ks(S,K.marker);j?_&&(K.to=j.to==null?null:j.to+$):K.to=u}}if(S)for(var ne=0;ne<S.length;++ne){var ce=S[ne];if(ce.to!=null&&(ce.to+=$),ce.from==null){var ge=Ks(x,ce.marker);ge||(ce.from=$,_&&(x||(x=[])).push(ce))}else ce.from+=$,_&&(x||(x=[])).push(ce)}x&&(x=kp(x)),S&&S!=x&&(S=kp(S));var we=[x];if(!_){var ke=i.text.length-2,xe;if(ke>0&&x)for(var Me=0;Me<x.length;++Me)x[Me].to==null&&(xe||(xe=[])).push(new Aa(x[Me].marker,null,null));for(var Ie=0;Ie<ke;++Ie)we.push(xe);we.push(S)}return we}function kp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function nx(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(j){if(j.markedSpans)for(var ne=0;ne<j.markedSpans.length;++ne){var ce=j.markedSpans[ne].marker;ce.readOnly&&(!l||Ee(l,ce)==-1)&&(l||(l=[])).push(ce)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),S=0;S<u.length;++S){var _=u[S];if(!(Se(_.to,x.from)<0||Se(_.from,x.to)>0)){var $=[S,1],D=Se(_.from,x.from),K=Se(_.to,x.to);(D<0||!y.inclusiveLeft&&!D)&&$.push({from:_.from,to:x.from}),(K>0||!y.inclusiveRight&&!K)&&$.push({from:x.to,to:_.to}),u.splice.apply(u,$),S+=$.length-3}}return u}function Tp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Cp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ma(n){return n.inclusiveLeft?-1:0}function Na(n){return n.inclusiveRight?1:0}function Qu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Se(l.from,u.from)||Ma(n)-Ma(i);if(g)return-g;var y=Se(l.to,u.to)||Na(n)-Na(i);return y||i.id-n.id}function Ep(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Qu(l,u.marker)<0)&&(l=u.marker);return l}function Lp(n){return Ep(n,!0)}function $a(n){return Ep(n,!1)}function rx(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Qu(l,g.marker)<0)&&(l=g.marker)}return l}function Ap(n,i,a,l,u){var g=Oe(n,i),y=Jr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var _=S.marker.find(0),$=Se(_.from,a)||Ma(S.marker)-Ma(u),D=Se(_.to,l)||Na(S.marker)-Na(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Se(_.to,a)>=0:Se(_.to,a)>0)||$>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Se(_.from,l)<=0:Se(_.from,l)<0)))return!0}}}function pr(n){for(var i;i=Lp(n);)n=i.find(-1,!0).line;return n}function ix(n){for(var i;i=$a(n);)n=i.find(1,!0).line;return n}function ox(n){for(var i,a;i=$a(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function ef(n,i){var a=Oe(n,i),l=pr(a);return a==l?i:T(l)}function Mp(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!Ti(n,a))return i;for(;l=$a(a);)a=l.find(1,!0).line;return T(a)+1}function Ti(n,i){var a=Jr&&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&&tf(n,i,l))return!0}}}function tf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return tf(n,l.line,Ks(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&tf(n,i,u))return!0}function Qr(n){n=pr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function Pa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Lp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=$a(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function nf(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Pa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Pa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,Cp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return T(this)},cr(jo);function sx(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Tp(n),Cp(n,a);var u=l?l(n):1;u!=n.height&&Un(n,u)}function lx(n){n.parent=null,Tp(n)}var ax={},cx={};function Np(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?cx:ax;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function $p(n,i){var a=B("span",null,null,v?"padding-right: .1px":null),l={pre:B("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=fx,Si(n.display.measure)&&(y=Ve(g,n.doc.direction))&&(l.addToken=hx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&T(g);px(g,l,mp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Ue(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Ue(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ca(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Mt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Ue(l.pre.className,l.textClass||"")),l}function ux(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function fx(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?dx(i,n.trailingSpace):i,S=n.cm.state.specialChars,_=!1,$;if(!S.test(i))n.col+=i.length,$=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(_=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var D=0;;){S.lastIndex=D;var K=S.exec(i),j=K?K.index-D:i.length-D;if(j){var ne=document.createTextNode(x.slice(D,D+j));h&&p<9?$.appendChild(k("span",[ne])):$.appendChild(ne),n.map.push(n.pos,n.pos+j,ne),n.col+=j,n.pos+=j}if(!K)break;D+=j+1;var ce=void 0;if(K[0]==" "){var ge=n.cm.options.tabSize,we=ge-n.col%ge;ce=$.appendChild(k("span",_e(we),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),n.col+=we}else K[0]=="\r"||K[0]==`
|
|
25
|
-
`?(ce=$.appendChild(k("span",K[0]=="\r"?"␍":"","cm-invalidchar")),ce.setAttribute("cm-text",K[0]),n.col+=1):(ce=n.cm.options.specialCharPlaceholder(K[0]),ce.setAttribute("cm-text",K[0]),h&&p<9?$.appendChild(k("span",[ce])):$.appendChild(ce),n.col+=1);n.map.push(n.pos,n.pos+1,ce),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||_||g||y){var ke=a||"";l&&(ke+=l),u&&(ke+=u);var xe=k("span",[$],ke,g);if(y)for(var Me in y)y.hasOwnProperty(Me)&&Me!="style"&&Me!="class"&&xe.setAttribute(Me,y[Me]);return n.content.appendChild(xe)}n.content.appendChild($)}}function dx(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function hx(n,i){return function(a,l,u,g,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var _=a.pos,$=_+l.length;;){for(var D=void 0,K=0;K<i.length&&(D=i[K],!(D.to>_&&D.from<=_));K++);if(D.to>=$)return n(a,l,u,g,y,x,S);n(a,l.slice(0,D.to-_),u,g,null,x,S),g=null,l=l.slice(D.to-_),_=D.to}}}function Pp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function px(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Np(a[y+1],i.cm.options));return}for(var x=u.length,S=0,_=1,$="",D,K,j=0,ne,ce,ge,we,ke;;){if(j==S){ne=ce=ge=K="",ke=null,we=null,j=1/0;for(var xe=[],Me=void 0,Ie=0;Ie<l.length;++Ie){var Re=l[Ie],Qe=Re.marker;if(Qe.type=="bookmark"&&Re.from==S&&Qe.widgetNode)xe.push(Qe);else if(Re.from<=S&&(Re.to==null||Re.to>S||Qe.collapsed&&Re.to==S&&Re.from==S)){if(Re.to!=null&&Re.to!=S&&j>Re.to&&(j=Re.to,ce=""),Qe.className&&(ne+=" "+Qe.className),Qe.css&&(K=(K?K+";":"")+Qe.css),Qe.startStyle&&Re.from==S&&(ge+=" "+Qe.startStyle),Qe.endStyle&&Re.to==j&&(Me||(Me=[])).push(Qe.endStyle,Re.to),Qe.title&&((ke||(ke={})).title=Qe.title),Qe.attributes)for(var St in Qe.attributes)(ke||(ke={}))[St]=Qe.attributes[St];Qe.collapsed&&(!we||Qu(we.marker,Qe)<0)&&(we=Re)}else Re.from>S&&j>Re.from&&(j=Re.from)}if(Me)for(var Xt=0;Xt<Me.length;Xt+=2)Me[Xt+1]==j&&(ce+=" "+Me[Xt]);if(!we||we.from==S)for(var Lt=0;Lt<xe.length;++Lt)Pp(i,0,xe[Lt]);if(we&&(we.from||0)==S){if(Pp(i,(we.to==null?x+1:we.to)-S,we.marker,we.from==null),we.to==null)return;we.to==S&&(we=!1)}}if(S>=x)break;for(var Rn=Math.min(x,j);;){if($){var xn=S+$.length;if(!we){var It=xn>Rn?$.slice(0,Rn-S):$;i.addToken(i,It,D?D+ne:ne,ge,S+It.length==j?ce:"",K,ke)}if(xn>=Rn){$=$.slice(Rn-S),S=Rn;break}S=xn,ge=""}$=u.slice(g,g=a[_++]),D=Np(a[_++],i.cm.options)}}}function Op(n,i,a){this.line=i,this.rest=ox(i),this.size=this.rest?T(ue(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ti(n,i)}function Oa(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Op(n.doc,Oe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Go=null;function gx(n){Go?Go.ops.push(n):n.ownsGroup=Go={ops:[n],delayedCallbacks:[]}}function vx(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function mx(n,i){var a=n.ownsGroup;if(a)try{vx(a)}finally{Go=null,i(a)}}var Xs=null;function jt(n,i){var a=Yr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Go?u=Go.delayedCallbacks:Xs?u=Xs:(u=Xs=[],setTimeout(yx,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function yx(){var n=Xs;Xs=null;for(var i=0;i<n.length;++i)n[i]()}function Rp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?wx(n,i):g=="gutter"?zp(n,i,a,l):g=="class"?rf(n,i):g=="widget"&&xx(n,i,l)}i.changes=null}function Ys(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 bx(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Ys(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Dp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):$p(n,i)}function wx(n,i){var a=i.text.className,l=Dp(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,rf(n,i)):a&&(i.text.className=a)}function rf(n,i){bx(n,i),i.line.wrapClass?Ys(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function zp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=Ys(i);i.gutterBackground=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 g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=Ys(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&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",pe(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var S=0;S<n.display.gutterSpecs.length;++S){var _=n.display.gutterSpecs[S].className,$=g.hasOwnProperty(_)&&g[_];$&&x.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[_]+"px; width: "+l.gutterWidth[_]+"px"))}}}function xx(n,i,a){i.alignable&&(i.alignable=null);for(var l=te("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Ip(n,i,a)}function Sx(n,i,a,l){var u=Dp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),rf(n,i),zp(n,i,a,l),Ip(n,i,l),i.node}function Ip(n,i,a){if(Fp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Fp(n,i.rest[l],i,a,!1)}function Fp(n,i,a,l,u){if(i.widgets)for(var g=Ys(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],_=k("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),_x(S,_,a,l),n.display.input.setUneditable(_),u&&S.above?g.insertBefore(_,a.gutter||a.text):g.appendChild(_),jt(S,"redraw")}}function _x(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Zs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ie(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),F(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ei(n,i){for(var a=Ws(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 Ra(n){return n.lineSpace.offsetTop}function of(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Hp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=F(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 $r(n){return Ze-n.display.nativeBarWidth}function ao(n){return n.display.scroller.clientWidth-$r(n)-n.display.barWidth}function sf(n){return n.display.scroller.clientHeight-$r(n)-n.display.barHeight}function kx(n,i,a){var l=n.options.lineWrapping,u=l&&ao(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var S=y[x],_=y[x+1];Math.abs(S.bottom-_.bottom)>2&&g.push((S.bottom+_.top)/2-a.top)}}g.push(a.bottom-a.top)}}function qp(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(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Tx(n,i){i=pr(i);var a=T(i),l=n.display.externalMeasured=new Op(n.doc,i,a);l.lineN=a;var u=l.built=$p(n,l);return l.text=u.pre,F(n.display.lineMeasure,u.pre),l}function Bp(n,i,a,l){return Pr(n,Ko(n,i),a,l)}function lf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[fo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Ko(n,i){var a=T(i),l=lf(n,a);l&&!l.text?l=null:l&&l.changes&&(Rp(n,l,a,df(n)),n.curOp.forceUpdate=!0),l||(l=Tx(n,i));var u=qp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Pr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(kx(n,i.view,i.rect),i.hasHeights=!0),y=Ex(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Wp={left:0,right:0,top:0,bottom:0};function Up(n,i,a){for(var l,u,g,y,x,S,_=0;_<n.length;_+=3)if(x=n[_],S=n[_+1],i<x?(u=0,g=1,y="left"):i<S?(u=i-x,g=u+1):(_==n.length-3||i==S&&n[_+3]>i)&&(g=S-x,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[_+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)l=n[(_-=3)+2],y="left";if(a=="right"&&u==S-x)for(;_<n.length-3&&n[_+3]==n[_+4]&&!n[_+5].insertLeft;)l=n[(_+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:S}}function Cx(n,i){var a=Wp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function Ex(n,i,a,l){var u=Up(i.map,a,l),g=u.node,y=u.start,x=u.end,S=u.collapse,_;if(g.nodeType==3){for(var $=0;$<4;$++){for(;y&<(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&<(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?_=g.parentNode.getBoundingClientRect():_=Cx(V(g,y,x).getClientRects(),l),_.left||_.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(_=Lx(n.display.measure,_))}else{y>0&&(S=l="right");var D;n.options.lineWrapping&&(D=g.getClientRects()).length>1?_=D[l=="right"?D.length-1:0]:_=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!_||!_.left&&!_.right)){var K=g.parentNode.getClientRects()[0];K?_={left:K.left,right:K.left+Yo(n.display),top:K.top,bottom:K.bottom}:_=Wp}for(var j=_.top-i.rect.top,ne=_.bottom-i.rect.top,ce=(j+ne)/2,ge=i.view.measure.heights,we=0;we<ge.length-1&&!(ce<ge[we]);we++);var ke=we?ge[we-1]:0,xe=ge[we],Me={left:(S=="right"?_.right:_.left)-i.rect.left,right:(S=="left"?_.left:_.right)-i.rect.left,top:ke,bottom:xe};return!_.left&&!_.right&&(Me.bogus=!0),n.options.singleCursorHeightPerLine||(Me.rtop=j,Me.rbottom=ne),Me}function Lx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xu(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 Vp(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 jp(n){n.display.externalMeasure=null,q(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Vp(n.display.view[i])}function Js(n){jp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Gp(n){return b&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Kp(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function af(n){var i=pr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Zs(a[u]));return l}function Da(n,i,a,l,u){if(!u){var g=af(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=Qr(i);if(l=="local"?y+=Ra(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Kp(it(n)));var S=x.left+(l=="window"?0:Gp(it(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function Xp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Gp(it(n)),u-=Kp(it(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function za(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),Da(n,l,Bp(n,l,i.ch,u),a)}function gr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Ko(n,l));function y(ne,ce){var ge=Pr(n,u,ne,ce?"right":"left",g);return ce?ge.left=ge.right:ge.right=ge.left,Da(n,l,ge,a)}var x=Ve(l,n.doc.direction),S=i.ch,_=i.sticky;if(S>=l.text.length?(S=l.text.length,_="before"):S<=0&&(S=0,_="after"),!x)return y(_=="before"?S-1:S,_=="before");function $(ne,ce,ge){var we=x[ce],ke=we.level==1;return y(ge?ne-1:ne,ke!=ge)}var D=ar(x,S,_),K=Wn,j=$(S,D,_=="before");return K!=null&&(j.other=$(S,K,_!="before")),j}function Yp(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Yo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=Qr(l)+Ra(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function cf(n,i,a,l,u){var g=ee(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function uf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return cf(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return cf(l.first+l.size-1,Oe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Oe(l,u);;){var x=Ax(n,y,u,i,a),S=rx(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var _=S.find(1);if(_.line==u)return _;y=Oe(l,u=_.line)}}function Zp(n,i,a,l){l-=af(i);var u=i.text.length,g=Rt(function(y){return Pr(n,a,y-1).bottom<=l},u,0);return u=Rt(function(y){return Pr(n,a,y).top>l},g,u),{begin:g,end:u}}function Jp(n,i,a,l){a||(a=Ko(n,i));var u=Da(n,i,Pr(n,a,l),"line").top;return Zp(n,i,a,u)}function ff(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Ax(n,i,a,l,u){u-=Qr(i);var g=Ko(n,i),y=af(i),x=0,S=i.text.length,_=!0,$=Ve(i,n.doc.direction);if($){var D=(n.options.lineWrapping?Nx:Mx)(n,i,a,g,$,l,u);_=D.level!=1,x=_?D.from:D.to-1,S=_?D.to:D.from-1}var K=null,j=null,ne=Rt(function(Ie){var Re=Pr(n,g,Ie);return Re.top+=y,Re.bottom+=y,ff(Re,l,u,!1)?(Re.top<=u&&Re.left<=l&&(K=Ie,j=Re),!0):!1},x,S),ce,ge,we=!1;if(j){var ke=l-j.left<j.right-l,xe=ke==_;ne=K+(xe?0:1),ge=xe?"after":"before",ce=ke?j.left:j.right}else{!_&&(ne==S||ne==x)&&ne++,ge=ne==0?"after":ne==i.text.length?"before":Pr(n,g,ne-(_?1:0)).bottom+y<=u==_?"after":"before";var Me=gr(n,ee(a,ne,ge),"line",i,g);ce=Me.left,we=u<Me.top?-1:u>=Me.bottom?1:0}return ne=Tt(i.text,ne,1),cf(a,ne,ge,we,l-ce)}function Mx(n,i,a,l,u,g,y){var x=Rt(function(D){var K=u[D],j=K.level!=1;return ff(gr(n,ee(a,j?K.to:K.from,j?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[x];if(x>0){var _=S.level!=1,$=gr(n,ee(a,_?S.from:S.to,_?"after":"before"),"line",i,l);ff($,g,y,!0)&&$.top>y&&(S=u[x-1])}return S}function Nx(n,i,a,l,u,g,y){var x=Zp(n,i,l,y),S=x.begin,_=x.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var $=null,D=null,K=0;K<u.length;K++){var j=u[K];if(!(j.from>=_||j.to<=S)){var ne=j.level!=1,ce=Pr(n,l,ne?Math.min(_,j.to)-1:Math.max(S,j.from)).right,ge=ce<g?g-ce+1e9:ce-g;(!$||D>ge)&&($=j,D=ge)}}return $||($=u[u.length-1]),$.from<S&&($={from:S,to:$.to,level:$.level}),$.to>_&&($={from:$.from,to:_,level:$.level}),$}var co;function Xo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(co==null){co=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)co.appendChild(document.createTextNode("x")),co.appendChild(k("br"));co.appendChild(document.createTextNode("x"))}F(n.measure,co);var a=co.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),q(n.measure),a||1}function Yo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");F(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function df(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:hf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function hf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Qp(n){var i=Xo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Yo(n.display)-3);return function(u){if(Ti(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function pf(n){var i=n.doc,a=Qp(n);i.iter(function(l){var u=a(l);u!=l.height&&Un(l,u)})}function uo(n,i,a,l){var u=n.display;if(!a&&Ws(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var S=uf(n,g,y),_;if(l&&S.xRel>0&&(_=Oe(n.doc,S.line).text).length==S.ch){var $=de(_,_.length,n.options.tabSize)-_.length;S=ee(S.line,Math.max(0,Math.round((g-Hp(n.display).left)/Yo(n.display))-$))}return S}function fo(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 bn(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)Jr&&ef(n.doc,i)<u.viewTo&&Ei(n);else if(a<=u.viewFrom)Jr&&Mp(n.doc,a+l)>u.viewFrom?Ei(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ei(n);else if(i<=u.viewFrom){var g=Ia(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ei(n)}else if(a>=u.viewTo){var y=Ia(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ei(n)}else{var x=Ia(n,i,i,-1),S=Ia(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(Oa(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Ei(n)}var _=u.externalMeasured;_&&(a<_.lineN?_.lineN+=l:i<_.lineN+_.size&&(u.externalMeasured=null))}function Ci(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[fo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);Ee(y,a)==-1&&y.push(a)}}}function Ei(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ia(n,i,a,l){var u=fo(n,i),g,y=n.display.view;if(!Jr||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;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;ef(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function $x(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Oa(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Oa(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(fo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Oa(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,fo(n,a)))),l.viewTo=a}function eg(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Qs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function tg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var _=S.empty();if(y){var $=y(n,S);$&&gf(n,$,u)}else(_||n.options.showCursorWhenSelecting)&&gf(n,S.head,u);_||Px(n,S,g)}}return l}function gf(n,i,a){var l=gr(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 g=za(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(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 Fa(n,i){return n.top-i.top||n.left-i.left}function Px(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Hp(n.display),x=y.left,S=Math.max(l.sizerWidth,ao(n)-l.sizer.offsetLeft)-y.right,_=u.direction=="ltr";function $(xe,Me,Ie,Re){Me<0&&(Me=0),Me=Math.round(Me),Re=Math.round(Re),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
|
|
24
|
+
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},_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},La=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),ur=null;function Xu(n){if(ur!=null)return ur;var i=F(n,k("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return ur=Math.abs(a.left-l.left)>1}var Ho={},fr={};function dr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ho[n]=i}function lo(n,i){fr[n]=i}function qo(n){if(typeof n=="string"&&fr.hasOwnProperty(n))n=fr[n];else if(n&&typeof n.name=="string"&&fr.hasOwnProperty(n.name)){var i=fr[n.name];typeof i=="string"&&(i={name:i}),n=Le(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=qo(i);var a=Ho[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(ki.hasOwnProperty(i.name)){var u=ki[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var ki={};function Wo(n,i){var a=ki.hasOwnProperty(n)?ki[n]:ki[n]={};ae(i,a)}function Mr(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 Vs(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 Uo(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=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Oe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Zr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function js(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Un(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=Ee(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 R(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],S=x.height;if(i<S)break;i-=S}return a+y}function se(n,i){return i>=n.first&&i<n.first+n.size}function pe(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ee(n,i,a){if(a===void 0&&(a=null),!(this instanceof ee))return new ee(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Se(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Se(n,i)==0}function Vt(n){return ee(n.line,n.ch)}function yn(n,i){return Se(n,i)<0?i:n}function Vo(n,i){return Se(n,i)<0?n:i}function hp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ge(n,i){if(i.line<n.first)return ee(n.first,0);var a=n.first+n.size-1;return i.line>a?ee(a,Oe(n,a).text.length):j1(i,Oe(n,i.line).text.length)}function j1(n,i){var a=n.ch;return a==null||a>i?ee(n.line,i):a<0?ee(n.line,0):n}function pp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var Aa=function(n,i){this.state=n,this.lookAhead=i},Nr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Nr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Nr.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}},Nr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Nr.fromSaved=function(n,i,a){return i instanceof Aa?new Nr(n,Mr(n.mode,i.state),a,i.lookAhead):new Nr(n,Mr(n.mode,i),a)},Nr.prototype.save=function(n){var i=n!==!1?Mr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Aa(i,this.maxLookAhead):i};function gp(n,i,a,l){var u=[n.state.modeGen],g={};xp(n,i.text,n.doc.mode,a,function(_,$){return u.push(_,$)},g,l);for(var y=a.state,x=function(_){a.baseTokens=u;var $=n.state.overlays[_],D=1,K=0;a.state=!0,xp(n,i.text,$.mode,a,function(j,ne){for(var ce=D;K<j;){var ge=u[D];ge>j&&u.splice(D,1,j,u[D+1],ge),D+=2,K=Math.min(j,ge)}if(ne)if($.opaque)u.splice(ce,D-ce,j,"overlay "+ne),D=ce+2;else for(;ce<D;ce+=2){var we=u[ce+1];u[ce+1]=(we?we+" ":"")+"overlay "+ne}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function vp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Gs(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Mr(n.doc.mode,l.state),g=gp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Gs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Nr(l,!0,i);var g=G1(n,i,a),y=g>l.first&&Oe(l,g-1).stateAfter,x=y?Nr.fromSaved(l,y,g):new Nr(l,Uo(l.mode),g);return l.iter(g,i,function(S){Yu(n,S.text,x);var _=x.line;S.stateAfter=_==i-1||_%5==0||_>=u.viewFrom&&_<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Yu(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&mp(u,a.state);!g.eol();)Zu(u,g,a.state),g.start=g.pos}function mp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Vs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Zu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Vs(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var yp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function bp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ge(u,i);var x=Oe(u,i.line),S=Gs(n,i.line,a),_=new $t(x.text,n.options.tabSize,S),$;for(l&&($=[]);(l||_.pos<i.ch)&&!_.eol();)_.start=_.pos,y=Zu(g,_,S.state),l&&$.push(new yp(_,y,Mr(u.mode,S.state)));return l?$:new yp(_,y,S.state)}function wp(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 xp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,_=null,$=new $t(i,n.options.tabSize,l),D,K=n.options.addModeClass&&[null];for(i==""&&wp(mp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(x=!1,y&&Yu(n,i,l,$.pos),$.pos=i.length,D=null):D=wp(Zu(a,$,l.state,K),g),K){var j=K[0].name;j&&(D="m-"+(D?j+" "+D:j))}if(!x||_!=D){for(;S<$.start;)S=Math.min($.start,S+5e3),u(S,_);_=D}$.start=$.pos}for(;S<$.pos;){var ne=Math.min($.pos,S+5e3);u(ne,_),S=ne}}function G1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var S=Oe(g,x-1),_=S.stateAfter;if(_&&(!a||x+(_ instanceof Aa?_.lookAhead:0)<=g.modeFrontier))return x;var $=de(S.text,null,n.options.tabSize);(u==null||l>$)&&(u=x-1,l=$)}return u}function K1(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=Oe(n,l).stateAfter;if(u&&(!(u instanceof Aa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Sp=!1,Jr=!1;function X1(){Sp=!0}function Y1(){Jr=!0}function Ma(n,i,a){this.marker=n,this.from=i,this.to=a}function Ks(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function Z1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function J1(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 Q1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Ma(y,g.from,S?null:g.to))}}return l}function ex(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Ma(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Ju(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Se(i.from,i.to)==0,x=Q1(a,u,y),S=ex(l,g,y),_=i.text.length==1,$=ue(i.text).length+(_?u:0);if(x)for(var D=0;D<x.length;++D){var K=x[D];if(K.to==null){var j=Ks(S,K.marker);j?_&&(K.to=j.to==null?null:j.to+$):K.to=u}}if(S)for(var ne=0;ne<S.length;++ne){var ce=S[ne];if(ce.to!=null&&(ce.to+=$),ce.from==null){var ge=Ks(x,ce.marker);ge||(ce.from=$,_&&(x||(x=[])).push(ce))}else ce.from+=$,_&&(x||(x=[])).push(ce)}x&&(x=_p(x)),S&&S!=x&&(S=_p(S));var we=[x];if(!_){var ke=i.text.length-2,xe;if(ke>0&&x)for(var Me=0;Me<x.length;++Me)x[Me].to==null&&(xe||(xe=[])).push(new Ma(x[Me].marker,null,null));for(var Ie=0;Ie<ke;++Ie)we.push(xe);we.push(S)}return we}function _p(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 tx(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(j){if(j.markedSpans)for(var ne=0;ne<j.markedSpans.length;++ne){var ce=j.markedSpans[ne].marker;ce.readOnly&&(!l||Ee(l,ce)==-1)&&(l||(l=[])).push(ce)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),S=0;S<u.length;++S){var _=u[S];if(!(Se(_.to,x.from)<0||Se(_.from,x.to)>0)){var $=[S,1],D=Se(_.from,x.from),K=Se(_.to,x.to);(D<0||!y.inclusiveLeft&&!D)&&$.push({from:_.from,to:x.from}),(K>0||!y.inclusiveRight&&!K)&&$.push({from:x.to,to:_.to}),u.splice.apply(u,$),S+=$.length-3}}return u}function kp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Tp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Na(n){return n.inclusiveLeft?-1:0}function $a(n){return n.inclusiveRight?1:0}function Qu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Se(l.from,u.from)||Na(n)-Na(i);if(g)return-g;var y=Se(l.to,u.to)||$a(n)-$a(i);return y||i.id-n.id}function Cp(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Qu(l,u.marker)<0)&&(l=u.marker);return l}function Ep(n){return Cp(n,!0)}function Pa(n){return Cp(n,!1)}function nx(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Qu(l,g.marker)<0)&&(l=g.marker)}return l}function Lp(n,i,a,l,u){var g=Oe(n,i),y=Jr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var _=S.marker.find(0),$=Se(_.from,a)||Na(S.marker)-Na(u),D=Se(_.to,l)||$a(S.marker)-$a(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Se(_.to,a)>=0:Se(_.to,a)>0)||$>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Se(_.from,l)<=0:Se(_.from,l)<0)))return!0}}}function hr(n){for(var i;i=Ep(n);)n=i.find(-1,!0).line;return n}function rx(n){for(var i;i=Pa(n);)n=i.find(1,!0).line;return n}function ix(n){for(var i,a;i=Pa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function ef(n,i){var a=Oe(n,i),l=hr(a);return a==l?i:T(l)}function Ap(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!Ti(n,a))return i;for(;l=Pa(a);)a=l.find(1,!0).line;return T(a)+1}function Ti(n,i){var a=Jr&&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&&tf(n,i,l))return!0}}}function tf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return tf(n,l.line,Ks(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&tf(n,i,u))return!0}function Qr(n){n=hr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function Oa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Ep(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Pa(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function nf(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Oa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Oa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,Tp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return T(this)},ar(jo);function ox(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),kp(n),Tp(n,a);var u=l?l(n):1;u!=n.height&&Un(n,u)}function sx(n){n.parent=null,kp(n)}var lx={},ax={};function Mp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?ax:lx;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Np(n,i){var a=B("span",null,null,v?"padding-right: .1px":null),l={pre:B("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=ux,Si(n.display.measure)&&(y=Ve(g,n.doc.direction))&&(l.addToken=dx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&T(g);hx(g,l,vp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Ue(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Ue(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ea(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Mt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Ue(l.pre.className,l.textClass||"")),l}function cx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ux(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?fx(i,n.trailingSpace):i,S=n.cm.state.specialChars,_=!1,$;if(!S.test(i))n.col+=i.length,$=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(_=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var D=0;;){S.lastIndex=D;var K=S.exec(i),j=K?K.index-D:i.length-D;if(j){var ne=document.createTextNode(x.slice(D,D+j));h&&p<9?$.appendChild(k("span",[ne])):$.appendChild(ne),n.map.push(n.pos,n.pos+j,ne),n.col+=j,n.pos+=j}if(!K)break;D+=j+1;var ce=void 0;if(K[0]==" "){var ge=n.cm.options.tabSize,we=ge-n.col%ge;ce=$.appendChild(k("span",_e(we),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),n.col+=we}else K[0]=="\r"||K[0]==`
|
|
25
|
+
`?(ce=$.appendChild(k("span",K[0]=="\r"?"␍":"","cm-invalidchar")),ce.setAttribute("cm-text",K[0]),n.col+=1):(ce=n.cm.options.specialCharPlaceholder(K[0]),ce.setAttribute("cm-text",K[0]),h&&p<9?$.appendChild(k("span",[ce])):$.appendChild(ce),n.col+=1);n.map.push(n.pos,n.pos+1,ce),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||_||g||y){var ke=a||"";l&&(ke+=l),u&&(ke+=u);var xe=k("span",[$],ke,g);if(y)for(var Me in y)y.hasOwnProperty(Me)&&Me!="style"&&Me!="class"&&xe.setAttribute(Me,y[Me]);return n.content.appendChild(xe)}n.content.appendChild($)}}function fx(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function dx(n,i){return function(a,l,u,g,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var _=a.pos,$=_+l.length;;){for(var D=void 0,K=0;K<i.length&&(D=i[K],!(D.to>_&&D.from<=_));K++);if(D.to>=$)return n(a,l,u,g,y,x,S);n(a,l.slice(0,D.to-_),u,g,null,x,S),g=null,l=l.slice(D.to-_),_=D.to}}}function $p(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 hx(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Mp(a[y+1],i.cm.options));return}for(var x=u.length,S=0,_=1,$="",D,K,j=0,ne,ce,ge,we,ke;;){if(j==S){ne=ce=ge=K="",ke=null,we=null,j=1/0;for(var xe=[],Me=void 0,Ie=0;Ie<l.length;++Ie){var Re=l[Ie],Qe=Re.marker;if(Qe.type=="bookmark"&&Re.from==S&&Qe.widgetNode)xe.push(Qe);else if(Re.from<=S&&(Re.to==null||Re.to>S||Qe.collapsed&&Re.to==S&&Re.from==S)){if(Re.to!=null&&Re.to!=S&&j>Re.to&&(j=Re.to,ce=""),Qe.className&&(ne+=" "+Qe.className),Qe.css&&(K=(K?K+";":"")+Qe.css),Qe.startStyle&&Re.from==S&&(ge+=" "+Qe.startStyle),Qe.endStyle&&Re.to==j&&(Me||(Me=[])).push(Qe.endStyle,Re.to),Qe.title&&((ke||(ke={})).title=Qe.title),Qe.attributes)for(var St in Qe.attributes)(ke||(ke={}))[St]=Qe.attributes[St];Qe.collapsed&&(!we||Qu(we.marker,Qe)<0)&&(we=Re)}else Re.from>S&&j>Re.from&&(j=Re.from)}if(Me)for(var Xt=0;Xt<Me.length;Xt+=2)Me[Xt+1]==j&&(ce+=" "+Me[Xt]);if(!we||we.from==S)for(var Lt=0;Lt<xe.length;++Lt)$p(i,0,xe[Lt]);if(we&&(we.from||0)==S){if($p(i,(we.to==null?x+1:we.to)-S,we.marker,we.from==null),we.to==null)return;we.to==S&&(we=!1)}}if(S>=x)break;for(var Rn=Math.min(x,j);;){if($){var xn=S+$.length;if(!we){var It=xn>Rn?$.slice(0,Rn-S):$;i.addToken(i,It,D?D+ne:ne,ge,S+It.length==j?ce:"",K,ke)}if(xn>=Rn){$=$.slice(Rn-S),S=Rn;break}S=xn,ge=""}$=u.slice(g,g=a[_++]),D=Mp(a[_++],i.cm.options)}}}function Pp(n,i,a){this.line=i,this.rest=ix(i),this.size=this.rest?T(ue(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ti(n,i)}function Ra(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Pp(n.doc,Oe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Go=null;function px(n){Go?Go.ops.push(n):n.ownsGroup=Go={ops:[n],delayedCallbacks:[]}}function gx(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 vx(n,i){var a=n.ownsGroup;if(a)try{gx(a)}finally{Go=null,i(a)}}var Xs=null;function jt(n,i){var a=Yr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Go?u=Go.delayedCallbacks:Xs?u=Xs:(u=Xs=[],setTimeout(mx,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function mx(){var n=Xs;Xs=null;for(var i=0;i<n.length;++i)n[i]()}function Op(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?bx(n,i):g=="gutter"?Dp(n,i,a,l):g=="class"?rf(n,i):g=="widget"&&wx(n,i,l)}i.changes=null}function Ys(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 yx(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Ys(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Rp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Np(n,i)}function bx(n,i){var a=i.text.className,l=Rp(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,rf(n,i)):a&&(i.text.className=a)}function rf(n,i){yx(n,i),i.line.wrapClass?Ys(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Dp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=Ys(i);i.gutterBackground=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 g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=Ys(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&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",pe(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var S=0;S<n.display.gutterSpecs.length;++S){var _=n.display.gutterSpecs[S].className,$=g.hasOwnProperty(_)&&g[_];$&&x.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[_]+"px; width: "+l.gutterWidth[_]+"px"))}}}function wx(n,i,a){i.alignable&&(i.alignable=null);for(var l=te("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);zp(n,i,a)}function xx(n,i,a,l){var u=Rp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),rf(n,i),Dp(n,i,a,l),zp(n,i,l),i.node}function zp(n,i,a){if(Ip(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Ip(n,i.rest[l],i,a,!1)}function Ip(n,i,a,l,u){if(i.widgets)for(var g=Ys(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],_=k("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Sx(S,_,a,l),n.display.input.setUneditable(_),u&&S.above?g.insertBefore(_,a.gutter||a.text):g.appendChild(_),jt(S,"redraw")}}function Sx(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Zs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ie(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),F(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ei(n,i){for(var a=Ws(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 Da(n){return n.lineSpace.offsetTop}function of(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Fp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=F(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 $r(n){return Ze-n.display.nativeBarWidth}function ao(n){return n.display.scroller.clientWidth-$r(n)-n.display.barWidth}function sf(n){return n.display.scroller.clientHeight-$r(n)-n.display.barHeight}function _x(n,i,a){var l=n.options.lineWrapping,u=l&&ao(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var S=y[x],_=y[x+1];Math.abs(S.bottom-_.bottom)>2&&g.push((S.bottom+_.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Hp(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(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function kx(n,i){i=hr(i);var a=T(i),l=n.display.externalMeasured=new Pp(n.doc,i,a);l.lineN=a;var u=l.built=Np(n,l);return l.text=u.pre,F(n.display.lineMeasure,u.pre),l}function qp(n,i,a,l){return Pr(n,Ko(n,i),a,l)}function lf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[fo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Ko(n,i){var a=T(i),l=lf(n,a);l&&!l.text?l=null:l&&l.changes&&(Op(n,l,a,df(n)),n.curOp.forceUpdate=!0),l||(l=kx(n,i));var u=Hp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Pr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(_x(n,i.view,i.rect),i.hasHeights=!0),y=Cx(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Bp={left:0,right:0,top:0,bottom:0};function Wp(n,i,a){for(var l,u,g,y,x,S,_=0;_<n.length;_+=3)if(x=n[_],S=n[_+1],i<x?(u=0,g=1,y="left"):i<S?(u=i-x,g=u+1):(_==n.length-3||i==S&&n[_+3]>i)&&(g=S-x,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[_+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)l=n[(_-=3)+2],y="left";if(a=="right"&&u==S-x)for(;_<n.length-3&&n[_+3]==n[_+4]&&!n[_+5].insertLeft;)l=n[(_+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:S}}function Tx(n,i){var a=Bp;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 Cx(n,i,a,l){var u=Wp(i.map,a,l),g=u.node,y=u.start,x=u.end,S=u.collapse,_;if(g.nodeType==3){for(var $=0;$<4;$++){for(;y&<(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&<(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?_=g.parentNode.getBoundingClientRect():_=Tx(V(g,y,x).getClientRects(),l),_.left||_.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(_=Ex(n.display.measure,_))}else{y>0&&(S=l="right");var D;n.options.lineWrapping&&(D=g.getClientRects()).length>1?_=D[l=="right"?D.length-1:0]:_=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!_||!_.left&&!_.right)){var K=g.parentNode.getClientRects()[0];K?_={left:K.left,right:K.left+Yo(n.display),top:K.top,bottom:K.bottom}:_=Bp}for(var j=_.top-i.rect.top,ne=_.bottom-i.rect.top,ce=(j+ne)/2,ge=i.view.measure.heights,we=0;we<ge.length-1&&!(ce<ge[we]);we++);var ke=we?ge[we-1]:0,xe=ge[we],Me={left:(S=="right"?_.right:_.left)-i.rect.left,right:(S=="left"?_.left:_.right)-i.rect.left,top:ke,bottom:xe};return!_.left&&!_.right&&(Me.bogus=!0),n.options.singleCursorHeightPerLine||(Me.rtop=j,Me.rbottom=ne),Me}function Ex(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xu(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 Up(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 Vp(n){n.display.externalMeasure=null,q(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Up(n.display.view[i])}function Js(n){Vp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function jp(n){return b&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Gp(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function af(n){var i=hr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Zs(a[u]));return l}function za(n,i,a,l,u){if(!u){var g=af(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=Qr(i);if(l=="local"?y+=Da(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Gp(it(n)));var S=x.left+(l=="window"?0:jp(it(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function Kp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=jp(it(n)),u-=Gp(it(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Ia(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),za(n,l,qp(n,l,i.ch,u),a)}function pr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Ko(n,l));function y(ne,ce){var ge=Pr(n,u,ne,ce?"right":"left",g);return ce?ge.left=ge.right:ge.right=ge.left,za(n,l,ge,a)}var x=Ve(l,n.doc.direction),S=i.ch,_=i.sticky;if(S>=l.text.length?(S=l.text.length,_="before"):S<=0&&(S=0,_="after"),!x)return y(_=="before"?S-1:S,_=="before");function $(ne,ce,ge){var we=x[ce],ke=we.level==1;return y(ge?ne-1:ne,ke!=ge)}var D=lr(x,S,_),K=Wn,j=$(S,D,_=="before");return K!=null&&(j.other=$(S,K,_!="before")),j}function Xp(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Yo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=Qr(l)+Da(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function cf(n,i,a,l,u){var g=ee(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function uf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return cf(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return cf(l.first+l.size-1,Oe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Oe(l,u);;){var x=Lx(n,y,u,i,a),S=nx(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var _=S.find(1);if(_.line==u)return _;y=Oe(l,u=_.line)}}function Yp(n,i,a,l){l-=af(i);var u=i.text.length,g=Rt(function(y){return Pr(n,a,y-1).bottom<=l},u,0);return u=Rt(function(y){return Pr(n,a,y).top>l},g,u),{begin:g,end:u}}function Zp(n,i,a,l){a||(a=Ko(n,i));var u=za(n,i,Pr(n,a,l),"line").top;return Yp(n,i,a,u)}function ff(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Lx(n,i,a,l,u){u-=Qr(i);var g=Ko(n,i),y=af(i),x=0,S=i.text.length,_=!0,$=Ve(i,n.doc.direction);if($){var D=(n.options.lineWrapping?Mx:Ax)(n,i,a,g,$,l,u);_=D.level!=1,x=_?D.from:D.to-1,S=_?D.to:D.from-1}var K=null,j=null,ne=Rt(function(Ie){var Re=Pr(n,g,Ie);return Re.top+=y,Re.bottom+=y,ff(Re,l,u,!1)?(Re.top<=u&&Re.left<=l&&(K=Ie,j=Re),!0):!1},x,S),ce,ge,we=!1;if(j){var ke=l-j.left<j.right-l,xe=ke==_;ne=K+(xe?0:1),ge=xe?"after":"before",ce=ke?j.left:j.right}else{!_&&(ne==S||ne==x)&&ne++,ge=ne==0?"after":ne==i.text.length?"before":Pr(n,g,ne-(_?1:0)).bottom+y<=u==_?"after":"before";var Me=pr(n,ee(a,ne,ge),"line",i,g);ce=Me.left,we=u<Me.top?-1:u>=Me.bottom?1:0}return ne=Tt(i.text,ne,1),cf(a,ne,ge,we,l-ce)}function Ax(n,i,a,l,u,g,y){var x=Rt(function(D){var K=u[D],j=K.level!=1;return ff(pr(n,ee(a,j?K.to:K.from,j?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[x];if(x>0){var _=S.level!=1,$=pr(n,ee(a,_?S.from:S.to,_?"after":"before"),"line",i,l);ff($,g,y,!0)&&$.top>y&&(S=u[x-1])}return S}function Mx(n,i,a,l,u,g,y){var x=Yp(n,i,l,y),S=x.begin,_=x.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var $=null,D=null,K=0;K<u.length;K++){var j=u[K];if(!(j.from>=_||j.to<=S)){var ne=j.level!=1,ce=Pr(n,l,ne?Math.min(_,j.to)-1:Math.max(S,j.from)).right,ge=ce<g?g-ce+1e9:ce-g;(!$||D>ge)&&($=j,D=ge)}}return $||($=u[u.length-1]),$.from<S&&($={from:S,to:$.to,level:$.level}),$.to>_&&($={from:$.from,to:_,level:$.level}),$}var co;function Xo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(co==null){co=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)co.appendChild(document.createTextNode("x")),co.appendChild(k("br"));co.appendChild(document.createTextNode("x"))}F(n.measure,co);var a=co.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),q(n.measure),a||1}function Yo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");F(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function df(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:hf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function hf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Jp(n){var i=Xo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Yo(n.display)-3);return function(u){if(Ti(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function pf(n){var i=n.doc,a=Jp(n);i.iter(function(l){var u=a(l);u!=l.height&&Un(l,u)})}function uo(n,i,a,l){var u=n.display;if(!a&&Ws(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var S=uf(n,g,y),_;if(l&&S.xRel>0&&(_=Oe(n.doc,S.line).text).length==S.ch){var $=de(_,_.length,n.options.tabSize)-_.length;S=ee(S.line,Math.max(0,Math.round((g-Fp(n.display).left)/Yo(n.display))-$))}return S}function fo(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 bn(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)Jr&&ef(n.doc,i)<u.viewTo&&Ei(n);else if(a<=u.viewFrom)Jr&&Ap(n.doc,a+l)>u.viewFrom?Ei(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ei(n);else if(i<=u.viewFrom){var g=Fa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ei(n)}else if(a>=u.viewTo){var y=Fa(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ei(n)}else{var x=Fa(n,i,i,-1),S=Fa(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(Ra(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Ei(n)}var _=u.externalMeasured;_&&(a<_.lineN?_.lineN+=l:i<_.lineN+_.size&&(u.externalMeasured=null))}function Ci(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[fo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);Ee(y,a)==-1&&y.push(a)}}}function Ei(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Fa(n,i,a,l){var u=fo(n,i),g,y=n.display.view;if(!Jr||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;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;ef(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 Nx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ra(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ra(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(fo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ra(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,fo(n,a)))),l.viewTo=a}function Qp(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Qs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function eg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var _=S.empty();if(y){var $=y(n,S);$&&gf(n,$,u)}else(_||n.options.showCursorWhenSelecting)&&gf(n,S.head,u);_||$x(n,S,g)}}return l}function gf(n,i,a){var l=pr(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 g=Ia(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(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 Ha(n,i){return n.top-i.top||n.left-i.left}function $x(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Fp(n.display),x=y.left,S=Math.max(l.sizerWidth,ao(n)-l.sizer.offsetLeft)-y.right,_=u.direction=="ltr";function $(xe,Me,Ie,Re){Me<0&&(Me=0),Me=Math.round(Me),Re=Math.round(Re),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
|
|
26
26
|
top: `+Me+"px; width: "+(Ie??S-xe)+`px;
|
|
27
|
-
height: `+(Re-Me)+"px"))}function D(xe,Me,Ie){var Re=Oe(u,xe),Qe=Re.text.length,St,Xt;function Lt(It,Sn){return
|
|
28
|
-
top: `+(i.top-a.viewOffset-
|
|
27
|
+
height: `+(Re-Me)+"px"))}function D(xe,Me,Ie){var Re=Oe(u,xe),Qe=Re.text.length,St,Xt;function Lt(It,Sn){return Ia(n,ee(xe,It),"div",Re,Sn)}function Rn(It,Sn,Qt){var Ut=Zp(n,Re,null,It),Ft=Sn=="ltr"==(Qt=="after")?"left":"right",Pt=Qt=="after"?Ut.begin:Ut.end-(/\s/.test(Re.text.charAt(Ut.end-1))?2:1);return Lt(Pt,Ft)[Ft]}var xn=Ve(Re,u.direction);return Dt(xn,Me||0,Ie??Qe,function(It,Sn,Qt,Ut){var Ft=Qt=="ltr",Pt=Lt(It,Ft?"left":"right"),_n=Lt(Sn-1,Ft?"right":"left"),cs=Me==null&&It==0,Pi=Ie==null&&Sn==Qe,sn=Ut==0,Or=!xn||Ut==xn.length-1;if(_n.top-Pt.top<=3){var Yt=(_?cs:Pi)&&sn,Bf=(_?Pi:cs)&&Or,ri=Yt?x:(Ft?Pt:_n).left,mo=Bf?S:(Ft?_n:Pt).right;$(ri,Pt.top,mo-ri,Pt.bottom)}else{var yo,dn,us,Wf;Ft?(yo=_&&cs&&sn?x:Pt.left,dn=_?S:Rn(It,Qt,"before"),us=_?x:Rn(Sn,Qt,"after"),Wf=_&&Pi&&Or?S:_n.right):(yo=_?Rn(It,Qt,"before"):x,dn=!_&&cs&&sn?S:Pt.right,us=!_&&Pi&&Or?x:_n.left,Wf=_?Rn(Sn,Qt,"after"):S),$(yo,Pt.top,dn-yo,Pt.bottom),Pt.bottom<_n.top&&$(x,Pt.bottom,null,_n.top),$(us,_n.top,Wf-us,_n.bottom)}(!St||Ha(Pt,St)<0)&&(St=Pt),Ha(_n,St)<0&&(St=_n),(!Xt||Ha(Pt,Xt)<0)&&(Xt=Pt),Ha(_n,Xt)<0&&(Xt=_n)}),{start:St,end:Xt}}var K=i.from(),j=i.to();if(K.line==j.line)D(K.line,K.ch,j.ch);else{var ne=Oe(u,K.line),ce=Oe(u,j.line),ge=hr(ne)==hr(ce),we=D(K.line,K.ch,ge?ne.text.length+1:null).end,ke=D(j.line,ge?0:null,j.ch).start;ge&&(we.top<ke.top-2?($(we.right,we.top,null,we.bottom),$(x,ke.top,ke.left,ke.bottom)):$(we.right,we.top,ke.left-we.right,we.bottom)),we.bottom<ke.top&&$(x,we.bottom,null,ke.top)}a.appendChild(g)}function vf(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()||Zo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function tg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||yf(n))}function mf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Zo(n))},100)}function yf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Mt(n,"focus",n,i),n.state.focused=!0,Ne(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),vf(n))}function Zo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Mt(n,"blur",n,i),n.state.focused=!1,Z(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function qa(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var x=i.view[y],S=n.options.lineWrapping,_=void 0,$=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var D=x.node.offsetTop+x.node.offsetHeight;_=D-a,a=D}else{var K=x.node.getBoundingClientRect();_=K.bottom-K.top,!S&&x.text.firstChild&&($=x.text.firstChild.getBoundingClientRect().right-K.left-1)}var j=x.line.height-_;if((j>.005||j<-.005)&&(u<l&&(g-=j),Un(x.line,_),ng(x.line),x.rest))for(var ne=0;ne<x.rest.length;ne++)ng(x.rest[ne]);if($>n.display.sizerWidth){var ce=Math.ceil($/Yo(n.display));ce>n.display.maxLineLength&&(n.display.maxLineLength=ce,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}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 Ba(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Da(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=R(i,l),y=R(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<g?(g=x,y=R(i,Qr(Oe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(g=R(i,Qr(Oe(i,S))-n.wrapper.clientHeight),y=S)}return{from:g,to:Math.max(y,g+1)}}function Px(n,i){if(!Nt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!C){var y=k("div","",null,`position: absolute;
|
|
28
|
+
top: `+(i.top-a.viewOffset-Da(n.display))+`px;
|
|
29
29
|
height: `+(i.bottom-i.top+$r(n)+a.barHeight)+`px;
|
|
30
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Rx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ee(i.line,i.ch+1,"before"):i,i=i.ch?ee(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=gr(n,i),S=!a||a==i?x:gr(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 _=bf(n,u),$=n.doc.scrollTop,D=n.doc.scrollLeft;if(_.scrollTop!=null&&(tl(n,_.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(y=!0)),_.scrollLeft!=null&&(ho(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(y=!0)),!y)break}return u}function Dx(n,i){var a=bf(n,i);a.scrollTop!=null&&tl(n,a.scrollTop),a.scrollLeft!=null&&ho(n,a.scrollLeft)}function bf(n,i){var a=n.display,l=Xo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=sf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+of(a),S=i.top<l,_=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(_?x:i.bottom)-g);$!=u&&(y.scrollTop=$)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,K=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,j=ao(n)-a.gutters.offsetWidth,ne=i.right-i.left>j;return ne&&(i.right=i.left+j),i.left<10?y.scrollLeft=0:i.left<K?y.scrollLeft=Math.max(0,i.left+D-(ne?0:10)):i.right>j+K-3&&(y.scrollLeft=i.right+(ne?0:10)-j),y}function wf(n,i){i!=null&&(Ba(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Jo(n){Ba(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function el(n,i,a){(i!=null||a!=null)&&Ba(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function zx(n,i){Ba(n),n.curOp.scrollToPos=i}function Ba(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Yp(n,i.from),l=Yp(n,i.to);ig(n,a,l,i.margin)}}function ig(n,i,a,l){var u=bf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});el(n,u.scrollLeft,u.scrollTop)}function tl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Sf(n,{top:i}),og(n,i,!0),s&&Sf(n),il(n,100))}function og(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 ho(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,ug(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function nl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+of(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+$r(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var po=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),ze(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ze(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};po.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},po.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},po.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},po.prototype.zeroWidthHack=function(){var n=z&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $e,this.disableVert=new $e},po.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},po.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var rl=function(){};rl.prototype.update=function(){return{bottom:0,right:0}},rl.prototype.setScrollLeft=function(){},rl.prototype.setScrollTop=function(){},rl.prototype.clear=function(){};function Qo(n,i){i||(i=nl(n));var a=n.display.barWidth,l=n.display.barHeight;sg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ha(n),sg(n,nl(n)),a=n.display.barWidth,l=n.display.barHeight}function sg(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 lg={native:po,null:rl};function ag(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&Z(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new lg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),ze(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"?ho(n,i):tl(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var Ix=0;function go(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:++Ix,markArrays:null},gx(n.curOp)}function vo(n){var i=n.curOp;i&&mx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Fx(a)})}function Fx(n){for(var i=n.ops,a=0;a<i.length;a++)Hx(i[a]);for(var l=0;l<i.length;l++)qx(i[l]);for(var u=0;u<i.length;u++)Bx(i[u]);for(var g=0;g<i.length;g++)Wx(i[g]);for(var y=0;y<i.length;y++)Ux(i[y])}function Hx(n){var i=n.cm,a=i.display;jx(i),n.updateMaxLine&&nf(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 Wa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function qx(n){n.updatedDisplay=n.mustUpdate&&xf(n.cm,n.update)}function Bx(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ha(i),n.barMeasure=nl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Bp(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+$r(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-ao(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Wx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&ho(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(tt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Qo(i,n.barMeasure),n.updatedDisplay&&kf(i,n.barMeasure),n.selectionChanged&&vf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&ng(n.cm)}function Ux(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&cg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&og(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&ho(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Rx(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);Ox(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Mt(g[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Mt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Mt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function On(n,i){if(n.curOp)return i();go(n);try{return i()}finally{vo(n)}}function Gt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);go(n);try{return i.apply(n,arguments)}finally{vo(n)}}}function fn(n){return function(){if(this.curOp)return n.apply(this,arguments);go(this);try{return n.apply(this,arguments)}finally{vo(this)}}}function Kt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);go(i);try{return n.apply(this,arguments)}finally{vo(i)}}}function il(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,X(Vx,n))}function Vx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Gs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,x=g.text.length>n.options.maxHighlightLength?Mr(i.mode,l.state):null,S=vp(n,g,l,!0);x&&(l.state=x),g.styles=S.styles;var _=g.styleClasses,$=S.classes;$?g.styleClasses=$:_&&(g.styleClasses=null);for(var D=!y||y.length!=g.styles.length||_!=$&&(!_||!$||_.bgClass!=$.bgClass||_.textClass!=$.textClass),K=0;!D&&K<y.length;++K)D=y[K]!=g.styles[K];D&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Yu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return il(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&On(n,function(){for(var g=0;g<u.length;g++)Ci(n,u[g],"text")})}}var Wa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=qa(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=ao(n),this.force=a,this.dims=df(n),this.events=[]};Wa.prototype.signal=function(n,i){Pn(n,i)&&this.events.push(arguments)},Wa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Mt.apply(null,this.events[n])};function jx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=$r(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=$r(n)+"px",i.scrollbarsClipped=!0)}function Gx(n){if(n.hasFocus())return null;var i=ye(tt(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Ae(n).getSelection();l.anchorNode&&l.extend&&ie(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Kx(n){if(!(!n||!n.activeElt||n.activeElt==ye(Je(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ie(document.body,n.anchorNode)&&ie(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function xf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ei(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&&eg(n)==0)return!1;fg(n)&&(Ei(n),i.dims=df(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Jr&&(g=ef(n.doc,g),y=Mp(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;$x(n,g,y),a.viewOffset=Qr(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=eg(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=Gx(n);return S>4&&(a.lineDiv.style.display="none"),Xx(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Kx(_),q(a.cursorDiv),q(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,il(n,400)),a.updateLineNumbers=null,!0}function cg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==ao(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+of(n.display)-sf(n),a.top)}),i.visible=qa(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=qa(n.display,n.doc,a));if(!xf(n,i))break;Ha(n);var u=nl(n);Qs(n),Qo(n,u),kf(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 Sf(n,i){var a=new Wa(n,i);if(xf(n,a)){Ha(n),cg(n,a);var l=nl(n);Qs(n),Qo(n,l),kf(n,l),a.finish()}}function Xx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ne){var ce=ne.nextSibling;return v&&z&&n.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ce}for(var S=l.view,_=l.viewFrom,$=0;$<S.length;$++){var D=S[$];if(!D.hidden)if(!D.node||D.node.parentNode!=g){var K=Sx(n,D,_,a);g.insertBefore(K,y)}else{for(;y!=D.node;)y=x(y);var j=u&&i!=null&&i<=_&&D.lineNumber;D.changes&&(Ee(D.changes,"gutter")>-1&&(j=!1),Rp(n,D,_,a)),j&&(q(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(pe(n.options,_)))),y=D.node.nextSibling}_+=D.size}for(;y;)y=x(y)}function _f(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",jt(n,"gutterChanged",n)}function kf(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+$r(n)+"px"}function ug(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=hf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var x=a[y].alignable;if(x)for(var S=0;S<x.length;S++)x[S].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function fg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=pe(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")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",_f(n.display),!0}return!1}function Tf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function dg(n){var i=n.gutters,a=n.gutterSpecs;q(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",_f(n)}function ol(n){dg(n.display),bn(n),ug(n)}function Yx(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=B("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=B("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=B("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Ze+"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),!v&&!(s&&L)&&(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=Tf(l.gutters,l.lineNumbers),dg(u),a.init(u)}var Ua=0,ti=null;h?ti=-.53:s?ti=15:b?ti=-.7:M&&(ti=-1/3);function hg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Zx(n){var i=hg(n);return i.x*=ti,i.y*=ti,i}function pg(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=hg(i),l=a.x,u=a.y,g=ti;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,_=x.scrollHeight>x.clientHeight;if(l&&S||u&&_){if(u&&z&&v){e:for(var $=i.target,D=y.view;$!=x;$=$.parentNode)for(var K=0;K<D.length;K++)if(D[K].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!A&&g!=null){u&&_&&tl(n,Math.max(0,x.scrollTop+u*g)),ho(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&_)&&rn(i),y.wheelStartX=null;return}if(u&&g!=null){var j=u*g,ne=n.doc.scrollTop,ce=ne+y.wrapper.clientHeight;j<0?ne=Math.max(0,ne+j-50):ce=Math.min(n.doc.height,ce+j+50),Sf(n,{top:ne,bottom:ce})}Ua<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 ge=x.scrollLeft-y.wheelStartX,we=x.scrollTop-y.wheelStartY,ke=we&&y.wheelDY&&we/y.wheelDY||ge&&y.wheelDX&&ge/y.wheelDX;y.wheelStartX=y.wheelStartY=null,ke&&(ti=(ti*Ua+ke)/(Ua+1),++Ua)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Vn=function(n,i){this.ranges=n,this.primIndex=i};Vn.prototype.primary=function(){return this.ranges[this.primIndex]},Vn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ft(a.anchor,l.anchor)||!ft(a.head,l.head))return!1}return!0},Vn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new dt(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new Vn(n,this.primIndex)},Vn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Vn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Se(i,l.from())>=0&&Se(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return Vo(this.anchor,this.head)},dt.prototype.to=function(){return yn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(K,j){return Se(K.from(),j.from())}),a=Ee(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],S=Se(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var _=Vo(x.from(),y.from()),$=yn(x.to(),y.to()),D=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(D?$:_,D?_:$))}}return new Vn(i,a)}function Li(n,i){return new Vn([new dt(n,i||n)],0)}function Ai(n){return n.text?ee(n.from.line+n.text.length-1,ue(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function gg(n,i){if(Se(n,i.from)<0)return n;if(Se(n,i.to)<=0)return Ai(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+=Ai(i).ch-i.to.ch),ee(a,l)}function Cf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new dt(gg(u.anchor,i),gg(u.head,i)))}return vr(n.cm,a,n.sel.primIndex)}function vg(n,i,a){return n.line==i.line?ee(a.line,n.ch-i.ch+a.ch):ee(a.line+(n.line-i.line),n.ch)}function Jx(n,i,a){for(var l=[],u=ee(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],S=vg(x.from,u,g),_=vg(Ai(x),u,g);if(u=x.to,g=_,a=="around"){var $=n.sel.ranges[y],D=Se($.head,$.anchor)<0;l[y]=new dt(D?_:S,D?S:_)}else l[y]=new dt(S,S)}return new Vn(l,n.sel.primIndex)}function Ef(n){n.doc.mode=Bo(n.options,n.doc.modeOption),sl(n)}function sl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,il(n,100),n.state.modeGen++,n.curOp&&bn(n)}function mg(n,i){return i.from.ch==0&&i.to.ch==0&&ue(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Lf(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,xe,Me){sx(ke,xe,Me,l),jt(ke,"change",ke,i)}function y(ke,xe){for(var Me=[],Ie=ke;Ie<xe;++Ie)Me.push(new jo(_[Ie],u(Ie),l));return Me}var x=i.from,S=i.to,_=i.text,$=Oe(n,x.line),D=Oe(n,S.line),K=ue(_),j=u(_.length-1),ne=S.line-x.line;if(i.full)n.insert(0,y(0,_.length)),n.remove(_.length,n.size-_.length);else if(mg(n,i)){var ce=y(0,_.length-1);g(D,D.text,j),ne&&n.remove(x.line,ne),ce.length&&n.insert(x.line,ce)}else if($==D)if(_.length==1)g($,$.text.slice(0,x.ch)+K+$.text.slice(S.ch),j);else{var ge=y(1,_.length-1);ge.push(new jo(K+$.text.slice(S.ch),j,l)),g($,$.text.slice(0,x.ch)+_[0],u(0)),n.insert(x.line+1,ge)}else if(_.length==1)g($,$.text.slice(0,x.ch)+_[0]+D.text.slice(S.ch),u(0)),n.remove(x.line+1,ne);else{g($,$.text.slice(0,x.ch)+_[0],u(0)),g(D,K+D.text.slice(S.ch),j);var we=y(1,_.length-1);ne>1&&n.remove(x.line+1,ne-1),n.insert(x.line+1,we)}jt(n,"change",n,i)}function Mi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=g){var _=y&&S.sharedHist;a&&!_||(i(S.doc,_),l(S.doc,u,_))}}}l(n,null,!0)}function yg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,pf(n),Ef(n),bg(n),n.options.direction=i.direction,n.options.lineWrapping||nf(n),n.options.mode=i.modeOption,bn(n)}function bg(n){(n.doc.direction=="rtl"?Ne:Z)(n.display.lineDiv,"CodeMirror-rtl")}function Qx(n){On(n,function(){bg(n),bn(n)})}function Va(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 Af(n,i){var a={from:Vt(i.from),to:Ai(i),text:Zr(n,i.from,i.to)};return Sg(n,a,i.from.line,i.to.line+1),Mi(n,function(l){return Sg(l,a,i.from.line,i.to.line+1)},!0),a}function wg(n){for(;n.length;){var i=ue(n);if(i.ranges)n.pop();else break}}function eS(n,i){if(i)return wg(n.done),ue(n.done);if(n.done.length&&!ue(n.done).ranges)return ue(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ue(n.done)}function xg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=eS(u,u.lastOp==l)))x=ue(y.changes),Se(i.from,i.to)==0&&Se(i.from,x.to)==0?x.to=Ai(i):y.changes.push(Af(n,i));else{var S=ue(u.done);for((!S||!S.ranges)&&ja(n.sel,u.done),y={changes:[Af(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Mt(n,"historyAdded")}function tS(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 nS(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||tS(n,g,ue(u.done),i))?u.done[u.done.length-1]=i:ja(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&wg(u.undone)}function ja(n,i){var a=ue(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Sg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function rS(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 iS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(rS(a[u]));return l}function _g(n,i){var a=iS(n,i),l=Ju(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var x=0;x<y.length;++x){for(var S=y[x],_=0;_<g.length;++_)if(g[_].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function es(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Vn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var _=y[S],$=void 0;if(x.push({from:_.from,to:_.to,text:_.text}),i)for(var D in _)($=D.match(/^spans_(\d+)$/))&&Ee(i,Number($[1]))>-1&&(ue(x)[D]=_[D],delete _[D])}}return l}function Mf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Se(i,u)<0;g!=Se(a,u)<0?(u=i,i=a):g!=Se(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Ga(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),on(n,new Vn([Mf(n.sel.primary(),i,a,u)],0),l)}function kg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Mf(n.sel.ranges[g],i[g],null,u);var y=vr(n.cm,l,n.sel.primIndex);on(n,y,a)}function Nf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,on(n,vr(n.cm,u,n.sel.primIndex),l)}function Tg(n,i,a,l){on(n,Li(i,a),l)}function oS(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new dt(Ge(n,u[g].anchor),Ge(n,u[g].head))},origin:a&&a.origin};return Mt(n,"beforeSelectionChange",n,l),n.cm&&Mt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?vr(n.cm,l.ranges,l.ranges.length-1):i}function Cg(n,i,a){var l=n.history.done,u=ue(l);u&&u.ranges?(l[l.length-1]=i,Ka(n,i,a)):on(n,i,a)}function on(n,i,a){Ka(n,i,a),nS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ka(n,i,a){(Pn(n,"beforeSelectionChange")||n.cm&&Pn(n.cm,"beforeSelectionChange"))&&(i=oS(n,i,a));var l=a&&a.bias||(Se(i.primary().head,n.sel.primary().head)<0?-1:1);Eg(n,Ag(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Jo(n.cm)}function Eg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,er(n.cm)),jt(n,"cursorActivity",n))}function Lg(n){Eg(n,Ag(n,n.sel,null,!1))}function Ag(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],S=Xa(n,y.anchor,x&&x.anchor,a,l),_=y.head==y.anchor?S:Xa(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||_!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(S,_))}return u?vr(n.cm,u,i.primIndex):i}function ts(n,i,a,l,u){var g=Oe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],S=x.marker,_="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,$="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(_?x.from<=i.ch:x.from<i.ch))&&(x.to==null||($?x.to>=i.ch:x.to>i.ch))){if(u&&(Mt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var D=S.find(l<0?1:-1),K=void 0;if((l<0?$:_)&&(D=Mg(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(K=Se(D,a))&&(l<0?K<0:K>0))return ts(n,D,i,l,u)}var j=S.find(l<0?-1:1);return(l<0?_:$)&&(j=Mg(n,j,l,j.line==i.line?g:null)),j?ts(n,j,i,l,u):null}}return i}function Xa(n,i,a,l,u){var g=l||1,y=ts(n,i,a,g,u)||!u&&ts(n,i,a,g,!0)||ts(n,i,a,-g,u)||!u&&ts(n,i,a,-g,!0);return y||(n.cantEdit=!0,ee(n.first,0))}function Mg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,ee(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?ee(i.line+1,0):null:new ee(i.line,i.ch+a)}function Ng(n){n.setSelection(ee(n.firstLine(),0),ee(n.lastLine()),H)}function $g(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,x){u&&(l.from=Ge(n,u)),g&&(l.to=Ge(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Mt(n,"beforeChange",n,l),n.cm&&Mt(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 ns(n,i,a){if(n.cm){if(!n.cm.curOp)return Gt(n.cm,ns)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Pn(n,"beforeChange")||n.cm&&Pn(n.cm,"beforeChange"))&&(i=$g(n,i,!0),!i))){var l=_p&&!a&&nx(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Pg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Pg(n,i)}}function Pg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Se(i.from,i.to)==0)){var a=Cf(n,i);xg(n,i,a,n.cm?n.cm.curOp.id:NaN),ll(n,i,a,Ju(n,i));var l=[];Mi(n,function(u,g){!g&&Ee(l,u.history)==-1&&(zg(u.history,i),l.push(u.history)),ll(u,i,null,Ju(u,i))})}}function Ya(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,_=0;_<x.length&&(g=x[_],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));_++);if(_!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(ja(g,S),a&&!g.equals(n.sel)){on(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var $=[];ja(y,S),S.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=Pn(n,"beforeChange")||n.cm&&Pn(n.cm,"beforeChange"),K=function(ce){var ge=g.changes[ce];if(ge.origin=i,D&&!$g(n,ge,!1))return x.length=0,{};$.push(Af(n,ge));var we=ce?Cf(n,ge):ue(x);ll(n,ge,we,_g(n,ge)),!ce&&n.cm&&n.cm.scrollIntoView({from:ge.from,to:Ai(ge)});var ke=[];Mi(n,function(xe,Me){!Me&&Ee(ke,xe.history)==-1&&(zg(xe.history,ge),ke.push(xe.history)),ll(xe,ge,null,_g(xe,ge))})},j=g.changes.length-1;j>=0;--j){var ne=K(j);if(ne)return ne.v}}}}function Og(n,i){if(i!=0&&(n.first+=i,n.sel=new Vn(be(n.sel.ranges,function(u){return new dt(ee(u.anchor.line+i,u.anchor.ch),ee(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){bn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ci(n.cm,l,"gutter")}}function ll(n,i,a,l){if(n.cm&&!n.cm.curOp)return Gt(n.cm,ll)(n,i,a,l);if(i.to.line<n.first){Og(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);Og(n,u),i={from:ee(n.first,0),to:ee(i.to.line+u,i.to.ch),text:[ue(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ee(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Zr(n,i.from,i.to),a||(a=Cf(n,i)),n.cm?sS(n.cm,i,l):Lf(n,i,l),Ka(n,a,H),n.cantEdit&&Xa(n,ee(n.firstLine(),0))&&(n.cantEdit=!1)}}function sS(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,S=g.line;n.options.lineWrapping||(S=T(pr(Oe(l,g.line))),l.iter(S,y.line+1,function(j){if(j==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&er(n),Lf(l,i,a,Qp(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(j){var ne=Pa(j);ne>u.maxLineLength&&(u.maxLine=j,u.maxLineLength=ne,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),X1(l,g.line),il(n,400);var _=i.text.length-(y.line-g.line)-1;i.full?bn(n):g.line==y.line&&i.text.length==1&&!mg(n.doc,i)?Ci(n,g.line,"text"):bn(n,g.line,y.line+1,_);var $=Pn(n,"changes"),D=Pn(n,"change");if(D||$){var K={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};D&&jt(n,"change",n,K),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(K)}n.display.selForContextMenu=null}function rs(n,i,a,l,u){var g;l||(l=a),Se(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ns(n,{from:a,to:l,text:i,origin:u})}function Rg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Dg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var x=0;x<g.ranges.length;x++)Rg(g.ranges[x].anchor,i,a,l),Rg(g.ranges[x].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var _=g.changes[S];if(a<_.from.line)_.from=ee(_.from.line+l,_.from.ch),_.to=ee(_.to.line+l,_.to.ch);else if(i<=_.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function zg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Dg(n.done,a,l,u),Dg(n.undone,a,l,u)}function al(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,pp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Ci(n.cm,u,a),g)}function cl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,lx(u),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 ul(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}ul.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof cl))){var x=[];this.collapse(x),this.children=[new cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var S=new cl(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-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new ul(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ee(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new ul(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var fl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};fl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Zs(this);Un(a,Math.max(0,a.height-g)),n&&(On(n,function(){Ig(n,a,-g),Ci(n,l,"widget")}),jt(n,"lineWidgetCleared",n,this,l))}},fl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Zs(this)-i;u&&(Ti(this.doc,l)||Un(l,l.height+u),a&&On(a,function(){a.curOp.forceUpdate=!0,Ig(a,l,u),jt(a,"lineWidgetChanged",a,n,T(l))}))},cr(fl);function Ig(n,i,a){Qr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&wf(n,a)}function lS(n,i,a,l){var u=new fl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),al(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Ti(n,y)){var S=Qr(y)<n.scrollTop;Un(y,y.height+Zs(u)),S&&wf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&jt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Fg=0,Ni=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Fg};Ni.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&go(n),Pn(this,"clear")){var a=this.find();a&&jt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=Ks(y.markedSpans,this);n&&!this.collapsed?Ci(n,T(y),"text"):n&&(x.to!=null&&(u=T(y)),x.from!=null&&(l=T(y))),y.markedSpans=J1(y.markedSpans,x),x.from==null&&this.collapsed&&!Ti(this.doc,y)&&n&&Un(y,Xo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var _=pr(this.lines[S]),$=Pa(_);$>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&bn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Lg(n.doc)),n&&jt(n,"markerCleared",n,this,l,u),i&&vo(n),this.parent&&this.parent.clear()}},Ni.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=Ks(g.markedSpans,this);if(y.from!=null&&(a=ee(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=ee(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ni.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||On(l,function(){var u=i.line,g=T(i.line),y=lf(l,g);if(y&&(Vp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ti(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var S=Zs(a)-x;S&&Un(u,u.height+S)}jt(l,"markerChanged",l,n)})},Ni.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ee(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ni.prototype.detachLine=function(n){if(this.lines.splice(Ee(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},cr(Ni);function is(n,i,a,l,u){if(l&&l.shared)return aS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Gt(n.cm,is)(n,i,a,l,u);var g=new Ni(n,u),y=Se(i,a);if(l&&ae(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=B("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Ap(n,i.line,i,a,g)||i.line!=a.line&&Ap(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Z1()}g.addToHistory&&xg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,_;if(n.iter(x,a.line+1,function(D){S&&g.collapsed&&!S.options.lineWrapping&&pr(D)==S.display.maxLine&&(_=!0),g.collapsed&&x!=i.line&&Un(D,0),Q1(D,new Aa(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(D){Ti(n,D)&&Un(D,0)}),g.clearOnEnter&&ze(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Y1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Fg,g.atomic=!0),S){if(_&&(S.curOp.updateMaxLine=!0),g.collapsed)bn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var $=i.line;$<=a.line;$++)Ci(S,$,"text");g.atomic&&Lg(S.doc),jt(S,"markerAdded",S,g)}return g}var dl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};dl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();jt(this,"clear")}},dl.prototype.find=function(n,i){return this.primary.find(n,i)},cr(dl);function aS(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[is(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Mi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),g.push(is(S,Ge(S,i),Ge(S,a),l,u));for(var _=0;_<S.linked.length;++_)if(S.linked[_].isParent)return;y=ue(g)}),new dl(g,y)}function Hg(n){return n.findMarks(ee(n.first,0),n.clipPos(ee(n.lastLine())),function(i){return i.parent})}function cS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Se(g,y)){var x=is(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function uS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Mi(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];Ee(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var fS=0,wn=function(n,i,a,l,u){if(!(this instanceof wn))return new wn(n,i,a,l,u);a==null&&(a=0),ul.call(this,[new cl([new jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ee(a,0);this.sel=Li(g),this.history=new Va(null),this.id=++fS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Lf(this,{from:g,to:g,text:n}),on(this,Li(g),H)};wn.prototype=Le(ul.prototype,{constructor:wn,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=js(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Kt(function(n){var i=ee(this.first,0),a=this.first+this.size-1;ns(this,{from:i,to:ee(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&el(this.cm,0,0),on(this,Li(i),H)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,rs(this,n,i,a,l)},getRange:function(n,i,a){var l=Zr(this,Ge(this,n),Ge(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(se(this,n))return Oe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),pr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ge(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Kt(function(n,i,a){Tg(this,Ge(this,typeof n=="number"?ee(n,i||0):n),null,a)}),setSelection:Kt(function(n,i,a){Tg(this,Ge(this,n),Ge(this,i||n),a)}),extendSelection:Kt(function(n,i,a){Ga(this,Ge(this,n),i&&Ge(this,i),a)}),extendSelections:Kt(function(n,i){kg(this,gp(this,n),i)}),extendSelectionsBy:Kt(function(n,i){var a=be(this.sel.ranges,n);kg(this,gp(this,a),i)}),setSelections:Kt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new dt(Ge(this,n[u].anchor),Ge(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),on(this,vr(this.cm,l,i),a)}}),addSelection:Kt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new dt(Ge(this,n),Ge(this,i||n))),on(this,vr(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=Zr(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=Zr(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:Kt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var x=i&&i!="end"&&Jx(this,l,i),S=l.length-1;S>=0;S--)ns(this,l[S]);x?Cg(this,x):this.cm&&Jo(this.cm)}),undo:Kt(function(){Ya(this,"undo")}),redo:Kt(function(){Ya(this,"redo")}),undoSelection:Kt(function(){Ya(this,"undo",!0)}),redoSelection:Kt(function(){Ya(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 Va(this.history),Mi(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:es(this.history.done),undone:es(this.history.undone)}},setHistory:function(n){var i=this.history=new Va(this.history);i.done=es(n.done.slice(0),null,!0),i.undone=es(n.undone.slice(0),null,!0)},setGutterMarker:Kt(function(n,i,a){return al(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&>(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Kt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&al(i,a,"gutter",function(){return a.gutterMarkers[n]=null,gt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!se(this,n)||(i=n,n=Oe(this,n),!n))return null}else if(i=T(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:Kt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(te(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Kt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(te(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:Kt(function(n,i,a){return lS(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return is(this,Ge(this,n),Ge(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ge(this,n),is(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Oe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ge(this,n),i=Ge(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var x=0;x<y.length;x++){var 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 g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ge(this,ee(a,i))},indexFromPos:function(n){n=Ge(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new wn(js(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 wn(js(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}],cS(l,Hg(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),uS(Hg(this));break}}if(n.history==this.history){var l=[n.id];Mi(n,function(u){return l.push(u.id)},!0),n.history=new Va(null),n.history.done=es(this.history.done,l),n.history.undone=es(this.history.undone,l)}},iterLinkedDocs:function(n){Mi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):tr(n)},lineSeparator:function(){return this.lineSep||`
|
|
31
|
-
`},setDirection:Kt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Qx(this.cm))})}),wn.prototype.eachLine=wn.prototype.iter;var qg=0;function dS(n){var i=this;if(Bg(i),!(Nt(i,n)||ei(i.display,n))){rn(n),h&&(qg=+new Date);var a=uo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,x=function(){++y==u&&Gt(i,function(){a=Ge(i.doc,a);var j={from:a,to:a,text:i.doc.splitLines(g.filter(function(ne){return ne!=null}).join(i.doc.lineSeparator())),origin:"paste"};ns(i.doc,j),Cg(i.doc,Li(Ge(i.doc,a),Ge(i.doc,Ai(j))))})()},S=function(j,ne){if(i.options.allowDropFileTypes&&Ee(i.options.allowDropFileTypes,j.type)==-1){x();return}var ce=new FileReader;ce.onerror=function(){return x()},ce.onload=function(){var ge=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){x();return}g[ne]=ge,x()},ce.readAsText(j)},_=0;_<l.length;_++)S(l[_],_);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 $=n.dataTransfer.getData("Text");if($){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Ka(i.doc,Li(a,a)),D)for(var K=0;K<D.length;++K)rs(i.doc,"",D[K].anchor,D[K].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function hS(n,i){if(h&&(!n.state.draggingText||+new Date-qg<100)){xi(i);return}if(!(Nt(n,i)||ei(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!M)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",A&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),A&&a.parentNode.removeChild(a)}}function pS(n,i){var a=uo(n,i);if(a){var l=document.createDocumentFragment();gf(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)),F(n.display.dragCursor,l)}}function Bg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Wg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var Ug=!1;function gS(){Ug||(vS(),Ug=!0)}function vS(){var n;ze(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Wg(mS)},100))}),ze(window,"blur",function(){return Wg(Zo)})}function mS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var $i={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hl=0;hl<10;hl++)$i[hl+48]=$i[hl+96]=String(hl);for(var Za=65;Za<=90;Za++)$i[Za]=String.fromCharCode(Za);for(var pl=1;pl<=12;pl++)$i[pl+111]=$i[pl+63235]="F"+pl;var ni={};ni.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"},ni.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"},ni.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"},ni.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"]},ni.default=z?ni.macDefault:ni.pcDefault;function yS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function bS(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(" "),yS),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var _ in i)n[_]=i[_];return n}function os(n,i,a,l){i=Ja(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 os(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=os(n,i.fallthrough[g],a,l);if(y)return y}}}function Vg(n){var i=typeof n=="string"?n:$i[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function jg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Q?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Q?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Gg(n,i){if(A&&n.keyCode==34&&n.char)return!1;var a=$i[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),jg(a,n,i))}function Ja(n){return typeof n=="string"?ni[n]:n}function ss(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Se(g.from,ue(l).to)<=0;){var y=l.pop();if(Se(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}On(n,function(){for(var x=l.length-1;x>=0;x--)rs(n.doc,"",l[x].from,l[x].to,"+delete");Jo(n)})}function $f(n,i,a){var l=Tt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Pf(n,i,a){var l=$f(n,i.ch,a);return l==null?null:new ee(i.line,l,a<0?"after":"before")}function Of(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Ve(a,i.doc.direction);if(g){var y=u<0?ue(g):g[0],x=u<0==(y.level==1),S=x?"after":"before",_;if(y.level>0||i.doc.direction=="rtl"){var $=Ko(i,a);_=u<0?a.text.length-1:0;var D=Pr(i,$,_).top;_=Rt(function(K){return Pr(i,$,K).top==D},u<0==(y.level==1)?y.from:y.to-1,_),S=="before"&&(_=$f(a,_,1))}else _=u<0?y.to:y.from;return new ee(l,_,S)}}return new ee(l,u<0?a.text.length:0,u<0?"before":"after")}function wS(n,i,a,l){var u=Ve(i,n.doc.direction);if(!u)return Pf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=ar(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Pf(i,a,l);var x=function(we,ke){return $f(i,we instanceof ee?we.ch:we,ke)},S,_=function(we){return n.options.lineWrapping?(S=S||Ko(n,i),Jp(n,i,S,we)):{begin:0,end:i.text.length}},$=_(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var D=y.level==1==l<0,K=x(a,D?1:-1);if(K!=null&&(D?K<=y.to&&K<=$.end:K>=y.from&&K>=$.begin)){var j=D?"before":"after";return new ee(a.line,K,j)}}var ne=function(we,ke,xe){for(var Me=function(St,Xt){return Xt?new ee(a.line,x(St,1),"before"):new ee(a.line,St,"after")};we>=0&&we<u.length;we+=ke){var Ie=u[we],Re=ke>0==(Ie.level!=1),Qe=Re?xe.begin:x(xe.end,-1);if(Ie.from<=Qe&&Qe<Ie.to||(Qe=Re?Ie.from:x(Ie.to,-1),xe.begin<=Qe&&Qe<xe.end))return Me(Qe,Re)}},ce=ne(g+l,l,$);if(ce)return ce;var ge=l>0?$.end:x($.begin,-1);return ge!=null&&!(l>0&&ge==i.text.length)&&(ce=ne(l>0?0:u.length-1,l,_(ge)),ce)?ce:null}var gl={selectAll:Ng,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),H)},killLine:function(n){return ss(n,function(i){if(i.empty()){var a=Oe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ee(i.head.line+1,0)}:{from:i.head,to:ee(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ss(n,function(i){return{from:ee(i.from().line,0),to:Ge(n.doc,ee(i.to().line+1,0))}})},delLineLeft:function(n){return ss(n,function(i){return{from:ee(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ss(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 ss(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(ee(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ee(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Kg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Xg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return xS(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")},fe)},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")},fe)},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/)?Xg(n,i.head):l},fe)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=de(n.getLine(g.line),g.ch,l);i.push(_e(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return On(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Oe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ee(u.line,u.ch-1)),u.ch>0)u=new ee(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ee(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Oe(n.doc,u.line-1).text;y&&(u=new ee(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ee(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return On(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);Jo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
32
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Kg(n,i){var a=Oe(n.doc,i),l=pr(a);return l!=a&&(i=T(l)),Of(!0,n,l,i,1)}function xS(n,i){var a=Oe(n.doc,i),l=ix(a);return l!=a&&(i=T(l)),Of(!0,n,a,i,-1)}function Xg(n,i){var a=Kg(n,i.line),l=Oe(n.doc,a.line),u=Ve(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return ee(a.line,y?0:g,a.sticky)}return a}function Qa(n,i,a){if(typeof i=="string"&&(i=gl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=O}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function SS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=os(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&os(i,n.options.extraKeys,a,n)||os(i,n.options.keyMap,a,n)}var _S=new $e;function vl(n,i,a,l){var u=n.state.keySeq;if(u){if(Vg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:_S.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Yg(n,u+" "+i,a,l))return!0}return Yg(n,i,a,l)}function Yg(n,i,a,l){var u=SS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&jt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(rn(a),vf(n)),!!u}function Zg(n,i){var a=Gg(i,!0);return a?i.shiftKey&&!n.state.keySeq?vl(n,"Shift-"+a,i,function(l){return Qa(n,l,!0)})||vl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Qa(n,l)}):vl(n,a,i,function(l){return Qa(n,l)}):!1}function kS(n,i,a){return vl(n,"'"+a+"'",i,function(l){return Qa(n,l,!0)})}var Rf=null;function Jg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(tt(i)),!Nt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Zg(i,n);A&&(Rf=l?a:null,!l&&a==88&&!Ea&&(z?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!z&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&TS(i)}}function TS(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(Z(i,"CodeMirror-crosshair"),nn(document,"keyup",a),nn(document,"mouseover",a))}ze(document,"keyup",a),ze(document,"mouseover",a)}function Qg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Nt(this,n)}function ev(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ei(i.display,n)||Nt(i,n)||n.ctrlKey&&!n.altKey||z&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(A&&a==Rf){Rf=null,rn(n);return}if(!(A&&(!n.which||n.which<10)&&Zg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(kS(i,n,u)||i.display.input.onKeyPress(n))}}}var CS=400,Df=function(n,i,a){this.time=n,this.pos=i,this.button=a};Df.prototype.compare=function(n,i,a){return this.time+CS>n&&Se(i,this.pos)==0&&a==this.button};var ml,yl;function ES(n,i){var a=+new Date;return yl&&yl.compare(a,n,i)?(ml=yl=null,"triple"):ml&&ml.compare(a,n,i)?(yl=new Df(a,n,i),ml=null,"double"):(ml=new Df(a,n,i),yl=null,"single")}function tv(n){var i=this,a=i.display;if(!(Nt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ei(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!zf(i,n)){var l=uo(i,n),u=ur(n),g=l?ES(l,u):"single";Ae(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&LS(i,u,l,g,n))&&(u==1?l?MS(i,l,g,n):Ws(n)==a.scroller&&rn(n):u==2?(l&&Ga(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):mf(i)))}}}function LS(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,vl(n,jg(g,u),u,function(y){if(typeof y=="string"&&(y=gl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=O}finally{n.state.suppressEdits=!1}return x})}function AS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=W?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=z?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(z?a.altKey:a.ctrlKey)),u}function MS(n,i,a,l){h?setTimeout(X(ng,n),0):n.curOp.focus=ye(tt(n));var u=AS(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Ku&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Se((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Se(y.to(),i)>0||i.xRel<0)?NS(n,l,i,u):$S(n,l,i,u)}function NS(n,i,a,l){var u=n.display,g=!1,y=Gt(n,function(_){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:mf(n)),nn(u.wrapper.ownerDocument,"mouseup",y),nn(u.wrapper.ownerDocument,"mousemove",x),nn(u.scroller,"dragstart",S),nn(u.scroller,"drop",y),g||(rn(_),l.addNew||Ga(n.doc,a,null,null,l.extend),v&&!M||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(_){g=g||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,ze(u.wrapper.ownerDocument,"mouseup",y),ze(u.wrapper.ownerDocument,"mousemove",x),ze(u.scroller,"dragstart",S),ze(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function nv(n,i,a){if(a=="char")return new dt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new dt(ee(i.line,0),Ge(n.doc,ee(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function $S(n,i,a,l){h&&mf(n);var u=n.display,g=n.doc;rn(i);var y,x,S=g.sel,_=S.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=_[x]:y=new dt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new dt(a,a)),a=uo(n,i,!0,!0),x=-1;else{var $=nv(n,a,l.unit);l.extend?y=Mf(y,$.anchor,$.head,l.extend):y=$}l.addNew?x==-1?(x=_.length,on(g,vr(n,_.concat([y]),x),{scroll:!1,origin:"*mouse"})):_.length>1&&_[x].empty()&&l.unit=="char"&&!l.extend?(on(g,vr(n,_.slice(0,x).concat(_.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Nf(g,x,y,J):(x=0,on(g,new Vn([y],0),J),S=g.sel);var D=a;function K(xe){if(Se(D,xe)!=0)if(D=xe,l.unit=="rectangle"){for(var Me=[],Ie=n.options.tabSize,Re=de(Oe(g,a.line).text,a.ch,Ie),Qe=de(Oe(g,xe.line).text,xe.ch,Ie),St=Math.min(Re,Qe),Xt=Math.max(Re,Qe),Lt=Math.min(a.line,xe.line),Rn=Math.min(n.lastLine(),Math.max(a.line,xe.line));Lt<=Rn;Lt++){var xn=Oe(g,Lt).text,It=le(xn,St,Ie);St==Xt?Me.push(new dt(ee(Lt,It),ee(Lt,It))):xn.length>It&&Me.push(new dt(ee(Lt,It),ee(Lt,le(xn,Xt,Ie))))}Me.length||Me.push(new dt(a,a)),on(g,vr(n,S.ranges.slice(0,x).concat(Me),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xe)}else{var Sn=y,Qt=nv(n,xe,l.unit),Ut=Sn.anchor,Ft;Se(Qt.anchor,Ut)>0?(Ft=Qt.head,Ut=Vo(Sn.from(),Qt.anchor)):(Ft=Qt.anchor,Ut=yn(Sn.to(),Qt.head));var Pt=S.ranges.slice(0);Pt[x]=PS(n,new dt(Ge(g,Ut),Ft)),on(g,vr(n,Pt,x),J)}}var j=u.wrapper.getBoundingClientRect(),ne=0;function ce(xe){var Me=++ne,Ie=uo(n,xe,!0,l.unit=="rectangle");if(Ie)if(Se(Ie,D)!=0){n.curOp.focus=ye(tt(n)),K(Ie);var Re=qa(u,g);(Ie.line>=Re.to||Ie.line<Re.from)&&setTimeout(Gt(n,function(){ne==Me&&ce(xe)}),150)}else{var Qe=xe.clientY<j.top?-20:xe.clientY>j.bottom?20:0;Qe&&setTimeout(Gt(n,function(){ne==Me&&(u.scroller.scrollTop+=Qe,ce(xe))}),50)}}function ge(xe){n.state.selectingText=!1,ne=1/0,xe&&(rn(xe),u.input.focus()),nn(u.wrapper.ownerDocument,"mousemove",we),nn(u.wrapper.ownerDocument,"mouseup",ke),g.history.lastSelOrigin=null}var we=Gt(n,function(xe){xe.buttons===0||!ur(xe)?ge(xe):ce(xe)}),ke=Gt(n,ge);n.state.selectingText=ke,ze(u.wrapper.ownerDocument,"mousemove",we),ze(u.wrapper.ownerDocument,"mouseup",ke)}function PS(n,i){var a=i.anchor,l=i.head,u=Oe(n.doc,a.line);if(Se(a,l)==0&&a.sticky==l.sticky)return i;var g=Ve(u);if(!g)return i;var y=ar(g,a.ch,a.sticky),x=g[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==g.length)return i;var _;if(l.line!=a.line)_=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var $=ar(g,l.ch,l.sticky),D=$-y||(l.ch-a.ch)*(x.level==1?-1:1);$==S-1||$==S?_=D<0:_=D>0}var K=g[S+(_?-1:0)],j=_==(K.level==1),ne=j?K.from:K.to,ce=j?"after":"before";return a.ch==ne&&a.sticky==ce?i:new dt(new ee(a.line,ne,ce),l)}function rv(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&rn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Pn(n,a))return mn(i);g-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var _=y.gutters.childNodes[S];if(_&&_.getBoundingClientRect().right>=u){var $=R(n.doc,g),D=n.display.gutterSpecs[S];return Mt(n,a,n,$,D.className,i),mn(i)}}}function zf(n,i){return rv(n,i,"gutterClick",!0)}function iv(n,i){ei(n.display,i)||OS(n,i)||Nt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function OS(n,i){return Pn(n,"gutterContextMenu")?rv(n,i,"gutterContextMenu",!1):!1}function ov(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Js(n)}var ls={toString:function(){return"CodeMirror.Init"}},sv={},ec={};function RS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,S,_){_!=ls&&g(x,S,_)}:g)}n.defineOption=a,n.Init=ls,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Ef(l)},!0),a("indentUnit",2,Ef,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){sl(l),Js(l),bn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(S){for(var _=0;;){var $=S.text.indexOf(u,_);if($==-1)break;_=$+u.length,g.push(ee(y,$))}y++});for(var x=g.length-1;x>=0;x--)rs(l.doc,u,g[x],ee(g[x].line,g[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=ls&&l.refresh()}),a("specialCharPlaceholder",ux,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",L?"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",!U),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){ov(l),ol(l)},!0),a("keyMap","default",function(l,u,g){var y=Ja(u),x=g!=ls&&Ja(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,zS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Tf(u,l.options.lineNumbers),ol(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?hf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Qo(l)},!0),a("scrollbarStyle","native",function(l){ag(l),Qo(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=Tf(l.options.gutters,u),ol(l)},!0),a("firstLineNumber",1,ol,!0),a("lineNumberFormatter",function(l){return l},ol,!0),a("showCursorWhenSelecting",!1,Qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Zo(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,DS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Qs,!0),a("singleCursorHeightPerLine",!0,Qs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,sl,!0),a("addModeClass",!1,sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function DS(n,i,a){var l=a&&a!=ls;if(!i!=!l){var u=n.display.dragFunctions,g=i?ze:nn;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function zS(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(Z(n.display.wrapper,"CodeMirror-wrap"),nf(n)),pf(n),bn(n),Js(n),setTimeout(function(){return Qo(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?ae(i):{},ae(sv,i,!1);var l=i.value;typeof l=="string"?l=new wn(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),g=this.display=new Yx(n,l,u,i);g.wrapper.CodeMirror=this,ov(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ag(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 $e,keySeq:null,specialChars:null},i.autofocus&&!L&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),IS(this),gS(),go(this),this.curOp.forceUpdate=!0,yg(this,l),i.autofocus&&!L||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&yf(a)},20):Zo(this);for(var y in ec)ec.hasOwnProperty(y)&&ec[y](this,i[y],ls);fg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<If.length;++x)If[x](this);vo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Ct.defaults=sv,Ct.optionHandlers=ec;function IS(n){var i=n.display;ze(i.scroller,"mousedown",Gt(n,tv)),h&&p<11?ze(i.scroller,"dblclick",Gt(n,function(S){if(!Nt(n,S)){var _=uo(n,S);if(!(!_||zf(n,S)||ei(n.display,S))){rn(S);var $=n.findWordAt(_);Ga(n.doc,$.anchor,$.head)}}})):ze(i.scroller,"dblclick",function(S){return Nt(n,S)||rn(S)}),ze(i.scroller,"contextmenu",function(S){return iv(n,S)}),ze(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||iv(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 g(S){if(S.touches.length!=1)return!1;var _=S.touches[0];return _.radiusX<=1&&_.radiusY<=1}function y(S,_){if(_.left==null)return!0;var $=_.left-S.left,D=_.top-S.top;return $*$+D*D>20*20}ze(i.scroller,"touchstart",function(S){if(!Nt(n,S)&&!g(S)&&!zf(n,S)){i.input.ensurePolled(),clearTimeout(a);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),ze(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ze(i.scroller,"touchend",function(S){var _=i.activeTouch;if(_&&!ei(i,S)&&_.left!=null&&!_.moved&&new Date-_.start<300){var $=n.coordsChar(i.activeTouch,"page"),D;!_.prev||y(_,_.prev)?D=new dt($,$):!_.prev.prev||y(_,_.prev.prev)?D=n.findWordAt($):D=new dt(ee($.line,0),Ge(n.doc,ee($.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),rn(S)}u()}),ze(i.scroller,"touchcancel",u),ze(i.scroller,"scroll",function(){i.scroller.clientHeight&&(tl(n,i.scroller.scrollTop),ho(n,i.scroller.scrollLeft,!0),Mt(n,"scroll",n))}),ze(i.scroller,"mousewheel",function(S){return pg(n,S)}),ze(i.scroller,"DOMMouseScroll",function(S){return pg(n,S)}),ze(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Nt(n,S)||xi(S)},over:function(S){Nt(n,S)||(pS(n,S),xi(S))},start:function(S){return hS(n,S)},drop:Gt(n,dS),leave:function(S){Nt(n,S)||Bg(n)}};var x=i.input.getField();ze(x,"keyup",function(S){return Qg.call(n,S)}),ze(x,"keydown",Gt(n,Jg)),ze(x,"keypress",Gt(n,ev)),ze(x,"focus",function(S){return yf(n,S)}),ze(x,"blur",function(S){return Zo(n,S)})}var If=[];Ct.defineInitHook=function(n){return If.push(n)};function bl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Gs(n,i).state:a="prev");var y=n.options.tabSize,x=Oe(u,i),S=de(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var _=x.text.match(/^\s*/)[0],$;if(!l&&!/\S/.test(x.text))$=0,a="not";else if(a=="smart"&&($=u.mode.indent(g,x.text.slice(_.length),x.text),$==O||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Oe(u,i-1).text,null,y):$=0:a=="add"?$=S+n.options.indentUnit:a=="subtract"?$=S-n.options.indentUnit:typeof a=="number"&&($=S+a),$=Math.max(0,$);var D="",K=0;if(n.options.indentWithTabs)for(var j=Math.floor($/y);j;--j)K+=y,D+=" ";if(K<$&&(D+=_e($-K)),D!=_)return rs(u,D,ee(i,0),ee(i,_.length),"+input"),x.stateAfter=null,!0;for(var ne=0;ne<u.sel.ranges.length;ne++){var ce=u.sel.ranges[ne];if(ce.head.line==i&&ce.head.ch<_.length){var ge=ee(i,_.length);Nf(u,ne,new dt(ge,ge));break}}}var mr=null;function tc(n){mr=n}function Ff(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,S=tr(i),_=null;if(x&&l.ranges.length>1)if(mr&&mr.text.join(`
|
|
33
|
-
`)==i){if(l.ranges.length%
|
|
30
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Ox(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ee(i.line,i.ch+1,"before"):i,i=i.ch?ee(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=pr(n,i),S=!a||a==i?x:pr(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 _=bf(n,u),$=n.doc.scrollTop,D=n.doc.scrollLeft;if(_.scrollTop!=null&&(tl(n,_.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(y=!0)),_.scrollLeft!=null&&(ho(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(y=!0)),!y)break}return u}function Rx(n,i){var a=bf(n,i);a.scrollTop!=null&&tl(n,a.scrollTop),a.scrollLeft!=null&&ho(n,a.scrollLeft)}function bf(n,i){var a=n.display,l=Xo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=sf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+of(a),S=i.top<l,_=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(_?x:i.bottom)-g);$!=u&&(y.scrollTop=$)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,K=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,j=ao(n)-a.gutters.offsetWidth,ne=i.right-i.left>j;return ne&&(i.right=i.left+j),i.left<10?y.scrollLeft=0:i.left<K?y.scrollLeft=Math.max(0,i.left+D-(ne?0:10)):i.right>j+K-3&&(y.scrollLeft=i.right+(ne?0:10)-j),y}function wf(n,i){i!=null&&(Wa(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Jo(n){Wa(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function el(n,i,a){(i!=null||a!=null)&&Wa(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Dx(n,i){Wa(n),n.curOp.scrollToPos=i}function Wa(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Xp(n,i.from),l=Xp(n,i.to);rg(n,a,l,i.margin)}}function rg(n,i,a,l){var u=bf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});el(n,u.scrollLeft,u.scrollTop)}function tl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Sf(n,{top:i}),ig(n,i,!0),s&&Sf(n),il(n,100))}function ig(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 ho(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,cg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function nl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+of(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+$r(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var po=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),ze(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ze(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};po.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},po.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},po.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},po.prototype.zeroWidthHack=function(){var n=z&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $e,this.disableVert=new $e},po.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},po.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var rl=function(){};rl.prototype.update=function(){return{bottom:0,right:0}},rl.prototype.setScrollLeft=function(){},rl.prototype.setScrollTop=function(){},rl.prototype.clear=function(){};function Qo(n,i){i||(i=nl(n));var a=n.display.barWidth,l=n.display.barHeight;og(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&qa(n),og(n,nl(n)),a=n.display.barWidth,l=n.display.barHeight}function og(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var sg={native:po,null:rl};function lg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&Z(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new sg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),ze(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"?ho(n,i):tl(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var zx=0;function go(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zx,markArrays:null},px(n.curOp)}function vo(n){var i=n.curOp;i&&vx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Ix(a)})}function Ix(n){for(var i=n.ops,a=0;a<i.length;a++)Fx(i[a]);for(var l=0;l<i.length;l++)Hx(i[l]);for(var u=0;u<i.length;u++)qx(i[u]);for(var g=0;g<i.length;g++)Bx(i[g]);for(var y=0;y<i.length;y++)Wx(i[y])}function Fx(n){var i=n.cm,a=i.display;Vx(i),n.updateMaxLine&&nf(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 Ua(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Hx(n){n.updatedDisplay=n.mustUpdate&&xf(n.cm,n.update)}function qx(n){var i=n.cm,a=i.display;n.updatedDisplay&&qa(i),n.barMeasure=nl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=qp(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+$r(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-ao(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Bx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&ho(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(tt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Qo(i,n.barMeasure),n.updatedDisplay&&kf(i,n.barMeasure),n.selectionChanged&&vf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&tg(n.cm)}function Wx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&ag(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ig(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&ho(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Ox(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);Px(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Mt(g[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Mt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Mt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function On(n,i){if(n.curOp)return i();go(n);try{return i()}finally{vo(n)}}function Gt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);go(n);try{return i.apply(n,arguments)}finally{vo(n)}}}function fn(n){return function(){if(this.curOp)return n.apply(this,arguments);go(this);try{return n.apply(this,arguments)}finally{vo(this)}}}function Kt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);go(i);try{return n.apply(this,arguments)}finally{vo(i)}}}function il(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,X(Ux,n))}function Ux(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Gs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,x=g.text.length>n.options.maxHighlightLength?Mr(i.mode,l.state):null,S=gp(n,g,l,!0);x&&(l.state=x),g.styles=S.styles;var _=g.styleClasses,$=S.classes;$?g.styleClasses=$:_&&(g.styleClasses=null);for(var D=!y||y.length!=g.styles.length||_!=$&&(!_||!$||_.bgClass!=$.bgClass||_.textClass!=$.textClass),K=0;!D&&K<y.length;++K)D=y[K]!=g.styles[K];D&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Yu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return il(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&On(n,function(){for(var g=0;g<u.length;g++)Ci(n,u[g],"text")})}}var Ua=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Ba(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=ao(n),this.force=a,this.dims=df(n),this.events=[]};Ua.prototype.signal=function(n,i){Pn(n,i)&&this.events.push(arguments)},Ua.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Mt.apply(null,this.events[n])};function Vx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=$r(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=$r(n)+"px",i.scrollbarsClipped=!0)}function jx(n){if(n.hasFocus())return null;var i=ye(tt(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Ae(n).getSelection();l.anchorNode&&l.extend&&ie(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Gx(n){if(!(!n||!n.activeElt||n.activeElt==ye(Je(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ie(document.body,n.anchorNode)&&ie(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function xf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ei(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&&Qp(n)==0)return!1;ug(n)&&(Ei(n),i.dims=df(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Jr&&(g=ef(n.doc,g),y=Ap(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Nx(n,g,y),a.viewOffset=Qr(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Qp(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=jx(n);return S>4&&(a.lineDiv.style.display="none"),Kx(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Gx(_),q(a.cursorDiv),q(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,il(n,400)),a.updateLineNumbers=null,!0}function ag(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==ao(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+of(n.display)-sf(n),a.top)}),i.visible=Ba(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Ba(n.display,n.doc,a));if(!xf(n,i))break;qa(n);var u=nl(n);Qs(n),Qo(n,u),kf(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 Sf(n,i){var a=new Ua(n,i);if(xf(n,a)){qa(n),ag(n,a);var l=nl(n);Qs(n),Qo(n,l),kf(n,l),a.finish()}}function Kx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ne){var ce=ne.nextSibling;return v&&z&&n.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ce}for(var S=l.view,_=l.viewFrom,$=0;$<S.length;$++){var D=S[$];if(!D.hidden)if(!D.node||D.node.parentNode!=g){var K=xx(n,D,_,a);g.insertBefore(K,y)}else{for(;y!=D.node;)y=x(y);var j=u&&i!=null&&i<=_&&D.lineNumber;D.changes&&(Ee(D.changes,"gutter")>-1&&(j=!1),Op(n,D,_,a)),j&&(q(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(pe(n.options,_)))),y=D.node.nextSibling}_+=D.size}for(;y;)y=x(y)}function _f(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",jt(n,"gutterChanged",n)}function kf(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+$r(n)+"px"}function cg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=hf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var x=a[y].alignable;if(x)for(var S=0;S<x.length;S++)x[S].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function ug(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=pe(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")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",_f(n.display),!0}return!1}function Tf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function fg(n){var i=n.gutters,a=n.gutterSpecs;q(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",_f(n)}function ol(n){fg(n.display),bn(n),cg(n)}function Xx(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=B("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=B("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=B("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Ze+"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),!v&&!(s&&L)&&(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=Tf(l.gutters,l.lineNumbers),fg(u),a.init(u)}var Va=0,ti=null;h?ti=-.53:s?ti=15:b?ti=-.7:N&&(ti=-1/3);function dg(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 Yx(n){var i=dg(n);return i.x*=ti,i.y*=ti,i}function hg(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=dg(i),l=a.x,u=a.y,g=ti;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,_=x.scrollHeight>x.clientHeight;if(l&&S||u&&_){if(u&&z&&v){e:for(var $=i.target,D=y.view;$!=x;$=$.parentNode)for(var K=0;K<D.length;K++)if(D[K].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!M&&g!=null){u&&_&&tl(n,Math.max(0,x.scrollTop+u*g)),ho(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&_)&&rn(i),y.wheelStartX=null;return}if(u&&g!=null){var j=u*g,ne=n.doc.scrollTop,ce=ne+y.wrapper.clientHeight;j<0?ne=Math.max(0,ne+j-50):ce=Math.min(n.doc.height,ce+j+50),Sf(n,{top:ne,bottom:ce})}Va<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 ge=x.scrollLeft-y.wheelStartX,we=x.scrollTop-y.wheelStartY,ke=we&&y.wheelDY&&we/y.wheelDY||ge&&y.wheelDX&&ge/y.wheelDX;y.wheelStartX=y.wheelStartY=null,ke&&(ti=(ti*Va+ke)/(Va+1),++Va)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Vn=function(n,i){this.ranges=n,this.primIndex=i};Vn.prototype.primary=function(){return this.ranges[this.primIndex]},Vn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ft(a.anchor,l.anchor)||!ft(a.head,l.head))return!1}return!0},Vn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new dt(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new Vn(n,this.primIndex)},Vn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Vn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Se(i,l.from())>=0&&Se(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return Vo(this.anchor,this.head)},dt.prototype.to=function(){return yn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function gr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(K,j){return Se(K.from(),j.from())}),a=Ee(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],S=Se(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var _=Vo(x.from(),y.from()),$=yn(x.to(),y.to()),D=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(D?$:_,D?_:$))}}return new Vn(i,a)}function Li(n,i){return new Vn([new dt(n,i||n)],0)}function Ai(n){return n.text?ee(n.from.line+n.text.length-1,ue(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function pg(n,i){if(Se(n,i.from)<0)return n;if(Se(n,i.to)<=0)return Ai(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+=Ai(i).ch-i.to.ch),ee(a,l)}function Cf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new dt(pg(u.anchor,i),pg(u.head,i)))}return gr(n.cm,a,n.sel.primIndex)}function gg(n,i,a){return n.line==i.line?ee(a.line,n.ch-i.ch+a.ch):ee(a.line+(n.line-i.line),n.ch)}function Zx(n,i,a){for(var l=[],u=ee(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],S=gg(x.from,u,g),_=gg(Ai(x),u,g);if(u=x.to,g=_,a=="around"){var $=n.sel.ranges[y],D=Se($.head,$.anchor)<0;l[y]=new dt(D?_:S,D?S:_)}else l[y]=new dt(S,S)}return new Vn(l,n.sel.primIndex)}function Ef(n){n.doc.mode=Bo(n.options,n.doc.modeOption),sl(n)}function sl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,il(n,100),n.state.modeGen++,n.curOp&&bn(n)}function vg(n,i){return i.from.ch==0&&i.to.ch==0&&ue(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Lf(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,xe,Me){ox(ke,xe,Me,l),jt(ke,"change",ke,i)}function y(ke,xe){for(var Me=[],Ie=ke;Ie<xe;++Ie)Me.push(new jo(_[Ie],u(Ie),l));return Me}var x=i.from,S=i.to,_=i.text,$=Oe(n,x.line),D=Oe(n,S.line),K=ue(_),j=u(_.length-1),ne=S.line-x.line;if(i.full)n.insert(0,y(0,_.length)),n.remove(_.length,n.size-_.length);else if(vg(n,i)){var ce=y(0,_.length-1);g(D,D.text,j),ne&&n.remove(x.line,ne),ce.length&&n.insert(x.line,ce)}else if($==D)if(_.length==1)g($,$.text.slice(0,x.ch)+K+$.text.slice(S.ch),j);else{var ge=y(1,_.length-1);ge.push(new jo(K+$.text.slice(S.ch),j,l)),g($,$.text.slice(0,x.ch)+_[0],u(0)),n.insert(x.line+1,ge)}else if(_.length==1)g($,$.text.slice(0,x.ch)+_[0]+D.text.slice(S.ch),u(0)),n.remove(x.line+1,ne);else{g($,$.text.slice(0,x.ch)+_[0],u(0)),g(D,K+D.text.slice(S.ch),j);var we=y(1,_.length-1);ne>1&&n.remove(x.line+1,ne-1),n.insert(x.line+1,we)}jt(n,"change",n,i)}function Mi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=g){var _=y&&S.sharedHist;a&&!_||(i(S.doc,_),l(S.doc,u,_))}}}l(n,null,!0)}function mg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,pf(n),Ef(n),yg(n),n.options.direction=i.direction,n.options.lineWrapping||nf(n),n.options.mode=i.modeOption,bn(n)}function yg(n){(n.doc.direction=="rtl"?Ne:Z)(n.display.lineDiv,"CodeMirror-rtl")}function Jx(n){On(n,function(){yg(n),bn(n)})}function ja(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 Af(n,i){var a={from:Vt(i.from),to:Ai(i),text:Zr(n,i.from,i.to)};return xg(n,a,i.from.line,i.to.line+1),Mi(n,function(l){return xg(l,a,i.from.line,i.to.line+1)},!0),a}function bg(n){for(;n.length;){var i=ue(n);if(i.ranges)n.pop();else break}}function Qx(n,i){if(i)return bg(n.done),ue(n.done);if(n.done.length&&!ue(n.done).ranges)return ue(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ue(n.done)}function wg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=Qx(u,u.lastOp==l)))x=ue(y.changes),Se(i.from,i.to)==0&&Se(i.from,x.to)==0?x.to=Ai(i):y.changes.push(Af(n,i));else{var S=ue(u.done);for((!S||!S.ranges)&&Ga(n.sel,u.done),y={changes:[Af(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Mt(n,"historyAdded")}function eS(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 tS(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||eS(n,g,ue(u.done),i))?u.done[u.done.length-1]=i:Ga(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&bg(u.undone)}function Ga(n,i){var a=ue(i);a&&a.ranges&&a.equals(n)||i.push(n)}function xg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function nS(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 rS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(nS(a[u]));return l}function Sg(n,i){var a=rS(n,i),l=Ju(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var x=0;x<y.length;++x){for(var S=y[x],_=0;_<g.length;++_)if(g[_].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function es(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Vn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var _=y[S],$=void 0;if(x.push({from:_.from,to:_.to,text:_.text}),i)for(var D in _)($=D.match(/^spans_(\d+)$/))&&Ee(i,Number($[1]))>-1&&(ue(x)[D]=_[D],delete _[D])}}return l}function Mf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Se(i,u)<0;g!=Se(a,u)<0?(u=i,i=a):g!=Se(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Ka(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),on(n,new Vn([Mf(n.sel.primary(),i,a,u)],0),l)}function _g(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Mf(n.sel.ranges[g],i[g],null,u);var y=gr(n.cm,l,n.sel.primIndex);on(n,y,a)}function Nf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,on(n,gr(n.cm,u,n.sel.primIndex),l)}function kg(n,i,a,l){on(n,Li(i,a),l)}function iS(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new dt(Ge(n,u[g].anchor),Ge(n,u[g].head))},origin:a&&a.origin};return Mt(n,"beforeSelectionChange",n,l),n.cm&&Mt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?gr(n.cm,l.ranges,l.ranges.length-1):i}function Tg(n,i,a){var l=n.history.done,u=ue(l);u&&u.ranges?(l[l.length-1]=i,Xa(n,i,a)):on(n,i,a)}function on(n,i,a){Xa(n,i,a),tS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Xa(n,i,a){(Pn(n,"beforeSelectionChange")||n.cm&&Pn(n.cm,"beforeSelectionChange"))&&(i=iS(n,i,a));var l=a&&a.bias||(Se(i.primary().head,n.sel.primary().head)<0?-1:1);Cg(n,Lg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Jo(n.cm)}function Cg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,er(n.cm)),jt(n,"cursorActivity",n))}function Eg(n){Cg(n,Lg(n,n.sel,null,!1))}function Lg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],S=Ya(n,y.anchor,x&&x.anchor,a,l),_=y.head==y.anchor?S:Ya(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||_!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(S,_))}return u?gr(n.cm,u,i.primIndex):i}function ts(n,i,a,l,u){var g=Oe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],S=x.marker,_="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,$="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(_?x.from<=i.ch:x.from<i.ch))&&(x.to==null||($?x.to>=i.ch:x.to>i.ch))){if(u&&(Mt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var D=S.find(l<0?1:-1),K=void 0;if((l<0?$:_)&&(D=Ag(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(K=Se(D,a))&&(l<0?K<0:K>0))return ts(n,D,i,l,u)}var j=S.find(l<0?-1:1);return(l<0?_:$)&&(j=Ag(n,j,l,j.line==i.line?g:null)),j?ts(n,j,i,l,u):null}}return i}function Ya(n,i,a,l,u){var g=l||1,y=ts(n,i,a,g,u)||!u&&ts(n,i,a,g,!0)||ts(n,i,a,-g,u)||!u&&ts(n,i,a,-g,!0);return y||(n.cantEdit=!0,ee(n.first,0))}function Ag(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,ee(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?ee(i.line+1,0):null:new ee(i.line,i.ch+a)}function Mg(n){n.setSelection(ee(n.firstLine(),0),ee(n.lastLine()),H)}function Ng(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,x){u&&(l.from=Ge(n,u)),g&&(l.to=Ge(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Mt(n,"beforeChange",n,l),n.cm&&Mt(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 ns(n,i,a){if(n.cm){if(!n.cm.curOp)return Gt(n.cm,ns)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Pn(n,"beforeChange")||n.cm&&Pn(n.cm,"beforeChange"))&&(i=Ng(n,i,!0),!i))){var l=Sp&&!a&&tx(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)$g(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else $g(n,i)}}function $g(n,i){if(!(i.text.length==1&&i.text[0]==""&&Se(i.from,i.to)==0)){var a=Cf(n,i);wg(n,i,a,n.cm?n.cm.curOp.id:NaN),ll(n,i,a,Ju(n,i));var l=[];Mi(n,function(u,g){!g&&Ee(l,u.history)==-1&&(Dg(u.history,i),l.push(u.history)),ll(u,i,null,Ju(u,i))})}}function Za(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,_=0;_<x.length&&(g=x[_],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));_++);if(_!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(Ga(g,S),a&&!g.equals(n.sel)){on(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var $=[];Ga(y,S),S.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=Pn(n,"beforeChange")||n.cm&&Pn(n.cm,"beforeChange"),K=function(ce){var ge=g.changes[ce];if(ge.origin=i,D&&!Ng(n,ge,!1))return x.length=0,{};$.push(Af(n,ge));var we=ce?Cf(n,ge):ue(x);ll(n,ge,we,Sg(n,ge)),!ce&&n.cm&&n.cm.scrollIntoView({from:ge.from,to:Ai(ge)});var ke=[];Mi(n,function(xe,Me){!Me&&Ee(ke,xe.history)==-1&&(Dg(xe.history,ge),ke.push(xe.history)),ll(xe,ge,null,Sg(xe,ge))})},j=g.changes.length-1;j>=0;--j){var ne=K(j);if(ne)return ne.v}}}}function Pg(n,i){if(i!=0&&(n.first+=i,n.sel=new Vn(be(n.sel.ranges,function(u){return new dt(ee(u.anchor.line+i,u.anchor.ch),ee(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){bn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ci(n.cm,l,"gutter")}}function ll(n,i,a,l){if(n.cm&&!n.cm.curOp)return Gt(n.cm,ll)(n,i,a,l);if(i.to.line<n.first){Pg(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);Pg(n,u),i={from:ee(n.first,0),to:ee(i.to.line+u,i.to.ch),text:[ue(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ee(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Zr(n,i.from,i.to),a||(a=Cf(n,i)),n.cm?oS(n.cm,i,l):Lf(n,i,l),Xa(n,a,H),n.cantEdit&&Ya(n,ee(n.firstLine(),0))&&(n.cantEdit=!1)}}function oS(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,S=g.line;n.options.lineWrapping||(S=T(hr(Oe(l,g.line))),l.iter(S,y.line+1,function(j){if(j==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&er(n),Lf(l,i,a,Jp(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(j){var ne=Oa(j);ne>u.maxLineLength&&(u.maxLine=j,u.maxLineLength=ne,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),K1(l,g.line),il(n,400);var _=i.text.length-(y.line-g.line)-1;i.full?bn(n):g.line==y.line&&i.text.length==1&&!vg(n.doc,i)?Ci(n,g.line,"text"):bn(n,g.line,y.line+1,_);var $=Pn(n,"changes"),D=Pn(n,"change");if(D||$){var K={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};D&&jt(n,"change",n,K),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(K)}n.display.selForContextMenu=null}function rs(n,i,a,l,u){var g;l||(l=a),Se(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ns(n,{from:a,to:l,text:i,origin:u})}function Og(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Rg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var x=0;x<g.ranges.length;x++)Og(g.ranges[x].anchor,i,a,l),Og(g.ranges[x].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var _=g.changes[S];if(a<_.from.line)_.from=ee(_.from.line+l,_.from.ch),_.to=ee(_.to.line+l,_.to.ch);else if(i<=_.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Dg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Rg(n.done,a,l,u),Rg(n.undone,a,l,u)}function al(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,hp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Ci(n.cm,u,a),g)}function cl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,sx(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 ul(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}ul.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof cl))){var x=[];this.collapse(x),this.children=[new cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var S=new cl(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-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new ul(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ee(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new ul(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var fl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};fl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Zs(this);Un(a,Math.max(0,a.height-g)),n&&(On(n,function(){zg(n,a,-g),Ci(n,l,"widget")}),jt(n,"lineWidgetCleared",n,this,l))}},fl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Zs(this)-i;u&&(Ti(this.doc,l)||Un(l,l.height+u),a&&On(a,function(){a.curOp.forceUpdate=!0,zg(a,l,u),jt(a,"lineWidgetChanged",a,n,T(l))}))},ar(fl);function zg(n,i,a){Qr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&wf(n,a)}function sS(n,i,a,l){var u=new fl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),al(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Ti(n,y)){var S=Qr(y)<n.scrollTop;Un(y,y.height+Zs(u)),S&&wf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&jt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Ig=0,Ni=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Ig};Ni.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&go(n),Pn(this,"clear")){var a=this.find();a&&jt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=Ks(y.markedSpans,this);n&&!this.collapsed?Ci(n,T(y),"text"):n&&(x.to!=null&&(u=T(y)),x.from!=null&&(l=T(y))),y.markedSpans=Z1(y.markedSpans,x),x.from==null&&this.collapsed&&!Ti(this.doc,y)&&n&&Un(y,Xo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var _=hr(this.lines[S]),$=Oa(_);$>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&bn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Eg(n.doc)),n&&jt(n,"markerCleared",n,this,l,u),i&&vo(n),this.parent&&this.parent.clear()}},Ni.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=Ks(g.markedSpans,this);if(y.from!=null&&(a=ee(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=ee(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ni.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||On(l,function(){var u=i.line,g=T(i.line),y=lf(l,g);if(y&&(Up(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ti(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var S=Zs(a)-x;S&&Un(u,u.height+S)}jt(l,"markerChanged",l,n)})},Ni.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ee(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ni.prototype.detachLine=function(n){if(this.lines.splice(Ee(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},ar(Ni);function is(n,i,a,l,u){if(l&&l.shared)return lS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Gt(n.cm,is)(n,i,a,l,u);var g=new Ni(n,u),y=Se(i,a);if(l&&ae(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=B("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Lp(n,i.line,i,a,g)||i.line!=a.line&&Lp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Y1()}g.addToHistory&&wg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,_;if(n.iter(x,a.line+1,function(D){S&&g.collapsed&&!S.options.lineWrapping&&hr(D)==S.display.maxLine&&(_=!0),g.collapsed&&x!=i.line&&Un(D,0),J1(D,new Ma(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(D){Ti(n,D)&&Un(D,0)}),g.clearOnEnter&&ze(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(X1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Ig,g.atomic=!0),S){if(_&&(S.curOp.updateMaxLine=!0),g.collapsed)bn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var $=i.line;$<=a.line;$++)Ci(S,$,"text");g.atomic&&Eg(S.doc),jt(S,"markerAdded",S,g)}return g}var dl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};dl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();jt(this,"clear")}},dl.prototype.find=function(n,i){return this.primary.find(n,i)},ar(dl);function lS(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[is(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Mi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),g.push(is(S,Ge(S,i),Ge(S,a),l,u));for(var _=0;_<S.linked.length;++_)if(S.linked[_].isParent)return;y=ue(g)}),new dl(g,y)}function Fg(n){return n.findMarks(ee(n.first,0),n.clipPos(ee(n.lastLine())),function(i){return i.parent})}function aS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Se(g,y)){var x=is(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function cS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Mi(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];Ee(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var uS=0,wn=function(n,i,a,l,u){if(!(this instanceof wn))return new wn(n,i,a,l,u);a==null&&(a=0),ul.call(this,[new cl([new jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ee(a,0);this.sel=Li(g),this.history=new ja(null),this.id=++uS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Lf(this,{from:g,to:g,text:n}),on(this,Li(g),H)};wn.prototype=Le(ul.prototype,{constructor:wn,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=js(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Kt(function(n){var i=ee(this.first,0),a=this.first+this.size-1;ns(this,{from:i,to:ee(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&el(this.cm,0,0),on(this,Li(i),H)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,rs(this,n,i,a,l)},getRange:function(n,i,a){var l=Zr(this,Ge(this,n),Ge(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(se(this,n))return Oe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),hr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ge(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Kt(function(n,i,a){kg(this,Ge(this,typeof n=="number"?ee(n,i||0):n),null,a)}),setSelection:Kt(function(n,i,a){kg(this,Ge(this,n),Ge(this,i||n),a)}),extendSelection:Kt(function(n,i,a){Ka(this,Ge(this,n),i&&Ge(this,i),a)}),extendSelections:Kt(function(n,i){_g(this,pp(this,n),i)}),extendSelectionsBy:Kt(function(n,i){var a=be(this.sel.ranges,n);_g(this,pp(this,a),i)}),setSelections:Kt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new dt(Ge(this,n[u].anchor),Ge(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),on(this,gr(this.cm,l,i),a)}}),addSelection:Kt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new dt(Ge(this,n),Ge(this,i||n))),on(this,gr(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=Zr(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=Zr(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:Kt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var x=i&&i!="end"&&Zx(this,l,i),S=l.length-1;S>=0;S--)ns(this,l[S]);x?Tg(this,x):this.cm&&Jo(this.cm)}),undo:Kt(function(){Za(this,"undo")}),redo:Kt(function(){Za(this,"redo")}),undoSelection:Kt(function(){Za(this,"undo",!0)}),redoSelection:Kt(function(){Za(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 ja(this.history),Mi(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:es(this.history.done),undone:es(this.history.undone)}},setHistory:function(n){var i=this.history=new ja(this.history);i.done=es(n.done.slice(0),null,!0),i.undone=es(n.undone.slice(0),null,!0)},setGutterMarker:Kt(function(n,i,a){return al(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&>(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Kt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&al(i,a,"gutter",function(){return a.gutterMarkers[n]=null,gt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!se(this,n)||(i=n,n=Oe(this,n),!n))return null}else if(i=T(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:Kt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(te(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Kt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(te(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:Kt(function(n,i,a){return sS(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return is(this,Ge(this,n),Ge(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ge(this,n),is(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Oe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ge(this,n),i=Ge(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var x=0;x<y.length;x++){var 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 g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ge(this,ee(a,i))},indexFromPos:function(n){n=Ge(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new wn(js(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 wn(js(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}],aS(l,Fg(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),cS(Fg(this));break}}if(n.history==this.history){var l=[n.id];Mi(n,function(u){return l.push(u.id)},!0),n.history=new ja(null),n.history.done=es(this.history.done,l),n.history.undone=es(this.history.undone,l)}},iterLinkedDocs:function(n){Mi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):tr(n)},lineSeparator:function(){return this.lineSep||`
|
|
31
|
+
`},setDirection:Kt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Jx(this.cm))})}),wn.prototype.eachLine=wn.prototype.iter;var Hg=0;function fS(n){var i=this;if(qg(i),!(Nt(i,n)||ei(i.display,n))){rn(n),h&&(Hg=+new Date);var a=uo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,x=function(){++y==u&&Gt(i,function(){a=Ge(i.doc,a);var j={from:a,to:a,text:i.doc.splitLines(g.filter(function(ne){return ne!=null}).join(i.doc.lineSeparator())),origin:"paste"};ns(i.doc,j),Tg(i.doc,Li(Ge(i.doc,a),Ge(i.doc,Ai(j))))})()},S=function(j,ne){if(i.options.allowDropFileTypes&&Ee(i.options.allowDropFileTypes,j.type)==-1){x();return}var ce=new FileReader;ce.onerror=function(){return x()},ce.onload=function(){var ge=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){x();return}g[ne]=ge,x()},ce.readAsText(j)},_=0;_<l.length;_++)S(l[_],_);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 $=n.dataTransfer.getData("Text");if($){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Xa(i.doc,Li(a,a)),D)for(var K=0;K<D.length;++K)rs(i.doc,"",D[K].anchor,D[K].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function dS(n,i){if(h&&(!n.state.draggingText||+new Date-Hg<100)){xi(i);return}if(!(Nt(n,i)||ei(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!N)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",M&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),M&&a.parentNode.removeChild(a)}}function hS(n,i){var a=uo(n,i);if(a){var l=document.createDocumentFragment();gf(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)),F(n.display.dragCursor,l)}}function qg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Bg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var Wg=!1;function pS(){Wg||(gS(),Wg=!0)}function gS(){var n;ze(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Bg(vS)},100))}),ze(window,"blur",function(){return Bg(Zo)})}function vS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var $i={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hl=0;hl<10;hl++)$i[hl+48]=$i[hl+96]=String(hl);for(var Ja=65;Ja<=90;Ja++)$i[Ja]=String.fromCharCode(Ja);for(var pl=1;pl<=12;pl++)$i[pl+111]=$i[pl+63235]="F"+pl;var ni={};ni.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"},ni.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"},ni.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"},ni.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"]},ni.default=z?ni.macDefault:ni.pcDefault;function mS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function yS(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(" "),mS),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var _ in i)n[_]=i[_];return n}function os(n,i,a,l){i=Qa(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 os(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=os(n,i.fallthrough[g],a,l);if(y)return y}}}function Ug(n){var i=typeof n=="string"?n:$i[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Vg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Q?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Q?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function jg(n,i){if(M&&n.keyCode==34&&n.char)return!1;var a=$i[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Vg(a,n,i))}function Qa(n){return typeof n=="string"?ni[n]:n}function ss(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Se(g.from,ue(l).to)<=0;){var y=l.pop();if(Se(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}On(n,function(){for(var x=l.length-1;x>=0;x--)rs(n.doc,"",l[x].from,l[x].to,"+delete");Jo(n)})}function $f(n,i,a){var l=Tt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Pf(n,i,a){var l=$f(n,i.ch,a);return l==null?null:new ee(i.line,l,a<0?"after":"before")}function Of(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Ve(a,i.doc.direction);if(g){var y=u<0?ue(g):g[0],x=u<0==(y.level==1),S=x?"after":"before",_;if(y.level>0||i.doc.direction=="rtl"){var $=Ko(i,a);_=u<0?a.text.length-1:0;var D=Pr(i,$,_).top;_=Rt(function(K){return Pr(i,$,K).top==D},u<0==(y.level==1)?y.from:y.to-1,_),S=="before"&&(_=$f(a,_,1))}else _=u<0?y.to:y.from;return new ee(l,_,S)}}return new ee(l,u<0?a.text.length:0,u<0?"before":"after")}function bS(n,i,a,l){var u=Ve(i,n.doc.direction);if(!u)return Pf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=lr(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Pf(i,a,l);var x=function(we,ke){return $f(i,we instanceof ee?we.ch:we,ke)},S,_=function(we){return n.options.lineWrapping?(S=S||Ko(n,i),Zp(n,i,S,we)):{begin:0,end:i.text.length}},$=_(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var D=y.level==1==l<0,K=x(a,D?1:-1);if(K!=null&&(D?K<=y.to&&K<=$.end:K>=y.from&&K>=$.begin)){var j=D?"before":"after";return new ee(a.line,K,j)}}var ne=function(we,ke,xe){for(var Me=function(St,Xt){return Xt?new ee(a.line,x(St,1),"before"):new ee(a.line,St,"after")};we>=0&&we<u.length;we+=ke){var Ie=u[we],Re=ke>0==(Ie.level!=1),Qe=Re?xe.begin:x(xe.end,-1);if(Ie.from<=Qe&&Qe<Ie.to||(Qe=Re?Ie.from:x(Ie.to,-1),xe.begin<=Qe&&Qe<xe.end))return Me(Qe,Re)}},ce=ne(g+l,l,$);if(ce)return ce;var ge=l>0?$.end:x($.begin,-1);return ge!=null&&!(l>0&&ge==i.text.length)&&(ce=ne(l>0?0:u.length-1,l,_(ge)),ce)?ce:null}var gl={selectAll:Mg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),H)},killLine:function(n){return ss(n,function(i){if(i.empty()){var a=Oe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ee(i.head.line+1,0)}:{from:i.head,to:ee(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ss(n,function(i){return{from:ee(i.from().line,0),to:Ge(n.doc,ee(i.to().line+1,0))}})},delLineLeft:function(n){return ss(n,function(i){return{from:ee(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ss(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 ss(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(ee(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ee(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Gg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Kg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return wS(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")},fe)},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")},fe)},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/)?Kg(n,i.head):l},fe)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=de(n.getLine(g.line),g.ch,l);i.push(_e(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return On(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Oe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ee(u.line,u.ch-1)),u.ch>0)u=new ee(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ee(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Oe(n.doc,u.line-1).text;y&&(u=new ee(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ee(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return On(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);Jo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
32
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Gg(n,i){var a=Oe(n.doc,i),l=hr(a);return l!=a&&(i=T(l)),Of(!0,n,l,i,1)}function wS(n,i){var a=Oe(n.doc,i),l=rx(a);return l!=a&&(i=T(l)),Of(!0,n,a,i,-1)}function Kg(n,i){var a=Gg(n,i.line),l=Oe(n.doc,a.line),u=Ve(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return ee(a.line,y?0:g,a.sticky)}return a}function ec(n,i,a){if(typeof i=="string"&&(i=gl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=O}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function xS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=os(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&os(i,n.options.extraKeys,a,n)||os(i,n.options.keyMap,a,n)}var SS=new $e;function vl(n,i,a,l){var u=n.state.keySeq;if(u){if(Ug(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:SS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Xg(n,u+" "+i,a,l))return!0}return Xg(n,i,a,l)}function Xg(n,i,a,l){var u=xS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&jt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(rn(a),vf(n)),!!u}function Yg(n,i){var a=jg(i,!0);return a?i.shiftKey&&!n.state.keySeq?vl(n,"Shift-"+a,i,function(l){return ec(n,l,!0)})||vl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return ec(n,l)}):vl(n,a,i,function(l){return ec(n,l)}):!1}function _S(n,i,a){return vl(n,"'"+a+"'",i,function(l){return ec(n,l,!0)})}var Rf=null;function Zg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(tt(i)),!Nt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Yg(i,n);M&&(Rf=l?a:null,!l&&a==88&&!La&&(z?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!z&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&kS(i)}}function kS(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(Z(i,"CodeMirror-crosshair"),nn(document,"keyup",a),nn(document,"mouseover",a))}ze(document,"keyup",a),ze(document,"mouseover",a)}function Jg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Nt(this,n)}function Qg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ei(i.display,n)||Nt(i,n)||n.ctrlKey&&!n.altKey||z&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(M&&a==Rf){Rf=null,rn(n);return}if(!(M&&(!n.which||n.which<10)&&Yg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(_S(i,n,u)||i.display.input.onKeyPress(n))}}}var TS=400,Df=function(n,i,a){this.time=n,this.pos=i,this.button=a};Df.prototype.compare=function(n,i,a){return this.time+TS>n&&Se(i,this.pos)==0&&a==this.button};var ml,yl;function CS(n,i){var a=+new Date;return yl&&yl.compare(a,n,i)?(ml=yl=null,"triple"):ml&&ml.compare(a,n,i)?(yl=new Df(a,n,i),ml=null,"double"):(ml=new Df(a,n,i),yl=null,"single")}function ev(n){var i=this,a=i.display;if(!(Nt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ei(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!zf(i,n)){var l=uo(i,n),u=cr(n),g=l?CS(l,u):"single";Ae(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&ES(i,u,l,g,n))&&(u==1?l?AS(i,l,g,n):Ws(n)==a.scroller&&rn(n):u==2?(l&&Ka(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):mf(i)))}}}function ES(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,vl(n,Vg(g,u),u,function(y){if(typeof y=="string"&&(y=gl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=O}finally{n.state.suppressEdits=!1}return x})}function LS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=W?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=z?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(z?a.altKey:a.ctrlKey)),u}function AS(n,i,a,l){h?setTimeout(X(tg,n),0):n.curOp.focus=ye(tt(n));var u=LS(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Ku&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Se((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Se(y.to(),i)>0||i.xRel<0)?MS(n,l,i,u):NS(n,l,i,u)}function MS(n,i,a,l){var u=n.display,g=!1,y=Gt(n,function(_){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:mf(n)),nn(u.wrapper.ownerDocument,"mouseup",y),nn(u.wrapper.ownerDocument,"mousemove",x),nn(u.scroller,"dragstart",S),nn(u.scroller,"drop",y),g||(rn(_),l.addNew||Ka(n.doc,a,null,null,l.extend),v&&!N||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(_){g=g||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,ze(u.wrapper.ownerDocument,"mouseup",y),ze(u.wrapper.ownerDocument,"mousemove",x),ze(u.scroller,"dragstart",S),ze(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function tv(n,i,a){if(a=="char")return new dt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new dt(ee(i.line,0),Ge(n.doc,ee(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function NS(n,i,a,l){h&&mf(n);var u=n.display,g=n.doc;rn(i);var y,x,S=g.sel,_=S.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=_[x]:y=new dt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new dt(a,a)),a=uo(n,i,!0,!0),x=-1;else{var $=tv(n,a,l.unit);l.extend?y=Mf(y,$.anchor,$.head,l.extend):y=$}l.addNew?x==-1?(x=_.length,on(g,gr(n,_.concat([y]),x),{scroll:!1,origin:"*mouse"})):_.length>1&&_[x].empty()&&l.unit=="char"&&!l.extend?(on(g,gr(n,_.slice(0,x).concat(_.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Nf(g,x,y,J):(x=0,on(g,new Vn([y],0),J),S=g.sel);var D=a;function K(xe){if(Se(D,xe)!=0)if(D=xe,l.unit=="rectangle"){for(var Me=[],Ie=n.options.tabSize,Re=de(Oe(g,a.line).text,a.ch,Ie),Qe=de(Oe(g,xe.line).text,xe.ch,Ie),St=Math.min(Re,Qe),Xt=Math.max(Re,Qe),Lt=Math.min(a.line,xe.line),Rn=Math.min(n.lastLine(),Math.max(a.line,xe.line));Lt<=Rn;Lt++){var xn=Oe(g,Lt).text,It=le(xn,St,Ie);St==Xt?Me.push(new dt(ee(Lt,It),ee(Lt,It))):xn.length>It&&Me.push(new dt(ee(Lt,It),ee(Lt,le(xn,Xt,Ie))))}Me.length||Me.push(new dt(a,a)),on(g,gr(n,S.ranges.slice(0,x).concat(Me),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xe)}else{var Sn=y,Qt=tv(n,xe,l.unit),Ut=Sn.anchor,Ft;Se(Qt.anchor,Ut)>0?(Ft=Qt.head,Ut=Vo(Sn.from(),Qt.anchor)):(Ft=Qt.anchor,Ut=yn(Sn.to(),Qt.head));var Pt=S.ranges.slice(0);Pt[x]=$S(n,new dt(Ge(g,Ut),Ft)),on(g,gr(n,Pt,x),J)}}var j=u.wrapper.getBoundingClientRect(),ne=0;function ce(xe){var Me=++ne,Ie=uo(n,xe,!0,l.unit=="rectangle");if(Ie)if(Se(Ie,D)!=0){n.curOp.focus=ye(tt(n)),K(Ie);var Re=Ba(u,g);(Ie.line>=Re.to||Ie.line<Re.from)&&setTimeout(Gt(n,function(){ne==Me&&ce(xe)}),150)}else{var Qe=xe.clientY<j.top?-20:xe.clientY>j.bottom?20:0;Qe&&setTimeout(Gt(n,function(){ne==Me&&(u.scroller.scrollTop+=Qe,ce(xe))}),50)}}function ge(xe){n.state.selectingText=!1,ne=1/0,xe&&(rn(xe),u.input.focus()),nn(u.wrapper.ownerDocument,"mousemove",we),nn(u.wrapper.ownerDocument,"mouseup",ke),g.history.lastSelOrigin=null}var we=Gt(n,function(xe){xe.buttons===0||!cr(xe)?ge(xe):ce(xe)}),ke=Gt(n,ge);n.state.selectingText=ke,ze(u.wrapper.ownerDocument,"mousemove",we),ze(u.wrapper.ownerDocument,"mouseup",ke)}function $S(n,i){var a=i.anchor,l=i.head,u=Oe(n.doc,a.line);if(Se(a,l)==0&&a.sticky==l.sticky)return i;var g=Ve(u);if(!g)return i;var y=lr(g,a.ch,a.sticky),x=g[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==g.length)return i;var _;if(l.line!=a.line)_=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var $=lr(g,l.ch,l.sticky),D=$-y||(l.ch-a.ch)*(x.level==1?-1:1);$==S-1||$==S?_=D<0:_=D>0}var K=g[S+(_?-1:0)],j=_==(K.level==1),ne=j?K.from:K.to,ce=j?"after":"before";return a.ch==ne&&a.sticky==ce?i:new dt(new ee(a.line,ne,ce),l)}function nv(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&rn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Pn(n,a))return mn(i);g-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var _=y.gutters.childNodes[S];if(_&&_.getBoundingClientRect().right>=u){var $=R(n.doc,g),D=n.display.gutterSpecs[S];return Mt(n,a,n,$,D.className,i),mn(i)}}}function zf(n,i){return nv(n,i,"gutterClick",!0)}function rv(n,i){ei(n.display,i)||PS(n,i)||Nt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function PS(n,i){return Pn(n,"gutterContextMenu")?nv(n,i,"gutterContextMenu",!1):!1}function iv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Js(n)}var ls={toString:function(){return"CodeMirror.Init"}},ov={},tc={};function OS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,S,_){_!=ls&&g(x,S,_)}:g)}n.defineOption=a,n.Init=ls,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Ef(l)},!0),a("indentUnit",2,Ef,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){sl(l),Js(l),bn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(S){for(var _=0;;){var $=S.text.indexOf(u,_);if($==-1)break;_=$+u.length,g.push(ee(y,$))}y++});for(var x=g.length-1;x>=0;x--)rs(l.doc,u,g[x],ee(g[x].line,g[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=ls&&l.refresh()}),a("specialCharPlaceholder",cx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",L?"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",!U),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){iv(l),ol(l)},!0),a("keyMap","default",function(l,u,g){var y=Qa(u),x=g!=ls&&Qa(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,DS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Tf(u,l.options.lineNumbers),ol(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?hf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Qo(l)},!0),a("scrollbarStyle","native",function(l){lg(l),Qo(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=Tf(l.options.gutters,u),ol(l)},!0),a("firstLineNumber",1,ol,!0),a("lineNumberFormatter",function(l){return l},ol,!0),a("showCursorWhenSelecting",!1,Qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Zo(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,RS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Qs,!0),a("singleCursorHeightPerLine",!0,Qs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,sl,!0),a("addModeClass",!1,sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function RS(n,i,a){var l=a&&a!=ls;if(!i!=!l){var u=n.display.dragFunctions,g=i?ze:nn;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function DS(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(Z(n.display.wrapper,"CodeMirror-wrap"),nf(n)),pf(n),bn(n),Js(n),setTimeout(function(){return Qo(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?ae(i):{},ae(ov,i,!1);var l=i.value;typeof l=="string"?l=new wn(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),g=this.display=new Xx(n,l,u,i);g.wrapper.CodeMirror=this,iv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),lg(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 $e,keySeq:null,specialChars:null},i.autofocus&&!L&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),zS(this),pS(),go(this),this.curOp.forceUpdate=!0,mg(this,l),i.autofocus&&!L||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&yf(a)},20):Zo(this);for(var y in tc)tc.hasOwnProperty(y)&&tc[y](this,i[y],ls);ug(this),i.finishInit&&i.finishInit(this);for(var x=0;x<If.length;++x)If[x](this);vo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Ct.defaults=ov,Ct.optionHandlers=tc;function zS(n){var i=n.display;ze(i.scroller,"mousedown",Gt(n,ev)),h&&p<11?ze(i.scroller,"dblclick",Gt(n,function(S){if(!Nt(n,S)){var _=uo(n,S);if(!(!_||zf(n,S)||ei(n.display,S))){rn(S);var $=n.findWordAt(_);Ka(n.doc,$.anchor,$.head)}}})):ze(i.scroller,"dblclick",function(S){return Nt(n,S)||rn(S)}),ze(i.scroller,"contextmenu",function(S){return rv(n,S)}),ze(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||rv(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 g(S){if(S.touches.length!=1)return!1;var _=S.touches[0];return _.radiusX<=1&&_.radiusY<=1}function y(S,_){if(_.left==null)return!0;var $=_.left-S.left,D=_.top-S.top;return $*$+D*D>20*20}ze(i.scroller,"touchstart",function(S){if(!Nt(n,S)&&!g(S)&&!zf(n,S)){i.input.ensurePolled(),clearTimeout(a);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),ze(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ze(i.scroller,"touchend",function(S){var _=i.activeTouch;if(_&&!ei(i,S)&&_.left!=null&&!_.moved&&new Date-_.start<300){var $=n.coordsChar(i.activeTouch,"page"),D;!_.prev||y(_,_.prev)?D=new dt($,$):!_.prev.prev||y(_,_.prev.prev)?D=n.findWordAt($):D=new dt(ee($.line,0),Ge(n.doc,ee($.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),rn(S)}u()}),ze(i.scroller,"touchcancel",u),ze(i.scroller,"scroll",function(){i.scroller.clientHeight&&(tl(n,i.scroller.scrollTop),ho(n,i.scroller.scrollLeft,!0),Mt(n,"scroll",n))}),ze(i.scroller,"mousewheel",function(S){return hg(n,S)}),ze(i.scroller,"DOMMouseScroll",function(S){return hg(n,S)}),ze(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Nt(n,S)||xi(S)},over:function(S){Nt(n,S)||(hS(n,S),xi(S))},start:function(S){return dS(n,S)},drop:Gt(n,fS),leave:function(S){Nt(n,S)||qg(n)}};var x=i.input.getField();ze(x,"keyup",function(S){return Jg.call(n,S)}),ze(x,"keydown",Gt(n,Zg)),ze(x,"keypress",Gt(n,Qg)),ze(x,"focus",function(S){return yf(n,S)}),ze(x,"blur",function(S){return Zo(n,S)})}var If=[];Ct.defineInitHook=function(n){return If.push(n)};function bl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Gs(n,i).state:a="prev");var y=n.options.tabSize,x=Oe(u,i),S=de(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var _=x.text.match(/^\s*/)[0],$;if(!l&&!/\S/.test(x.text))$=0,a="not";else if(a=="smart"&&($=u.mode.indent(g,x.text.slice(_.length),x.text),$==O||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Oe(u,i-1).text,null,y):$=0:a=="add"?$=S+n.options.indentUnit:a=="subtract"?$=S-n.options.indentUnit:typeof a=="number"&&($=S+a),$=Math.max(0,$);var D="",K=0;if(n.options.indentWithTabs)for(var j=Math.floor($/y);j;--j)K+=y,D+=" ";if(K<$&&(D+=_e($-K)),D!=_)return rs(u,D,ee(i,0),ee(i,_.length),"+input"),x.stateAfter=null,!0;for(var ne=0;ne<u.sel.ranges.length;ne++){var ce=u.sel.ranges[ne];if(ce.head.line==i&&ce.head.ch<_.length){var ge=ee(i,_.length);Nf(u,ne,new dt(ge,ge));break}}}var vr=null;function nc(n){vr=n}function Ff(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,S=tr(i),_=null;if(x&&l.ranges.length>1)if(vr&&vr.text.join(`
|
|
33
|
+
`)==i){if(l.ranges.length%vr.text.length==0){_=[];for(var $=0;$<vr.text.length;$++)_.push(g.splitLines(vr.text[$]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(_=be(S,function(we){return[we]}));for(var D=n.curOp.updateInput,K=l.ranges.length-1;K>=0;K--){var j=l.ranges[K],ne=j.from(),ce=j.to();j.empty()&&(a&&a>0?ne=ee(ne.line,ne.ch-a):n.state.overwrite&&!x?ce=ee(ce.line,Math.min(Oe(g,ce.line).text.length,ce.ch+ue(S).length)):x&&vr&&vr.lineWise&&vr.text.join(`
|
|
34
34
|
`)==S.join(`
|
|
35
|
-
`)&&(ne=ce=ee(ne.line,0)));var ge={from:ne,to:ce,text:_?_[K%_.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ns(n.doc,ge),jt(n,"inputRead",n,ge)}i&&!x&&av(n,i),Jo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function lv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&On(i,function(){return Ff(i,a,0,null,"paste")}),!0}function av(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=bl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Oe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=bl(n,u.head.line,"smart"));y&&jt(n,"electricInput",n,u.head.line)}}}function cv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:ee(u,0),head:ee(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Hf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function uv(){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 v?n.style.width="1000px":n.setAttribute("wrap","off"),N&&(n.style.border="1px solid black"),i}function FS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Ae(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Gt(this,i[l])(this,u,y),Mt(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"](Ja(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:fn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");ve(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,bn(this)}),removeOverlay:fn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,bn(this);return}}}),indentLine:fn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&bl(this,l,u,g)}),indentSelection:fn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(bl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Jo(this));else{var S=x.from(),_=x.to(),$=Math.max(g,S.line);g=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var D=$;D<g;++D)bl(this,D,l);var K=this.doc.sel.ranges;S.ch==0&&u.length==K.length&&K[y].from().ch>0&&Nf(this.doc,y,new dt(S,K[y].to()),H)}}}),getTokenAt:function(l,u){return wp(this,l,u)},getLineTokens:function(l,u){return wp(this,ee(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=mp(this,Oe(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var _=g+y>>1;if((_?u[_*2-1]:0)>=x)y=_;else if(u[_*2+1]<x)g=_+1;else{S=u[_*2+2];break}}var $=S?S.indexOf("overlay "):-1;return $<0?S:$==0?null:S.slice(0,$-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var S=0;S<x[u].length;S++){var _=y[x[u][S]];_&&g.push(_)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var $=0;$<y._global.length;$++){var D=y._global[$];D.pred(x,this)&&Ee(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=pp(g,l??g.first+g.size-1),Gs(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ge(this.doc,l):g=l?y.from():y.to(),gr(this,g,u||"page")},charCoords:function(l,u){return za(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Xp(this,l,u||"page"),uf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Xp(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){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=Oe(this.doc,l)}else x=l;return Da(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-Qr(x):0)},defaultTextHeight:function(){return Xo(this.display)},defaultCharWidth:function(){return Yo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var S=this.display;l=gr(this,Ge(this.doc,l));var _=l.bottom,$=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")_=l.top;else if(y=="above"||y=="near"){var D=Math.max(S.wrapper.clientHeight,this.doc.height),K=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>D)&&l.top>u.offsetHeight?_=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=D&&(_=l.bottom),$+u.offsetWidth>K&&($=K-u.offsetWidth)}u.style.top=_+"px",u.style.left=u.style.right="",x=="right"?($=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?$=0:x=="middle"&&($=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&Dx(this,{left:$,top:_,right:$+u.offsetWidth,bottom:_+u.offsetHeight})},triggerOnKeyDown:fn(Jg),triggerOnKeyPress:fn(ev),triggerOnKeyUp:Qg,triggerOnMouseDown:fn(tv),execCommand:function(l){if(gl.hasOwnProperty(l))return gl[l].call(null,this)},triggerElectric:fn(function(l){av(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var S=Ge(this.doc,l),_=0;_<u&&(S=qf(this.doc,S,x,g,y),!S.hitSide);++_);return S},moveH:fn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?qf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},fe)}),deleteH:fn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ss(this,function(x){var S=qf(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,g,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var _=Ge(this.doc,l),$=0;$<u;++$){var D=gr(this,_,"div");if(S==null?S=D.left:D.left=S,_=fv(this,D,x,g),_.hitSide)break}return _},moveV:fn(function(l,u){var g=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function($){if(S)return l<0?$.from():$.to();var D=gr(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),x.push(D.left);var K=fv(g,D,l,u);return u=="page"&&$==y.sel.primary()&&wf(g,za(g,K,"div").top-D.top),K},fe),x.length)for(var _=0;_<y.sel.ranges.length;_++)y.sel.ranges[_].goalColumn=x[_]}),findWordAt:function(l){var u=this.doc,g=Oe(u,l.line).text,y=l.ch,x=l.ch;if(g){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var _=g.charAt(y),$=Xe(_,S)?function(D){return Xe(D,S)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Xe(D)};y>0&&$(g.charAt(y-1));)--y;for(;x<g.length&&$(g.charAt(x));)++x}return new dt(ee(l.line,y),ee(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):Z(this.display.cursorDiv,"CodeMirror-overwrite"),Mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(tt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:fn(function(l,u){el(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-$r(this)-this.display.barHeight,width:l.scrollWidth-$r(this)-this.display.barWidth,clientHeight:sf(this),clientWidth:ao(this)}},scrollIntoView:fn(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:ee(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?zx(this,l):ig(this,l.from,l.to,l.margin)}),setSize:fn(function(l,u){var g=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&&jp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(S){if(S.widgets){for(var _=0;_<S.widgets.length;_++)if(S.widgets[_].noHScroll){Ci(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Mt(this,"refresh",this)}),operation:function(l){return On(this,l)},startOperation:function(){return go(this)},endOperation:function(){return vo(this)},refresh:fn(function(){var l=this.display.cachedTextHeight;bn(this),this.curOp.forceUpdate=!0,Js(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),_f(this.display),(l==null||Math.abs(l-Xo(this.display))>.5||this.options.lineWrapping)&&pf(this),Mt(this,"refresh",this)}),swapDoc:fn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),yg(this,l),Js(this),this.display.input.reset(),el(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}},cr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function qf(n,i,a,l,u){var g=i,y=a,x=Oe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function _(){var ke=i.line+S;return ke<n.first||ke>=n.first+n.size?!1:(i=new ee(ke,i.ch,i.sticky),x=Oe(n,ke))}function $(ke){var xe;if(l=="codepoint"){var Me=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Me))xe=null;else{var Ie=a>0?Me>=55296&&Me<56320:Me>=56320&&Me<57343;xe=new ee(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ie?2:1))),-a)}}else u?xe=wS(n.cm,x,i,a):xe=Pf(x,i,a);if(xe==null)if(!ke&&_())i=Of(u,n.cm,x,i.line,S);else return!1;else i=xe;return!0}if(l=="char"||l=="codepoint")$();else if(l=="column")$(!0);else if(l=="word"||l=="group")for(var D=null,K=l=="group",j=n.cm&&n.cm.getHelper(i,"wordChars"),ne=!0;!(a<0&&!$(!ne));ne=!1){var ce=x.text.charAt(i.ch)||`
|
|
35
|
+
`)&&(ne=ce=ee(ne.line,0)));var ge={from:ne,to:ce,text:_?_[K%_.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ns(n.doc,ge),jt(n,"inputRead",n,ge)}i&&!x&&lv(n,i),Jo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function sv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&On(i,function(){return Ff(i,a,0,null,"paste")}),!0}function lv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=bl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Oe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=bl(n,u.head.line,"smart"));y&&jt(n,"electricInput",n,u.head.line)}}}function av(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:ee(u,0),head:ee(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Hf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function cv(){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 v?n.style.width="1000px":n.setAttribute("wrap","off"),A&&(n.style.border="1px solid black"),i}function IS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Ae(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Gt(this,i[l])(this,u,y),Mt(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"](Qa(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:fn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");ve(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,bn(this)}),removeOverlay:fn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,bn(this);return}}}),indentLine:fn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&bl(this,l,u,g)}),indentSelection:fn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(bl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Jo(this));else{var S=x.from(),_=x.to(),$=Math.max(g,S.line);g=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var D=$;D<g;++D)bl(this,D,l);var K=this.doc.sel.ranges;S.ch==0&&u.length==K.length&&K[y].from().ch>0&&Nf(this.doc,y,new dt(S,K[y].to()),H)}}}),getTokenAt:function(l,u){return bp(this,l,u)},getLineTokens:function(l,u){return bp(this,ee(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=vp(this,Oe(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var _=g+y>>1;if((_?u[_*2-1]:0)>=x)y=_;else if(u[_*2+1]<x)g=_+1;else{S=u[_*2+2];break}}var $=S?S.indexOf("overlay "):-1;return $<0?S:$==0?null:S.slice(0,$-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var S=0;S<x[u].length;S++){var _=y[x[u][S]];_&&g.push(_)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var $=0;$<y._global.length;$++){var D=y._global[$];D.pred(x,this)&&Ee(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=hp(g,l??g.first+g.size-1),Gs(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ge(this.doc,l):g=l?y.from():y.to(),pr(this,g,u||"page")},charCoords:function(l,u){return Ia(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Kp(this,l,u||"page"),uf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Kp(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){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=Oe(this.doc,l)}else x=l;return za(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-Qr(x):0)},defaultTextHeight:function(){return Xo(this.display)},defaultCharWidth:function(){return Yo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var S=this.display;l=pr(this,Ge(this.doc,l));var _=l.bottom,$=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")_=l.top;else if(y=="above"||y=="near"){var D=Math.max(S.wrapper.clientHeight,this.doc.height),K=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>D)&&l.top>u.offsetHeight?_=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=D&&(_=l.bottom),$+u.offsetWidth>K&&($=K-u.offsetWidth)}u.style.top=_+"px",u.style.left=u.style.right="",x=="right"?($=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?$=0:x=="middle"&&($=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&Rx(this,{left:$,top:_,right:$+u.offsetWidth,bottom:_+u.offsetHeight})},triggerOnKeyDown:fn(Zg),triggerOnKeyPress:fn(Qg),triggerOnKeyUp:Jg,triggerOnMouseDown:fn(ev),execCommand:function(l){if(gl.hasOwnProperty(l))return gl[l].call(null,this)},triggerElectric:fn(function(l){lv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var S=Ge(this.doc,l),_=0;_<u&&(S=qf(this.doc,S,x,g,y),!S.hitSide);++_);return S},moveH:fn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?qf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},fe)}),deleteH:fn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ss(this,function(x){var S=qf(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,g,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var _=Ge(this.doc,l),$=0;$<u;++$){var D=pr(this,_,"div");if(S==null?S=D.left:D.left=S,_=uv(this,D,x,g),_.hitSide)break}return _},moveV:fn(function(l,u){var g=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function($){if(S)return l<0?$.from():$.to();var D=pr(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),x.push(D.left);var K=uv(g,D,l,u);return u=="page"&&$==y.sel.primary()&&wf(g,Ia(g,K,"div").top-D.top),K},fe),x.length)for(var _=0;_<y.sel.ranges.length;_++)y.sel.ranges[_].goalColumn=x[_]}),findWordAt:function(l){var u=this.doc,g=Oe(u,l.line).text,y=l.ch,x=l.ch;if(g){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var _=g.charAt(y),$=Xe(_,S)?function(D){return Xe(D,S)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Xe(D)};y>0&&$(g.charAt(y-1));)--y;for(;x<g.length&&$(g.charAt(x));)++x}return new dt(ee(l.line,y),ee(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):Z(this.display.cursorDiv,"CodeMirror-overwrite"),Mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(tt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:fn(function(l,u){el(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-$r(this)-this.display.barHeight,width:l.scrollWidth-$r(this)-this.display.barWidth,clientHeight:sf(this),clientWidth:ao(this)}},scrollIntoView:fn(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:ee(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Dx(this,l):rg(this,l.from,l.to,l.margin)}),setSize:fn(function(l,u){var g=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&&Vp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(S){if(S.widgets){for(var _=0;_<S.widgets.length;_++)if(S.widgets[_].noHScroll){Ci(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Mt(this,"refresh",this)}),operation:function(l){return On(this,l)},startOperation:function(){return go(this)},endOperation:function(){return vo(this)},refresh:fn(function(){var l=this.display.cachedTextHeight;bn(this),this.curOp.forceUpdate=!0,Js(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),_f(this.display),(l==null||Math.abs(l-Xo(this.display))>.5||this.options.lineWrapping)&&pf(this),Mt(this,"refresh",this)}),swapDoc:fn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),mg(this,l),Js(this),this.display.input.reset(),el(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}},ar(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function qf(n,i,a,l,u){var g=i,y=a,x=Oe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function _(){var ke=i.line+S;return ke<n.first||ke>=n.first+n.size?!1:(i=new ee(ke,i.ch,i.sticky),x=Oe(n,ke))}function $(ke){var xe;if(l=="codepoint"){var Me=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Me))xe=null;else{var Ie=a>0?Me>=55296&&Me<56320:Me>=56320&&Me<57343;xe=new ee(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ie?2:1))),-a)}}else u?xe=bS(n.cm,x,i,a):xe=Pf(x,i,a);if(xe==null)if(!ke&&_())i=Of(u,n.cm,x,i.line,S);else return!1;else i=xe;return!0}if(l=="char"||l=="codepoint")$();else if(l=="column")$(!0);else if(l=="word"||l=="group")for(var D=null,K=l=="group",j=n.cm&&n.cm.getHelper(i,"wordChars"),ne=!0;!(a<0&&!$(!ne));ne=!1){var ce=x.text.charAt(i.ch)||`
|
|
36
36
|
`,ge=Xe(ce,j)?"w":K&&ce==`
|
|
37
|
-
`?"n":!K||/\s/.test(ce)?null:"p";if(K&&!ne&&!ge&&(ge="s"),D&&D!=ge){a<0&&(a=1,$(),i.sticky="after");break}if(ge&&(D=ge),a>0&&!$(!ne))break}var we=
|
|
38
|
-
`);if(x.clipboardData.setData("Text",_),x.clipboardData.getData("Text")==_){x.preventDefault();return}}var $=
|
|
39
|
-
`);var K=ye(Je(u));je(D),setTimeout(function(){l.display.lineSpace.removeChild($),K.focus(),K==u&&a.showPrimarySelection()},50)}}ze(u,"copy",y),ze(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=
|
|
40
|
-
`),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}ze(u,"cut",g),ze(u,"copy",g),ze(n.scroller,"paste",function(y){if(!(ei(n,y)||Nt(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)}}),ze(n.lineSpace,"selectstart",function(y){ei(n,y)||rn(y)}),ze(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"})}}),ze(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},zt.prototype.createField=function(n){this.wrapper=
|
|
41
|
-
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},zt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=uo(a,n),y=l.scroller.scrollTop;if(!g||
|
|
37
|
+
`?"n":!K||/\s/.test(ce)?null:"p";if(K&&!ne&&!ge&&(ge="s"),D&&D!=ge){a<0&&(a=1,$(),i.sticky="after");break}if(ge&&(D=ge),a>0&&!$(!ne))break}var we=Ya(n,i,g,y,!0);return ft(g,we)&&(we.hitSide=!0),we}function uv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Ae(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*Xo(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 _;_=uf(n,g,y),!!_.outside;){if(a<0?y<=0:y>=u.height){_.hitSide=!0;break}y+=a*5}return _}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $e,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,Hf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(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}ze(u,"paste",function(x){!g(x)||Nt(l,x)||sv(x,l)||p<=11&&setTimeout(Gt(l,function(){return i.updateFromDOM()}),20)}),ze(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),ze(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),ze(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ze(u,"touchstart",function(){return a.forceCompositionEnd()}),ze(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Nt(l,x))){if(l.somethingSelected())nc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=av(l);nc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,H),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var _=vr.text.join(`
|
|
38
|
+
`);if(x.clipboardData.setData("Text",_),x.clipboardData.getData("Text")==_){x.preventDefault();return}}var $=cv(),D=$.firstChild;Hf(D),l.display.lineSpace.insertBefore($,l.display.lineSpace.firstChild),D.value=vr.text.join(`
|
|
39
|
+
`);var K=ye(Je(u));je(D),setTimeout(function(){l.display.lineSpace.removeChild($),K.focus(),K==u&&a.showPrimarySelection()},50)}}ze(u,"copy",y),ze(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=eg(this.cm,!1);return n.focus=ye(Je(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=rc(i,n.anchorNode,n.anchorOffset),y=rc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Se(Vo(g,y),l)==0&&Se(yn(g,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&fv(i,l)||{node:x[0].measure.map[2],offset:0},_=u.line<i.display.viewTo&&fv(i,u);if(!_){var $=x[x.length-1].measure,D=$.maps?$.maps[$.maps.length-1]:$.map;_={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!S||!_){n.removeAllRanges();return}var K=n.rangeCount&&n.getRangeAt(0),j;try{j=V(S.node,S.offset,_.offset,_.node)}catch{}j&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),j.collapsed||(n.removeAllRanges(),n.addRange(j))):(n.removeAllRanges(),n.addRange(j)),K&&n.anchorNode==null?n.addRange(K):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){F(this.cm.display.cursorDiv,n.cursors),F(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ie(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye(Je(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):On(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(P&&b&&this.cm.display.gutterSpecs.length&&FS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=rc(i,n.anchorNode,n.anchorOffset),l=rc(i,n.focusNode,n.focusOffset);a&&l&&On(i,function(){on(i.doc,Li(a,l),H),(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=ee(l.line-1,Oe(n.doc,l.line-1).length)),u.ch==Oe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ee(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=fo(n,l.line))==0?(y=T(i.view[0].line),x=i.view[0].node):(y=T(i.view[g].line),x=i.view[g-1].node.nextSibling);var S=fo(n,u.line),_,$;if(S==i.view.length-1?(_=i.viewTo-1,$=i.lineDiv.lastChild):(_=T(i.view[S+1].line)-1,$=i.view[S+1].node.previousSibling),!x)return!1;for(var D=n.doc.splitLines(HS(n,x,$,y,_)),K=Zr(n.doc,ee(y,0),ee(_,Oe(n.doc,_).text.length));D.length>1&&K.length>1;)if(ue(D)==ue(K))D.pop(),K.pop(),_--;else if(D[0]==K[0])D.shift(),K.shift(),y++;else break;for(var j=0,ne=0,ce=D[0],ge=K[0],we=Math.min(ce.length,ge.length);j<we&&ce.charCodeAt(j)==ge.charCodeAt(j);)++j;for(var ke=ue(D),xe=ue(K),Me=Math.min(ke.length-(D.length==1?j:0),xe.length-(K.length==1?j:0));ne<Me&&ke.charCodeAt(ke.length-ne-1)==xe.charCodeAt(xe.length-ne-1);)++ne;if(D.length==1&&K.length==1&&y==l.line)for(;j&&j>l.ch&&ke.charCodeAt(ke.length-ne-1)==xe.charCodeAt(xe.length-ne-1);)j--,ne++;D[D.length-1]=ke.slice(0,ke.length-ne).replace(/^\u200b+/,""),D[0]=D[0].slice(j).replace(/\u200b+$/,"");var Ie=ee(y,j),Re=ee(_,K.length?ue(K).length-ne:0);if(D.length>1||D[0]||Se(Ie,Re))return rs(n.doc,D,Ie,Re,"+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())&&On(this.cm,function(){return bn(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()||Gt(this.cm,Ff)(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 fv(n,i){var a=lf(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=Hp(a,l,i.line),g=Ve(l,n.doc.direction),y="left";if(g){var x=lr(g,i.ch);y=x%2?"right":"left"}var S=Wp(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function FS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function as(n,i){return i&&(n.bad=!0),n}function HS(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),S=!1;function _(j){return function(ne){return ne.id==j}}function $(){y&&(g+=x,S&&(g+=x),y=S=!1)}function D(j){j&&($(),g+=j)}function K(j){if(j.nodeType==1){var ne=j.getAttribute("cm-text");if(ne){D(ne);return}var ce=j.getAttribute("cm-marker"),ge;if(ce){var we=n.findMarks(ee(l,0),ee(u+1,0),_(+ce));we.length&&(ge=we[0].find(0))&&D(Zr(n.doc,ge.from,ge.to).join(x));return}if(j.getAttribute("contenteditable")=="false")return;var ke=/^(pre|div|p|li|table|br)$/i.test(j.nodeName);if(!/^br$/i.test(j.nodeName)&&j.textContent.length==0)return;ke&&$();for(var xe=0;xe<j.childNodes.length;xe++)K(j.childNodes[xe]);/^(pre|p)$/i.test(j.nodeName)&&(S=!0),ke&&(y=!0)}else j.nodeType==3&&D(j.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;K(i),i!=a;)i=i.nextSibling,S=!1;return g}function rc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return as(n.clipPos(ee(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return qS(g,i,a)}}function qS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ie(l,i))return as(ee(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ue(n.rest):n.line;return as(ee(T(g),g.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var S=n.measure,_=S.maps;function $(ge,we,ke){for(var xe=-1;xe<(_?_.length:0);xe++)for(var Me=xe<0?S.map:_[xe],Ie=0;Ie<Me.length;Ie+=3){var Re=Me[Ie+2];if(Re==ge||Re==we){var Qe=T(xe<0?n.line:n.rest[xe]),St=Me[Ie]+ke;return(ke<0||Re!=ge)&&(St=Me[Ie+(ke?1:0)]),ee(Qe,St)}}}var D=$(y,x,a);if(D)return as(D,u);for(var K=x.nextSibling,j=y?y.nodeValue.length-a:0;K;K=K.nextSibling){if(D=$(K,K.firstChild,0),D)return as(ee(D.line,D.ch-j),u);j+=K.textContent.length}for(var ne=x.previousSibling,ce=a;ne;ne=ne.previousSibling){if(D=$(ne,ne.firstChild,-1),D)return as(ee(D.line,D.ch+ce),u);ce+=ne.textContent.length}}var zt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null,this.resetting=!1};zt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),A&&(u.style.width="0px"),ze(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),ze(u,"paste",function(y){Nt(l,y)||sv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Nt(l,y)){if(l.somethingSelected())nc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=av(l);nc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,H):(a.prevInput="",u.value=x.text.join(`
|
|
40
|
+
`),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}ze(u,"cut",g),ze(u,"copy",g),ze(n.scroller,"paste",function(y){if(!(ei(n,y)||Nt(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)}}),ze(n.lineSpace,"selectstart",function(y){ei(n,y)||rn(y)}),ze(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"})}}),ze(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},zt.prototype.createField=function(n){this.wrapper=cv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Hf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},zt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=eg(n);if(n.options.moveInputWithCursor){var u=pr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},zt.prototype.showSelection=function(n){var i=this.cm,a=i.display;F(a.cursorDiv,n.cursors),F(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},zt.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&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},zt.prototype.getField=function(){return this.textarea},zt.prototype.supportsTouch=function(){return!1},zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||ye(Je(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},zt.prototype.blur=function(){this.textarea.blur()},zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zt.prototype.receivedFocus=function(){this.slowPoll()},zt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},zt.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)},zt.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||z&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l=""),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return On(i,function(){Ff(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
41
|
+
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},zt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=uo(a,n),y=l.scroller.scrollTop;if(!g||M)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Gt(a,on)(a.doc,Li(g),H);var S=u.style.cssText,_=i.wrapper.style.cssText,$=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
42
42
|
top: `+(n.clientY-$.top-5)+"px; left: "+(n.clientX-$.left-5)+`px;
|
|
43
43
|
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
44
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=j,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function K(){if(u.selectionStart!=null){var ce=a.somethingSelected(),ge=""+(ce?u.value:"");u.value="⇚",u.value=ge,i.prevInput=ce?"":"",u.selectionStart=1,u.selectionEnd=ge.length,l.selForContextMenu=a.doc.sel}}function j(){if(i.contextMenuPending==j&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&K();var ce=0,ge=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Gt(a,Ng)(a):ce++<10?l.detectingSelectAll=setTimeout(ge,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ge,200)}}if(h&&p>=9&&K(),G){xi(n);var ne=function(){nn(window,"mouseup",ne),setTimeout(j,20)};ze(window,"mouseup",ne)}else setTimeout(j,50)},zt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},zt.prototype.setUneditable=function(){},zt.prototype.needsContentAttribute=!1;function WS(n,i){if(i=i?ae(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=ye(Je(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(ze(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(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&&(nn(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 US(n){n.off=nn,n.on=ze,n.wheelEventPixels=Zx,n.Doc=wn,n.splitLines=tr,n.countColumn=de,n.findColumn=le,n.isWordChar=Be,n.Pass=O,n.signal=Mt,n.Line=jo,n.changeEnd=Ai,n.scrollbarModel=lg,n.Pos=ee,n.cmpPos=Se,n.modes=Ho,n.mimeModes=dr,n.resolveMode=qo,n.getMode=Bo,n.modeExtensions=ki,n.extendMode=Wo,n.copyState=Mr,n.startState=Uo,n.innerMode=Vs,n.commands=gl,n.keyMap=ni,n.keyName=Gg,n.isModifierKey=Vg,n.lookupKey=os,n.normalizeKeyMap=bS,n.StringStream=$t,n.SharedTextMarker=dl,n.TextMarker=Ni,n.LineWidget=fl,n.e_preventDefault=rn,n.e_stopPropagation=Io,n.e_stop=xi,n.addClass=Ne,n.contains=ie,n.rmClass=Z,n.keyNames=$i}RS(Ct),FS(Ct);var VS="iter insert remove copy getEditor constructor".split(" ");for(var rc in wn.prototype)wn.prototype.hasOwnProperty(rc)&&Ee(VS,rc)<0&&(Ct.prototype[rc]=function(n){return function(){return n.apply(this.doc,arguments)}}(wn.prototype[rc]));return cr(wn),Ct.inputStyles={textarea:zt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),hr.apply(this,arguments)},Ct.defineMIME=lo,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){wn.prototype[n]=i},Ct.fromTextArea=WS,US(Ct),Ct.version="5.65.18",Ct})})(Ww);var Bs=Ww.exports;const mue=pw(Bs);var yue={exports:{}};(function(e,t){(function(r){r(Bs)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function T(Vt){return{type:Vt,style:"keyword"}}var R=T("keyword a"),se=T("keyword b"),pe=T("keyword c"),ee=T("keyword d"),Se=T("operator"),ft={type:"atom",style:"atom"};return{if:T("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:ee,break:ee,continue:ee,new:T("new"),delete:pe,void:pe,throw:pe,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Se,typeof:Se,instanceof:Se,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:T("this"),class:T("class"),super:T("atom"),yield:pe,export:T("export"),import:T("import"),extends:pe,await:pe}}(),w=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(T){for(var R=!1,se,pe=!1;(se=T.next())!=null;){if(!R){if(se=="/"&&!pe)return;se=="["?pe=!0:pe&&se=="]"&&(pe=!1)}R=!R&&se=="\\"}}var E,C;function N(T,R,se){return E=T,C=se,R}function P(T,R){var se=T.next();if(se=='"'||se=="'")return R.tokenize=L(se),R.tokenize(T,R);if(se=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return N("number","number");if(se=="."&&T.match(".."))return N("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return N(se);if(se=="="&&T.eat(">"))return N("=>","operator");if(se=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return N("number","number");if(/\d/.test(se))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),N("number","number");if(se=="/")return T.eat("*")?(R.tokenize=z,z(T,R)):T.eat("/")?(T.skipToEnd(),N("comment","comment")):Un(T,R,1)?(M(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),N("regexp","string-2")):(T.eat("="),N("operator","operator",T.current()));if(se=="`")return R.tokenize=W,W(T,R);if(se=="#"&&T.peek()=="!")return T.skipToEnd(),N("meta","meta");if(se=="#"&&T.eatWhile(m))return N("variable","property");if(se=="<"&&T.match("!--")||se=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),N("comment","comment");if(w.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(T.eat("=")?(se=="!"||se=="=")&&T.eat("="):/[<>*+\-|&?]/.test(se)&&(T.eat(se),se==">"&&T.eat(se))),se=="?"&&T.eat(".")?N("."):N("operator","operator",T.current());if(m.test(se)){T.eatWhile(m);var pe=T.current();if(R.lastType!="."){if(b.propertyIsEnumerable(pe)){var ee=b[pe];return N(ee.type,ee.style,pe)}if(pe=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return N("async","keyword",pe)}return N("variable","variable",pe)}}function L(T){return function(R,se){var pe=!1,ee;if(d&&R.peek()=="@"&&R.match(A))return se.tokenize=P,N("jsonld-keyword","meta");for(;(ee=R.next())!=null&&!(ee==T&&!pe);)pe=!pe&&ee=="\\";return pe||(se.tokenize=P),N("string","string")}}function z(T,R){for(var se=!1,pe;pe=T.next();){if(pe=="/"&&se){R.tokenize=P;break}se=pe=="*"}return N("comment","comment")}function W(T,R){for(var se=!1,pe;(pe=T.next())!=null;){if(!se&&(pe=="`"||pe=="$"&&T.eat("{"))){R.tokenize=P;break}se=!se&&pe=="\\"}return N("quasi","string-2",T.current())}var U="([{}])";function re(T,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=T.string.indexOf("=>",T.start);if(!(se<0)){if(v){var pe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,se));pe&&(se=pe.index)}for(var ee=0,Se=!1,ft=se-1;ft>=0;--ft){var Vt=T.string.charAt(ft),yn=U.indexOf(Vt);if(yn>=0&&yn<3){if(!ee){++ft;break}if(--ee==0){Vt=="("&&(Se=!0);break}}else if(yn>=3&&yn<6)++ee;else if(m.test(Vt))Se=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Vo=T.string.charAt(ft-1);if(Vo==Vt&&T.string.charAt(ft-2)!="\\"){ft--;break}}else if(Se&&!ee){++ft;break}}Se&&!ee&&(R.fatArrowAt=ft)}}var Q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(T,R,se,pe,ee,Se){this.indented=T,this.column=R,this.type=se,this.prev=ee,this.info=Se,pe!=null&&(this.align=pe)}function te(T,R){if(!p)return!1;for(var se=T.localVars;se;se=se.next)if(se.name==R)return!0;for(var pe=T.context;pe;pe=pe.prev)for(var se=pe.vars;se;se=se.next)if(se.name==R)return!0}function Z(T,R,se,pe,ee){var Se=T.cc;for(q.state=T,q.stream=ee,q.marked=null,q.cc=Se,q.style=R,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ft=Se.length?Se.pop():h?Ee:de;if(ft(se,pe)){for(;Se.length&&Se[Se.length-1].lex;)Se.pop()();return q.marked?q.marked:se=="variable"&&te(T,pe)?"variable-2":R}}}var q={state:null,column:null,marked:null,cc:null};function F(){for(var T=arguments.length-1;T>=0;T--)q.cc.push(arguments[T])}function k(){return F.apply(null,arguments),!0}function B(T,R){for(var se=R;se;se=se.next)if(se.name==T)return!0;return!1}function V(T){var R=q.state;if(q.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=ie(T,R.context);if(se!=null){R.context=se;return}}else if(!B(T,R.localVars)){R.localVars=new Ue(T,R.localVars);return}}s.globalVars&&!B(T,R.globalVars)&&(R.globalVars=new Ue(T,R.globalVars))}}function ie(T,R){if(R)if(R.block){var se=ie(T,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(T,R.vars)?R:new Ne(R.prev,new Ue(T,R.vars),!1);else return null}function ye(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Ne(T,R,se){this.prev=T,this.vars=R,this.block=se}function Ue(T,R){this.name=T,this.next=R}var je=new Ue("this",new Ue("arguments",null));function it(){q.state.context=new Ne(q.state.context,q.state.localVars,!1),q.state.localVars=je}function tt(){q.state.context=new Ne(q.state.context,q.state.localVars,!0),q.state.localVars=null}it.lex=tt.lex=!0;function Je(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Je.lex=!0;function Ae(T,R){var se=function(){var pe=q.state,ee=pe.indented;if(pe.lexical.type=="stat")ee=pe.lexical.indented;else for(var Se=pe.lexical;Se&&Se.type==")"&&Se.align;Se=Se.prev)ee=Se.indented;pe.lexical=new G(ee,q.stream.column(),T,null,pe.lexical,R)};return se.lex=!0,se}function X(){var T=q.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}X.lex=!0;function ae(T){function R(se){return se==T?k():T==";"||se=="}"||se==")"||se=="]"?F():k(R)}return R}function de(T,R){return T=="var"?k(Ae("vardef",R),Io,ae(";"),X):T=="keyword a"?k(Ae("form"),O,de,X):T=="keyword b"?k(Ae("form"),de,X):T=="keyword d"?q.stream.match(/^\s*$/,!1)?k():k(Ae("stat"),J,ae(";"),X):T=="debugger"?k(ae(";")):T=="{"?k(Ae("}"),tt,Rt,X,Je):T==";"?k():T=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==X&&q.state.cc.pop()(),k(Ae("form"),O,de,X,Fo)):T=="function"?k(tr):T=="for"?k(Ae("form"),tt,Ca,de,Je,X):T=="class"||v&&R=="interface"?(q.marked="keyword",k(Ae("form",T=="class"?T:R),Ho,X)):T=="variable"?v&&R=="declare"?(q.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",R=="enum"?k(Oe):R=="type"?k(Ea,ae("operator"),Ve,ae(";")):k(Ae("form"),mn,ae("{"),Ae("}"),Rt,X,X)):v&&R=="namespace"?(q.marked="keyword",k(Ae("form"),Ee,de,X)):v&&R=="abstract"?(q.marked="keyword",k(de)):k(Ae("stat"),De):T=="switch"?k(Ae("form"),O,ae("{"),Ae("}","switch"),tt,Rt,X,X,Je):T=="case"?k(Ee,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Ae("form"),it,$e,de,X,Je):T=="export"?k(Ae("stat"),qo,X):T=="import"?k(Ae("stat"),ki,X):T=="async"?k(de):R=="@"?k(Ee,de):F(Ae("stat"),Ee,ae(";"),X)}function $e(T){if(T=="(")return k(fr,ae(")"))}function Ee(T,R){return H(T,R,!1)}function Ze(T,R){return H(T,R,!0)}function O(T){return T!="("?F():k(Ae(")"),J,ae(")"),X)}function H(T,R,se){if(q.state.fatArrowAt==q.stream.start){var pe=se?be:ue;if(T=="(")return k(it,Ae(")"),lt(fr,")"),X,ae("=>"),pe,Je);if(T=="variable")return F(it,mn,ae("=>"),pe,Je)}var ee=se?le:fe;return Q.hasOwnProperty(T)?k(ee):T=="function"?k(tr,ee):T=="class"||v&&R=="interface"?(q.marked="keyword",k(Ae("form"),Xu,X)):T=="keyword c"||T=="async"?k(se?Ze:Ee):T=="("?k(Ae(")"),J,ae(")"),X,ee):T=="operator"||T=="spread"?k(se?Ze:Ee):T=="["?k(Ae("]"),$t,X,ee):T=="{"?Tt(Xe,"}",null,ee):T=="quasi"?F(he,ee):T=="new"?k(ve(se)):k()}function J(T){return T.match(/[;\}\)\],]/)?F():F(Ee)}function fe(T,R){return T==","?k(J):le(T,R,!1)}function le(T,R,se){var pe=se==!1?fe:le,ee=se==!1?Ee:Ze;if(T=="=>")return k(it,se?be:ue,Je);if(T=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(pe):v&&R=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Ae(">"),lt(Ve,">"),X,pe):R=="?"?k(Ee,ae(":"),ee):k(ee);if(T=="quasi")return F(he,pe);if(T!=";"){if(T=="(")return Tt(Ze,")","call",pe);if(T==".")return k(Be,pe);if(T=="[")return k(Ae("]"),J,ae("]"),X,pe);if(v&&R=="as")return q.marked="keyword",k(Ve,pe);if(T=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),k(ee)}}function he(T,R){return T!="quasi"?F():R.slice(R.length-2)!="${"?k(he):k(J,_e)}function _e(T){if(T=="}")return q.marked="string-2",q.state.tokenize=W,k(he)}function ue(T){return re(q.stream,q.state),F(T=="{"?de:Ee)}function be(T){return re(q.stream,q.state),F(T=="{"?de:Ze)}function ve(T){return function(R){return R=="."?k(T?Le:qe):R=="variable"&&v?k(Pn,T?le:fe):F(T?Ze:Ee)}}function qe(T,R){if(R=="target")return q.marked="keyword",k(fe)}function Le(T,R){if(R=="target")return q.marked="keyword",k(le)}function De(T){return T==":"?k(X,de):F(fe,ae(";"),X)}function Be(T){if(T=="variable")return q.marked="property",k()}function Xe(T,R){if(T=="async")return q.marked="property",k(Xe);if(T=="variable"||q.style=="keyword"){if(q.marked="property",R=="get"||R=="set")return k(gt);var se;return v&&q.state.fatArrowAt==q.stream.start&&(se=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+se[0].length),k(nt)}else{if(T=="number"||T=="string")return q.marked=d?"property":q.style+" property",k(nt);if(T=="jsonld-keyword")return k(nt);if(v&&ye(R))return q.marked="keyword",k(Xe);if(T=="[")return k(Ee,Dt,ae("]"),nt);if(T=="spread")return k(Ze,nt);if(R=="*")return q.marked="keyword",k(Xe);if(T==":")return F(nt)}}function gt(T){return T!="variable"?F(nt):(q.marked="property",k(tr))}function nt(T){if(T==":")return k(Ze);if(T=="(")return F(tr)}function lt(T,R,se){function pe(ee,Se){if(se?se.indexOf(ee)>-1:ee==","){var ft=q.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),k(function(Vt,yn){return Vt==R||yn==R?F():F(T)},pe)}return ee==R||Se==R?k():se&&se.indexOf(";")>-1?F(T):k(ae(R))}return function(ee,Se){return ee==R||Se==R?k():F(T,pe)}}function Tt(T,R,se){for(var pe=3;pe<arguments.length;pe++)q.cc.push(arguments[pe]);return k(Ae(R,se),lt(T,R),X)}function Rt(T){return T=="}"?k():F(de,Rt)}function Dt(T,R){if(v){if(T==":")return k(Ve);if(R=="?")return k(Dt)}}function Wn(T,R){if(v&&(T==":"||R=="in"))return k(Ve)}function ar(T){if(v&&T==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,tn,Ve):k(Ve)}function tn(T,R){if(R=="is")return q.marked="keyword",k()}function Ve(T,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return q.marked="keyword",k(R=="typeof"?Ze:Ve);if(T=="variable"||R=="void")return q.marked="type",k(er);if(R=="|"||R=="&")return k(Ve);if(T=="string"||T=="number"||T=="atom")return k(er);if(T=="[")return k(Ae("]"),lt(Ve,"]",","),X,er);if(T=="{")return k(Ae("}"),ze,X,er);if(T=="(")return k(lt(Nt,")"),so,er);if(T=="<")return k(lt(Ve,">"),Ve);if(T=="quasi")return F(nn,er)}function so(T){if(T=="=>")return k(Ve)}function ze(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(ze):F(Yr,ze)}function Yr(T,R){if(T=="variable"||q.style=="keyword")return q.marked="property",k(Yr);if(R=="?"||T=="number"||T=="string")return k(Yr);if(T==":")return k(Ve);if(T=="[")return k(ae("variable"),Wn,ae("]"),Yr);if(T=="(")return F(_i,Yr);if(!T.match(/[;\}\)\],]/))return k()}function nn(T,R){return T!="quasi"?F():R.slice(R.length-2)!="${"?k(nn):k(Ve,Mt)}function Mt(T){if(T=="}")return q.marked="string-2",q.state.tokenize=W,k(nn)}function Nt(T,R){return T=="variable"&&q.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Nt):T==":"?k(Ve):T=="spread"?k(Nt):F(Ve)}function er(T,R){if(R=="<")return k(Ae(">"),lt(Ve,">"),X,er);if(R=="|"||T=="."||R=="&")return k(Ve);if(T=="[")return k(Ve,ae("]"),er);if(R=="extends"||R=="implements")return q.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function Pn(T,R){if(R=="<")return k(Ae(">"),lt(Ve,">"),X,er)}function cr(){return F(Ve,rn)}function rn(T,R){if(R=="=")return k(Ve)}function Io(T,R){return R=="enum"?(q.marked="keyword",k(Oe)):F(mn,Dt,ur,Ku)}function mn(T,R){if(v&&ye(R))return q.marked="keyword",k(mn);if(T=="variable")return V(R),k();if(T=="spread")return k(mn);if(T=="[")return Tt(Ws,"]");if(T=="{")return Tt(xi,"}")}function xi(T,R){return T=="variable"&&!q.stream.match(/^\s*:/,!1)?(V(R),k(ur)):(T=="variable"&&(q.marked="property"),T=="spread"?k(mn):T=="}"?F():T=="["?k(Ee,ae("]"),ae(":"),xi):k(ae(":"),mn,ur))}function Ws(){return F(mn,ur)}function ur(T,R){if(R=="=")return k(Ze)}function Ku(T){if(T==",")return k(Io)}function Fo(T,R){if(T=="keyword b"&&R=="else")return k(Ae("form","else"),de,X)}function Ca(T,R){if(R=="await")return k(Ca);if(T=="(")return k(Ae(")"),Us,X)}function Us(T){return T=="var"?k(Io,Si):T=="variable"?k(Si):F(Si)}function Si(T,R){return T==")"?k():T==";"?k(Si):R=="in"||R=="of"?(q.marked="keyword",k(Ee,Si)):F(Ee,Si)}function tr(T,R){if(R=="*")return q.marked="keyword",k(tr);if(T=="variable")return V(R),k(tr);if(T=="(")return k(it,Ae(")"),lt(fr,")"),X,ar,de,Je);if(v&&R=="<")return k(Ae(">"),lt(cr,">"),X,tr)}function _i(T,R){if(R=="*")return q.marked="keyword",k(_i);if(T=="variable")return V(R),k(_i);if(T=="(")return k(it,Ae(")"),lt(fr,")"),X,ar,Je);if(v&&R=="<")return k(Ae(">"),lt(cr,">"),X,_i)}function Ea(T,R){if(T=="keyword"||T=="variable")return q.marked="type",k(Ea);if(R=="<")return k(Ae(">"),lt(cr,">"),X)}function fr(T,R){return R=="@"&&k(Ee,fr),T=="spread"?k(fr):v&&ye(R)?(q.marked="keyword",k(fr)):v&&T=="this"?k(Dt,ur):F(mn,Dt,ur)}function Xu(T,R){return T=="variable"?Ho(T,R):dr(T,R)}function Ho(T,R){if(T=="variable")return V(R),k(dr)}function dr(T,R){if(R=="<")return k(Ae(">"),lt(cr,">"),X,dr);if(R=="extends"||R=="implements"||v&&T==",")return R=="implements"&&(q.marked="keyword"),k(v?Ve:Ee,dr);if(T=="{")return k(Ae("}"),hr,X)}function hr(T,R){if(T=="async"||T=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&q.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return q.marked="keyword",k(hr);if(T=="variable"||q.style=="keyword")return q.marked="property",k(lo,hr);if(T=="number"||T=="string")return k(lo,hr);if(T=="[")return k(Ee,Dt,ae("]"),lo,hr);if(R=="*")return q.marked="keyword",k(hr);if(v&&T=="(")return F(_i,hr);if(T==";"||T==",")return k(hr);if(T=="}")return k();if(R=="@")return k(Ee,hr)}function lo(T,R){if(R=="!"||R=="?")return k(lo);if(T==":")return k(Ve,ur);if(R=="=")return k(Ze);var se=q.state.lexical.prev,pe=se&&se.info=="interface";return F(pe?_i:tr)}function qo(T,R){return R=="*"?(q.marked="keyword",k(Uo,ae(";"))):R=="default"?(q.marked="keyword",k(Ee,ae(";"))):T=="{"?k(lt(Bo,"}"),Uo,ae(";")):F(de)}function Bo(T,R){if(R=="as")return q.marked="keyword",k(ae("variable"));if(T=="variable")return F(Ze,Bo)}function ki(T){return T=="string"?k():T=="("?F(Ee):T=="."?F(fe):F(Wo,Mr,Uo)}function Wo(T,R){return T=="{"?Tt(Wo,"}"):(T=="variable"&&V(R),R=="*"&&(q.marked="keyword"),k(Vs))}function Mr(T){if(T==",")return k(Wo,Mr)}function Vs(T,R){if(R=="as")return q.marked="keyword",k(Wo)}function Uo(T,R){if(R=="from")return q.marked="keyword",k(Ee)}function $t(T){return T=="]"?k():F(lt(Ze,"]"))}function Oe(){return F(Ae("form"),mn,ae("{"),Ae("}"),lt(Zr,"}"),X,X)}function Zr(){return F(mn,ur)}function js(T,R){return T.lastType=="operator"||T.lastType==","||w.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Un(T,R,se){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(se||0)))}return{startState:function(T){var R={tokenize:P,lastType:"sof",cc:[],lexical:new G((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(T,R){if(T.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=T.indentation(),re(T,R)),R.tokenize!=z&&T.eatSpace())return null;var se=R.tokenize(T,R);return E=="comment"?se:(R.lastType=E=="operator"&&(C=="++"||C=="--")?"incdec":E,Z(R,se,E,C,T))},indent:function(T,R){if(T.tokenize==z||T.tokenize==W)return r.Pass;if(T.tokenize!=P)return 0;var se=R&&R.charAt(0),pe=T.lexical,ee;if(!/^\s*else\b/.test(R))for(var Se=T.cc.length-1;Se>=0;--Se){var ft=T.cc[Se];if(ft==X)pe=pe.prev;else if(ft!=Fo&&ft!=Je)break}for(;(pe.type=="stat"||pe.type=="form")&&(se=="}"||(ee=T.cc[T.cc.length-1])&&(ee==fe||ee==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)pe=pe.prev;f&&pe.type==")"&&pe.prev.type=="stat"&&(pe=pe.prev);var Vt=pe.type,yn=se==Vt;return Vt=="vardef"?pe.indented+(T.lastType=="operator"||T.lastType==","?pe.info.length+1:0):Vt=="form"&&se=="{"?pe.indented:Vt=="form"?pe.indented+c:Vt=="stat"?pe.indented+(js(T,R)?f||c:0):pe.info=="switch"&&!yn&&s.doubleIndentSwitch!=!1?pe.indented+(/^(?:case|default)\b/.test(R)?c:2*c):pe.align?pe.column+(yn?0:1):pe.indented+(yn?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:Un,skipExpression:function(T){Z(T,"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})})})();var bue=yue.exports,wue={exports:{}};(function(e,t){(function(r){r(Bs)})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(k,B){function V(Ne){return B.tokenize=Ne,Ne(k,B)}var ie=k.next();if(ie=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?V(E("atom","]]>")):null:k.match("--")?V(E("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),V(C(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=E("meta","?>"),"meta"):(m=k.eat("/")?"closeTag":"openTag",B.tokenize=A,"tag bracket");if(ie=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function A(k,B){var V=k.next();if(V==">"||V=="/"&&k.eat(">"))return B.tokenize=w,m=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return m="equals",null;if(V=="<"){B.tokenize=w,B.state=W,B.tagName=B.tagStart=null;var ie=B.tokenize(k,B);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(V)?(B.tokenize=M(V),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function M(k){var B=function(V,ie){for(;!V.eol();)if(V.next()==k){ie.tokenize=A;break}return"string"};return B.isInAttribute=!0,B}function E(k,B){return function(V,ie){for(;!V.eol();){if(V.match(B)){ie.tokenize=w;break}V.next()}return k}}function C(k){return function(B,V){for(var ie;(ie=B.next())!=null;){if(ie=="<")return V.tokenize=C(k+1),V.tokenize(B,V);if(ie==">")if(k==1){V.tokenize=w;break}else return V.tokenize=C(k-1),V.tokenize(B,V)}return"meta"}}function N(k){return k&&k.toLowerCase()}function P(k,B,V){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=V,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function L(k){k.context&&(k.context=k.context.prev)}function z(k,B){for(var V;;){if(!k.context||(V=k.context.tagName,!h.contextGrabbers.hasOwnProperty(N(V))||!h.contextGrabbers[N(V)].hasOwnProperty(N(B))))return;L(k)}}function W(k,B,V){return k=="openTag"?(V.tagStart=B.column(),U):k=="closeTag"?re:W}function U(k,B,V){return k=="word"?(V.tagName=B.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,V)):(b="error",U)}function re(k,B,V){if(k=="word"){var ie=B.current();return V.context&&V.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(N(V.context.tagName))&&L(V),V.context&&V.context.tagName==ie||h.matchClosing===!1?(b="tag",Q):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Q(k,B,V)):(b="error",G)}function Q(k,B,V){return k!="endTag"?(b="error",Q):(L(V),W)}function G(k,B,V){return b="error",Q(k,B,V)}function te(k,B,V){if(k=="word")return b="attribute",Z;if(k=="endTag"||k=="selfcloseTag"){var ie=V.tagName,ye=V.tagStart;return V.tagName=V.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(N(ie))?z(V,ie):(z(V,ie),V.context=new P(V,ie,ye==V.indented)),W}return b="error",te}function Z(k,B,V){return k=="equals"?q:(h.allowMissing||(b="error"),te(k,B,V))}function q(k,B,V){return k=="string"?F:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,B,V))}function F(k,B,V){return k=="string"?F:te(k,B,V)}return{startState:function(k){var B={tokenize:w,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;m=null;var V=B.tokenize(k,B);return(V||m)&&V!="comment"&&(b=null,B.state=B.state(m||V,k,B),b&&(V=b=="error"?V+" error":b)),V},indent:function(k,B,V){var ie=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ie&&ie.noIndent)return r.Pass;if(k.tokenize!=A&&k.tokenize!=w)return V?V.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(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;ie;)if(ie.tagName==ye[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(N(ie.tagName)))ie=ie.prev;else break;else if(ye)for(;ie;){var Ne=h.contextGrabbers[N(ie.tagName)];if(Ne&&Ne.hasOwnProperty(N(ye[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.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==q&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],V=k.context;V;V=V.prev)B.push(V.tagName);return B.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var xue=wue.exports;(function(e,t){(function(r){r(Bs,xue,bue)})(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 A=w.tagName;w.tagName=null;var M=d.indent(w,"","");return w.tagName=A,M}function v(w,A){return A.context.mode==d?m(w,A,A.context):b(w,A,A.context)}function m(w,A,M){if(M.depth==2)return w.match(/^.*?\*\//)?M.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(M.state);var E=p(M.state),C=M.state.context;if(C&&w.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?E-=c.indentUnit:M.prev.state.lexical&&(E=M.prev.state.lexical.indented)}else M.depth==1&&(E+=c.indentUnit);return A.context=new o(r.startState(h,E),h,0,A.context),null}if(M.depth==1){if(w.peek()=="<")return d.skipAttribute(M.state),A.context=new o(r.startState(d,p(M.state)),d,0,A.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return M.depth=2,v(w,A)}var N=d.token(w,M.state),P=w.current(),L;return/\btag\b/.test(N)?/>$/.test(P)?M.state.context?M.depth=0:A.context=A.context.prev:/^</.test(P)&&(M.depth=1):!N&&(L=P.indexOf("{"))>-1&&w.backUp(P.length-L),N}function b(w,A,M){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,M.state))return A.context=new o(r.startState(d,h.indent(M.state,"","")),d,0,A.context),h.skipExpression(M.state),null;var E=h.token(w,M.state);if(!E&&M.depth!=null){var C=w.current();C=="{"?M.depth++:C=="}"&&--M.depth==0&&(A.context=A.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,A,M){return w.context.mode.indent(w.context.state,A,M)},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}})})})();(function(e,t){(function(r){r(Bs)})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(Bs)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],A=p.pos;function M(){r.off(document,"mousemove",E),r.off(document,"mouseup",M)}function E(C){if(C.which!=1)return M();p.moveTo(A+(C[b]-w)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",M)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const rr=jr();function Sue(e,t,r={}){const o=mue.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Bt(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}),Eu(()=>{rr.value=void 0}),kh(o)}async function _ue(e){var t;lw(e,((t=e.location)==null?void 0:t.line)??0)}const kue={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Uw=ut({__name:"CodeMirrorContainer",props:Wc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Wc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Nh(e,"modelValue"),s=ik(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=We();return qs(async()=>{const d=Sue(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),rr.value=d,setTimeout(()=>rr.value.refresh(),100)}),(d,h)=>(oe(),me("div",kue,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tue=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=We(""),c=jr(void 0),f=We(!1),d=We(!0);Bt(()=>r.file,async()=>{var L;d.value=!0;try{if(!r.file||!((L=r.file)!=null&&L.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await wt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{un(()=>d.value=!1)}},{immediate:!0}),Bt(()=>[d.value,r.file,Ud.value],([L,z,W])=>{L||(W!=null?un(()=>{var re;const U={line:W??0,ch:0};(re=rr.value)==null||re.scrollIntoView(U,100),un(()=>{var Q,G;(Q=rr.value)==null||Q.focus(),(G=rr.value)==null||G.setCursor(U)})}):un(()=>{var U;(U=rr.value)==null||U.focus()}))},{flush:"post"});const h=Te(()=>{var L,z;return((z=(L=r.file)==null?void 0:L.filepath)==null?void 0:z.split(/\./g).pop())||"js"}),p=We(),v=Te(()=>{var L;return(L=p.value)==null?void 0:L.cm}),m=Te(()=>{var L;return((L=r.file)==null?void 0:L.tasks.filter(z=>{var W;return((W=z.result)==null?void 0:W.state)==="fail"}))||[]}),b=[],w=[],A=[],M=We(!1);function E(){A.forEach(([L,z,W])=>{L.removeEventListener("click",z),W()}),A.length=0}wE(p,()=>{var L;(L=rr.value)==null||L.refresh()});function C(){f.value=c.value!==rr.value.getValue()}Bt(f,L=>{o("draft",L)},{immediate:!0});function N(L){const z=((L==null?void 0:L.stacks)||[]).filter(te=>{var Z;return te.file&&te.file===((Z=r.file)==null?void 0:Z.filepath)}),W=z==null?void 0:z[0];if(!W)return;const U=document.createElement("div");U.className="op80 flex gap-x-2 items-center";const re=document.createElement("pre");re.className="c-red-600 dark:c-red-400",re.textContent=`${" ".repeat(W.column)}^ ${(L==null?void 0:L.nameStr)||L.name}: ${(L==null?void 0:L.message)||""}`,U.appendChild(re);const Q=document.createElement("span");Q.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",Q.tabIndex=0,Q.ariaLabel="Open in Editor",kb(Q,{content:"Open in Editor",placement:"bottom"},!1);const G=async()=>{await Nw(W.file,W.line,W.column)};U.appendChild(Q),A.push([Q,G,()=>Ih(Q)]),w.push(rr.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),b.push(rr.value.addLineWidget(W.line-1,U))}Bt([v,m],([L])=>{if(!L){E();return}setTimeout(()=>{E(),b.forEach(z=>z.clear()),w.forEach(z=>{var W;return(W=rr.value)==null?void 0:W.removeLineClass(z,"wrap")}),b.length=0,w.length=0,L.on("changes",C),m.value.forEach(z=>{var W,U;(U=(W=z.result)==null?void 0:W.errors)==null||U.forEach(N)}),M.value||L.clearHistory()},100)},{flush:"post"});async function P(L){M.value=!0,await wt.rpc.saveTestFile(r.file.filepath,L),c.value=L,f.value=!1}return(L,z)=>{const W=Uw;return oe(),rt(W,hi({ref_key:"editor",ref:p,modelValue:I(s),"onUpdate:modelValue":z[0]||(z[0]=U=>At(s)?s.value=U:null),"h-full":""},{lineNumbers:!0,readOnly:I(Br)},{mode:I(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Cue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Eue={"p-4":"",relative:""},Lue={op50:"","font-mono":"","text-sm":""},Aue={key:0,"p-5":""},Mue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Nue={key:0},$ue={p:"x3 y-1","bg-overlay":"",border:"base b t"},Pue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=cE(()=>wt.rpc.getTransformResult(r.projectName,r.id,!!Ro)),c=Te(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Te(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Te(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Te(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return Vb("Escape",()=>{o("close")}),(p,v)=>{const m=wi,b=Uw;return oe(),me("div",Cue,[Y("div",Eue,[v[1]||(v[1]=Y("p",null,"Module Info",-1)),Y("p",Lue,He(p.id),1),Pe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),I(s)?(oe(),me(ct,{key:1},[Y("div",Mue,[v[2]||(v[2]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Pe(b,hi({"h-full":"","model-value":I(f),"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"]),Pe(b,hi({"h-full":"","model-value":I(d),"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"])]),I(h).mappings!==""?(oe(),me("div",Nue,[Y("div",$ue," Source map (v"+He(I(h).version)+") ",1),Pe(b,hi({"model-value":I(h).mappings,"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(oe(),me("div",Aue," No transform result found for this module. "))])}}});function Oue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Xd="http://www.w3.org/1999/xhtml";const Wm={svg:"http://www.w3.org/2000/svg",xhtml:Xd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Wm.hasOwnProperty(t)?{space:Wm[t],local:e}:e}function Rue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Xd&&t.documentElement.namespaceURI===Xd?t.createElement(e):t.createElementNS(r,e)}}function Due(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vw(e){var t=Wu(e);return(t.local?Due:Rue)(t)}function zue(){}function Qh(e){return e==null?zue:function(){return this.querySelector(e)}}function Iue(e){typeof e!="function"&&(e=Qh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new Qn(o,this._parents)}function Fue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Hue(){return[]}function jw(e){return e==null?Hue:function(){return this.querySelectorAll(e)}}function que(e){return function(){return Fue(e.apply(this,arguments))}}function Bue(e){typeof e=="function"?e=que(e):e=jw(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 Qn(o,s)}function Gw(e){return function(){return this.matches(e)}}function Kw(e){return function(t){return t.matches(e)}}var Wue=Array.prototype.find;function Uue(e){return function(){return Wue.call(this.children,e)}}function Vue(){return this.firstElementChild}function jue(e){return this.select(e==null?Vue:Uue(typeof e=="function"?e:Kw(e)))}var Gue=Array.prototype.filter;function Kue(){return Array.from(this.children)}function Xue(e){return function(){return Gue.call(this.children,e)}}function Yue(e){return this.selectAll(e==null?Kue:Xue(typeof e=="function"?e:Kw(e)))}function Zue(e){typeof e!="function"&&(e=Gw(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 Qn(o,this._parents)}function Xw(e){return new Array(e.length)}function Jue(){return new Qn(this._enter||this._groups.map(Xw),this._parents)}function cu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}cu.prototype={constructor:cu,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 Que(e){return function(){return e}}function efe(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 cu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function tfe(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new cu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function nfe(e){return e.__data__}function rfe(e,t){if(!arguments.length)return Array.from(this,nfe);var r=t?tfe:efe,o=this._parents,s=this._groups;typeof e!="function"&&(e=Que(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=ife(e.call(v,v&&v.__data__,p,o)),A=w.length,M=d[p]=new Array(A),E=f[p]=new Array(A),C=h[p]=new Array(b);r(v,m,M,E,C,w,t);for(var N=0,P=0,L,z;N<A;++N)if(L=M[N]){for(N>=P&&(P=N+1);!(z=E[P])&&++P<A;);L._next=z||null}}return f=new Qn(f,o),f._enter=d,f._exit=h,f}function ife(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ofe(){return new Qn(this._exit||this._groups.map(Xw),this._parents)}function sfe(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 lfe(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,A=0;A<m;++A)(w=p[A]||v[A])&&(b[A]=w);for(;h<s;++h)d[h]=r[h];return new Qn(d,this._parents)}function afe(){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 cfe(e){e||(e=ufe);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new Qn(s,this._parents).order()}function ufe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ffe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function dfe(){return Array.from(this)}function hfe(){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 gfe(){return!this.node()}function vfe(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 mfe(e){return function(){this.removeAttribute(e)}}function yfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bfe(e,t){return function(){this.setAttribute(e,t)}}function wfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function xfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Sfe(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 _fe(e,t){var r=Wu(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?yfe:mfe:typeof t=="function"?r.local?Sfe:xfe:r.local?wfe:bfe)(r,t))}function Yw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function kfe(e){return function(){this.style.removeProperty(e)}}function Tfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Cfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Efe(e,t,r){return arguments.length>1?this.each((t==null?kfe:typeof t=="function"?Cfe:Tfe)(e,t,r??"")):zs(this.node(),e)}function zs(e,t){return e.style.getPropertyValue(t)||Yw(e).getComputedStyle(e,null).getPropertyValue(t)}function Lfe(e){return function(){delete this[e]}}function Afe(e,t){return function(){this[e]=t}}function Mfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Nfe(e,t){return arguments.length>1?this.each((t==null?Lfe:typeof t=="function"?Mfe:Afe)(e,t)):this.node()[e]}function Zw(e){return e.trim().split(/^|\s+/)}function ep(e){return e.classList||new Jw(e)}function Jw(e){this._node=e,this._names=Zw(e.getAttribute("class")||"")}Jw.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 Qw(e,t){for(var r=ep(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function e1(e,t){for(var r=ep(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function $fe(e){return function(){Qw(this,e)}}function Pfe(e){return function(){e1(this,e)}}function Ofe(e,t){return function(){(t.apply(this,arguments)?Qw:e1)(this,e)}}function Rfe(e,t){var r=Zw(e+"");if(arguments.length<2){for(var o=ep(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ofe:t?$fe:Pfe)(r,t))}function Dfe(){this.textContent=""}function zfe(e){return function(){this.textContent=e}}function Ife(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ffe(e){return arguments.length?this.each(e==null?Dfe:(typeof e=="function"?Ife:zfe)(e)):this.node().textContent}function Hfe(){this.innerHTML=""}function qfe(e){return function(){this.innerHTML=e}}function Bfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Wfe(e){return arguments.length?this.each(e==null?Hfe:(typeof e=="function"?Bfe:qfe)(e)):this.node().innerHTML}function Ufe(){this.nextSibling&&this.parentNode.appendChild(this)}function Vfe(){return this.each(Ufe)}function jfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gfe(){return this.each(jfe)}function Kfe(e){var t=typeof e=="function"?e:Vw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Xfe(){return null}function Yfe(e,t){var r=typeof e=="function"?e:Vw(e),o=t==null?Xfe:typeof t=="function"?t:Qh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Zfe(){var e=this.parentNode;e&&e.removeChild(this)}function Jfe(){return this.each(Zfe)}function Qfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ede(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tde(e){return this.select(e?ede:Qfe)}function nde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function rde(e){return function(t){e.call(this,t,this.__data__)}}function ide(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 ode(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 sde(e,t,r){return function(){var o=this.__on,s,c=rde(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 lde(e,t,r){var o=ide(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?sde:ode,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function t1(e,t,r){var o=Yw(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 ade(e,t){return function(){return t1(this,e,t)}}function cde(e,t){return function(){return t1(this,e,t.apply(this,arguments))}}function ude(e,t){return this.each((typeof t=="function"?cde:ade)(e,t))}function*fde(){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 n1=[null];function Qn(e,t){this._groups=e,this._parents=t}function _a(){return new Qn([[document.documentElement]],n1)}function dde(){return this}Qn.prototype=_a.prototype={constructor:Qn,select:Iue,selectAll:Bue,selectChild:jue,selectChildren:Yue,filter:Zue,data:rfe,enter:Jue,exit:ofe,join:sfe,merge:lfe,selection:dde,order:afe,sort:cfe,call:ffe,nodes:dfe,node:hfe,size:pfe,empty:gfe,each:vfe,attr:_fe,style:Efe,property:Nfe,classed:Rfe,text:Ffe,html:Wfe,raise:Vfe,lower:Gfe,append:Kfe,insert:Yfe,remove:Jfe,clone:tde,datum:nde,on:lde,dispatch:ude,[Symbol.iterator]:fde};function Fn(e){return typeof e=="string"?new Qn([[document.querySelector(e)]],[document.documentElement]):new Qn([[e]],n1)}function hde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ai(e,t){if(e=hde(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]}class En{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new En(t,r)}add(t){return new En(this.x+t.x,this.y+t.y)}subtract(t){return new En(this.x-t.x,this.y-t.y)}multiply(t){return new En(this.x*t,this.y*t)}divide(t){return new En(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 En(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 En(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new En(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var pde={value:()=>{}};function ka(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new $c(r)}function $c(e){this._=e}function gde(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}$c.prototype=ka.prototype={constructor:$c,on:function(e,t){var r=this._,o=gde(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=vde(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]=Um(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Um(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new $c(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function vde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Um(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 mde={passive:!1},ia={capture:!0,passive:!1};function cd(e){e.stopImmediatePropagation()}function Ls(e){e.preventDefault(),e.stopImmediatePropagation()}function r1(e){var t=e.document.documentElement,r=Fn(e).on("dragstart.drag",Ls,ia);"onselectstart"in t?r.on("selectstart.drag",Ls,ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function i1(e,t){var r=e.document.documentElement,o=Fn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ls,ia),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 vc=e=>()=>e;function Yd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}Yd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function yde(e){return!e.ctrlKey&&!e.button}function bde(){return this.parentNode}function wde(e,t){return t??{x:e.x,y:e.y}}function xde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Sde(){var e=yde,t=bde,r=wde,o=xde,s={},c=ka("start","drag","end"),f=0,d,h,p,v,m=0;function b(L){L.on("mousedown.drag",w).filter(o).on("touchstart.drag",E).on("touchmove.drag",C,mde).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(L,z){if(!(v||!e.call(this,L,z))){var W=P(this,t.call(this,L,z),L,z,"mouse");W&&(Fn(L.view).on("mousemove.drag",A,ia).on("mouseup.drag",M,ia),r1(L.view),cd(L),p=!1,d=L.clientX,h=L.clientY,W("start",L))}}function A(L){if(Ls(L),!p){var z=L.clientX-d,W=L.clientY-h;p=z*z+W*W>m}s.mouse("drag",L)}function M(L){Fn(L.view).on("mousemove.drag mouseup.drag",null),i1(L.view,p),Ls(L),s.mouse("end",L)}function E(L,z){if(e.call(this,L,z)){var W=L.changedTouches,U=t.call(this,L,z),re=W.length,Q,G;for(Q=0;Q<re;++Q)(G=P(this,U,L,z,W[Q].identifier,W[Q]))&&(cd(L),G("start",L,W[Q]))}}function C(L){var z=L.changedTouches,W=z.length,U,re;for(U=0;U<W;++U)(re=s[z[U].identifier])&&(Ls(L),re("drag",L,z[U]))}function N(L){var z=L.changedTouches,W=z.length,U,re;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<W;++U)(re=s[z[U].identifier])&&(cd(L),re("end",L,z[U]))}function P(L,z,W,U,re,Q){var G=c.copy(),te=ai(Q||W,z),Z,q,F;if((F=r.call(L,new Yd("beforestart",{sourceEvent:W,target:b,identifier:re,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:G}),U))!=null)return Z=F.x-te[0]||0,q=F.y-te[1]||0,function k(B,V,ie){var ye=te,Ne;switch(B){case"start":s[re]=k,Ne=f++;break;case"end":delete s[re],--f;case"drag":te=ai(ie||V,z),Ne=f;break}G.call(B,L,new Yd(B,{sourceEvent:V,subject:F,target:b,identifier:re,active:Ne,x:te[0]+Z,y:te[1]+q,dx:te[0]-ye[0],dy:te[1]-ye[1],dispatch:G}),U)}}return b.filter=function(L){return arguments.length?(e=typeof L=="function"?L:vc(!!L),b):e},b.container=function(L){return arguments.length?(t=typeof L=="function"?L:vc(L),b):t},b.subject=function(L){return arguments.length?(r=typeof L=="function"?L:vc(L),b):r},b.touchable=function(L){return arguments.length?(o=typeof L=="function"?L:vc(!!L),b):o},b.on=function(){var L=c.on.apply(c,arguments);return L===c?b:L},b.clickDistance=function(L){return arguments.length?(m=(L=+L)*L,b):Math.sqrt(m)},b}function tp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function o1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ta(){}var oa=.7,uu=1/oa,As="\\s*([+-]?\\d+)\\s*",sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_de=/^#([0-9a-f]{3,8})$/,kde=new RegExp(`^rgb\\(${As},${As},${As}\\)$`),Tde=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),Cde=new RegExp(`^rgba\\(${As},${As},${As},${sa}\\)$`),Ede=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${sa}\\)$`),Lde=new RegExp(`^hsl\\(${sa},${Wr},${Wr}\\)$`),Ade=new RegExp(`^hsla\\(${sa},${Wr},${Wr},${sa}\\)$`),Vm={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};tp(Ta,la,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jm,formatHex:jm,formatHex8:Mde,formatHsl:Nde,formatRgb:Gm,toString:Gm});function jm(){return this.rgb().formatHex()}function Mde(){return this.rgb().formatHex8()}function Nde(){return s1(this).formatHsl()}function Gm(){return this.rgb().formatRgb()}function la(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=_de.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Km(t):r===3?new qn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?mc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?mc(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=kde.exec(e))?new qn(t[1],t[2],t[3],1):(t=Tde.exec(e))?new qn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Cde.exec(e))?mc(t[1],t[2],t[3],t[4]):(t=Ede.exec(e))?mc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lde.exec(e))?Zm(t[1],t[2]/100,t[3]/100,1):(t=Ade.exec(e))?Zm(t[1],t[2]/100,t[3]/100,t[4]):Vm.hasOwnProperty(e)?Km(Vm[e]):e==="transparent"?new qn(NaN,NaN,NaN,0):null}function Km(e){return new qn(e>>16&255,e>>8&255,e&255,1)}function mc(e,t,r,o){return o<=0&&(e=t=r=NaN),new qn(e,t,r,o)}function $de(e){return e instanceof Ta||(e=la(e)),e?(e=e.rgb(),new qn(e.r,e.g,e.b,e.opacity)):new qn}function Zd(e,t,r,o){return arguments.length===1?$de(e):new qn(e,t,r,o??1)}function qn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}tp(qn,Zd,o1(Ta,{brighter(e){return e=e==null?uu:Math.pow(uu,e),new qn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new qn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qn(No(this.r),No(this.g),No(this.b),fu(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:Xm,formatHex:Xm,formatHex8:Pde,formatRgb:Ym,toString:Ym}));function Xm(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}`}function Pde(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}${Lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ym(){const e=fu(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function Zm(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,r,o)}function s1(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof Ta||(e=la(e)),!e)return new xr;if(e instanceof xr)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 xr(f,d,h,e.opacity)}function Ode(e,t,r,o){return arguments.length===1?s1(e):new xr(e,t,r,o??1)}function xr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}tp(xr,Ode,o1(Ta,{brighter(e){return e=e==null?uu:Math.pow(uu,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new xr(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 qn(ud(e>=240?e-240:e+120,s,o),ud(e,s,o),ud(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new xr(Jm(this.h),yc(this.s),yc(this.l),fu(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=fu(this.opacity);return`${e===1?"hsl(":"hsla("}${Jm(this.h)}, ${yc(this.s)*100}%, ${yc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Jm(e){return e=(e||0)%360,e<0?e+360:e}function yc(e){return Math.max(0,Math.min(1,e||0))}function ud(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 l1=e=>()=>e;function Rde(e,t){return function(r){return e+r*t}}function Dde(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 zde(e){return(e=+e)==1?a1:function(t,r){return r-t?Dde(t,r,e):l1(isNaN(t)?r:t)}}function a1(e,t){var r=t-e;return r?Rde(e,r):l1(isNaN(e)?t:e)}const Qm=function e(t){var r=zde(t);function o(s,c){var f=r((s=Zd(s)).r,(c=Zd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=a1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Ui(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Jd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fd=new RegExp(Jd.source,"g");function Ide(e){return function(){return e}}function Fde(e){return function(t){return e(t)+""}}function Hde(e,t){var r=Jd.lastIndex=fd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Jd.exec(e))&&(s=fd.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:Ui(o,s)})),r=fd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Fde(h[0].x):Ide(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var e0=180/Math.PI,Qd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function c1(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)*e0,skewX:Math.atan(h)*e0,scaleX:f,scaleY:d}}var bc;function qde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Qd:c1(t.a,t.b,t.c,t.d,t.e,t.f)}function Bde(e){return e==null||(bc||(bc=document.createElementNS("http://www.w3.org/2000/svg","g")),bc.setAttribute("transform",e),!(e=bc.transform.baseVal.consolidate()))?Qd:(e=e.matrix,c1(e.a,e.b,e.c,e.d,e.e,e.f))}function u1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,A){if(p!==m||v!==b){var M=w.push("translate(",null,t,null,r);A.push({i:M-4,x:Ui(p,m)},{i:M-2,x:Ui(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Ui(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Ui(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,A){if(p!==m||v!==b){var M=w.push(s(w)+"scale(",null,",",null,")");A.push({i:M-4,x:Ui(p,m)},{i:M-2,x:Ui(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var A=-1,M=b.length,E;++A<M;)m[(E=b[A]).i]=E.x(w);return m.join("")}}}var Wde=u1(qde,"px, ","px)","deg)"),Ude=u1(Bde,", ",")",")"),Vde=1e-12;function t0(e){return((e=Math.exp(e))+1/e)/2}function jde(e){return((e=Math.exp(e))-1/e)/2}function Gde(e){return((e=Math.exp(2*e))-1)/(e+1)}const Kde=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,A=m-h,M=w*w+A*A,E,C;if(M<Vde)C=Math.log(b/p)/t,E=function(U){return[d+U*w,h+U*A,p*Math.exp(t*U*C)]};else{var N=Math.sqrt(M),P=(b*b-p*p+o*M)/(2*p*r*N),L=(b*b-p*p-o*M)/(2*b*r*N),z=Math.log(Math.sqrt(P*P+1)-P),W=Math.log(Math.sqrt(L*L+1)-L);C=(W-z)/t,E=function(U){var re=U*C,Q=t0(z),G=p/(r*N)*(Q*Gde(t*re+z)-jde(z));return[d+G*w,h+G*A,p*Q/t0(t*re+z)]}}return E.duration=C*1e3*t/Math.SQRT2,E}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 Is=0,Ll=0,kl=0,f1=1e3,du,Al,hu=0,Do=0,Uu=0,aa=typeof performance=="object"&&performance.now?performance:Date,d1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function np(){return Do||(d1(Xde),Do=aa.now()+Uu)}function Xde(){Do=0}function pu(){this._call=this._time=this._next=null}pu.prototype=rp.prototype={constructor:pu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?np():+r)+(t==null?0:+t),!this._next&&Al!==this&&(Al?Al._next=this:du=this,Al=this),this._call=e,this._time=r,eh()},stop:function(){this._call&&(this._call=null,this._time=1/0,eh())}};function rp(e,t,r){var o=new pu;return o.restart(e,t,r),o}function Yde(){np(),++Is;for(var e=du,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Is}function n0(){Do=(hu=aa.now())+Uu,Is=Ll=0;try{Yde()}finally{Is=0,Jde(),Do=0}}function Zde(){var e=aa.now(),t=e-hu;t>f1&&(Uu-=t,hu=e)}function Jde(){for(var e,t=du,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:du=r);Al=e,eh(o)}function eh(e){if(!Is){Ll&&(Ll=clearTimeout(Ll));var t=e-Do;t>24?(e<1/0&&(Ll=setTimeout(n0,e-aa.now()-Uu)),kl&&(kl=clearInterval(kl))):(kl||(hu=aa.now(),kl=setInterval(Zde,f1)),Is=1,d1(n0))}}function r0(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 Qde=ka("start","end","cancel","interrupt"),ehe=[],h1=0,i0=1,th=2,Pc=3,o0=4,nh=5,Oc=6;function Vu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;the(e,r,{name:t,index:o,group:s,on:Qde,tween:ehe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:h1})}function ip(e,t){var r=Ar(e,t);if(r.state>h1)throw new Error("too late; already scheduled");return r}function Xr(e,t){var r=Ar(e,t);if(r.state>Pc)throw new Error("too late; already running");return r}function Ar(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function the(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=rp(c,0,r.time);function c(p){r.state=i0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==i0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Pc)return r0(f);w.state===o0?(w.state=Oc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Oc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(r0(function(){r.state===Pc&&(r.state=o0,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=Pc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=nh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===nh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Oc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Rc(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<nh,o.state=Oc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function nhe(e){return this.each(function(){Rc(this,e)})}function rhe(e,t){var r,o;return function(){var s=Xr(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 ihe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Xr(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 ohe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Ar(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?rhe:ihe)(r,e,t))}function op(e,t,r){var o=e._id;return e.each(function(){var s=Xr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ar(s,o).value[t]}}function p1(e,t){var r;return(typeof t=="number"?Ui:t instanceof la?Qm:(r=la(t))?(t=r,Qm):Hde)(e,t)}function she(e){return function(){this.removeAttribute(e)}}function lhe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ahe(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 che(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 uhe(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 fhe(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 dhe(e,t){var r=Wu(e),o=r==="transform"?Ude:p1;return this.attrTween(e,typeof t=="function"?(r.local?fhe:uhe)(r,o,op(this,"attr."+e,t)):t==null?(r.local?lhe:she)(r):(r.local?che:ahe)(r,o,t))}function hhe(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 ghe(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 vhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&hhe(e,c)),r}return s._value=t,s}function mhe(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=Wu(e);return this.tween(r,(o.local?ghe:vhe)(o,t))}function yhe(e,t){return function(){ip(this,e).delay=+t.apply(this,arguments)}}function bhe(e,t){return t=+t,function(){ip(this,e).delay=t}}function whe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?yhe:bhe)(t,e)):Ar(this.node(),t).delay}function xhe(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function She(e,t){return t=+t,function(){Xr(this,e).duration=t}}function _he(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xhe:She)(t,e)):Ar(this.node(),t).duration}function khe(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function The(e){var t=this._id;return arguments.length?this.each(khe(t,e)):Ar(this.node(),t).ease}function Che(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Xr(this,e).ease=r}}function Ehe(e){if(typeof e!="function")throw new Error;return this.each(Che(this._id,e))}function Lhe(e){typeof e!="function"&&(e=Gw(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 mi(o,this._parents,this._name,this._id)}function Ahe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new mi(f,this._parents,this._name,this._id)}function Mhe(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 Nhe(e,t,r){var o,s,c=Mhe(t)?ip:Xr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function $he(e,t){var r=this._id;return arguments.length<2?Ar(this.node(),r).on.on(e):this.each(Nhe(r,e,t))}function Phe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ohe(){return this.on("end.remove",Phe(this._id))}function Rhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Qh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Vu(p[b],t,r,b,p,Ar(v,r)));return new mi(c,this._parents,t,r)}function Dhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=jw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,A=Ar(v,r),M=0,E=b.length;M<E;++M)(w=b[M])&&Vu(w,t,r,M,b,A);c.push(b),f.push(v)}return new mi(c,f,t,r)}var zhe=_a.prototype.constructor;function Ihe(){return new zhe(this._groups,this._parents)}function Fhe(e,t){var r,o,s;return function(){var c=zs(this,e),f=(this.style.removeProperty(e),zs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function g1(e){return function(){this.style.removeProperty(e)}}function Hhe(e,t,r){var o,s=r+"",c;return function(){var f=zs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function qhe(e,t,r){var o,s,c;return function(){var f=zs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),zs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Bhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Xr(this,e),p=h.on,v=h.value[c]==null?d||(d=g1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Whe(e,t,r){var o=(e+="")=="transform"?Wde:p1;return t==null?this.styleTween(e,Fhe(e,o)).on("end.style."+e,g1(e)):typeof t=="function"?this.styleTween(e,qhe(e,o,op(this,"style."+e,t))).each(Bhe(this._id,e)):this.styleTween(e,Hhe(e,o,t),r).on("end.style."+e,null)}function Uhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Vhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Uhe(e,f,r)),o}return c._value=t,c}function jhe(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,Vhe(e,t,r??""))}function Ghe(e){return function(){this.textContent=e}}function Khe(e){return function(){var t=e(this);this.textContent=t??""}}function Xhe(e){return this.tween("text",typeof e=="function"?Khe(op(this,"text",e)):Ghe(e==null?"":e+""))}function Yhe(e){return function(t){this.textContent=e.call(this,t)}}function Zhe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Yhe(s)),t}return o._value=e,o}function Jhe(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,Zhe(e))}function Qhe(){for(var e=this._name,t=this._id,r=v1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Ar(h,t);Vu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new mi(o,this._parents,e,r)}function epe(){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=Xr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var tpe=0;function mi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function v1(){return++tpe}var oi=_a.prototype;mi.prototype={constructor:mi,select:Rhe,selectAll:Dhe,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:Lhe,merge:Ahe,selection:Ihe,transition:Qhe,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:$he,attr:dhe,attrTween:mhe,style:Whe,styleTween:jhe,text:Xhe,textTween:Jhe,remove:Ohe,tween:ohe,delay:whe,duration:_he,ease:The,easeVarying:Ehe,end:epe,[Symbol.iterator]:oi[Symbol.iterator]};function npe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var rpe={time:null,delay:0,duration:250,ease:npe};function ipe(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 ope(e){var t,r;e instanceof mi?(t=e._id,e=e._name):(t=v1(),(r=rpe).time=np(),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])&&Vu(h,e,t,p,f,r||ipe(h,t));return new mi(o,this._parents,e,t)}_a.prototype.interrupt=nhe;_a.prototype.transition=ope;const wc=e=>()=>e;function spe(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 fi(e,t,r){this.k=e,this.x=t,this.y=r}fi.prototype={constructor:fi,scale:function(e){return e===1?this:new fi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fi(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 sp=new fi(1,0,0);fi.prototype;function dd(e){e.stopImmediatePropagation()}function Tl(e){e.preventDefault(),e.stopImmediatePropagation()}function lpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ape(){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 s0(){return this.__zoom||sp}function cpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function upe(){return navigator.maxTouchPoints||"ontouchstart"in this}function fpe(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 dpe(){var e=lpe,t=ape,r=fpe,o=cpe,s=upe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Kde,p=ka("start","zoom","end"),v,m,b,w=500,A=150,M=0,E=10;function C(F){F.property("__zoom",s0).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(F,k,B,V){var ie=F.selection?F.selection():F;ie.property("__zoom",s0),F!==ie?z(F,k,B,V):ie.interrupt().each(function(){W(this,arguments).event(V).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},C.scaleBy=function(F,k,B,V){C.scaleTo(F,function(){var ie=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return ie*ye},B,V)},C.scaleTo=function(F,k,B,V){C.transform(F,function(){var ie=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?L(ie):typeof B=="function"?B.apply(this,arguments):B,Ue=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(P(N(ye,je),Ne,Ue),ie,f)},B,V)},C.translateBy=function(F,k,B,V){C.transform(F,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,V)},C.translateTo=function(F,k,B,V,ie){C.transform(F,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,Ue=V==null?L(ye):typeof V=="function"?V.apply(this,arguments):V;return r(sp.translate(Ue[0],Ue[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},V,ie)};function N(F,k){return k=Math.max(c[0],Math.min(c[1],k)),k===F.k?F:new fi(k,F.x,F.y)}function P(F,k,B){var V=k[0]-B[0]*F.k,ie=k[1]-B[1]*F.k;return V===F.x&&ie===F.y?F:new fi(F.k,V,ie)}function L(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function z(F,k,B,V){F.on("start.zoom",function(){W(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(V).end()}).tween("zoom",function(){var ie=this,ye=arguments,Ne=W(ie,ye).event(V),Ue=t.apply(ie,ye),je=B==null?L(Ue):typeof B=="function"?B.apply(ie,ye):B,it=Math.max(Ue[1][0]-Ue[0][0],Ue[1][1]-Ue[0][1]),tt=ie.__zoom,Je=typeof k=="function"?k.apply(ie,ye):k,Ae=h(tt.invert(je).concat(it/tt.k),Je.invert(je).concat(it/Je.k));return function(X){if(X===1)X=Je;else{var ae=Ae(X),de=it/ae[2];X=new fi(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,X)}})}function W(F,k,B){return!B&&F.__zooming||new U(F,k)}function U(F,k){this.that=F,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(F,k),this.taps=0}U.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,k){return this.mouse&&F!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&F!=="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(F){var k=Fn(this.that).datum();p.call(F,this.that,new spe(F,{sourceEvent:this.sourceEvent,target:C,type:F,transform:this.that.__zoom,dispatch:p}),k)}};function re(F,...k){if(!e.apply(this,arguments))return;var B=W(this,k).event(F),V=this.__zoom,ie=Math.max(c[0],Math.min(c[1],V.k*Math.pow(2,o.apply(this,arguments)))),ye=ai(F);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=V.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(V.k===ie)return;B.mouse=[ye,V.invert(ye)],Rc(this),B.start()}Tl(F),B.wheel=setTimeout(Ne,A),B.zoom("mouse",r(P(N(V,ie),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function Q(F,...k){if(b||!e.apply(this,arguments))return;var B=F.currentTarget,V=W(this,k,!0).event(F),ie=Fn(F.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ai(F,B),Ne=F.clientX,Ue=F.clientY;r1(F.view),dd(F),V.mouse=[ye,this.__zoom.invert(ye)],Rc(this),V.start();function je(tt){if(Tl(tt),!V.moved){var Je=tt.clientX-Ne,Ae=tt.clientY-Ue;V.moved=Je*Je+Ae*Ae>M}V.event(tt).zoom("mouse",r(P(V.that.__zoom,V.mouse[0]=ai(tt,B),V.mouse[1]),V.extent,f))}function it(tt){ie.on("mousemove.zoom mouseup.zoom",null),i1(tt.view,V.moved),Tl(tt),V.event(tt).end()}}function G(F,...k){if(e.apply(this,arguments)){var B=this.__zoom,V=ai(F.changedTouches?F.changedTouches[0]:F,this),ie=B.invert(V),ye=B.k*(F.shiftKey?.5:2),Ne=r(P(N(B,ye),V,ie),t.apply(this,k),f);Tl(F),d>0?Fn(this).transition().duration(d).call(z,Ne,V,F):Fn(this).call(C.transform,Ne,V,F)}}function te(F,...k){if(e.apply(this,arguments)){var B=F.touches,V=B.length,ie=W(this,k,F.changedTouches.length===V).event(F),ye,Ne,Ue,je;for(dd(F),Ne=0;Ne<V;++Ne)Ue=B[Ne],je=ai(Ue,this),je=[je,this.__zoom.invert(je),Ue.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==je[2]&&(ie.touch1=je,ie.taps=0):(ie.touch0=je,ye=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(ie.taps<2&&(m=je[0],v=setTimeout(function(){v=null},w)),Rc(this),ie.start())}}function Z(F,...k){if(this.__zooming){var B=W(this,k).event(F),V=F.changedTouches,ie=V.length,ye,Ne,Ue,je;for(Tl(F),ye=0;ye<ie;++ye)Ne=V[ye],Ue=ai(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=Ue:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=Ue);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],tt=B.touch0[1],Je=B.touch1[0],Ae=B.touch1[1],X=(X=Je[0]-it[0])*X+(X=Je[1]-it[1])*X,ae=(ae=Ae[0]-tt[0])*ae+(ae=Ae[1]-tt[1])*ae;Ne=N(Ne,Math.sqrt(X/ae)),Ue=[(it[0]+Je[0])/2,(it[1]+Je[1])/2],je=[(tt[0]+Ae[0])/2,(tt[1]+Ae[1])/2]}else if(B.touch0)Ue=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(P(Ne,Ue,je),B.extent,f))}}function q(F,...k){if(this.__zooming){var B=W(this,k).event(F),V=F.changedTouches,ie=V.length,ye,Ne;for(dd(F),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ye=0;ye<ie;++ye)Ne=V[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ai(Ne,this),Math.hypot(m[0]-Ne[0],m[1]-Ne[1])<E)){var Ue=Fn(this).on("dblclick.zoom");Ue&&Ue.apply(this,arguments)}}}return C.wheelDelta=function(F){return arguments.length?(o=typeof F=="function"?F:wc(+F),C):o},C.filter=function(F){return arguments.length?(e=typeof F=="function"?F:wc(!!F),C):e},C.touchable=function(F){return arguments.length?(s=typeof F=="function"?F:wc(!!F),C):s},C.extent=function(F){return arguments.length?(t=typeof F=="function"?F:wc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),C):t},C.scaleExtent=function(F){return arguments.length?(c[0]=+F[0],c[1]=+F[1],C):[c[0],c[1]]},C.translateExtent=function(F){return arguments.length?(f[0][0]=+F[0][0],f[1][0]=+F[1][0],f[0][1]=+F[0][1],f[1][1]=+F[1][1],C):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},C.constrain=function(F){return arguments.length?(r=F,C):r},C.duration=function(F){return arguments.length?(d=+F,C):d},C.interpolate=function(F){return arguments.length?(h=F,C):h},C.on=function(){var F=p.on.apply(p,arguments);return F===p?C:F},C.clickDistance=function(F){return arguments.length?(M=(F=+F)*F,C):Math.sqrt(M)},C.tapDistance=function(F){return arguments.length?(E=+F,C):E},C}function hpe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return m1(this.cover(t,r),t,r,e)}function m1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,A,M,E,C,N;if(!c)return e._root=f,e;for(;c.length;)if((M=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[C=E<<1|M]))return s[C]=f,e;if(w=+e._x.call(null,c.data),A=+e._y.call(null,c.data),t===w&&r===A)return f.next=c,s?s[C]=f:e._root=f,e;do s=s?s[C]=new Array(4):e._root=new Array(4),(M=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b;while((C=E<<1|M)===(N=(A>=b)<<1|w>=m));return s[N]=c,s[C]=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,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)m1(this,f[r],d[r],e[r]);return this}function gpe(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 vpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function mpe(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 An(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function ype(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,A,M;for(w&&b.push(new An(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);A=b.pop();)if(!(!(w=A.node)||(f=A.x0)>v||(d=A.y0)>m||(h=A.x1)<s||(p=A.y1)<c))if(w.length){var E=(f+h)/2,C=(d+p)/2;b.push(new An(w[3],E,C,h,p),new An(w[2],f,C,E,p),new An(w[1],E,d,h,C),new An(w[0],f,d,E,C)),(M=(t>=C)<<1|e>=E)&&(A=b[b.length-1],b[b.length-1]=b[b.length-1-M],b[b.length-1-M]=A)}else{var N=e-+this._x.call(null,w.data),P=t-+this._y.call(null,w.data),L=N*N+P*P;if(L<r){var z=Math.sqrt(r=L);s=e-z,c=t-z,v=e+z,m=t+z,o=w.data}}return o}function bpe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,A,M,E,C;if(!r)return this;if(r.length)for(;;){if((A=v>=(b=(f+h)/2))?f=b:h=b,(M=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[E=M<<1|A]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,C=E)}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[E]=c:delete t[E],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[C]=r:this._root=r),this):(this._root=c,this)}function wpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function xpe(){return this._root}function Spe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function _pe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new An(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new An(s,p,v,d,h)),(s=o[2])&&t.push(new An(s,c,v,p,h)),(s=o[1])&&t.push(new An(s,p,f,d,v)),(s=o[0])&&t.push(new An(s,c,f,p,v))}return this}function kpe(e){var t=[],r=[],o;for(this._root&&t.push(new An(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new An(c,f,d,v,m)),(c=s[1])&&t.push(new An(c,v,d,h,m)),(c=s[2])&&t.push(new An(c,f,m,v,p)),(c=s[3])&&t.push(new An(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Tpe(e){return e[0]}function Cpe(e){return arguments.length?(this._x=e,this):this._x}function Epe(e){return e[1]}function Lpe(e){return arguments.length?(this._y=e,this):this._y}function lp(e,t,r){var o=new ap(t??Tpe,r??Epe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function ap(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 l0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var $n=lp.prototype=ap.prototype;$n.copy=function(){var e=new ap(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=l0(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]=l0(o));return e};$n.add=hpe;$n.addAll=ppe;$n.cover=gpe;$n.data=vpe;$n.extent=mpe;$n.find=ype;$n.remove=bpe;$n.removeAll=wpe;$n.root=xpe;$n.size=Spe;$n.visit=_pe;$n.visitAfter=kpe;$n.x=Cpe;$n.y=Lpe;function Nn(e){return function(){return e}}function Ki(e){return(e()-.5)*1e-6}function Ape(e){return e.x+e.vx}function Mpe(e){return e.y+e.vy}function Npe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Nn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,A,M,E,C=0;C<c;++C)for(m=lp(t,Ape,Mpe).visitAfter(d),p=0;p<v;++p)b=t[p],M=r[b.index],E=M*M,w=b.x+b.vx,A=b.y+b.vy,m.visit(N);function N(P,L,z,W,U){var re=P.data,Q=P.r,G=M+Q;if(re){if(re.index>b.index){var te=w-re.x-re.vx,Z=A-re.y-re.vy,q=te*te+Z*Z;q<G*G&&(te===0&&(te=Ki(o),q+=te*te),Z===0&&(Z=Ki(o),q+=Z*Z),q=(G-(q=Math.sqrt(q)))/q*s,b.vx+=(te*=q)*(G=(Q*=Q)/(E+Q)),b.vy+=(Z*=q)*G,re.vx-=te*(G=1-G),re.vy-=Z*G)}return}return L>w+G||W<w-G||z>A+G||U<A-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Nn(+p),h(),f):e},f}function $pe(e){return e.index}function a0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Ppe(e){var t=$pe,r=m,o,s=Nn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function b(E){for(var C=0,N=e.length;C<v;++C)for(var P=0,L,z,W,U,re,Q,G;P<N;++P)L=e[P],z=L.source,W=L.target,U=W.x+W.vx-z.x-z.vx||Ki(p),re=W.y+W.vy-z.y-z.vy||Ki(p),Q=Math.sqrt(U*U+re*re),Q=(Q-c[P])/Q*E*o[P],U*=Q,re*=Q,W.vx-=U*(G=h[P]),W.vy-=re*G,z.vx+=U*(G=1-G),z.vy+=re*G}function w(){if(f){var E,C=f.length,N=e.length,P=new Map(f.map((z,W)=>[t(z,W,f),z])),L;for(E=0,d=new Array(C);E<N;++E)L=e[E],L.index=E,typeof L.source!="object"&&(L.source=a0(P,L.source)),typeof L.target!="object"&&(L.target=a0(P,L.target)),d[L.source.index]=(d[L.source.index]||0)+1,d[L.target.index]=(d[L.target.index]||0)+1;for(E=0,h=new Array(N);E<N;++E)L=e[E],h[E]=d[L.source.index]/(d[L.source.index]+d[L.target.index]);o=new Array(N),A(),c=new Array(N),M()}}function A(){if(f)for(var E=0,C=e.length;E<C;++E)o[E]=+r(e[E],E,e)}function M(){if(f)for(var E=0,C=e.length;E<C;++E)c[E]=+s(e[E],E,e)}return b.initialize=function(E,C){f=E,p=C,w()},b.links=function(E){return arguments.length?(e=E,w(),b):e},b.id=function(E){return arguments.length?(t=E,b):t},b.iterations=function(E){return arguments.length?(v=+E,b):v},b.strength=function(E){return arguments.length?(r=typeof E=="function"?E:Nn(+E),A(),b):r},b.distance=function(E){return arguments.length?(s=typeof E=="function"?E:Nn(+E),M(),b):s},b}const Ope=1664525,Rpe=1013904223,c0=4294967296;function Dpe(){let e=1;return()=>(e=(Ope*e+Rpe)%c0)/c0}function zpe(e){return e.x}function Ipe(e){return e.y}var Fpe=10,Hpe=Math.PI*(3-Math.sqrt(5));function qpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=rp(m),p=ka("tick","end"),v=Dpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(M){var E,C=e.length,N;M===void 0&&(M=1);for(var P=0;P<M;++P)for(r+=(c-r)*s,d.forEach(function(L){L(r)}),E=0;E<C;++E)N=e[E],N.fx==null?N.x+=N.vx*=f:(N.x=N.fx,N.vx=0),N.fy==null?N.y+=N.vy*=f:(N.y=N.fy,N.vy=0);return t}function w(){for(var M=0,E=e.length,C;M<E;++M){if(C=e[M],C.index=M,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var N=Fpe*Math.sqrt(.5+M),P=M*Hpe;C.x=N*Math.cos(P),C.y=N*Math.sin(P)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function A(M){return M.initialize&&M.initialize(e,v),M}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(M){return arguments.length?(e=M,w(),d.forEach(A),t):e},alpha:function(M){return arguments.length?(r=+M,t):r},alphaMin:function(M){return arguments.length?(o=+M,t):o},alphaDecay:function(M){return arguments.length?(s=+M,t):+s},alphaTarget:function(M){return arguments.length?(c=+M,t):c},velocityDecay:function(M){return arguments.length?(f=1-M,t):1-f},randomSource:function(M){return arguments.length?(v=M,d.forEach(A),t):v},force:function(M,E){return arguments.length>1?(E==null?d.delete(M):d.set(M,A(E)),t):d.get(M)},find:function(M,E,C){var N=0,P=e.length,L,z,W,U,re;for(C==null?C=1/0:C*=C,N=0;N<P;++N)U=e[N],L=M-U.x,z=E-U.y,W=L*L+z*z,W<C&&(re=U,C=W);return re},on:function(M,E){return arguments.length>1?(p.on(M,E),t):p.on(M)}}}function Bpe(){var e,t,r,o,s=Nn(-30),c,f=1,d=1/0,h=.81;function p(w){var A,M=e.length,E=lp(e,zpe,Ipe).visitAfter(m);for(o=w,A=0;A<M;++A)t=e[A],E.visit(b)}function v(){if(e){var w,A=e.length,M;for(c=new Array(A),w=0;w<A;++w)M=e[w],c[M.index]=+s(M,w,e)}}function m(w){var A=0,M,E,C=0,N,P,L;if(w.length){for(N=P=L=0;L<4;++L)(M=w[L])&&(E=Math.abs(M.value))&&(A+=M.value,C+=E,N+=E*M.x,P+=E*M.y);w.x=N/C,w.y=P/C}else{M=w,M.x=M.data.x,M.y=M.data.y;do A+=c[M.data.index];while(M=M.next)}w.value=A}function b(w,A,M,E){if(!w.value)return!0;var C=w.x-t.x,N=w.y-t.y,P=E-A,L=C*C+N*N;if(P*P/h<L)return L<d&&(C===0&&(C=Ki(r),L+=C*C),N===0&&(N=Ki(r),L+=N*N),L<f&&(L=Math.sqrt(f*L)),t.vx+=C*w.value*o/L,t.vy+=N*w.value*o/L),!0;if(w.length||L>=d)return;(w.data!==t||w.next)&&(C===0&&(C=Ki(r),L+=C*C),N===0&&(N=Ki(r),L+=N*N),L<f&&(L=Math.sqrt(f*L)));do w.data!==t&&(P=c[w.data.index]*o/L,t.vx+=C*P,t.vy+=N*P);while(w=w.next)}return p.initialize=function(w,A){e=w,r=A,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Nn(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Wpe(e){var t=Nn(.1),r,o,s;typeof e!="function"&&(e=Nn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Nn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Nn(+d),f(),c):e},c}function Upe(e){var t=Nn(.1),r,o,s;typeof e!="function"&&(e=Nn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Nn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Nn(+d),f(),c):e},c}var Vpe=Object.defineProperty,jpe=(e,t,r)=>t in e?Vpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t,r)=>jpe(e,typeof t!="symbol"?t+"":t,r);function Gpe(){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 u0(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 Xi(...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]=Xi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:u0(t[o])&&u0(r[o])?t[o]=Xi(t[o],r[o]):t[o]=r[o])}),t},{})}const y1={mergeArrays:!0};Xi.options=y1;Xi.withOptions=(e,...t)=>{Xi.options={mergeArrays:!0,...e};const r=Xi(...t);return Xi.options=y1,r};function Kpe(){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 Xpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function b1(e){e.preventDefault(),e.stopPropagation()}function w1(e){return typeof e=="number"}function ro(e,t){return w1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Ype(e){return`${e.source.id}-${e.target.id}`}function x1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Zpe(e){return`url(#${x1(e.color)})`}function Jpe(e){return{size:e,padding:(t,r)=>ro(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const S1={Arrow:e=>Jpe(e)},Qpe=(e,t,r)=>[t/2,r/2],_1=(e,t,r)=>[f0(0,t),f0(0,r)];function f0(e,t){return Math.random()*(t-e)+e}function ege(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?_1(r,o,s):[c,f]}}const rh={Centered:Qpe,Randomized:_1,Stable:ege};function tge(){return{autoResize:!1,callbacks:{},hooks:{},initial:Xpe(),nodeRadius:16,marker:S1.Arrow(4),modifiers:{},positionInitializer:rh.Centered,simulation:{alphas:Gpe(),forces:Kpe()},zoom:{initial:1,min:.1,max:2}}}function nge(e={}){return Xi.withOptions({mergeArrays:!1},tge(),e)}function rge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>b1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,sp.translate(c,f).scale(d)),p.append("g")}function ige({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function oge({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Sde().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Fn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Fn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function sge({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}:lge({nodes:d,links:c},r)}function lge(e,t){const r=[...age(e,t),...cge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function age(e,t){return k1(e,t,(r,o)=>r.target.id===o.id)}function cge(e,t){return k1(e,t,(r,o)=>r.source.id===o.id)}function k1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function ih(e){return e.x??0}function oh(e){return e.y??0}function cp({source:e,target:t}){const r=new En(ih(e),oh(e)),o=new En(ih(t),oh(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function T1({center:e,node:t}){const r=new En(ih(t),oh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new En(0,1))),{n:r,c:o}}function C1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=cp({config:e,source:t,target:r}),f=o.add(c.multiply(ro(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function uge(e){const{start:t,end:r}=C1(e);return`M${t.x},${t.y}
|
|
45
|
-
L${r.x},${r.y}`}function fge(e){const{start:t,end:r}=
|
|
46
|
-
A${m},${m},0,0,1,${v.x},${v.y}`}function hge({center:e,config:t,node:r}){const{n:o,c:s}=
|
|
47
|
-
A${c},${c},0,1,0,${v.x},${v.y}`}function pge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=cp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function gge({center:e,config:t,node:r}){const{n:o,c:s}=T1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ro(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ms={line:{labelTransform:fge,path:uge},arc:{labelTransform:pge,path:dge},reflexive:{labelTransform:gge,path:hge}};function vge(e){return e.append("g").classed("links",!0).selectAll("path")}function mge({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Ype(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>Zpe(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function yge(e){bge(e),wge(e)}function bge({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Ms.reflexive.path({config:t,node:s.source,center:e}):E1(r,s.source,s.target)?Ms.arc.path({config:t,source:s.source,target:s.target}):Ms.line.path({config:t,source:s.source,target:s.target}))}function wge({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Ms.reflexive.labelTransform({config:e,node:s.source,center:t}):E1(r,s.source,s.target)?Ms.arc.labelTransform({config:e,source:s.source,target:s.target}):Ms.line.labelTransform({config:e,source:s.source,target:s.target}))}function E1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function xge(e){return e.append("defs").selectAll("marker")}function Sge({config:e,graph:t,selection:r}){return r==null?void 0:r.data(_ge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>x1(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",kge(e.marker.path)),s})}function _ge(e){return[...new Set(e.links.map(t=>t.color))]}function kge(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 Tge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Cge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const A=w.append("circle").classed("node",!0).attr("r",E=>ro(e,E)).on("contextmenu",(E,C)=>{b1(E),o(C)}).on("pointerdown",(E,C)=>Lge(E,C,s??o)).style("fill",E=>E.color);(v=(p=e.modifiers).node)==null||v.call(p,A);const M=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,M),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Ege=500;function Lge(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>Ege){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Age(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Mge({center:e,config:t,graph:r,onTick:o}){var s,c;const f=qpe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",Wpe(()=>e().x).strength(m)).force("y",Upe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",Bpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Npe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",Ppe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Nge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=dpe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class $ge{constructor(t,r,o){if(Ht(this,"nodeTypes"),Ht(this,"_nodeTypeFilter"),Ht(this,"_includeUnlinked",!0),Ht(this,"_linkFilter",()=>!0),Ht(this,"_showLinkLabels",!0),Ht(this,"_showNodeLabels",!0),Ht(this,"filteredGraph"),Ht(this,"width",0),Ht(this,"height",0),Ht(this,"simulation"),Ht(this,"canvas"),Ht(this,"linkSelection"),Ht(this,"nodeSelection"),Ht(this,"markerSelection"),Ht(this,"zoom"),Ht(this,"drag"),Ht(this,"xOffset",0),Ht(this,"yOffset",0),Ht(this,"scale"),Ht(this,"focusedNode"),Ht(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Oue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return En.of([this.width,this.height]).divide(2).subtract(En.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(w1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Sge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=mge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Cge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Mge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Nge({config:this.config,canvasContainer:()=>Fn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=rge({applyZoom:this.scale!==1,container:Fn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=vge(this.canvas),this.nodeSelection=Tge(this.canvas),this.markerSelection=xge(this.canvas),this.drag=oge({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Age(this.nodeSelection),yge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Fn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){ige({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=sge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function d0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Pge(e){return{...e}}function L1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Oge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Rge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Dge=["id","checked","onChange"],zge=["for"],Ige=ut({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=N_(t),o=We(),s=We(!1),c=We(),f=We();Mh(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),qs(()=>{p()}),Eu(()=>{var b;(b=f.value)==null||b.shutdown()}),Bt(r,p);function d(b,w){var A;(A=f.value)==null||A.filterNodesByType(w,b)}function h(b){c.value=b,s.value=!0}function p(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new $ge(o.value,r.value,nge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:A})=>w===0&&A===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:S1.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?rh.Randomized:rh.Centered,zoom:{min:.5,max:2}})))}const v=b=>b.button===0;function m(b){if(Br)return;let w=0,A=0,M=0;b.on("pointerdown",(E,C)=>{C.type!=="external"&&(!C.x||!C.y||!v(E)||(w=C.x,A=C.y,M=Date.now()))}).on("pointerup",(E,C)=>{if(C.type==="external"||!C.x||!C.y||!v(E)||Date.now()-M>500)return;const N=C.x-w,P=C.y-A;N**2+P**2<100&&h(C.id)})}return(b,w)=>{var N;const A=wi,M=Pue,E=Bw,C=Gr("tooltip");return oe(),me("div",Oge,[Y("div",null,[Y("div",Rge,[(oe(!0),me(ct,null,gi((N=I(f))==null?void 0:N.nodeTypes.sort(),P=>{var L;return oe(),me("div",{key:P,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${P}`,type:"checkbox",checked:(L=I(f))==null?void 0:L.nodeTypeFilter.includes(P),onChange:z=>d(P,z.target.checked)},null,40,Dge),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${P}`,"border-b-2":"",style:Jt({"border-color":`var(--color-node-${P})`})},He(P)+" Modules",13,zge)])}),128)),w[2]||(w[2]=Y("div",{"flex-auto":""},null,-1)),Y("div",null,[mt(Pe(A,{icon:"i-carbon-reset",onClick:p},null,512),[[C,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(E,{modelValue:I(s),"onUpdate:modelValue":w[1]||(w[1]=P=>At(s)?s.value=P:null),direction:"right"},{default:ot(()=>[I(c)?(oe(),rt(By,{key:0},{default:ot(()=>[Pe(M,{id:I(c),"project-name":b.projectName,onClose:w[0]||(w[0]=P=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),Fge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Hge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},qge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Bge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Wge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Uge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},A1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Gr("tooltip");return t.state==="pass"?(oe(),me("div",Fge)):t.failedSnapshot?mt((oe(),me("div",Hge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",qge)):t.mode==="todo"?mt((oe(),me("div",Bge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?mt((oe(),me("div",Wge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Uge))}}});function Vge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function jge(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 Gge(e){const t=e.map(o=>jge(o)),r=Vge(t);return t.map(({raw:o,id:s})=>L1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function Kge(e,t){return L1({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 Xge(e,t){if(!e)return d0({});const r=Gge(e.externalized),o=e.inlined.map(d=>Kge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return Pge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return d0({nodes:s,links:f})}const Yge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Zge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Jge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Qge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},eve={class:"flex text-lg"},tve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},nve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},rve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},ive={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},ove=["flex-1"],sve=ut({__name:"FileDetails",setup(e){const t=We({nodes:[],links:[]}),r=We(!1),o=We(!1),s=We(!1),c=We(void 0),f=Te(()=>{const E=Zt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),d=Te(()=>Zt.value&&Bh(Zt.value)),h=Te(()=>{var E,C;return!!((C=(E=Zt.value)==null?void 0:E.meta)!=null&&C.typecheck)});function p(){var C;const E=(C=Zt.value)==null?void 0:C.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function v(E){E==="graph"&&(o.value=!0),jn.value=E}const m=Te(()=>{var E;return((E=Hw.value)==null?void 0:E.reduce((C,{size:N})=>C+N,0))??0});function b(E){r.value=E}async function w(){var E;if(!(s.value||((E=f.value)==null?void 0:E.filepath)===c.value)){s.value=!0,await un();try{const C=f.value;if(!C)return;(!c.value||C.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=Xge(await wt.rpc.getModuleGraph(C.projectName,C.filepath,!!Ro),C.filepath),c.value=C.filepath),v("graph")}finally{await new Promise(C=>setTimeout(C,100)),s.value=!1}}}Ub(()=>[f.value,jn.value],([,E])=>{E==="graph"&&w()},{debounce:100,immediate:!0});const A=Te(()=>{var E;return Qb((E=Zt.value)==null?void 0:E.file.projectName)}),M=Te(()=>{switch(A.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(E,C)=>{var Q,G,te,Z;const N=A1,P=wi,L=Ige,z=Tue,W=vue,U=uue,re=Gr("tooltip");return I(Zt)?(oe(),me("div",Yge,[Y("div",null,[Y("div",Zge,[Pe(N,{state:(Q=I(Zt).result)==null?void 0:Q.state,mode:I(Zt).mode,"failed-snapshot":I(d)},null,8,["state","mode","failed-snapshot"]),I(h)?mt((oe(),me("div",Jge,null,512)),[[re,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),(G=I(Zt))!=null&&G.file.projectName?(oe(),me("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:Jt({backgroundColor:I(A),color:I(M)})},He(I(Zt).file.projectName),5)):Ye("",!0),Y("div",Qge,He((te=I(Zt))==null?void 0:te.name),1),Y("div",eve,[I(Br)?Ye("",!0):mt((oe(),rt(P,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((Z=I(Zt))!=null&&Z.filepath),onClick:p},null,8,["disabled"])),[[re,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",tve,[Y("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==null}]),"data-testid":"btn-report",onClick:C[0]||(C[0]=q=>v(null))},C[4]||(C[4]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="graph"}]),onClick:C[1]||(C[1]=q=>v("graph"))},[I(s)?(oe(),me("span",nve)):(oe(),me("span",rve)),C[5]||(C[5]=pt(" Module Graph "))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="editor"}]),onClick:C[2]||(C[2]=q=>v("editor"))},[C[6]||(C[6]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+He(I(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="console",op20:I(jn)!=="console"&&I(m)===0}]),onClick:C[3]||(C[3]=q=>v("console"))},[C[7]||(C[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+He(I(m))+") ",1)],2)])]),Y("div",ive,[I(o)?(oe(),me("div",{key:0,"flex-1":I(jn)==="graph"&&""},[mt(Pe(L,{graph:I(t),"data-testid":"graph","project-name":I(Zt).file.projectName||""},null,8,["graph","project-name"]),[[Gi,I(jn)==="graph"&&!I(s)]])],8,ove)):Ye("",!0),I(jn)==="editor"?(oe(),rt(z,{key:I(Zt).filepath,file:I(Zt),"data-testid":"editor",onDraft:b},null,8,["file"])):I(jn)==="console"?(oe(),rt(W,{key:2,file:I(Zt),"data-testid":"console"},null,8,["file"])):I(jn)?Ye("",!0):(oe(),rt(U,{key:3,file:I(Zt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),lve={h:"full",flex:"~ col"},ave={"flex-auto":"","py-1":"","bg-white":""},cve=["src"],uve=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",lve,[r[0]||(r[0]=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),Y("div",ave,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,cve)])]))}}),fve={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},dve={"font-bold":""},hve={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},pve=["font-bold"],gve={text:"red500/70"},vve={key:1,text:"sm","mb-2":""},mve={"font-bold":""},yve={key:2,text:"sm","mb-2":""},bve={"font-bold":""},wve={key:3,text:"sm","font-thin":""},xve=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ct,null,[Y("h4",fve,[Y("span",dve,[pt(He(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ct,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+He(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",hve,[(oe(!0),me(ct,null,gi(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+He(s.method)+" "+He(s.file)+":",1),Y("span",gve,He(s.line)+":"+He(s.column),1),r[0]||(r[0]=Y("br",null,null,-1))],8,pve))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",vve,[r[1]||(r[1]=pt(" This error originated in ")),Y("span",mve,He(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Ye("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",yve,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),Y("span",bve,He(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=Y("br",null,null,-1)),r[6]||(r[6]=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",wve,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Y("br",null,null,-1),Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ye("",!0)],64)}}}),Sve={"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:""},_ve={class:"number","data-testid":"num-files"},kve={class:"number"},Tve={class:"number","text-red5":""},Cve={class:"number","text-red5":""},Eve={class:"number","text-red5":""},Lve={class:"number","data-testid":"run-time"},Ave={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Mve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Nve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},$ve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=xve;return oe(),me(ct,null,[Y("div",Sve,[r[8]||(r[8]=Y("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=Y("div",null,"Files",-1)),Y("div",_ve,He(I(Ce).summary.files),1),I(Ce).summary.filesSuccess?(oe(),me(ct,{key:0},[r[0]||(r[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=Y("div",null,"Pass",-1)),Y("div",kve,He(I(Ce).summary.filesSuccess),1)],64)):Ye("",!0),I(Ce).summary.filesFailed?(oe(),me(ct,{key:1},[r[2]||(r[2]=Y("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=Y("div",null," Fail ",-1)),Y("div",Tve,He(I(Ce).summary.filesFailed),1)],64)):Ye("",!0),I(Ce).summary.filesSnapshotFailed?(oe(),me(ct,{key:2},[r[4]||(r[4]=Y("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=Y("div",null," Snapshot Fail ",-1)),Y("div",Cve,He(I(Ce).summary.filesSnapshotFailed),1)],64)):Ye("",!0),I(Wi).length?(oe(),me(ct,{key:3},[r[6]||(r[6]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=Y("div",null," Errors ",-1)),Y("div",Eve,He(I(Wi).length),1)],64)):Ye("",!0),r[10]||(r[10]=Y("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=Y("div",null,"Time",-1)),Y("div",Lve,He(I(Ce).summary.time),1)]),I(Wi).length?(oe(),me("div",Ave,[r[15]||(r[15]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",Mve,[pt(" Vitest caught "+He(I(Wi).length)+" error"+He(I(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=Y("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),Y("details",Nve,[r[14]||(r[14]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),me(ct,null,gi(I(Wi),(s,c)=>(oe(),rt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),Pve=Kr($ve,[["__scopeId","data-v-0178ddee"]]),Ove={"p-2":"","text-center":"",flex:""},Rve={"text-4xl":"","min-w-2em":""},Dve={"text-md":""},zve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",Ove,[Y("div",null,[Y("div",Rve,[vn(t.$slots,"body")]),Y("div",Dve,[vn(t.$slots,"header")])])]))}}),Ive={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Fve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=zve;return oe(),me("div",Ive,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:ot(()=>r[0]||(r[0]=[pt(" Pass ")])),body:ot(()=>[pt(He(I(Ce).summary.testsSuccess),1)]),_:1}),Pe(o,{class:st({"text-red5":I(Ce).summary.testsFailed,op50:!I(Ce).summary.testsFailed}),"data-testid":"fail-entry"},{header:ot(()=>r[1]||(r[1]=[pt(" Fail ")])),body:ot(()=>[pt(He(I(Ce).summary.testsFailed),1)]),_:1},8,["class"]),I(Ce).summary.testsSkipped?(oe(),rt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:ot(()=>r[2]||(r[2]=[pt(" Skip ")])),body:ot(()=>[pt(He(I(Ce).summary.testsSkipped),1)]),_:1})):Ye("",!0),I(Ce).summary.testsTodo?(oe(),rt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:ot(()=>r[3]||(r[3]=[pt(" Todo ")])),body:ot(()=>[pt(He(I(Ce).summary.testsTodo),1)]),_:1})):Ye("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:ot(()=>r[4]||(r[4]=[pt(" Total ")])),body:ot(()=>[pt(He(I(Ce).summary.totalTests),1)]),_:1})])}}}),Hve={},qve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Bve={"aria-labelledby":"tests",m:"y-4 x-2"};function Wve(e,t){const r=Fve,o=Pve;return oe(),me("div",qve,[Y("section",Bve,[Pe(r)]),Pe(o)])}const Uve=Kr(Hve,[["render",Wve]]),Vve={},jve={h:"full",flex:"~ col"},Gve={class:"scrolls","flex-auto":"","py-1":""};function Kve(e,t){const r=Uve;return oe(),me("div",jve,[t[0]||(t[0]=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),Y("div",Gve,[Pe(r)])])}const Xve=Kr(Vve,[["render",Kve]]),Yve=["open"],Zve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=We(!0);return(r,o)=>(oe(),me("div",{open:I(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),vn(r.$slots,"summary",{open:I(t)}),o[2]||(o[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),vn(r.$slots,"default")],40,Yve))}}),Jve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Qve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",Jve,[Y("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},eme=["aria-label","data-current"],tme={key:1,"w-4":""},nme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},rme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ime={"text-sm":"",truncate:"","font-light":""},ome=["text","innerHTML"],sme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},lme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},ame={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},cme={key:1},ume=ut({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Te(()=>wt.state.idMap.get(e.taskId)),r=Te(()=>{if(Br)return!1;const E=t.value;return E&&Bh(E)});function o(){e.expandable&&(e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId))}async function s(E){var C;(C=e.onItemClick)==null||C.call(e,E),vs.value&&(su.value=!0,await un()),e.type==="file"?await Jh([E.file]):await Lce(E)}function c(E){return wt.rpc.updateSnapshot(E.file)}const f=Te(()=>e.indent<=0?[]:Array.from({length:e.indent},(E,C)=>`${e.taskId}-${C}`)),d=Te(()=>{const E=f.value,C=[];return(e.type==="file"||e.type==="suite")&&C.push("min-content"),C.push("min-content"),e.type==="suite"&&e.typecheck&&C.push("min-content"),C.push("minmax(0, 1fr)"),C.push("min-content"),`grid-template-columns: ${E.map(()=>"1rem").join(" ")} ${C.join(" ")};`}),h=Te(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Te(()=>Zb(e.name)),v=Te(()=>{const E=_E.value,C=p.value;return E?C.replace(E,N=>`<span class="highlight">${N}</span>`):C}),m=Te(()=>e.type!=="file"&&e.disableTaskLocation),b=Te(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Te(()=>m.value?"color-red5 dark:color-#f43f5e":null);function A(){var C;const E=t.value;e.type==="file"?(C=e.onItemClick)==null||C.call(e,E):_ue(E)}const M=Te(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(E,C)=>{const N=A1,P=Qve,L=wi,z=Gr("tooltip");return I(t)?(oe(),me("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:Jt(I(d)),"aria-label":E.name,"data-current":E.current,onClick:C[2]||(C[2]=W=>o())},[E.indent>0?(oe(!0),me(ct,{key:0},gi(I(f),W=>(oe(),me("div",{key:W,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),E.type==="file"||E.type==="suite"?(oe(),me("div",tme,[Y("div",{class:st(E.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Pe(N,{state:E.state,mode:I(t).mode,"failed-snapshot":I(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",nme,[E.type==="file"&&E.typecheck?mt((oe(),me("div",rme,null,512)),[[z,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),Y("span",ime,[E.type==="file"&&E.projectName?(oe(),me("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:Jt({backgroundColor:E.projectNameColor,color:I(M)})},He(E.projectName),5)):Ye("",!0),Y("span",{text:E.state==="fail"?"red-500":"",innerHTML:I(v)},null,8,ome)]),typeof E.duration=="number"?(oe(),me("span",sme,He(E.duration>0?E.duration:"< 1")+"ms ",1)):Ye("",!0)]),Y("div",lme,[!I(Br)&&I(r)?mt((oe(),rt(P,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:C[0]||(C[0]=Ec(W=>c(I(t)),["prevent","stop"]))},null,512)),[[z,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Pe(I(Ab),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",I(w)])},{popper:ot(()=>[I(m)?(oe(),me("div",ame,[C[5]||(C[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[pt(He(I(b))+": this feature is not available, you have disabled ",1),C[3]||(C[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),C[4]||(C[4]=pt(" in your configuration file."))]),C[6]||(C[6]=Y("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))])):(oe(),me("div",cme,He(I(b)),1))]),default:ot(()=>[Pe(L,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Ec(A,["prevent","stop"])})]),_:1},8,["class"]),I(Br)?Ye("",!0):mt((oe(),rt(L,{key:1,"data-testid":"btn-run-test",title:I(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:C[1]||(C[1]=Ec(W=>s(I(t)),["prevent","stop"]))},null,8,["title"])),[[z,I(h),void 0,{bottom:!0}]])])],12,eme)):Ye("",!0)}}}),fme=Kr(ume,[["__scopeId","data-v-476808c4"]]),dme={"flex-1":"","ms-2":"","select-none":""},hme=ut({__name:"FilterStatus",props:Wc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nh(e,"modelValue");return(r,o)=>(oe(),me("label",hi({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]=Ec(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),mt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[ST,t.value]]),Y("span",dme,He(r.label),1)],16))}});function pme(){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 Dc;function sh(){sh.init||(sh.init=!0,Dc=pme()!==-1)}var ju={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){sh(),un(()=>{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",Dc&&this.$el.appendChild(e),e.data="about:blank",Dc||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&&(!Dc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const gme=hy();fy("data-v-b329ee4c");const vme={class:"resize-observer",tabindex:"-1"};dy();const mme=gme((e,t,r,o,s,c)=>(oe(),rt("div",vme)));ju.render=mme;ju.__scopeId="data-v-b329ee4c";ju.__file="src/components/ResizeObserver.vue";function zc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zc=function(t){return typeof t}:zc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function yme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bme(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 wme(e,t,r){return t&&bme(e.prototype,t),e}function h0(e){return xme(e)||Sme(e)||_me(e)||kme()}function xme(e){if(Array.isArray(e))return lh(e)}function Sme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _me(e,t){if(e){if(typeof e=="string")return lh(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 lh(e,t)}}function lh(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 kme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Cme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(h0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(h0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function M1(e,t){if(e===t)return!0;if(zc(e)==="object"){for(var r in e)if(!M1(e[r],t[r]))return!1;return!0}return!1}var Eme=function(){function e(t,r,o){yme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return wme(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Tme(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=Cme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),un(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function N1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new Eme(e,o,r);e._vue_visibilityState=s}}function Lme(e,t,r){var o=t.value,s=t.oldValue;if(!M1(o,s)){var c=e._vue_visibilityState;if(!o){$1(e);return}c?c.createObserver(o,r):N1(e,{value:o},r)}}function $1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Ame={beforeMount:N1,updated:Lme,unmounted:$1},Mme={itemsLimit:1e3},Nme=/(auto|scroll)/;function P1(e,t){return e.parentNode===null?t:P1(e.parentNode,t.concat([e]))}var hd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},$me=function(t){return hd(t,"overflow")+hd(t,"overflow-y")+hd(t,"overflow-x")},Pme=function(t){return Nme.test($me(t))};function p0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=P1(e.parentNode,[]),r=0;r<t.length;r+=1)if(Pme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ah(e){"@babel/helpers - typeof";return ah=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},ah(e)}var Ome={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 Rme(){return this.items.length&&ah(this.items[0])!=="object"}var ch=!1;if(typeof window<"u"){ch=!1;try{var Dme=Object.defineProperty({},"passive",{get:function(){ch=!0}});window.addEventListener("test",null,Dme)}catch{}}let zme=0;var up={name:"RecycleScroller",components:{ResizeObserver:ju},directives:{ObserveVisibility:Ame},props:{...Ome,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:Rme,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=kh({id:zme++,index:t,used:!0,key:o,type:s}),f=xh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,A=this.itemIndexByKey;let M,E,C,N,P;if(!p)M=E=N=P=C=0;else if(this.$_prerender)M=N=0,E=P=Math.min(this.prerender,h.length),C=null;else{const G=this.getScroll();if(t){let q=G.start-this.$_lastUpdateScrollPosition;if(q<0&&(q=-q),r===null&&q<c||q<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const te=this.buffer;G.start-=te,G.end+=te;let Z=0;if(this.$refs.before&&(Z=this.$refs.before.scrollHeight,G.start-=Z),this.$refs.after){const q=this.$refs.after.scrollHeight;G.end+=q}if(r===null){let q,F=0,k=p-1,B=~~(p/2),V;do V=B,q=v[B].accumulator,q<G.start?F=B:B<p-1&&v[B+1].accumulator>G.start&&(k=B),B=~~((F+k)/2);while(B!==V);for(B<0&&(B=0),M=B,C=v[p-1].accumulator,E=B;E<p&&v[E].accumulator<G.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),N=M;N<p&&Z+v[N].accumulator<G.start;N++);for(P=N;P<p&&Z+v[P].accumulator<G.end;P++);}else{M=~~(G.start/r*o);const q=M%o;M-=q,E=Math.ceil(G.end/r*o),N=Math.max(0,Math.floor((G.start-Z)/r*o)),P=Math.floor((G.end-Z)/r*o),M<0&&(M=0),E>p&&(E=p),N<0&&(N=0),P>p&&(P=p),C=Math.ceil(p/o)*r}}E-M>Mme.itemsLimit&&this.itemsLimitError(),this.totalSize=C;let L;const z=M<=this.$_endIndex&&E>=this.$_startIndex;if(z)for(let G=0,te=w.length;G<te;G++)L=w[G],L.nr.used&&(e&&(L.nr.index=A[L.item[d]]),(L.nr.index==null||L.nr.index<M||L.nr.index>=E)&&this.unuseView(L));const W=z?null:new Map;let U,re,Q;for(let G=M;G<E;G++){U=h[G];const te=d?U[d]:U;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(L=m.get(te),!r&&!v[G].size){L&&this.unuseView(L);continue}re=U[f];let Z=b.get(re),q=!1;if(!L)z?Z&&Z.length?L=Z.pop():L=this.addView(w,G,U,te,re):(Q=W.get(re)||0,(!Z||Q>=Z.length)&&(L=this.addView(w,G,U,te,re),this.unuseView(L,!0),Z=b.get(re)),L=Z[Q],W.set(re,Q+1)),m.delete(L.nr.key),L.nr.used=!0,L.nr.index=G,L.nr.key=te,L.nr.type=re,m.set(te,L),q=!0;else if(!L.nr.used&&(L.nr.used=!0,q=!0,Z)){const F=Z.indexOf(L);F!==-1&&Z.splice(F,1)}L.item=U,q&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(L.position=v[G-1].accumulator,L.offset=0):(L.position=Math.floor(G/o)*r,L.offset=G%o*s)}return this.$_startIndex=M,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",M,E,N,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=p0(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,ch?{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=p0(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 Ime={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Fme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Hme(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Gr("observe-visibility");return mt((oe(),me("div",{class:st(["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?(oe(),me("div",Ime,[vn(e.$slots,"before")],512)):Ye("v-if",!0),(oe(),rt(bv(r.listTag),{ref:"wrapper",style:Jt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:ot(()=>[(oe(!0),me(ct,null,gi(s.pool,h=>(oe(),rt(bv(r.itemTag),hi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},nk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:ot(()=>[vn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),vn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",Fme,[vn(e.$slots,"after")],512)):Ye("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}up.render=Hme;up.__file="src/components/RecycleScroller.vue";function qme(e){const t=Te(()=>qd.value?!1:!et.onlyTests),r=Te(()=>zn.value===""),o=We(zn.value);Ub(zn,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;zn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Rs.value&&(ln.value.search=(h==null?void 0:h.trim())??"",ln.value.failed=p,ln.value.success=v,ln.value.skipped=m,ln.value.onlyTests=b)}return Bt(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ce.filterNodes()},{flush:"post"}),Bt(()=>Er.value.length,h=>{h&&(ln.value.expandAll=void 0)},{flush:"post"}),{initialized:Rs,filter:et,search:zn,disableFilter:t,isFiltered:Jb,isFilteredByStatus:qd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Fu,testsTotal:kE,uiEntries:Bn}}const Bme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Wme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Ume=["op"],Vme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},jme={"text-red5":""},Gme={"text-yellow5":""},Kme={"text-green5":""},Xme={class:"text-purple5:50"},Yme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Zme=["disabled"],Jme=["disabled"],Qme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},e0e=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Te(()=>Bu.value.includeTaskLocation),s=We(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:A,filteredFiles:M,testsTotal:E,uiEntries:C}=qme(s),N=We("grid-cols-2"),P=We("grid-col-span-2"),L=We(),{width:z}=Uh();return Bt(()=>z.value*(gn.navigation/100),W=>{W<420?(N.value="grid-cols-2",P.value="grid-col-span-2"):(N.value="grid-cols-4",P.value="grid-col-span-4")}),(W,U)=>{const re=wi,Q=hme,G=fme,te=Zve,Z=Gr("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:L,h:"full",flex:"~ col"},[Y("div",null,[Y("div",Bme,[vn(W.$slots,"header",{filteredFiles:I(p)||I(v)?I(M):void 0})]),Y("div",Wme,[U[13]||(U[13]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),mt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=q=>At(d)?d.value=q:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:I(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Pd(q=>I(w)(!1),["esc"])),U[2]||(U[2]=Pd(q=>r("run",I(p)||I(v)?I(M):void 0),["enter"]))]},null,40,Ume),[[xT,I(d)]]),mt(Pe(re,{disabled:I(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=q=>I(w)(!0))},null,8,["disabled"]),[[Z,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(I(N))},[Y("div",{class:st(I(P)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),mt(Pe(re,{disabled:I(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=q=>I(A)(!1))},null,8,["disabled"]),[[Z,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(Q,{modelValue:I(f).failed,"onUpdate:modelValue":U[5]||(U[5]=q=>I(f).failed=q),label:"Fail"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).success,"onUpdate:modelValue":U[6]||(U[6]=q=>I(f).success=q),label:"Pass"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=q=>I(f).skipped=q),label:"Skip"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=q=>I(f).onlyTests=q),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...q)=>I(fm)&&I(fm)(...q))},[Pe(te,null,tk({default:ot(()=>[(I(p)||I(v))&&I(C).length===0?(oe(),me(ct,{key:0},[I(c)?(oe(),me("div",Yme,[U[18]||(U[18]=Y("div",{op30:""}," No matched test ",-1)),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(I(m)?null:"hover:op100"),disabled:I(m),onClickPassive:U[9]||(U[9]=q=>I(w)(!0))}," Clear Search ",42,Zme),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(I(h)?null:"hover:op100"),disabled:I(h),onClickPassive:U[10]||(U[10]=q=>I(A)(!0))}," Clear Filter ",42,Jme),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...q)=>I(b)&&I(b)(...q))}," Clear All ",32)])):(oe(),me("div",Qme,U[19]||(U[19]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),rt(I(up),{key:1,"page-mode":"","key-field":"id","item-size":28,items:I(C),buffer:100},{default:ot(({item:q})=>[Pe(G,{class:st(["h-28px m-0 p-0",I(eo)===q.id?"bg-active":""]),"task-id":q.id,expandable:q.expandable,type:q.type,current:I(eo)===q.id,indent:q.indent,name:q.name,typecheck:q.typecheck===!0,"project-name":q.projectName??"","project-name-color":q.projectNameColor??"",state:q.state,duration:q.duration,opened:q.expanded,"disable-task-location":!I(o),"on-item-click":W.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},[I(c)?{name:"summary",fn:ot(()=>[Y("div",Vme,[Y("span",jme," FAIL ("+He(I(E).failed)+") ",1),U[16]||(U[16]=Y("span",null,"/",-1)),Y("span",Gme," RUNNING ("+He(I(E).running)+") ",1),Y("span",Kme," PASS ("+He(I(E).success)+") ",1),U[17]||(U[17]=Y("span",null,"/",-1)),Y("span",Xme," SKIP ("+He(I(f).onlyTests?I(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),t0e=""+new URL("../favicon.svg",import.meta.url).href,n0e={class:"flex text-lg"},r0e=ut({__name:"Navigation",setup(e){function t(){return wt.rpc.updateSnapshot()}const r=Te(()=>Sa.value?"light":"dark");async function o(f){vs.value&&(su.value=!0,await un(),to.value&&(lu(!0),await un())),f!=null&&f.length?await Jh(f):await Cce()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=wi,p=e0e,v=Gr("tooltip");return oe(),rt(p,{border:"r base","on-item-click":I(lw),nested:!0,onRun:o},{header:ot(({filteredFiles:m})=>[d[8]||(d[8]=Y("img",{"w-6":"","h-6":"",src:t0e,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",n0e,[mt(Pe(h,{title:"Collapse tests",disabled:!I(Rs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Gi,!I(xm)],[v,"Collapse tests",void 0,{bottom:!0}]]),mt(Pe(h,{disabled:!I(Rs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Gi,I(xm)],[v,"Expand tests",void 0,{bottom:!0}]]),mt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>I(lu)(!0))},null,512),[[Gi,I(Vd)&&!I(vs)||!I(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),I(Vd)&&!I(vs)?(oe(),rt(I(Ab),{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:ot(()=>d[6]||(d[6]=[Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:ot(()=>[d[7]||(d[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ye("",!0),I(vs)?mt((oe(),rt(h,{key:1,disabled:I(su),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>I(eL)())},null,8,["disabled"])),[[Gi,!I(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),I(Ce).summary.failedSnapshot&&!I(Br)?mt((oe(),rt(h,{key:2,icon:"i-carbon:result-old",disabled:!I(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>I(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),I(Br)?Ye("",!0):mt((oe(),rt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),mt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>I(Jce)())},null,512),[[v,`Toggle to ${I(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),i0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},o0e=ut({__name:"ProgressBar",setup(e){const{width:t}=Uh(),r=Te(()=>Ce.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":JE.value?null:"in-progress"),o=Te(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=Te(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=Te(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=Te(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("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:st(I(r))},[Y("div",i0e,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(I(r)),style:Jt(`width: ${I(s)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(I(r)),style:Jt(`left: ${I(s)}px; width: ${I(o)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(I(r)),style:Jt(`left: ${I(o)+I(s)}px; width: ${I(f)}px;`)}," ",6)])],2))}}),s0e=Kr(o0e,[["__scopeId","data-v-54017b6a"]]),g0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ma("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},l0e=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},a0e={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function c0e(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Jt(e.style)},[vn(e.$slots,"default")],4)}const xc=l0e(a0e,[["render",c0e]]),u0e={"h-screen":"","w-screen":"",overflow:"hidden"},f0e=ut({__name:"index",setup(e){const t=QE(),r=uc(m=>{p(),h(m)},0),o=uc(m=>{m.forEach((b,w)=>{br.value[w]=b.size}),d(m)},0),s=uc(m=>{m.forEach((b,w)=>{Mo.value[w]=b.size}),h(m),v()},0),c=uc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);br.value[0]=100*b/m,br.value[1]=100-br.value[0],d([{size:br.value[0]},{size:br.value[1]}])}function d(m){gn.navigation=m[0].size,gn.details.size=m[1].size}function h(m){gn.details.browser=m[0].size,gn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=s0e,A=r0e,M=Xve,E=uve,C=sve,N=Bce,P=Nce;return oe(),me(ct,null,[Pe(w),Y("div",u0e,[Pe(I(g0),{class:"pt-4px",onResized:I(o),onResize:I(c),onReady:f},{default:ot(()=>[Pe(I(xc),{size:I(br)[0]},{default:ot(()=>[Pe(A)]),_:1},8,["size"]),Pe(I(xc),{size:I(br)[1]},{default:ot(()=>[I(Ro)?(oe(),rt(I(g0),{id:"details-splitpanes",key:"browser-detail",onResize:I(r),onResized:I(s)},{default:ot(()=>[Pe(I(xc),{size:I(Mo)[0],"min-size":"10"},{default:ot(()=>[b[0]||(Vc(-1),(b[0]=Pe(N)).cacheIndex=0,Vc(1),b[0])]),_:1},8,["size"]),Pe(I(xc),{size:I(Mo)[1]},{default:ot(()=>[I(t)?(oe(),rt(M,{key:"summary"})):I(to)?(oe(),rt(E,{key:"coverage",src:I(Tm)},null,8,["src"])):(oe(),rt(C,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),rt(eT,{key:"ui-detail"},{default:ot(()=>[I(t)?(oe(),rt(M,{key:"summary"})):I(to)?(oe(),rt(E,{key:"coverage",src:I(Tm)},null,8,["src"])):(oe(),rt(C,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),d0e=[{name:"index",path:"/",component:f0e,props:!0}];/*!
|
|
49
|
-
* vue-router v4.
|
|
44
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=j,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function K(){if(u.selectionStart!=null){var ce=a.somethingSelected(),ge=""+(ce?u.value:"");u.value="⇚",u.value=ge,i.prevInput=ce?"":"",u.selectionStart=1,u.selectionEnd=ge.length,l.selForContextMenu=a.doc.sel}}function j(){if(i.contextMenuPending==j&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&K();var ce=0,ge=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Gt(a,Mg)(a):ce++<10?l.detectingSelectAll=setTimeout(ge,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ge,200)}}if(h&&p>=9&&K(),G){xi(n);var ne=function(){nn(window,"mouseup",ne),setTimeout(j,20)};ze(window,"mouseup",ne)}else setTimeout(j,50)},zt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},zt.prototype.setUneditable=function(){},zt.prototype.needsContentAttribute=!1;function BS(n,i){if(i=i?ae(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=ye(Je(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(ze(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(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&&(nn(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 WS(n){n.off=nn,n.on=ze,n.wheelEventPixels=Yx,n.Doc=wn,n.splitLines=tr,n.countColumn=de,n.findColumn=le,n.isWordChar=Be,n.Pass=O,n.signal=Mt,n.Line=jo,n.changeEnd=Ai,n.scrollbarModel=sg,n.Pos=ee,n.cmpPos=Se,n.modes=Ho,n.mimeModes=fr,n.resolveMode=qo,n.getMode=Bo,n.modeExtensions=ki,n.extendMode=Wo,n.copyState=Mr,n.startState=Uo,n.innerMode=Vs,n.commands=gl,n.keyMap=ni,n.keyName=jg,n.isModifierKey=Ug,n.lookupKey=os,n.normalizeKeyMap=yS,n.StringStream=$t,n.SharedTextMarker=dl,n.TextMarker=Ni,n.LineWidget=fl,n.e_preventDefault=rn,n.e_stopPropagation=Io,n.e_stop=xi,n.addClass=Ne,n.contains=ie,n.rmClass=Z,n.keyNames=$i}OS(Ct),IS(Ct);var US="iter insert remove copy getEditor constructor".split(" ");for(var ic in wn.prototype)wn.prototype.hasOwnProperty(ic)&&Ee(US,ic)<0&&(Ct.prototype[ic]=function(n){return function(){return n.apply(this.doc,arguments)}}(wn.prototype[ic]));return ar(wn),Ct.inputStyles={textarea:zt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),dr.apply(this,arguments)},Ct.defineMIME=lo,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){wn.prototype[n]=i},Ct.fromTextArea=BS,WS(Ct),Ct.version="5.65.18",Ct})})(Bw);var Bs=Bw.exports;const mue=hw(Bs);var yue={exports:{}};(function(e,t){(function(r){r(Bs)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function T(Vt){return{type:Vt,style:"keyword"}}var R=T("keyword a"),se=T("keyword b"),pe=T("keyword c"),ee=T("keyword d"),Se=T("operator"),ft={type:"atom",style:"atom"};return{if:T("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:ee,break:ee,continue:ee,new:T("new"),delete:pe,void:pe,throw:pe,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Se,typeof:Se,instanceof:Se,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:T("this"),class:T("class"),super:T("atom"),yield:pe,export:T("export"),import:T("import"),extends:pe,await:pe}}(),w=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(T){for(var R=!1,se,pe=!1;(se=T.next())!=null;){if(!R){if(se=="/"&&!pe)return;se=="["?pe=!0:pe&&se=="]"&&(pe=!1)}R=!R&&se=="\\"}}var E,C;function A(T,R,se){return E=T,C=se,R}function P(T,R){var se=T.next();if(se=='"'||se=="'")return R.tokenize=L(se),R.tokenize(T,R);if(se=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(se=="."&&T.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return A(se);if(se=="="&&T.eat(">"))return A("=>","operator");if(se=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(se))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(se=="/")return T.eat("*")?(R.tokenize=z,z(T,R)):T.eat("/")?(T.skipToEnd(),A("comment","comment")):Un(T,R,1)?(N(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(T.eat("="),A("operator","operator",T.current()));if(se=="`")return R.tokenize=W,W(T,R);if(se=="#"&&T.peek()=="!")return T.skipToEnd(),A("meta","meta");if(se=="#"&&T.eatWhile(m))return A("variable","property");if(se=="<"&&T.match("!--")||se=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),A("comment","comment");if(w.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(T.eat("=")?(se=="!"||se=="=")&&T.eat("="):/[<>*+\-|&?]/.test(se)&&(T.eat(se),se==">"&&T.eat(se))),se=="?"&&T.eat(".")?A("."):A("operator","operator",T.current());if(m.test(se)){T.eatWhile(m);var pe=T.current();if(R.lastType!="."){if(b.propertyIsEnumerable(pe)){var ee=b[pe];return A(ee.type,ee.style,pe)}if(pe=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",pe)}return A("variable","variable",pe)}}function L(T){return function(R,se){var pe=!1,ee;if(d&&R.peek()=="@"&&R.match(M))return se.tokenize=P,A("jsonld-keyword","meta");for(;(ee=R.next())!=null&&!(ee==T&&!pe);)pe=!pe&&ee=="\\";return pe||(se.tokenize=P),A("string","string")}}function z(T,R){for(var se=!1,pe;pe=T.next();){if(pe=="/"&&se){R.tokenize=P;break}se=pe=="*"}return A("comment","comment")}function W(T,R){for(var se=!1,pe;(pe=T.next())!=null;){if(!se&&(pe=="`"||pe=="$"&&T.eat("{"))){R.tokenize=P;break}se=!se&&pe=="\\"}return A("quasi","string-2",T.current())}var U="([{}])";function re(T,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=T.string.indexOf("=>",T.start);if(!(se<0)){if(v){var pe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,se));pe&&(se=pe.index)}for(var ee=0,Se=!1,ft=se-1;ft>=0;--ft){var Vt=T.string.charAt(ft),yn=U.indexOf(Vt);if(yn>=0&&yn<3){if(!ee){++ft;break}if(--ee==0){Vt=="("&&(Se=!0);break}}else if(yn>=3&&yn<6)++ee;else if(m.test(Vt))Se=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Vo=T.string.charAt(ft-1);if(Vo==Vt&&T.string.charAt(ft-2)!="\\"){ft--;break}}else if(Se&&!ee){++ft;break}}Se&&!ee&&(R.fatArrowAt=ft)}}var Q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(T,R,se,pe,ee,Se){this.indented=T,this.column=R,this.type=se,this.prev=ee,this.info=Se,pe!=null&&(this.align=pe)}function te(T,R){if(!p)return!1;for(var se=T.localVars;se;se=se.next)if(se.name==R)return!0;for(var pe=T.context;pe;pe=pe.prev)for(var se=pe.vars;se;se=se.next)if(se.name==R)return!0}function Z(T,R,se,pe,ee){var Se=T.cc;for(q.state=T,q.stream=ee,q.marked=null,q.cc=Se,q.style=R,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ft=Se.length?Se.pop():h?Ee:de;if(ft(se,pe)){for(;Se.length&&Se[Se.length-1].lex;)Se.pop()();return q.marked?q.marked:se=="variable"&&te(T,pe)?"variable-2":R}}}var q={state:null,column:null,marked:null,cc:null};function F(){for(var T=arguments.length-1;T>=0;T--)q.cc.push(arguments[T])}function k(){return F.apply(null,arguments),!0}function B(T,R){for(var se=R;se;se=se.next)if(se.name==T)return!0;return!1}function V(T){var R=q.state;if(q.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=ie(T,R.context);if(se!=null){R.context=se;return}}else if(!B(T,R.localVars)){R.localVars=new Ue(T,R.localVars);return}}s.globalVars&&!B(T,R.globalVars)&&(R.globalVars=new Ue(T,R.globalVars))}}function ie(T,R){if(R)if(R.block){var se=ie(T,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(T,R.vars)?R:new Ne(R.prev,new Ue(T,R.vars),!1);else return null}function ye(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Ne(T,R,se){this.prev=T,this.vars=R,this.block=se}function Ue(T,R){this.name=T,this.next=R}var je=new Ue("this",new Ue("arguments",null));function it(){q.state.context=new Ne(q.state.context,q.state.localVars,!1),q.state.localVars=je}function tt(){q.state.context=new Ne(q.state.context,q.state.localVars,!0),q.state.localVars=null}it.lex=tt.lex=!0;function Je(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Je.lex=!0;function Ae(T,R){var se=function(){var pe=q.state,ee=pe.indented;if(pe.lexical.type=="stat")ee=pe.lexical.indented;else for(var Se=pe.lexical;Se&&Se.type==")"&&Se.align;Se=Se.prev)ee=Se.indented;pe.lexical=new G(ee,q.stream.column(),T,null,pe.lexical,R)};return se.lex=!0,se}function X(){var T=q.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}X.lex=!0;function ae(T){function R(se){return se==T?k():T==";"||se=="}"||se==")"||se=="]"?F():k(R)}return R}function de(T,R){return T=="var"?k(Ae("vardef",R),Io,ae(";"),X):T=="keyword a"?k(Ae("form"),O,de,X):T=="keyword b"?k(Ae("form"),de,X):T=="keyword d"?q.stream.match(/^\s*$/,!1)?k():k(Ae("stat"),J,ae(";"),X):T=="debugger"?k(ae(";")):T=="{"?k(Ae("}"),tt,Rt,X,Je):T==";"?k():T=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==X&&q.state.cc.pop()(),k(Ae("form"),O,de,X,Fo)):T=="function"?k(tr):T=="for"?k(Ae("form"),tt,Ea,de,Je,X):T=="class"||v&&R=="interface"?(q.marked="keyword",k(Ae("form",T=="class"?T:R),Ho,X)):T=="variable"?v&&R=="declare"?(q.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",R=="enum"?k(Oe):R=="type"?k(La,ae("operator"),Ve,ae(";")):k(Ae("form"),mn,ae("{"),Ae("}"),Rt,X,X)):v&&R=="namespace"?(q.marked="keyword",k(Ae("form"),Ee,de,X)):v&&R=="abstract"?(q.marked="keyword",k(de)):k(Ae("stat"),De):T=="switch"?k(Ae("form"),O,ae("{"),Ae("}","switch"),tt,Rt,X,X,Je):T=="case"?k(Ee,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Ae("form"),it,$e,de,X,Je):T=="export"?k(Ae("stat"),qo,X):T=="import"?k(Ae("stat"),ki,X):T=="async"?k(de):R=="@"?k(Ee,de):F(Ae("stat"),Ee,ae(";"),X)}function $e(T){if(T=="(")return k(ur,ae(")"))}function Ee(T,R){return H(T,R,!1)}function Ze(T,R){return H(T,R,!0)}function O(T){return T!="("?F():k(Ae(")"),J,ae(")"),X)}function H(T,R,se){if(q.state.fatArrowAt==q.stream.start){var pe=se?be:ue;if(T=="(")return k(it,Ae(")"),lt(ur,")"),X,ae("=>"),pe,Je);if(T=="variable")return F(it,mn,ae("=>"),pe,Je)}var ee=se?le:fe;return Q.hasOwnProperty(T)?k(ee):T=="function"?k(tr,ee):T=="class"||v&&R=="interface"?(q.marked="keyword",k(Ae("form"),Xu,X)):T=="keyword c"||T=="async"?k(se?Ze:Ee):T=="("?k(Ae(")"),J,ae(")"),X,ee):T=="operator"||T=="spread"?k(se?Ze:Ee):T=="["?k(Ae("]"),$t,X,ee):T=="{"?Tt(Xe,"}",null,ee):T=="quasi"?F(he,ee):T=="new"?k(ve(se)):k()}function J(T){return T.match(/[;\}\)\],]/)?F():F(Ee)}function fe(T,R){return T==","?k(J):le(T,R,!1)}function le(T,R,se){var pe=se==!1?fe:le,ee=se==!1?Ee:Ze;if(T=="=>")return k(it,se?be:ue,Je);if(T=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(pe):v&&R=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Ae(">"),lt(Ve,">"),X,pe):R=="?"?k(Ee,ae(":"),ee):k(ee);if(T=="quasi")return F(he,pe);if(T!=";"){if(T=="(")return Tt(Ze,")","call",pe);if(T==".")return k(Be,pe);if(T=="[")return k(Ae("]"),J,ae("]"),X,pe);if(v&&R=="as")return q.marked="keyword",k(Ve,pe);if(T=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),k(ee)}}function he(T,R){return T!="quasi"?F():R.slice(R.length-2)!="${"?k(he):k(J,_e)}function _e(T){if(T=="}")return q.marked="string-2",q.state.tokenize=W,k(he)}function ue(T){return re(q.stream,q.state),F(T=="{"?de:Ee)}function be(T){return re(q.stream,q.state),F(T=="{"?de:Ze)}function ve(T){return function(R){return R=="."?k(T?Le:qe):R=="variable"&&v?k(Pn,T?le:fe):F(T?Ze:Ee)}}function qe(T,R){if(R=="target")return q.marked="keyword",k(fe)}function Le(T,R){if(R=="target")return q.marked="keyword",k(le)}function De(T){return T==":"?k(X,de):F(fe,ae(";"),X)}function Be(T){if(T=="variable")return q.marked="property",k()}function Xe(T,R){if(T=="async")return q.marked="property",k(Xe);if(T=="variable"||q.style=="keyword"){if(q.marked="property",R=="get"||R=="set")return k(gt);var se;return v&&q.state.fatArrowAt==q.stream.start&&(se=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+se[0].length),k(nt)}else{if(T=="number"||T=="string")return q.marked=d?"property":q.style+" property",k(nt);if(T=="jsonld-keyword")return k(nt);if(v&&ye(R))return q.marked="keyword",k(Xe);if(T=="[")return k(Ee,Dt,ae("]"),nt);if(T=="spread")return k(Ze,nt);if(R=="*")return q.marked="keyword",k(Xe);if(T==":")return F(nt)}}function gt(T){return T!="variable"?F(nt):(q.marked="property",k(tr))}function nt(T){if(T==":")return k(Ze);if(T=="(")return F(tr)}function lt(T,R,se){function pe(ee,Se){if(se?se.indexOf(ee)>-1:ee==","){var ft=q.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),k(function(Vt,yn){return Vt==R||yn==R?F():F(T)},pe)}return ee==R||Se==R?k():se&&se.indexOf(";")>-1?F(T):k(ae(R))}return function(ee,Se){return ee==R||Se==R?k():F(T,pe)}}function Tt(T,R,se){for(var pe=3;pe<arguments.length;pe++)q.cc.push(arguments[pe]);return k(Ae(R,se),lt(T,R),X)}function Rt(T){return T=="}"?k():F(de,Rt)}function Dt(T,R){if(v){if(T==":")return k(Ve);if(R=="?")return k(Dt)}}function Wn(T,R){if(v&&(T==":"||R=="in"))return k(Ve)}function lr(T){if(v&&T==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,tn,Ve):k(Ve)}function tn(T,R){if(R=="is")return q.marked="keyword",k()}function Ve(T,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return q.marked="keyword",k(R=="typeof"?Ze:Ve);if(T=="variable"||R=="void")return q.marked="type",k(er);if(R=="|"||R=="&")return k(Ve);if(T=="string"||T=="number"||T=="atom")return k(er);if(T=="[")return k(Ae("]"),lt(Ve,"]",","),X,er);if(T=="{")return k(Ae("}"),ze,X,er);if(T=="(")return k(lt(Nt,")"),so,er);if(T=="<")return k(lt(Ve,">"),Ve);if(T=="quasi")return F(nn,er)}function so(T){if(T=="=>")return k(Ve)}function ze(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(ze):F(Yr,ze)}function Yr(T,R){if(T=="variable"||q.style=="keyword")return q.marked="property",k(Yr);if(R=="?"||T=="number"||T=="string")return k(Yr);if(T==":")return k(Ve);if(T=="[")return k(ae("variable"),Wn,ae("]"),Yr);if(T=="(")return F(_i,Yr);if(!T.match(/[;\}\)\],]/))return k()}function nn(T,R){return T!="quasi"?F():R.slice(R.length-2)!="${"?k(nn):k(Ve,Mt)}function Mt(T){if(T=="}")return q.marked="string-2",q.state.tokenize=W,k(nn)}function Nt(T,R){return T=="variable"&&q.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Nt):T==":"?k(Ve):T=="spread"?k(Nt):F(Ve)}function er(T,R){if(R=="<")return k(Ae(">"),lt(Ve,">"),X,er);if(R=="|"||T=="."||R=="&")return k(Ve);if(T=="[")return k(Ve,ae("]"),er);if(R=="extends"||R=="implements")return q.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function Pn(T,R){if(R=="<")return k(Ae(">"),lt(Ve,">"),X,er)}function ar(){return F(Ve,rn)}function rn(T,R){if(R=="=")return k(Ve)}function Io(T,R){return R=="enum"?(q.marked="keyword",k(Oe)):F(mn,Dt,cr,Ku)}function mn(T,R){if(v&&ye(R))return q.marked="keyword",k(mn);if(T=="variable")return V(R),k();if(T=="spread")return k(mn);if(T=="[")return Tt(Ws,"]");if(T=="{")return Tt(xi,"}")}function xi(T,R){return T=="variable"&&!q.stream.match(/^\s*:/,!1)?(V(R),k(cr)):(T=="variable"&&(q.marked="property"),T=="spread"?k(mn):T=="}"?F():T=="["?k(Ee,ae("]"),ae(":"),xi):k(ae(":"),mn,cr))}function Ws(){return F(mn,cr)}function cr(T,R){if(R=="=")return k(Ze)}function Ku(T){if(T==",")return k(Io)}function Fo(T,R){if(T=="keyword b"&&R=="else")return k(Ae("form","else"),de,X)}function Ea(T,R){if(R=="await")return k(Ea);if(T=="(")return k(Ae(")"),Us,X)}function Us(T){return T=="var"?k(Io,Si):T=="variable"?k(Si):F(Si)}function Si(T,R){return T==")"?k():T==";"?k(Si):R=="in"||R=="of"?(q.marked="keyword",k(Ee,Si)):F(Ee,Si)}function tr(T,R){if(R=="*")return q.marked="keyword",k(tr);if(T=="variable")return V(R),k(tr);if(T=="(")return k(it,Ae(")"),lt(ur,")"),X,lr,de,Je);if(v&&R=="<")return k(Ae(">"),lt(ar,">"),X,tr)}function _i(T,R){if(R=="*")return q.marked="keyword",k(_i);if(T=="variable")return V(R),k(_i);if(T=="(")return k(it,Ae(")"),lt(ur,")"),X,lr,Je);if(v&&R=="<")return k(Ae(">"),lt(ar,">"),X,_i)}function La(T,R){if(T=="keyword"||T=="variable")return q.marked="type",k(La);if(R=="<")return k(Ae(">"),lt(ar,">"),X)}function ur(T,R){return R=="@"&&k(Ee,ur),T=="spread"?k(ur):v&&ye(R)?(q.marked="keyword",k(ur)):v&&T=="this"?k(Dt,cr):F(mn,Dt,cr)}function Xu(T,R){return T=="variable"?Ho(T,R):fr(T,R)}function Ho(T,R){if(T=="variable")return V(R),k(fr)}function fr(T,R){if(R=="<")return k(Ae(">"),lt(ar,">"),X,fr);if(R=="extends"||R=="implements"||v&&T==",")return R=="implements"&&(q.marked="keyword"),k(v?Ve:Ee,fr);if(T=="{")return k(Ae("}"),dr,X)}function dr(T,R){if(T=="async"||T=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&q.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return q.marked="keyword",k(dr);if(T=="variable"||q.style=="keyword")return q.marked="property",k(lo,dr);if(T=="number"||T=="string")return k(lo,dr);if(T=="[")return k(Ee,Dt,ae("]"),lo,dr);if(R=="*")return q.marked="keyword",k(dr);if(v&&T=="(")return F(_i,dr);if(T==";"||T==",")return k(dr);if(T=="}")return k();if(R=="@")return k(Ee,dr)}function lo(T,R){if(R=="!"||R=="?")return k(lo);if(T==":")return k(Ve,cr);if(R=="=")return k(Ze);var se=q.state.lexical.prev,pe=se&&se.info=="interface";return F(pe?_i:tr)}function qo(T,R){return R=="*"?(q.marked="keyword",k(Uo,ae(";"))):R=="default"?(q.marked="keyword",k(Ee,ae(";"))):T=="{"?k(lt(Bo,"}"),Uo,ae(";")):F(de)}function Bo(T,R){if(R=="as")return q.marked="keyword",k(ae("variable"));if(T=="variable")return F(Ze,Bo)}function ki(T){return T=="string"?k():T=="("?F(Ee):T=="."?F(fe):F(Wo,Mr,Uo)}function Wo(T,R){return T=="{"?Tt(Wo,"}"):(T=="variable"&&V(R),R=="*"&&(q.marked="keyword"),k(Vs))}function Mr(T){if(T==",")return k(Wo,Mr)}function Vs(T,R){if(R=="as")return q.marked="keyword",k(Wo)}function Uo(T,R){if(R=="from")return q.marked="keyword",k(Ee)}function $t(T){return T=="]"?k():F(lt(Ze,"]"))}function Oe(){return F(Ae("form"),mn,ae("{"),Ae("}"),lt(Zr,"}"),X,X)}function Zr(){return F(mn,cr)}function js(T,R){return T.lastType=="operator"||T.lastType==","||w.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Un(T,R,se){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(se||0)))}return{startState:function(T){var R={tokenize:P,lastType:"sof",cc:[],lexical:new G((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(T,R){if(T.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=T.indentation(),re(T,R)),R.tokenize!=z&&T.eatSpace())return null;var se=R.tokenize(T,R);return E=="comment"?se:(R.lastType=E=="operator"&&(C=="++"||C=="--")?"incdec":E,Z(R,se,E,C,T))},indent:function(T,R){if(T.tokenize==z||T.tokenize==W)return r.Pass;if(T.tokenize!=P)return 0;var se=R&&R.charAt(0),pe=T.lexical,ee;if(!/^\s*else\b/.test(R))for(var Se=T.cc.length-1;Se>=0;--Se){var ft=T.cc[Se];if(ft==X)pe=pe.prev;else if(ft!=Fo&&ft!=Je)break}for(;(pe.type=="stat"||pe.type=="form")&&(se=="}"||(ee=T.cc[T.cc.length-1])&&(ee==fe||ee==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)pe=pe.prev;f&&pe.type==")"&&pe.prev.type=="stat"&&(pe=pe.prev);var Vt=pe.type,yn=se==Vt;return Vt=="vardef"?pe.indented+(T.lastType=="operator"||T.lastType==","?pe.info.length+1:0):Vt=="form"&&se=="{"?pe.indented:Vt=="form"?pe.indented+c:Vt=="stat"?pe.indented+(js(T,R)?f||c:0):pe.info=="switch"&&!yn&&s.doubleIndentSwitch!=!1?pe.indented+(/^(?:case|default)\b/.test(R)?c:2*c):pe.align?pe.column+(yn?0:1):pe.indented+(yn?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:Un,skipExpression:function(T){Z(T,"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})})})();var bue=yue.exports,wue={exports:{}};(function(e,t){(function(r){r(Bs)})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(k,B){function V(Ne){return B.tokenize=Ne,Ne(k,B)}var ie=k.next();if(ie=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?V(E("atom","]]>")):null:k.match("--")?V(E("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),V(C(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=E("meta","?>"),"meta"):(m=k.eat("/")?"closeTag":"openTag",B.tokenize=M,"tag bracket");if(ie=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function M(k,B){var V=k.next();if(V==">"||V=="/"&&k.eat(">"))return B.tokenize=w,m=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return m="equals",null;if(V=="<"){B.tokenize=w,B.state=W,B.tagName=B.tagStart=null;var ie=B.tokenize(k,B);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(V)?(B.tokenize=N(V),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(k){var B=function(V,ie){for(;!V.eol();)if(V.next()==k){ie.tokenize=M;break}return"string"};return B.isInAttribute=!0,B}function E(k,B){return function(V,ie){for(;!V.eol();){if(V.match(B)){ie.tokenize=w;break}V.next()}return k}}function C(k){return function(B,V){for(var ie;(ie=B.next())!=null;){if(ie=="<")return V.tokenize=C(k+1),V.tokenize(B,V);if(ie==">")if(k==1){V.tokenize=w;break}else return V.tokenize=C(k-1),V.tokenize(B,V)}return"meta"}}function A(k){return k&&k.toLowerCase()}function P(k,B,V){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=V,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function L(k){k.context&&(k.context=k.context.prev)}function z(k,B){for(var V;;){if(!k.context||(V=k.context.tagName,!h.contextGrabbers.hasOwnProperty(A(V))||!h.contextGrabbers[A(V)].hasOwnProperty(A(B))))return;L(k)}}function W(k,B,V){return k=="openTag"?(V.tagStart=B.column(),U):k=="closeTag"?re:W}function U(k,B,V){return k=="word"?(V.tagName=B.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,V)):(b="error",U)}function re(k,B,V){if(k=="word"){var ie=B.current();return V.context&&V.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(A(V.context.tagName))&&L(V),V.context&&V.context.tagName==ie||h.matchClosing===!1?(b="tag",Q):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Q(k,B,V)):(b="error",G)}function Q(k,B,V){return k!="endTag"?(b="error",Q):(L(V),W)}function G(k,B,V){return b="error",Q(k,B,V)}function te(k,B,V){if(k=="word")return b="attribute",Z;if(k=="endTag"||k=="selfcloseTag"){var ie=V.tagName,ye=V.tagStart;return V.tagName=V.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(A(ie))?z(V,ie):(z(V,ie),V.context=new P(V,ie,ye==V.indented)),W}return b="error",te}function Z(k,B,V){return k=="equals"?q:(h.allowMissing||(b="error"),te(k,B,V))}function q(k,B,V){return k=="string"?F:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,B,V))}function F(k,B,V){return k=="string"?F:te(k,B,V)}return{startState:function(k){var B={tokenize:w,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;m=null;var V=B.tokenize(k,B);return(V||m)&&V!="comment"&&(b=null,B.state=B.state(m||V,k,B),b&&(V=b=="error"?V+" error":b)),V},indent:function(k,B,V){var ie=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ie&&ie.noIndent)return r.Pass;if(k.tokenize!=M&&k.tokenize!=w)return V?V.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(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;ie;)if(ie.tagName==ye[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(A(ie.tagName)))ie=ie.prev;else break;else if(ye)for(;ie;){var Ne=h.contextGrabbers[A(ie.tagName)];if(Ne&&Ne.hasOwnProperty(A(ye[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.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==q&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],V=k.context;V;V=V.prev)B.push(V.tagName);return B.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var xue=wue.exports;(function(e,t){(function(r){r(Bs,xue,bue)})(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 M=w.tagName;w.tagName=null;var N=d.indent(w,"","");return w.tagName=M,N}function v(w,M){return M.context.mode==d?m(w,M,M.context):b(w,M,M.context)}function m(w,M,N){if(N.depth==2)return w.match(/^.*?\*\//)?N.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(N.state);var E=p(N.state),C=N.state.context;if(C&&w.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?E-=c.indentUnit:N.prev.state.lexical&&(E=N.prev.state.lexical.indented)}else N.depth==1&&(E+=c.indentUnit);return M.context=new o(r.startState(h,E),h,0,M.context),null}if(N.depth==1){if(w.peek()=="<")return d.skipAttribute(N.state),M.context=new o(r.startState(d,p(N.state)),d,0,M.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return N.depth=2,v(w,M)}var A=d.token(w,N.state),P=w.current(),L;return/\btag\b/.test(A)?/>$/.test(P)?N.state.context?N.depth=0:M.context=M.context.prev:/^</.test(P)&&(N.depth=1):!A&&(L=P.indexOf("{"))>-1&&w.backUp(P.length-L),A}function b(w,M,N){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,N.state))return M.context=new o(r.startState(d,h.indent(N.state,"","")),d,0,M.context),h.skipExpression(N.state),null;var E=h.token(w,N.state);if(!E&&N.depth!=null){var C=w.current();C=="{"?N.depth++:C=="}"&&--N.depth==0&&(M.context=M.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,M,N){return w.context.mode.indent(w.context.state,M,N)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(Bs)})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(Bs)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],M=p.pos;function N(){r.off(document,"mousemove",E),r.off(document,"mouseup",N)}function E(C){if(C.which!=1)return N();p.moveTo(M+(C[b]-w)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",N)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const rr=jr();function Sue(e,t,r={}){const o=mue.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Bt(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}),Eu(()=>{rr.value=void 0}),kh(o)}async function _ue(e){var t;sw(e,((t=e.location)==null?void 0:t.line)??0)}const kue={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Ww=ut({__name:"CodeMirrorContainer",props:Uc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Uc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Nh(e,"modelValue"),s=rk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=We();return qs(async()=>{const d=Sue(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),rr.value=d,setTimeout(()=>rr.value.refresh(),100)}),(d,h)=>(oe(),me("div",kue,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tue=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=We(""),c=jr(void 0),f=We(!1),d=We(!0);Bt(()=>r.file,async()=>{var L;d.value=!0;try{if(!r.file||!((L=r.file)!=null&&L.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await xt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{un(()=>d.value=!1)}},{immediate:!0}),Bt(()=>[d.value,r.file,Ud.value],([L,z,W])=>{L||(W!=null?un(()=>{var re;const U={line:W??0,ch:0};(re=rr.value)==null||re.scrollIntoView(U,100),un(()=>{var Q,G;(Q=rr.value)==null||Q.focus(),(G=rr.value)==null||G.setCursor(U)})}):un(()=>{var U;(U=rr.value)==null||U.focus()}))},{flush:"post"});const h=Te(()=>{var L,z;return((z=(L=r.file)==null?void 0:L.filepath)==null?void 0:z.split(/\./g).pop())||"js"}),p=We(),v=Te(()=>{var L;return(L=p.value)==null?void 0:L.cm}),m=Te(()=>{var L;return((L=r.file)==null?void 0:L.tasks.filter(z=>{var W;return((W=z.result)==null?void 0:W.state)==="fail"}))||[]}),b=[],w=[],M=[],N=We(!1);function E(){M.forEach(([L,z,W])=>{L.removeEventListener("click",z),W()}),M.length=0}wE(p,()=>{var L;(L=rr.value)==null||L.refresh()});function C(){f.value=c.value!==rr.value.getValue()}Bt(f,L=>{o("draft",L)},{immediate:!0});function A(L){const z=((L==null?void 0:L.stacks)||[]).filter(te=>{var Z;return te.file&&te.file===((Z=r.file)==null?void 0:Z.filepath)}),W=z==null?void 0:z[0];if(!W)return;const U=document.createElement("div");U.className="op80 flex gap-x-2 items-center";const re=document.createElement("pre");re.className="c-red-600 dark:c-red-400",re.textContent=`${" ".repeat(W.column)}^ ${(L==null?void 0:L.nameStr)||L.name}: ${(L==null?void 0:L.message)||""}`,U.appendChild(re);const Q=document.createElement("span");Q.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",Q.tabIndex=0,Q.ariaLabel="Open in Editor",_b(Q,{content:"Open in Editor",placement:"bottom"},!1);const G=async()=>{await Mw(W.file,W.line,W.column)};U.appendChild(Q),M.push([Q,G,()=>Ih(Q)]),w.push(rr.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),b.push(rr.value.addLineWidget(W.line-1,U))}Bt([v,m],([L])=>{if(!L){E();return}setTimeout(()=>{E(),b.forEach(z=>z.clear()),w.forEach(z=>{var W;return(W=rr.value)==null?void 0:W.removeLineClass(z,"wrap")}),b.length=0,w.length=0,L.on("changes",C),m.value.forEach(z=>{var W,U;(U=(W=z.result)==null?void 0:W.errors)==null||U.forEach(A)}),N.value||L.clearHistory()},100)},{flush:"post"});async function P(L){N.value=!0,await xt.rpc.saveTestFile(r.file.filepath,L),c.value=L,f.value=!1}return(L,z)=>{const W=Ww;return oe(),rt(W,hi({ref_key:"editor",ref:p,modelValue:I(s),"onUpdate:modelValue":z[0]||(z[0]=U=>At(s)?s.value=U:null),"h-full":""},{lineNumbers:!0,readOnly:I(Br)},{mode:I(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Cue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Eue={"p-4":"",relative:""},Lue={op50:"","font-mono":"","text-sm":""},Aue={key:0,"p-5":""},Mue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Nue={key:0},$ue={p:"x3 y-1","bg-overlay":"",border:"base b t"},Pue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=aE(()=>xt.rpc.getTransformResult(r.projectName,r.id,!!Ro)),c=Te(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Te(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Te(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Te(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return Vb("Escape",()=>{o("close")}),(p,v)=>{const m=wi,b=Ww;return oe(),me("div",Cue,[Y("div",Eue,[v[1]||(v[1]=Y("p",null,"Module Info",-1)),Y("p",Lue,He(p.id),1),Pe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),I(s)?(oe(),me(ct,{key:1},[Y("div",Mue,[v[2]||(v[2]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Pe(b,hi({"h-full":"","model-value":I(f),"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"]),Pe(b,hi({"h-full":"","model-value":I(d),"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"])]),I(h).mappings!==""?(oe(),me("div",Nue,[Y("div",$ue," Source map (v"+He(I(h).version)+") ",1),Pe(b,hi({"model-value":I(h).mappings,"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(oe(),me("div",Aue," No transform result found for this module. "))])}}});function Oue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Xd="http://www.w3.org/1999/xhtml";const Bm={svg:"http://www.w3.org/2000/svg",xhtml:Xd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Bm.hasOwnProperty(t)?{space:Bm[t],local:e}:e}function Rue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Xd&&t.documentElement.namespaceURI===Xd?t.createElement(e):t.createElementNS(r,e)}}function Due(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Uw(e){var t=Wu(e);return(t.local?Due:Rue)(t)}function zue(){}function Jh(e){return e==null?zue:function(){return this.querySelector(e)}}function Iue(e){typeof e!="function"&&(e=Jh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new Qn(o,this._parents)}function Fue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Hue(){return[]}function Vw(e){return e==null?Hue:function(){return this.querySelectorAll(e)}}function que(e){return function(){return Fue(e.apply(this,arguments))}}function Bue(e){typeof e=="function"?e=que(e):e=Vw(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 Qn(o,s)}function jw(e){return function(){return this.matches(e)}}function Gw(e){return function(t){return t.matches(e)}}var Wue=Array.prototype.find;function Uue(e){return function(){return Wue.call(this.children,e)}}function Vue(){return this.firstElementChild}function jue(e){return this.select(e==null?Vue:Uue(typeof e=="function"?e:Gw(e)))}var Gue=Array.prototype.filter;function Kue(){return Array.from(this.children)}function Xue(e){return function(){return Gue.call(this.children,e)}}function Yue(e){return this.selectAll(e==null?Kue:Xue(typeof e=="function"?e:Gw(e)))}function Zue(e){typeof e!="function"&&(e=jw(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 Qn(o,this._parents)}function Kw(e){return new Array(e.length)}function Jue(){return new Qn(this._enter||this._groups.map(Kw),this._parents)}function cu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}cu.prototype={constructor:cu,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 Que(e){return function(){return e}}function efe(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 cu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function tfe(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new cu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function nfe(e){return e.__data__}function rfe(e,t){if(!arguments.length)return Array.from(this,nfe);var r=t?tfe:efe,o=this._parents,s=this._groups;typeof e!="function"&&(e=Que(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=ife(e.call(v,v&&v.__data__,p,o)),M=w.length,N=d[p]=new Array(M),E=f[p]=new Array(M),C=h[p]=new Array(b);r(v,m,N,E,C,w,t);for(var A=0,P=0,L,z;A<M;++A)if(L=N[A]){for(A>=P&&(P=A+1);!(z=E[P])&&++P<M;);L._next=z||null}}return f=new Qn(f,o),f._enter=d,f._exit=h,f}function ife(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ofe(){return new Qn(this._exit||this._groups.map(Kw),this._parents)}function sfe(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 lfe(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,M=0;M<m;++M)(w=p[M]||v[M])&&(b[M]=w);for(;h<s;++h)d[h]=r[h];return new Qn(d,this._parents)}function afe(){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 cfe(e){e||(e=ufe);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new Qn(s,this._parents).order()}function ufe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ffe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function dfe(){return Array.from(this)}function hfe(){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 gfe(){return!this.node()}function vfe(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 mfe(e){return function(){this.removeAttribute(e)}}function yfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bfe(e,t){return function(){this.setAttribute(e,t)}}function wfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function xfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Sfe(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 _fe(e,t){var r=Wu(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?yfe:mfe:typeof t=="function"?r.local?Sfe:xfe:r.local?wfe:bfe)(r,t))}function Xw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function kfe(e){return function(){this.style.removeProperty(e)}}function Tfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Cfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Efe(e,t,r){return arguments.length>1?this.each((t==null?kfe:typeof t=="function"?Cfe:Tfe)(e,t,r??"")):zs(this.node(),e)}function zs(e,t){return e.style.getPropertyValue(t)||Xw(e).getComputedStyle(e,null).getPropertyValue(t)}function Lfe(e){return function(){delete this[e]}}function Afe(e,t){return function(){this[e]=t}}function Mfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Nfe(e,t){return arguments.length>1?this.each((t==null?Lfe:typeof t=="function"?Mfe:Afe)(e,t)):this.node()[e]}function Yw(e){return e.trim().split(/^|\s+/)}function Qh(e){return e.classList||new Zw(e)}function Zw(e){this._node=e,this._names=Yw(e.getAttribute("class")||"")}Zw.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 Jw(e,t){for(var r=Qh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Qw(e,t){for(var r=Qh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function $fe(e){return function(){Jw(this,e)}}function Pfe(e){return function(){Qw(this,e)}}function Ofe(e,t){return function(){(t.apply(this,arguments)?Jw:Qw)(this,e)}}function Rfe(e,t){var r=Yw(e+"");if(arguments.length<2){for(var o=Qh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ofe:t?$fe:Pfe)(r,t))}function Dfe(){this.textContent=""}function zfe(e){return function(){this.textContent=e}}function Ife(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ffe(e){return arguments.length?this.each(e==null?Dfe:(typeof e=="function"?Ife:zfe)(e)):this.node().textContent}function Hfe(){this.innerHTML=""}function qfe(e){return function(){this.innerHTML=e}}function Bfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Wfe(e){return arguments.length?this.each(e==null?Hfe:(typeof e=="function"?Bfe:qfe)(e)):this.node().innerHTML}function Ufe(){this.nextSibling&&this.parentNode.appendChild(this)}function Vfe(){return this.each(Ufe)}function jfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gfe(){return this.each(jfe)}function Kfe(e){var t=typeof e=="function"?e:Uw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Xfe(){return null}function Yfe(e,t){var r=typeof e=="function"?e:Uw(e),o=t==null?Xfe:typeof t=="function"?t:Jh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Zfe(){var e=this.parentNode;e&&e.removeChild(this)}function Jfe(){return this.each(Zfe)}function Qfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ede(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tde(e){return this.select(e?ede:Qfe)}function nde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function rde(e){return function(t){e.call(this,t,this.__data__)}}function ide(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 ode(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 sde(e,t,r){return function(){var o=this.__on,s,c=rde(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 lde(e,t,r){var o=ide(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?sde:ode,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function e1(e,t,r){var o=Xw(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 ade(e,t){return function(){return e1(this,e,t)}}function cde(e,t){return function(){return e1(this,e,t.apply(this,arguments))}}function ude(e,t){return this.each((typeof t=="function"?cde:ade)(e,t))}function*fde(){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 t1=[null];function Qn(e,t){this._groups=e,this._parents=t}function ka(){return new Qn([[document.documentElement]],t1)}function dde(){return this}Qn.prototype=ka.prototype={constructor:Qn,select:Iue,selectAll:Bue,selectChild:jue,selectChildren:Yue,filter:Zue,data:rfe,enter:Jue,exit:ofe,join:sfe,merge:lfe,selection:dde,order:afe,sort:cfe,call:ffe,nodes:dfe,node:hfe,size:pfe,empty:gfe,each:vfe,attr:_fe,style:Efe,property:Nfe,classed:Rfe,text:Ffe,html:Wfe,raise:Vfe,lower:Gfe,append:Kfe,insert:Yfe,remove:Jfe,clone:tde,datum:nde,on:lde,dispatch:ude,[Symbol.iterator]:fde};function Fn(e){return typeof e=="string"?new Qn([[document.querySelector(e)]],[document.documentElement]):new Qn([[e]],t1)}function hde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ai(e,t){if(e=hde(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]}class En{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new En(t,r)}add(t){return new En(this.x+t.x,this.y+t.y)}subtract(t){return new En(this.x-t.x,this.y-t.y)}multiply(t){return new En(this.x*t,this.y*t)}divide(t){return new En(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 En(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 En(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new En(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var pde={value:()=>{}};function Ta(){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 Pc(r)}function Pc(e){this._=e}function gde(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}})}Pc.prototype=Ta.prototype={constructor:Pc,on:function(e,t){var r=this._,o=gde(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=vde(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]=Wm(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Wm(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 Pc(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 vde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Wm(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 mde={passive:!1},oa={capture:!0,passive:!1};function cd(e){e.stopImmediatePropagation()}function Ls(e){e.preventDefault(),e.stopImmediatePropagation()}function n1(e){var t=e.document.documentElement,r=Fn(e).on("dragstart.drag",Ls,oa);"onselectstart"in t?r.on("selectstart.drag",Ls,oa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function r1(e,t){var r=e.document.documentElement,o=Fn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ls,oa),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 mc=e=>()=>e;function Yd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}Yd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function yde(e){return!e.ctrlKey&&!e.button}function bde(){return this.parentNode}function wde(e,t){return t??{x:e.x,y:e.y}}function xde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Sde(){var e=yde,t=bde,r=wde,o=xde,s={},c=Ta("start","drag","end"),f=0,d,h,p,v,m=0;function b(L){L.on("mousedown.drag",w).filter(o).on("touchstart.drag",E).on("touchmove.drag",C,mde).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(L,z){if(!(v||!e.call(this,L,z))){var W=P(this,t.call(this,L,z),L,z,"mouse");W&&(Fn(L.view).on("mousemove.drag",M,oa).on("mouseup.drag",N,oa),n1(L.view),cd(L),p=!1,d=L.clientX,h=L.clientY,W("start",L))}}function M(L){if(Ls(L),!p){var z=L.clientX-d,W=L.clientY-h;p=z*z+W*W>m}s.mouse("drag",L)}function N(L){Fn(L.view).on("mousemove.drag mouseup.drag",null),r1(L.view,p),Ls(L),s.mouse("end",L)}function E(L,z){if(e.call(this,L,z)){var W=L.changedTouches,U=t.call(this,L,z),re=W.length,Q,G;for(Q=0;Q<re;++Q)(G=P(this,U,L,z,W[Q].identifier,W[Q]))&&(cd(L),G("start",L,W[Q]))}}function C(L){var z=L.changedTouches,W=z.length,U,re;for(U=0;U<W;++U)(re=s[z[U].identifier])&&(Ls(L),re("drag",L,z[U]))}function A(L){var z=L.changedTouches,W=z.length,U,re;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<W;++U)(re=s[z[U].identifier])&&(cd(L),re("end",L,z[U]))}function P(L,z,W,U,re,Q){var G=c.copy(),te=ai(Q||W,z),Z,q,F;if((F=r.call(L,new Yd("beforestart",{sourceEvent:W,target:b,identifier:re,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:G}),U))!=null)return Z=F.x-te[0]||0,q=F.y-te[1]||0,function k(B,V,ie){var ye=te,Ne;switch(B){case"start":s[re]=k,Ne=f++;break;case"end":delete s[re],--f;case"drag":te=ai(ie||V,z),Ne=f;break}G.call(B,L,new Yd(B,{sourceEvent:V,subject:F,target:b,identifier:re,active:Ne,x:te[0]+Z,y:te[1]+q,dx:te[0]-ye[0],dy:te[1]-ye[1],dispatch:G}),U)}}return b.filter=function(L){return arguments.length?(e=typeof L=="function"?L:mc(!!L),b):e},b.container=function(L){return arguments.length?(t=typeof L=="function"?L:mc(L),b):t},b.subject=function(L){return arguments.length?(r=typeof L=="function"?L:mc(L),b):r},b.touchable=function(L){return arguments.length?(o=typeof L=="function"?L:mc(!!L),b):o},b.on=function(){var L=c.on.apply(c,arguments);return L===c?b:L},b.clickDistance=function(L){return arguments.length?(m=(L=+L)*L,b):Math.sqrt(m)},b}function ep(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ca(){}var sa=.7,uu=1/sa,As="\\s*([+-]?\\d+)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_de=/^#([0-9a-f]{3,8})$/,kde=new RegExp(`^rgb\\(${As},${As},${As}\\)$`),Tde=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),Cde=new RegExp(`^rgba\\(${As},${As},${As},${la}\\)$`),Ede=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${la}\\)$`),Lde=new RegExp(`^hsl\\(${la},${Wr},${Wr}\\)$`),Ade=new RegExp(`^hsla\\(${la},${Wr},${Wr},${la}\\)$`),Um={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(Ca,aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vm,formatHex:Vm,formatHex8:Mde,formatHsl:Nde,formatRgb:jm,toString:jm});function Vm(){return this.rgb().formatHex()}function Mde(){return this.rgb().formatHex8()}function Nde(){return o1(this).formatHsl()}function jm(){return this.rgb().formatRgb()}function aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=_de.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Gm(t):r===3?new qn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yc(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=kde.exec(e))?new qn(t[1],t[2],t[3],1):(t=Tde.exec(e))?new qn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Cde.exec(e))?yc(t[1],t[2],t[3],t[4]):(t=Ede.exec(e))?yc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lde.exec(e))?Ym(t[1],t[2]/100,t[3]/100,1):(t=Ade.exec(e))?Ym(t[1],t[2]/100,t[3]/100,t[4]):Um.hasOwnProperty(e)?Gm(Um[e]):e==="transparent"?new qn(NaN,NaN,NaN,0):null}function Gm(e){return new qn(e>>16&255,e>>8&255,e&255,1)}function yc(e,t,r,o){return o<=0&&(e=t=r=NaN),new qn(e,t,r,o)}function $de(e){return e instanceof Ca||(e=aa(e)),e?(e=e.rgb(),new qn(e.r,e.g,e.b,e.opacity)):new qn}function Zd(e,t,r,o){return arguments.length===1?$de(e):new qn(e,t,r,o??1)}function qn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}ep(qn,Zd,i1(Ca,{brighter(e){return e=e==null?uu:Math.pow(uu,e),new qn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new qn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qn(No(this.r),No(this.g),No(this.b),fu(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:Km,formatHex:Km,formatHex8:Pde,formatRgb:Xm,toString:Xm}));function Km(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}`}function Pde(){return`#${Lo(this.r)}${Lo(this.g)}${Lo(this.b)}${Lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xm(){const e=fu(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function Ym(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new wr(e,t,r,o)}function o1(e){if(e instanceof wr)return new wr(e.h,e.s,e.l,e.opacity);if(e instanceof Ca||(e=aa(e)),!e)return new wr;if(e instanceof wr)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 wr(f,d,h,e.opacity)}function Ode(e,t,r,o){return arguments.length===1?o1(e):new wr(e,t,r,o??1)}function wr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}ep(wr,Ode,i1(Ca,{brighter(e){return e=e==null?uu:Math.pow(uu,e),new wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new wr(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 qn(ud(e>=240?e-240:e+120,s,o),ud(e,s,o),ud(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new wr(Zm(this.h),bc(this.s),bc(this.l),fu(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=fu(this.opacity);return`${e===1?"hsl(":"hsla("}${Zm(this.h)}, ${bc(this.s)*100}%, ${bc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zm(e){return e=(e||0)%360,e<0?e+360:e}function bc(e){return Math.max(0,Math.min(1,e||0))}function ud(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 s1=e=>()=>e;function Rde(e,t){return function(r){return e+r*t}}function Dde(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 zde(e){return(e=+e)==1?l1:function(t,r){return r-t?Dde(t,r,e):s1(isNaN(t)?r:t)}}function l1(e,t){var r=t-e;return r?Rde(e,r):s1(isNaN(e)?t:e)}const Jm=function e(t){var r=zde(t);function o(s,c){var f=r((s=Zd(s)).r,(c=Zd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=l1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Ui(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Jd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fd=new RegExp(Jd.source,"g");function Ide(e){return function(){return e}}function Fde(e){return function(t){return e(t)+""}}function Hde(e,t){var r=Jd.lastIndex=fd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Jd.exec(e))&&(s=fd.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:Ui(o,s)})),r=fd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Fde(h[0].x):Ide(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var Qm=180/Math.PI,Qd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function a1(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)*Qm,skewX:Math.atan(h)*Qm,scaleX:f,scaleY:d}}var wc;function qde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Qd:a1(t.a,t.b,t.c,t.d,t.e,t.f)}function Bde(e){return e==null||(wc||(wc=document.createElementNS("http://www.w3.org/2000/svg","g")),wc.setAttribute("transform",e),!(e=wc.transform.baseVal.consolidate()))?Qd:(e=e.matrix,a1(e.a,e.b,e.c,e.d,e.e,e.f))}function c1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,M){if(p!==m||v!==b){var N=w.push("translate(",null,t,null,r);M.push({i:N-4,x:Ui(p,m)},{i:N-2,x:Ui(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Ui(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Ui(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,M){if(p!==m||v!==b){var N=w.push(s(w)+"scale(",null,",",null,")");M.push({i:N-4,x:Ui(p,m)},{i:N-2,x:Ui(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var M=-1,N=b.length,E;++M<N;)m[(E=b[M]).i]=E.x(w);return m.join("")}}}var Wde=c1(qde,"px, ","px)","deg)"),Ude=c1(Bde,", ",")",")"),Vde=1e-12;function e0(e){return((e=Math.exp(e))+1/e)/2}function jde(e){return((e=Math.exp(e))-1/e)/2}function Gde(e){return((e=Math.exp(2*e))-1)/(e+1)}const Kde=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,M=m-h,N=w*w+M*M,E,C;if(N<Vde)C=Math.log(b/p)/t,E=function(U){return[d+U*w,h+U*M,p*Math.exp(t*U*C)]};else{var A=Math.sqrt(N),P=(b*b-p*p+o*N)/(2*p*r*A),L=(b*b-p*p-o*N)/(2*b*r*A),z=Math.log(Math.sqrt(P*P+1)-P),W=Math.log(Math.sqrt(L*L+1)-L);C=(W-z)/t,E=function(U){var re=U*C,Q=e0(z),G=p/(r*A)*(Q*Gde(t*re+z)-jde(z));return[d+G*w,h+G*M,p*Q/e0(t*re+z)]}}return E.duration=C*1e3*t/Math.SQRT2,E}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 Is=0,Ll=0,kl=0,u1=1e3,du,Al,hu=0,Do=0,Uu=0,ca=typeof performance=="object"&&performance.now?performance:Date,f1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function tp(){return Do||(f1(Xde),Do=ca.now()+Uu)}function Xde(){Do=0}function pu(){this._call=this._time=this._next=null}pu.prototype=np.prototype={constructor:pu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?tp():+r)+(t==null?0:+t),!this._next&&Al!==this&&(Al?Al._next=this:du=this,Al=this),this._call=e,this._time=r,eh()},stop:function(){this._call&&(this._call=null,this._time=1/0,eh())}};function np(e,t,r){var o=new pu;return o.restart(e,t,r),o}function Yde(){tp(),++Is;for(var e=du,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Is}function t0(){Do=(hu=ca.now())+Uu,Is=Ll=0;try{Yde()}finally{Is=0,Jde(),Do=0}}function Zde(){var e=ca.now(),t=e-hu;t>u1&&(Uu-=t,hu=e)}function Jde(){for(var e,t=du,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:du=r);Al=e,eh(o)}function eh(e){if(!Is){Ll&&(Ll=clearTimeout(Ll));var t=e-Do;t>24?(e<1/0&&(Ll=setTimeout(t0,e-ca.now()-Uu)),kl&&(kl=clearInterval(kl))):(kl||(hu=ca.now(),kl=setInterval(Zde,u1)),Is=1,f1(t0))}}function n0(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 Qde=Ta("start","end","cancel","interrupt"),ehe=[],d1=0,r0=1,th=2,Oc=3,i0=4,nh=5,Rc=6;function Vu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;the(e,r,{name:t,index:o,group:s,on:Qde,tween:ehe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:d1})}function rp(e,t){var r=Ar(e,t);if(r.state>d1)throw new Error("too late; already scheduled");return r}function Xr(e,t){var r=Ar(e,t);if(r.state>Oc)throw new Error("too late; already running");return r}function Ar(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function the(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=np(c,0,r.time);function c(p){r.state=r0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==r0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Oc)return n0(f);w.state===i0?(w.state=Rc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Rc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(n0(function(){r.state===Oc&&(r.state=i0,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=Oc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=nh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===nh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Rc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Dc(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<nh,o.state=Rc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function nhe(e){return this.each(function(){Dc(this,e)})}function rhe(e,t){var r,o;return function(){var s=Xr(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 ihe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Xr(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 ohe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Ar(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?rhe:ihe)(r,e,t))}function ip(e,t,r){var o=e._id;return e.each(function(){var s=Xr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ar(s,o).value[t]}}function h1(e,t){var r;return(typeof t=="number"?Ui:t instanceof aa?Jm:(r=aa(t))?(t=r,Jm):Hde)(e,t)}function she(e){return function(){this.removeAttribute(e)}}function lhe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ahe(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 che(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 uhe(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 fhe(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 dhe(e,t){var r=Wu(e),o=r==="transform"?Ude:h1;return this.attrTween(e,typeof t=="function"?(r.local?fhe:uhe)(r,o,ip(this,"attr."+e,t)):t==null?(r.local?lhe:she)(r):(r.local?che:ahe)(r,o,t))}function hhe(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 ghe(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 vhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&hhe(e,c)),r}return s._value=t,s}function mhe(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=Wu(e);return this.tween(r,(o.local?ghe:vhe)(o,t))}function yhe(e,t){return function(){rp(this,e).delay=+t.apply(this,arguments)}}function bhe(e,t){return t=+t,function(){rp(this,e).delay=t}}function whe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?yhe:bhe)(t,e)):Ar(this.node(),t).delay}function xhe(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function She(e,t){return t=+t,function(){Xr(this,e).duration=t}}function _he(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xhe:She)(t,e)):Ar(this.node(),t).duration}function khe(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function The(e){var t=this._id;return arguments.length?this.each(khe(t,e)):Ar(this.node(),t).ease}function Che(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Xr(this,e).ease=r}}function Ehe(e){if(typeof e!="function")throw new Error;return this.each(Che(this._id,e))}function Lhe(e){typeof e!="function"&&(e=jw(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 mi(o,this._parents,this._name,this._id)}function Ahe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new mi(f,this._parents,this._name,this._id)}function Mhe(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 Nhe(e,t,r){var o,s,c=Mhe(t)?rp:Xr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function $he(e,t){var r=this._id;return arguments.length<2?Ar(this.node(),r).on.on(e):this.each(Nhe(r,e,t))}function Phe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ohe(){return this.on("end.remove",Phe(this._id))}function Rhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Jh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Vu(p[b],t,r,b,p,Ar(v,r)));return new mi(c,this._parents,t,r)}function Dhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Vw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,M=Ar(v,r),N=0,E=b.length;N<E;++N)(w=b[N])&&Vu(w,t,r,N,b,M);c.push(b),f.push(v)}return new mi(c,f,t,r)}var zhe=ka.prototype.constructor;function Ihe(){return new zhe(this._groups,this._parents)}function Fhe(e,t){var r,o,s;return function(){var c=zs(this,e),f=(this.style.removeProperty(e),zs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function p1(e){return function(){this.style.removeProperty(e)}}function Hhe(e,t,r){var o,s=r+"",c;return function(){var f=zs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function qhe(e,t,r){var o,s,c;return function(){var f=zs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),zs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Bhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Xr(this,e),p=h.on,v=h.value[c]==null?d||(d=p1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Whe(e,t,r){var o=(e+="")=="transform"?Wde:h1;return t==null?this.styleTween(e,Fhe(e,o)).on("end.style."+e,p1(e)):typeof t=="function"?this.styleTween(e,qhe(e,o,ip(this,"style."+e,t))).each(Bhe(this._id,e)):this.styleTween(e,Hhe(e,o,t),r).on("end.style."+e,null)}function Uhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Vhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Uhe(e,f,r)),o}return c._value=t,c}function jhe(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,Vhe(e,t,r??""))}function Ghe(e){return function(){this.textContent=e}}function Khe(e){return function(){var t=e(this);this.textContent=t??""}}function Xhe(e){return this.tween("text",typeof e=="function"?Khe(ip(this,"text",e)):Ghe(e==null?"":e+""))}function Yhe(e){return function(t){this.textContent=e.call(this,t)}}function Zhe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Yhe(s)),t}return o._value=e,o}function Jhe(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,Zhe(e))}function Qhe(){for(var e=this._name,t=this._id,r=g1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Ar(h,t);Vu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new mi(o,this._parents,e,r)}function epe(){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=Xr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var tpe=0;function mi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function g1(){return++tpe}var oi=ka.prototype;mi.prototype={constructor:mi,select:Rhe,selectAll:Dhe,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:Lhe,merge:Ahe,selection:Ihe,transition:Qhe,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:$he,attr:dhe,attrTween:mhe,style:Whe,styleTween:jhe,text:Xhe,textTween:Jhe,remove:Ohe,tween:ohe,delay:whe,duration:_he,ease:The,easeVarying:Ehe,end:epe,[Symbol.iterator]:oi[Symbol.iterator]};function npe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var rpe={time:null,delay:0,duration:250,ease:npe};function ipe(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 ope(e){var t,r;e instanceof mi?(t=e._id,e=e._name):(t=g1(),(r=rpe).time=tp(),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])&&Vu(h,e,t,p,f,r||ipe(h,t));return new mi(o,this._parents,e,t)}ka.prototype.interrupt=nhe;ka.prototype.transition=ope;const xc=e=>()=>e;function spe(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 fi(e,t,r){this.k=e,this.x=t,this.y=r}fi.prototype={constructor:fi,scale:function(e){return e===1?this:new fi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fi(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 fi(1,0,0);fi.prototype;function dd(e){e.stopImmediatePropagation()}function Tl(e){e.preventDefault(),e.stopImmediatePropagation()}function lpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ape(){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 o0(){return this.__zoom||op}function cpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function upe(){return navigator.maxTouchPoints||"ontouchstart"in this}function fpe(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 dpe(){var e=lpe,t=ape,r=fpe,o=cpe,s=upe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Kde,p=Ta("start","zoom","end"),v,m,b,w=500,M=150,N=0,E=10;function C(F){F.property("__zoom",o0).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(F,k,B,V){var ie=F.selection?F.selection():F;ie.property("__zoom",o0),F!==ie?z(F,k,B,V):ie.interrupt().each(function(){W(this,arguments).event(V).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},C.scaleBy=function(F,k,B,V){C.scaleTo(F,function(){var ie=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return ie*ye},B,V)},C.scaleTo=function(F,k,B,V){C.transform(F,function(){var ie=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?L(ie):typeof B=="function"?B.apply(this,arguments):B,Ue=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(P(A(ye,je),Ne,Ue),ie,f)},B,V)},C.translateBy=function(F,k,B,V){C.transform(F,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,V)},C.translateTo=function(F,k,B,V,ie){C.transform(F,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,Ue=V==null?L(ye):typeof V=="function"?V.apply(this,arguments):V;return r(op.translate(Ue[0],Ue[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},V,ie)};function A(F,k){return k=Math.max(c[0],Math.min(c[1],k)),k===F.k?F:new fi(k,F.x,F.y)}function P(F,k,B){var V=k[0]-B[0]*F.k,ie=k[1]-B[1]*F.k;return V===F.x&&ie===F.y?F:new fi(F.k,V,ie)}function L(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function z(F,k,B,V){F.on("start.zoom",function(){W(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(V).end()}).tween("zoom",function(){var ie=this,ye=arguments,Ne=W(ie,ye).event(V),Ue=t.apply(ie,ye),je=B==null?L(Ue):typeof B=="function"?B.apply(ie,ye):B,it=Math.max(Ue[1][0]-Ue[0][0],Ue[1][1]-Ue[0][1]),tt=ie.__zoom,Je=typeof k=="function"?k.apply(ie,ye):k,Ae=h(tt.invert(je).concat(it/tt.k),Je.invert(je).concat(it/Je.k));return function(X){if(X===1)X=Je;else{var ae=Ae(X),de=it/ae[2];X=new fi(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,X)}})}function W(F,k,B){return!B&&F.__zooming||new U(F,k)}function U(F,k){this.that=F,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(F,k),this.taps=0}U.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,k){return this.mouse&&F!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&F!=="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(F){var k=Fn(this.that).datum();p.call(F,this.that,new spe(F,{sourceEvent:this.sourceEvent,target:C,type:F,transform:this.that.__zoom,dispatch:p}),k)}};function re(F,...k){if(!e.apply(this,arguments))return;var B=W(this,k).event(F),V=this.__zoom,ie=Math.max(c[0],Math.min(c[1],V.k*Math.pow(2,o.apply(this,arguments)))),ye=ai(F);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=V.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(V.k===ie)return;B.mouse=[ye,V.invert(ye)],Dc(this),B.start()}Tl(F),B.wheel=setTimeout(Ne,M),B.zoom("mouse",r(P(A(V,ie),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function Q(F,...k){if(b||!e.apply(this,arguments))return;var B=F.currentTarget,V=W(this,k,!0).event(F),ie=Fn(F.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ai(F,B),Ne=F.clientX,Ue=F.clientY;n1(F.view),dd(F),V.mouse=[ye,this.__zoom.invert(ye)],Dc(this),V.start();function je(tt){if(Tl(tt),!V.moved){var Je=tt.clientX-Ne,Ae=tt.clientY-Ue;V.moved=Je*Je+Ae*Ae>N}V.event(tt).zoom("mouse",r(P(V.that.__zoom,V.mouse[0]=ai(tt,B),V.mouse[1]),V.extent,f))}function it(tt){ie.on("mousemove.zoom mouseup.zoom",null),r1(tt.view,V.moved),Tl(tt),V.event(tt).end()}}function G(F,...k){if(e.apply(this,arguments)){var B=this.__zoom,V=ai(F.changedTouches?F.changedTouches[0]:F,this),ie=B.invert(V),ye=B.k*(F.shiftKey?.5:2),Ne=r(P(A(B,ye),V,ie),t.apply(this,k),f);Tl(F),d>0?Fn(this).transition().duration(d).call(z,Ne,V,F):Fn(this).call(C.transform,Ne,V,F)}}function te(F,...k){if(e.apply(this,arguments)){var B=F.touches,V=B.length,ie=W(this,k,F.changedTouches.length===V).event(F),ye,Ne,Ue,je;for(dd(F),Ne=0;Ne<V;++Ne)Ue=B[Ne],je=ai(Ue,this),je=[je,this.__zoom.invert(je),Ue.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==je[2]&&(ie.touch1=je,ie.taps=0):(ie.touch0=je,ye=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(ie.taps<2&&(m=je[0],v=setTimeout(function(){v=null},w)),Dc(this),ie.start())}}function Z(F,...k){if(this.__zooming){var B=W(this,k).event(F),V=F.changedTouches,ie=V.length,ye,Ne,Ue,je;for(Tl(F),ye=0;ye<ie;++ye)Ne=V[ye],Ue=ai(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=Ue:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=Ue);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],tt=B.touch0[1],Je=B.touch1[0],Ae=B.touch1[1],X=(X=Je[0]-it[0])*X+(X=Je[1]-it[1])*X,ae=(ae=Ae[0]-tt[0])*ae+(ae=Ae[1]-tt[1])*ae;Ne=A(Ne,Math.sqrt(X/ae)),Ue=[(it[0]+Je[0])/2,(it[1]+Je[1])/2],je=[(tt[0]+Ae[0])/2,(tt[1]+Ae[1])/2]}else if(B.touch0)Ue=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(P(Ne,Ue,je),B.extent,f))}}function q(F,...k){if(this.__zooming){var B=W(this,k).event(F),V=F.changedTouches,ie=V.length,ye,Ne;for(dd(F),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ye=0;ye<ie;++ye)Ne=V[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ai(Ne,this),Math.hypot(m[0]-Ne[0],m[1]-Ne[1])<E)){var Ue=Fn(this).on("dblclick.zoom");Ue&&Ue.apply(this,arguments)}}}return C.wheelDelta=function(F){return arguments.length?(o=typeof F=="function"?F:xc(+F),C):o},C.filter=function(F){return arguments.length?(e=typeof F=="function"?F:xc(!!F),C):e},C.touchable=function(F){return arguments.length?(s=typeof F=="function"?F:xc(!!F),C):s},C.extent=function(F){return arguments.length?(t=typeof F=="function"?F:xc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),C):t},C.scaleExtent=function(F){return arguments.length?(c[0]=+F[0],c[1]=+F[1],C):[c[0],c[1]]},C.translateExtent=function(F){return arguments.length?(f[0][0]=+F[0][0],f[1][0]=+F[1][0],f[0][1]=+F[0][1],f[1][1]=+F[1][1],C):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},C.constrain=function(F){return arguments.length?(r=F,C):r},C.duration=function(F){return arguments.length?(d=+F,C):d},C.interpolate=function(F){return arguments.length?(h=F,C):h},C.on=function(){var F=p.on.apply(p,arguments);return F===p?C:F},C.clickDistance=function(F){return arguments.length?(N=(F=+F)*F,C):Math.sqrt(N)},C.tapDistance=function(F){return arguments.length?(E=+F,C):E},C}function hpe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return v1(this.cover(t,r),t,r,e)}function v1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,M,N,E,C,A;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[C=E<<1|N]))return s[C]=f,e;if(w=+e._x.call(null,c.data),M=+e._y.call(null,c.data),t===w&&r===M)return f.next=c,s?s[C]=f:e._root=f,e;do s=s?s[C]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b;while((C=E<<1|N)===(A=(M>=b)<<1|w>=m));return s[A]=c,s[C]=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,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)v1(this,f[r],d[r],e[r]);return this}function gpe(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 vpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function mpe(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 An(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function ype(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,M,N;for(w&&b.push(new An(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);M=b.pop();)if(!(!(w=M.node)||(f=M.x0)>v||(d=M.y0)>m||(h=M.x1)<s||(p=M.y1)<c))if(w.length){var E=(f+h)/2,C=(d+p)/2;b.push(new An(w[3],E,C,h,p),new An(w[2],f,C,E,p),new An(w[1],E,d,h,C),new An(w[0],f,d,E,C)),(N=(t>=C)<<1|e>=E)&&(M=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=M)}else{var A=e-+this._x.call(null,w.data),P=t-+this._y.call(null,w.data),L=A*A+P*P;if(L<r){var z=Math.sqrt(r=L);s=e-z,c=t-z,v=e+z,m=t+z,o=w.data}}return o}function bpe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,M,N,E,C;if(!r)return this;if(r.length)for(;;){if((M=v>=(b=(f+h)/2))?f=b:h=b,(N=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[E=N<<1|M]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,C=E)}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[E]=c:delete t[E],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[C]=r:this._root=r),this):(this._root=c,this)}function wpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function xpe(){return this._root}function Spe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function _pe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new An(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new An(s,p,v,d,h)),(s=o[2])&&t.push(new An(s,c,v,p,h)),(s=o[1])&&t.push(new An(s,p,f,d,v)),(s=o[0])&&t.push(new An(s,c,f,p,v))}return this}function kpe(e){var t=[],r=[],o;for(this._root&&t.push(new An(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new An(c,f,d,v,m)),(c=s[1])&&t.push(new An(c,v,d,h,m)),(c=s[2])&&t.push(new An(c,f,m,v,p)),(c=s[3])&&t.push(new An(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Tpe(e){return e[0]}function Cpe(e){return arguments.length?(this._x=e,this):this._x}function Epe(e){return e[1]}function Lpe(e){return arguments.length?(this._y=e,this):this._y}function sp(e,t,r){var o=new lp(t??Tpe,r??Epe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function lp(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 s0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var $n=sp.prototype=lp.prototype;$n.copy=function(){var e=new lp(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=s0(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]=s0(o));return e};$n.add=hpe;$n.addAll=ppe;$n.cover=gpe;$n.data=vpe;$n.extent=mpe;$n.find=ype;$n.remove=bpe;$n.removeAll=wpe;$n.root=xpe;$n.size=Spe;$n.visit=_pe;$n.visitAfter=kpe;$n.x=Cpe;$n.y=Lpe;function Nn(e){return function(){return e}}function Ki(e){return(e()-.5)*1e-6}function Ape(e){return e.x+e.vx}function Mpe(e){return e.y+e.vy}function Npe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Nn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,M,N,E,C=0;C<c;++C)for(m=sp(t,Ape,Mpe).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],E=N*N,w=b.x+b.vx,M=b.y+b.vy,m.visit(A);function A(P,L,z,W,U){var re=P.data,Q=P.r,G=N+Q;if(re){if(re.index>b.index){var te=w-re.x-re.vx,Z=M-re.y-re.vy,q=te*te+Z*Z;q<G*G&&(te===0&&(te=Ki(o),q+=te*te),Z===0&&(Z=Ki(o),q+=Z*Z),q=(G-(q=Math.sqrt(q)))/q*s,b.vx+=(te*=q)*(G=(Q*=Q)/(E+Q)),b.vy+=(Z*=q)*G,re.vx-=te*(G=1-G),re.vy-=Z*G)}return}return L>w+G||W<w-G||z>M+G||U<M-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Nn(+p),h(),f):e},f}function $pe(e){return e.index}function l0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Ppe(e){var t=$pe,r=m,o,s=Nn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function b(E){for(var C=0,A=e.length;C<v;++C)for(var P=0,L,z,W,U,re,Q,G;P<A;++P)L=e[P],z=L.source,W=L.target,U=W.x+W.vx-z.x-z.vx||Ki(p),re=W.y+W.vy-z.y-z.vy||Ki(p),Q=Math.sqrt(U*U+re*re),Q=(Q-c[P])/Q*E*o[P],U*=Q,re*=Q,W.vx-=U*(G=h[P]),W.vy-=re*G,z.vx+=U*(G=1-G),z.vy+=re*G}function w(){if(f){var E,C=f.length,A=e.length,P=new Map(f.map((z,W)=>[t(z,W,f),z])),L;for(E=0,d=new Array(C);E<A;++E)L=e[E],L.index=E,typeof L.source!="object"&&(L.source=l0(P,L.source)),typeof L.target!="object"&&(L.target=l0(P,L.target)),d[L.source.index]=(d[L.source.index]||0)+1,d[L.target.index]=(d[L.target.index]||0)+1;for(E=0,h=new Array(A);E<A;++E)L=e[E],h[E]=d[L.source.index]/(d[L.source.index]+d[L.target.index]);o=new Array(A),M(),c=new Array(A),N()}}function M(){if(f)for(var E=0,C=e.length;E<C;++E)o[E]=+r(e[E],E,e)}function N(){if(f)for(var E=0,C=e.length;E<C;++E)c[E]=+s(e[E],E,e)}return b.initialize=function(E,C){f=E,p=C,w()},b.links=function(E){return arguments.length?(e=E,w(),b):e},b.id=function(E){return arguments.length?(t=E,b):t},b.iterations=function(E){return arguments.length?(v=+E,b):v},b.strength=function(E){return arguments.length?(r=typeof E=="function"?E:Nn(+E),M(),b):r},b.distance=function(E){return arguments.length?(s=typeof E=="function"?E:Nn(+E),N(),b):s},b}const Ope=1664525,Rpe=1013904223,a0=4294967296;function Dpe(){let e=1;return()=>(e=(Ope*e+Rpe)%a0)/a0}function zpe(e){return e.x}function Ipe(e){return e.y}var Fpe=10,Hpe=Math.PI*(3-Math.sqrt(5));function qpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=np(m),p=Ta("tick","end"),v=Dpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var E,C=e.length,A;N===void 0&&(N=1);for(var P=0;P<N;++P)for(r+=(c-r)*s,d.forEach(function(L){L(r)}),E=0;E<C;++E)A=e[E],A.fx==null?A.x+=A.vx*=f:(A.x=A.fx,A.vx=0),A.fy==null?A.y+=A.vy*=f:(A.y=A.fy,A.vy=0);return t}function w(){for(var N=0,E=e.length,C;N<E;++N){if(C=e[N],C.index=N,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var A=Fpe*Math.sqrt(.5+N),P=N*Hpe;C.x=A*Math.cos(P),C.y=A*Math.sin(P)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function M(N){return N.initialize&&N.initialize(e,v),N}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(N){return arguments.length?(e=N,w(),d.forEach(M),t):e},alpha:function(N){return arguments.length?(r=+N,t):r},alphaMin:function(N){return arguments.length?(o=+N,t):o},alphaDecay:function(N){return arguments.length?(s=+N,t):+s},alphaTarget:function(N){return arguments.length?(c=+N,t):c},velocityDecay:function(N){return arguments.length?(f=1-N,t):1-f},randomSource:function(N){return arguments.length?(v=N,d.forEach(M),t):v},force:function(N,E){return arguments.length>1?(E==null?d.delete(N):d.set(N,M(E)),t):d.get(N)},find:function(N,E,C){var A=0,P=e.length,L,z,W,U,re;for(C==null?C=1/0:C*=C,A=0;A<P;++A)U=e[A],L=N-U.x,z=E-U.y,W=L*L+z*z,W<C&&(re=U,C=W);return re},on:function(N,E){return arguments.length>1?(p.on(N,E),t):p.on(N)}}}function Bpe(){var e,t,r,o,s=Nn(-30),c,f=1,d=1/0,h=.81;function p(w){var M,N=e.length,E=sp(e,zpe,Ipe).visitAfter(m);for(o=w,M=0;M<N;++M)t=e[M],E.visit(b)}function v(){if(e){var w,M=e.length,N;for(c=new Array(M),w=0;w<M;++w)N=e[w],c[N.index]=+s(N,w,e)}}function m(w){var M=0,N,E,C=0,A,P,L;if(w.length){for(A=P=L=0;L<4;++L)(N=w[L])&&(E=Math.abs(N.value))&&(M+=N.value,C+=E,A+=E*N.x,P+=E*N.y);w.x=A/C,w.y=P/C}else{N=w,N.x=N.data.x,N.y=N.data.y;do M+=c[N.data.index];while(N=N.next)}w.value=M}function b(w,M,N,E){if(!w.value)return!0;var C=w.x-t.x,A=w.y-t.y,P=E-M,L=C*C+A*A;if(P*P/h<L)return L<d&&(C===0&&(C=Ki(r),L+=C*C),A===0&&(A=Ki(r),L+=A*A),L<f&&(L=Math.sqrt(f*L)),t.vx+=C*w.value*o/L,t.vy+=A*w.value*o/L),!0;if(w.length||L>=d)return;(w.data!==t||w.next)&&(C===0&&(C=Ki(r),L+=C*C),A===0&&(A=Ki(r),L+=A*A),L<f&&(L=Math.sqrt(f*L)));do w.data!==t&&(P=c[w.data.index]*o/L,t.vx+=C*P,t.vy+=A*P);while(w=w.next)}return p.initialize=function(w,M){e=w,r=M,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Nn(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Wpe(e){var t=Nn(.1),r,o,s;typeof e!="function"&&(e=Nn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Nn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Nn(+d),f(),c):e},c}function Upe(e){var t=Nn(.1),r,o,s;typeof e!="function"&&(e=Nn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Nn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Nn(+d),f(),c):e},c}var Vpe=Object.defineProperty,jpe=(e,t,r)=>t in e?Vpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t,r)=>jpe(e,typeof t!="symbol"?t+"":t,r);function Gpe(){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 c0(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 Xi(...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]=Xi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:c0(t[o])&&c0(r[o])?t[o]=Xi(t[o],r[o]):t[o]=r[o])}),t},{})}const m1={mergeArrays:!0};Xi.options=m1;Xi.withOptions=(e,...t)=>{Xi.options={mergeArrays:!0,...e};const r=Xi(...t);return Xi.options=m1,r};function Kpe(){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 Xpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function y1(e){e.preventDefault(),e.stopPropagation()}function b1(e){return typeof e=="number"}function ro(e,t){return b1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Ype(e){return`${e.source.id}-${e.target.id}`}function w1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Zpe(e){return`url(#${w1(e.color)})`}function Jpe(e){return{size:e,padding:(t,r)=>ro(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const x1={Arrow:e=>Jpe(e)},Qpe=(e,t,r)=>[t/2,r/2],S1=(e,t,r)=>[u0(0,t),u0(0,r)];function u0(e,t){return Math.random()*(t-e)+e}function ege(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?S1(r,o,s):[c,f]}}const rh={Centered:Qpe,Randomized:S1,Stable:ege};function tge(){return{autoResize:!1,callbacks:{},hooks:{},initial:Xpe(),nodeRadius:16,marker:x1.Arrow(4),modifiers:{},positionInitializer:rh.Centered,simulation:{alphas:Gpe(),forces:Kpe()},zoom:{initial:1,min:.1,max:2}}}function nge(e={}){return Xi.withOptions({mergeArrays:!1},tge(),e)}function rge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>y1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,op.translate(c,f).scale(d)),p.append("g")}function ige({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function oge({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Sde().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Fn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Fn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function sge({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}:lge({nodes:d,links:c},r)}function lge(e,t){const r=[...age(e,t),...cge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function age(e,t){return _1(e,t,(r,o)=>r.target.id===o.id)}function cge(e,t){return _1(e,t,(r,o)=>r.source.id===o.id)}function _1(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 ih(e){return e.x??0}function oh(e){return e.y??0}function ap({source:e,target:t}){const r=new En(ih(e),oh(e)),o=new En(ih(t),oh(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function k1({center:e,node:t}){const r=new En(ih(t),oh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new En(0,1))),{n:r,c:o}}function T1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=ap({config:e,source:t,target:r}),f=o.add(c.multiply(ro(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function uge(e){const{start:t,end:r}=T1(e);return`M${t.x},${t.y}
|
|
45
|
+
L${r.x},${r.y}`}function fge(e){const{start:t,end:r}=T1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function dge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=ap({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(ro(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(ro(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
46
|
+
A${m},${m},0,0,1,${v.x},${v.y}`}function hge({center:e,config:t,node:r}){const{n:o,c:s}=k1({center:e,config:t,node:r}),c=ro(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
47
|
+
A${c},${c},0,1,0,${v.x},${v.y}`}function pge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=ap({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function gge({center:e,config:t,node:r}){const{n:o,c:s}=k1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ro(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ms={line:{labelTransform:fge,path:uge},arc:{labelTransform:pge,path:dge},reflexive:{labelTransform:gge,path:hge}};function vge(e){return e.append("g").classed("links",!0).selectAll("path")}function mge({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Ype(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>Zpe(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function yge(e){bge(e),wge(e)}function bge({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Ms.reflexive.path({config:t,node:s.source,center:e}):C1(r,s.source,s.target)?Ms.arc.path({config:t,source:s.source,target:s.target}):Ms.line.path({config:t,source:s.source,target:s.target}))}function wge({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Ms.reflexive.labelTransform({config:e,node:s.source,center:t}):C1(r,s.source,s.target)?Ms.arc.labelTransform({config:e,source:s.source,target:s.target}):Ms.line.labelTransform({config:e,source:s.source,target:s.target}))}function C1(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 xge(e){return e.append("defs").selectAll("marker")}function Sge({config:e,graph:t,selection:r}){return r==null?void 0:r.data(_ge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>w1(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",kge(e.marker.path)),s})}function _ge(e){return[...new Set(e.links.map(t=>t.color))]}function kge(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 Tge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Cge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const M=w.append("circle").classed("node",!0).attr("r",E=>ro(e,E)).on("contextmenu",(E,C)=>{y1(E),o(C)}).on("pointerdown",(E,C)=>Lge(E,C,s??o)).style("fill",E=>E.color);(v=(p=e.modifiers).node)==null||v.call(p,M);const N=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,N),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Ege=500;function Lge(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>Ege){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Age(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Mge({center:e,config:t,graph:r,onTick:o}){var s,c;const f=qpe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",Wpe(()=>e().x).strength(m)).force("y",Upe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",Bpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Npe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",Ppe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Nge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=dpe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class $ge{constructor(t,r,o){if(Ht(this,"nodeTypes"),Ht(this,"_nodeTypeFilter"),Ht(this,"_includeUnlinked",!0),Ht(this,"_linkFilter",()=>!0),Ht(this,"_showLinkLabels",!0),Ht(this,"_showNodeLabels",!0),Ht(this,"filteredGraph"),Ht(this,"width",0),Ht(this,"height",0),Ht(this,"simulation"),Ht(this,"canvas"),Ht(this,"linkSelection"),Ht(this,"nodeSelection"),Ht(this,"markerSelection"),Ht(this,"zoom"),Ht(this,"drag"),Ht(this,"xOffset",0),Ht(this,"yOffset",0),Ht(this,"scale"),Ht(this,"focusedNode"),Ht(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Oue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return En.of([this.width,this.height]).divide(2).subtract(En.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(b1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Sge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=mge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Cge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Mge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Nge({config:this.config,canvasContainer:()=>Fn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=rge({applyZoom:this.scale!==1,container:Fn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=vge(this.canvas),this.nodeSelection=Tge(this.canvas),this.markerSelection=xge(this.canvas),this.drag=oge({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Age(this.nodeSelection),yge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Fn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){ige({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=sge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function f0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Pge(e){return{...e}}function E1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Oge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Rge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Dge=["id","checked","onChange"],zge=["for"],Ige=ut({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=M_(t),o=We(),s=We(!1),c=We(),f=We();Mh(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),qs(()=>{p()}),Eu(()=>{var b;(b=f.value)==null||b.shutdown()}),Bt(r,p);function d(b,w){var M;(M=f.value)==null||M.filterNodesByType(w,b)}function h(b){c.value=b,s.value=!0}function p(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new $ge(o.value,r.value,nge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:M})=>w===0&&M===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:x1.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?rh.Randomized:rh.Centered,zoom:{min:.5,max:2}})))}const v=b=>b.button===0;function m(b){if(Br)return;let w=0,M=0,N=0;b.on("pointerdown",(E,C)=>{C.type!=="external"&&(!C.x||!C.y||!v(E)||(w=C.x,M=C.y,N=Date.now()))}).on("pointerup",(E,C)=>{if(C.type==="external"||!C.x||!C.y||!v(E)||Date.now()-N>500)return;const A=C.x-w,P=C.y-M;A**2+P**2<100&&h(C.id)})}return(b,w)=>{var A;const M=wi,N=Pue,E=qw,C=Gr("tooltip");return oe(),me("div",Oge,[Y("div",null,[Y("div",Rge,[(oe(!0),me(ct,null,gi((A=I(f))==null?void 0:A.nodeTypes.sort(),P=>{var L;return oe(),me("div",{key:P,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${P}`,type:"checkbox",checked:(L=I(f))==null?void 0:L.nodeTypeFilter.includes(P),onChange:z=>d(P,z.target.checked)},null,40,Dge),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${P}`,"border-b-2":"",style:Jt({"border-color":`var(--color-node-${P})`})},He(P)+" Modules",13,zge)])}),128)),w[2]||(w[2]=Y("div",{"flex-auto":""},null,-1)),Y("div",null,[mt(Pe(M,{icon:"i-carbon-reset",onClick:p},null,512),[[C,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(E,{modelValue:I(s),"onUpdate:modelValue":w[1]||(w[1]=P=>At(s)?s.value=P:null),direction:"right"},{default:ot(()=>[I(c)?(oe(),rt(qy,{key:0},{default:ot(()=>[Pe(N,{id:I(c),"project-name":b.projectName,onClose:w[0]||(w[0]=P=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),Fge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Hge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},qge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Bge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Wge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Uge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},L1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Gr("tooltip");return t.state==="pass"?(oe(),me("div",Fge)):t.failedSnapshot?mt((oe(),me("div",Hge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",qge)):t.mode==="todo"?mt((oe(),me("div",Bge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?mt((oe(),me("div",Wge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Uge))}}});function Vge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function jge(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 Gge(e){const t=e.map(o=>jge(o)),r=Vge(t);return t.map(({raw:o,id:s})=>E1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function Kge(e,t){return E1({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 Xge(e,t){if(!e)return f0({});const r=Gge(e.externalized),o=e.inlined.map(d=>Kge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return Pge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return f0({nodes:s,links:f})}const Yge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Zge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Jge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Qge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},eve={class:"flex text-lg"},tve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},nve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},rve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},ive={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},ove=["flex-1"],sve=ut({__name:"FileDetails",setup(e){const t=We({nodes:[],links:[]}),r=We(!1),o=We(!1),s=We(!1),c=We(void 0),f=Te(()=>{const E=Zt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),d=Te(()=>Zt.value&&qh(Zt.value)),h=Te(()=>{var E,C;return!!((C=(E=Zt.value)==null?void 0:E.meta)!=null&&C.typecheck)});function p(){var C;const E=(C=Zt.value)==null?void 0:C.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function v(E){E==="graph"&&(o.value=!0),jn.value=E}const m=Te(()=>{var E;return((E=Fw.value)==null?void 0:E.reduce((C,{size:A})=>C+A,0))??0});function b(E){r.value=E}async function w(){var E;if(!(s.value||((E=f.value)==null?void 0:E.filepath)===c.value)){s.value=!0,await un();try{const C=f.value;if(!C)return;(!c.value||C.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=Xge(await xt.rpc.getModuleGraph(C.projectName,C.filepath,!!Ro),C.filepath),c.value=C.filepath),v("graph")}finally{await new Promise(C=>setTimeout(C,100)),s.value=!1}}}Ub(()=>[f.value,jn.value],([,E])=>{E==="graph"&&w()},{debounce:100,immediate:!0});const M=Te(()=>{var E;return Jb((E=Zt.value)==null?void 0:E.file.projectName)}),N=Te(()=>{switch(M.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(E,C)=>{var Q,G,te,Z;const A=L1,P=wi,L=Ige,z=Tue,W=vue,U=uue,re=Gr("tooltip");return I(Zt)?(oe(),me("div",Yge,[Y("div",null,[Y("div",Zge,[Pe(A,{state:(Q=I(Zt).result)==null?void 0:Q.state,mode:I(Zt).mode,"failed-snapshot":I(d)},null,8,["state","mode","failed-snapshot"]),I(h)?mt((oe(),me("div",Jge,null,512)),[[re,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),(G=I(Zt))!=null&&G.file.projectName?(oe(),me("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:Jt({backgroundColor:I(M),color:I(N)})},He(I(Zt).file.projectName),5)):Ye("",!0),Y("div",Qge,He((te=I(Zt))==null?void 0:te.name),1),Y("div",eve,[I(Br)?Ye("",!0):mt((oe(),rt(P,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((Z=I(Zt))!=null&&Z.filepath),onClick:p},null,8,["disabled"])),[[re,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",tve,[Y("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==null}]),"data-testid":"btn-report",onClick:C[0]||(C[0]=q=>v(null))},C[4]||(C[4]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="graph"}]),onClick:C[1]||(C[1]=q=>v("graph"))},[I(s)?(oe(),me("span",nve)):(oe(),me("span",rve)),C[5]||(C[5]=pt(" Module Graph "))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="editor"}]),onClick:C[2]||(C[2]=q=>v("editor"))},[C[6]||(C[6]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+He(I(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":I(jn)==="console",op20:I(jn)!=="console"&&I(m)===0}]),onClick:C[3]||(C[3]=q=>v("console"))},[C[7]||(C[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+He(I(m))+") ",1)],2)])]),Y("div",ive,[I(o)?(oe(),me("div",{key:0,"flex-1":I(jn)==="graph"&&""},[mt(Pe(L,{graph:I(t),"data-testid":"graph","project-name":I(Zt).file.projectName||""},null,8,["graph","project-name"]),[[Gi,I(jn)==="graph"&&!I(s)]])],8,ove)):Ye("",!0),I(jn)==="editor"?(oe(),rt(z,{key:I(Zt).filepath,file:I(Zt),"data-testid":"editor",onDraft:b},null,8,["file"])):I(jn)==="console"?(oe(),rt(W,{key:2,file:I(Zt),"data-testid":"console"},null,8,["file"])):I(jn)?Ye("",!0):(oe(),rt(U,{key:3,file:I(Zt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),lve={h:"full",flex:"~ col"},ave={"flex-auto":"","py-1":"","bg-white":""},cve=["src"],uve=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",lve,[r[0]||(r[0]=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),Y("div",ave,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,cve)])]))}}),fve={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},dve={"font-bold":""},hve={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},pve=["font-bold"],gve={text:"red500/70"},vve={key:1,text:"sm","mb-2":""},mve={"font-bold":""},yve={key:2,text:"sm","mb-2":""},bve={"font-bold":""},wve={key:3,text:"sm","font-thin":""},xve=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ct,null,[Y("h4",fve,[Y("span",dve,[pt(He(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ct,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+He(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",hve,[(oe(!0),me(ct,null,gi(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+He(s.method)+" "+He(s.file)+":",1),Y("span",gve,He(s.line)+":"+He(s.column),1),r[0]||(r[0]=Y("br",null,null,-1))],8,pve))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",vve,[r[1]||(r[1]=pt(" This error originated in ")),Y("span",mve,He(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Ye("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",yve,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),Y("span",bve,He(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=Y("br",null,null,-1)),r[6]||(r[6]=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",wve,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Y("br",null,null,-1),Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ye("",!0)],64)}}}),Sve={"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:""},_ve={class:"number","data-testid":"num-files"},kve={class:"number"},Tve={class:"number","text-red5":""},Cve={class:"number","text-red5":""},Eve={class:"number","text-red5":""},Lve={class:"number","data-testid":"run-time"},Ave={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Mve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Nve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},$ve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=xve;return oe(),me(ct,null,[Y("div",Sve,[r[8]||(r[8]=Y("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=Y("div",null,"Files",-1)),Y("div",_ve,He(I(Ce).summary.files),1),I(Ce).summary.filesSuccess?(oe(),me(ct,{key:0},[r[0]||(r[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=Y("div",null,"Pass",-1)),Y("div",kve,He(I(Ce).summary.filesSuccess),1)],64)):Ye("",!0),I(Ce).summary.filesFailed?(oe(),me(ct,{key:1},[r[2]||(r[2]=Y("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=Y("div",null," Fail ",-1)),Y("div",Tve,He(I(Ce).summary.filesFailed),1)],64)):Ye("",!0),I(Ce).summary.filesSnapshotFailed?(oe(),me(ct,{key:2},[r[4]||(r[4]=Y("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=Y("div",null," Snapshot Fail ",-1)),Y("div",Cve,He(I(Ce).summary.filesSnapshotFailed),1)],64)):Ye("",!0),I(Wi).length?(oe(),me(ct,{key:3},[r[6]||(r[6]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=Y("div",null," Errors ",-1)),Y("div",Eve,He(I(Wi).length),1)],64)):Ye("",!0),r[10]||(r[10]=Y("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=Y("div",null,"Time",-1)),Y("div",Lve,He(I(Ce).summary.time),1)]),I(Wi).length?(oe(),me("div",Ave,[r[15]||(r[15]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",Mve,[pt(" Vitest caught "+He(I(Wi).length)+" error"+He(I(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=Y("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),Y("details",Nve,[r[14]||(r[14]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),me(ct,null,gi(I(Wi),(s,c)=>(oe(),rt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),Pve=Kr($ve,[["__scopeId","data-v-0178ddee"]]),Ove={"p-2":"","text-center":"",flex:""},Rve={"text-4xl":"","min-w-2em":""},Dve={"text-md":""},zve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",Ove,[Y("div",null,[Y("div",Rve,[vn(t.$slots,"body")]),Y("div",Dve,[vn(t.$slots,"header")])])]))}}),Ive={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Fve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=zve;return oe(),me("div",Ive,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:ot(()=>r[0]||(r[0]=[pt(" Pass ")])),body:ot(()=>[pt(He(I(Ce).summary.testsSuccess),1)]),_:1}),Pe(o,{class:st({"text-red5":I(Ce).summary.testsFailed,op50:!I(Ce).summary.testsFailed}),"data-testid":"fail-entry"},{header:ot(()=>r[1]||(r[1]=[pt(" Fail ")])),body:ot(()=>[pt(He(I(Ce).summary.testsFailed),1)]),_:1},8,["class"]),I(Ce).summary.testsSkipped?(oe(),rt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:ot(()=>r[2]||(r[2]=[pt(" Skip ")])),body:ot(()=>[pt(He(I(Ce).summary.testsSkipped),1)]),_:1})):Ye("",!0),I(Ce).summary.testsTodo?(oe(),rt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:ot(()=>r[3]||(r[3]=[pt(" Todo ")])),body:ot(()=>[pt(He(I(Ce).summary.testsTodo),1)]),_:1})):Ye("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:ot(()=>r[4]||(r[4]=[pt(" Total ")])),body:ot(()=>[pt(He(I(Ce).summary.totalTests),1)]),_:1})])}}}),Hve={},qve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Bve={"aria-labelledby":"tests",m:"y-4 x-2"};function Wve(e,t){const r=Fve,o=Pve;return oe(),me("div",qve,[Y("section",Bve,[Pe(r)]),Pe(o)])}const Uve=Kr(Hve,[["render",Wve]]),Vve={},jve={h:"full",flex:"~ col"},Gve={class:"scrolls","flex-auto":"","py-1":""};function Kve(e,t){const r=Uve;return oe(),me("div",jve,[t[0]||(t[0]=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),Y("div",Gve,[Pe(r)])])}const Xve=Kr(Vve,[["render",Kve]]),Yve=["open"],Zve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=We(!0);return(r,o)=>(oe(),me("div",{open:I(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),vn(r.$slots,"summary",{open:I(t)}),o[2]||(o[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),vn(r.$slots,"default")],40,Yve))}}),Jve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Qve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",Jve,[Y("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},eme=["aria-label","data-current"],tme={key:1,"w-4":""},nme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},rme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ime={"text-sm":"",truncate:"","font-light":""},ome=["text","innerHTML"],sme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},lme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},ame={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},cme={key:1},ume=ut({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Te(()=>xt.state.idMap.get(e.taskId)),r=Te(()=>{if(Br)return!1;const E=t.value;return E&&qh(E)});function o(){e.expandable&&(e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId))}async function s(E){var C;(C=e.onItemClick)==null||C.call(e,E),vs.value&&(su.value=!0,await un()),e.type==="file"?await Zh([E.file]):await Lce(E)}function c(E){return xt.rpc.updateSnapshot(E.file)}const f=Te(()=>e.indent<=0?[]:Array.from({length:e.indent},(E,C)=>`${e.taskId}-${C}`)),d=Te(()=>{const E=f.value,C=[];return(e.type==="file"||e.type==="suite")&&C.push("min-content"),C.push("min-content"),e.type==="suite"&&e.typecheck&&C.push("min-content"),C.push("minmax(0, 1fr)"),C.push("min-content"),`grid-template-columns: ${E.map(()=>"1rem").join(" ")} ${C.join(" ")};`}),h=Te(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Te(()=>Yb(e.name)),v=Te(()=>{const E=_E.value,C=p.value;return E?C.replace(E,A=>`<span class="highlight">${A}</span>`):C}),m=Te(()=>e.type!=="file"&&e.disableTaskLocation),b=Te(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Te(()=>m.value?"color-red5 dark:color-#f43f5e":null);function M(){var C;const E=t.value;e.type==="file"?(C=e.onItemClick)==null||C.call(e,E):_ue(E)}const N=Te(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(E,C)=>{const A=L1,P=Qve,L=wi,z=Gr("tooltip");return I(t)?(oe(),me("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:Jt(I(d)),"aria-label":E.name,"data-current":E.current,onClick:C[2]||(C[2]=W=>o())},[E.indent>0?(oe(!0),me(ct,{key:0},gi(I(f),W=>(oe(),me("div",{key:W,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),E.type==="file"||E.type==="suite"?(oe(),me("div",tme,[Y("div",{class:st(E.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Pe(A,{state:E.state,mode:I(t).mode,"failed-snapshot":I(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",nme,[E.type==="file"&&E.typecheck?mt((oe(),me("div",rme,null,512)),[[z,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),Y("span",ime,[E.type==="file"&&E.projectName?(oe(),me("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:Jt({backgroundColor:E.projectNameColor,color:I(N)})},He(E.projectName),5)):Ye("",!0),Y("span",{text:E.state==="fail"?"red-500":"",innerHTML:I(v)},null,8,ome)]),typeof E.duration=="number"?(oe(),me("span",sme,He(E.duration>0?E.duration:"< 1")+"ms ",1)):Ye("",!0)]),Y("div",lme,[!I(Br)&&I(r)?mt((oe(),rt(P,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:C[0]||(C[0]=Lc(W=>c(I(t)),["prevent","stop"]))},null,512)),[[z,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Pe(I(Lb),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",I(w)])},{popper:ot(()=>[I(m)?(oe(),me("div",ame,[C[5]||(C[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[pt(He(I(b))+": this feature is not available, you have disabled ",1),C[3]||(C[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),C[4]||(C[4]=pt(" in your configuration file."))]),C[6]||(C[6]=Y("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))])):(oe(),me("div",cme,He(I(b)),1))]),default:ot(()=>[Pe(L,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Lc(M,["prevent","stop"])})]),_:1},8,["class"]),I(Br)?Ye("",!0):mt((oe(),rt(L,{key:1,"data-testid":"btn-run-test",title:I(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:C[1]||(C[1]=Lc(W=>s(I(t)),["prevent","stop"]))},null,8,["title"])),[[z,I(h),void 0,{bottom:!0}]])])],12,eme)):Ye("",!0)}}}),fme=Kr(ume,[["__scopeId","data-v-ca268e03"]]),dme={"flex-1":"","ms-2":"","select-none":""},hme=ut({__name:"FilterStatus",props:Uc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nh(e,"modelValue");return(r,o)=>(oe(),me("label",hi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Lc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),mt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[xT,t.value]]),Y("span",dme,He(r.label),1)],16))}});function pme(){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 zc;function sh(){sh.init||(sh.init=!0,zc=pme()!==-1)}var ju={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){sh(),un(()=>{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",zc&&this.$el.appendChild(e),e.data="about:blank",zc||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&&(!zc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const gme=dy();uy("data-v-b329ee4c");const vme={class:"resize-observer",tabindex:"-1"};fy();const mme=gme((e,t,r,o,s,c)=>(oe(),rt("div",vme)));ju.render=mme;ju.__scopeId="data-v-b329ee4c";ju.__file="src/components/ResizeObserver.vue";function Ic(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ic=function(t){return typeof t}:Ic=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function yme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bme(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 wme(e,t,r){return t&&bme(e.prototype,t),e}function d0(e){return xme(e)||Sme(e)||_me(e)||kme()}function xme(e){if(Array.isArray(e))return lh(e)}function Sme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _me(e,t){if(e){if(typeof e=="string")return lh(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 lh(e,t)}}function lh(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 kme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Cme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(d0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(d0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function A1(e,t){if(e===t)return!0;if(Ic(e)==="object"){for(var r in e)if(!A1(e[r],t[r]))return!1;return!0}return!1}var Eme=function(){function e(t,r,o){yme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return wme(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Tme(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=Cme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),un(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 M1(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 Eme(e,o,r);e._vue_visibilityState=s}}function Lme(e,t,r){var o=t.value,s=t.oldValue;if(!A1(o,s)){var c=e._vue_visibilityState;if(!o){N1(e);return}c?c.createObserver(o,r):M1(e,{value:o},r)}}function N1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Ame={beforeMount:M1,updated:Lme,unmounted:N1},Mme={itemsLimit:1e3},Nme=/(auto|scroll)/;function $1(e,t){return e.parentNode===null?t:$1(e.parentNode,t.concat([e]))}var hd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},$me=function(t){return hd(t,"overflow")+hd(t,"overflow-y")+hd(t,"overflow-x")},Pme=function(t){return Nme.test($me(t))};function h0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=$1(e.parentNode,[]),r=0;r<t.length;r+=1)if(Pme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ah(e){"@babel/helpers - typeof";return ah=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},ah(e)}var Ome={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 Rme(){return this.items.length&&ah(this.items[0])!=="object"}var ch=!1;if(typeof window<"u"){ch=!1;try{var Dme=Object.defineProperty({},"passive",{get:function(){ch=!0}});window.addEventListener("test",null,Dme)}catch{}}let zme=0;var cp={name:"RecycleScroller",components:{ResizeObserver:ju},directives:{ObserveVisibility:Ame},props:{...Ome,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:Rme,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=kh({id:zme++,index:t,used:!0,key:o,type:s}),f=xh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,M=this.itemIndexByKey;let N,E,C,A,P;if(!p)N=E=A=P=C=0;else if(this.$_prerender)N=A=0,E=P=Math.min(this.prerender,h.length),C=null;else{const G=this.getScroll();if(t){let q=G.start-this.$_lastUpdateScrollPosition;if(q<0&&(q=-q),r===null&&q<c||q<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const te=this.buffer;G.start-=te,G.end+=te;let Z=0;if(this.$refs.before&&(Z=this.$refs.before.scrollHeight,G.start-=Z),this.$refs.after){const q=this.$refs.after.scrollHeight;G.end+=q}if(r===null){let q,F=0,k=p-1,B=~~(p/2),V;do V=B,q=v[B].accumulator,q<G.start?F=B:B<p-1&&v[B+1].accumulator>G.start&&(k=B),B=~~((F+k)/2);while(B!==V);for(B<0&&(B=0),N=B,C=v[p-1].accumulator,E=B;E<p&&v[E].accumulator<G.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),A=N;A<p&&Z+v[A].accumulator<G.start;A++);for(P=A;P<p&&Z+v[P].accumulator<G.end;P++);}else{N=~~(G.start/r*o);const q=N%o;N-=q,E=Math.ceil(G.end/r*o),A=Math.max(0,Math.floor((G.start-Z)/r*o)),P=Math.floor((G.end-Z)/r*o),N<0&&(N=0),E>p&&(E=p),A<0&&(A=0),P>p&&(P=p),C=Math.ceil(p/o)*r}}E-N>Mme.itemsLimit&&this.itemsLimitError(),this.totalSize=C;let L;const z=N<=this.$_endIndex&&E>=this.$_startIndex;if(z)for(let G=0,te=w.length;G<te;G++)L=w[G],L.nr.used&&(e&&(L.nr.index=M[L.item[d]]),(L.nr.index==null||L.nr.index<N||L.nr.index>=E)&&this.unuseView(L));const W=z?null:new Map;let U,re,Q;for(let G=N;G<E;G++){U=h[G];const te=d?U[d]:U;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(L=m.get(te),!r&&!v[G].size){L&&this.unuseView(L);continue}re=U[f];let Z=b.get(re),q=!1;if(!L)z?Z&&Z.length?L=Z.pop():L=this.addView(w,G,U,te,re):(Q=W.get(re)||0,(!Z||Q>=Z.length)&&(L=this.addView(w,G,U,te,re),this.unuseView(L,!0),Z=b.get(re)),L=Z[Q],W.set(re,Q+1)),m.delete(L.nr.key),L.nr.used=!0,L.nr.index=G,L.nr.key=te,L.nr.type=re,m.set(te,L),q=!0;else if(!L.nr.used&&(L.nr.used=!0,q=!0,Z)){const F=Z.indexOf(L);F!==-1&&Z.splice(F,1)}L.item=U,q&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(L.position=v[G-1].accumulator,L.offset=0):(L.position=Math.floor(G/o)*r,L.offset=G%o*s)}return this.$_startIndex=N,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",N,E,A,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=h0(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,ch?{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=h0(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 Ime={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Fme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Hme(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Gr("observe-visibility");return mt((oe(),me("div",{class:st(["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?(oe(),me("div",Ime,[vn(e.$slots,"before")],512)):Ye("v-if",!0),(oe(),rt(yv(r.listTag),{ref:"wrapper",style:Jt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:ot(()=>[(oe(!0),me(ct,null,gi(s.pool,h=>(oe(),rt(yv(r.itemTag),hi({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}]]},tk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:ot(()=>[vn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),vn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",Fme,[vn(e.$slots,"after")],512)):Ye("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}cp.render=Hme;cp.__file="src/components/RecycleScroller.vue";function qme(e){const t=Te(()=>qd.value?!1:!et.onlyTests),r=Te(()=>zn.value===""),o=We(zn.value);Ub(zn,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;zn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Rs.value&&(ln.value.search=(h==null?void 0:h.trim())??"",ln.value.failed=p,ln.value.success=v,ln.value.skipped=m,ln.value.onlyTests=b)}return Bt(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ce.filterNodes()},{flush:"post"}),Bt(()=>Er.value.length,h=>{h&&(ln.value.expandAll=void 0)},{flush:"post"}),{initialized:Rs,filter:et,search:zn,disableFilter:t,isFiltered:Zb,isFilteredByStatus:qd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Fu,testsTotal:kE,uiEntries:Bn}}const Bme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Wme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Ume=["op"],Vme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},jme={"text-red5":""},Gme={"text-yellow5":""},Kme={"text-green5":""},Xme={class:"text-purple5:50"},Yme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Zme=["disabled"],Jme=["disabled"],Qme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},e0e=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Te(()=>Bu.value.includeTaskLocation),s=We(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:M,filteredFiles:N,testsTotal:E,uiEntries:C}=qme(s),A=We("grid-cols-2"),P=We("grid-col-span-2"),L=We(),{width:z}=Wh();return Bt(()=>z.value*(gn.navigation/100),W=>{W<420?(A.value="grid-cols-2",P.value="grid-col-span-2"):(A.value="grid-cols-4",P.value="grid-col-span-4")}),(W,U)=>{const re=wi,Q=hme,G=fme,te=Zve,Z=Gr("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:L,h:"full",flex:"~ col"},[Y("div",null,[Y("div",Bme,[vn(W.$slots,"header",{filteredFiles:I(p)||I(v)?I(N):void 0})]),Y("div",Wme,[U[13]||(U[13]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),mt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=q=>At(d)?d.value=q:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:I(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Pd(q=>I(w)(!1),["esc"])),U[2]||(U[2]=Pd(q=>r("run",I(p)||I(v)?I(N):void 0),["enter"]))]},null,40,Ume),[[wT,I(d)]]),mt(Pe(re,{disabled:I(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=q=>I(w)(!0))},null,8,["disabled"]),[[Z,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(I(A))},[Y("div",{class:st(I(P)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),mt(Pe(re,{disabled:I(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=q=>I(M)(!1))},null,8,["disabled"]),[[Z,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(Q,{modelValue:I(f).failed,"onUpdate:modelValue":U[5]||(U[5]=q=>I(f).failed=q),label:"Fail"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).success,"onUpdate:modelValue":U[6]||(U[6]=q=>I(f).success=q),label:"Pass"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=q=>I(f).skipped=q),label:"Skip"},null,8,["modelValue"]),Pe(Q,{modelValue:I(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=q=>I(f).onlyTests=q),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...q)=>I(um)&&I(um)(...q))},[Pe(te,null,ek({default:ot(()=>[(I(p)||I(v))&&I(C).length===0?(oe(),me(ct,{key:0},[I(c)?(oe(),me("div",Yme,[U[18]||(U[18]=Y("div",{op30:""}," No matched test ",-1)),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(I(m)?null:"hover:op100"),disabled:I(m),onClickPassive:U[9]||(U[9]=q=>I(w)(!0))}," Clear Search ",42,Zme),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(I(h)?null:"hover:op100"),disabled:I(h),onClickPassive:U[10]||(U[10]=q=>I(M)(!0))}," Clear Filter ",42,Jme),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...q)=>I(b)&&I(b)(...q))}," Clear All ",32)])):(oe(),me("div",Qme,U[19]||(U[19]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),rt(I(cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:I(C),buffer:100},{default:ot(({item:q})=>[Pe(G,{class:st(["h-28px m-0 p-0",I(eo)===q.id?"bg-active":""]),"task-id":q.id,expandable:q.expandable,type:q.type,current:I(eo)===q.id,indent:q.indent,name:q.name,typecheck:q.typecheck===!0,"project-name":q.projectName??"","project-name-color":q.projectNameColor??"",state:q.state,duration:q.duration,opened:q.expanded,"disable-task-location":!I(o),"on-item-click":W.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},[I(c)?{name:"summary",fn:ot(()=>[Y("div",Vme,[Y("span",jme," FAIL ("+He(I(E).failed)+") ",1),U[16]||(U[16]=Y("span",null,"/",-1)),Y("span",Gme," RUNNING ("+He(I(E).running)+") ",1),Y("span",Kme," PASS ("+He(I(E).success)+") ",1),U[17]||(U[17]=Y("span",null,"/",-1)),Y("span",Xme," SKIP ("+He(I(f).onlyTests?I(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),t0e=""+new URL("../favicon.svg",import.meta.url).href,n0e={class:"flex text-lg"},r0e=ut({__name:"Navigation",setup(e){function t(){return xt.rpc.updateSnapshot()}const r=Te(()=>_a.value?"light":"dark");async function o(f){vs.value&&(su.value=!0,await un(),to.value&&(lu(!0),await un())),f!=null&&f.length?await Zh(f):await Cce()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=wi,p=e0e,v=Gr("tooltip");return oe(),rt(p,{border:"r base","on-item-click":I(sw),nested:!0,onRun:o},{header:ot(({filteredFiles:m})=>[d[8]||(d[8]=Y("img",{"w-6":"","h-6":"",src:t0e,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",n0e,[mt(Pe(h,{title:"Collapse tests",disabled:!I(Rs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Gi,!I(wm)],[v,"Collapse tests",void 0,{bottom:!0}]]),mt(Pe(h,{disabled:!I(Rs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Gi,I(wm)],[v,"Expand tests",void 0,{bottom:!0}]]),mt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>I(lu)(!0))},null,512),[[Gi,I(Vd)&&!I(vs)||!I(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),I(Vd)&&!I(vs)?(oe(),rt(I(Lb),{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:ot(()=>d[6]||(d[6]=[Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:ot(()=>[d[7]||(d[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ye("",!0),I(vs)?mt((oe(),rt(h,{key:1,disabled:I(su),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>I(eL)())},null,8,["disabled"])),[[Gi,!I(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),I(Ce).summary.failedSnapshot&&!I(Br)?mt((oe(),rt(h,{key:2,icon:"i-carbon:result-old",disabled:!I(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>I(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),I(Br)?Ye("",!0):mt((oe(),rt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),mt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>I(Jce)())},null,512),[[v,`Toggle to ${I(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),i0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},o0e=ut({__name:"ProgressBar",setup(e){const{width:t}=Wh(),r=Te(()=>Ce.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":JE.value?null:"in-progress"),o=Te(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=Te(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=Te(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=Te(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("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:st(I(r))},[Y("div",i0e,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(I(r)),style:Jt(`width: ${I(s)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(I(r)),style:Jt(`left: ${I(s)}px; width: ${I(o)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(I(r)),style:Jt(`left: ${I(o)+I(s)}px; width: ${I(f)}px;`)}," ",6)])],2))}}),s0e=Kr(o0e,[["__scopeId","data-v-54017b6a"]]),p0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ya("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},l0e=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},a0e={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function c0e(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Jt(e.style)},[vn(e.$slots,"default")],4)}const Sc=l0e(a0e,[["render",c0e]]),u0e={"h-screen":"","w-screen":"",overflow:"hidden"},f0e=ut({__name:"index",setup(e){const t=QE(),r=fc(m=>{p(),h(m)},0),o=fc(m=>{m.forEach((b,w)=>{yr.value[w]=b.size}),d(m)},0),s=fc(m=>{m.forEach((b,w)=>{Mo.value[w]=b.size}),h(m),v()},0),c=fc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);yr.value[0]=100*b/m,yr.value[1]=100-yr.value[0],d([{size:yr.value[0]},{size:yr.value[1]}])}function d(m){gn.navigation=m[0].size,gn.details.size=m[1].size}function h(m){gn.details.browser=m[0].size,gn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=s0e,M=r0e,N=Xve,E=uve,C=sve,A=Bce,P=Nce;return oe(),me(ct,null,[Pe(w),Y("div",u0e,[Pe(I(p0),{class:"pt-4px",onResized:I(o),onResize:I(c),onReady:f},{default:ot(()=>[Pe(I(Sc),{size:I(yr)[0]},{default:ot(()=>[Pe(M)]),_:1},8,["size"]),Pe(I(Sc),{size:I(yr)[1]},{default:ot(()=>[I(Ro)?(oe(),rt(I(p0),{id:"details-splitpanes",key:"browser-detail",onResize:I(r),onResized:I(s)},{default:ot(()=>[Pe(I(Sc),{size:I(Mo)[0],"min-size":"10"},{default:ot(()=>[b[0]||(jc(-1),(b[0]=Pe(A)).cacheIndex=0,jc(1),b[0])]),_:1},8,["size"]),Pe(I(Sc),{size:I(Mo)[1]},{default:ot(()=>[I(t)?(oe(),rt(N,{key:"summary"})):I(to)?(oe(),rt(E,{key:"coverage",src:I(km)},null,8,["src"])):(oe(),rt(C,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),rt(Qk,{key:"ui-detail"},{default:ot(()=>[I(t)?(oe(),rt(N,{key:"summary"})):I(to)?(oe(),rt(E,{key:"coverage",src:I(km)},null,8,["src"])):(oe(),rt(C,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),d0e=[{name:"index",path:"/",component:f0e,props:!0}];/*!
|
|
49
|
+
* vue-router v4.5.0
|
|
50
50
|
* (c) 2024 Eduardo San Martin Morote
|
|
51
51
|
* @license MIT
|
|
52
|
-
*/const ps=typeof document<"u";function O1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function h0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&O1(e.default)}const xt=Object.assign;function pd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Lr(s)?s.map(e):e(s)}return r}const ql=()=>{},Lr=Array.isArray,R1=/#/g,p0e=/&/g,g0e=/\//g,v0e=/=/g,m0e=/\?/g,D1=/\+/g,y0e=/%5B/g,b0e=/%5D/g,z1=/%5E/g,w0e=/%60/g,I1=/%7B/g,x0e=/%7C/g,F1=/%7D/g,S0e=/%20/g;function fp(e){return encodeURI(""+e).replace(x0e,"|").replace(y0e,"[").replace(b0e,"]")}function _0e(e){return fp(e).replace(I1,"{").replace(F1,"}").replace(z1,"^")}function uh(e){return fp(e).replace(D1,"%2B").replace(S0e,"+").replace(R1,"%23").replace(p0e,"%26").replace(w0e,"`").replace(I1,"{").replace(F1,"}").replace(z1,"^")}function k0e(e){return uh(e).replace(v0e,"%3D")}function T0e(e){return fp(e).replace(R1,"%23").replace(m0e,"%3F")}function C0e(e){return e==null?"":T0e(e).replace(g0e,"%2F")}function ca(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const E0e=/\/$/,L0e=e=>e.replace(E0e,"");function gd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=$0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ca(f)}}function A0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function v0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function M0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Fs(t.matched[o],r.matched[s])&&H1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Fs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function H1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!N0e(e[r],t[r]))return!1;return!0}function N0e(e,t){return Lr(e)?m0(e,t):Lr(t)?m0(t,e):e===t}function m0(e,t){return Lr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function $0e(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 zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ua;(function(e){e.pop="pop",e.push="push"})(ua||(ua={}));var Bl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bl||(Bl={}));function P0e(e){if(!e)if(ps){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),L0e(e)}const O0e=/^[^#]+#/;function R0e(e,t){return e.replace(O0e,"#")+t}function D0e(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 Gu=()=>({left:window.scrollX,top:window.scrollY});function z0e(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=D0e(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 y0(e,t){return(history.state?history.state.position-t:-1)+e}const fh=new Map;function I0e(e,t){fh.set(e,t)}function F0e(e){const t=fh.get(e);return fh.delete(e),t}let H0e=()=>location.protocol+"//"+location.host;function q1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),v0(h,"")}return v0(r,e)+o+s}function q0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=q1(e,location),A=r.value,M=t.value;let E=0;if(b){if(r.value=w,t.value=b,f&&f===A){f=null;return}E=M?b.position-M.position:0}else o(w);s.forEach(C=>{C(r.value,A,{delta:E,type:ua.pop,direction:E?E>0?Bl.forward:Bl.back:Bl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const A=s.indexOf(b);A>-1&&s.splice(A,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(xt({},b.state,{scroll:Gu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function b0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Gu():null}}function B0e(e){const{history:t,location:r}=window,o={value:q1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:H0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=xt({},t.state,b0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=xt({},s.value,t.state,{forward:h,scroll:Gu()});c(v.current,v,!0);const m=xt({},b0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function W0e(e){e=P0e(e);const t=B0e(e),r=q0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=xt({location:"",base:e,go:o,createHref:R0e.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 U0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),W0e(e)}function V0e(e){return typeof e=="string"||e&&typeof e=="object"}function B1(e){return typeof e=="string"||typeof e=="symbol"}const W1=Symbol("");var w0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(w0||(w0={}));function Hs(e,t){return xt(new Error,{type:e,[W1]:!0},t)}function si(e,t){return e instanceof Error&&W1 in e&&(t==null||!!(e.type&t))}const x0="[^/]+?",j0e={sensitive:!1,strict:!1,start:!0,end:!0},G0e=/[.+*?^${}()[\]/\\]/g;function K0e(e,t){const r=xt({},j0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(G0e,"\\$&"),w+=40;else if(b.type===1){const{value:A,repeatable:M,optional:E,regexp:C}=b;c.push({name:A,repeatable:M,optional:E});const N=C||x0;if(N!==x0){w+=10;try{new RegExp(`(${N})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${A}" (${N}): `+L.message)}}let P=M?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;m||(P=E&&p.length<2?`(?:/${P})`:"/"+P),E&&(P+="?"),s+=P,w+=20,E&&(w+=-8),M&&(w+=-20),N===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",A=c[b-1];m[A.name]=w&&A.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:A,repeatable:M,optional:E}=w,C=A in p?p[A]:"";if(Lr(C)&&!M)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const N=Lr(C)?C.join("/"):C;if(!N)if(E)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${A}"`);v+=N}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function X0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function U1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=X0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(S0(o))return 1;if(S0(s))return-1}return s.length-o.length}function S0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Y0e={type:0,value:""},Z0e=/[a-zA-Z0-9_]/;function J0e(e){if(!e)return[[]];if(e==="/")return[[Y0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:Z0e.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function Q0e(e,t,r){const o=K0e(J0e(e.path),r),s=xt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function eye(e,t){const r=[],o=new Map;t=C0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const A=!w,M=k0(m);M.aliasOf=w&&w.record;const E=C0(t,m),C=[M];if("alias"in m){const L=typeof m.alias=="string"?[m.alias]:m.alias;for(const z of L)C.push(k0(xt({},M,{components:w?w.record.components:M.components,path:z,aliasOf:w?w.record:M})))}let N,P;for(const L of C){const{path:z}=L;if(b&&z[0]!=="/"){const W=b.record.path,U=W[W.length-1]==="/"?"":"/";L.path=b.record.path+(z&&U+z)}if(N=Q0e(L,b,E),w?w.alias.push(N):(P=P||N,P!==N&&P.alias.push(N),A&&m.name&&!T0(N)&&f(m.name)),V1(N)&&h(N),M.children){const W=M.children;for(let U=0;U<W.length;U++)c(W[U],N,w&&w.children[U])}w=w||N}return P?()=>{f(P)}:ql}function f(m){if(B1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=rye(m,r);r.splice(b,0,m),m.record.name&&!T0(m)&&o.set(m.record.name,m)}function p(m,b){let w,A={},M,E;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Hs(1,{location:m});E=w.record.name,A=xt(_0(b.params,w.keys.filter(P=>!P.optional).concat(w.parent?w.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),m.params&&_0(m.params,w.keys.map(P=>P.name))),M=w.stringify(A)}else if(m.path!=null)M=m.path,w=r.find(P=>P.re.test(M)),w&&(A=w.parse(M),E=w.record.name);else{if(w=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!w)throw Hs(1,{location:m,currentLocation:b});E=w.record.name,A=xt({},b.params,m.params),M=w.stringify(A)}const C=[];let N=w;for(;N;)C.unshift(N.record),N=N.parent;return{name:E,path:M,params:A,matched:C,meta:nye(C)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function _0(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:tye(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 tye(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 T0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function nye(e){return e.reduce((t,r)=>xt(t,r.meta),{})}function C0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function rye(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;U1(e,t[c])<0?o=c:r=c+1}const s=iye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function iye(e){let t=e;for(;t=t.parent;)if(V1(t)&&U1(e,t)===0)return t}function V1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function oye(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(D1," "),f=c.indexOf("="),d=ca(f<0?c:c.slice(0,f)),h=f<0?null:ca(c.slice(f+1));if(d in t){let p=t[d];Lr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function E0(e){let t="";for(let r in e){const o=e[r];if(r=k0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Lr(o)?o.map(c=>c&&uh(c)):[o&&uh(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function sye(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Lr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const lye=Symbol(""),L0=Symbol(""),dp=Symbol(""),j1=Symbol(""),dh=Symbol("");function Cl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Vi(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(Hs(4,{from:r,to:t})):b instanceof Error?h(b):V0e(b)?h(Hs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function vd(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(O1(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Vi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=h0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Vi(w,r,o,f,d,s)()}))}}return c}function A0(e){const t=di(dp),r=di(j1),o=Te(()=>{const h=I(e.to);return t.resolve(h)}),s=Te(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Fs.bind(null,v));if(b>-1)return b;const w=M0(h[p-2]);return p>1&&M0(v)===w&&m[m.length-1].path!==w?m.findIndex(Fs.bind(null,h[p-2])):b}),c=Te(()=>s.value>-1&&fye(r.params,o.value.params)),f=Te(()=>s.value>-1&&s.value===r.matched.length-1&&H1(r.params,o.value.params));function d(h={}){return uye(h)?t[I(e.replace)?"replace":"push"](I(e.to)).catch(ql):Promise.resolve()}return{route:o,href:Te(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const aye=ut({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:A0,setup(e,{slots:t}){const r=Zn(A0(e)),{options:o}=di(dp),s=Te(()=>({[N0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[N0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:ma("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),cye=aye;function uye(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 fye(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(!Lr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function M0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const N0=(e,t,r)=>e??t??r,dye=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=di(dh),s=Te(()=>e.route||o.value),c=di(L0,0),f=Te(()=>{let p=I(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Te(()=>s.value.matched[f.value]);kc(L0,Te(()=>f.value+1)),kc(lye,d),kc(dh,s);const h=We();return Bt(()=>[h.value,d.value,e.name],([p,v,m],[b,w,A])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Fs(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(M=>M(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return $0(r.default,{Component:b,route:p});const w=m.props[v],A=w?w===!0?p.params:typeof w=="function"?w(p):w:null,E=ma(b,xt({},A,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return $0(r.default,{Component:E,route:p})||E}}});function $0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const hye=dye;function pye(e){const t=eye(e.routes,e),r=e.parseQuery||oye,o=e.stringifyQuery||E0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=jr(zi);let p=zi;ps&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=pd.bind(null,X=>""+X),m=pd.bind(null,C0e),b=pd.bind(null,ca);function w(X,ae){let de,$e;return B1(X)?(de=t.getRecordMatcher(X),$e=ae):$e=X,t.addRoute($e,de)}function A(X){const ae=t.getRecordMatcher(X);ae&&t.removeRoute(ae)}function M(){return t.getRoutes().map(X=>X.record)}function E(X){return!!t.getRecordMatcher(X)}function C(X,ae){if(ae=xt({},ae||h.value),typeof X=="string"){const H=gd(r,X,ae.path),J=t.resolve({path:H.path},ae),fe=s.createHref(H.fullPath);return xt(H,J,{params:b(J.params),hash:ca(H.hash),redirectedFrom:void 0,href:fe})}let de;if(X.path!=null)de=xt({},X,{path:gd(r,X.path,ae.path).path});else{const H=xt({},X.params);for(const J in H)H[J]==null&&delete H[J];de=xt({},X,{params:m(H)}),ae.params=m(ae.params)}const $e=t.resolve(de,ae),Ee=X.hash||"";$e.params=v(b($e.params));const Ze=A0e(o,xt({},X,{hash:_0e(Ee),path:$e.path})),O=s.createHref(Ze);return xt({fullPath:Ze,hash:Ee,query:o===E0?sye(X.query):X.query||{}},$e,{redirectedFrom:void 0,href:O})}function N(X){return typeof X=="string"?gd(r,X,h.value.path):xt({},X)}function P(X,ae){if(p!==X)return Hs(8,{from:ae,to:X})}function L(X){return U(X)}function z(X){return L(xt(N(X),{replace:!0}))}function W(X){const ae=X.matched[X.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(X):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=N($e):{path:$e},$e.params={}),xt({query:X.query,hash:X.hash,params:$e.path!=null?{}:X.params},$e)}}function U(X,ae){const de=p=C(X),$e=h.value,Ee=X.state,Ze=X.force,O=X.replace===!0,H=W(de);if(H)return U(xt(N(H),{state:typeof H=="object"?xt({},Ee,H.state):Ee,force:Ze,replace:O}),ae||de);const J=de;J.redirectedFrom=ae;let fe;return!Ze&&M0e(o,$e,de)&&(fe=Hs(16,{to:J,from:$e}),Ue($e,$e,!0,!1)),(fe?Promise.resolve(fe):G(J,$e)).catch(le=>si(le)?si(le,2)?le:Ne(le):ie(le,J,$e)).then(le=>{if(le){if(si(le,2))return U(xt({replace:O},N(le.to),{state:typeof le.to=="object"?xt({},Ee,le.to.state):Ee,force:Ze}),ae||J)}else le=Z(J,$e,!0,O,Ee);return te(J,$e,le),le})}function re(X,ae){const de=P(X,ae);return de?Promise.reject(de):Promise.resolve()}function Q(X){const ae=tt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(X):X()}function G(X,ae){let de;const[$e,Ee,Ze]=gye(X,ae);de=vd($e.reverse(),"beforeRouteLeave",X,ae);for(const H of $e)H.leaveGuards.forEach(J=>{de.push(Vi(J,X,ae))});const O=re.bind(null,X,ae);return de.push(O),Ae(de).then(()=>{de=[];for(const H of c.list())de.push(Vi(H,X,ae));return de.push(O),Ae(de)}).then(()=>{de=vd(Ee,"beforeRouteUpdate",X,ae);for(const H of Ee)H.updateGuards.forEach(J=>{de.push(Vi(J,X,ae))});return de.push(O),Ae(de)}).then(()=>{de=[];for(const H of Ze)if(H.beforeEnter)if(Lr(H.beforeEnter))for(const J of H.beforeEnter)de.push(Vi(J,X,ae));else de.push(Vi(H.beforeEnter,X,ae));return de.push(O),Ae(de)}).then(()=>(X.matched.forEach(H=>H.enterCallbacks={}),de=vd(Ze,"beforeRouteEnter",X,ae,Q),de.push(O),Ae(de))).then(()=>{de=[];for(const H of f.list())de.push(Vi(H,X,ae));return de.push(O),Ae(de)}).catch(H=>si(H,8)?H:Promise.reject(H))}function te(X,ae,de){d.list().forEach($e=>Q(()=>$e(X,ae,de)))}function Z(X,ae,de,$e,Ee){const Ze=P(X,ae);if(Ze)return Ze;const O=ae===zi,H=ps?history.state:{};de&&($e||O?s.replace(X.fullPath,xt({scroll:O&&H&&H.scroll},Ee)):s.push(X.fullPath,Ee)),h.value=X,Ue(X,ae,de,O),Ne()}let q;function F(){q||(q=s.listen((X,ae,de)=>{if(!Je.listening)return;const $e=C(X),Ee=W($e);if(Ee){U(xt(Ee,{replace:!0}),$e).catch(ql);return}p=$e;const Ze=h.value;ps&&I0e(y0(Ze.fullPath,de.delta),Gu()),G($e,Ze).catch(O=>si(O,12)?O:si(O,2)?(U(O.to,$e).then(H=>{si(H,20)&&!de.delta&&de.type===ua.pop&&s.go(-1,!1)}).catch(ql),Promise.reject()):(de.delta&&s.go(-de.delta,!1),ie(O,$e,Ze))).then(O=>{O=O||Z($e,Ze,!1),O&&(de.delta&&!si(O,8)?s.go(-de.delta,!1):de.type===ua.pop&&si(O,20)&&s.go(-1,!1)),te($e,Ze,O)}).catch(ql)}))}let k=Cl(),B=Cl(),V;function ie(X,ae,de){Ne(X);const $e=B.list();return $e.length?$e.forEach(Ee=>Ee(X,ae,de)):console.error(X),Promise.reject(X)}function ye(){return V&&h.value!==zi?Promise.resolve():new Promise((X,ae)=>{k.add([X,ae])})}function Ne(X){return V||(V=!X,F(),k.list().forEach(([ae,de])=>X?de(X):ae()),k.reset()),X}function Ue(X,ae,de,$e){const{scrollBehavior:Ee}=e;if(!ps||!Ee)return Promise.resolve();const Ze=!de&&F0e(y0(X.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return un().then(()=>Ee(X,ae,Ze)).then(O=>O&&z0e(O)).catch(O=>ie(O,X,ae))}const je=X=>s.go(X);let it;const tt=new Set,Je={currentRoute:h,listening:!0,addRoute:w,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:M,resolve:C,options:e,push:L,replace:z,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(X){const ae=this;X.component("RouterLink",cye),X.component("RouterView",hye),X.config.globalProperties.$router=ae,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>I(h)}),ps&&!it&&h.value===zi&&(it=!0,L(s.location).catch(Ee=>{}));const de={};for(const Ee in zi)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});X.provide(dp,ae),X.provide(j1,xh(de)),X.provide(dh,h);const $e=X.unmount;tt.add(X),X.unmount=function(){tt.delete(X),tt.size<1&&(p=zi,q&&q(),q=null,h.value=zi,it=!1,V=!1),$e()}}};function Ae(X){return X.reduce((ae,de)=>ae.then(()=>Q(de)),Promise.resolve())}return Je}function gye(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=>Fs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Fs(p,h))||s.push(h))}return[r,o,s]}const vye={tooltip:MC};Mb.options.instantMove=!0;Mb.options.distance=10;function mye(){return pye({history:U0e(),routes:d0e})}const yye=[mye],hp=tb(PT);yye.forEach(e=>{hp.use(e())});Object.entries(vye).forEach(([e,t])=>{hp.directive(e,t)});hp.mount("#app");
|
|
52
|
+
*/const ps=typeof document<"u";function P1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function h0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&P1(e.default)}const bt=Object.assign;function pd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Lr(s)?s.map(e):e(s)}return r}const ql=()=>{},Lr=Array.isArray,O1=/#/g,p0e=/&/g,g0e=/\//g,v0e=/=/g,m0e=/\?/g,R1=/\+/g,y0e=/%5B/g,b0e=/%5D/g,D1=/%5E/g,w0e=/%60/g,z1=/%7B/g,x0e=/%7C/g,I1=/%7D/g,S0e=/%20/g;function up(e){return encodeURI(""+e).replace(x0e,"|").replace(y0e,"[").replace(b0e,"]")}function _0e(e){return up(e).replace(z1,"{").replace(I1,"}").replace(D1,"^")}function uh(e){return up(e).replace(R1,"%2B").replace(S0e,"+").replace(O1,"%23").replace(p0e,"%26").replace(w0e,"`").replace(z1,"{").replace(I1,"}").replace(D1,"^")}function k0e(e){return uh(e).replace(v0e,"%3D")}function T0e(e){return up(e).replace(O1,"%23").replace(m0e,"%3F")}function C0e(e){return e==null?"":T0e(e).replace(g0e,"%2F")}function ua(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const E0e=/\/$/,L0e=e=>e.replace(E0e,"");function gd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=$0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ua(f)}}function A0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function g0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function M0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Fs(t.matched[o],r.matched[s])&&F1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Fs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function F1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!N0e(e[r],t[r]))return!1;return!0}function N0e(e,t){return Lr(e)?v0(e,t):Lr(t)?v0(t,e):e===t}function v0(e,t){return Lr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function $0e(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 zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var fa;(function(e){e.pop="pop",e.push="push"})(fa||(fa={}));var Bl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bl||(Bl={}));function P0e(e){if(!e)if(ps){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),L0e(e)}const O0e=/^[^#]+#/;function R0e(e,t){return e.replace(O0e,"#")+t}function D0e(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 Gu=()=>({left:window.scrollX,top:window.scrollY});function z0e(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=D0e(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 m0(e,t){return(history.state?history.state.position-t:-1)+e}const fh=new Map;function I0e(e,t){fh.set(e,t)}function F0e(e){const t=fh.get(e);return fh.delete(e),t}let H0e=()=>location.protocol+"//"+location.host;function H1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),g0(h,"")}return g0(r,e)+o+s}function q0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=H1(e,location),M=r.value,N=t.value;let E=0;if(b){if(r.value=w,t.value=b,f&&f===M){f=null;return}E=N?b.position-N.position:0}else o(w);s.forEach(C=>{C(r.value,M,{delta:E,type:fa.pop,direction:E?E>0?Bl.forward:Bl.back:Bl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const M=s.indexOf(b);M>-1&&s.splice(M,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Gu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function y0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Gu():null}}function B0e(e){const{history:t,location:r}=window,o={value:H1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:H0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,y0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:Gu()});c(v.current,v,!0);const m=bt({},y0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function W0e(e){e=P0e(e);const t=B0e(e),r=q0e(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:R0e.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 U0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),W0e(e)}function V0e(e){return typeof e=="string"||e&&typeof e=="object"}function q1(e){return typeof e=="string"||typeof e=="symbol"}const B1=Symbol("");var b0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(b0||(b0={}));function Hs(e,t){return bt(new Error,{type:e,[B1]:!0},t)}function si(e,t){return e instanceof Error&&B1 in e&&(t==null||!!(e.type&t))}const w0="[^/]+?",j0e={sensitive:!1,strict:!1,start:!0,end:!0},G0e=/[.+*?^${}()[\]/\\]/g;function K0e(e,t){const r=bt({},j0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(G0e,"\\$&"),w+=40;else if(b.type===1){const{value:M,repeatable:N,optional:E,regexp:C}=b;c.push({name:M,repeatable:N,optional:E});const A=C||w0;if(A!==w0){w+=10;try{new RegExp(`(${A})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${M}" (${A}): `+L.message)}}let P=N?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;m||(P=E&&p.length<2?`(?:/${P})`:"/"+P),E&&(P+="?"),s+=P,w+=20,E&&(w+=-8),N&&(w+=-20),A===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",M=c[b-1];m[M.name]=w&&M.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:M,repeatable:N,optional:E}=w,C=M in p?p[M]:"";if(Lr(C)&&!N)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const A=Lr(C)?C.join("/"):C;if(!A)if(E)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${M}"`);v+=A}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function X0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function W1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=X0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(x0(o))return 1;if(x0(s))return-1}return s.length-o.length}function x0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Y0e={type:0,value:""},Z0e=/[a-zA-Z0-9_]/;function J0e(e){if(!e)return[[]];if(e==="/")return[[Y0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:Z0e.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function Q0e(e,t,r){const o=K0e(J0e(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 eye(e,t){const r=[],o=new Map;t=T0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const M=!w,N=_0(m);N.aliasOf=w&&w.record;const E=T0(t,m),C=[N];if("alias"in m){const L=typeof m.alias=="string"?[m.alias]:m.alias;for(const z of L)C.push(_0(bt({},N,{components:w?w.record.components:N.components,path:z,aliasOf:w?w.record:N})))}let A,P;for(const L of C){const{path:z}=L;if(b&&z[0]!=="/"){const W=b.record.path,U=W[W.length-1]==="/"?"":"/";L.path=b.record.path+(z&&U+z)}if(A=Q0e(L,b,E),w?w.alias.push(A):(P=P||A,P!==A&&P.alias.push(A),M&&m.name&&!k0(A)&&f(m.name)),U1(A)&&h(A),N.children){const W=N.children;for(let U=0;U<W.length;U++)c(W[U],A,w&&w.children[U])}w=w||A}return P?()=>{f(P)}:ql}function f(m){if(q1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=rye(m,r);r.splice(b,0,m),m.record.name&&!k0(m)&&o.set(m.record.name,m)}function p(m,b){let w,M={},N,E;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Hs(1,{location:m});E=w.record.name,M=bt(S0(b.params,w.keys.filter(P=>!P.optional).concat(w.parent?w.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),m.params&&S0(m.params,w.keys.map(P=>P.name))),N=w.stringify(M)}else if(m.path!=null)N=m.path,w=r.find(P=>P.re.test(N)),w&&(M=w.parse(N),E=w.record.name);else{if(w=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!w)throw Hs(1,{location:m,currentLocation:b});E=w.record.name,M=bt({},b.params,m.params),N=w.stringify(M)}const C=[];let A=w;for(;A;)C.unshift(A.record),A=A.parent;return{name:E,path:N,params:M,matched:C,meta:nye(C)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function S0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function _0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tye(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 tye(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 k0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function nye(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function T0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function rye(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;W1(e,t[c])<0?o=c:r=c+1}const s=iye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function iye(e){let t=e;for(;t=t.parent;)if(U1(t)&&W1(e,t)===0)return t}function U1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function oye(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(R1," "),f=c.indexOf("="),d=ua(f<0?c:c.slice(0,f)),h=f<0?null:ua(c.slice(f+1));if(d in t){let p=t[d];Lr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function C0(e){let t="";for(let r in e){const o=e[r];if(r=k0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Lr(o)?o.map(c=>c&&uh(c)):[o&&uh(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function sye(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Lr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const lye=Symbol(""),E0=Symbol(""),fp=Symbol(""),V1=Symbol(""),dh=Symbol("");function Cl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Vi(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(Hs(4,{from:r,to:t})):b instanceof Error?h(b):V0e(b)?h(Hs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function vd(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(P1(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Vi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=h0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Vi(w,r,o,f,d,s)()}))}}return c}function L0(e){const t=di(fp),r=di(V1),o=Te(()=>{const h=I(e.to);return t.resolve(h)}),s=Te(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Fs.bind(null,v));if(b>-1)return b;const w=A0(h[p-2]);return p>1&&A0(v)===w&&m[m.length-1].path!==w?m.findIndex(Fs.bind(null,h[p-2])):b}),c=Te(()=>s.value>-1&&dye(r.params,o.value.params)),f=Te(()=>s.value>-1&&s.value===r.matched.length-1&&F1(r.params,o.value.params));function d(h={}){if(fye(h)){const p=t[I(e.replace)?"replace":"push"](I(e.to)).catch(ql);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Te(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function aye(e){return e.length===1?e[0]:e}const cye=ut({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:L0,setup(e,{slots:t}){const r=Zn(L0(e)),{options:o}=di(fp),s=Te(()=>({[M0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[M0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&aye(t.default(r));return e.custom?c:ya("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),uye=cye;function fye(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 dye(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(!Lr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function A0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const M0=(e,t,r)=>e??t??r,hye=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=di(dh),s=Te(()=>e.route||o.value),c=di(E0,0),f=Te(()=>{let p=I(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Te(()=>s.value.matched[f.value]);Tc(E0,Te(()=>f.value+1)),Tc(lye,d),Tc(dh,s);const h=We();return Bt(()=>[h.value,d.value,e.name],([p,v,m],[b,w,M])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Fs(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(N=>N(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return N0(r.default,{Component:b,route:p});const w=m.props[v],M=w?w===!0?p.params:typeof w=="function"?w(p):w:null,E=ya(b,bt({},M,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return N0(r.default,{Component:E,route:p})||E}}});function N0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const pye=hye;function gye(e){const t=eye(e.routes,e),r=e.parseQuery||oye,o=e.stringifyQuery||C0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=jr(zi);let p=zi;ps&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=pd.bind(null,X=>""+X),m=pd.bind(null,C0e),b=pd.bind(null,ua);function w(X,ae){let de,$e;return q1(X)?(de=t.getRecordMatcher(X),$e=ae):$e=X,t.addRoute($e,de)}function M(X){const ae=t.getRecordMatcher(X);ae&&t.removeRoute(ae)}function N(){return t.getRoutes().map(X=>X.record)}function E(X){return!!t.getRecordMatcher(X)}function C(X,ae){if(ae=bt({},ae||h.value),typeof X=="string"){const H=gd(r,X,ae.path),J=t.resolve({path:H.path},ae),fe=s.createHref(H.fullPath);return bt(H,J,{params:b(J.params),hash:ua(H.hash),redirectedFrom:void 0,href:fe})}let de;if(X.path!=null)de=bt({},X,{path:gd(r,X.path,ae.path).path});else{const H=bt({},X.params);for(const J in H)H[J]==null&&delete H[J];de=bt({},X,{params:m(H)}),ae.params=m(ae.params)}const $e=t.resolve(de,ae),Ee=X.hash||"";$e.params=v(b($e.params));const Ze=A0e(o,bt({},X,{hash:_0e(Ee),path:$e.path})),O=s.createHref(Ze);return bt({fullPath:Ze,hash:Ee,query:o===C0?sye(X.query):X.query||{}},$e,{redirectedFrom:void 0,href:O})}function A(X){return typeof X=="string"?gd(r,X,h.value.path):bt({},X)}function P(X,ae){if(p!==X)return Hs(8,{from:ae,to:X})}function L(X){return U(X)}function z(X){return L(bt(A(X),{replace:!0}))}function W(X){const ae=X.matched[X.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(X):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=A($e):{path:$e},$e.params={}),bt({query:X.query,hash:X.hash,params:$e.path!=null?{}:X.params},$e)}}function U(X,ae){const de=p=C(X),$e=h.value,Ee=X.state,Ze=X.force,O=X.replace===!0,H=W(de);if(H)return U(bt(A(H),{state:typeof H=="object"?bt({},Ee,H.state):Ee,force:Ze,replace:O}),ae||de);const J=de;J.redirectedFrom=ae;let fe;return!Ze&&M0e(o,$e,de)&&(fe=Hs(16,{to:J,from:$e}),Ue($e,$e,!0,!1)),(fe?Promise.resolve(fe):G(J,$e)).catch(le=>si(le)?si(le,2)?le:Ne(le):ie(le,J,$e)).then(le=>{if(le){if(si(le,2))return U(bt({replace:O},A(le.to),{state:typeof le.to=="object"?bt({},Ee,le.to.state):Ee,force:Ze}),ae||J)}else le=Z(J,$e,!0,O,Ee);return te(J,$e,le),le})}function re(X,ae){const de=P(X,ae);return de?Promise.reject(de):Promise.resolve()}function Q(X){const ae=tt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(X):X()}function G(X,ae){let de;const[$e,Ee,Ze]=vye(X,ae);de=vd($e.reverse(),"beforeRouteLeave",X,ae);for(const H of $e)H.leaveGuards.forEach(J=>{de.push(Vi(J,X,ae))});const O=re.bind(null,X,ae);return de.push(O),Ae(de).then(()=>{de=[];for(const H of c.list())de.push(Vi(H,X,ae));return de.push(O),Ae(de)}).then(()=>{de=vd(Ee,"beforeRouteUpdate",X,ae);for(const H of Ee)H.updateGuards.forEach(J=>{de.push(Vi(J,X,ae))});return de.push(O),Ae(de)}).then(()=>{de=[];for(const H of Ze)if(H.beforeEnter)if(Lr(H.beforeEnter))for(const J of H.beforeEnter)de.push(Vi(J,X,ae));else de.push(Vi(H.beforeEnter,X,ae));return de.push(O),Ae(de)}).then(()=>(X.matched.forEach(H=>H.enterCallbacks={}),de=vd(Ze,"beforeRouteEnter",X,ae,Q),de.push(O),Ae(de))).then(()=>{de=[];for(const H of f.list())de.push(Vi(H,X,ae));return de.push(O),Ae(de)}).catch(H=>si(H,8)?H:Promise.reject(H))}function te(X,ae,de){d.list().forEach($e=>Q(()=>$e(X,ae,de)))}function Z(X,ae,de,$e,Ee){const Ze=P(X,ae);if(Ze)return Ze;const O=ae===zi,H=ps?history.state:{};de&&($e||O?s.replace(X.fullPath,bt({scroll:O&&H&&H.scroll},Ee)):s.push(X.fullPath,Ee)),h.value=X,Ue(X,ae,de,O),Ne()}let q;function F(){q||(q=s.listen((X,ae,de)=>{if(!Je.listening)return;const $e=C(X),Ee=W($e);if(Ee){U(bt(Ee,{replace:!0,force:!0}),$e).catch(ql);return}p=$e;const Ze=h.value;ps&&I0e(m0(Ze.fullPath,de.delta),Gu()),G($e,Ze).catch(O=>si(O,12)?O:si(O,2)?(U(bt(A(O.to),{force:!0}),$e).then(H=>{si(H,20)&&!de.delta&&de.type===fa.pop&&s.go(-1,!1)}).catch(ql),Promise.reject()):(de.delta&&s.go(-de.delta,!1),ie(O,$e,Ze))).then(O=>{O=O||Z($e,Ze,!1),O&&(de.delta&&!si(O,8)?s.go(-de.delta,!1):de.type===fa.pop&&si(O,20)&&s.go(-1,!1)),te($e,Ze,O)}).catch(ql)}))}let k=Cl(),B=Cl(),V;function ie(X,ae,de){Ne(X);const $e=B.list();return $e.length?$e.forEach(Ee=>Ee(X,ae,de)):console.error(X),Promise.reject(X)}function ye(){return V&&h.value!==zi?Promise.resolve():new Promise((X,ae)=>{k.add([X,ae])})}function Ne(X){return V||(V=!X,F(),k.list().forEach(([ae,de])=>X?de(X):ae()),k.reset()),X}function Ue(X,ae,de,$e){const{scrollBehavior:Ee}=e;if(!ps||!Ee)return Promise.resolve();const Ze=!de&&F0e(m0(X.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return un().then(()=>Ee(X,ae,Ze)).then(O=>O&&z0e(O)).catch(O=>ie(O,X,ae))}const je=X=>s.go(X);let it;const tt=new Set,Je={currentRoute:h,listening:!0,addRoute:w,removeRoute:M,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:N,resolve:C,options:e,push:L,replace:z,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(X){const ae=this;X.component("RouterLink",uye),X.component("RouterView",pye),X.config.globalProperties.$router=ae,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>I(h)}),ps&&!it&&h.value===zi&&(it=!0,L(s.location).catch(Ee=>{}));const de={};for(const Ee in zi)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});X.provide(fp,ae),X.provide(V1,xh(de)),X.provide(dh,h);const $e=X.unmount;tt.add(X),X.unmount=function(){tt.delete(X),tt.size<1&&(p=zi,q&&q(),q=null,h.value=zi,it=!1,V=!1),$e()}}};function Ae(X){return X.reduce((ae,de)=>ae.then(()=>Q(de)),Promise.resolve())}return Je}function vye(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=>Fs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Fs(p,h))||s.push(h))}return[r,o,s]}const mye={tooltip:AC};Ab.options.instantMove=!0;Ab.options.distance=10;function yye(){return gye({history:U0e(),routes:d0e})}const bye=[yye],dp=eb($T);bye.forEach(e=>{dp.use(e())});Object.entries(mye).forEach(([e,t])=>{dp.directive(e,t)});dp.mount("#app");
|